@3t-transform/threeteeui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-eb8fc323.js +1620 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/toolbar-656be6e6.js +34259 -0
- package/dist/cjs/tttx-page.cjs.entry.js +927 -0
- package/dist/cjs/tttx-worksheet.cjs.entry.js +47 -0
- package/dist/cjs/tttx.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/patterns/tttx-page/tttx-page.css +162 -0
- package/dist/collection/components/patterns/tttx-page/tttx-page.js +213 -0
- package/dist/collection/components/patterns/tttx-page/tttx-page.stories.js +80 -0
- package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.css +134 -0
- package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.js +70 -0
- package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.stories.js +44 -0
- package/dist/collection/docs/gettingstarted-developer.stories.js +9 -0
- package/dist/collection/docs/template.stories.js +10 -0
- package/dist/collection/index.js +1 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.js +3 -0
- package/dist/components/tttx-page.d.ts +11 -0
- package/dist/components/tttx-page.js +953 -0
- package/dist/components/tttx-worksheet.d.ts +11 -0
- package/dist/components/tttx-worksheet.js +6 -0
- package/dist/components/tttx-worksheet2.js +34288 -0
- package/dist/esm/index-4c11a593.js +1594 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/toolbar-cede4385.js +34231 -0
- package/dist/esm/tttx-page.entry.js +923 -0
- package/dist/esm/tttx-worksheet.entry.js +43 -0
- package/dist/esm/tttx.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/tttx/index.esm.js +0 -0
- package/dist/tttx/p-2681b874.js +2 -0
- package/dist/tttx/p-d038fe18.js +1 -0
- package/dist/tttx/p-d5c31f03.entry.js +1 -0
- package/dist/tttx/p-e40966f3.entry.js +1 -0
- package/dist/tttx/tttx.css +1 -0
- package/dist/tttx/tttx.esm.js +1 -0
- package/dist/types/components/patterns/tttx-page/tttx-page.d.ts +21 -0
- package/dist/types/components/patterns/tttx-page/tttx-page.stories.d.ts +48 -0
- package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.d.ts +9 -0
- package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.stories.d.ts +23 -0
- package/dist/types/components.d.ts +66 -0
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -0
- package/dist/types/docs/template.stories.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +60 -0
- package/readme.md +90 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},e=function(e){var i=Object.prototype.toString.call(e);return"object"==typeof e?t[i]||"object":typeof e},i=function(t){return"boolean"==typeof t},n=function(t){return null!=t},r=function(t){return"function"==typeof t},s=function(t){return"string"==typeof t},o=function(t){return"number"==typeof t&&isFinite(t)||!isNaN(t-parseFloat(t))},a=function(t){return"object"===e(t)},h=function(t){var e;for(e in t)return!1;return!0},u=function(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t),i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return"function"==typeof i&&Object.toString.call(i)===Object.toString.call(Object)},l=function(t){return null!=t&&t===t.window},c=function(t){return!(!t||!t.jquery&&!t.dxRenderer)},d=function(t){return!!t&&r(t.then)},f=function(t){return!!t&&r(t.done)&&r(t.fail)},v=function t(e){var i=1,n=!1;for("boolean"==typeof(e=e||{})&&(n=e,e=arguments[1]||{},i++);i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var s in r){var o=e[s],a=r[s],h=!1,l=void 0;"__proto__"!==s&&"constructor"!==s&&e!==a&&(n&&a&&(u(a)||(h=Array.isArray(a)))?(l=h?o&&Array.isArray(o)?o:[]:o&&u(o)?o:{},e[s]=t(n,l,a)):void 0!==a&&(e[s]=a))}}return e},p=(t,e)=>{if(Array.isArray(t))return t.map(e);var i=[];for(var n in t)i.push(e(t[n],n));return i},m=(t,e)=>{if(t){if("length"in t)for(var i=0;i<t.length&&!1!==e.call(t[i],i,t[i]);i++);else for(var n in t)if(!1===e.call(t[n],n,t[n]))break;return t}},g=function(){},x=function(t){return"undefined"!=typeof console&&r(console[t])?console[t].bind(console):g},b={info:x("info"),warn:x("warn"),error:x("error")};function y(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return r(t)?t(...i):(i.forEach(((e,i)=>{s(e)&&(e=e.replace(/\$/g,"$$$$"));var n=new RegExp("\\{"+i+"\\}","gm");t=t.replace(n,e)})),t)}var w="http://js.devexpress.com/error/"+"22.1.6".split(".").slice(0,2).join("_")+"/";function S(t,e){var i={ERROR_MESSAGES:v(e,t),Error:function(){return o([].slice.call(arguments))},log:function(t){var e="log";/^E\d+$/.test(t)?e="error":/^W\d+$/.test(t)&&(e="warn"),b[e]("log"===e?t:n([].slice.call(arguments)))}};function n(t){var e=t[0];return s(e,r(e,t=t.slice(1)))}function r(t,e){return e=[i.ERROR_MESSAGES[t]].concat(e),y.apply(this,e).replace(/\.*\s*?$/,"")}function s(t,e){return y.apply(this,["{0} - {1}. See:\n{2}",t,e,a(t)])}function o(t){var e=t[0],i=r(e,t=t.slice(1)),n=a(e),o=s(e,i);return v(new Error(o),{__id:e,__details:i,url:n})}function a(t){return w+t}return i}const E=S({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' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a 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'});var C,I=function(t,e,i){return function(){var n=this.callBase;this.callBase=t[e];try{return i.apply(this,arguments)}finally{this.callBase=n}}},D=function(t){var e,i;if(!t)return this;for(e in t)i=t[e],this.prototype[e]="function"==typeof this.prototype[e]&&"function"==typeof i?I(this.parent.prototype,e,i):i;return this},T=function(){var t,e,i,n=this,r=Object.prototype.hasOwnProperty.bind(n),s=!r("_includedCtors")&&!r("_includedPostCtors");for(s&&(n._includedCtors=n._includedCtors.slice(0),n._includedPostCtors=n._includedPostCtors.slice(0)),i=0;i<arguments.length;i++)for(e in(t=arguments[i]).ctor&&n._includedCtors.push(t.ctor),t.postCtor&&n._includedPostCtors.push(t.postCtor),t)"ctor"!==e&&"postCtor"!==e&&"default"!==e&&(n.prototype[e]=t[e]);return n},k=function(t){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var e=Object.getPrototypeOf(this);return e===t||e.subclassOf(t)}return this.parent===t||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(t)},M=function(){throw E.Error("E0001")},A=(C=Object.prototype.hasOwnProperty,function(t,e){for(var i in t){if(!C.call(t,i))return;e[i]=t[i]}}),O=function(){};function R(t){var e=O.inherit(t),i=e,n=new i(t),s={},o=function(e,i){m(e,(function(e){r(n[e])?!i&&t[e]||(t[e]=function(){return n[e].apply(t,arguments)}):(i&&(s[e]=t[e]),t[e]=n[e])}))};return o(t,!0),t.inject=function(t){i=i.inherit(t),n=new i,o(t)},t.resetInjection=function(){v(t,s),i=e,n=new e},t}O.inherit=function(t){var e,i=function(){if(!this||l(this)||"function"!=typeof this.constructor)throw E.Error("E0003");var t,e=this,i=e.ctor,n=e.constructor._includedCtors,r=e.constructor._includedPostCtors;for(t=0;t<n.length;t++)n[t].call(e);for(i&&i.apply(e,arguments),t=0;t<r.length;t++)r[t].call(e)};return i.prototype=((e=function(){}).prototype=this.prototype,new e),A(this,i),i.inherit=this.inherit,i.abstract=M,i.redefine=D,i.include=T,i.subclassOf=k,i.parent=this,i._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],i._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],i.prototype.constructor=i,i.redefine(t),i},O.abstract=M;var F={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,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:t=>{"{"!==t.trim().charAt(0)&&(t="{"+t+"}");try{return new Function("return "+t)()}catch(e){throw E.Error("E3018",e,t)}}},P=["decimalSeparator","thousandsSeparator"],B=function(){if(!arguments.length)return F;var t=arguments.length<=0?void 0:arguments[0];P.forEach((e=>{if(t[e]){var i="Now, the ".concat(e," is selected based on the specified locale.");E.log("W0003","config",e,"19.2",i)}})),v(F,t)};"undefined"!=typeof DevExpress&&DevExpress.config&&B(DevExpress.config);var H=O.inherit({ctor:function(t){t&&(t=String(t)),this._value=this._normalize(t||this._generate())},_normalize:function(t){for(t=t.replace(/[^a-f0-9]/gi,"").toLowerCase();t.length<32;)t+="0";return[t.substr(0,8),t.substr(8,4),t.substr(12,4),t.substr(16,4),t.substr(20,12)].join("-")},_generate:function(){for(var t="",e=0;e<32;e++)t+=Math.round(15*Math.random()).toString(16);return t},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}}),L=function(t){this._options=t||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};L.prototype._fireCore=function(t,e){var i=this._firingIndexes,n=this._list,r=this._options.stopOnFalse,s=i.length;for(i[s]=0;i[s]<n.length&&(!1!==n[i[s]].apply(t,e)||!r);i[s]++);i.pop()},L.prototype.add=function(t){return"function"!=typeof t||this._options.unique&&this.has(t)||this._list.push(t),this},L.prototype.remove=function(t){var e=this._list,i=this._firingIndexes,n=e.indexOf(t);if(n>-1&&(e.splice(n,1),this._firing&&i.length))for(var r=0;r<i.length;r++)n<=i[r]&&i[r]--;return this},L.prototype.has=function(t){var e=this._list;return t?e.indexOf(t)>-1:!!e.length},L.prototype.empty=function(){return this._list=[],this},L.prototype.fireWith=function(t,e){var i=this._queue;if(e=(e=e||[]).slice?e.slice():e,this._options.syncStrategy)this._firing=!0,this._fireCore(t,e);else{if(i.push([t,e]),this._firing)return;for(this._firing=!0;i.length;){var n=i.shift();this._fireCore(n[0],n[1])}}return this._firing=!1,this._fired=!0,this},L.prototype.fire=function(){this.fireWith(this,arguments)},L.prototype.fired=function(){return this._fired};var z=function(t){return new L(t)},G=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],N=function(){var t=this;this._state="pending",this._promise={},G.forEach(function(e){var i=e.method;this[i+"Callbacks"]=new z,this[i]=function(){return this[i+"With"](this._promise,arguments)}.bind(this),this._promise[e.handler]=function(e){if(!e)return this;var n=t[i+"Callbacks"];return n.fired()?e.apply(t[i+"Context"],t[i+"Args"]):n.add(function(t,i){e.apply(t,i)}.bind(this)),this}}.bind(this)),this._promise.always=function(t){return this.done(t).fail(t)},this._promise.catch=function(t){return this.then(null,t)},this._promise.then=function(t,e){var i=new N;return["done","fail"].forEach(function(r){var s="done"===r?t:e;this[r]((function(){if(s){var t=s&&s.apply(this,arguments);f(t)?t.done(i.resolve).fail(i.reject):d(t)?t.then(i.resolve,i.reject):i.resolve.apply(this,n(t)?[t]:arguments)}else i["done"===r?"resolve":"reject"].apply(this,arguments)}))}.bind(this)),i.promise()},this._promise.state=function(){return t._state},this._promise.promise=function(e){return e?v(e,t._promise):t._promise},this._promise.promise(this)};function W(t,e){if(f(t))return t;if(d(t)){var i=new N;return t.then((function(){i.resolveWith.apply(i,[e].concat([[].slice.call(arguments)]))}),(function(){i.rejectWith.apply(i,[e].concat([[].slice.call(arguments)]))})),i}return(new N).resolveWith(e,[t])}G.forEach((function(t){var e=t.method,i=t.state;N.prototype[e+"With"]=function(t,n){var r=this[e+"Callbacks"];return"pending"===this.state()&&(this[e+"Args"]=n,this[e+"Context"]=t,i&&(this._state=i),r.fire(t,n)),this}}));var V=function(){if(1===arguments.length)return W(arguments[0]);for(var t=[].slice.call(arguments),e=[],i=0,n=new N,r=function(r){return function(s){e[r]=this,t[r]=arguments.length>1?[].slice.call(arguments):s,++i===t.length&&n.resolveWith(e,t)}},s=0;s<t.length;s++)f(t[s])?t[s].promise().done(r(s)).fail(n.reject):i++;return i===t.length&&n.resolveWith(e,t),n.promise()};function K(){return new N}function U(){return V.apply(this,arguments)}const j=R({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(t){return t},unwrap:function(t){return t},assign:function(){b.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}});var q=function(t,e,i,n){!n&&j.isWrapped(t[e])?j.assign(t[e],i):t[e]=i},$=function t(e,i,n,r){var s,o;for(var h in i)s=e[h],o=i[h],"__proto__"!==h&&"constructor"!==h&&e!==o&&(u(o)&&(o=t((n?a(s):u(s))?s:{},o,n,r)),void 0!==o&&s!==o&&q(e,h,o,r));return e},J=j.unwrap,Z=j.isWrapped,Y=j.assign,X=function(t){return(e=t,e.replace(/\[/g,".").replace(/\]/g,"")).split(".");var e},Q=function(t,e,i,n){if("this"===e)throw new E.Error("E4016");var r=t[e];n.unwrapObservables&&Z(r)?Y(r,i):t[e]=i},tt=function(t){return(t=t||{}).unwrapObservables=void 0===t.unwrapObservables||t.unwrapObservables,t};function et(t,e){return e.unwrapObservables?J(t):t}var it=function(t){if(arguments.length>1&&(t=[].slice.call(arguments)),!t||"this"===t)return function(t){return t};if("string"==typeof t){var e=X(t);return function(t,i){for(var n=(i=tt(i)).functionsAsIs,s=("defaultValue"in i),o=et(t,i),h=0;h<e.length;h++){if(!o){if(null==o&&s)return i.defaultValue;break}var u=e[h];if(s&&a(o)&&!(u in o))return i.defaultValue;var l=et(o[u],i);!n&&r(l)&&(l=l.call(o)),o=l}return o}}return Array.isArray(t)?nt(t):r(t)?t:void 0};function nt(t){for(var e={},i=0,n=t.length;i<n;i++){var r=t[i];e[r]=it(r)}return function(t,i){var n;return m(e,(function(e){var r=this(t,i);if(void 0!==r){for(var s=n||(n={}),o=e.split("."),a=o.length-1,h=0;h<a;h++){var u=o[h];u in s||(s[u]={}),s=s[u]}s[o[a]]=r}})),n}}var rt,st=function(t,e,i,r){if(n(i))return i;var s={};return Q(t,e,s,r),s},ot=function(t,e){return t instanceof Date?t.getTime():t&&t instanceof O&&t.valueOf?t.valueOf():e||"string"!=typeof t?t:t.toLowerCase()},at=function(t,e){return n(t)?t:e},ht=function(t,e){var i=new K,n=e||this,s={promise:i.promise(),abort:function(){clearTimeout(a),i.rejectWith(n)}},o=function(){var e=t.call(n);e&&e.done&&r(e.done)?e.done((function(){i.resolveWith(n)})):i.resolveWith(n)},a=(arguments[2]||setTimeout)(o,"number"==typeof e?e:0);return s},ut=[],lt=[],ct=[],dt=function(t,e,i){if(rt&&rt!==t)return ut.push(e),lt.push(t),i=i||new K,ct.push(i),i;var n=rt,r=ct.length;rt=t;var s=e();return s||(ct.length>r?s=U.apply(this,ct.slice(r)):i&&i.resolve()),rt=n,i&&s&&s.done&&s.done(i.resolve).fail(i.reject),!rt&&ut.length&&("render"===lt.shift()?ft:vt)(ut.shift(),ct.shift()),s||U()},ft=function(t,e){return dt("render",t,e)},vt=function(t,e){return dt("update",t,e)},pt=function(t){return function(){var e=this;return dt("render",(function(){return t.call(e)}))}},mt=function(t){return function(){var e=this;return dt("update",(function(){return t.call(e)}))}},gt=function(t,e,i){var n=[],r=0;return m(e,((e,s)=>{var o=0,a=i?i(s):s;m(t,((t,e)=>{var i=a[t];if(void 0!==i){if(!xt(i,e))return o=-1,!1;o++}})),o<r||(o>r&&(n.length=0,r=o),n.push(s))})),n},xt=function(t,e){if(Array.isArray(t)&&Array.isArray(e)){var i=!1;return m(t,((t,n)=>{if(n!==e[t])return i=!0,!1})),!i}return t===e},bt=function(t){var i,n;switch(e(t)){case"string":return t.split(/\s+/,2);case"object":return[null!==(i=t.x)&&void 0!==i?i:t.h,null!==(n=t.y)&&void 0!==n?n:t.v];case"number":return[t];case"array":return t;default:return null}},_t=function(t,e){var i=bt(t),n=e?parseFloat(i&&i[0]):parseInt(i&&i[0],10),r=e?parseFloat(i&&i[1]):parseInt(i&&i[1],10);return isFinite(n)||(n=0),isFinite(r)||(r=n),{h:n,v:r}},yt=function(t){if(t instanceof H)return t.toString();if(a(t)||Array.isArray(t))try{var e=JSON.stringify(t);return"{}"===e?t:e}catch(e){return t}return t},wt=function(t){return t.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},St=function(){},Et=function(t,e,i){for(var n=[],r=!i,s=0;s<t.length;s++)!!e(t[s],s)===r&&n.push(t[s]);return n},Ct=function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Dt(t[n],e[n],i+1))return!1;return!0},It=function(t,e,i,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&!Dt(t[r],e[r],i+1,n))return!1;for(var s in e)if(!(s in t))return!1;return!0},Dt=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=ot(t,!0),e=ot(e,!0);var r=n?t===e:t==e;return!!(r||i>=3)||(a(t)&&a(e)?It(t,e,i,n):!(!Array.isArray(t)||!Array.isArray(e))&&Ct(t,e,i))};const Tt=R({querySelectorAll:(t,e)=>t.querySelectorAll(e),elementMatches(t,e){return(t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||(e=>{var i=t.document||t.ownerDocument;if(!i)return!1;for(var n=this.querySelectorAll(i,e),r=0;r<n.length;r++)if(n[r]===t)return!0})).call(t,e)},createElement(t,e){return(e=e||this._document).createElement(t)},createElementNS(t,e,i){return(i=i||this._document).createElementNS(t,e)},createTextNode(t,e){return(e=e||this._document).createTextNode(t)},isNode:t=>t&&"object"==typeof t&&"nodeType"in t&&"nodeName"in t,isElementNode:t=>t&&1===t.nodeType,isTextNode:t=>t&&3===t.nodeType,isDocument:t=>t&&9===t.nodeType,removeElement(t){var e=t&&t.parentNode;e&&e.removeChild(t)},insertElement(t,e,i){t&&e&&t!==e&&(i?t.insertBefore(e,i):t.appendChild(e))},getAttribute:(t,e)=>t.getAttribute(e),setAttribute(t,e,i){t.setAttribute(e,i)},removeAttribute(t,e){t.removeAttribute(e)},setProperty(t,e,i){t[e]=i},setText(t,e){t&&(t.textContent=e)},setClass(t,e,i){1===t.nodeType&&e&&(i?t.classList.add(e):t.classList.remove(e))},setStyle(t,e,i){t.style[e]=i||""},_document:"undefined"==typeof document?void 0:document,getDocument(){return this._document},getActiveElement(t){var e,i;return(null!==(e=null==t||null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))&&void 0!==e?e:this._document).activeElement},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(t){return t in this._document},listen:(t,e,i,n)=>t&&"addEventListener"in t?(t.addEventListener(e,i,n),()=>{t.removeEventListener(e,i)}):St,elementsFromPoint(t,e){return this._document.elementsFromPoint(t,e)}});var kt="undefined"!=typeof window,Mt=()=>kt,At=Mt()?window:void 0;At||((At={}).window=At);var Ot=()=>At,Rt=t=>Mt()&&t in At,Ft=()=>Mt()?At.navigator:{userAgent:""},Pt=Ot(),Bt=["auto","none","inherit","initial"],Ht=function(t,e){var i=0;return e.forEach((function(e){i+=parseFloat(t[e])||0})),i},Lt=function(t,e){var i="width"===t?"Left":"Top",n="width"===t?"Right":"Bottom";return{padding:Ht(e,["padding"+i,"padding"+n]),border:Ht(e,["border"+i+"Width","border"+n+"Width"]),margin:Ht(e,["margin"+i,"margin"+n])}},zt=function(t){var e,i=(null==t||null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||Pt;return i.getComputedStyle&&i.getComputedStyle(t)},Gt=function(t,e,i,n){var r;return(null==e?void 0:e[i])||(null===(r=t.style)||void 0===r?void 0:r[i])||n},Nt={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},Wt={width:["left","right"],height:["top","bottom"]};function Vt(t,e,i,n){var r=(t,e,i)=>parseFloat(Gt(t,e,i,"0"))||0,s="border"===i?"-width":"";return r(t,n,"".concat(i,"-").concat(Wt[e][0]).concat(s))+r(t,n,"".concat(i,"-").concat(Wt[e][1]).concat(s))}var Kt=function(t,e,i){var n="width"===e?"offsetWidth":"offsetHeight",r=zt(t),s=Gt(t,r,e);""!==s&&"auto"!==s||(s=t[n]),s=parseFloat(s)||0;var o=Gt(t,r,"boxSizing","content-box"),a=Nt[i||o],h=Nt[o];if(void 0===a||void 0===h)throw new Error;if(h===a)return s;var u=Math.sign(a-h),l=!1,c=!1,d=!1,f=!1;1===u&&(a+=1,h+=1);for(var v=h;v!==a;v+=u)switch(v){case Nt.content:break;case Nt.padding:l=u*Vt(t,e,"padding",r);break;case Nt.border:c=u*Vt(t,e,"border",r);break;case Nt.margin:d=u*Vt(t,e,"margin",r)}if(l||c){var p=(!1===l?u*Vt(t,e,"padding",r):l)+(!1===c?u*Vt(t,e,"border",r):c);f=u*Math.max(0,Math.floor(t[n]-s-u*p))||0}return s+d+l+c+f},Ut=function(t,e,i){return t?Bt.indexOf(t)>-1?e?null:t:(s(t)&&(t=function(t,e){return t.indexOf("px")>0?t=parseInt(t.replace("px","")):t.indexOf("%")>0?t=parseInt(t.replace("%",""))*function(t){return l(t)?t.innerHeight:t.offsetHeight}(e)/100:isNaN(t)?t.indexOf("vh")>0&&(t=Pt.innerHeight/100*parseInt(t.replace("vh",""))):t=parseInt(t),t}(t,i)),o(t)?Math.max(0,t+e):"calc("+t+(e<0?" - ":" ")+Math.abs(e)+"px)"):null},jt=function(t,e){if(!t)return 0;var i=Lt("height",Pt.getComputedStyle(t));return i.padding+i.border+(e?i.margin:0)},qt=function(t){if(t){var e=t.getBoundingClientRect();if(e.height)return e.height}return 0};function $t(t,e,i){return 2===arguments.length?ie(e,t):ie(e,t,i)}var Jt=t=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("width",...e)}(t),Zt=t=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("height",...e)}(t),Yt=(t,e)=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("height",...e)}(t,e),Xt=(t,e)=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("outerWidth",...e)}(t,e||!1),Qt=(t,e)=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("outerHeight",...e)}(t,e||!1),te=t=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("innerWidth",...e)}(t),ee=t=>function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return $t("innerHeight",...e)}(t),ie=function t(e,i,n){var r=i.toLowerCase().indexOf("width")>=0?"Width":"Height",s=r.toLowerCase(),a=0===i.indexOf("outer"),h=0===i.indexOf("inner"),u=2===arguments.length||"boolean"==typeof n;if(c(e)){if(e.length>1&&!u){for(var d=0;d<e.length;d++)t(e[d],i,n);return}e=e[0]}if(e){if(l(e))return a?e["inner"+r]:Tt.getDocumentElement()["client"+r];if(Tt.isDocument(e)){var f=Tt.getDocumentElement(),v=Tt.getBody();return Math.max(v["scroll"+r],v["offset"+r],f["scroll"+r],f["offset"+r],f["client"+r])}if(u){var p="content";return a&&(p=n?"margin":"border"),h&&(p="padding"),Kt(e,s,p)}if(o(n)){var m=zt(e),g=Lt(s,m),x="border-box"===m.boxSizing;n=Number(n),a?n-=x?0:g.border+g.padding:h?n+=x?g.border:-g.padding:x&&(n+=g.border+g.padding)}return n+=o(n)?"px":"",Tt.setStyle(e,s,n),null}},ne=t=>l(t)?t:t.defaultView,re=t=>{if(!t.getClientRects().length)return{top:0,left:0};var e=t.getBoundingClientRect(),i=ne(t.ownerDocument),n=t.ownerDocument.documentElement;return{top:e.top+i.pageYOffset-n.clientTop,left:e.left+i.pageXOffset-n.clientLeft}};function se(){return(se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}class oe{constructor(){this.memory=[],this.callbacks=z()}add(t){m(this.memory,((e,i)=>t.apply(t,i))),this.callbacks.add(t)}remove(t){this.callbacks.remove(t)}fire(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.memory.push(e),this.callbacks.fire.apply(this.callbacks,e)}}const ae=new oe;var he=["pageX","pageY","screenX","screenY","clientX","clientY"],ue=function(t){var e,i=function(){return e=t.apply(this,arguments),i=function(){return e},e};return function(){return i.apply(this,arguments)}},le=Ot(),ce={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},de={focusin:"focus",focusout:"blur"},fe=["blur","focus","load"],ve=["touchmove","wheel","mousewheel","touchstart"];function pe(t,e){return!l(t)&&"#document"!==t.nodeName&&Tt.elementMatches(t,e)}var me,ge,xe,be=new WeakMap,_e=0,ye=(ge={},ae.add((function(t,e){ge[t]=e})),{getField:function(t,e){return ge[t]&&ge[t][e]},callMethod:function(t,e,i,n){return ge[t]&&ge[t][e]&&ge[t][e].apply(i,n)}}),we=R({on:Ee(ke(Ae((function(t,e,i,n,r){De(t,e).addHandler(r,i,n)})))),one:Ee(ke((function(t,e,i,n,r){we.on(t,e,i,n,(function n(){we.off(t,e,i,n),r.apply(this,arguments)}))}))),off:Ee((xe=Ae((function(t,e,i,n){De(t,e).removeHandler(n,i)})),function(t,e,i,n){"function"==typeof i&&(n=i,i=void 0),xe(t,e,i,n)})),trigger:Ee(Me((function(t,e,i){var n=e.type,s=De(t,e.type);if(ye.callMethod(n,"trigger",t,[e,i]),s.callHandlers(e,i),!ye.getField(n,"noBubble")&&!e.isPropagationStopped()&&-1===fe.indexOf(n)){var o=[];!function t(e){var i,n=null!==(i=e.parentNode)&&void 0!==i?i:e.host;n&&(o.push(n),t(n))}(t),o.push(le);for(var a=0;o[a]&&!e.isPropagationStopped();)De(o[a],e.type).callHandlers(v(e,{currentTarget:o[a]}),i),a++}(t.nodeType||l(t))&&(ye.callMethod(n,"_default",t,[e,i]),function(t,e){var i=de[t]||t;(function(t,e){return"click"===t&&"a"===e.localName})(t,e)||r(e[i])&&(me=t,e[i](),me=void 0)}(n,t))}))),triggerHandler:Ee(Me((function(t,e,i){De(t,e.type).callHandlers(e,i)})))});function Se(t,e){var i=t[0];if(i)if(Tt.isNode(i)||l(i))e.apply(we,t);else{if(s(i)||!("length"in i))throw E.Error("E0025");var n=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,(function(t){n[0]=t,Se(n,e)}))}}function Ee(t){return function(){Se(arguments,t)}}var Ce=ue((function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});le.addEventListener("test",null,e)}catch(t){}return t})),Ie=(t,e)=>l(t)?Ie(t.document,e):t.contains?t.contains(e):!!(e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_CONTAINS);function De(t,e){var i=be.get(t),n=(e=e||"").split("."),r=n.slice(1),s=!!n[0];e=n[0]||"dxEmptyEventType",i||be.set(t,i={}),i[e]||(i[e]={handleObjects:[],nativeHandler:null});var o=i[e];return{addHandler:function(i,n,a){var h=function(n,r){var s,o,h=[n],u=n.currentTarget,l=n.relatedTarget;e in ce&&(s=l&&u&&(l===u||Ie(u,l))),void 0!==r&&h.push(r),ye.callMethod(e,"handle",t,[n,a]),s||(o=i.apply(u,h)),!1===o&&(n.preventDefault(),n.stopPropagation())},u={handler:i,wrappedHandler:function(e,i){if(!me||e.type!==me)if(e.data=a,e.delegateTarget=t,n)for(var r=e.target;r&&r!==t;)pe(r,n)&&(e.currentTarget=r,h(e,i)),r=r.parentNode;else e.currentTarget=e.delegateTarget||e.target,h(e,i)},selector:n,type:e,data:a,namespace:r.join("."),namespaces:r,guid:++_e};o.handleObjects.push(u);var l,c,d=1===o.handleObjects.length&&s;d&&(d=!ye.callMethod(e,"setup",t,[a,r,i])),d&&(o.nativeHandler=(c=e,function(t,e){var i=De(this,c);t=we.Event(t),i.callHandlers(t,e)}),Ce()&&ve.indexOf(e)>-1&&(l={passive:!1}),o.removeListener=Tt.listen(t,ce[e]||e,o.nativeHandler,l)),ye.callMethod(e,"add",t,[u])},removeHandler:function(n,o){var a=function(e){var s,a=i[e];a.handleObjects.length?(a.handleObjects=a.handleObjects.filter((function(i){var a=r.length&&!Te(i.namespaces,r)||n&&i.handler!==n||o&&i.selector!==o;return a||(s=i.handler,ye.callMethod(e,"remove",t,[i])),a})),!a.handleObjects.length&&"dxEmptyEventType"!==e&&(ye.callMethod(e,"teardown",t,[r,s]),a.nativeHandler&&a.removeListener(),delete i[e])):delete i[e]};if(s)a(e);else for(var h in i)a(h);0===Object.keys(i).length&&be.delete(t)},callHandlers:function(t,e){var n=!1,s=function(i){n||r.length&&!Te(i.namespaces,r)||(i.wrappedHandler(t,e),n=t.isImmediatePropagationStopped())};o.handleObjects.forEach(s),r.length&&i.dxEmptyEventType&&i.dxEmptyEventType.handleObjects.forEach(s)}}}function Te(t,e){for(var i=0;i<e.length;i++)if(t.indexOf(e[i])<0)return!1;return!0}function ke(t){return function(e,i,n,r,s){s||(s=r,r=void 0),"string"!=typeof n&&(r=n,n=void 0),s||"string"!=typeof i||(s=r||n,n=void 0,r=void 0),t(e,i,n,r,s)}}function Me(t){return function(e,i,n){"string"==typeof i&&(i={type:i}),i.target||(i.target=e),i.currentTarget=e,i.delegateTarget||(i.delegateTarget=e),!i.type&&i.originalEvent&&(i.type=i.originalEvent.type),t(e,i instanceof we.Event?i:we.Event(i),n)}}function Ae(t){var e=function(e,i){if(i&&i.indexOf(" ")>-1){var n=Array.prototype.slice.call(arguments,0);i.split(" ").forEach((function(e){n[1]=e,t.apply(this,n)}))}else t.apply(this,arguments)};return function(t,i){if("object"==typeof i){var n=Array.prototype.slice.call(arguments,0);for(var r in i)n[1]=r,n[n.length-1]=i[r],e.apply(this,n)}else e.apply(this,arguments)}}function Oe(t){return function(t){return null==t.which&&0===t.type.indexOf("key")}(t)?null!=t.charCode?t.charCode:t.keyCode:function(t){return!t.which&&void 0!==t.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(t.type)}(t)?{1:1,2:3,3:1,4:2}[t.button]:t.which}function Re(t){t&&(we.Event=t,we.Event.prototype=t.prototype)}function Fe(t,e,i){Object.defineProperty(i||we.Event.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&e(this.originalEvent)},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})}Re(function(t){return we.Event=function(e,i){if(!(this instanceof we.Event))return new we.Event(e,i);e||(e={}),"string"==typeof e&&(e={type:e}),i||(i={}),t.call(this,e,i)},se(we.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()}}),we.Event}((function(t,e){var i;t instanceof we.Event||Mt()&&t instanceof le.Event||(null===(i=t.view)||void 0===i?void 0:i.Event)&&t instanceof t.view.Event?(this.originalEvent=t,this.type=t.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(t,"isTrusted")&&(this.isTrusted=t.isTrusted),this.timeStamp=t.timeStamp||Date.now()):se(this,t),Fe("which",Oe,this),0===t.type.indexOf("touch")&&(delete e.pageX,delete e.pageY),se(this,e),this.guid=++_e}))),["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((t=>Fe(t,(e=>e[t])))),function(t){he.forEach((function(e){t(e,(function(t){return function(t,e){if(e[t]&&!e.touches||!e.touches)return e[t];var i=e.touches.length?e.touches:e.changedTouches;return i.length?i[0][t]:void 0}(e,t)}))}),this)}(Fe);var Pe=z(),Be=z();we.set=function(t){Pe.fire(),we.inject(t),Re(t.Event),Be.fire()},we.subscribeGlobal=function(){Se(arguments,ke((function(){var t=arguments;we.on.apply(this,t),Pe.add((function(){var e=Array.prototype.slice.call(t,0);e.splice(3,1),we.off.apply(this,e)})),Be.add((function(){we.on.apply(this,t)}))})))},we.forcePassiveFalseEventNames=ve,we.passiveEventHandlersSupported=Ce;var He,Le=new WeakMap,ze=new oe,Ge=function(){};function Ne(){return He.data.apply(this,arguments)}function We(t,e){return He.removeData.call(this,t,e)}function Ve(t,e){if(Tt.isElementNode(t)){var i=t.getElementsByTagName("*");He.cleanData(i),e&&He.cleanData([t])}}!function(t){ze.fire(t);var e=(He=t).cleanData;He.cleanData=function(t){return Ge(t),e.call(this,t)}}({data:function(){var t=arguments[0],e=arguments[1],i=arguments[2];if(t){var n=Le.get(t);return n||Le.set(t,n={}),void 0===e?n:2===arguments.length?n[e]:(n[e]=i,i)}},removeData:function(t,e){if(t)if(void 0===e)Le.delete(t);else{var i=Le.get(t);i&&delete i[e]}},cleanData:function(t){for(var e=0;e<t.length;e++)we.off(t[e]),Le.delete(t[e])}});var Ke=function(t){return null==t?"":String(t)},Ue=function(t){return Ke(t).charAt(0).toUpperCase()+t.substr(1)},je=function(t){return Ke(t).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},qe=function(t,e){return p(je(t),(function(t,i){return t=t.toLowerCase(),(e||i>0)&&(t=Ue(t)),t})).join("")},$e=function(t){return p(je(t),(function(t){return Ue(t.toLowerCase())})).join(" ")},Je=["","Webkit","Moz","O","Ms"],Ze={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},Ye=ue((function(){return Tt.createElement("dx").style})),Xe=function(t){if(t in Ye())return t;var e=t;t=t.charAt(0).toUpperCase()+t.substr(1);for(var i=1;i<Je.length;i++){var n=Je[i].toLowerCase()+t;if(n in Ye())return n}return e},Qe=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],ti=function(t,e){return o(e)&&-1===Qe.indexOf(t)&&(e+="px"),e},ei=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,ii={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>"}};ii.tbody=ii.colgroup=ii.caption=ii.tfoot=ii.thead,ii.th=ii.td;var ni,ri=function(t){if("string"!=typeof t)return null;var e=Tt.createDocumentFragment().appendChild(Tt.createElement("div")),i=ei.exec(t),n=i&&i[1].toLowerCase(),r=ii[n]||ii.default;e.innerHTML=r.startTags+t+r.endTags;for(var s=0;s<r.tagsCount;s++)e=e.lastChild;return[...e.childNodes]},si=function(t){var e=ei.exec(t);return e&&e[1]in ii},oi=Ot(),ai=function(t,e){return t?"string"==typeof t?"body"===t?(this[0]=e?e.body:Tt.getBody(),this.length=1,this):(e=e||Tt.getDocument(),"<"===t[0]?(this[0]=Tt.createElement(t.slice(1,-1),e),this.length=1,this):([].push.apply(this,Tt.querySelectorAll(e,t)),this)):Tt.isNode(t)||l(t)?(this[0]=t,this.length=1,this):Array.isArray(t)?([].push.apply(this,t),this):ni(t.toArray?t.toArray():[t]):(this.length=0,this)};(ni=function(t,e){return new ai(t,e)}).fn={dxRenderer:!0};var hi=function(t,e){for(var i=0;i<this.length;i++){var n=ni(this[i]);n[t].apply(n,e)}return this},ui=function(t,e,i){null!=i?Tt.setAttribute(t,e,i):Tt.removeAttribute(t,e)};(ai.prototype=ni.fn).show=function(){return this.toggle(!0)},ai.prototype.hide=function(){return this.toggle(!1)},ai.prototype.toggle=function(t){return this[0]&&this.toggleClass("dx-state-invisible",!t),this},ai.prototype.attr=function(t,e){if(this.length>1&&arguments.length>1)return hi.call(this,"attr",arguments);if(!this[0])return a(t)||void 0!==e?this:void 0;if(!this[0].getAttribute)return this.prop(t,e);if("string"==typeof t&&1===arguments.length){var i=this[0].getAttribute(t);return null==i?void 0:i}if(u(t))for(var n in t)this.attr(n,t[n]);else ui(this[0],t,e);return this},ai.prototype.removeAttr=function(t){return this[0]&&Tt.removeAttribute(this[0],t),this},ai.prototype.prop=function(t,e){if(!this[0])return this;if("string"==typeof t&&1===arguments.length)return this[0][t];if(u(t))for(var i in t)this.prop(i,t[i]);else Tt.setProperty(this[0],t,e);return this},ai.prototype.addClass=function(t){return this.toggleClass(t,!0)},ai.prototype.removeClass=function(t){return this.toggleClass(t,!1)},ai.prototype.hasClass=function(t){if(!this[0]||void 0===this[0].className)return!1;for(var e=t.split(" "),i=0;i<e.length;i++)if(this[0].classList){if(this[0].classList.contains(e[i]))return!0}else if(((s(this[0].className)?this[0].className:Tt.getAttribute(this[0],"class"))||"").split(" ").indexOf(e[i])>=0)return!0;return!1},ai.prototype.toggleClass=function(t,e){if(this.length>1)return hi.call(this,"toggleClass",arguments);if(!this[0]||!t)return this;e=void 0===e?!this.hasClass(t):e;for(var i=t.split(" "),n=0;n<i.length;n++)Tt.setClass(this[0],i[n],e);return this},ai.prototype.html=function(t){return arguments.length?(this.empty(),"string"==typeof t&&!si(t)||"number"==typeof t?(this[0].innerHTML=t,this):this.append(ri(t))):this[0].innerHTML};var li=function(t,e){if(this[0]&&t){"string"==typeof t?t=ri(t):t.nodeType?t=[t]:o(t)&&(t=[Tt.createTextNode(t)]);for(var i=0;i<t.length;i++){var n=t[i],r=this[0];"TABLE"===r.tagName&&"TR"===n.tagName&&r.tBodies&&r.tBodies.length&&(r=r.tBodies[0]),Tt.insertElement(r,n.nodeType?n:n[0],e)}}},ci=function(t,e){if(this[0]&&this[0].style&&!(null===e||"number"==typeof e&&isNaN(e))){t=Xe(t);for(var i=0;i<this.length;i++)this[i].style[t]=ti(t,e)}};ai.prototype.css=function(t,e){if(s(t)){if(2!==arguments.length){if(!this[0])return;t=Xe(t);var i=oi.getComputedStyle(this[0])[t]||this[0].style[t];return o(i)?i.toString():i}ci.call(this,t,e)}else if(u(t))for(var n in t)ci.call(this,n,t[n]);return this},ai.prototype.prepend=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.prepend(arguments[e]);return this}return li.apply(this,[t,this[0].firstChild]),this},ai.prototype.append=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.append(arguments[e]);return this}return li.apply(this,[t]),this},ai.prototype.prependTo=function(t){if(this.length>1){for(var e=this.length-1;e>=0;e--)ni(this[e]).prependTo(t);return this}return(t=ni(t))[0]&&Tt.insertElement(t[0],this[0],t[0].firstChild),this},ai.prototype.appendTo=function(t){return this.length>1?hi.call(this,"appendTo",arguments):(Tt.insertElement(ni(t)[0],this[0]),this)},ai.prototype.insertBefore=function(t){return t&&t[0]&&Tt.insertElement(t[0].parentNode,this[0],t[0]),this},ai.prototype.insertAfter=function(t){return t&&t[0]&&Tt.insertElement(t[0].parentNode,this[0],t[0].nextSibling),this},ai.prototype.before=function(t){return this[0]&&Tt.insertElement(this[0].parentNode,t[0],this[0]),this},ai.prototype.after=function(t){return this[0]&&Tt.insertElement(this[0].parentNode,t[0],this[0].nextSibling),this},ai.prototype.wrap=function(t){if(this[0]){var e=ni(t);e.insertBefore(this),e.append(this)}return this},ai.prototype.wrapInner=function(t){var e=this.contents();return e.length?e.wrap(t):this.append(t),this},ai.prototype.replaceWith=function(t){if(t&&t[0])return t.is(this)?this:(t.insertBefore(this),this.remove(),t)},ai.prototype.remove=function(){return this.length>1?hi.call(this,"remove",arguments):(Ve(this[0],!0),Tt.removeElement(this[0]),this)},ai.prototype.detach=function(){return this.length>1?hi.call(this,"detach",arguments):(Tt.removeElement(this[0]),this)},ai.prototype.empty=function(){return this.length>1?hi.call(this,"empty",arguments):(Ve(this[0]),Tt.setText(this[0],""),this)},ai.prototype.clone=function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e].cloneNode(!0));return ni(t)},ai.prototype.text=function(t){if(!arguments.length){for(var e="",i=0;i<this.length;i++)e+=this[i]&&this[i].textContent||"";return e}var s=r(t)?t():t;return Ve(this[0],!1),Tt.setText(this[0],n(s)?s:""),this},ai.prototype.val=function(t){return 1===arguments.length?this.prop("value",n(t)?t:""):this.prop("value")},ai.prototype.contents=function(){if(!this[0])return ni();var t=[];return t.push.apply(t,this[0].childNodes),ni(t)},ai.prototype.find=function(t){var e=ni();if(!t)return e;var i,n=[];if("string"==typeof t)for(t=t.trim(),i=0;i<this.length;i++){var r=this[i];if(Tt.isElementNode(r)){var s=r.getAttribute("id"),o=s||"dx-query-children";s||ui(r,"id",o);var a=(o="[id='"+o+"'] ")+t.replace(/([^\\])(,)/g,"$1, "+o);n.push.apply(n,Tt.querySelectorAll(r,a)),ui(r,"id",s)}else Tt.isDocument(r)&&n.push.apply(n,Tt.querySelectorAll(r,t))}else for(i=0;i<this.length;i++)t=Tt.isNode(t)?t:t[0],this[i]!==t&&this[i].contains(t)&&n.push(t);return e.add(n)};var di=function(t,e){var i;return!(e=null!==(i=e.host)&&void 0!==i?i:e).nodeType||!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};ai.prototype.filter=function(t){if(!t)return ni();if(":visible"===t)return this.filter(di);if(":hidden"===t)return this.filter((function(t,e){return!di(0,e)}));for(var i=[],n=0;n<this.length;n++){var s=this[n];if(Tt.isElementNode(s)&&"string"===e(t))Tt.elementMatches(s,t)&&i.push(s);else if(Tt.isNode(t)||l(t))t===s&&i.push(s);else if(r(t))t.call(s,n,s)&&i.push(s);else for(var o=0;o<t.length;o++)t[o]===s&&i.push(s)}return ni(i)},ai.prototype.not=function(t){for(var e=[],i=this.filter(t).toArray(),n=0;n<this.length;n++)-1===i.indexOf(this[n])&&e.push(this[n]);return ni(e)},ai.prototype.is=function(t){return!!this.filter(t).length},ai.prototype.children=function(t){for(var e=[],i=0;i<this.length;i++)for(var n=this[i]?this[i].childNodes:[],r=0;r<n.length;r++)Tt.isElementNode(n[r])&&e.push(n[r]);return e=ni(e),t?e.filter(t):e},ai.prototype.siblings=function(){var t=this[0];if(!t||!t.parentNode)return ni();for(var e=[],i=t.parentNode.childNodes||[],n=0;n<i.length;n++){var r=i[n];Tt.isElementNode(r)&&r!==t&&e.push(r)}return ni(e)},ai.prototype.each=function(t){for(var e=0;e<this.length&&!1!==t.call(this[e],e,this[e]);e++);},ai.prototype.index=function(t){return t?(t=ni(t),this.toArray().indexOf(t[0])):this.parent().children().index(this)},ai.prototype.get=function(t){return this[t<0?this.length+t:t]},ai.prototype.eq=function(t){return ni(this[t=t<0?this.length+t:t])},ai.prototype.first=function(){return this.eq(0)},ai.prototype.last=function(){return this.eq(-1)},ai.prototype.parent=function(t){if(!this[0])return ni();var e=ni(this[0].parentNode);return!t||e.is(t)?e:ni()},ai.prototype.parents=function(t){for(var e=[],i=this.parent();i&&i[0]&&!Tt.isDocument(i[0]);)Tt.isElementNode(i[0])&&(t&&!i.is(t)||e.push(i.get(0))),i=i.parent();return ni(e)},ai.prototype.closest=function(t){if(this.is(t))return this;for(var e=this.parent();e&&e.length;){if(e.is(t))return e;e=e.parent()}return ni()},ai.prototype.next=function(t){if(!this[0])return ni();var e=ni(this[0].nextSibling);if(!arguments.length)return e;for(;e&&e.length;){if(e.is(t))return e;e=e.next()}return ni()},ai.prototype.prev=function(){return this[0]?ni(this[0].previousSibling):ni()},ai.prototype.add=function(t){for(var e=ni(t),i=this.toArray(),n=0;n<e.length;n++){var r=e[n];-1===i.indexOf(r)&&i.push(r)}return ni(i)};var fi=[];ai.prototype.splice=function(){return ni(fi.splice.apply(this,arguments))},ai.prototype.slice=function(){return ni(fi.slice.apply(this,arguments))},ai.prototype.toArray=function(){return fi.slice.call(this)},ai.prototype.offset=function(){if(this[0])return re(this[0])},ai.prototype.offsetParent=function(){if(!this[0])return ni();for(var t=ni(this[0].offsetParent);t[0]&&"static"===t.css("position");)t=ni(t[0].offsetParent);return t[0]?t:ni(Tt.getDocumentElement())},ai.prototype.position=function(){if(this[0]){var t,e=parseFloat(this.css("marginTop")),i=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(t=this[0].getBoundingClientRect()).top-e,left:t.left-i};t=this.offset();var n=this.offsetParent(),r={top:0,left:0};return"HTML"!==n[0].nodeName&&(r=n.offset()),r={top:r.top+parseFloat(n.css("borderTopWidth")),left:r.left+parseFloat(n.css("borderLeftWidth"))},{top:t.top-r.top-e,left:t.left-r.left-i}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(t,e){t.scrollTo(e,t.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(t,e){t.scrollTo(t.pageXOffset,e)}}].forEach((function(t){var e=t.name;ai.prototype[e]=function(i){if(this[0]){var n=ne(this[0]);return void 0===i?n?n[t.offsetProp]:this[0][e]:(n?t.scrollWindow(n,i):this[0][e]=i,this)}}})),ai.prototype.data=function(t,e){if(this[0])return arguments.length<2?Ne.call(ni,this[0],t):(Ne.call(ni,this[0],t,e),this)},ai.prototype.removeData=function(t){return this[0]&&We(this[0],t),this};var vi=function(){return ni.apply(this,arguments)};Object.defineProperty(vi,"fn",{enumerable:!0,configurable:!0,get:function(){return ni.fn},set:function(t){ni.fn=t}});const pi=vi,mi=new oe;var gi=function(t,e){var i={};"noBubble"in e&&(i.noBubble=e.noBubble),"bindType"in e&&(i.bindType=e.bindType),"delegateType"in e&&(i.delegateType=e.delegateType),m(["setup","teardown","add","remove","trigger","handle","_default","dispose"],(function(t,n){e[n]&&(i[n]=function(){var t=[].slice.call(arguments);return t.unshift(this),e[n].apply(e,t)})})),ae.fire(t,i)};gi.callbacks=ae,Ge=function(t){t=[].slice.call(t);for(var e=0;e<t.length;e++){var i=pi(t[e]);i.prop("dxRemoveEvent")&&(i[0].dxRemoveEvent=null,we.triggerHandler(i,"dxremove"))}},gi("dxremove",{noBubble:!0,setup:function(t){pi(t).prop("dxRemoveEvent",!0)}});var xi=new WeakMap,bi=0,_i=function(t,e){if(!n(e)){if(!xi.has(t)){var i="dxPrivateComponent"+bi++;return xi.set(t,i),i}return xi.get(t)}xi.set(t,e)};function yi(t,e,i){var n=Ne(t.get(0)),r=_i(e.constructor);n[r]=e,i&&we.one(t,"dxremove",(function(){i.call(e)})),n.dxComponents||(n.dxComponents=[]),n.dxComponents.push(r)}function wi(t,e){var i=_i(e);return Ne(t.get(0),i)}var Si=function(t,e,i){i?e[t]=i:i=e,_i(i,t),mi.fire(t,i)};mi.add((function(t,e){pi.fn[t]=function(i){var n,r="string"==typeof i;if(r){var s=i,o=[].slice.call(arguments).slice(1);this.each((function(){var i=e.getInstance(this);if(!i)throw E.Error("E0009",t);var r=i[s].apply(i,o);void 0===n&&(n=r)}))}else this.each((function(){var t=e.getInstance(this);t?t.option(i):new e(this,i)})),n=this;return n}}));var Ei=t=>!(!t||"string"!=typeof t)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(t)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(t)?"image":/^[\w-_]+$/.test(t)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(t)&&"fontIcon"),Ci=t=>{switch(Ei(t)){case"image":return pi("<img>").attr("src",t).addClass("dx-icon");case"fontIcon":return pi("<i>").addClass("".concat("dx-icon"," ").concat(t));case"dxIcon":return pi("<i>").addClass("".concat("dx-icon"," ").concat("dx-icon","-").concat(t));case"svg":return pi("<i>").addClass("".concat("dx-icon"," ").concat("dx-svg-icon")).append(t);default:return null}};function Ii(t){return function(t){return t&&t.get(0)}(t)}var Di=/matrix(3d)?\((.+?)\)/,Ti=/translate(?:3d)?\((.+?)\)/,ki=function(t){t=pi(t);var e=Fi(t);return{left:e.x,top:e.y}};function Mi(t){return"string"===e(t)&&"%"===t[t.length-1]}function Ai(t,e){t.length&&Ne(t.get(0),"dxTranslator",e)}var Oi=function(t){t.length&&We(t.get(0),"dxTranslator")},Ri=function(t){return t.x=t.x||0,t.y=t.y||0,"translate("+(Mi(t.x)?t.x:t.x+"px")+", "+(Mi(t.y)?t.y:t.y+"px")+")"},Fi=function(t){var e=t.length?Ne(t.get(0),"dxTranslator"):null;if(!e){var i=(t.css("transform")||Ri({x:0,y:0})).match(Di),n=i&&i[1];i?(i=i[2].split(","),"3d"===n?i=i.slice(12,15):(i.push(0),i=i.slice(4,7))):i=[0,0,0],Ai(t,e={x:parseFloat(i[0]),y:parseFloat(i[1]),z:parseFloat(i[2])})}return e},Pi=function(t,e){t=pi(t);var i,n=e.left,r=e.top;void 0===n?(i=Fi(t)).y=r||0:void 0===r?(i=Fi(t)).x=n||0:Ai(t,i={x:n||0,y:r||0,z:0}),t.css({transform:Ri(i)}),(Mi(n)||Mi(r))&&Oi(t)},Bi=function(t,e){var i;t=pi(t);var n={left:0,top:0,transform:"none"};e&&(i=t.css("transition"),n.transition="none"),t.css(n),Oi(t),e&&(t.get(0),t.css("transition",i))},Hi=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,Li={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)"},zi={},Gi=function(t){var e,i=(t=Li[t]||t).match(Hi);i||(i=Li[e="linear"].match(Hi)),i=i.slice(1,5);for(var n=0;n<i.length;n++)i[n]=parseFloat(i[n]);var s=e||"cubicbezier_"+i.join("_").replace(/\./g,"p");return r(zi[s])||(zi[s]=function(t,e,n,r,s){return r*(l=1-(h=3*(o=i[0]))-(u=3*(i[2]-o)-h),f=1-(c=3*(a=i[1]))-(d=3*(i[3]-a)-c),v=function(t){return t*(h+t*(u+t*l))},p=function(t){return h+t*(2*u+3*t*l)},function(t){return function(t){return t*(c+t*(d+t*f))}(function(t){for(var e,i=t,n=0;n<14&&(e=v(i)-t,!(Math.abs(e)<.001));)i-=e/p(i),n++;return i}(t))})(e/s)+n;var o,a,h,u,l,c,d,f,v,p}),s},Ni=Mt()?Ot():{},Wi=function(t){return setTimeout(t,16.666666666666668)},Vi=function(t){clearTimeout(t)},Ki=ue((function(){var t=Ni.requestAnimationFrame||Ni.webkitRequestAnimationFrame||Ni.mozRequestAnimationFrame||Ni.oRequestAnimationFrame||Ni.msRequestAnimationFrame,e=Ni.cancelAnimationFrame||Ni.webkitCancelAnimationFrame||Ni.mozCancelAnimationFrame||Ni.oCancelAnimationFrame||Ni.msCancelAnimationFrame;t&&e&&(Wi=t,Vi=e)}));function Ui(){return Ki(),Wi.apply(Ni,arguments)}function ji(){Ki(),Vi.apply(Ni,arguments)}var qi=[],$i=ue((()=>{var t=Tt.listen(Tt.getDocument(),"DOMContentLoaded",(()=>{Ji.fire(),t()}))})),Ji={add:t=>{var e=Mt();e&&"loading"!==Tt.getReadyState()?t():(qi.push(t),e&&$i())},fire:()=>{qi.forEach((t=>t())),qi=[]}};const Zi=R(Ji);var Yi=function(){var t,e=z(),i=e.add,n=e.remove;if(!Mt())return e;var r,s=function(){var t=Ot();return{width:t.innerWidth,height:t.innerHeight}},o=function(){var i,n=s();n.width===t.width&&n.height===t.height||(n.width===t.width&&(i="height"),n.height===t.height&&(i="width"),t=n,e.fire(i))},a=ue((function(){t=s()}));return e.add=function(){var t=i.apply(e,arguments);return a(),Zi.add((function(){!r&&e.has()&&(r=Tt.listen(Ot(),"resize",o))})),t},e.remove=function(){var t=n.apply(e,arguments);return!e.has()&&r&&(r(),r=void 0),t},e}();class Xi{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=t,this._options=e}static create(t,e){return e?r(e)?e(t):e:new Xi(t)}hasEvent(t){var e=this._events[t];return!!e&&e.has()}fireEvent(t,e){var i=this._events[t];return i&&i.fireWith(this._owner,e),this._owner}on(t,e){if(u(t))m(t,((t,e)=>{this.on(t,e)}));else{var i=this._events[t];i||(i=z({syncStrategy:this._options.syncStrategy}),this._events[t]=i),(i.originalAdd||i.add).call(i,e)}}off(t,e){var i=this._events[t];i&&(r(e)?i.remove(e):i.empty())}dispose(){m(this._events,((t,e)=>{e.empty()}))}}var Qi,tn=Ot(),en=Zi.add,nn=z(),rn=pi(),sn=function(t){if(!arguments.length)return Qi;var e=pi(t);rn=e;var i=!!e.length,n=sn();Qi=i?e:pi("body"),nn.fire(i?sn():pi(),n)};function on(){return rn}en((function(){sn(".dx-viewport")}));var an=Ft(),hn=Ot(),un={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"},ln={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},cn={generic(t){var e=/windows phone/i.test(t)||t.match(/WPDesktop/),i=!e&&/Windows(.*)arm(.*)Tablet PC/i.test(t),n=!e&&!i&&/msapphost/i.test(t),r=/((intel|ppc) mac os x)/.test(t.toLowerCase());if(e||i||n||r)return{deviceType:e?"phone":i?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:r}},ios(t){if(/ip(hone|od|ad)/i.test(t)){var e=/ip(hone|od)/i.test(t),i=t.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:e?"phone":"tablet",platform:"ios",version:i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],grade:480===hn.screen.height?"B":"A"}}},android(t){if(/android|htc_|silk/i.test(t)){var e=/mobile/i.test(t),i=t.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2]||0,10),parseInt(i[3]||0,10)]:[];return{deviceType:e?"phone":"tablet",platform:"android",version:n,grade:n.length>1&&(n[0]<4||4===n[0]&&n[1]<4)?"B":"A"}}}},dn=new class{constructor(t){this._window=(null==t?void 0:t.window)||hn,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new Xi(this),this.changed=z(),Mt()&&(Zi.add(this._recalculateOrientation.bind(this)),Yi.add(this._recalculateOrientation.bind(this)))}current(t){if(t)return this._currentDevice=this._getDevice(t),this._forced=!0,void this.changed.fire();if(!this._currentDevice){t=void 0;try{t=this._getDeviceOrNameFromWindowScope()}catch(e){t=this._getDeviceNameFromSessionStorage()}finally{t||(t=this._getDeviceNameFromSessionStorage()),t&&(this._forced=!0)}this._currentDevice=this._getDevice(t)}return this._currentDevice}real(t){return v({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(t){var e=[],i=this._realDevice;return(t=t||this.current()).deviceType&&(e.push("dx-device-".concat(t.deviceType)),"desktop"!==t.deviceType&&e.push("dx-device-mobile")),e.push("dx-device-".concat(i.platform)),i.version&&i.version.length&&e.push("dx-device-".concat(i.platform,"-").concat(i.version[0])),this.isSimulator()&&e.push("dx-simulator"),B().rtlEnabled&&e.push("dx-rtl"),e}attachCssClasses(t,e){this._deviceClasses=this._getCssClasses(e).join(" "),pi(t).addClass(this._deviceClasses)}detachCssClasses(t){pi(t).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||Mt()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(t){return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(t){if("genericPhone"===t&&(t={deviceType:"phone",platform:"generic",generic:!0}),u(t))return this._fromConfig(t);var e;if(t){if(!(e=un[t]))throw E.Error("E0005")}else e=an.userAgent;return this._fromUA(e)}_getDeviceOrNameFromWindowScope(){var t;return Mt()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(t=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),t}_getDeviceNameFromSessionStorage(){var t=function(){var t;try{t=tn.sessionStorage}catch(t){}return t}();if(t){var e=t.getItem("dx-force-device");try{return JSON.parse(e)}catch(t){return e}}}_fromConfig(t){var e=v({},ln,this._currentDevice,t);return v(e,{phone:"phone"===e.deviceType,tablet:"tablet"===e.deviceType,android:"android"===e.platform,ios:"ios"===e.platform,generic:"generic"===e.platform})}_fromUA(t){var e;return m(cn,((i,n)=>!(e=n(t)))),e?this._fromConfig(e):ln}_changeOrientation(){var t=pi(this._window),e=Zt(t)>Jt(t)?"portrait":"landscape";this._currentOrientation!==e&&(this._currentOrientation=e,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:e}]))}_recalculateOrientation(){var t=Jt(this._window);this._currentWidth!==t&&(this._currentWidth=t,this._changeOrientation())}on(t,e){return this._eventsStrategy.on(t,e),this}off(t,e){return this._eventsStrategy.off(t,e),this}},fn=sn();fn&&dn.attachCssClasses(fn),nn.add(((t,e)=>{dn.detachCssClasses(e),dn.attachCssClasses(t)}));var{maxTouchPoints:vn}=Ft(),pn={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},mn=function(t){return!!Xe(t)},gn=function(t,e){return(t("ontouchstart")||!!e)&&!t("callPhantom")}(Rt,vn),xn=Rt("PointerEvent"),bn=gn||xn&&!!vn,_n=ue((function(){return mn("transition")})),yn=ue((function(){return pn[Xe("transition")]})),wn=ue((function(){return mn("animation")})),Sn=function(){var{platform:t,mac:e}=dn.real();return"ios"===t||"android"===t||e}();const En=Object.freeze({__proto__:null,touchEvents:gn,pointerEvents:xn,styleProp:Xe,stylePropPrefix:function(t){return function(t,e){var i;t=qe(t,!0);for(var n=0,r=Je.length;n<r;n++){var s=Je[n],o=s+t;if(void 0===(i=e(qe(o),s))&&(i=e(o,s)),void 0!==i)break}return i||""}(t,(function(t,e){if(t in Ye())return Ze[e]}))},supportProp:mn,inputType:function(t){if("text"===t)return!0;var e=Tt.createElement("input");try{return e.setAttribute("type",t),e.value="wrongValue",!e.value}catch(t){return!1}},touch:bn,transition:_n,transitionEndEventName:yn,animation:wn,nativeScrolling:Sn});var Cn=t=>l(t)?{width:t.outerWidth,height:t.outerHeight}:t.getBoundingClientRect(),In=Ft(),Dn=/(webkit)[ /]([\w.]+)/,Tn=/(mozilla)(?:.*? rv:([\w.]+))/,kn=t=>{t=t.toLowerCase();var e={},i=Dn.exec(t)||t.indexOf("compatible")<0&&Tn.exec(t)||[],n=i[1],r=i[2];return"webkit"===n&&(e.webkit=!0,t.indexOf("chrome")>=0||t.indexOf("crios")>=0?(n="chrome",r=(r=/(?:chrome|crios)\/(\d+\.\d+)/.exec(t))&&r[1]):t.indexOf("fxios")>=0?(n="mozilla",r=(r=/fxios\/(\d+\.\d+)/.exec(t))&&r[1]):t.indexOf("safari")>=0&&/version|phantomjs/.test(t)?(n="safari",r=(r=/(?:version|phantomjs)\/([0-9.]+)/.exec(t))&&r[1]):(n="unknown",r=(r=/applewebkit\/([0-9.]+)/.exec(t))&&r[1])),n&&(e[n]=!0,e.version=r),e};const Mn=v({_fromUA:kn},kn(In.userAgent));var An,On=Ot(),Rn=/left|right/,Fn=/top|bottom/,Pn=/fit|flip|none/,Bn=/scale\(.+?\)/,Hn=Mn.safari,Ln=function(t){var e={h:"center",v:"center"},i=bt(t);return i&&m(i,(function(){var t=String(this).toLowerCase();Rn.test(t)?e.h=t:Fn.test(t)&&(e.v=t)})),e},zn=function(t){return _t(t)},Gn=function(t){switch(t){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},Nn=function(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}},Wn=function(t,e){var i=0;return t.myLocation<e.min&&(i+=e.min-t.myLocation),t.myLocation>e.max&&(i+=t.myLocation-e.max),i},Vn=function(t,e,i){return e.myLocation<i.min?"h"===t?"left":"top":e.myLocation>i.max?"h"===t?"right":"bottom":"none"},Kn=function(t){t.myLocation=t.atLocation+Gn(t.atAlign)*t.atSize-Gn(t.myAlign)*t.mySize+t.offset},Un={fit:function(t,e){var i=!1;t.myLocation>e.max&&(t.myLocation=e.max,i=!0),t.myLocation<e.min&&(t.myLocation=e.min,i=!0),t.fit=i},flip:function(t,e){if(t.flip=!1,("center"!==t.myAlign||"center"!==t.atAlign)&&(t.myLocation<e.min||t.myLocation>e.max)){var i=v({},t,{myAlign:Nn(t.myAlign),atAlign:Nn(t.atAlign),offset:-t.offset});Kn(i),i.oversize=Wn(i,e),(i.myLocation>=e.min&&i.myLocation<=e.max||t.oversize>i.oversize)&&(t.myLocation=i.myLocation,t.oversize=i.oversize,t.flip=!0)}},flipfit:function(t,e){this.flip(t,e),this.fit(t,e)},none:function(t){t.oversize=0}},jn=function(){var t=pi("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(pi("body")),e=t.get(0).offsetWidth-t.get(0).clientWidth;t.remove(),An=e},qn={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},$n=function(t,e){var i=pi(t),n=i.offset(),r=v(!0,{},qn,{h:{location:n.left},v:{location:n.top}});if(!e)return r;var s=Ln(e.my),o=Ln(e.at),a=pi(e.of).length&&e.of||On,h=zn(e.offset),u=function(t){var e=bt(t),i=String(e&&e[0]).toLowerCase(),n=String(e&&e[1]).toLowerCase();return Pn.test(i)||(i="none"),Pn.test(n)||(n=i),{h:i,v:n}}(e.collision),c=e.boundary,d=zn(e.boundaryOffset),f={mySize:Xt(i),myAlign:s.h,atAlign:o.h,offset:h.h,collision:u.h,boundaryOffset:d.h},p={mySize:Qt(i),myAlign:s.v,atAlign:o.v,offset:h.v,collision:u.v,boundaryOffset:d.v};if(a.preventDefault)f.atLocation=a.pageX,p.atLocation=a.pageY,f.atSize=0,p.atSize=0;else if(a=pi(a),l(a[0]))f.atLocation=a.scrollLeft(),p.atLocation=a.scrollTop(),"phone"===dn.real().deviceType&&a[0].visualViewport?(f.atLocation=Math.max(f.atLocation,a[0].visualViewport.offsetLeft),p.atLocation=Math.max(p.atLocation,a[0].visualViewport.offsetTop),f.atSize=a[0].visualViewport.width,p.atSize=a[0].visualViewport.height):(f.atSize=a[0].innerWidth>a[0].outerWidth?a[0].innerWidth:Jt(a),p.atSize=a[0].innerHeight>a[0].outerHeight||Hn?a[0].innerHeight:Zt(a));else if(9===a[0].nodeType)f.atLocation=0,p.atLocation=0,f.atSize=Jt(a),p.atSize=Zt(a);else{var m=Cn(a.get(0)),g=Zn(a);f.atLocation=g.left,p.atLocation=g.top,f.atSize=Math.max(m.width,Xt(a)),p.atSize=Math.max(m.height,Qt(a))}Kn(f),Kn(p);var x=function(){var t=pi(On),e=Jt(t),i=Zt(t),n=t.scrollLeft(),r=t.scrollTop(),s=Tt.getDocumentElement(),o=bn?s.clientWidth/e:1,a=bn?s.clientHeight/i:1;void 0===An&&jn();var h=e,u=i;if(c){var l=pi(c),d=l.offset();n=d.left,r=d.top,h=Jt(l),u=Zt(l)}return{h:{min:n+f.boundaryOffset,max:n+h/o-f.mySize-f.boundaryOffset},v:{min:r+p.boundaryOffset,max:r+u/a-p.mySize-p.boundaryOffset}}}();f.oversize=Wn(f,x.h),p.oversize=Wn(p,x.v),f.collisionSide=Vn("h",f,x.h),p.collisionSide=Vn("v",p,x.v),Un[f.collision]&&Un[f.collision](f,x.h),Un[p.collision]&&Un[p.collision](p,x.v);var b=function(t){return e.precise?t:Math.round(t)};return v(!0,r,{h:{location:b(f.myLocation),oversize:b(f.oversize),fit:f.fit,flip:f.flip,collisionSide:f.collisionSide},v:{location:b(p.myLocation),oversize:b(p.oversize),fit:p.fit,flip:p.flip,collisionSide:p.collisionSide},precise:e.precise}),r},Jn=function(t,e,i,r,s){n(t.style)&&!Tt.isNode(t.style)?t.style.transform=s?i.replace(e,""):i:t.setAttribute("style",s?r.replace(e,""):r)},Zn=function t(e){var i,n,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=s.get(0);if(!o)return e.offset();var a,h=(null===(i=o.getAttribute)||void 0===i?void 0:i.call(o,"style"))||"",u=null===(n=o.style)||void 0===n?void 0:n.transform,l=null===(r=h.match(Bn))||void 0===r?void 0:r[0];return l?(Jn(o,l,u,h,!0),a=t(e,s.parent()),Jn(o,l,u,h,!1)):a=t(e,s.parent()),a},Yn=function(t,e){var i=pi(t);if(!e)return i.offset();Bi(i,!0);var n=Zn(i),r=e.h&&e.v?e:$n(i,e),s=function(t){return e.precise?t:Math.round(t)};return Pi(i,{left:r.h.location-s(n.left),top:r.v.location-s(n.top)}),r};Yn.inverseAlign||(Yn.inverseAlign=Nn),Yn.normalizeAlign||(Yn.normalizeAlign=Ln);const Xn={calculateScrollbarWidth:jn,calculate:$n,setup:Yn,offset:function(t){return t=pi(t).get(0),l(t)?null:t&&"pageY"in t&&"pageX"in t?{top:t.pageY,left:t.pageX}:pi(t).offset()}};var Qn=(t,e)=>{if(!e)throw E.Error("E0017");return Array.isArray(t)?t.map((t=>Qn(t,e))).join(" "):-1!==t.indexOf(" ")?Qn(t.split(/\s+/g),e):"".concat(t,".").concat(e)},tr=function(t,e){if(!function(t){var e=pi(t);return e.is(":visible")&&"hidden"!==e.css("visibility")&&"hidden"!==e.parents().css("visibility")}(t))return!1;var i=t.nodeName.toLowerCase(),n=!isNaN(e),r=t.disabled;return/^(input|select|textarea|button|object|iframe)$/.test(i)||t.isContentEditable?!r:"a"===i&&t.href||n},er=function(t,e){return tr(e,pi(e).attr("tabIndex"))},ir=function(t,e){var i=pi(e).attr("tabIndex");return(isNaN(i)||i>=0)&&tr(e,i)},nr={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"},rr={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"},sr={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},or=t=>"dx"===hr(t),ar=t=>"touch"===hr(t),hr=t=>{var{type:e}=t,i="other";return m(sr,(function(t){if(this.test(e))return i=t,!1})),i},ur=t=>"pointer"===hr(t),lr=t=>(t=>"mouse"===hr(t))(t)||(ur(t)||or(t))&&"mouse"===t.pointerType,cr=t=>t&&"dxmousewheel"===t.type,dr=t=>ar(t)||(ur(t)||or(t))&&"touch"===t.pointerType,fr=t=>{var{pageX:e,pageY:i,timeStamp:n}=t;return{x:e,y:i,time:n}},vr=(t,e)=>({x:e.x-t.x,y:e.y-t.y,time:e.time-t.time||1}),pr=(t,e)=>{var i=(t=>we.Event(t,t))(t);return e&&v(i,e),i},mr=t=>{var{originalEvent:e,delegateTarget:i}=t,n=pr(e,t);return we.trigger(i||n.target,n),n},gr=t=>{var{key:e,which:i}=t,n=nr[null==e?void 0:e.toLowerCase()]||e,r=rr[i];return r&&n===e?r:!n&&i?String.fromCharCode(i):n},xr=Qn,br=t=>{var{ctrlKey:e,metaKey:i}=t;return e||i},_r=Ot(),yr=xr("dxremove","dxFX"),wr=/^([+-])=(.*)/i,Sr={initAnimation:function(t,e){t.css({transitionProperty:"none"}),"string"==typeof e.from?t.addClass(e.from):Kr(t,e.from);var i=this,n=new K,r=e.cleanupWhen;e.transitionAnimation={deferred:n,finish:function(){i._finishTransition(t),r?U(n,r).always((function(){i._cleanup(t,e)})):i._cleanup(t,e),n.resolveWith(t,[e,t])}},this._completeAnimationCallback(t,e).done((function(){e.transitionAnimation.finish()})).fail((function(){n.rejectWith(t,[e,t])})),e.duration||e.transitionAnimation.finish(),t.css("transform")},animate:function(t,e){return this._startAnimation(t,e),e.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(t,e){var i,n=this,r=Date.now()+e.delay,s=new K,o=new K,a=new K,h=yn()+".dxFX";e.transitionAnimation.cleanup=function(){clearTimeout(i),clearTimeout(u),we.off(t,h),we.off(t,yr)},we.one(t,h,(function(){Date.now()-r>=e.duration&&o.reject()})),we.off(t,yr),we.on(t,yr,(function(){n.stop(t,e),s.reject()}));var u=setTimeout((function(){i=setTimeout((function(){a.reject()}),e.duration+e.delay+Ur._simulatedTransitionEndDelay),U(o,a).fail(function(){s.resolve()}.bind(this))}));return s.promise()},_startAnimation:function(t,e){t.css({transitionProperty:"all",transitionDelay:e.delay+"ms",transitionDuration:e.duration+"ms",transitionTimingFunction:e.easing}),"string"==typeof e.to?t[0].className+=" "+e.to:e.to&&Kr(t,e.to)},_finishTransition:function(t){t.css("transition","none")},_cleanup:function(t,e){e.transitionAnimation.cleanup(),"string"==typeof e.from&&(t.removeClass(e.from),t.removeClass(e.to))},stop:function(t,e,i){e&&(i?e.transitionAnimation.finish():(u(e.to)&&m(e.to,(function(e){t.css(e,t.css(e))})),this._finishTransition(t),this._cleanup(t,e)))}},Er={initAnimation:function(t,e){Kr(t,e.from)},animate:function(t,e){var i=new K,n=this;return e?(m(e.to,(function(i){void 0===e.from[i]&&(e.from[i]=n._normalizeValue(t.css(i)))})),e.to.transform&&(e.from.transform=n._parseTransform(e.from.transform),e.to.transform=n._parseTransform(e.to.transform)),e.frameAnimation={to:e.to,from:e.from,currentValue:e.from,easing:Gi(e.easing),duration:e.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),ji(e.frameAnimation.animationFrameId),i.resolve()},draw:function(){if(e.draw)e.draw(this.currentValue);else{var i=v({},this.currentValue);i.transform&&(i.transform=p(i.transform,(function(t,e){return"translate"===e?Ri(t):"scale"===e?"scale("+t+")":"rotate"===e.substr(0,e.length-1)?e+"("+t+"deg)":void 0})).join(" ")),t.css(i)}}},e.delay?(e.frameAnimation.startTime+=e.delay,e.frameAnimation.delayTimeout=setTimeout((function(){n._startAnimation(t,e)}),e.delay)):n._startAnimation(t,e),i.promise()):i.reject().promise()},_startAnimation:function(t,e){we.off(t,yr),we.on(t,yr,(function(){e.frameAnimation&&ji(e.frameAnimation.animationFrameId)})),this._animationStep(t,e)},_parseTransform:function(t){var e={};return m(t.match(/\w+\d*\w*\([^)]*\)\s*/g),(function(t,i){var n=function(t){var e=t.match(Ti);if(e&&e[1])return e=e[1].split(","),{x:parseFloat(e[0]),y:parseFloat(e[1]),z:parseFloat(e[2])}}(i),r=i.match(/scale\((.+?)\)/),s=i.match(/(rotate.)\((.+)deg\)/);n&&(e.translate=n),r&&r[1]&&(e.scale=parseFloat(r[1])),s&&s[1]&&(e[s[1]]=parseFloat(s[2]))})),e},stop:function(t,e,i){var n=e&&e.frameAnimation;n&&(ji(n.animationFrameId),clearTimeout(n.delayTimeout),i&&n.finish(),delete e.frameAnimation)},_animationStep:function(t,e){var i=e&&e.frameAnimation;if(i){var n=(new Date).valueOf();if(n>=i.startTime+i.duration)i.finish();else{i.currentValue=this._calcStepValue(i,n-i.startTime),i.draw();var r=this;i.animationFrameId=Ui((function(){r._animationStep(t,e)}))}}},_calcStepValue:function(t,e){return function i(n,r){var s=Array.isArray(r)?[]:{};return m(r,(function(o,a){if("string"==typeof a&&!1===parseFloat(a,10))return!0;s[o]="object"==typeof a?i(n[o],a):function(i){return zi[t.easing](e/t.duration,e,1*n[i],r[i]-n[i],t.duration)}(o)})),s}(t.from,t.to)},_normalizeValue:function(t){var e=parseFloat(t,10);return!1===e?t:e}},Cr={initAnimation:function(){},animate:function(){return(new K).resolve().promise()},stop:St,isSynchronous:!0},Ir=function(t,e,i,n){m(["from","to"],(function(){if(!i(t[this]))throw E.Error("E0010",e,this,n)}))},Dr=function(t,e){return Ir(t,e,(function(t){return u(t)}),"a plain object")},Tr={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"}},kr={validateConfig:function(t){Dr(t,"slide")},setup:function(t,e){var i=ki(t);if("slide"!==e.type){var n="slideIn"===e.type?e.from:e.to;n.position=v({of:_r},Tr[e.direction]),Vr(t,n)}this._setUpConfig(i,e.from),this._setUpConfig(i,e.to),Oi(t)},_setUpConfig:function(t,e){e.left="left"in e?e.left:"+=0",e.top="top"in e?e.top:"+=0",this._initNewPosition(t,e)},_initNewPosition:function(t,e){var i={left:e.left,top:e.top};delete e.left,delete e.top;var n=this._getRelativeValue(i.left);void 0!==n?i.left=n+t.left:e.left=0,void 0!==(n=this._getRelativeValue(i.top))?i.top=n+t.top:e.top=0,e.transform=Ri({x:i.left,y:i.top})},_getRelativeValue:function(t){var e;if("string"==typeof t&&(e=wr.exec(t)))return parseInt(e[1]+"1")*e[2]}},Mr={setup:function(t,e){var i,n,r=e.from,s=e.to,o="fadeOut"===e.type?1:0,a="fadeOut"===e.type?0:1,h=u(r)?String(null!==(i=r.opacity)&&void 0!==i?i:o):String(r),l=u(s)?String(null!==(n=s.opacity)&&void 0!==n?n:a):String(s);switch(e.skipElementInitialStyles||(h=t.css("opacity")),e.type){case"fadeIn":l=1;break;case"fadeOut":l=0}e.from={visibility:"visible",opacity:h},e.to={opacity:l}}},Ar={custom:{setup:function(){}},slide:kr,slideIn:kr,slideOut:kr,fade:Mr,fadeIn:Mr,fadeOut:Mr,pop:{validateConfig:function(t){Dr(t,"pop")},setup:function(t,e){var i=e.from,n=e.to,r="opacity"in i?i.opacity:t.css("opacity"),s="opacity"in n?n.opacity:1,o="scale"in i?i.scale:0,a="scale"in n?n.scale:1;e.from={opacity:r};var h=Fi(t);e.from.transform=this._getCssTransform(h,o),e.to={opacity:s},e.to.transform=this._getCssTransform(h,a)},_getCssTransform:function(t,e){return Ri(t)+"scale("+e+")"}},css:{validateConfig:function(t){!function(t){Ir(t,"css",(function(t){return"string"==typeof t}),"a string")}(t)},setup:function(){}}},Or={type:"custom",from:{},to:{},duration:400,start:St,complete:St,easing:"ease",delay:0},Rr={duration:400,easing:"ease",delay:0};function Fr(){var t=this.element,e=this.config;if(Vr(t,e.from),Vr(t,e.to),this.configurator.setup(t,e),t.data("dxAnimData",this),Ur.off&&(e.duration=0,e.delay=0),this.strategy.initAnimation(t,e),e.start){var i=Ii(t);e.start.apply(this,[i,e])}}var Pr=function(){var t=this,e=t.element,i=t.config;return t.isStarted=!0,t.strategy.animate(e,i).done((function(){!function(t){var e=t.element,i=t.config;if(e.removeData("dxAnimData"),i.complete){var n=Ii(e);i.complete.apply(this,[n,i])}t.deferred.resolveWith(this,[e,i])}(t)})).fail((function(){t.deferred.rejectWith(this,[e,i])}))},Br=function(t){var e=this.element,i=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(e,i,t)},Hr=xr("dxremove","dxFXStartAnimation"),Lr=function(t,e){var i=v(!0,{},"css"===e.type?Rr:Or,e),n=function(t){var e=Ar[t.type];if(!e)throw E.Error("E0011",t.type);return e}(i),s=function(t){t=t||{};var e={transition:_n()?Sr:Er,frame:Er,noAnimation:Cr},i=t.strategy||"transition";return"css"!==t.type||_n()||(i="noAnimation"),e[i]}(i),o={element:pi(t),config:i,configurator:n,strategy:s,isSynchronous:s.isSynchronous,setup:Fr,start:Pr,stop:Br,deferred:new K};return r(n.validateConfig)&&n.validateConfig(i),function(t){we.off(t.element,Hr),we.on(t.element,Hr,(function(){Ur.stop(t.element)})),t.deferred.always((function(){we.off(t.element,Hr)}))}(o),o};function zr(t){return t.data("dxAnimQueue")||[]}var Gr=function(t){t.removeData("dxAnimQueue")};function Nr(t){return!!t.data("dxAnimData")}function Wr(t,e){if((e=zr(t)).length){var i=e.shift();0===e.length&&Gr(t),function(t){return t.setup(),Ur.off||t.isSynchronous?t.start():t.startTimeout=setTimeout((function(){t.start()})),t.deferred.promise()}(i).done((function(){Nr(t)||Wr(t)}))}}function Vr(t,e){if(e&&e.position){var i=pi(_r),n=0,r=0,s=Xn.calculate(t,e.position),o=t.offset(),a=t.position();a.top>o.top&&(r=i.scrollTop()),a.left>o.left&&(n=i.scrollLeft()),v(e,{left:s.h.location-o.left+a.left-n,top:s.v.location-o.top+a.top-r}),delete e.position}}function Kr(t,e){m(e,(function(e,i){try{t.css(e,r(i)?i():i)}catch(t){}}))}var Ur={off:!1,animationTypes:Ar,animate:function(t,e){var i=pi(t);if(!i.length)return(new K).resolve().promise();var n=Lr(i,e);return function(t,e){var i=zr(t);(function(t,e){t.data("dxAnimQueue",e)})(t,i),i.push(e),Nr(t)||Wr(t,i)}(i,n),n.deferred.promise()},createAnimation:Lr,isAnimating:Nr,stop:function(t,e){var i=pi(t),n=zr(i);m(n,(function(t,e){e.config.delay=0,e.config.duration=0,e.isSynchronous=!0})),Nr(i)||Wr(i,n);var r=i.data("dxAnimData");r&&r.stop(e),i.removeData("dxAnimData"),Gr(i)},_simulatedTransitionEndDelay:100},jr=Ot(),qr=()=>{var t,e=Tt.getActiveElement();e&&e!==Tt.getBody()&&(null===(t=e.blur)||void 0===t||t.call(e))},$r=t=>{var e=(t=pi(t)).length&&t.filter((function(){var t=pi(this);return t.is("script[type]")&&t.attr("type").indexOf("script")<0}));return e.length?e.eq(0).html():(t=pi("<div>").append(t)).html()},Jr=t=>{var e=n(t)&&(t.nodeType||c(t))?pi(t):pi("<div>").html(t).contents();return 1===e.length&&(e.is("script")?e=Jr(e.html().trim()):e.is("table")&&(e=e.children("tbody").contents())),e},Zr=(t,e)=>!!e&&(Tt.isTextNode(e)&&(e=e.parentNode),Tt.isDocument(t)?t.documentElement.contains(e):l(t)?Zr(t.document,e):t.contains?t.contains(e):!!(e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_CONTAINS));function Yr(t){return t&&[t.target,t.delegateTarget,t.relatedTarget,t.currentTarget].filter((t=>!!t))}var Xr=O.inherit({ctor:function(t,e){this._eventName=t,this._originalEvents=xr(e,"dxPointerEvents"),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var t=this._eventName;return"dxpointerenter"===t||"dxpointerleave"===t},_handler:function(t){var e,i=this._getDelegateTarget(t),n={type:this._eventName,pointerType:t.pointerType||hr(t),originalEvent:t,delegateTarget:i,timeStamp:Mn.mozilla?(new Date).getTime():t.timeStamp},r=t.originalEvent;if(null!=r&&null!==(e=r.target)&&void 0!==e&&e.shadowRoot){var s,o,a=null!==(s=r.path)&&void 0!==s?s:null===(o=r.composedPath)||void 0===o?void 0:o.call(r);n.target=a[0]}return this._fireEvent(n)},_getDelegateTarget:function(t){var e;return this.noBubble&&(e=t.delegateTarget),e},_fireEvent:function(t){return mr(t)},_setSelector:function(t){this._selector=this.noBubble&&t?t.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(t,e){if(this._handlerCount<=0||this.noBubble){t=this.noBubble?t:Tt.getDocument(),this._setSelector(e);var i=this;we.on(t,this._originalEvents,this._getSelector(),(function(t){i._handler(t)}))}this.noBubble||this._handlerCount++},remove:function(t){this._setSelector(t),this.noBubble||this._handlerCount--},teardown:function(t){this._handlerCount&&!this.noBubble||(t=this.noBubble?t:Tt.getDocument(),".dxPointerEvents"!==this._originalEvents&&we.off(t,this._originalEvents,this._getSelector()))},dispose:function(t){t=this.noBubble?t:Tt.getDocument(),we.off(t,this._originalEvents)}}),Qr=function(t){var e=[];return m(t.touches,(function(t,i){e.push(v({pointerId:i.identifier},i))})),{pointers:e,pointerId:t.changedTouches[0].identifier}},ts=function(t){return"ios"===dn.real().platform&&("dxpointerdown"===t||"dxpointerup"===t)},es=Xr.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(t){if(ts(this._eventName)){var e=t.changedTouches[0];if(this._pointerId===e.identifier&&0!==this._pointerId)return;this._pointerId=e.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(t){return this.callBase(v(Qr(t.originalEvent),t))}});es.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},es.normalize=Qr;var is,ns=function(t,e){Zi.add((function(){t.split(" ").forEach((function(t){Tt.listen(Tt.getDocument(),t,e,!0)}))}))},rs=function(t,e,i){i=i||function(){};var n=[],r=function(t){var i=-1;return m(n,(function(n,r){return!e(t,r)||(i=n,!1)})),i},s=function(t){var e=r(t);e>-1&&n.splice(e,1)};ns(t.dxpointerdown,(function(t){-1===r(t)&&(i(t),n.push(t))})),ns(t.dxpointermove,(function(t){n[r(t)]=t})),ns(t.dxpointerup,s),ns(t.dxpointercancel,s),this.pointers=function(){return n},this.reset=function(){n=[]}},ss={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},os=function(t){return t.pointerId=1,{pointers:is.pointers(),pointerId:1}},as=!1,hs=function(){as||(is=new rs(ss,(function(){return!0})),as=!0)},us=Xr.inherit({ctor:function(){this.callBase.apply(this,arguments),hs()},_fireEvent:function(t){return this.callBase(v(os(t.originalEvent),t))}});us.map=ss,us.normalize=os,us.activate=hs,us.resetObserver=function(){is.reset()};var ls=!1,cs=function(){ls||(us.activate(),ls=!0)},ds=Xr.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),cs()},_handler:function(t){var e=lr(t);if(e||(this._skipNextEvents=!0),!e||!this._mouseLocked){if(!e||!this._skipNextEvents)return this.callBase(t);this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var i=this;this._unlockMouseTimer=setTimeout((function(){i._mouseLocked=!1}),this.EVENT_LOCK_TIMEOUT)}},_fireEvent:function(t){var e=lr(t.originalEvent)?us.normalize:es.normalize;return this.callBase(v(e(t.originalEvent),t))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});ds.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},ds.resetObserver=us.resetObserver;var fs=((t,e)=>{var{tablet:i,phone:n}=e;return!t.touch||i||n?t.touch?es:us:ds})(En,dn.real());m(fs.map,((t,e)=>{gi(t,new fs(t,e))}));var vs={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"},ps=O.inherit({ctor:function(t){this._$element=pi(t),this._cancelCallback=z(),this._acceptCallback=z()},getElement:function(){return this._$element},validate:function(t){return!cr(t)},validatePointers:function(t){return 1===(t=>{var{originalEvent:e,pointers:i}=t;return ar(t)?(e.touches||[]).length:or(t)?(i||[]).length:0})(t)},allowInterruptionByMouseWheel:function(){return!0},configure:function(t){v(this,t)},addCancelCallback:function(t){this._cancelCallback.add(t)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(t){this._cancelCallback.fire(this,t)},addAcceptCallback:function(t){this._acceptCallback.add(t)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(t){this._acceptCallback.fire(this,t)},_requestAccept:function(t){this._acceptRequestEvent=t},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:St,move:St,end:St,cancel:St,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(t,e,i){var n=v({type:t,originalEvent:e,target:this._getEmitterTarget(e),delegateTarget:this.getElement().get(0)},i);return(e=mr(n)).cancel&&this._cancel(e),e},_getEmitterTarget:function(t){return(this.delegateSelector?pi(t.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:St}),ms={setup:function(t){var e=pi(t);we.on(e,xr("wheel","dxWheel"),ms._wheelHandler.bind(ms))},teardown:function(t){we.off(t,".".concat("dxWheel"))},_wheelHandler:function(t){var{deltaMode:e,deltaY:i,deltaX:n,deltaZ:r}=t.originalEvent;mr({type:"dxmousewheel",originalEvent:t,delta:this._normalizeDelta(i,e),deltaX:n,deltaY:i,deltaZ:r,deltaMode:e,pointerType:"mouse"}),t.stopPropagation()},_normalizeDelta(t){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-t:-30*t}};gi("dxmousewheel",ms);var gs=new(O.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){Zi.add(function(){var t=Tt.getDocument();we.subscribeGlobal(t,xr(vs.down,"dxEventManager"),this._pointerDownHandler.bind(this)),we.subscribeGlobal(t,xr(vs.move,"dxEventManager"),this._pointerMoveHandler.bind(this)),we.subscribeGlobal(t,xr([vs.up,vs.cancel].join(" "),"dxEventManager"),this._pointerUpHandler.bind(this)),we.subscribeGlobal(t,xr("dxmousewheel","dxEventManager"),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(t){for(var e=this._activeEmitters||[],i=0;e.length>i;){var n=e[i];if(!1===t(n))break;e[i]===n&&i++}},_applyToEmitters:function(t,e){this._eachEmitter((function(i){i[t].call(i,e)}))},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(t){this._proxiedCancelHandler(t)},_pointerDownHandler:function(t){lr(t)&&t.which>1||this._updateEmitters(t)},_updateEmitters:function(t){this._isSetChanged(t)&&(this._cleanEmitters(t),this._fetchEmitters(t))},_isSetChanged:function(t){var e=this._closestEmitter(t),i=this._emittersSet||[],n=e.length!==i.length;return m(e,(function(t,e){return!(n=n||i[t]!==e)})),this._emittersSet=e,n},_closestEmitter:function(t){var e=this,i=[],n=pi(t.target);function r(n,r){r&&r.validatePointers(t)&&r.validate(t)&&(r.addCancelCallback(e._proxiedCancelHandler),r.addAcceptCallback(e._proxiedAcceptHandler),i.push(r))}for(;n.length;){var s=Ne(n.get(0),"dxEmitter")||[];m(s,r),n=n.parent()}return i},_acceptHandler:function(t,e){var i=this;this._eachEmitter((function(n){n!==t&&i._cancelEmitter(n,e)}))},_cancelHandler:function(t,e){this._cancelEmitter(t,e)},_cancelEmitter:function(t,e){var i=this._activeEmitters;e?t.cancel(e):t.reset(),t.removeCancelCallback(),t.removeAcceptCallback();var n=i.indexOf(t);n>-1&&i.splice(n,1)},_cleanEmitters:function(t){this._applyToEmitters("end",t),this.reset(t)},_fetchEmitters:function(t){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",t)},_pointerMoveHandler:function(t){this._applyToEmitters("move",t)},_pointerUpHandler:function(t){this._updateEmitters(t)},_mouseWheelHandler:function(t){this._allowInterruptionByMouseWheel()&&(t.pointers=[null],this._pointerDownHandler(t),this._adjustWheelEvent(t),this._pointerMoveHandler(t),t.pointers=[],this._pointerUpHandler(t))},_allowInterruptionByMouseWheel:function(){var t=!0;return this._eachEmitter((function(e){return t=e.allowInterruptionByMouseWheel()&&t})),t},_adjustWheelEvent:function(t){var e=null;if(this._eachEmitter((function(i){if(i.gesture){var n=i.getDirection(t);return"horizontal"!==n&&!t.shiftKey||"vertical"!==n&&t.shiftKey?(e=i,!1):void 0}})),e){var i=e.getDirection(t);t["both"===i&&!t.shiftKey||"vertical"===i?"pageY":"pageX"]+=t.delta}},isActive:function(t){var e=!1;return this._eachEmitter((function(i){e=e||i.getElement().is(t)})),e}})),xs=function(t){var e=t.emitter,i=t.events[0],n=t.events;m(n,(function(r,s){gi(s,{noBubble:!t.bubble,setup:function(t){var n=Ne(t,"dxEmitterSubscription")||{},r=Ne(t,"dxEmitter")||{},o=r[i]||new e(t);n[s]=!0,r[i]=o,Ne(t,"dxEmitter",r),Ne(t,"dxEmitterSubscription",n)},add:function(t,e){Ne(t,"dxEmitter")[i].configure(v({delegateSelector:e.selector},e.data),e.type)},teardown:function(t){var e=Ne(t,"dxEmitterSubscription"),r=Ne(t,"dxEmitter"),o=r[i];delete e[s];var a=!0;m(n,(function(t,i){return a=a&&!e[i]})),a&&(gs.isActive(t)&&gs.resetEmitter(o),o&&o.dispose(),delete r[i])}})}))},bs=null,_s=null,ys=()=>{_s=null},ws=function(t){var e=t.originalEvent;t.which&&1!==t.which||bs||_s===e||e&&e.DXCLICK_FIRED||(e&&(e.DXCLICK_FIRED=!0),((t,e)=>{we.off(Yr(_s),"dxremove",e)})(0,ys),((t,e)=>{we.one(Yr(t),"dxremove",e)})(_s=e,ys),mr({type:"dxclick",originalEvent:t}))},Ss=ps.inherit({ctor:function(t){this.callBase(t),we.on(this.getElement(),"click",ws)},start:function(){bs=null},cancel:function(){bs=!0},dispose:function(){we.off(this.getElement(),"click",ws)}});!function(){if(!dn.real().generic){var t=null,e=!1,i=Tt.getDocument();we.subscribeGlobal(i,xr(vs.down,"NATIVE_CLICK_FIXER"),(function(i){t=i.target,e=i.isDefaultPrevented()})),we.subscribeGlobal(i,xr("click","NATIVE_CLICK_FIXER"),(function(i){var n=pi(i.target);e||!t||n.is(t)||pi(t).is("label")||!pi(n).is("input, textarea, select, button ,:focus, :focus *")||qr(),t=null,e=!1}))}}(),xs({emitter:Ss,bubble:!0,events:["dxclick"]});var Es=function(t){return 0===t?0:t/Math.abs(t)},Cs=function(t,e,i){var n=!e&&0!==e,r=!i&&0!==i;return n&&(e=r?t:Math.min(t,i)),r&&(i=n?t:Math.max(t,e)),Math.min(Math.max(t,e),i)},Is=function(t,e,i){return t>=e&&t<=i};function Ds(t,e){var i=function(t){var e=t.toExponential().split("e"),i=parseFloat(e[0]);return{exponent:parseInt(e[1]),mantissa:i}}(t);return parseFloat("".concat(i.mantissa,"e").concat(i.exponent+e))}var Ts=Zi.add,ks=Math.abs,Ms=10,As=ue((function(){var t="desktop"===dn.real().deviceType;if(!Xe("pointer-events")||!t)return St;var e=pi("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return we.subscribeGlobal(e,"dxmousewheel",(function(t){t.preventDefault()})),Ts((function(){e.appendTo("body")})),function(t,i){e.css("pointerEvents",t?"all":"none"),t&&e.css("cursor",i)}})),Os=ps.inherit({gesture:!0,configure:function(t){this.getElement().css("msTouchAction",t.immediate?"pinch-zoom":""),this.callBase(t)},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(t){t._needSkipEvent||(t=>{var e,{target:i}=t,n=pi(i),r=(null==i?void 0:i.isContentEditable)||(null==i?void 0:i.hasAttribute("contenteditable")),s=n.is("input, textarea, select")||r;return cr(t)?!(n.is("textarea")&&n.hasClass("dx-texteditor-input")||r)&&n.is("input[type='number'], textarea, select")&&n.is(":focus"):lr(t)?s||t.which>1:dr(t)?s&&(e=pi(n).get(0),Tt.getActiveElement(e)===e):void 0})(t)?this._cancel(t):(this._startEvent=pr(t),this._startEventData=fr(t),this._stage=1,this._init(t),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(t){if(1===this._stage&&this._directionConfirmed(t)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(t),this._adjustStartEvent(t),this._start(this._startEvent),0===this._stage)return;this._requestAccept(t),this._move(t),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(t),this._move(t))},_directionConfirmed:function(t){var e=this._getTouchBoundary(t),i=vr(this._startEventData,fr(t)),n=ks(i.x),r=ks(i.y),s=this._validateMove(e,n,r),o=this._validateMove(e,r,n),a=this.getDirection(t);return"both"===a&&(s||o)||"horizontal"===a&&s||"vertical"===a&&o||this._immediateAccepted},_validateMove:function(t,e,i){return e&&e>=t&&(!this.immediate||e>=i)},_getTouchBoundary:function(t){return this.immediate||cr(t)?0:Ms},_adjustStartEvent:function(t){var e=this._getTouchBoundary(t),i=vr(this._startEventData,fr(t));this._startEvent.pageX+=Es(i.x)*e,this._startEvent.pageY+=Es(i.y)*e},_resetActiveElement:function(){"ios"===dn.real().platform&&this.getElement().find(":focus").length&&qr()},_toggleGestureCover:function(t){this._toggleGestureCoverImpl(t)},_toggleGestureCoverImpl:function(t){2===this._stage&&function(t,e){As()(t,e)}(t,this.getElement().css("cursor"))},_clearSelection:function(t){cr(t)||dr(t)||(()=>{var t=jr.getSelection();if(t&&"Caret"!==t.type)if(t.empty)t.empty();else if(t.removeAllRanges)try{t.removeAllRanges()}catch(t){}})()},end:function(t){this._toggleGestureCover(!1),2===this._stage?this._end(t):1===this._stage&&this._stop(t),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:St,_start:St,_move:St,_stop:St,_end:St});Os.initialTouchBoundary=Ms,Os.touchBoundary=function(t){if(!n(t))return Ms;Ms=t};var Rs={horizontal:{defaultItemSizeFunc:function(){return Jt(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(t){return(fr(t).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,t)},isFastSwipe:function(t){var e=fr(t);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(e.x-this._tickData.x)>=e.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return Zt(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(t){return(fr(t).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,t)},isFastSwipe:function(t){var e=fr(t);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(e.y-this._tickData.y)>=e.time-this._tickData.time}}};xs({emitter:Os.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(t){this.callBase(t),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return Rs[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(t){this._tickData=fr(t)},_start:function(t){this._savedEventData=fr(t),(t=this._fireEvent("dxswipestart",t)).cancel||(this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset)},_move:function(t){var e=this._getStrategy(),i=fr(t),n=e.calcOffsetRatio.call(this,t);n=this._fitOffset(n,this.elastic),i.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=i),this._fireEvent("dxswipe",t,{offset:n}),t.preventDefault()},_end:function(t){var e=this._getStrategy(),i=e.calcOffsetRatio.call(this,t),n=e.isFastSwipe.call(this,t),r=i,s=this._calcTargetOffset(i,n);r=this._fitOffset(r,this.elastic),s=this._fitOffset(s,!1),this._fireEvent("dxswipeend",t,{offset:r,targetOffset:s})},_fitOffset:function(t,e){var i=this._getStrategy().getBounds.call(this);return t<-i[0]?e?(-2*i[0]+t)/3:-i[0]:t>i[1]?e?(2*i[1]+t)/3:i[1]:t},_calcTargetOffset:function(t,e){var i;return e?(i=Math.ceil(Math.abs(t)),t<0&&(i=-i)):i=Math.round(t),i}}),events:["dxswipestart","dxswipe","dxswipeend"]});const Fs={"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-MV":"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","hi-Latn":"en-IN","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","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"},Ps=(t,e)=>{var i=t[e];return i?"root"!==i&&i:e.substr(0,e.lastIndexOf("-"))},Bs=R({locale:(Hs="en",t=>{if(!t)return Hs;Hs=t}),getValueByClosestLocale:function(t){for(var e,i=this.locale(),n=t(i);!n&&!e;)(i=Ps(Fs,i))?n=t(i):e=!0;return void 0===n&&"en"!==i?t("en"):n}});var Hs,Ls=v(!0,{},{en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",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 a file","dxFileUploader-dropFile":"or Drop a 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 to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","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","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","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-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","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-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","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 a 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-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","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}"}}),zs={},Gs=R({engine:function(){return"base"},_dictionary:Ls,load:function(t){v(!0,this._dictionary,t)},_localizablePrefix:"@",setup:function(t){this._localizablePrefix=t},localizeString:function(t){var e=this,i=new RegExp("(^|[^a-zA-Z_0-9"+e._localizablePrefix+"-]+)("+e._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),n=e._localizablePrefix+e._localizablePrefix;return t.replace(i,((t,i,r,s)=>{var o,a=e._localizablePrefix+s;return r!==n&&(o=e.format(s)),o||(zs[s]=function(t){return Ue(function(t){return p(je(t),(function(t){return t.toLowerCase()})).join("-")}(t).replace(/-/g," "))}(s)),i+(o||a)}))},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(t){return t?zs:v({},zs,this.getMessagesByLocales()[Bs.locale()])},getFormatter:function(t){return this._getFormatterBase(t)||this._getFormatterBase(t,"en")},_getFormatterBase:function(t){var e=Bs.getValueByClosestLocale((e=>((t,e)=>this._dictionary[e]||{})(0,e)[t]));if(e)return function(){var t=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return t.unshift(e),y.apply(this,t)}},format:function(t){var e=this.getFormatter(t),i=Array.prototype.slice.call(arguments,1);return e&&e.apply(this,i)||""}}),Ns=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:e,waveSizeCoefficient:i,isCentered:n,wavesNumber:r}=t;return{waveSizeCoefficient:i||2,isCentered:n||!1,wavesNumber:r||1,durations:Us(null==e||e)}},Ws=function(t,e){for(var i=function(t){var e=t.children(".dx-inkripple");return 0===e.length&&(e=pi("<div>").addClass("dx-inkripple").appendTo(t)),e}(pi(t)),n=i.children(".dx-inkripple-wave").toArray(),r=n.length;r<e;r++){var s=pi("<div>").appendTo(i).addClass("dx-inkripple-wave");n.push(s[0])}return pi(n)};function Vs(t,e){var i=Ws(e.element,t.wavesNumber).eq(e.wave||0);t.hidingTimeout&&clearTimeout(t.hidingTimeout),js(i),i.css(function(t,e){var i,n,r=pi(e.element),s=Xt(r),o=Qt(r),a=parseInt(Math.sqrt(s*s+o*o)),h=Math.min(4e3,parseInt(a*t.waveSizeCoefficient));if(t.isCentered)i=(s-h)/2,n=(o-h)/2;else{var u=e.event,l=r.offset();i=u.pageX-l.left-h/2,n=u.pageY-l.top-h/2}return{left:i,top:n,height:h,width:h}}(t,e)),t.showingTimeout=setTimeout(Ks.bind(this,t,i),0)}function Ks(t,e){var i=t.durations.showingScale+"ms";e.addClass("dx-inkripple-showing").css("transitionDuration",i)}function Us(t){return{showingScale:t?1e3:300,hidingScale:300,hidingOpacity:300}}function js(t){t.removeClass("dx-inkripple-hiding").css("transitionDuration","")}function qs(t,e){t.showingTimeout&&clearTimeout(t.showingTimeout);var i=Ws(e.element,e.wavesNumber).eq(e.wave||0),n=t.durations,r=n.hidingScale+"ms, "+n.hidingOpacity+"ms";i.addClass("dx-inkripple-hiding").removeClass("dx-inkripple-showing").css("transitionDuration",r);var s=Math.max(n.hidingScale,n.hidingOpacity);t.hidingTimeout=setTimeout(js.bind(this,i),s)}var $s=O.inherit({ctor:function(t,e,i){this._$element=t,this._options=e,this._rawData=i,yi(t,this,this._dispose),this._render()},_render:function(){var t=pi("<div>").addClass("dx-item-content-placeholder");this._$element.append(t),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(t,e){var i=this._rawData,n=this._options.fieldGetter(t),r=function(t,e,i){var n,r=function(t){n!==t&&(i(t,n),n=t)};return{dispose:t(e,r),force:function(){r(e())}}}(this._options.watchMethod(),(function(){return n(i)}),function(t,i){this._dirty=!0,e(t,i)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,m(this._watchers,(function(t,e){e.force()})),this._dirty)return!0},_renderDisabled:function(t){this._$element.toggleClass("dx-state-disabled",!!t),this._updateOwnerFocus(t)},_updateOwnerFocus:function(t){var e=this._options.owner;e&&t&&e._resetItemFocus(this._$element)},_renderVisible:function(t){this._$element.toggleClass("dx-state-invisible",void 0!==t&&!t)},_dispose:function(){m(this._watchers,(function(t,e){e.dispose()}))}});$s.getInstance=function(t){return wi(t,this)};var Js=$s.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(t){if(this._$element.children(".dx-list-item-badge-container").remove(),t){var e=pi("<div>").addClass("dx-list-item-badge-container").append(pi("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(t)),i=this._$element.children(".dx-list-item-chevron-container").first();i.length>0?e.insertBefore(i):e.appendTo(this._$element)}},_renderShowChevron:function(t){if(this._$element.children(".dx-list-item-chevron-container").remove(),t){var e=pi("<div>").addClass("dx-list-item-chevron-container"),i=pi("<div>").addClass("dx-list-item-chevron");e.append(i).appendTo(this._$element)}}});function Zs(t,e){var i=Math.pow(10,e);return function(t){return Es(t)*Math.round(Math.abs(t))}(Ds(t,e))/i}function Ys(t,e){var i=e||0,n=i>0?Zs(...arguments):t;return n.toFixed(i)}var Xs={thousandsSeparator:",",decimalSeparator:"."};function Qs(t){return t.toString().split("").reverse().join("")}function to(t){return t.replace(/'.+'/g,"")}function eo(t){if(!t)return 0;var e=to(t);return e.length-e.replace(/[#]/g,"").length}function io(t){if(!t)return 0;var e=to(t);return e.length-e.replace(/[0]/g,"").length}function no(t,e,i){if(!t)return"";for(t.length>i&&(t=t.substr(0,i));t.length>e&&"0"===t.slice(-1);)t=t.substr(0,t.length-1);for(;t.length<e;)t+="0";return t}function ro(t,e){return t.split("'").map((function(t,i){var n=i%2;return!t&&n?"'":n?t:t.replace(/[,#0]+/,e)})).join("")}const so={_formatNumberCore:function(t,e,i){if("currency"===e){i.precision=i.precision||0;var n=this.format(t,v({},i,{type:"fixedpoint"})),r=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return n.replace(/^(\D*)(\d.*)/,"$1"+r+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}},oo={af:"¤#,##0.00;(¤#,##0.00)","af-NA":"¤#,##0.00;(¤#,##0.00)",agq:"#,##0.00¤",ak:"¤#,##0.00",am:"¤#,##0.00;(¤#,##0.00)",ar:"¤#,##0.00;(¤#,##0.00)","ar-AE":"¤#,##0.00;(¤#,##0.00)","ar-BH":"¤#,##0.00;(¤#,##0.00)","ar-DJ":"¤#,##0.00;(¤#,##0.00)","ar-DZ":"¤#,##0.00;(¤#,##0.00)","ar-EG":"¤#,##0.00;(¤#,##0.00)","ar-EH":"¤#,##0.00;(¤#,##0.00)","ar-ER":"¤#,##0.00;(¤#,##0.00)","ar-IL":"¤#,##0.00;(¤#,##0.00)","ar-IQ":"¤#,##0.00;(¤#,##0.00)","ar-JO":"¤#,##0.00;(¤#,##0.00)","ar-KM":"¤#,##0.00;(¤#,##0.00)","ar-KW":"¤#,##0.00;(¤#,##0.00)","ar-LB":"¤#,##0.00;(¤#,##0.00)","ar-LY":"¤#,##0.00;(¤#,##0.00)","ar-MA":"¤#,##0.00;(¤#,##0.00)","ar-MR":"¤#,##0.00;(¤#,##0.00)","ar-OM":"¤#,##0.00;(¤#,##0.00)","ar-PS":"¤#,##0.00;(¤#,##0.00)","ar-QA":"¤#,##0.00;(¤#,##0.00)","ar-SA":"¤#,##0.00;(¤#,##0.00)","ar-SD":"¤#,##0.00;(¤#,##0.00)","ar-SO":"¤#,##0.00;(¤#,##0.00)","ar-SS":"¤#,##0.00;(¤#,##0.00)","ar-SY":"¤#,##0.00;(¤#,##0.00)","ar-TD":"¤#,##0.00;(¤#,##0.00)","ar-TN":"¤#,##0.00;(¤#,##0.00)","ar-YE":"¤#,##0.00;(¤#,##0.00)",as:"¤ #,##,##0.00",asa:"#,##0.00 ¤",ast:"#,##0.00 ¤",az:"#,##0.00 ¤","az-Cyrl":"#,##0.00 ¤","az-Latn":"#,##0.00 ¤",bas:"#,##0.00 ¤",be:"#,##0.00 ¤","be-tarask":"#,##0.00 ¤",bem:"¤#,##0.00;(¤#,##0.00)",bez:"#,##0.00¤",bg:"0.00 ¤;(0.00 ¤)",bm:"¤#,##0.00;(¤#,##0.00)",bn:"#,##,##0.00¤;(#,##,##0.00¤)","bn-IN":"#,##,##0.00¤;(#,##,##0.00¤)",bo:"¤ #,##0.00","bo-IN":"¤ #,##0.00",br:"#,##0.00 ¤",brx:"¤ #,##,##0.00",bs:"#,##0.00 ¤","bs-Cyrl":"#,##0.00 ¤","bs-Latn":"#,##0.00 ¤",ca:"#,##0.00 ¤;(#,##0.00 ¤)","ca-AD":"#,##0.00 ¤;(#,##0.00 ¤)","ca-ES-valencia":"#,##0.00 ¤;(#,##0.00 ¤)","ca-FR":"#,##0.00 ¤;(#,##0.00 ¤)","ca-IT":"#,##0.00 ¤;(#,##0.00 ¤)",ccp:"#,##,##0.00¤;(#,##,##0.00¤)","ccp-IN":"#,##,##0.00¤;(#,##,##0.00¤)",ce:"#,##0.00 ¤",ceb:"¤#,##0.00;(¤#,##0.00)",cgg:"¤#,##0.00",chr:"¤#,##0.00;(¤#,##0.00)",ckb:"¤ #,##0.00","ckb-IR":"¤ #,##0.00",cs:"#,##0.00 ¤",cy:"¤#,##0.00;(¤#,##0.00)",da:"#,##0.00 ¤","da-GL":"#,##0.00 ¤",dav:"¤#,##0.00;(¤#,##0.00)",de:"#,##0.00 ¤","de-AT":"#,##0.00 ¤","de-BE":"#,##0.00 ¤","de-CH":"#,##0.00 ¤","de-IT":"#,##0.00 ¤","de-LI":"#,##0.00 ¤","de-LU":"#,##0.00 ¤",dje:"#,##0.00¤",doi:"¤#,##0.00",dsb:"#,##0.00 ¤",dua:"#,##0.00 ¤",dyo:"#,##0.00 ¤",dz:"¤#,##,##0.00",ebu:"¤#,##0.00;(¤#,##0.00)",ee:"¤#,##0.00;(¤#,##0.00)","ee-TG":"¤#,##0.00;(¤#,##0.00)",el:"#,##0.00 ¤","el-CY":"#,##0.00 ¤",en:"¤#,##0.00;(¤#,##0.00)","en-001":"¤#,##0.00;(¤#,##0.00)","en-150":"#,##0.00 ¤","en-AE":"¤#,##0.00;(¤#,##0.00)","en-AG":"¤#,##0.00;(¤#,##0.00)","en-AI":"¤#,##0.00;(¤#,##0.00)","en-AS":"¤#,##0.00;(¤#,##0.00)","en-AT":"¤ #,##0.00","en-AU":"¤#,##0.00;(¤#,##0.00)","en-BB":"¤#,##0.00;(¤#,##0.00)","en-BE":"#,##0.00 ¤","en-BI":"¤#,##0.00;(¤#,##0.00)","en-BM":"¤#,##0.00;(¤#,##0.00)","en-BS":"¤#,##0.00;(¤#,##0.00)","en-BW":"¤#,##0.00;(¤#,##0.00)","en-BZ":"¤#,##0.00;(¤#,##0.00)","en-CA":"¤#,##0.00;(¤#,##0.00)","en-CC":"¤#,##0.00;(¤#,##0.00)","en-CH":"¤ #,##0.00;¤-#,##0.00","en-CK":"¤#,##0.00;(¤#,##0.00)","en-CM":"¤#,##0.00;(¤#,##0.00)","en-CX":"¤#,##0.00;(¤#,##0.00)","en-CY":"¤#,##0.00;(¤#,##0.00)","en-DE":"#,##0.00 ¤","en-DG":"¤#,##0.00;(¤#,##0.00)","en-DK":"#,##0.00 ¤","en-DM":"¤#,##0.00;(¤#,##0.00)","en-ER":"¤#,##0.00;(¤#,##0.00)","en-FI":"#,##0.00 ¤","en-FJ":"¤#,##0.00;(¤#,##0.00)","en-FK":"¤#,##0.00;(¤#,##0.00)","en-FM":"¤#,##0.00;(¤#,##0.00)","en-GB":"¤#,##0.00;(¤#,##0.00)","en-GD":"¤#,##0.00;(¤#,##0.00)","en-GG":"¤#,##0.00;(¤#,##0.00)","en-GH":"¤#,##0.00;(¤#,##0.00)","en-GI":"¤#,##0.00;(¤#,##0.00)","en-GM":"¤#,##0.00;(¤#,##0.00)","en-GU":"¤#,##0.00;(¤#,##0.00)","en-GY":"¤#,##0.00;(¤#,##0.00)","en-HK":"¤#,##0.00;(¤#,##0.00)","en-IE":"¤#,##0.00;(¤#,##0.00)","en-IL":"¤#,##0.00;(¤#,##0.00)","en-IM":"¤#,##0.00;(¤#,##0.00)","en-IN":"¤#,##0.00;(¤#,##0.00)","en-IO":"¤#,##0.00;(¤#,##0.00)","en-JE":"¤#,##0.00;(¤#,##0.00)","en-JM":"¤#,##0.00;(¤#,##0.00)","en-KE":"¤#,##0.00;(¤#,##0.00)","en-KI":"¤#,##0.00;(¤#,##0.00)","en-KN":"¤#,##0.00;(¤#,##0.00)","en-KY":"¤#,##0.00;(¤#,##0.00)","en-LC":"¤#,##0.00;(¤#,##0.00)","en-LR":"¤#,##0.00;(¤#,##0.00)","en-LS":"¤#,##0.00;(¤#,##0.00)","en-MG":"¤#,##0.00;(¤#,##0.00)","en-MH":"¤#,##0.00;(¤#,##0.00)","en-MO":"¤#,##0.00;(¤#,##0.00)","en-MP":"¤#,##0.00;(¤#,##0.00)","en-MS":"¤#,##0.00;(¤#,##0.00)","en-MT":"¤#,##0.00;(¤#,##0.00)","en-MU":"¤#,##0.00;(¤#,##0.00)","en-MV":"¤ #,##0.00","en-MW":"¤#,##0.00;(¤#,##0.00)","en-MY":"¤#,##0.00;(¤#,##0.00)","en-NA":"¤#,##0.00;(¤#,##0.00)","en-NF":"¤#,##0.00;(¤#,##0.00)","en-NG":"¤#,##0.00;(¤#,##0.00)","en-NL":"¤ #,##0.00;(¤ #,##0.00)","en-NR":"¤#,##0.00;(¤#,##0.00)","en-NU":"¤#,##0.00;(¤#,##0.00)","en-NZ":"¤#,##0.00;(¤#,##0.00)","en-PG":"¤#,##0.00;(¤#,##0.00)","en-PH":"¤#,##0.00;(¤#,##0.00)","en-PK":"¤#,##0.00;(¤#,##0.00)","en-PN":"¤#,##0.00;(¤#,##0.00)","en-PR":"¤#,##0.00;(¤#,##0.00)","en-PW":"¤#,##0.00;(¤#,##0.00)","en-RW":"¤#,##0.00;(¤#,##0.00)","en-SB":"¤#,##0.00;(¤#,##0.00)","en-SC":"¤#,##0.00;(¤#,##0.00)","en-SD":"¤#,##0.00;(¤#,##0.00)","en-SE":"#,##0.00 ¤","en-SG":"¤#,##0.00;(¤#,##0.00)","en-SH":"¤#,##0.00;(¤#,##0.00)","en-SI":"#,##0.00 ¤;(#,##0.00 ¤)","en-SL":"¤#,##0.00;(¤#,##0.00)","en-SS":"¤#,##0.00;(¤#,##0.00)","en-SX":"¤#,##0.00;(¤#,##0.00)","en-SZ":"¤#,##0.00;(¤#,##0.00)","en-TC":"¤#,##0.00;(¤#,##0.00)","en-TK":"¤#,##0.00;(¤#,##0.00)","en-TO":"¤#,##0.00;(¤#,##0.00)","en-TT":"¤#,##0.00;(¤#,##0.00)","en-TV":"¤#,##0.00;(¤#,##0.00)","en-TZ":"¤#,##0.00;(¤#,##0.00)","en-UG":"¤#,##0.00;(¤#,##0.00)","en-UM":"¤#,##0.00;(¤#,##0.00)","en-VC":"¤#,##0.00;(¤#,##0.00)","en-VG":"¤#,##0.00;(¤#,##0.00)","en-VI":"¤#,##0.00;(¤#,##0.00)","en-VU":"¤#,##0.00;(¤#,##0.00)","en-WS":"¤#,##0.00;(¤#,##0.00)","en-ZA":"¤#,##0.00;(¤#,##0.00)","en-ZM":"¤#,##0.00;(¤#,##0.00)","en-ZW":"¤#,##0.00;(¤#,##0.00)",eo:"¤ #,##0.00",es:"#,##0.00 ¤","es-419":"¤#,##0.00","es-AR":"¤ #,##0.00;(¤ #,##0.00)","es-BO":"¤#,##0.00","es-BR":"¤#,##0.00","es-BZ":"¤#,##0.00","es-CL":"¤#,##0.00","es-CO":"¤#,##0.00","es-CR":"¤#,##0.00","es-CU":"¤#,##0.00","es-DO":"¤#,##0.00;(¤#,##0.00)","es-EA":"#,##0.00 ¤","es-EC":"¤#,##0.00","es-GQ":"#,##0.00 ¤","es-GT":"¤#,##0.00","es-HN":"¤#,##0.00","es-IC":"#,##0.00 ¤","es-MX":"¤#,##0.00","es-NI":"¤#,##0.00","es-PA":"¤#,##0.00","es-PE":"¤#,##0.00","es-PH":"#,##0.00 ¤","es-PR":"¤#,##0.00","es-PY":"¤#,##0.00","es-SV":"¤#,##0.00","es-US":"¤#,##0.00","es-UY":"¤ #,##0.00;(¤ #,##0.00)","es-VE":"¤#,##0.00",et:"#,##0.00 ¤;(#,##0.00 ¤)",eu:"#,##0.00 ¤;(#,##0.00 ¤)",ewo:"#,##0.00 ¤",fa:"¤ #,##0.00;(¤ #,##0.00)","fa-AF":"¤ #,##0.00;(¤ #,##0.00)",ff:"#,##0.00 ¤","ff-Adlm":"¤ #,##0.00","ff-Adlm-BF":"¤ #,##0.00","ff-Adlm-CM":"¤ #,##0.00","ff-Adlm-GH":"¤ #,##0.00","ff-Adlm-GM":"¤ #,##0.00","ff-Adlm-GW":"¤ #,##0.00","ff-Adlm-LR":"¤ #,##0.00","ff-Adlm-MR":"¤ #,##0.00","ff-Adlm-NE":"¤ #,##0.00","ff-Adlm-NG":"¤ #,##0.00","ff-Adlm-SL":"¤ #,##0.00","ff-Adlm-SN":"¤ #,##0.00","ff-Latn":"#,##0.00 ¤","ff-Latn-BF":"#,##0.00 ¤","ff-Latn-CM":"#,##0.00 ¤","ff-Latn-GH":"#,##0.00 ¤","ff-Latn-GM":"#,##0.00 ¤","ff-Latn-GN":"#,##0.00 ¤","ff-Latn-GW":"#,##0.00 ¤","ff-Latn-LR":"#,##0.00 ¤","ff-Latn-MR":"#,##0.00 ¤","ff-Latn-NE":"#,##0.00 ¤","ff-Latn-NG":"#,##0.00 ¤","ff-Latn-SL":"#,##0.00 ¤",fi:"#,##0.00 ¤",fil:"¤#,##0.00;(¤#,##0.00)",fo:"#,##0.00 ¤;(#,##0.00 ¤)","fo-DK":"#,##0.00 ¤;(#,##0.00 ¤)",fr:"#,##0.00 ¤;(#,##0.00 ¤)","fr-BE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BI":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BJ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BL":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CD":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CH":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CI":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-DJ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-DZ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GP":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GQ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-HT":"#,##0.00 ¤;(#,##0.00 ¤)","fr-KM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-LU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-ML":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MQ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MR":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-NC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-NE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-PF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-PM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-RE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-RW":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SY":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TD":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-VU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-WF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-YT":"#,##0.00 ¤;(#,##0.00 ¤)",fur:"¤ #,##0.00",fy:"¤ #,##0.00;(¤ #,##0.00)",ga:"¤#,##0.00;(¤#,##0.00)","ga-GB":"¤#,##0.00;(¤#,##0.00)",gd:"¤#,##0.00;(¤#,##0.00)",gl:"#,##0.00 ¤",gsw:"#,##0.00 ¤","gsw-FR":"#,##0.00 ¤","gsw-LI":"#,##0.00 ¤",gu:"¤#,##,##0.00;(¤#,##,##0.00)",guz:"¤#,##0.00;(¤#,##0.00)",gv:"¤#,##0.00",ha:"¤ #,##0.00","ha-GH":"¤ #,##0.00","ha-NE":"¤ #,##0.00",haw:"¤#,##0.00;(¤#,##0.00)",he:"#,##0.00 ¤",hi:"¤#,##,##0.00","hi-Latn":"¤#,##,##0.00",hr:"#,##0.00 ¤","hr-BA":"#,##0.00 ¤",hsb:"#,##0.00 ¤",hu:"#,##0.00 ¤",hy:"#,##0.00 ¤",ia:"¤ #,##0.00;(¤ #,##0.00)",id:"¤#,##0.00",ig:"¤#,##0.00;(¤#,##0.00)",ii:"¤ #,##0.00",is:"#,##0.00 ¤",it:"#,##0.00 ¤","it-CH":"#,##0.00 ¤","it-SM":"#,##0.00 ¤","it-VA":"#,##0.00 ¤",ja:"¤#,##0.00;(¤#,##0.00)",jgo:"¤ #,##0.00",jmc:"¤#,##0.00",jv:"¤ #,##0.00",ka:"#,##0.00 ¤",kab:"#,##0.00¤",kam:"¤#,##0.00;(¤#,##0.00)",kde:"¤#,##0.00;(¤#,##0.00)",kea:"#,##0.00 ¤;(#,##0.00 ¤)",kgp:"¤ #,##0.00",khq:"#,##0.00¤",ki:"¤#,##0.00;(¤#,##0.00)",kk:"#,##0.00 ¤",kkj:"¤ #,##0.00",kl:"¤#,##0.00;¤-#,##0.00",kln:"¤#,##0.00;(¤#,##0.00)",km:"#,##0.00¤;(#,##0.00¤)",kn:"¤#,##0.00;(¤#,##0.00)",ko:"¤#,##0.00;(¤#,##0.00)","ko-KP":"¤#,##0.00;(¤#,##0.00)",kok:"¤#,##0.00;(¤#,##0.00)",ks:"¤#,##0.00","ks-Arab":"¤#,##0.00","ks-Deva":"¤ #,##0.00",ksb:"#,##0.00¤",ksf:"#,##0.00 ¤",ksh:"#,##0.00 ¤",ku:"#,##0.00 ¤;(#,##0.00 ¤)",kw:"¤#,##0.00",ky:"#,##0.00 ¤",lag:"¤ #,##0.00",lb:"#,##0.00 ¤",lg:"#,##0.00¤",lkt:"¤ #,##0.00",ln:"#,##0.00 ¤","ln-AO":"#,##0.00 ¤","ln-CF":"#,##0.00 ¤","ln-CG":"#,##0.00 ¤",lo:"¤#,##0.00;¤-#,##0.00",lrc:"¤ #,##0.00","lrc-IQ":"¤ #,##0.00",lt:"#,##0.00 ¤",lu:"#,##0.00¤",luo:"#,##0.00¤",luy:"¤#,##0.00;¤- #,##0.00",lv:"#,##0.00 ¤",mai:"¤ #,##0.00",mas:"¤#,##0.00;(¤#,##0.00)","mas-TZ":"¤#,##0.00;(¤#,##0.00)",mer:"¤#,##0.00;(¤#,##0.00)",mfe:"¤ #,##0.00",mg:"¤#,##0.00",mgh:"¤ #,##0.00",mgo:"¤ #,##0.00",mi:"¤ #,##0.00",mk:"#,##0.00 ¤",ml:"¤#,##0.00;(¤#,##0.00)",mn:"¤ #,##0.00",mni:"¤ #,##0.00","mni-Beng":"¤ #,##0.00",mr:"¤#,##0.00;(¤#,##0.00)",ms:"¤#,##0.00;(¤#,##0.00)","ms-BN":"¤#,##0.00;(¤#,##0.00)","ms-ID":"¤#,##0.00","ms-SG":"¤#,##0.00;(¤#,##0.00)",mt:"¤#,##0.00",mua:"¤#,##0.00;(¤#,##0.00)",my:"¤ #,##0.00",mzn:"¤ #,##0.00",naq:"¤#,##0.00",nb:"¤ #,##0.00;(¤ #,##0.00)","nb-SJ":"¤ #,##0.00;(¤ #,##0.00)",nd:"¤#,##0.00;(¤#,##0.00)",nds:"¤ #,##0.00","nds-NL":"¤ #,##0.00",ne:"¤ #,##,##0.00","ne-IN":"¤ #,##,##0.00",nl:"¤ #,##0.00;(¤ #,##0.00)","nl-AW":"¤ #,##0.00;(¤ #,##0.00)","nl-BE":"¤ #,##0.00;(¤ #,##0.00)","nl-BQ":"¤ #,##0.00;(¤ #,##0.00)","nl-CW":"¤ #,##0.00;(¤ #,##0.00)","nl-SR":"¤ #,##0.00;(¤ #,##0.00)","nl-SX":"¤ #,##0.00;(¤ #,##0.00)",nmg:"#,##0.00 ¤",nn:"#,##0.00 ¤",nnh:"¤ #,##0.00",no:"¤ #,##0.00;(¤ #,##0.00)",nus:"¤#,##0.00;(¤#,##0.00)",nyn:"¤#,##0.00",om:"¤#,##0.00","om-KE":"¤#,##0.00",or:"¤#,##0.00;(¤#,##0.00)",os:"¤ #,##0.00","os-RU":"¤ #,##0.00",pa:"¤ #,##0.00","pa-Arab":"¤ #,##0.00","pa-Guru":"¤ #,##0.00",pcm:"¤#,##0.00",pl:"#,##0.00 ¤;(#,##0.00 ¤)",ps:"¤#,##0.00;(¤#,##0.00)","ps-PK":"¤#,##0.00;(¤#,##0.00)",pt:"¤ #,##0.00","pt-AO":"#,##0.00 ¤;(#,##0.00 ¤)","pt-CH":"#,##0.00 ¤;(#,##0.00 ¤)","pt-CV":"#,##0.00 ¤;(#,##0.00 ¤)","pt-GQ":"#,##0.00 ¤;(#,##0.00 ¤)","pt-GW":"#,##0.00 ¤;(#,##0.00 ¤)","pt-LU":"#,##0.00 ¤;(#,##0.00 ¤)","pt-MO":"#,##0.00 ¤;(#,##0.00 ¤)","pt-MZ":"#,##0.00 ¤;(#,##0.00 ¤)","pt-PT":"#,##0.00 ¤;(#,##0.00 ¤)","pt-ST":"#,##0.00 ¤;(#,##0.00 ¤)","pt-TL":"#,##0.00 ¤;(#,##0.00 ¤)",qu:"¤ #,##0.00","qu-BO":"¤ #,##0.00","qu-EC":"¤ #,##0.00",rm:"#,##0.00 ¤",rn:"#,##0.00¤",ro:"#,##0.00 ¤;(#,##0.00 ¤)","ro-MD":"#,##0.00 ¤;(#,##0.00 ¤)",rof:"¤#,##0.00",ru:"#,##0.00 ¤","ru-BY":"#,##0.00 ¤","ru-KG":"#,##0.00 ¤","ru-KZ":"#,##0.00 ¤","ru-MD":"#,##0.00 ¤","ru-UA":"#,##0.00 ¤",rw:"¤ #,##0.00",rwk:"#,##0.00¤",sa:"¤ #,##0.00",sah:"#,##0.00 ¤",saq:"¤#,##0.00;(¤#,##0.00)",sat:"¤ #,##0.00","sat-Olck":"¤ #,##0.00",sbp:"#,##0.00¤",sc:"#,##0.00 ¤",sd:"¤ #,##0.00","sd-Arab":"¤ #,##0.00","sd-Deva":"¤ #,##0.00",se:"#,##0.00 ¤","se-FI":"#,##0.00 ¤","se-SE":"#,##0.00 ¤",seh:"#,##0.00¤",ses:"#,##0.00¤",sg:"¤#,##0.00;¤-#,##0.00",shi:"#,##0.00¤","shi-Latn":"#,##0.00¤","shi-Tfng":"#,##0.00¤",si:"¤#,##0.00;(¤#,##0.00)",sk:"#,##0.00 ¤;(#,##0.00 ¤)",sl:"#,##0.00 ¤;(#,##0.00 ¤)",smn:"#,##0.00 ¤",sn:"¤#,##0.00;(¤#,##0.00)",so:"¤#,##0.00;(¤#,##0.00)","so-DJ":"¤#,##0.00;(¤#,##0.00)","so-ET":"¤#,##0.00;(¤#,##0.00)","so-KE":"¤#,##0.00;(¤#,##0.00)",sq:"#,##0.00 ¤;(#,##0.00 ¤)","sq-MK":"#,##0.00 ¤;(#,##0.00 ¤)","sq-XK":"#,##0.00 ¤;(#,##0.00 ¤)",sr:"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-BA":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-ME":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-XK":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-BA":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-ME":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-XK":"#,##0.00 ¤;(#,##0.00 ¤)",su:"¤#,##0.00","su-Latn":"¤#,##0.00",sv:"#,##0.00 ¤","sv-AX":"#,##0.00 ¤","sv-FI":"#,##0.00 ¤",sw:"¤ #,##0.00","sw-CD":"¤ #,##0.00","sw-KE":"¤ #,##0.00","sw-UG":"¤ #,##0.00",ta:"¤#,##0.00;(¤#,##0.00)","ta-LK":"¤#,##0.00;(¤#,##0.00)","ta-MY":"¤#,##0.00;(¤#,##0.00)","ta-SG":"¤#,##0.00;(¤#,##0.00)",te:"¤#,##0.00;(¤#,##0.00)",teo:"¤#,##0.00;(¤#,##0.00)","teo-KE":"¤#,##0.00;(¤#,##0.00)",tg:"#,##0.00 ¤",th:"¤#,##0.00;(¤#,##0.00)",ti:"¤#,##0.00","ti-ER":"¤#,##0.00",tk:"#,##0.00 ¤",to:"¤ #,##0.00",tr:"¤#,##0.00;(¤#,##0.00)","tr-CY":"¤#,##0.00;(¤#,##0.00)",tt:"#,##0.00 ¤",twq:"#,##0.00¤",tzm:"#,##0.00 ¤",ug:"¤#,##0.00;(¤#,##0.00)",uk:"#,##0.00 ¤",und:"¤ #,##0.00",ur:"¤#,##0.00;(¤#,##0.00)","ur-IN":"¤#,##0.00;(¤#,##0.00)",uz:"#,##0.00 ¤","uz-Arab":"¤ #,##0.00","uz-Cyrl":"#,##0.00 ¤","uz-Latn":"#,##0.00 ¤",vai:"¤#,##0.00;(¤#,##0.00)","vai-Latn":"¤#,##0.00;(¤#,##0.00)","vai-Vaii":"¤#,##0.00;(¤#,##0.00)",vi:"#,##0.00 ¤",vun:"¤#,##0.00",wae:"¤ #,##0.00",wo:"¤ #,##0.00",xh:"¤#,##0.00",xog:"#,##0.00 ¤",yav:"#,##0.00 ¤;(#,##0.00 ¤)",yi:"¤ #,##0.00",yo:"¤#,##0.00;(¤#,##0.00)","yo-BJ":"¤#,##0.00;(¤#,##0.00)",yrl:"¤ #,##0.00","yrl-CO":"¤ #,##0.00","yrl-VE":"¤ #,##0.00",yue:"¤#,##0.00;(¤#,##0.00)","yue-Hans":"¤#,##0.00;(¤#,##0.00)","yue-Hant":"¤#,##0.00;(¤#,##0.00)",zgh:"#,##0.00¤",zh:"¤#,##0.00;(¤#,##0.00)","zh-Hans":"¤#,##0.00;(¤#,##0.00)","zh-Hans-HK":"¤#,##0.00;(¤#,##0.00)","zh-Hans-MO":"¤#,##0.00;(¤#,##0.00)","zh-Hans-SG":"¤#,##0.00;(¤#,##0.00)","zh-Hant":"¤#,##0.00;(¤#,##0.00)","zh-Hant-HK":"¤#,##0.00;(¤#,##0.00)","zh-Hant-MO":"¤#,##0.00;(¤#,##0.00)",zu:"¤#,##0.00;(¤#,##0.00)"};var ao=["standard","accounting"],ho=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,uo={},lo=t=>{var e=Bs.locale()+"/"+JSON.stringify(t);return uo[e]||(uo[e]=new Intl.NumberFormat(Bs.locale(),t).format),uo[e]};const co={engine:function(){return"intl"},_formatNumberCore:function(t,e,i){return"exponential"===e?this.callBase.apply(this,arguments):lo(this._normalizeFormatConfig(e,i,t))(t)},_normalizeFormatConfig:function(t,e,i){var n;if(n="decimal"===t?{minimumIntegerDigits:e.precision||void 0,useGrouping:!1,maximumFractionDigits:String(i).length,round:i<0?"ceil":"floor"}:this._getPrecisionConfig(e.precision),"percent"===t)n.style="percent";else if("currency"===t){var r,s=null!==(r=e.useCurrencyAccountingStyle)&&void 0!==r?r:B().defaultUseCurrencyAccountingStyle;n.style="currency",n.currency=e.currency||B().defaultCurrency,n.currencySign=ao[+s]}return n},_getPrecisionConfig:function(t){return null===t?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:t||0,maximumFractionDigits:t||0}},format:function(t,e){return"number"!=typeof t?t:("default"===(e=this._normalizeFormat(e)).currency&&(e.currency=B().defaultCurrency),e&&("function"==typeof e||e.type||e.formatter)?this.callBase.apply(this,arguments):lo(e)(t))},_getCurrencySymbolInfo:function(t){var e=(t=>new Intl.NumberFormat(Bs.locale(),{style:"currency",currency:t}))(t);return this._extractCurrencySymbolInfo(e.format(0))},_extractCurrencySymbolInfo:function(t){var e=ho.exec(t)||[];return{position:e[1]?"before":"after",symbol:e[1]||e[4]||"",delimiter:e[2]||e[3]||""}},getCurrencySymbol:function(t){return t||(t=B().defaultCurrency),{symbol:this._getCurrencySymbolInfo(t).symbol}},getOpenXmlCurrencyFormat:function(t){var e=t||B().defaultCurrency;return((t,e)=>{if(e){var i=t;if("string"==typeof t){i="";for(var n=0;n<t.length;n++)"$"!==t[n]&&(i+="\\"),i+=t[n]}for(var r={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\¤":i},s=e.split(";"),o=0;o<s.length;o++)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(s[o]=s[o].replace(new RegExp(a,"g"),r[a]));return 2===s.length?s[0]+"_);"+s[1]:s[0]}})(this._getCurrencySymbolInfo(e).symbol,Bs.getValueByClosestLocale((t=>oo[t])))}};var fo="undefined"!=typeof Intl,vo=["currency","fixedpoint","exponential","percent","decimal"],po={1:"K",2:"M",3:"B",4:"T"},mo={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},go=R({engine:function(){return"base"},numericFormats:vo,defaultLargeNumberFormatPostfixes:po,_parseNumberFormatString:function(t){var e={};if(t&&"string"==typeof t){var i=t.toLowerCase().split(" ");return m(i,((t,i)=>{vo.includes(i)?e.formatType=i:i in mo&&(e.power=mo[i])})),e.power&&!e.formatType&&(e.formatType="fixedpoint"),e.formatType?e:void 0}},_calculateNumberPower:function(t,e,i,n){var r=Math.abs(t),s=0;if(r>1)for(;r&&r>=e&&(void 0===n||s<n);)s++,r/=e;else if(r>0&&r<1)for(;r<1&&(void 0===i||s>i);)s--,r*=e;return s},_getNumberByPower:function(t,e,i){for(var n=t;e>0;)n/=i,e--;for(;e<0;)n*=i,e++;return n},_formatNumber:function(t,e,i){"auto"===e.power&&(e.power=this._calculateNumberPower(t,1e3,0,4)),e.power&&(t=this._getNumberByPower(t,e.power,1e3));var n=this.defaultLargeNumberFormatPostfixes[e.power]||"",r=this._formatNumberCore(t,e.formatType,i);return r.replace(/(\d|.$)(\D*)$/,"$1"+n+"$2")},_formatNumberExponential:function(t,e){var i=this._calculateNumberPower(t,10),n=this._getNumberByPower(t,i,10);void 0===e.precision&&(e.precision=1),n.toFixed(e.precision||0)>=10&&(i++,n/=10);var r=(i>=0?"+":"")+i.toString();return this._formatNumberCore(n,"fixedpoint",e)+"E"+r},_addZeroes:function(t,e){for(var i=Math.pow(10,e),n=t<0?"-":"",r=(t=(Math.abs(t)*i>>>0)/i).toString();r.length<e;)r="0"+r;return n+r},_addGroupSeparators:function(t){var e=t.toString().split(".");return e[0].replace(/\B(?=(\d{3})+(?!\d))/g,B().thousandsSeparator)+(e[1]?B().decimalSeparator+e[1]:"")},_formatNumberCore:function(t,e,i){return"exponential"===e?this._formatNumberExponential(t,i):("decimal"!==e&&null!==i.precision&&(i.precision=i.precision||0),"percent"===e&&(t*=100),void 0!==i.precision&&(t="decimal"===e?this._addZeroes(t,i.precision):null===i.precision?t.toPrecision():Ys(t,i.precision)),t="decimal"!==e?this._addGroupSeparators(t):t.toString().replace(".",B().decimalSeparator),"percent"===e&&(t+="%"),t)},_normalizeFormat:function(t){return t?("function"==typeof t||u(t)||(t={type:t}),t):{}},_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(t,e){var i=this.format(90,"decimal");if("string"!=typeof t||"0"===i[1])return t;var n=e?i[1]:"0",r=e?"0":i[1],s=new RegExp("["+n+"-"+(e?i[0]:"9")+"]","g");return t.replace(s,(t=>String.fromCharCode(t.charCodeAt(0)+(r.charCodeAt(0)-n.charCodeAt(0)))))},getNegativeEtalonRegExp:function(t){var e=this._getSeparators(),i=new RegExp("[0-9"+wt(e.decimalSeparator+e.thousandsSeparator)+"]+","g"),n=this.format(-1,t).replace(i,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach((t=>{n=n.replace(new RegExp("\\".concat(t),"g"),"\\".concat(t))})),n=(n=n.replace(/ /g,"\\s")).replace(/1/g,".*"),new RegExp(n,"g")},getSign:function(t,e){if(!e)return"-"===t.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var i=this.getNegativeEtalonRegExp(e);return t.match(i)?-1:1},format:function(t,e){if("number"!=typeof t)return t;if("number"==typeof e)return t;if("function"==typeof(e=e&&e.formatter||e))return e(t);(e=this._normalizeFormat(e)).type||(e.type="decimal");var i=this._parseNumberFormatString(e.type);if(!i){var n=this._getSeparators();return n.unlimitedIntegerDigits=e.unlimitedIntegerDigits,this.convertDigits(function(t,e){return e=e||Xs,function(i){if("number"!=typeof i||isNaN(i))return"";var n=i>0||1/i==1/0,r=function(t){var e=t.split(";");return 1===e.length&&e.push("-"+e[0]),e}(t)[n?0:1],s=function(t){for(var e=!1,i=0;i<t.length;i++)if("'"===t[i]&&(e=!e),"."===t[i]&&!e)return i;return t.length}(r),o=[r.substr(0,s),r.substr(s+1)],a=io(o[1]),h=a+eo(o[1]);(function(t){return-1!==t.indexOf("%")&&!t.match(/'[^']*%[^']*'/g)})(r)&&(i=Ds(i,2)),n||(i=-i);var u,l=io(o[0]),c=eo(o[0])||e.unlimitedIntegerDigits?void 0:l,d=Math.floor(i).toString().length,f=Cs(h,0,15-d),v=(u=o[0],u.split(",").slice(1).map((function(t){var e=0;return t.split("").filter((function(t){return e+="'"===t,!("#"!==t&&"0"!==t||e%2)})).length}))).reverse(),p=Ys(i,f<0?0:f).split("."),m=no(Qs(p[0]),l,c),g=no(p[1],a,h);m=function(t,e,i){if(!e.length)return t;for(var n=[],r=0;t;){var s=e[r];if(!s)break;n.push(t.slice(0,s)),t=t.slice(s),r<e.length-1&&r++}return n.join(i)}(m,v,e.thousandsSeparator);var x=Qs(ro(Qs(o[0]),m)),b=h?ro(o[1],g):"";return x+(b.match(/\d/)?e.decimalSeparator:"")+b}}(e.type,n)(t))}return this._formatNumber(t,i,e)},parse:function(t,e){if(t){if(e&&e.parser)return e.parser(t);t=this.convertDigits(t,!0),e&&"string"!=typeof e&&E.log("W0011");var i=this.getDecimalSeparator(),n=new RegExp("[^0-9"+wt(i)+"]","g"),r=t.replace(n,"").replace(i,".").replace(/\.$/g,"");if("."===r||""===r)return null;if(this._calcSignificantDigits(r)>15)return NaN;var s=+r*this.getSign(t,e);e=this._normalizeFormat(e);var o=this._parseNumberFormatString(e.type),a=null==o?void 0:o.power;if(a){if("auto"===a){var h=t.match(/\d(K|M|B|T)/);h&&(a=Object.keys(po).find((t=>po[t]===h[1])))}s*=Math.pow(10,3*a)}return"percent"===(null==o?void 0:o.formatType)&&(s/=100),s}},_calcSignificantDigits:function(t){var[e,i]=t.split("."),n=t=>{for(var e=-1,i=0;i<t.length;i++)if("0"!==t[i]){e=i;break}return e>-1?t.length-e:0},r=0;return e&&(r+=n(e.split(""))),i&&(r+=n(i.split("").reverse())),r}});go.inject(so),fo&&go.inject(co);class xo{constructor(){this.NAME="base"}defaultMessage(t){return Gs.getFormatter("validation-".concat(this.NAME))(t)}defaultFormattedMessage(t){return Gs.getFormatter("validation-".concat(this.NAME,"-formatted"))(t)}_isValueEmpty(t){return!_o.required.validate(t,{})}validate(t,e){var i=Array.isArray(t)?t:[t],n=!0;return i.length?i.every((t=>n=this._validate(t,e))):n=this._validate(null,e),n}}class bo extends xo{constructor(){super(),this.NAME="custom"}validate(t,e){if(e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var i=e.validator,n=i&&r(i.option)&&i.option("dataGetter"),s=r(n)&&n(),o={value:t,validator:i,rule:e};return s&&v(o,s),e.validationCallback(o)}}var _o={required:new class extends xo{constructor(){super(),this.NAME="required"}_validate(t,e){return!!n(t)&&!1!==t&&(t=String(t),!e.trim&&n(e.trim)||(t=t.trim()),""!==t)}},numeric:new class extends xo{constructor(){super(),this.NAME="numeric"}_validate(t,e){return!(!1===e.ignoreEmptyValue||!this._isValueEmpty(t))||(e.useCultureSettings&&s(t)?!isNaN(go.parse(t)):o(t))}},range:new class extends xo{constructor(){super(),this.NAME="range"}_validate(t,i){if(!1!==i.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var r=_o.numeric.validate(t,i),s=n(t)&&""!==t,o=r?parseFloat(t):s&&t.valueOf(),a=i.min,h=i.max;if(!r&&"date"!==e(t)&&!s)return!1;if(n(a))return n(h)?o>=a&&o<=h:o>=a;if(n(h))return o<=h;throw E.Error("E0101")}},stringLength:new class extends xo{constructor(){super(),this.NAME="stringLength"}_validate(t,e){var i;return t=String(null!==(i=t)&&void 0!==i?i:""),!e.trim&&n(e.trim)||(t=t.trim()),!(!e.ignoreEmptyValue||!this._isValueEmpty(t))||_o.range.validate(t.length,v({},e))}},custom:new bo,async:new class extends bo{constructor(){super(),this.NAME="async"}validate(t,e){if(n(e.reevaluate)||v(e,{reevaluate:!0}),e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var i=e.validator,s=i&&r(i.option)&&i.option("dataGetter"),o=r(s)&&s(),a={value:t,validator:i,rule:e};o&&v(a,o);var h=e.validationCallback(a);if(!d(h))throw E.Error("E0103");return this._getWrappedPromise(W(h).promise())}_getWrappedPromise(t){var e=new K;return t.then((function(t){e.resolve(t)}),(function(t){var i={isValid:!1};n(t)&&(s(t)?i.message=t:a(t)&&n(t.message)&&s(t.message)&&(i.message=t.message)),e.resolve(i)})),e.promise()}},compare:new class extends xo{constructor(){super(),this.NAME="compare"}_validate(t,e){if(!e.comparisonTarget)throw E.Error("E0102");if(e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;v(e,{reevaluate:!0});var i=e.comparisonTarget();switch(e.comparisonType||"=="){case"==":return t==i;case"!=":return t!=i;case"===":return t===i;case"!==":return t!==i;case">":return t>i;case">=":return t>=i;case"<":return t<i;case"<=":return t<=i}}},pattern:new class extends xo{constructor(){super(),this.NAME="pattern"}_validate(t,e){if(!1!==e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var i=e.pattern;return s(i)&&(i=new RegExp(i)),i.test(t)}},email:new class extends xo{constructor(){super(),this.NAME="email"}_validate(t,e){return!(!1===e.ignoreEmptyValue||!this._isValueEmpty(t))||_o.pattern.validate(t,v({},e,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}},yo=O.inherit({ctor(t){this.group=t,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new Xi(this)},validate(){var t={isValid:!0,brokenRules:[],validators:[],status:"valid",complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),m(this.validators,((e,i)=>{var n=i.validate();t.isValid=t.isValid&&n.isValid,n.brokenRules&&(t.brokenRules=t.brokenRules.concat(n.brokenRules)),t.validators.push(i),"pending"===n.status&&this._addPendingValidator(i),this._subscribeToChangeEvents(i)})),this._pendingValidators.length?t.status="pending":(t.status=t.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(t)),this._updateValidationInfo(t),v({},this._validationInfo.result)},_subscribeToChangeEvents(t){t.on("validating",this._onValidatorStatusChanged),t.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(t){t.off("validating",this._onValidatorStatusChanged),t.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){m(this.validators,((t,e)=>{this._unsubscribeFromChangeEvents(e)}))},_updateValidationInfo(t){this._validationInfo.result=t,"pending"===t.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=new K,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(t){Et(this._pendingValidators,(function(e){return e===t}))[0]||this._pendingValidators.push(t)},_removePendingValidator(t){var e=this._pendingValidators.indexOf(t);e>=0&&this._pendingValidators.splice(e,1)},_orderBrokenRules(t){var e=[];return m(this.validators,(function(i,n){var r=Et(t,(function(t){return t.validator===n}));r.length&&(e=e.concat(r))})),e},_updateBrokenRules(t){if(this._validationInfo.result){var e=this._validationInfo.result.brokenRules,i=Et(e,(function(e){return e.validator!==t.validator}));t.brokenRules&&(e=i.concat(t.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(e)}},_onValidatorStatusChanged(t){"pending"!==t.status?this._resolveIfComplete(t):this._addPendingValidator(t.validator)},_resolveIfComplete(t){if(this._removePendingValidator(t.validator),this._updateBrokenRules(t),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?"valid":"invalid",this._validationInfo.result.isValid="valid"===this._validationInfo.result.status;var e=v({},this._validationInfo.result,{complete:null}),i=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(e),i&&setTimeout((()=>{i.resolve(e)}))}},_raiseValidatedEvent(t){this._eventsStrategy.fireEvent("validated",[t])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(t){var e=this.validators.indexOf(t);e>-1&&(this.validators.splice(e,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:t}))},registerValidator(t){this.validators.includes(t)||(this.validators.push(t),this._synchronizeValidationInfo())},reset(){m(this.validators,(function(t,e){e.reset()})),this._pendingValidators=[],this._resetValidationInfo()},on(t,e){return this._eventsStrategy.on(t,e),this},off(t,e){return this._eventsStrategy.off(t,e),this}}),wo={groups:[],getGroupConfig(t){var e=Et(this.groups,(function(e){return e.group===t}));if(e.length)return e[0]},findGroup(t,e){var i,n,r=(null===(i=t.data())||void 0===i||null===(n=i.dxComponents)||void 0===n?void 0:n.includes("dxValidationGroup"))&&t.dxValidationGroup("instance");if(r)return r;var s=t.parents(".dx-validationgroup").first();return s.length?s.dxValidationGroup("instance"):e},initGroups(){this.groups=[],this.addGroup()},addGroup(t){var e=this.getGroupConfig(t);return e||(e=new yo(t),this.groups.push(e)),e},removeGroup(t){var e=this.getGroupConfig(t),i=this.groups.indexOf(e);return i>-1&&this.groups.splice(i,1),e},_setDefaultMessage(t){var{rule:e,validator:i,name:r}=t;n(e.message)||(e.message=i.defaultFormattedMessage&&n(r)?i.defaultFormattedMessage(r):i.defaultMessage())},_addBrokenRule(t){var{result:e,rule:i}=t;e.brokenRule||(e.brokenRule=i),e.brokenRules||(e.brokenRules=[]),e.brokenRules.push(i)},validate(t,e,i){var r,s={name:i,value:t,brokenRule:null,brokenRules:null,isValid:!0,validationRules:e,pendingRules:null,status:"valid",complete:null},o=null==e||null===(r=e[0])||void 0===r?void 0:r.validator,a=[];return m(e||[],((e,r)=>{var o,h=_o[r.type];if(!h)throw E.Error("E0100");return n(r.isValid)&&r.value===t&&!r.reevaluate?!!r.isValid||(s.isValid=!1,this._addBrokenRule({result:s,rule:r}),!1):(r.value=t,"async"===r.type?(a.push({rule:r,ruleValidator:h}),!0):(o=h.validate(t,r),r.isValid=o,o||(s.isValid=!1,this._setDefaultMessage({rule:r,validator:h,name:i}),this._addBrokenRule({result:s,rule:r})),!!r.isValid&&void 0))})),s.isValid&&!s.brokenRules&&a.length&&(s=this._validateAsyncRules({value:t,items:a,result:s,name:i})),this._synchronizeGroupValidationInfo(o,s),s.status=s.pendingRules?"pending":s.isValid?"valid":"invalid",s},_synchronizeGroupValidationInfo(t,e){var i;if(t){var n=wo.getGroupConfig(t._validationGroup);n._updateBrokenRules.call(n,{validator:t,brokenRules:null!==(i=e.brokenRules)&&void 0!==i?i:[]})}},_validateAsyncRules(t){var{result:e,value:i,items:n,name:r}=t,s=[];return m(n,((t,n)=>{var o=n.ruleValidator.validate(i,n.rule);if(d(o)){e.pendingRules||(e.pendingRules=[]),e.pendingRules.push(n.rule);var a=o.then((t=>{var e=this._getPatchedRuleResult(t);return this._updateRuleConfig({rule:n.rule,ruleResult:e,validator:n.ruleValidator,name:r}),e}));s.push(a)}else this._updateRuleConfig({rule:n.rule,ruleResult:this._getPatchedRuleResult(o),validator:n.ruleValidator,name:r})})),s.length&&(e.complete=Promise.all(s).then((t=>this._getAsyncRulesResult({result:e,values:t})))),e},_updateRuleConfig(t){var{rule:e,ruleResult:i,validator:r,name:o}=t;e.isValid=i.isValid,i.isValid||(n(i.message)&&s(i.message)&&i.message.length?e.message=i.message:this._setDefaultMessage({rule:e,validator:r,name:o}))},_getPatchedRuleResult(t){var e;return a(t)?(e=v({},t),n(e.isValid)||(e.isValid=!0)):e={isValid:!i(t)||t},e},_getAsyncRulesResult(t){var{values:e,result:i}=t;return m(e,((t,e)=>{!1===e.isValid&&(i.isValid=e.isValid,this._addBrokenRule({result:i,rule:i.pendingRules[t]}))})),i.pendingRules=null,i.complete=null,i.status=i.isValid?"valid":"invalid",i},registerValidatorInGroup(t,e){var i=wo.addGroup(t);i.registerValidator.call(i,e)},_shouldRemoveGroup:(t,e)=>!(void 0===t||t&&"dxValidationGroup"===t.NAME||e.length),removeRegisteredValidator(t,e){var i=wo.getGroupConfig(t);i&&(i.removeRegisteredValidator.call(i,e),this._shouldRemoveGroup(t,i.validators)&&this.removeGroup(t))},initValidationOptions(t){var e={};return t&&["isValid","validationStatus","validationError","validationErrors"].forEach((i=>{i in t&&v(e,this.synchronizeValidationOptions({name:i,value:t[i]},t))})),e},synchronizeValidationOptions(t,e){var{name:i,value:n}=t;switch(i){case"validationStatus":var r="valid"===n||"pending"===n;return e.isValid!==r?{isValid:r}:{};case"isValid":var{validationStatus:s}=e,o=s;return n&&"invalid"===s?o="valid":n||"invalid"===s||(o="invalid"),o!==s?{validationStatus:o}:{};case"validationErrors":var a=n&&n.length?n[0]:null;return e.validationError!==a?{validationError:a}:{};case"validationError":var{validationErrors:h}=e;if(!n&&h)return{validationErrors:null};if(n&&!h)return{validationErrors:[n]};if(n&&h&&n!==h[0])return h[0]=n,{validationErrors:h.slice()}}return{}},validateGroup(t){var e=wo.getGroupConfig(t);if(!e)throw E.Error("E0110");return e.validate()},resetGroup(t){var e=wo.getGroupConfig(t);if(!e)throw E.Error("E0110");return e.reset()}};wo.initGroups();var So=Array.isArray;function Eo(t){var e=typeof t;return"string"===e||"number"===e}function Co(t){return null==t}function Io(t){return null===t||!1===t||!0===t||void 0===t}function Do(t){return"function"==typeof t}function To(t){return"string"==typeof t}function ko(t){return null===t}function Mo(t,e){var i={};if(t)for(var n in t)i[n]=t[n];if(e)for(var r in e)i[r]=e[r];return i}function Ao(t){return!ko(t)&&"object"==typeof t}var Oo={};function Ro(t){return t.substr(2).toLowerCase()}function Fo(t,e){t.appendChild(e)}function Po(t,e,i){ko(i)?Fo(t,e):t.insertBefore(e,i)}function Bo(t,e){t.removeChild(e)}function Ho(t){for(var e=0;e<t.length;e++)t[e]()}function Lo(t,e,i){var n=t.children;return 4&i?n.$LI:8192&i?2===t.childFlags?n:n[e?0:n.length-1]:n}function zo(t,e){for(var i;t;){if(2033&(i=t.flags))return t.dom;t=Lo(t,e,i)}return null}function Go(t,e){do{var i=t.flags;if(2033&i)return void Bo(e,t.dom);var n=t.children;if(4&i&&(t=n.$LI),8&i&&(t=n),8192&i){if(2!==t.childFlags){for(var r=0,s=n.length;r<s;++r)Go(n[r],e);return}t=n}}while(t)}function No(t,e,i){do{var n=t.flags;if(2033&n)return void Po(e,t.dom,i);var r=t.children;if(4&n&&(t=r.$LI),8&n&&(t=r),8192&n){if(2!==t.childFlags){for(var s=0,o=r.length;s<o;++s)No(r[s],e,i);return}t=r}}while(t)}function Wo(t,e,i){return t.constructor.getDerivedStateFromProps?Mo(i,t.constructor.getDerivedStateFromProps(e,i)):i}var Vo={v:!1},Ko={componentComparator:null,createVNode:null,renderComplete:null};function Uo(t,e){t.textContent=e}function jo(t,e){return Ao(t)&&t.event===e.event&&t.data===e.data}function qo(t,e){for(var i in e)void 0===t[i]&&(t[i]=e[i]);return t}function $o(t,e){return!!Do(t)&&(t(e),!0)}function Jo(t,e,i,n,r,s,o,a){this.childFlags=t,this.children=e,this.className=i,this.dom=null,this.flags=n,this.key=void 0===r?null:r,this.props=void 0===s?null:s,this.ref=void 0===o?null:o,this.type=a}function Zo(t,e,i,n,r,s,o,a){var h=void 0===r?1:r,u=new Jo(h,n,i,t,o,s,a,e);return Ko.createVNode&&Ko.createVNode(u),0===h&&sa(u,u.children),u}function Yo(t,e,i,n,r){var s=new Jo(1,null,null,t=function(t,e){return 12&t?t:e.prototype&&e.prototype.render?4:e.render?32776:8}(t,e),n,function(t,e,i){var n=(32768&t?e.render:e).defaultProps;return Co(n)?i:Co(i)?Mo(n,null):qo(i,n)}(t,e,i),function(t,e,i){if(4&t)return i;var n=(32768&t?e.render:e).defaultHooks;return Co(n)?i:Co(i)?n:qo(i,n)}(t,e,r),e);return Ko.createVNode&&Ko.createVNode(s),s}function Xo(t,e){return new Jo(1,Co(t)||!0===t||!1===t?"":t,null,16,e,null,null,null)}function Qo(t,e,i){var n=Zo(8192,8192,null,t,e,null,i,null);switch(n.childFlags){case 1:n.children=ia(),n.childFlags=2;break;case 16:n.children=[Xo(t)],n.childFlags=4}return n}function ta(t){var e=t.props;if(e){var i=t.flags;481&i&&(void 0!==e.children&&Co(t.children)&&sa(t,e.children),void 0!==e.className&&(Co(t.className)&&(t.className=e.className||null),e.className=void 0)),void 0!==e.key&&(t.key=e.key,e.key=void 0),void 0!==e.ref&&(t.ref=8&i?Mo(t.ref,e.ref):e.ref,e.ref=void 0)}return t}function ea(t){var e=-16385&t.flags,i=t.props;if(14&e&&!ko(i)){var n=i;for(var r in i={},n)i[r]=n[r]}return 0==(8192&e)?new Jo(t.childFlags,t.children,t.className,e,t.key,i,t.ref,t.type):function(t){var e=t.children,i=t.childFlags;return Qo(2===i?ea(e):e.map(ea),i,t.key)}(t)}function ia(){return Xo("",null)}function na(t,e,i,n){for(var r=t.length;i<r;i++){var s=t[i];if(!Io(s)){var o=n+"$"+i;if(So(s))na(s,e,0,o);else{if(Eo(s))s=Xo(s,o);else{var a=s.key,h=To(a)&&"$"===a[0];(81920&s.flags||h)&&(s=ea(s)),s.flags|=65536,h?a.substring(0,n.length)!==n&&(s.key=n+a):s.key=ko(a)?o:n+a}e.push(s)}}}}function ra(t){switch(t){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}}function sa(t,e){var i,n=1;if(Io(e))i=e;else if(Eo(e))n=16,i=e;else if(So(e)){for(var r=e.length,s=0;s<r;++s){var o=e[s];if(Io(o)||So(o)){i=i||e.slice(0,s),na(e,i,s,"");break}if(Eo(o))(i=i||e.slice(0,s)).push(Xo(o,"$"+s));else{var a=o.key,h=(81920&o.flags)>0,u=ko(a),l=To(a)&&"$"===a[0];h||u||l?(i=i||e.slice(0,s),(h||l)&&(o=ea(o)),(u||l)&&(o.key="$"+s),i.push(o)):i&&i.push(o),o.flags|=65536}}n=0===(i=i||e).length?1:8}else(i=e).flags|=65536,81920&e.flags&&(i=ea(e)),n=2;return t.children=i,t.childFlags=n,t}function oa(t){return Io(t)||Eo(t)?Xo(t,null):So(t)?Qo(t,0,null):16384&t.flags?ea(t):t}var aa="http://www.w3.org/1999/xlink",ha="http://www.w3.org/XML/1998/namespace",ua={"xlink:actuate":aa,"xlink:arcrole":aa,"xlink:href":aa,"xlink:role":aa,"xlink:show":aa,"xlink:title":aa,"xlink:type":aa,"xml:base":ha,"xml:lang":ha,"xml:space":ha};function la(t){return{onClick:t,onDblClick:t,onFocusIn:t,onFocusOut:t,onKeyDown:t,onKeyPress:t,onKeyUp:t,onMouseDown:t,onMouseMove:t,onMouseUp:t,onTouchEnd:t,onTouchMove:t,onTouchStart:t}}var ca=la(0),da=la(null),fa=la(!0);function va(t,e){var i=e.$EV;return i||(i=e.$EV=la(null)),i[t]||1==++ca[t]&&(da[t]=function(t){var e="onClick"===t||"onDblClick"===t?function(t){return function(e){0===e.button?ma(e,!0,t,_a(e)):e.stopPropagation()}}(t):function(t){return function(e){ma(e,!1,t,_a(e))}}(t);return document.addEventListener(Ro(t),e),e}(t)),i}function pa(t,e){var i=e.$EV;i&&i[t]&&(0==--ca[t]&&(document.removeEventListener(Ro(t),da[t]),da[t]=null),i[t]=null)}function ma(t,e,i,n){var r=function(t){return Do(t.composedPath)?t.composedPath()[0]:t.target}(t);do{if(e&&r.disabled)return;var s=r.$EV;if(s){var o=s[i];if(o&&(n.dom=r,o.event?o.event(o.data,t):o(t),t.cancelBubble))return}r=r.parentNode}while(!ko(r))}function ga(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function xa(){return this.defaultPrevented}function ba(){return this.cancelBubble}function _a(t){var e={dom:document};return t.isDefaultPrevented=xa,t.isPropagationStopped=ba,t.stopPropagation=ga,Object.defineProperty(t,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function ya(t,e,i){if(t[e]){var n=t[e];n.event?n.event(n.data,i):n(i)}else{var r=e.toLowerCase();t[r]&&t[r](i)}}function wa(t,e){var i=function(i){var n=this.$V;if(n){var r=n.props||Oo,s=n.dom;if(To(t))ya(r,t,i);else for(var o=0;o<t.length;++o)ya(r,t[o],i);if(Do(e)){var a=this.$V;e(a.props||Oo,s,!1,a)}}};return Object.defineProperty(i,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),i}function Sa(t,e,i){var n="$"+e,r=t[n];if(r){if(r[1].wrapped)return;t.removeEventListener(r[0],r[1]),t[n]=null}Do(i)&&(t.addEventListener(e,i),t[n]=[e,i])}function Ea(t){return"checkbox"===t||"radio"===t}var Ca=wa("onInput",Ta),Ia=wa(["onClick","onChange"],Ta);function Da(t){t.stopPropagation()}function Ta(t,e){var i=t.type,n=t.value,r=t.checked,s=t.multiple,o=t.defaultValue,a=!Co(n);i&&i!==e.type&&e.setAttribute("type",i),Co(s)||s===e.multiple||(e.multiple=s),Co(o)||a||(e.defaultValue=o+""),Ea(i)?(a&&(e.value=n),Co(r)||(e.checked=r)):a&&e.value!==n?(e.defaultValue=n,e.value=n):Co(r)||(e.checked=r)}function ka(t,e){if("option"===t.type)!function(t,e){var i=t.props||Oo,n=t.dom;n.value=i.value,i.value===e||So(e)&&-1!==e.indexOf(i.value)?n.selected=!0:Co(e)&&Co(i.selected)||(n.selected=i.selected||!1)}(t,e);else{var i=t.children,n=t.flags;if(4&n)ka(i.$LI,e);else if(8&n)ka(i,e);else if(2===t.childFlags)ka(i,e);else if(12&t.childFlags)for(var r=0,s=i.length;r<s;++r)ka(i[r],e)}}Da.wrapped=!0;var Ma=wa("onChange",Aa);function Aa(t,e,i,n){var r=Boolean(t.multiple);Co(t.multiple)||r===e.multiple||(e.multiple=r);var s=t.selectedIndex;if(-1===s&&(e.selectedIndex=-1),1!==n.childFlags){var o=t.value;"number"==typeof s&&s>-1&&e.options[s]&&(o=e.options[s].value),i&&Co(o)&&(o=t.defaultValue),ka(n,o)}}var Oa,Ra,Fa=wa("onInput",Ba),Pa=wa("onChange");function Ba(t,e,i){var n=t.value,r=e.value;if(Co(n)){if(i){var s=t.defaultValue;Co(s)||s===r||(e.defaultValue=s,e.value=s)}}else r!==n&&(e.defaultValue=n,e.value=n)}function Ha(t,e,i,n,r,s){64&t?Ta(n,i):256&t?Aa(n,i,r,e):128&t&&Ba(n,i,r),s&&(i.$V=e)}function La(t){return t.type&&Ea(t.type)?!Co(t.checked):!Co(t.value)}function za(t){t&&!$o(t,null)&&t.current&&(t.current=null)}function Ga(t,e,i){t&&(Do(t)||void 0!==t.current)&&i.push((function(){$o(t,e)||void 0===t.current||(t.current=e)}))}function Na(t,e){Wa(t),Go(t,e)}function Wa(t){var e,i=t.flags,n=t.children;if(481&i){var r=t.props;za(e=t.ref);var s=t.childFlags;if(!ko(r))for(var o=Object.keys(r),a=0,h=o.length;a<h;a++){var u=o[a];fa[u]&&pa(u,t.dom)}12&s?Va(n):2===s&&Wa(n)}else n&&(4&i?(Do(n.componentWillUnmount)&&n.componentWillUnmount(),za(t.ref),n.$UN=!0,Wa(n.$LI)):8&i?(!Co(e=t.ref)&&Do(e.onComponentWillUnmount)&&e.onComponentWillUnmount(zo(t,!0),t.props||Oo),Wa(n)):1024&i?Na(n,t.ref):8192&i&&12&t.childFlags&&Va(n))}function Va(t){for(var e=0,i=t.length;e<i;++e)Wa(t[e])}function Ka(t){t.textContent=""}function Ua(t,e,i){Va(i),8192&e.flags?Go(e,t):Ka(t)}function ja(t,e,i,n,r,s,o){switch(t){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":n.autofocus=!!i;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":n[t]=!!i;break;case"defaultChecked":case"value":case"volume":if(s&&"value"===t)break;var a=Co(i)?"":i;n[t]!==a&&(n[t]=a);break;case"style":!function(t,e,i){if(Co(e))i.removeAttribute("style");else{var n,r,s=i.style;if(To(e))s.cssText=e;else if(Co(t)||To(t))for(n in e)s.setProperty(n,r=e[n]);else{for(n in e)(r=e[n])!==t[n]&&s.setProperty(n,r);for(n in t)Co(e[n])&&s.removeProperty(n)}}}(e,i,n);break;case"dangerouslySetInnerHTML":!function(t,e,i,n){var r=e&&e.__html||"";(t&&t.__html||"")!==r&&(Co(r)||function(t,e){var i=document.createElement("i");return i.innerHTML=e,i.innerHTML===t.innerHTML}(n,r)||(ko(i)||(12&i.childFlags?Va(i.children):2===i.childFlags&&Wa(i.children),i.children=null,i.childFlags=1),n.innerHTML=r))}(e,i,o,n);break;default:fa[t]?function(t,e,i,n){if(Do(i))va(t,n)[t]=i;else if(Ao(i)){if(jo(e,i))return;va(t,n)[t]=i}else pa(t,n)}(t,e,i,n):111===t.charCodeAt(0)&&110===t.charCodeAt(1)?function(t,e,i,n){if(Ao(i)){if(jo(e,i))return;i=function(t){var e=t.event;return function(i){e(t.data,i)}}(i)}Sa(n,Ro(t),i)}(t,e,i,n):Co(i)?n.removeAttribute(t):r&&ua[t]?n.setAttributeNS(ua[t],t,i):n.setAttribute(t,i)}}function qa(t,e,i,n,r){var s=!1,o=(448&e)>0;for(var a in o&&(s=La(i))&&function(t,e,i){64&t?function(t,e){Ea(e.type)?(Sa(t,"change",Ia),Sa(t,"click",Da)):Sa(t,"input",Ca)}(e,i):256&t?function(t){Sa(t,"change",Ma)}(e):128&t&&function(t,e){Sa(t,"input",Fa),e.onChange&&Sa(t,"change",Pa)}(e,i)}(e,n,i),i)ja(a,null,i[a],n,r,s,null);o&&Ha(e,t,n,i,!0,s)}function $a(t,e,i){var n=oa(t.render(e,t.state,i)),r=i;return Do(t.getChildContext)&&(r=Mo(i,t.getChildContext())),t.$CX=r,n}function Ja(t,e,i,n,r,s){var o=new e(i,n),a=o.$N=Boolean(e.getDerivedStateFromProps||o.getSnapshotBeforeUpdate);if(o.$SVG=r,o.$L=s,t.children=o,o.$BS=!1,o.context=n,o.props===Oo&&(o.props=i),a)o.state=Wo(o,i,o.state);else if(Do(o.componentWillMount)){o.$BR=!0,o.componentWillMount();var h=o.$PS;if(!ko(h)){var u=o.state;if(ko(u))o.state=h;else for(var l in h)u[l]=h[l];o.$PS=null}o.$BR=!1}return o.$LI=$a(o,i,n),o}function Za(t,e){var i=t.props||Oo;return 32768&t.flags?t.type.render(i,t.ref,e):t.type(i,e)}function Ya(t,e,i,n,r,s){var o=t.flags|=16384;481&o?Qa(t,e,i,n,r,s):4&o?function(t,e,i,n,r,s){var o=Ja(t,t.type,t.props||Oo,i,n,s);Ya(o.$LI,e,o.$CX,n,r,s),eh(t.ref,o,s)}(t,e,i,n,r,s):8&o?(function(t,e,i,n,r,s){Ya(t.children=oa(Za(t,i)),e,i,n,r,s)}(t,e,i,n,r,s),ih(t,s)):512&o||16&o?Xa(t,e,r):8192&o?function(t,e,i,n,r,s){var o=t.children,a=t.childFlags;12&a&&0===o.length&&(a=t.childFlags=2,o=t.children=ia()),2===a?Ya(o,i,e,n,r,s):th(o,i,e,n,r,s)}(t,i,e,n,r,s):1024&o&&function(t,e,i,n,r){Ya(t.children,t.ref,e,!1,null,r);var s=ia();Xa(s,i,n),t.dom=s.dom}(t,i,e,r,s)}function Xa(t,e,i){var n=t.dom=document.createTextNode(t.children);ko(e)||Po(e,n,i)}function Qa(t,e,i,n,r,s){var o=t.flags,a=t.props,h=t.className,u=t.childFlags,l=t.dom=function(t,e){return e?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t)}(t.type,n=n||(32&o)>0),c=t.children;if(Co(h)||""===h||(n?l.setAttribute("class",h):l.className=h),16===u)Uo(l,c);else if(1!==u){var d=n&&"foreignObject"!==t.type;2===u?(16384&c.flags&&(t.children=c=ea(c)),Ya(c,l,i,d,null,s)):8!==u&&4!==u||th(c,l,i,d,null,s)}ko(e)||Po(e,l,r),ko(a)||qa(t,o,a,l,n),Ga(t.ref,l,s)}function th(t,e,i,n,r,s){for(var o=0;o<t.length;++o){var a=t[o];16384&a.flags&&(t[o]=a=ea(a)),Ya(a,e,i,n,r,s)}}function eh(t,e,i){Ga(t,e,i),Do(e.componentDidMount)&&i.push(function(t){return function(){t.componentDidMount()}}(e))}function ih(t,e){var i=t.ref;Co(i)||($o(i.onComponentWillMount,t.props||Oo),Do(i.onComponentDidMount)&&e.push(function(t,e){return function(){t.onComponentDidMount(zo(e,!0),e.props||Oo)}}(i,t)))}function nh(t,e,i,n,r,s,o){var a=e.flags|=16384;t.flags!==a||t.type!==e.type||t.key!==e.key||2048&a?16384&t.flags?function(t,e,i,n,r,s){Wa(t),0!=(e.flags&t.flags&2033)?(Ya(e,null,n,r,null,s),function(t,e,i){t.replaceChild(e,i)}(i,e.dom,t.dom)):(Ya(e,i,n,r,zo(t,!0),s),Go(t,i))}(t,e,i,n,r,o):Ya(e,i,n,r,s,o):481&a?function(t,e,i,n,r,s){var o,a=e.dom=t.dom,h=t.props,u=e.props,l=!1,c=!1;if(n=n||(32&r)>0,h!==u){var d=h||Oo;if((o=u||Oo)!==Oo)for(var f in(l=(448&r)>0)&&(c=La(o)),o){var v=d[f],p=o[f];v!==p&&ja(f,v,p,a,n,c,t)}if(d!==Oo)for(var m in d)Co(o[m])&&!Co(d[m])&&ja(m,d[m],null,a,n,c,t)}var g=e.children,x=e.className;t.className!==x&&(Co(x)?a.removeAttribute("class"):n?a.setAttribute("class",x):a.className=x),4096&r?function(t,e){t.textContent!==e&&(t.textContent=e)}(a,g):rh(t.childFlags,e.childFlags,t.children,g,a,i,n&&"foreignObject"!==e.type,null,t,s),l&&Ha(r,e,a,o,!1,c);var b=e.ref,_=t.ref;_!==b&&(za(_),Ga(b,a,s))}(t,e,n,r,a,o):4&a?function(t,e,i,n,r,s,o){var a=e.children=t.children;if(!ko(a)){a.$L=o;var h=e.props||Oo,u=e.ref,l=t.ref,c=a.state;if(!a.$N){if(Do(a.componentWillReceiveProps)){if(a.$BR=!0,a.componentWillReceiveProps(h,n),a.$UN)return;a.$BR=!1}ko(a.$PS)||(c=Mo(c,a.$PS),a.$PS=null)}sh(a,c,h,i,n,r,!1,s,o),l!==u&&(za(l),Ga(u,a,o))}}(t,e,i,n,r,s,o):8&a?function(t,e,i,n,r,s,o){var a=!0,h=e.props||Oo,u=e.ref,l=t.props,c=!Co(u),d=t.children;if(c&&Do(u.onComponentShouldUpdate)&&(a=u.onComponentShouldUpdate(l,h)),!1!==a){c&&Do(u.onComponentWillUpdate)&&u.onComponentWillUpdate(l,h);var f=oa(Za(e,n));nh(d,f,i,n,r,s,o),e.children=f,c&&Do(u.onComponentDidUpdate)&&u.onComponentDidUpdate(l,h)}else e.children=d}(t,e,i,n,r,s,o):16&a?function(t,e){var i=e.children,n=e.dom=t.dom;i!==t.children&&(n.nodeValue=i)}(t,e):512&a?e.dom=t.dom:8192&a?function(t,e,i,n,r,s){var o=t.children,a=e.children,h=t.childFlags,u=e.childFlags,l=null;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=ia());var c=0!=(2&u);if(12&h){var d=o.length;(8&h&&8&u||c||!c&&a.length>d)&&(l=zo(o[d-1],!1).nextSibling)}rh(h,u,o,a,i,n,r,l,t,s)}(t,e,i,n,r,o):function(t,e,i,n){var r=t.ref,s=e.ref,o=e.children;if(rh(t.childFlags,e.childFlags,t.children,o,r,i,!1,null,t,n),e.dom=t.dom,r!==s&&!Io(o)){var a=o.dom;Bo(r,a),Fo(s,a)}}(t,e,n,o)}function rh(t,e,i,n,r,s,o,a,h,u){switch(t){case 2:switch(e){case 2:nh(i,n,r,s,o,a,u);break;case 1:Na(i,r);break;case 16:Wa(i),Uo(r,n);break;default:!function(t,e,i,n,r,s){Wa(t),th(e,i,n,r,zo(t,!0),s),Go(t,i)}(i,n,r,s,o,u)}break;case 1:switch(e){case 2:Ya(n,r,s,o,a,u);break;case 1:break;case 16:Uo(r,n);break;default:th(n,r,s,o,a,u)}break;case 16:switch(e){case 16:!function(t,e,i){t!==e&&(""!==t?i.firstChild.nodeValue=e:Uo(i,e))}(i,n,r);break;case 2:Ka(r),Ya(n,r,s,o,a,u);break;case 1:Ka(r);break;default:Ka(r),th(n,r,s,o,a,u)}break;default:switch(e){case 16:Va(i),Uo(r,n);break;case 2:Ua(r,h,i),Ya(n,r,s,o,a,u);break;case 1:Ua(r,h,i);break;default:var l=0|i.length,c=0|n.length;0===l?c>0&&th(n,r,s,o,a,u):0===c?Ua(r,h,i):8===e&&8===t?function(t,e,i,n,r,s,o,a,h,u){var l,c,d=s-1,f=o-1,v=0,p=t[v],m=e[v];t:{for(;p.key===m.key;){if(16384&m.flags&&(e[v]=m=ea(m)),nh(p,m,i,n,r,a,u),t[v]=m,++v>d||v>f)break t;p=t[v],m=e[v]}for(p=t[d],m=e[f];p.key===m.key;){if(16384&m.flags&&(e[f]=m=ea(m)),nh(p,m,i,n,r,a,u),t[d]=m,f--,v>--d||v>f)break t;p=t[d],m=e[f]}}if(v>d){if(v<=f)for(c=(l=f+1)<o?zo(e[l],!0):a;v<=f;)16384&(m=e[v]).flags&&(e[v]=m=ea(m)),++v,Ya(m,i,n,r,c,u)}else if(v>f)for(;v<=d;)Na(t[v++],i);else!function(t,e,i,n,r,s,o,a,h,u,l,c,d){var f,v,p,m=0,g=a,x=a,b=s-a+1,_=o-a+1,y=new Int32Array(_+1),w=b===n,S=!1,E=0,C=0;if(r<4||(b|_)<32)for(m=g;m<=s;++m)if(f=t[m],C<_){for(a=x;a<=o;a++)if(f.key===(v=e[a]).key){if(y[a-x]=m+1,w)for(w=!1;g<m;)Na(t[g++],h);E>a?S=!0:E=a,16384&v.flags&&(e[a]=v=ea(v)),nh(f,v,h,i,u,l,d),++C;break}!w&&a>o&&Na(f,h)}else w||Na(f,h);else{var I={};for(m=x;m<=o;++m)I[e[m].key]=m;for(m=g;m<=s;++m)if(f=t[m],C<_)if(void 0!==(a=I[f.key])){if(w)for(w=!1;m>g;)Na(t[g++],h);y[a-x]=m+1,E>a?S=!0:E=a,16384&(v=e[a]).flags&&(e[a]=v=ea(v)),nh(f,v,h,i,u,l,d),++C}else w||Na(f,h);else w||Na(f,h)}if(w)Ua(h,c,t),th(e,h,i,u,l,d);else if(S){var D=function(t){var e=0,i=0,n=0,r=0,s=0,o=0,a=0,h=t.length;for(h>oh&&(oh=h,Oa=new Int32Array(h),Ra=new Int32Array(h));i<h;++i)if(0!==(e=t[i])){if(t[n=Oa[r]]<e){Ra[i]=n,Oa[++r]=i;continue}for(s=0,o=r;s<o;)t[Oa[a=s+o>>1]]<e?s=a+1:o=a;e<t[Oa[s]]&&(s>0&&(Ra[i]=Oa[s-1]),Oa[s]=i)}s=r+1;var u=new Int32Array(s);for(o=Oa[s-1];s-- >0;)u[s]=o,o=Ra[o],Oa[s]=0;return u}(y);for(a=D.length-1,m=_-1;m>=0;m--)0===y[m]?(16384&(v=e[E=m+x]).flags&&(e[E]=v=ea(v)),Ya(v,h,i,u,(p=E+1)<r?zo(e[p],!0):l,d)):a<0||m!==D[a]?No(v=e[E=m+x],h,(p=E+1)<r?zo(e[p],!0):l):a--}else if(C!==_)for(m=_-1;m>=0;m--)0===y[m]&&(16384&(v=e[E=m+x]).flags&&(e[E]=v=ea(v)),Ya(v,h,i,u,(p=E+1)<r?zo(e[p],!0):l,d))}(t,e,n,s,o,d,f,v,i,r,a,h,u)}(i,n,r,s,o,l,c,a,h,u):function(t,e,i,n,r,s,o,a,h){for(var u,l,c=s>o?o:s,d=0;d<c;++d)l=t[d],16384&(u=e[d]).flags&&(u=e[d]=ea(u)),nh(l,u,i,n,r,a,h),t[d]=u;if(s<o)for(d=c;d<o;++d)16384&(u=e[d]).flags&&(u=e[d]=ea(u)),Ya(u,i,n,r,a,h);else if(s>o)for(d=c;d<s;++d)Na(t[d],i)}(i,n,r,s,o,l,c,a,u)}}}function sh(t,e,i,n,r,s,o,a,h){var u=t.state,l=t.props,c=Boolean(t.$N),d=Do(t.shouldComponentUpdate);if(c&&(e=Wo(t,i,e!==u?Mo(u,e):e)),o||!d||d&&t.shouldComponentUpdate(i,e,r)){!c&&Do(t.componentWillUpdate)&&t.componentWillUpdate(i,e,r),t.props=i,t.state=e,t.context=r;var f=null,v=$a(t,i,r);c&&Do(t.getSnapshotBeforeUpdate)&&(f=t.getSnapshotBeforeUpdate(l,u)),nh(t.$LI,v,n,t.$CX,s,a,h),t.$LI=v,Do(t.componentDidUpdate)&&function(t,e,i,n,r){r.push((function(){t.componentDidUpdate(e,i,n)}))}(t,l,u,f,h)}else t.props=i,t.state=e,t.context=r}var oh=0;function ah(t,e,i,n){void 0===i&&(i=null),void 0===n&&(n=Oo),function(t,e,i,n){var r=[],s=e.$V;Vo.v=!0,Co(s)?Co(t)||(16384&t.flags&&(t=ea(t)),Ya(t,e,n,!1,null,r),e.$V=t,s=t):Co(t)?(Na(s,e),e.$V=null):(16384&t.flags&&(t=ea(t)),nh(s,t,e,n,!1,null,r),s=e.$V=t),Ho(r),Vo.v=!1,Do(i)&&i(),Do(Ko.renderComplete)&&Ko.renderComplete(s,e)}(t,e,i,n)}"undefined"!=typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var hh=[],uh="undefined"!=typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(t){window.setTimeout(t,0)},lh=!1;function ch(t,e,i,n){var r=t.$PS;if(Do(e)&&(e=e(r?Mo(t.state,r):t.state,t.props,t.context)),Co(r))t.$PS=e;else for(var s in e)r[s]=e[s];if(t.$BR)Do(i)&&t.$L.push(i.bind(t));else{if(!Vo.v&&0===hh.length)return vh(t,n),void(Do(i)&&i.call(t));if(-1===hh.indexOf(t)&&hh.push(t),n&&(t.$F=!0),lh||(lh=!0,uh(fh)),Do(i)){var o=t.$QU;o||(o=t.$QU=[]),o.push(i)}}}function dh(t){for(var e=t.$QU,i=0;i<e.length;++i)e[i].call(t);t.$QU=null}function fh(){var t;for(lh=!1;t=hh.shift();)if(!t.$UN){var e=t.$F;t.$F=!1,vh(t,e),t.$QU&&dh(t)}}function vh(t,e){if(e||!t.$BR){var i=t.$PS;t.$PS=null;var n=[];Vo.v=!0,sh(t,Mo(t.state,i),t.props,zo(t.$LI,!0).parentNode,t.context,t.$SVG,e,null,n),Ho(n),Vo.v=!1}else t.state=t.$PS,t.$PS=null}var ph=function(t,e){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=t||Oo,this.context=e||Oo};ph.prototype.forceUpdate=function(t){this.$UN||ch(this,{},t,!0)},ph.prototype.setState=function(t,e){this.$UN||this.$BS||ch(this,t,e,!1)},ph.prototype.render=function(){return null};var mh=t=>({keyName:gr(t),key:t.key,code:t.code,ctrl:t.ctrlKey,location:t.location,metaKey:t.metaKey,shift:t.shiftKey,alt:t.altKey,which:t.which,originalEvent:t}),gh=O.inherit({_keydown:xr("keydown","KeyboardProcessor"),_compositionStart:xr("compositionstart","KeyboardProcessor"),_compositionEnd:xr("compositionend","KeyboardProcessor"),ctor:function(t){(t=t||{}).element&&(this._element=pi(t.element)),t.focusTarget&&(this._focusTarget=t.focusTarget),this._handler=t.handler,this._element&&(this._processFunction=t=>{var e=pi(this._focusTarget).toArray(),i=this._focusTarget&&this._focusTarget!==t.target&&!e.includes(t.target),n=this._isComposingJustFinished&&229===t.which||this._isComposing||i;this._isComposingJustFinished=!1,n||this.process(t)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),we.on(this._element,this._keydown,this._processFunction),we.on(this._element,this._compositionStart,this._toggleProcessingWithContext),we.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(we.off(this._element,this._keydown,this._processFunction),we.off(this._element,this._compositionStart,this._toggleProcessingWithContext),we.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(t){this._handler(mh(t))},toggleProcessing:function(t){var{type:e}=t;this._isComposing="compositionstart"===e,this._isComposingJustFinished=!this._isComposing}});gh.createKeyDownOptions=mh;const xh={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const t=this.callbacks;this.callbacks=[],t.forEach((t=>t()))}}},bh=(t,e)=>{if(!(t instanceof Object&&e instanceof Object))return t===e;const i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&!i.some((i=>t[i]!==e[i]))};class _h extends ph{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(t,e){this._pendingContext=null!=e?e:{}}shouldComponentUpdate(t,e){return!bh(this.props,t)||!bh(this.state,e)||!bh(this.context,this._pendingContext)}}class yh extends _h{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){xh.lock()}componentWillUpdate(t,e,i){xh.lock()}componentDidMount(){xh.callbacks.push((()=>{this._effects=this.createEffects()})),xh.callEffects()}componentDidUpdate(){xh.callbacks.push((()=>this.updateEffects())),xh.callEffects()}destroyEffects(){this._effects.forEach((t=>t.dispose()))}componentWillUnmount(){this.destroyEffects()}}class wh extends yh{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const t=this.vDomElement,e=t.className.length?t.className.split(" "):[],i=e.filter((e=>t.dxClasses.previous.indexOf(e)<0)),n=t.dxClasses.previous.filter((t=>e.indexOf(t)<0));i.forEach((e=>{const i=t.dxClasses.removed.indexOf(e);i>-1?t.dxClasses.removed.splice(i,1):t.dxClasses.added.push(e)})),n.forEach((e=>{const i=t.dxClasses.added.indexOf(e);i>-1?t.dxClasses.added.splice(i,1):t.dxClasses.removed.push(e)}))}componentDidMount(){const t=zo(this.$LI,!0);this.vDomElement=t,super.componentDidMount(),t.dxClasses=t.dxClasses||{removed:[],added:[],previous:[]},t.dxClasses.previous=(null==t?void 0:t.className.length)?t.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const t=this.vDomElement;null!==t&&(t.dxClasses.added.forEach((e=>t.classList.add(e))),t.dxClasses.removed.forEach((e=>t.classList.remove(e))),t.dxClasses.previous=t.className.length?t.className.split(" "):[])}shouldComponentUpdate(t,e){const i=super.shouldComponentUpdate(t,e);return i&&this.vDomUpdateClasses(),i}}let Sh=0;class Eh{constructor(t,e){this.dependency=e,this.effect=t,this.destroy=t()}update(t){const e=this.dependency;t&&(this.dependency=t),t&&!t.some(((t,i)=>e[i]!==t))||(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const Ch=()=>new Eh((()=>{fh()}),[]);function Ih(t){return null===t}function Dh(t,e,i,n,r,s){const o=t.childFlags,a=t.children,h=t.props,u=t.flags;if(1!==o){if(2===o)Ih(i)?Ya(a,e,n,r,null,s):i=(i=kh(a,e,i,n,r,s))?i.nextSibling:null;else if(16===o)Ih(i)?e.appendChild(document.createTextNode(a)):1!==e.childNodes.length||3!==i.nodeType?e.textContent=a:i.nodeValue!==a&&(i.nodeValue=a),i=null;else if(12&o){let t=!1;for(let o=0,h=a.length;o<h;++o){const h=a[o];Ih(i)||t&&(16&h.flags)>0?Ya(h,e,n,r,i,s):i=(i=kh(h,e,i,n,r,s))?i.nextSibling:null,t=(16&h.flags)>0}}if(0==(8192&u)){let t=null;for(;i;)t=i.nextSibling,e.removeChild(i),i=t}}else Ih(e.firstChild)||function(t,e){return Boolean(e&&e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html&&function(t,e){const i=document.createElement("i");return i.innerHTML=e,i.innerHTML===t.innerHTML}(t,e.dangerouslySetInnerHTML.__html))}(e,h)||(e.textContent="",448&u&&(e.defaultValue=""))}function Th(t,e,i){if(3!==i.nodeType)e.replaceChild(t.dom=document.createTextNode(t.children),i);else{const e=t.children;i.nodeValue!==e&&(i.nodeValue=e),t.dom=i}return t.dom}function kh(t,e,i,n,r,s){const o=t.flags|=16384;return 14&o?function(t,e,i,n,r,s,o){const a=t.ref;let h;if(s){const s=Ja(t,t.type,t.props||Oo,n,r,o);h=kh(s.$LI,e,i,s.$CX,r,o),eh(a,s,o)}else{const s=oa(Za(t,n));h=kh(s,e,i,n,r,o),t.children=s,ih(t,o)}return h}(t,e,i,n,r,(4&o)>0,s):481&o?function(t,e,i,n,r,s){const o=t.props,a=t.className,h=t.flags,u=t.ref;return r=r||(32&h)>0,1!==i.nodeType?(Qa(t,null,n,r,null,s),e.replaceChild(t.dom,i)):(t.dom=i,Dh(t,i,i.firstChild,n,r,s),Ih(o)||qa(t,h,o,i,r),null==a?""!==i.className&&i.removeAttribute("class"):r?i.setAttribute("class",a):i.className=a,Ga(u,i,s)),t.dom}(t,e,i,n,r,s):16&o?Th(t,e,i):512&o?t.dom=i:8192&o?function(t,e,i,n,r,s){const o=t.children;return 2===t.childFlags?(Th(o,e,i),o.dom):(Dh(t,e,i,n,r,s),function(t){let e,i;for(;t;){if(e=t.flags,2033&e)return t.dom;i=t.children,t=8192&e?2===t.childFlags?i:i[i.length-1]:4&e?i.$LI:i}return null}(o[o.length-1]))}(t,e,i,n,r,s):(function(t){throw t||(t="a runtime error occured! Use Inferno in development environment to find the error."),new Error(`Inferno Error: ${t}`)}(),null)}function Mh(t){return null==t}function Ah(t){return"string"==typeof t}function Oh(t){return void 0===t}var Rh={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function Fh(t,e,i){var n,r,s=arguments,o=null,a=null,h=null,u=0,l=arguments.length-2;if(1===l)n=i;else if(l>1)for(n=[];l-- >0;)n[l]=s[l+2];if(!Ah(t)){if(u=2,Oh(n)||(e||(e={}),e.children=n),!Mh(e))for(var c in r={},e)"key"===c?a=e.key:"ref"===c?o=e.ref:1===Rh[c]?(o||(o={}),o[c]=e[c]):r[c]=e[c];return Yo(u,t,r,a,o)}if(u=ra(t),!Mh(e))for(var d in r={},e)"className"===d||"class"===d?h=e[d]:"key"===d?a=e.key:"children"===d&&Oh(n)?n=e.children:"ref"===d?o=e.ref:("contenteditable"===d&&(u|=4096),r[d]=e[d]);return 8192&u?Qo(1===l?[n]:n,0,a):Zo(u,t,h,n,0,r,a,o)}const Ph=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),Bh=/[A-Z]/g;function Hh(t){if(t instanceof Object)return Object.entries(t).reduce(((t,[e,i])=>{var n;return t[(n=e,n.replace(Bh,"-$&").toLowerCase())]=(t=>"number"==typeof t||!Number.isNaN(Number(t)))(i)?((t,e)=>Ph.has(t)?e:`${e}px`)(e,i):i,t}),{})}var Lh=t=>{var{parentNode:e}=t;e&&(Ve(t),e.$V=t.$V,ah(null,e),e.appendChild(t),t.innerHTML="",delete e.$V),delete t.$V};const zh=R({createElement:(t,e)=>Fh(t,e),remove:Lh,onAfterRender:()=>{xh.callEffects()},onPreRender:()=>{xh.lock()},render:(t,e,i,n)=>{if(n)ah(Fh(t,e),i);else{var{parentNode:r}=i,s=null==i?void 0:i.nextSibling,o=Tt.createElement("div");o.appendChild(i);var a=Tt.createDocumentFragment().appendChild(o);!!i.$V&&Lh(i),function(t,e,i){let n=e.firstChild;if(Ih(n))ah(t,e,i);else{const i=[];for(null!==(r=t)&&!1!==r&&!0!==r&&void 0!==r&&(n=kh(t,e,n,{},!1,i));n&&(n=n.nextSibling);)e.removeChild(n);if(i.length>0){let t;for(;void 0!==(t=i.shift());)t()}}var r;e.$V=t}(Fh(t,e),a),i.$V=a.$V,r&&r.insertBefore(i,s)}}});var Gh={},Nh=t=>{var e=dn.current();return t.reduce(((t,i)=>{var{device:n,options:s}=i,o=n||{};return(r(o)?o(e):Wh(e,o))&&v(!0,t,s),t}),{})},Wh=(t,e)=>h(e)||gt(t,[e]).length>0,Vh=t=>t.substr(t.lastIndexOf(".")+1),Kh=t=>t.substr(0,t.lastIndexOf(".")),Uh={},jh={};class qh{constructor(t,e){this._options=t,this._optionsByReference=e}_setByReference(t,e){for(var i in v(!0,t,e),this._optionsByReference)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}_setPreparedValue(t,e,i,s){var o,a,h,l,d=this.get(this._options,t,!1);if(a=e,o=ot(o=d,!0),a=ot(a,!0),!(o&&a&&c(o)&&c(a)?a.is(o):o!=o&&a!=a||(0===o&&0===a?function(t,e){return 1/t==1/e}(o,a):(null===o||"object"!=typeof o||Tt.isElementNode(o))&&o===a))){var f=X(t);!s&&this._changingCallback(t,d,e),jh[t]=jh[t]||(l=(h=X((h=t)||"this")).length-1,function(t,e,i){var s=et(t,i=tt(i));h.forEach((function(t,o){var a=function(t,e,i){return et("this"===e?t:t[e],i=i||{})}(s,t,i),h=!i.functionsAsIs&&r(a)&&!Z(a);o===l?i.merge&&u(e)&&(!n(a)||u(a))?(a=st(s,t,a,i),$(a,e,!1,!0)):h?s[t](e):Q(s,t,e,i):(a=st(s,t,a,i),h&&(a=a.call(s)),s=a)}))}),jh[t](this._options,e,{functionsAsIs:!0,merge:n(i)?i:!this._optionsByReference[t],unwrapObservables:f.length>1&&!!this._optionsByReference[f[0]]}),!s&&this._changedCallback(t,e,d)}}_prepareRelevantNames(t,e,i,n){if(u(i))for(var r in i)this._prepareRelevantNames(t,"".concat(e,".").concat(r),i[r]);this._namePreparedCallbacks(t,e,i,n)}get(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return Uh[e]=Uh[e]||it(e),Uh[e](t,{functionsAsIs:!0,unwrapObservables:i})}set(t,e,i,n){for(var r in t=((t,e)=>"string"!=typeof t?t:{[t]:e})(t,e))this._prepareRelevantNames(t,r,t[r],n);for(var s in t)this._setPreparedValue(s,t[s],i,n)}onRelevantNamesPrepared(t){this._namePreparedCallbacks=t}onChanging(t){this._changingCallback=t}onChanged(t){this._changedCallback=t}dispose(){this._changingCallback=St,this._changedCallback=St}}class $h{constructor(t,e,i,n){this._default=e,this._deprecated=n,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new qh(t,i),this._optionManager.onRelevantNamesPrepared(((t,e,i,n)=>this._setRelevantNames(t,e,i,n))),this._cachedOptions={},this._rules=[]}set _initial(t){this._initialOptions=t}get _initial(){if(!this._initialOptions){var t=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,t)}return this._initialOptions}_initDeprecatedNames(){for(var t in this._deprecated)this._deprecatedNames.push(t)}_getByRules(t){return t=Array.isArray(t)?this._rules.concat(t):this._rules,Nh(t)}_notifyDeprecated(t){var e=this._deprecated[t];e&&this._deprecatedCallback(t,e)}_setRelevantNames(t,e,i,n){if(e){var r=this._normalizeName(e,n);r&&r!==e&&(this._setField(t,r,i),this._clearField(t,e))}}_setField(t,e,i){var n="",r=null;do{n=n?".".concat(n):"",n=Vh(e)+n,r=(e=Kh(e))?this._optionManager.get(t,e,!1):t}while(!r);r[n]=i}_clearField(t,e){delete t[e];var i=Kh(e),n=i?this._optionManager.get(t,i,!1):t;n&&delete n[Vh(e)]}_normalizeName(t,e){if(this._deprecatedNames.length&&t)for(var i=0;i<this._deprecatedNames.length;i++)if(this._deprecatedNames[i]===t){var n=this._deprecated[t];if(n)return!e&&this._notifyDeprecated(t),n.alias||t}return t}addRules(t){this._rules=t.concat(this._rules)}applyRules(t){var e=this._getByRules(t);this.silent(e)}dispose(){this._deprecatedCallback=St,this._startChangeCallback=St,this._endChangeCallback=St,this._optionManager.dispose()}onChanging(t){this._optionManager.onChanging(t)}onChanged(t){this._optionManager.onChanged(t)}onDeprecated(t){this._deprecatedCallback=t}onStartChange(t){this._startChangeCallback=t}onEndChange(t){this._endChangeCallback=t}isInitial(t){var e=this.silent(t),i=this.initial(t);return r(e)&&r(i)?e.toString()===i.toString():Dt(e,i)}initial(t){return function(t,e){return Gh[e]=Gh[e]||it(e),Gh[e](t,{functionsAsIs:!0})}(this._initial,t)}option(t,i){if(arguments.length<2&&"object"!==e(t))return this._optionManager.get(void 0,this._normalizeName(t));this._startChangeCallback();try{this._optionManager.set(t,i)}finally{this._endChangeCallback()}}silent(t,i){if(arguments.length<2&&"object"!==e(t))return this._optionManager.get(void 0,t,void 0,!0);this._optionManager.set(t,i,void 0,!0)}reset(t){if(t){var e=X(t).reduce(((t,e)=>t?t[e]:this.initial(e)),null),i=a(e)?se({},e):e;this._optionManager.set(t,i,!1)}}getAliasesByName(t){return Object.keys(this._deprecated).filter((e=>t===this._deprecated[e].alias))}isDeprecated(t){return Object.prototype.hasOwnProperty.call(this._deprecated,t)}cache(t,e){if(arguments.length<2)return this._cachedOptions[t];this._cachedOptions[t]=v(this._cachedOptions[t],e)}}class Jh{constructor(t,e){e=e||{},this._action=t,this._context=e.context||Ot(),this._beforeExecute=e.beforeExecute,this._afterExecute=e.afterExecute,this._component=e.component,this._validatingTargetName=e.validatingTargetName;var i=this._excludeValidators={};if(e.excludeValidators)for(var n=0;n<e.excludeValidators.length;n++)i[e.excludeValidators[n]]=!0}execute(){var t={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},e=this._beforeExecute,i=this._afterExecute,n=t.args[0]||{};if(this._validateAction(t)&&(null==e||e.call(this._context,t),!t.cancel)){var r=this._executeAction(t);if(!n.cancel)return null==i||i.call(this._context,t),r}}_validateAction(t){var e=this._excludeValidators,{executors:i}=Jh;for(var n in i)if(!e[n]){var r,s=i[n];if(null===(r=s.validate)||void 0===r||r.call(s,t),t.cancel)return!1}return!0}_executeAction(t){var e,{executors:i}=Jh;for(var n in i){var r,s=i[n];if(null===(r=s.execute)||void 0===r||r.call(s,t),t.handled){e=t.result;break}}return e}static registerExecutor(t,e){u(t)?m(t,Jh.registerExecutor):Jh.executors[t]=e}static unregisterExecutor(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];m(e,(function(){delete Jh.executors[this]}))}}Jh.executors={};var Zh=t=>e=>{if(e.args.length){var i=e.args[0],n=i[e.validatingTargetName]||i.element;n&&t(pi(n))&&(e.cancel=!0)}};Jh.registerExecutor({disabled:{validate:Zh((t=>t.is(".dx-state-disabled, .dx-state-disabled *")))},readOnly:{validate:Zh((t=>t.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)")))},undefined:{execute:t=>{t.action||(t.result=void 0,t.handled=!0)}},func:{execute:t=>{r(t.action)&&(t.result=t.action.call(t.context,t.args[0]),t.handled=!0)}}});class Yh{constructor(){this._postponedOperations={}}add(t,e,i){if(t in this._postponedOperations)i&&this._postponedOperations[t].promises.push(i);else{var n=new K;this._postponedOperations[t]={fn:e,completePromise:n,promises:i?[i]:[]}}return this._postponedOperations[t].completePromise.promise()}callPostponedOperations(){for(var t in this._postponedOperations){var e=this._postponedOperations[t];n(e)&&(e.promises&&e.promises.length?U(...e.promises).done(e.fn).then(e.completePromise.resolve):e.fn().done(e.completePromise.resolve))}this._postponedOperations={}}}var Xh=t=>t.charAt(2).toLowerCase()+t.substr(3),Qh=O.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(t){this._options.applyRules(t)},_convertRulesToOptions:t=>Nh(t),_isInitialOptionValue(t){return this._options.isInitial(t)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:e,_disposingCallbacks:i}=t;this.NAME=_i(this.constructor),this._eventsStrategy=Xi.create(this,t.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=e||z(),this._disposingCallbacks=i||z(),this.postponedOperations=new Yh,this._createOptions(t)},_createOptions(t){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new $h(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging(((t,e,i)=>this._initialized&&this._optionChanging(t,e,i))),this._options.onDeprecated(((t,e)=>this._logDeprecatedOptionWarning(t,e))),this._options.onChanged(((t,e,i)=>this._notifyOptionChanged(t,e,i))),this._options.onStartChange((()=>this.beginUpdate())),this._options.onEndChange((()=>this.endUpdate())),this._options.addRules(this._defaultOptionsRules()),t&&t.onInitializing&&t.onInitializing.apply(this,[t]),this._setOptionsByDevice(t.defaultOptionsRules),this._initOptions(t)}finally{this.endUpdate()}},_initOptions(t){this.option(t)},_init(){this._createOptionChangedAction(),this.on("disposing",(t=>{this._disposingCallbacks.fireWith(this,[t])}))},_logDeprecatedOptionWarning(t,e){var i=e.message||"Use the '".concat(e.alias,"' option instead");E.log("W0001",this.NAME,t,e.since,i)},_logDeprecatedComponentWarning(t,e){E.log("W0000",this.NAME,t,"Use the '".concat(e,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(t){switch(t.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:St,_notifyOptionChanged(t,e,i){if(this._initialized)for(var n=[t].concat(this._options.getAliasesByName(t)),r=0;r<n.length;r++){var s=n[r],o={name:X(s)[0],fullName:s,value:e,previousValue:i};0!==s.indexOf("_",0)&&(this._optionChangedCallbacks.fireWith(this,[v(this._defaultActionArgs(),o)]),this._optionChangedAction(v({},o))),this._disposed||this._cancelOptionChange===s||this._optionChanged(o)}},initialOption(t){return this._options.initial(t)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(t,e){var i;return r=>(n(r)||(r={}),u(r)||(r={actionValue:r}),(i=i||new Jh(t,v(e,this._defaultActionConfig()))).execute.call(i,v(r,this._defaultActionArgs())))},_createActionByOption(t,e){var i,n,r,s=this,o=function(){if(!n){if(e=e||{},"string"!=typeof t)throw E.Error("E0008");0===t.indexOf("on")&&(n=Xh(t)),r=s.option(t)}if(i||r||e.beforeExecute||e.afterExecute||s._eventsStrategy.hasEvent(n)){if(!i){var o=e.beforeExecute;e.beforeExecute=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];o&&o.apply(s,e),s._eventsStrategy.fireEvent(n,e[0].args)},i=s._createAction(r,e)}for(var a=arguments.length,h=new Array(a),u=0;u<a;u++)h[u]=arguments[u];if(B().wrapActionsBeforeExecute){var l=s.option("beforeActionExecute")||St,c=l(s,i,e)||i;return c.apply(s,h)}return i.apply(s,h)}};return B().wrapActionsBeforeExecute?o:(this.option("onActionCreated")||St)(this,o,e)||o},on(t,e){return this._eventsStrategy.on(t,e),this},off(t,e){return this._eventsStrategy.off(t,e),this},hasActionSubscription:function(t){return!!this._options.silent(t)||this._eventsStrategy.hasEvent(Xh(t))},isOptionDeprecated(t){return this._options.isDeprecated(t)},_setOptionWithoutOptionChange(t,e){this._cancelOptionChange=t,this.option(t,e),this._cancelOptionChange=!1},_getOptionValue(t,e){var i=this.option(t);return r(i)?i.bind(e)():i},option(){return this._options.option(...arguments)},resetOption(t){this.beginUpdate(),this._options.reset(t),this.endUpdate()}}),tu=function(t){return function(e){for(var i=pi(e||"body"),n=i.filter(".dx-visibility-change-handler").add(i.find(".dx-visibility-change-handler")),r=0;r<n.length;r++)we.triggerHandler(n[r],t)}},eu=tu("dxshown"),iu=tu("dxhiding"),nu=tu("dxresize"),ru=z({syncStrategy:!0});class su{render(t){var e,i=(t=t||{}).onRendered;return delete t.onRendered,e=t.renovated&&t.transclude&&this._element?pi("<div>").append(this._element).contents():this._renderCore(t),this._ensureResultInContainer(e,t.container),ru.fire(e,t.container),i&&i(),e}_ensureResultInContainer(t,e){if(e){var i=pi(e),n=Zr(i.get(0),t.get(0));i.append(t),n||Tt.getBody().contains(i.get(0))&&eu(t)}}_renderCore(){throw E.Error("E0001")}}class ou extends su{constructor(t){super(),this._render=t}_renderCore(t){return Jr(this._render(t))}}class au extends su{_renderCore(){return pi()}}class hu extends su{constructor(t){super(),this.name=t}}var uu,lu={};function cu(t,e){lu[t]=e}function du(){return uu}cu("jquery-tmpl",{compile:t=>$r(t),render:(t,e)=>jQuery.tmpl(t,e)}),cu("jsrender",{compile:t=>(jQuery||jsrender).templates($r(t)),render:(t,e)=>t.render(e)}),cu("mustache",{compile:t=>$r(t),render:(t,e)=>Mustache.render(t,e)}),cu("hogan",{compile:t=>Hogan.compile($r(t)),render:(t,e)=>t.render(e)}),cu("underscore",{compile:t=>_.template($r(t)),render:(t,e)=>t(e)}),cu("handlebars",{compile:t=>Handlebars.compile($r(t)),render:(t,e)=>t(e)}),cu("doT",{compile:t=>doT.template($r(t)),render:(t,e)=>t(e)}),cu("default",{compile:t=>Jr(t),render:t=>t.clone()}),function(t){if(s(t)){if(!(uu=lu.default))throw E.Error("E0020",t)}else uu=t}("default");class fu extends su{constructor(t){super(),this._element=t}_renderCore(t){var e=t.transclude;return e||this._compiledTemplate||(this._compiledTemplate=du().compile(this._element)),pi("<div>").append(e?this._element:du().render(this._compiledTemplate,t.model,t.index)).contents()}source(){return pi(this._element).clone()}}function vu(t){return t.reduce(((t,e)=>{var i;return t[e]=(null!==(i=t[e])&&void 0!==i?i:0)+1,t}),{})}var pu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=vu(e);return t.filter((t=>!i[t]--))},mu=(t,e)=>{var i=pi(t).contents().filter("[".concat("data-options",'*="').concat(e,'"]'));return[].slice.call(i).map((t=>{var i=pi(t).attr("data-options")||"";return{element:t,options:B().optionsParser(i)[e]}})).filter((t=>!!t.options))},gu=t=>{var e=t.render.bind(t);return v({},t,{render(t){var i=e(t);return t&&t.onRendered&&t.onRendered(),i}})},xu=t=>c(t)&&t[0]||t,bu=t=>new fu(t),_u=(t,e,i,n,s,o)=>null==t?new au:t instanceof hu?o[t.name]:t instanceof su?t:r(t.render)&&!c(t)?n?t:gu(t):t.nodeType||c(t)?e(pi(t)):((t,e,i,n)=>{var r=null;return n&&-1!==n.indexOf(t)||!(r=e[t])||r instanceof su||i||(r=gu(r)),r})(t,i,n,s)||o[t]||e(t),yu=new ou((t=>{var{model:e,parent:i}=t,n=e.widget;if(!n)return pi();var r=pi("<div>"),s=e.options||{};return i?i._createComponent(r,n,s):r[n](s),r}));class wu{constructor(t,e){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=e||"template",this._createElement=t||bu,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.skipImmediate||e(t()),St},templates:{"dx-polymorph-widget":yu},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(t){this._defaultTemplates=v({},this._defaultTemplates,t)}dispose(){this._tempTemplates.forEach((t=>{t.template.dispose&&t.template.dispose()})),this._tempTemplates=[]}extractTemplates(t){return{templates:this._extractTemplates(t),anonymousTemplateMeta:this._extractAnonymousTemplate(t)}}_extractTemplates(t){var e=mu(t,"dxTemplate"),i=(t=>{var e,i=(e=t=>t.options.name,t.reduce(((t,i)=>{var n,r=e(i);return t[r]=null!==(n=t[r])&&void 0!==n?n:[],t[r].push(i),t}),{}));if(i[void 0])throw E.Error("E0023");var n={};return Object.keys(i).forEach((t=>{var e,r=null===(e=gt(dn.current(),i[t],(t=>t.options))[0])||void 0===e?void 0:e.element;r&&(n[t]=r)})),n})(e);return e.forEach((t=>{var{element:e,options:{name:n}}=t;e===i[n]?pi(e).addClass("dx-template-wrapper").detach():pi(e).remove()})),Object.keys(i).map((t=>({name:t,template:this._createTemplate(i[t])})))}_extractAnonymousTemplate(t){var e=t.contents().detach();return e.filter(((t,e)=>{var i=3===e.nodeType,n=pi(e).text().trim().length<1;return!(i&&n)})).length>0?{template:this._createTemplate(e),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(t){var e=this._tempTemplates.filter((e=>e.source===xu(t)))[0];if(e)return e.template;var i=this._createTemplate(t);return this._tempTemplates.push({template:i,source:xu(t)}),i}_createTemplate(t){return this._createElement((t=>"string"==typeof t?Jr(t):t)(t))}getTemplate(t,e,i,s){var{isAsyncTemplate:o,skipTemplates:a}=i;return r(t)?new ou((i=>{var r=t.apply(s,(t=>{var e=[];return"model"in t&&e.push(t.model),"index"in t&&e.push(t.index),e.push(t.container),e})(i));if(!n(r))return new au;var h=!1,u=_u(r,(t=>t.nodeType||c(t)&&!pi(t).is("script")?new ou((()=>t)):(h=!0,this._createTemplate(t))),e,o,a,this._defaultTemplates),l=u.render(i);return h&&u.dispose&&u.dispose(),l})):_u(t,this._createTemplateIfNeeded,e,o,a,this._defaultTemplates)}}function Su(t,e){return e?xr(t,e):t}function Eu(t,e){return"function"==typeof t?t(e):t.execute(e)}var Cu=function(t,e){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};we.on(t,Su("dxresize",i),e)},Iu=function(t){var{namespace:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};we.off(t,Su("dxresize",e))},Du=(t,e,i,n)=>{var{namespace:r}=n;we.on(t,Su("dxhiding",r),i),we.on(t,Su("dxshown",r),e)},Tu=(t,e)=>{var{namespace:i}=e;we.off(t,Su("dxhiding",i)),we.off(t,Su("dxshown",i))},ku=t=>we.trigger(t,"focus"),Mu=0,Au={},Ou=(t,e,i)=>{var n="keyboardProcessorId".concat(Mu++);return Au[n]=new gh({element:t,focusTarget:e,handler:i}),n},Ru=t=>{t&&Au[t]&&(Au[t].dispose(),delete Au[t])},{abstract:Fu}=Qh,Pu=Qh.inherit({_getDefaultOptions(){return v(this.callBase(),{width:void 0,height:void 0,rtlEnabled:B().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?wu.createDefaultOptions():{})},ctor(t,e){this._customClass=null,this._createElement(t),yi(this._$element,this,this._dispose),this.callBase(e)},_createElement(t){this._$element=pi(t)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(t){this.option("_ignoreFunctionValueDeprecation")||t.forEach((t=>{r(this.option(t))&&E.log("W0017",t)}))},_visibilityChanged:Fu,_dimensionChanged:Fu,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(t){this.callBase([].concat(this.constructor._classCustomRules||[],t||[]))},_isInitialOptionValue(t){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),t))&&this.callBase(t)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var t=this._windowResizeCallBack=this._dimensionChanged.bind(this);Yi.add(t)}},_isDimensionChangeSupported(){return this._dimensionChanged!==Fu},_renderComponent(){this._initMarkup(),Mt()&&this._render()},_initMarkup(){var{rtlEnabled:t}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(t),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers()},_renderElementAttributes(){var{elementAttr:t}=this.option()||{},e=v({},t),i=e.class;delete e.class,this.$element().attr(e).removeClass(this._customClass).addClass(i),this._customClass=i},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){var t=this.$element(),e=t.get(0),i=this._getOptionValue("width",e),n=this._getOptionValue("height",e);this._isCssUpdateRequired(e,n,i)&&t.css({width:null===i?"":i,height:null===n?"":n})},_isCssUpdateRequired:(t,e,i)=>!!(n(i)||n(e)||t.style.width||t.style.height),_attachDimensionChangeHandlers(){var t=this.$element(),e="".concat(this.NAME,"VisibilityChange");Iu(t,{namespace:e}),Cu(t,(()=>this._dimensionChanged()),{namespace:e})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var t=this.$element(),e="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),Tu(t,{namespace:e}),Du(t,(()=>this._checkVisibilityChanged("shown")),(()=>this._checkVisibilityChanged("hiding")),{namespace:e})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(t){this._isVisible()&&("hiding"!==t||this._isHidden?"shown"===t&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==Fu&&Mt()},_clean:St,_modelByElement(){var{modelByElement:t}=this.option(),e=this.$element();return t?t(e):void 0},_invalidate(){if(this._isUpdateAllowed())throw E.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&Yi.remove(this._windowResizeCallBack)},_toggleRTLDirection(t){this.$element().toggleClass("dx-rtl",t)},_createComponent(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Et(this._getSynchronizableOptionsForCreateComponent(),(t=>!(t in i))),{integrationOptions:r}=this.option(),{nestedComponentOptions:o}=this.option(),a=v({integrationOptions:r},(o=o||St)(this));n.forEach((t=>a[t]=this.option(t))),this._extendConfig(i,a);var h=void 0;if(s(e)){var u=pi(t)[e](i);h=u[e]("instance")}else t&&((h=e.getInstance(t))?h.option(i):h=new e(t,i));if(h){var l=t=>{var{name:e,value:i}=t;n.includes(e)&&h.option(e,i)};this.on("optionChanged",l),h.on("disposing",(()=>this.off("optionChanged",l)))}return h},_extendConfig(t,e){m(e,((e,i)=>{!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i)}))},_defaultActionConfig(){var t=this.$element(),e=this._modelByElement(t);return v(this.callBase(),{context:e})},_defaultActionArgs(){var t=this.$element(),e=this._modelByElement(t),i=this.element();return v(this.callBase(),{element:i,model:e})},_optionChanged(t){switch(t.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(t)}},_removeAttributes(t){for(var e=t.attributes,i=e.length-1;i>=0;i--){var n=e[i];if(n){var{name:r}=n;r.indexOf("aria-")&&-1===r.indexOf("dx-")&&"role"!==r&&"style"!==r&&"tabindex"!==r||t.removeAttribute(r)}}},_removeClasses(t){t.className=t.className.split(" ").filter((t=>0!==t.lastIndexOf("dx-",0))).join(" ")},_updateDOMComponent(t){t?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var t=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(t)},$element(){return this._$element},element(){return Ii(this.$element())},dispose(){var t=this.$element().get(0);Ve(t,!0),t.textContent="",this._removeAttributes(t),this._removeClasses(t)},resetOption(t){if(this.callBase(t),"width"===t||"height"===t){var e=this.initialOption(t);!n(e)&&this.$element().css(t,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:t={}}=this.option(),{createTemplate:e}=t;this._templateManager=new wu(e,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:t,anonymousTemplateMeta:e}=this._templateManager.extractTemplates(this.$element()),i=this.option("integrationOptions.templates.".concat(e.name));t.forEach((t=>{var{name:e,template:i}=t;this._options.silent("integrationOptions.templates.".concat(e),i)})),e.name&&!i&&(this._options.silent("integrationOptions.templates.".concat(e.name),e.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(t){return this._getTemplate(this.option(t))},_getTemplate(t){var e=this.option("integrationOptions.templates"),i=this.option("templatesRenderAsynchronously"),n=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(t,e,{isAsyncTemplate:i,skipTemplates:n},this)},_saveTemplate(t,e){this._setOptionWithoutOptionChange("integrationOptions.templates."+t,this._templateManager._createTemplate(e))},_useTemplates:()=>!0});Pu.getInstance=function(t){return wi(pi(t),this)},Pu.defaultOptions=function(t){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(t)};class Bu extends yh{constructor(t){super(t),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var t,e=zo(this.$LI,!0),i=e.parentNode,n=pi(i),r=n.contents(),{data:s,index:o}=null!==(t=this.props.model)&&void 0!==t?t:{data:{}};s&&Object.keys(s).forEach((t=>{s[t]&&Tt.isNode(s[t])&&(s[t]=Ii(pi(s[t])))}));var a=pi(this.props.template.render(se({container:Ii(n),transclude:this.props.transclude},{renovated:this.props.renovated},this.props.transclude?{}:{model:s},!this.props.transclude&&Number.isFinite(o)?{index:o}:{})));return((t,e)=>{if(e&&e[0])e.is(t)||(m(e,((e,i)=>{((t,e)=>{e&&Tt.insertElement(t.parentNode,e,t)})(t[0],i)})),t.remove())})(pi(e),a),()=>{((t,e)=>{m(e,((e,i)=>{var n=!1;m(t,((t,e)=>{i===e&&(n=!0)})),!n&&i.parentNode&&i.parentNode.removeChild(i)}))})(r,n.contents()),i.appendChild(e)}}shouldComponentUpdate(t){var e,i,{model:r,template:s}=this.props,{model:o,template:a}=t;if(s!==a)return!0;if(n(r)&&n(o)){var{data:h,index:u}=r,{data:l,index:c}=o;return u!==c||(e=h,i=l,!(Object.keys(e).length===Object.keys(i).length&&Object.keys(e).every((t=>e[t]===i[t]))))}return!(r===o)}createEffects(){return[new Eh(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}function Hu(t){return Array.isArray(t)?[...t]:se({},t)}function Lu(t,e,i){var n=Hu(i.length>0&&e&&t!==e?e:t),r=i[0];return i.length>1?n[r]=Lu(t[r],null==e?void 0:e[r],i.slice(1)):r&&(n[r]=u(t[r])?Hu(t[r]):t[r]),n}function zu(t,e,i,n){var r=e[i],s=t[i];t[i]=u(r)||i!==n&&Array.isArray(r)?Lu(r,s,X(n).slice(1)):r}var Gu=(t,e)=>i=>{Object.prototype.hasOwnProperty.call(t,i)&&void 0===t[i]&&(t[i]=e(i))};class Nu extends Pu{constructor(t,e){super(t,e),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){if(this.getSupportedKeyNames().length>0&&"function"!=typeof this._viewComponent.prototype.keyDown)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var t;return null===(t=this._viewRef)||void 0===t?void 0:t.current}_checkContentReadyOption(t){var e=this._getContentReadyOptions().reduce(((t,e)=>(t[e]=!0,t)),{});return this._checkContentReadyOption=t=>!!e[t],this._checkContentReadyOption(t)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){return v(!0,super._getDefaultOptions(),this._viewComponent.defaultProps,this._propsInfo.twoWay.reduce(((t,e)=>{var[i,n,r]=e;return se({},t,{[i]:this._viewComponent.defaultProps[n],[r]:t=>this.option(i,t)})}),{}),this._propsInfo.templates.reduce(((t,e)=>se({},t,{[e]:null})),{}))}_getUnwrappedOption(){var t={};return Object.keys(this.option()).forEach((e=>{t[e]=this.option(e)})),t}_initializeComponent(){var t;super._initializeComponent(),null===(t=this._templateManager)||void 0===t||t.addDefaultTemplates(this.getDefaultTemplates());var e=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(e),this._propsInfo.templates.forEach((t=>{this._componentTemplates[t]=this._createTemplateComponent(this._props[t])})),Object.keys(this._getActionConfigsFull()).forEach((t=>this._addAction(t))),this._viewRef={current:null},this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var t=this.getProps();this._renderWrapper(t)}_renderWrapper(t){var e=this.$element()[0];this._isNodeReplaced||zh.onPreRender(),zh.render(this._viewComponent,t,e,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,zh.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(t,e){this._options.silent(t,e)}_render(){}_removeWidget(){zh.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var t=this.$element()[0];if(!this._elementAttr){var{attributes:e}=t,i=Array.from(e).filter((t=>{var i;return!this._propsInfo.templates.includes(t.name)&&(null===(i=e[t.name])||void 0===i?void 0:i.specified)})).reduce(((e,i)=>{var{name:n,value:r}=i,s=e;return s[n]=""===r&&n in t?t[n]:r,s}),{});this._elementAttr=i,this._storedClasses=t.getAttribute("class")||""}for(var n=t.style,r={},s=0;s<n.length;s+=1)r[n[s]]=n.getPropertyValue(n[s]);return this._elementAttr.style=r,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(t){var{allowNull:e,elements:i,props:n,twoWay:r}=this._propsInfo,s=Object.keys(this._viewComponent.defaultProps),o=this._getDefaultOptions(),{children:a,onKeyboardHandled:h,ref:u}=t,l={ref:u,children:a,onKeyDown:h?(t,e)=>{h(e)}:void 0};return[...n,...this._getAdditionalProps()].forEach((e=>{Object.prototype.hasOwnProperty.call(t,e)&&(l[e]=t[e])})),e.forEach(Gu(l,(()=>null))),s.forEach(Gu(l,(t=>o[t]))),r.forEach((t=>{var[e,i]=t;Gu(l,(()=>o[i]))(e)})),i.forEach((t=>{if(t in l){var e=l[t];c(e)&&(l[t]=this._patchElementParam(e))}})),l}getSupportedKeyNames(){return[]}prepareStyleProp(t){return"string"==typeof t.style?se({},t,{style:{},cssText:t.style}):t}getProps(){var t,e,{elementAttr:i}=this.option(),n=this._patchOptionValues(se({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach((t=>{n[t]=this._componentTemplates[t]})),this.prepareStyleProp(se({},n,this.elementAttr,i,{className:[...(null!==(t=this.elementAttr.class)&&void 0!==t?t:"").split(" "),...(null!==(e=null==i?void 0:i.class)&&void 0!==e?e:"").split(" ")].filter(((t,e,i)=>t&&i.indexOf(t)===e)).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return se({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var t=Object.values(this._templatesInfo),e={};return t.forEach((t=>{e[t]="dx-renovation-template-mock"})),e}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(t){var e=Object.entries(this._templatesInfo).reduce(((e,i)=>{var n,[r,s]=i;return se({},e,{[r]:null!==(n=t[r])&&void 0!==n?n:s})}),{});return se({},t,e)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var t={};return this.getSupportedKeyNames().forEach((e=>{t[e]=t=>this.viewRef.keyDown(gh.createKeyDownOptions(t))})),t}_addAction(t,e){var i=e;if(!i){var r=this._createActionByOption(t,this._getActionConfigsFull()[t]);i=t=>(Object.keys(t).forEach((e=>{n(t[e])&&Tt.isNode(t[e])&&(t[e]=Ii(pi(t[e])))})),r(t))}this._actionsMap[t]=i}_optionChanged(t){var{fullName:e,name:i,previousValue:n,value:r}=t;zu(this._props,this.option(),i,e),this._propsInfo.templates.includes(i)&&r!==n&&(this._componentTemplates[i]=this._createTemplateComponent(r)),i&&this._getActionConfigsFull()[i]&&this._addAction(i),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(e),super._optionChanged(t),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?zh.createElement(Bu,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(t){if(t){var e=this._getTemplate(t);if(!s(e)||"dx-renovation-template-mock"!==e)return t=>zh.createElement(Bu,{template:e,model:t})}}_wrapKeyDownHandler(t){return e=>{var{keyName:i,originalEvent:n,which:r}=e,s=this.customKeyHandlers,o=s[i]||s[r];return void 0===o||o.bind(this)(n,e)?null==t?void 0:t(n,e):(n.cancel=!0,n)}}_toPublicElement(t){return Ii(pi(t))}_patchElementParam(t){try{var e=pi(t),i=null==e?void 0:e.get(0);return null!=i&&i.nodeType?i:t}catch(e){return t}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return se({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(t,e){this.customKeyHandlers[t]=e}setAria(t,e){this._aria[t]=e,this._initMarkup()}}Nu.IS_RENOVATED_WIDGET=!1,Nu.IS_RENOVATED_WIDGET=!0;class Wu extends Nu{get _validationGroupConfig(){return wo.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var t=super.getProps();return t.onClick=t=>{var{event:e}=t;this._clickAction({event:e,validationGroup:this._validationGroupConfig})},"svg"===Ei(t.icon)&&(t.iconTemplate=this._createTemplateComponent((()=>t.icon))),t}get _templatesInfo(){return{template:"content"}}_toggleActiveState(t,e){var i=this.viewRef;e?i.activate():i.deactivate()}_getSubmitAction(){var t=!0,e="valid";return this._createAction((i=>{var{event:n,submitInput:r}=i;if(t){var s=this._validationGroupConfig;if(void 0!==s&&""!==s){var o=s.validate();e=o.status,"pending"===o.status&&(t=!1,this.option("disabled",!0),o.complete.then((i=>{var{status:n}=i;this.option("disabled",!1),"valid"===(e=n)&&r.click(),t=!0})))}}"valid"!==e&&n.preventDefault(),n.stopPropagation()}))}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var t=this.$element().find(".dx-button-content"),e=t.children().filter(".dx-template-wrapper"),i=t.children().filter(".dx-button-submit-input");e.length&&(e.addClass("dx-button-content"),e.append(i),t.replaceWith(e))}_patchOptionValues(t){return super._patchOptionValues(se({},t,{templateData:t._templateData}))}_findGroup(){var t=this.$element(),e=this.option("validationGroup");return void 0!==e&&""!==e?e:wo.findGroup(t,this._modelByElement(t))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(t){switch(t.name){case"onClick":this._clickAction=this._createClickAction()}super._optionChanged(t)}}function Vu(t,e){if(null==t)return{};var i,n,r={},s=Object.keys(t);for(n=0;n<s.length;n++)e.indexOf(i=s[n])>=0||(r[i]=t[i]);return r}var Ku=new z;const Uu=S(E.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"});var ju,qu,$u,Ju,Zu,Yu,Xu=Ot(),Qu=Zi.add,tl=sn,el=nn,il=new K;function nl(){if(!Mt())return null;var t,e=pi("<div>",ju).addClass("dx-theme-marker").appendTo(ju.documentElement);try{return(t=Xu.getComputedStyle(e.get(0)).fontFamily)?"dx."!==(t=t.replace(/["']/g,"")).substr(0,"dx.".length)?null:t.substr("dx.".length):null}finally{e.remove()}}function rl(t){var e,i,n=!0;function r(){Zu=null,clearInterval(i),n=!0,Ku.fire(),Ku.empty(),il.resolve()}if(Zu=t,sl())r();else{if(!n)return void(Zu&&(Zu=t));e=Date.now(),n=!1,i=setInterval((function(){var t=sl(),i=!t&&Date.now()-e>15e3;i&&Uu.log("W0004",Zu),(t||i)&&r()}),10)}}function sl(){if(!Zu)return!0;var t="any"===Zu;if("resolved"===il.state()&&t)return!0;var e=nl();return!(!e||!t)||e===Zu}function ol(t){var e=t?t.split("."):[],i=null;if($u){if(t in $u)return t;m($u,(function(t,n){var r=t.split(".");if(!(e[0]&&r[0]!==e[0]||e[1]&&e[1]!==r[1]||e[2]&&e[2]!==r[2]))return i&&!n.isActive||(i=t),!n.isActive&&void 0}))}return i}function al(t){var e;(function(t){try{t!==ju&&($u=null)}catch(t){$u=null}ju=t})((t=t||{}).context||Tt.getDocument()),ju&&((e=pi("link[rel=dx-theme]",ju)).length&&($u={},qu=pi(ri("<link rel=stylesheet>"),ju),e.each((function(){var t=pi(this,ju),e=t.attr("data-theme"),i=t.attr("href"),n="true"===t.attr("data-active");$u[e]={url:i,isActive:n}})),e.last().after(qu),e.remove()),Ju=void 0,hl(t))}function hl(t){if(!arguments.length)return Ju=Ju||nl();ll(tl()),"string"==typeof(t=t||{})&&(t={theme:t});var e,i=t._autoInit,n=t.loadCallback;if((Ju=ol(t.theme||Ju))&&(e=$u[Ju]),n&&Ku.add(n),e)qu.attr("href",$u[Ju].url),(Ku.has()||"resolved"!==il.state()||t._forceTimeout)&&rl(Ju);else{if(!i)throw Uu.Error("E0021",Ju);Mt()&&rl("any"),Ku.fire(),Ku.empty()}il.done((()=>ul(on(),Ju)))}function ul(t,e){Yu=function(t){var e=[],i=(t=t||hl())&&t.split(".");return i&&(e.push("dx-theme-"+i[0],"dx-theme-"+i[0]+"-typography"),i.length>1&&e.push("dx-color-scheme-"+i[1]+(dl(t)?"-"+i[2]:""))),e}(e).join(" "),pi(t).addClass(Yu),function(){var e=Mt()&&Xu.devicePixelRatio;if(e&&!(e<2)){var i=pi("<div>");i.css("border",".5px solid transparent"),pi("body").append(i),1===Qt(i)&&(pi(t).addClass("dx-hairlines"),Yu+=" dx-hairlines"),i.remove()}}()}function ll(t){pi(t).removeClass(Yu)}function cl(t,e){return e||(e=Ju||nl()),new RegExp(t).test(e)}function dl(t){return cl("material",t)}function fl(){if(al({_autoInit:!0,_forceTimeout:!0}),pi("link[rel=dx-theme]",ju).length)throw Uu.Error("E0022")}function vl(t){return Object.keys(t).filter((e=>t[e])).join(" ")}Mt()?fl():Qu(fl),el.add((function(t,e){il.done((function(){ll(e),ul(t)}))})),dn.changed.add((function(){al({_autoInit:!0})}));var pl=["iconTemplate","position","source"];class ml extends _h{constructor(t){super(t),this.state={}}get sourceType(){return Ei(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var t={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:e}=this.props;return"dxIcon"===this.sourceType?vl(se({},t,{["dx-icon-".concat(e)]:!0})):"fontIcon"===this.sourceType?vl(se({},t,{[String(e)]:!!e})):"image"===this.sourceType?vl(t):"svg"===this.sourceType?vl(se({},t,{"dx-svg-icon":!0})):""}get restAttributes(){return Vu(this.props,pl)}render(){var t,e=this.props;return(t=>{var{iconClassName:e,props:{iconTemplate:i,source:n},sourceType:r}=t;return Qo(["dxIcon"===r&&Zo(1,"i",e),"fontIcon"===r&&Zo(1,"i",e),"image"===r&&Zo(1,"img",e,null,1,{alt:"",src:n}),i&&Zo(1,"i",e,i({}),0)],0)})({props:se({},e,{iconTemplate:(t=e.iconTemplate,t&&(t.defaultProps?e=>ta(Yo(2,t,se({},e))):t))}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}ml.defaultProps={position:"left",source:""};var gl=["config"],xl={config:Object.freeze({})};class bl extends _h{constructor(t){super(t),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:t}=this.props;return Ns(t)})()}get restAttributes(){return Vu(this.props,gl)}hideWave(t){qs(this.getConfig,t)}showWave(t){Vs(this.getConfig,t)}componentWillUpdate(t,e,i){this.props.config!==t.config&&(this.__getterCache.getConfig=void 0)}render(){var t;return t={props:se({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes},ta(Zo(1,"div","dx-inkripple",null,1,se({},t.restAttributes)))}}bl.defaultProps=xl;var _l=xr(vs.enter,"dxHoverStart"),yl=xr(vs.leave,"dxHoverEnd"),wl=O.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(t){Ne(t,this._handlerArrayKeyPath,{})},add:function(t,e){var i=this,n=function(t){i._handler(t)};we.on(t,this._originalEventName,e.selector,n),Ne(t,this._handlerArrayKeyPath)[e.guid]=n},_handler:function(t){dr(t)||dn.isSimulator()||mr({type:this._eventName,originalEvent:t,delegateTarget:t.delegateTarget})},remove:function(t,e){var i=Ne(t,this._handlerArrayKeyPath)[e.guid];we.off(t,this._originalEventName,e.selector,i)},teardown:function(t){We(t,this._handlerArrayKeyPath)}}),Sl=wl.inherit({ctor:function(){this._eventNamespace="dxHoverStart",this._eventName="dxhoverstart",this._originalEventName=_l,this.callBase()},_handler:function(t){(t.pointers||[]).length||this.callBase(t)}}),El=wl.inherit({ctor:function(){this._eventNamespace="dxHoverEnd",this._eventName="dxhoverend",this._originalEventName=yl,this.callBase()}});gi("dxhoverstart",new Sl),gi("dxhoverend",new El);var Cl,Il=O.abstract,Dl=dn.real(),Tl=O.inherit((Cl=xr("scroll","dxScrollEmitter"),{ctor:function(t){this._element=t,this._locked=!1,this._proxiedScroll=t=>{this._disposed||this._scroll(t)},we.on(this._element,Cl,this._proxiedScroll)},_scroll:Il,check:function(t,e){this._locked&&e()},dispose:function(){this._disposed=!0,we.off(this._element,Cl,this._proxiedScroll)}})),kl=Tl.inherit({ctor:function(t,e){this.callBase(t),this._timeout=e},_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 t=this;this._timer=setTimeout((function(){t._clearTimer()}),this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),Ml=kl.inherit({ctor:function(t){this.callBase(t,400),this._lastWheelDirection=null},check:function(t,e){this._checkDirectionChanged(t),this.callBase(t,e)},_checkDirectionChanged:function(t){if(cr(t)){var e=t.shiftKey||!1,i=null!==this._lastWheelDirection&&e!==this._lastWheelDirection;this._lastWheelDirection=e,this._locked=this._locked&&!i}else this._lastWheelDirection=null}}),Al=kl.inherit({ctor:function(t){this.callBase(t,400)}});!function(){var{ios:t,android:e}=Dl;(t||e)&&(Al=Tl.inherit({_scroll:function(){this._locked=!0;var t=this;ji(this._scrollFrame),this._scrollFrame=Ui((function(){t._locked=!1}))},check:function(t,e){ji(this._scrollFrame),ji(this._checkFrame);var i=this,n=this.callBase;this._checkFrame=Ui((function(){n.call(i,t,e),i._locked=!1}))},dispose:function(){this.callBase(),ji(this._scrollFrame),ji(this._checkFrame)}}))}(),xs({emitter:Os.inherit(function(){var t=Math.round(1e3/60);return{ctor:function(t){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new Al(t),this._wheelLocker=new Ml(t)},validate:function(){return!0},configure:function(t){t.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new Al(t.scrollTarget),this._wheelLocker=new Ml(t.scrollTarget)),this.callBase(t)},_init:function(t){this._wheelLocker.check(t,function(){cr(t)&&this._accept(t)}.bind(this)),this._pointerLocker.check(t,function(){var e=this.isNative&&lr(t);cr(t)||e||this._accept(t)}.bind(this)),this._fireEvent("dxscrollinit",t),this._prevEventData=fr(t)},move:function(t){this.callBase.apply(this,arguments),t.isScrollingEvent=this.isNative||t.isScrollingEvent},_start:function(t){this._savedEventData=fr(t),this._fireEvent("dxscrollstart",t),this._prevEventData=fr(t)},_move:function(t){var e=fr(t);this._fireEvent("dxscroll",t,{delta:vr(this._prevEventData,e)}),vr(this._savedEventData,e).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=fr(t)},_end:function(e){var i=vr(this._prevEventData,fr(e)),n={x:0,y:0};if(!cr(e)&&i.time<100){var r=vr(this._savedEventData,this._prevEventData),s=t/r.time;n={x:r.x*s,y:r.y*s}}this._fireEvent("dxscrollend",e,{velocity:n})},_stop:function(t){this._fireEvent("dxscrollstop",t)},cancel:function(t){this.callBase.apply(this,arguments),this._fireEvent("dxscrollcancel",t)},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)}}}()),events:["dxscrollinit","dxscrollstart","dxscroll","dxscrollend","dxscrollstop","dxscrollcancel"]});function Ol(t){return(e,i,n,r)=>{var s=r?xr(t,r):t;if(i)return we.on(e,s,n,i),()=>{we.off(e,s,i)}}}var Rl=Ol("dxactive"),Fl=Ol("dxinactive"),Pl=Ol("dxhoverstart"),Bl=Ol("dxhoverend"),Hl=Ol("focusin"),Ll=Ol("focusout"),zl={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0},Gl=function(t){const e=Sh++;return{id:e,defaultValue:t,Provider:class extends ph{getChildContext(){return Object.assign(Object.assign({},this.context),{[e]:this.props.value||t})}render(){return this.props.children}}}}(void 0),Nl=["children","rtlEnabled"];class Wl extends _h{constructor(t){super(t),this.state={},this.__getterCache={}}getChildContext(){return se({},this.context,{ConfigContext:this.config})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){return Vu(this.props,Nl)}componentWillUpdate(t,e,i){this.props.rtlEnabled!==t.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return se({},this.props).children}}Wl.defaultProps={};var Vl=["_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"],Kl=Object.create(Object.prototype,se(Object.getOwnPropertyDescriptors(zl),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));class Ul extends wh{constructor(t){super(t),this.widgetElementRef={current:null},this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Gl}createEffects(){return[new Eh(this.setRootElementRef,[]),new Eh(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new Eh(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new Eh(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new Eh(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new Eh(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new Eh(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new Eh(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new Eh(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new Eh(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new Eh(this.windowResizeEffect,[this.props.onDimensionChanged]),new Eh(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new Eh(this.checkDeprecation,[this.props.height,this.props.width]),new Eh(this.applyCssTextEffect,[this.props.cssText]),Ch()]}updateEffects(){var t,e,i,n,r,s,o,a,h,u,l,c,d;null===(t=this._effects[1])||void 0===t||t.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(e=this._effects[2])||void 0===e||e.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(i=this._effects[3])||void 0===i||i.update([this.props.disabled,this.props.name,this.props.onClick]),null===(n=this._effects[4])||void 0===n||n.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(r=this._effects[5])||void 0===r||r.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(s=this._effects[6])||void 0===s||s.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(o=this._effects[7])||void 0===o||o.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(a=this._effects[8])||void 0===a||a.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(h=this._effects[9])||void 0===h||h.update([this.props.name,this.props.onDimensionChanged]),null===(u=this._effects[10])||void 0===u||u.update([this.props.onDimensionChanged]),null===(l=this._effects[11])||void 0===l||l.update([this.props.name,this.props.onVisibilityChange]),null===(c=this._effects[12])||void 0===c||c.update([this.props.height,this.props.width]),null===(d=this._effects[13])||void 0===d||d.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:t,rootElementRef:e}=this.props;e&&(e.current=this.widgetElementRef.current),null==t||t(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:t,activeStateEnabled:e,activeStateUnit:i,disabled:n,onActive:r}=this.props;if(e&&!n)return Rl(this.widgetElementRef.current,(t=>{this.setState((()=>({active:!0}))),null==r||r(t)}),{timeout:t,selector:i},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:t,activeStateEnabled:e,activeStateUnit:i,onInactive:n}=this.props;if(e)return Fl(this.widgetElementRef.current,(t=>{this.state.active&&(this.setState((()=>({active:!1}))),null==n||n(t))}),{timeout:t,selector:i},"UIFeedback")}clickEffect(){var{disabled:t,name:e,onClick:i}=this.props,n=e;if(i&&!t)return function(t,e){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};we.on(t,Su("dxclick",i),e)}(this.widgetElementRef.current,i,{namespace:n}),()=>function(t){var{namespace:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};we.off(t,Su("dxclick",e))}(this.widgetElementRef.current,{namespace:n})}focusInEffect(){var{disabled:t,focusStateEnabled:e,name:i,onFocusIn:n}=this.props,r="".concat(i,"Focus");if(e&&!t)return Hl(this.widgetElementRef.current,(t=>{t.isDefaultPrevented()||(this.setState((()=>({focused:!0}))),null==n||n(t))}),null,r)}focusOutEffect(){var{focusStateEnabled:t,name:e,onFocusOut:i}=this.props,n="".concat(e,"Focus");if(t)return Ll(this.widgetElementRef.current,(t=>{!t.isDefaultPrevented()&&this.state.focused&&(this.setState((()=>({focused:!1}))),null==i||i(t))}),null,n)}hoverStartEffect(){var{activeStateUnit:t,disabled:e,hoverStateEnabled:i,onHoverStart:n}=this.props;if(i&&!e)return Pl(this.widgetElementRef.current,(t=>{!this.state.active&&this.setState((()=>({hovered:!0}))),null==n||n(t)}),{selector:t},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:t,hoverStateEnabled:e,onHoverEnd:i}=this.props;if(e)return Bl(this.widgetElementRef.current,(t=>{this.state.hovered&&(this.setState((()=>({hovered:!1}))),null==i||i(t))}),{selector:t},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:t,onKeyDown:e}=this.props;if(t&&e){var i=Ou(this.widgetElementRef.current,this.widgetElementRef.current,(t=>e(t)));return()=>Ru(i)}}resizeEffect(){var t="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:e}=this.props;if(e)return Cu(this.widgetElementRef.current,e,{namespace:t}),()=>Iu(this.widgetElementRef.current,{namespace:t})}windowResizeEffect(){var{onDimensionChanged:t}=this.props;if(t)return Yi.add(t),()=>{Yi.remove(t)}}visibilityEffect(){var{name:t,onVisibilityChange:e}=this.props,i="".concat(t,"VisibilityChange");if(e)return Du(this.widgetElementRef.current,(()=>e(!0)),(()=>e(!1)),{namespace:i}),()=>Tu(this.widgetElementRef.current,{namespace:i})}checkDeprecation(){var{height:t,width:e}=this.props;r(e)&&E.log("W0017","width"),r(t)&&E.log("W0017","height")}applyCssTextEffect(){var{cssText:t}=this.props;""!==t&&(this.widgetElementRef.current.style.cssText=t)}get shouldRenderConfigProvider(){var{rtlEnabled:t}=this.props;return function(t,e){var i=n(t),r=n(B().rtlEnabled)&&!i&&!n(null==e?void 0:e.rtlEnabled);return i&&t!==(null==e?void 0:e.rtlEnabled)||r}(t,this.config)}get rtlEnabled(){var{rtlEnabled:t}=this.props;return function(t,e){return void 0!==t?t:void 0!==(null==e?void 0:e.rtlEnabled)?e.rtlEnabled:B().rtlEnabled}(t,this.config)}get attributes(){var t,{aria:e,disabled:i,focusStateEnabled:n,visible:r}=this.props,s=n&&!i&&this.props.accessKey;return se({},v({},s&&{accessKey:s}),(t=se({},e,{disabled:i,hidden:!r}),Object.keys(t).reduce(((e,i)=>t[i]?se({},e,{["role"===i||"id"===i?i:"aria-".concat(i)]:String(t[i])}):e),{})),v({},this.restAttributes))}get styles(){var{height:t,width:e}=this.props,i=this.restAttributes.style||{},n=ti("width",r(e)?e():e),s=ti("height",r(t)?t():t);return se({},i,{height:null!=s?s:i.height,width:null!=n?n:i.width})}get cssClasses(){var{activeStateEnabled:t,addWidgetClass:e,className:i,classes:n,disabled:r,focusStateEnabled:s,hoverStateEnabled:o,onVisibilityChange:a,visible:h}=this.props,u=!!s&&!r,l=!!o&&!r,c=!!t&&!r;return vl({"dx-widget":!!e,[String(n)]:!!n,[String(i)]:!!i,"dx-state-disabled":!!r,"dx-state-invisible":!h,"dx-state-focused":!!this.state.focused&&u,"dx-state-active":!!this.state.active&&c,"dx-state-hover":!!this.state.hovered&&l&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!a})}get tabIndex(){var{disabled:t,focusStateEnabled:e,tabIndex:i}=this.props;return e&&!t?i:void 0}get restAttributes(){return Vu(this.props,Vl)}focus(){ku(this.widgetElementRef.current)}blur(){var t=Tt.getActiveElement();this.widgetElementRef.current===t&&t.blur()}activate(){this.setState((()=>({active:!0})))}deactivate(){this.setState((()=>({active:!1})))}render(){var t,e;return e=ta(Zo(1,"div",(t={props:se({},this.props),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}).cssClasses,t.props.children,0,se({},t.attributes,{tabIndex:t.tabIndex,title:t.props.hint,style:Hh(t.styles)}),null,t.widgetElementRef)),t.shouldRenderConfigProvider?Yo(2,Wl,{rtlEnabled:t.rtlEnabled,children:e}):e}}Ul.defaultProps=Kl;var jl=["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"],ql=["outlined","text","contained"],$l=Object.create(Object.prototype,se(Object.getOwnPropertyDescriptors(zl),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),Jl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t}([{device:()=>"desktop"===dn.real().deviceType&&!dn.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>dl(hl()),options:{useInkRipple:!0}}]),Zl=t=>t&&(t.defaultProps?e=>ta(Yo(2,t,se({},e))):t);class Yl extends wh{constructor(t){super(t),this.state={},this.contentRef={current:null},this.inkRippleRef={current:null},this.submitInputRef={current:null},this.widgetRef={current:null},this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[new Eh(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),Ch()]}updateEffects(){var t;null===(t=this._effects[0])||void 0===t||t.update([this.props.onSubmit,this.props.useSubmitBehavior])}submitEffect(){var{onSubmit:t,useSubmitBehavior:e}=this.props;if(e&&t)return function(t,e){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};we.on(t,Su("click",i),e)}(this.submitInputRef.current,(e=>t({event:e,submitInput:this.submitInputRef.current})),{namespace:"UIFeedback"}),()=>function(t){var{namespace:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};we.off(t,Su("click",e))}(this.submitInputRef.current,{namespace:"UIFeedback"})}onActive(t){var{useInkRipple:e}=this.props;e&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:t})}onInactive(t){var{useInkRipple:e}=this.props;e&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:t})}onWidgetClick(t){var{onClick:e,useSubmitBehavior:i}=this.props;null==e||e({event:t}),i&&this.submitInputRef.current.click()}keyDown(t){var{onKeyDown:e}=this.props,{keyName:i,originalEvent:n,which:r}=t,s=null==e?void 0:e(t);if(null!=s&&s.cancel)return s;"space"!==i&&"space"!==r&&"enter"!==i&&"enter"!==r||(n.preventDefault(),this.onWidgetClick(n))}get aria(){var{icon:t,text:e}=this.props,i=(null!=e?e:"")||Gs.format(qe(t,!0))||t;return!e&&t&&"image"===Ei(t)&&(i=t.includes("base64")?"Base64":t.replace(/.+\/([^.]+)\..+$/,"$1")),se({role:"button"},i?{label:i}:{})}get cssClasses(){return(t=>{var{icon:e,iconPosition:i,stylingMode:n,text:r,type:s}=t,o=n&&ql.includes(n);return vl({"dx-button":!0,["dx-button-mode-".concat(o?n:"contained")]:!0,["dx-button-".concat(null!=s?s:"normal")]:!0,"dx-button-has-text":!!r,"dx-button-has-icon":!!e,"dx-button-icon-right":"left"!==i})})(this.props)}get iconSource(){var{icon:t,type:e}=this.props;return t||"back"===e?(null!=t?t:"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:t,text:e,type:i}=this.props;return!e&&t||"back"===i?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:t,templateData:e,text:i}=this.props;return se({icon:t,text:i},e)}get restAttributes(){return Vu(this.props,jl)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(t,e,i){super.componentWillUpdate(),this.props.icon===t.icon&&this.props.text===t.text&&this.props.type===t.type||(this.__getterCache.inkRippleConfig=void 0)}render(){var t=this.props;return(t=>{var{children:e,iconPosition:i,iconTemplate:n,template:r,text:s}=t.props,o=!t.props.template&&!e&&""!==s,a="left"===i,h=!t.props.template&&!e&&(t.iconSource||t.props.iconTemplate)&&Yo(2,ml,{source:t.iconSource,position:i,iconTemplate:n});return ta(Yo(2,Ul,se({accessKey:t.props.accessKey,activeStateEnabled:t.props.activeStateEnabled,aria:t.aria,className:t.props.className,classes:t.cssClasses,disabled:t.props.disabled,focusStateEnabled:t.props.focusStateEnabled,height:t.props.height,hint:t.props.hint,hoverStateEnabled:t.props.hoverStateEnabled,onActive:t.onActive,onClick:t.onWidgetClick,onInactive:t.onInactive,onKeyDown:t.keyDown,rtlEnabled:t.props.rtlEnabled,tabIndex:t.props.tabIndex,visible:t.props.visible,width:t.props.width},t.restAttributes,{children:Zo(1,"div","dx-button-content",[t.props.template&&r({data:t.buttonTemplateData}),!t.props.template&&e,a&&h,o&&Zo(1,"span","dx-button-text",s,0),!a&&h,t.props.useSubmitBehavior&&Zo(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,t.submitInputRef),t.props.useInkRipple&&Yo(2,bl,{config:t.inkRippleConfig},null,t.inkRippleRef)],0,null,null,t.contentRef)}),null,t.widgetRef))})({props:se({},t,{template:Zl(t.template),iconTemplate:Zl(t.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})}}Yl.defaultProps=Object.create(Object.prototype,se(Object.getOwnPropertyDescriptors($l),Object.getOwnPropertyDescriptors(se({},Nh(Jl)))));var Xl=[];class Ql extends Wu{getProps(){var t=super.getProps();return t.onKeyDown=this._wrapKeyDownHandler(t.onKeyDown),t}focus(){var t;return null===(t=this.viewRef)||void 0===t?void 0:t.focus(...arguments)}activate(){var t;return null===(t=this.viewRef)||void 0===t?void 0:t.activate(...arguments)}deactivate(){var t;return null===(t=this.viewRef)||void 0===t?void 0:t.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){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"]}}get _viewComponent(){return Yl}}function tc(t,e,i){function n(t){return"string"==typeof t?t.split("."):"number"==typeof t?[t]:t}t=n(t),e=n(e);var r=Math.max(t.length,e.length);isFinite(i)&&(r=Math.min(r,i));for(var s=0;s<r;s++){var o=parseInt(t[s]||0,10),a=parseInt(e[s]||0,10);if(o<a)return-1;if(o>a)return 1}return 0}Si("dxButton",Ql),Ql.defaultOptions=function(t){Xl.push(t),Yl.defaultProps=Object.create(Object.prototype,se(Object.getOwnPropertyDescriptors(Yl.defaultProps),Object.getOwnPropertyDescriptors(Nh(Jl)),Object.getOwnPropertyDescriptors(Nh(Xl))))};var ec,ic=O.inherit({ctor:function(t,e){this._timeout=t,this._fire=e},start:function(){var t=this;this._schedule((function(){t.force()}))},_schedule:function(t){this.stop(),this._timer=setTimeout(t,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),nc=ps.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new ic(0,St),this._inactive=new ic(0,St)},configure:function(t,e){switch(e){case"dxactive":t.activeTimeout=t.timeout;break;case"dxinactive":t.inactiveTimeout=t.timeout}this.callBase(t)},start:function(t){if(ec){var e=Zr(this.getElement().get(0),ec.getElement().get(0)),i=!ec._active.fired();if(e&&i)return void this._cancel();ec._inactive.force()}ec=this,this._initEvents(t),this._active.start()},_initEvents:function(t){var e=this,i=this._getEmitterTarget(t),n=lr(t),r=dn.isSimulator()||!n,s=at(this.activeTimeout,30),o=at(this.inactiveTimeout,400);this._active=new ic(r?s:0,(function(){e._fireEvent("dxactive",t,{target:i})})),this._inactive=new ic(r?o:0,(function(){e._fireEvent("dxinactive",t,{target:i}),ec=null}))},cancel:function(t){this.end(t)},end:function(t){var e=t.type!==vs.up;e?this._active.stop():this._active.force(),this._inactive.start(),e&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),ec===this&&(ec=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),ec=null,this._cancel(),this._inactive.force.bind(this._inactive)}});function rc(t,e,i){t="role"===t||"id"===t?t:"aria-".concat(t),e=n(e)?e.toString():null,i.attr(t,e)}nc.lock=function(t){var e=ec?ec.lockInactive():St;t.done(e)},xs({emitter:nc,events:["dxactive","dxinactive"]});var sc=Pu.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return v(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 t=dn.real();return"ios"===t.platform&&tc(t.version,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(t,e){var i=sc.getOptionsFromContainer(e);t&&t.option(i),this._options.cache(e.name,i)},_bindInnerWidgetOptions(t,e){var i=()=>this._options.silent(e,v({},t.option()));i(),t.on("optionChanged",i)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:t,visible:e}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(t),this._toggleVisibility(e),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:t}=this.option();this.$element().attr("title",t||null)},_renderContent(){ft((()=>this._disposed?void 0:this._renderContentImpl())).done((()=>this._disposed?void 0:this._fireContentReadyAction()))},_renderContentImpl:St,_fireContentReadyAction:pt((function(){return this._contentReadyAction()})),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(t){this.$element().toggleClass("dx-state-invisible",!t),this.setAria("hidden",!t||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var t=this._focusTarget(),{accessKey:e}=this.option();t.attr("accesskey",e)},_isFocusable(){var{focusStateEnabled:t,disabled:e}=this.option();return t&&!e},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(t){return pi(this._focusTarget()).toArray().includes(t)},_getActiveElement(){var t=this._eventBindingTarget();return this._activeStateUnit?t.find(this._activeStateUnit).not(".dx-state-disabled"):t},_renderFocusTarget(){var{tabIndex:t}=this.option();this._focusTarget().attr("tabIndex",t)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(t){t.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(t,!0),excludeValidators:["readOnly"]})({event:t})},_focusOutHandler(t){t.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(t,!1),excludeValidators:["readOnly","disabled"]})({event:t})},_updateFocusState(t,e){var{target:i}=t;this._isFocusTarget(i)&&this._toggleFocusClass(e,pi(i))},_toggleFocusClass(t,e){(e&&e.length?e:this._focusTarget()).toggleClass("dx-state-focused",t)},_hasFocusClass(t){return pi(t||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:t,onKeyboardHandled:e}=this.option(),i=this._getKeyboardListeners().length;(t||i||e)&&(this._keyboardListenerId=Ou(this._keyboardEventBindingTarget(),this._focusTarget(),(t=>this._keyboardHandler(t))))},_keyboardHandler(t,e){if(!e){var{originalEvent:i,keyName:n,which:r}=t,s=this._supportedKeys(i),o=s[n]||s[r];if(void 0!==o&&!o.bind(this)(i,t))return!1}var a=this._getKeyboardListeners(),{onKeyboardHandled:h}=this.option();return a.forEach((e=>e&&e._keyboardHandler(t))),h&&h(t),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){Ru(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:t}=this.option(),e=this._activeStateUnit,i=this._eventBindingTarget();((t,e)=>{var{selector:i,namespace:n}=e;we.off(t,Su("dxhoverstart",n),i),we.off(t,Su("dxhoverend",n),i)})(i,{selector:e,namespace:"UIFeedback"}),t&&((t,e,i,n)=>{var{selector:r,namespace:s}=n;we.on(t,Su("dxhoverend",s),r,(t=>i(t))),we.on(t,Su("dxhoverstart",s),r,(t=>Eu(e,{element:t.target,event:t})))})(i,new Jh((t=>{var{event:e,element:i}=t;this._hoverStartHandler(e),this.option("hoveredElement",pi(i))}),{excludeValidators:["readOnly"]}),(t=>{this.option("hoveredElement",null),this._hoverEndHandler(t)}),{selector:e,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:t}=this.option(),e=this._activeStateUnit,i=this._eventBindingTarget();((t,e)=>{var{namespace:i,selector:n}=e;we.off(t,Su("dxactive",i),n),we.off(t,Su("dxinactive",i),n)})(i,{namespace:"UIFeedback",selector:e}),t&&((t,e,i,n)=>{var{selector:r,showTimeout:s,hideTimeout:o,namespace:a}=n;we.on(t,Su("dxactive",a),r,{timeout:s},(t=>Eu(e,{event:t,element:t.currentTarget}))),we.on(t,Su("dxinactive",a),r,{timeout:o},(t=>Eu(i,{event:t,element:t.currentTarget})))})(i,new Jh((t=>{var{event:e,element:i}=t;return this._toggleActiveState(pi(i),!0,e)})),new Jh((t=>{var{event:e,element:i}=t;return this._toggleActiveState(pi(i),!1,e)}),{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:e,namespace:"UIFeedback"})},_detachFocusEvents(){((t,e)=>{var{namespace:i}=e;we.off(t,Su("focusin",i)),we.off(t,Su("focusout",i))})(this._focusEventTarget(),{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){((t,e,i,n)=>{var{namespace:r}=n;we.on(t,Su("focusin",r),e),we.on(t,Su("focusout",r),i)})(this._focusEventTarget(),(t=>this._focusInHandler(t)),(t=>this._focusOutHandler(t)),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(t,e)=>pi(e).is(er)})},_hoverStartHandler:St,_hoverEndHandler:St,_toggleActiveState(t,e){this.option("isActive",e),t.toggleClass("dx-state-active",e)},_updatedHover(){var t=this._options.silent("hoveredElement");this._hover(t,t)},_findHoverTarget(t){return t&&t.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(t,e){var{hoverStateEnabled:i,disabled:n,isActive:r}=this.option();if((e=this._findHoverTarget(e))&&e.toggleClass("dx-state-hover",!1),t&&i&&!n&&!r){var s=this._findHoverTarget(t);s&&s.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(t){this.$element().toggleClass("dx-state-disabled",Boolean(t)),this.setAria("disabled",t||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(t,e){if(this[t])if(u(e[0]))m(e[0],((e,i)=>this._setWidgetOption(t,[e,i])));else{var i=e[0],n=e[1];1===e.length&&(n=this.option(i));var r=this["".concat(t,"OptionMap")];this[t].option(r?r(i):i,n)}},_optionChanged(t){var{name:e,value:i,previousValue:n}=t;switch(e){case"disabled":this._toggleDisabledState(i),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(i,n);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(i),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(i?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(t)}},_isVisible(){var{visible:t}=this.option();return this.callBase()&&t},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(t){if(0===arguments.length)return this._isReady;this._isReady=t},setAria(){if(u(arguments.length<=0?void 0:arguments[0])){var t=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();m(arguments.length<=0?void 0:arguments[0],((e,i)=>rc(e,i,t)))}else rc(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){ku(this._focusTarget())},registerKeyHandler(t,e){var i=this._supportedKeys();this._supportedKeys=()=>v(i,{[t]:e})}});sc.getOptionsFromContainer=t=>{var{name:e,fullName:i,value:n}=t,r={};return e===i?r=n:r[i.split(".").pop()]=n,r};var oc="".concat("dx-scrollable-scrollbar","-active"),ac=null,hc=sc.inherit({_getDefaultOptions:function(){return v(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:"onScroll",containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=pi("<div>").addClass("dx-scrollable-scroll"),pi("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass("dx-scrollable-scrollbar").append(this._$thumb)},isThumb:function(t){return!!this.$element().find(t).length},_isHoverMode:function(){var t=this.option("visibilityMode");return("onHover"===t||"always"===t)&&this.option("expandable")},_renderDirection:function(){var t=this.option("direction");this.$element().addClass("dx-scrollbar-"+t),this._dimension="horizontal"===t?"width":"height",this._prop="horizontal"===t?"left":"top"},_attachPointerDownHandler:function(){we.on(this._$thumb,xr(vs.down,"dxScrollbar"),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(oc),ac=this},feedbackOff:function(){this.$element().removeClass(oc),ac=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(t){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),t=this._adjustVisibility(t),this.option().visible=t,this._$thumb.toggleClass("dx-state-invisible",!t)},_adjustVisibility:function(t){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":t=t||!!this._isHovered;break;case"never":t=!1;break;case"always":t=!0}return t},moveTo:function(t){if(!this._isHidden()){u(t)&&(t=t[this._prop]||0);var e={};e[this._prop]=this._calculateScrollBarPosition(t),Pi(this._$thumb,e)}},_calculateScrollBarPosition:function(t){return-t*this._thumbRatio},_update:function(){var t=Math.round(this.option("containerSize")),e=Math.round(this.option("contentSize")),i=Math.round(this.option("baseContainerSize")),n=Math.round(this.option("baseContentSize"));isNaN(i)&&(i=t,n=e),this._baseContainerToContentRatio=n?i/n:i,this._realContainerToContentRatio=e?t/e:t;var r=Math.round(Math.max(Math.round(t*this._realContainerToContentRatio),15));this._thumbRatio=(t-r)/(this.option("scaleRatio")*(e-t)),this.option(this._dimension,r/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return"never"===this.option("visibilityMode")},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(t){return u(t)?t[this._dimension]||0:t},_clean:function(){this.callBase(),this===ac&&(ac=null),we.off(this._$thumb,".dxScrollbar")},_optionChanged:function(t){if(!this._isHidden())switch(t.name){case"containerSize":case"contentSize":this.option()[t.name]=this._normalizeSize(t.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:pt((function(){this._adjustVisibility()&&this.option("visible",!0)}))});Zi.add((function(){we.subscribeGlobal(Tt.getDocument(),xr(vs.up,"dxScrollbar"),(function(){ac&&ac.feedbackOff()}))}));var uc=O.inherit({ctor:function(t){this._init(t)},_init:function(t){this._component=t,this._$element=t.$element(),this._$container=pi(t.container()),this._$content=t.$content(),this._direction=t.option("direction"),this._useSimulatedScrollbar=t.option("useSimulatedScrollbar"),this.option=t.option.bind(t),this._createActionByOption=t._createActionByOption.bind(t),this._isLocked=t._isLocked.bind(t),this._isDirection=t._isDirection.bind(t),this._allowedDirection=t._allowedDirection.bind(t),this._getMaxOffset=t._getMaxOffset.bind(t),this._isRtlNativeStrategy=t._isRtlNativeStrategy.bind(t)},render:function(){var t=dn.real().platform;this._$element.addClass("dx-scrollable-native").addClass("dx-scrollable-native-"+t).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(t){t&&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("vertical"),this._renderScrollbar("horizontal")},_renderScrollbar:function(t){this._isDirection(t)&&(this._scrollbars[t]=new hc(pi("<div>").appendTo(this._$element),{direction:t,expandable:this._component.option("scrollByThumb")}))},handleInit:St,handleStart:St,handleMove:function(t){this._isLocked()?t.cancel=!0:this._allowedDirection()&&(t.originalEvent.isScrollingEvent=!0)},handleEnd:St,handleCancel:St,handleStop:St,_eachScrollbar:function(t){t=t.bind(this),m(this._scrollbars||{},(function(e,i){t(i,e)}))},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:t,top:e}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-t):this._isReachedLeft(t),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(t)):this._isReachedRight(t),reachedTop:this._isDirection("vertical")?Math.round(e)>=0:void 0,reachedBottom:this._isDirection("vertical")?Math.round(Math.abs(e)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:t,left:e}=this.location();return{top:-t,left:this._normalizeOffsetLeft(-e)}},_normalizeOffsetLeft(t){return this._isRtlNativeStrategy()?this._getMaxOffset().left+t:t},_isReachedLeft:function(t){return this._isDirection("horizontal")?Math.round(t)>=0:void 0},_isReachedRight:function(t){return this._isDirection("horizontal")?Math.round(Math.abs(t)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:t}=this.option();return"never"!==t&&!1!==t},handleScroll:function(t){this._eventForUserAction=t,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:t,left:e}=this._getScrollOffset();this._eachScrollbar((function(i){i.moveTo({top:-t,left:-e}),i.option("visible",!0)})),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar((function(t){t.option("visible",!1)}))}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:St,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:Zt(this._$container),width:Jt(this._$container)},this._componentContentSize={height:Zt(this._component.$content()),width:Jt(this._component.$content())},this._contentSize={height:Zt(this._$content),width:Jt(this._$content)}},_updateScrollbars:function(){this._eachScrollbar((function(t,e){var i="vertical"===e?"height":"width";t.option({containerSize:this._containerSize[i],contentSize:this._componentContentSize[i]}),t.update()}))},_allowedDirections:function(){return{vertical:this._isDirection("vertical")&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection("horizontal")&&this._contentSize.width>this._containerSize.width}},dispose:function(){var t=this._$element.get(0).className,e=new RegExp("dx-scrollable-native\\S*","g");e.test(t)&&this._$element.removeClass(t.match(e).join(" ")),we.off(this._$element,".dxNativeScrollable"),we.off(this._$container,".dxNativeScrollable"),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar((function(t){t.$element().remove()}))},scrollBy:function(t){var e=this.location();this._$container.scrollTop(Math.round(-e.top-t.top)),this._$container.scrollLeft(Math.round(-e.left-t.left))},validate:function(t){return!(this.option("disabled")||cr(t)&&this._isScrolledInMaxDirection(t)||!this._allowedDirection())},_isScrolledInMaxDirection(t){var e=this._$container.get(0);return t.delta>0?t.shiftKey?!e.scrollLeft:!e.scrollTop:t.shiftKey?e.scrollLeft>=this._getMaxOffset().left:e.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}}),lc=Ft(),cc=sc.inherit({_getDefaultOptions:function(){return v(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var t=hl();return this.callBase().concat([{device:function(){return"android"===dn.real().platform&&!/chrome/i.test(lc.userAgent)},options:{viaImage:!0}},{device:function(){return dl(t)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return function(t){return cl("generic",t)}(t)},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=pi("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=pi("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!wn()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var t=this.option("_animatingSegmentInner");this._$indicator=pi("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var e=this.option("_animatingSegmentCount");e>=0;--e){var i=pi("<div>").addClass("dx-loadindicator-segment").addClass("dx-loadindicator-segment"+e);t&&i.append(pi("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(i)}},_renderMarkupForImage:function(){var t=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),t&&this._$wrapper.css("backgroundImage","url("+t+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var t=this.option("width"),e=this.option("height");if(t||e){t=Jt(this.$element()),e=Zt(this.$element());var i=Math.min(e,t);this._$wrapper.css({height:i,width:i,fontSize:i})}}},_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(t){switch(t.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(t)}}});Si("dxLoadIndicator",cc);var dc,fc,vc=uc.inherit({_init:function(t){this.callBase(t),this._$topPocket=t._$topPocket,this._$pullDown=t._$pullDown,this._$refreshingText=t._$refreshingText,this._$scrollViewContent=pi(t.content()),this._$container=pi(t.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=z(),this.releaseCallbacks=z(),this.reachBottomCallbacks=z()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var t=pi("<div>").addClass("dx-scrollview-pull-down-image"),e=pi("<div>").addClass("dx-scrollview-pull-down-indicator"),i=new cc(pi("<div>")).$element(),n=this._$pullDownText=pi("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=pi("<div>").text(this.option("pullingDownText")).appendTo(n),this._$pulledDownText=pi("<div>").text(this.option("pulledDownText")).appendTo(n),this._$refreshingText=pi("<div>").text(this.option("refreshingText")).appendTo(n),this._$pullDown.empty().append(t).append(e.append(i)).append(n)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var t=this;m([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],(function(e,i){i.element[t._state===i.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")}))},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var t=this._$scrollViewContent.get(0),e=this._$container.get(0);this._bottomBoundary=Math.max(t.clientHeight-e.clientHeight,0)},_allowedDirections:function(){var t=this.callBase();return t.vertical=t.vertical||this._pullDownEnabled,t},_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(t){Pi(this._$topPocket,{top:t}),Pi(this._$scrollViewContent,{top:t})},handleScroll:function(t){if(this.callBase(t),2!==this._state){var e=this.location().top,i=(this._location||0)-e;this._location=e,this._isPullDown()?this._pullDownReady():i>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("dx-scrollview-pull-down-ready"),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(t){t&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=t},reachBottomEnable:function(t){this._reachBottomEnabled=t},pendingRelease:function(){this._state=1},release:function(){var t=new K;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(),t.resolve()}.bind(this),400),t.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}}),pc=uc.inherit({_init:function(t){this.callBase(t),this._$topPocket=t._$topPocket,this._$pullDown=t._$pullDown,this._$scrollViewContent=pi(t.content()),this._$container=pi(t.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=z(),this.releaseCallbacks=z(),this.reachBottomCallbacks=z()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var t=pi("<div>").addClass("dx-scrollview-pull-down-indicator"),e=new cc(pi("<div>")).$element();this._$icon=pi("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(t.append(e))},_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 t=this._$scrollViewContent.get(0),e=this._$container.get(0);this._bottomBoundary=Math.max(t.clientHeight-e.clientHeight,0)},_allowedDirections:function(){var t=this.callBase();return t.vertical=t.vertical||this._pullDownEnabled,t},handleInit:function(t){this.callBase(t),0===this._state&&0===this._location&&(this._startClientY=fr(t.originalEvent).y,this._state=4)},handleMove:function(t){this.callBase(t),this._deltaY=fr(t.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(t.preventDefault(),this._movePullDown())},_movePullDown:function(){var t=this._getPullDownHeight(),e=Math.min(3*t,this._deltaY+this._getPullDownStartPosition()),i=180*e/t/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",e<t),Pi(this._$pullDown,{top:e}),this._$icon.css({transform:"rotate("+i+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*Qt(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*Qt(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(t){if(this.callBase(t),2!==this._state){var e=this.location().top,i=this._location-e;this._location=e,i>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("dx-scrollview-pull-down-loading"),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass("dx-scrollview-pull-down-loading"),Pi(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(t){this._$topPocket.toggle(t),this._pullDownEnabled=t},reachBottomEnable:function(t){this._reachBottomEnabled=t},pendingRelease:function(){this._state=1},release:function(){var t=new K;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),t.resolve()}.bind(this),800),t.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}}),mc=O.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,ji(this._stepAnimationFrame)},_stepCore:function(){if(this._isStopped())this._stop();else{if(this._isFinished())return this._finished=!0,void this._complete();this._step(),this._stepAnimationFrame=Ui(this._proxiedStepCore)}},_step:O.abstract,_isFinished:St,_stop:St,_complete:St,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}}),gc=Math.round(1e3/60),xc=(1-Math.pow(.92,400/gc))/(1-.92),bc=mc.inherit({ctor:function(t){this.callBase(),this.scroller=t},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()?.92:.5},_complete:function(){this.scroller._scrollComplete()}}),_c=bc.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return.92},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),yc=O.inherit({ctor:function(t){this._initOptions(t),this._initAnimators(),this._initScrollbar()},_initOptions:function(t){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis="horizontal"===t.direction?"x":"y",this._prop="horizontal"===t.direction?"left":"top",this._dimension="horizontal"===t.direction?"width":"height",this._scrollProp="horizontal"===t.direction?"scrollLeft":"scrollTop",m(t,((t,e)=>{this["_"+t]=e}))},_initAnimators:function(){this._inertiaAnimator=new bc(this),this._bounceAnimator=new _c(this)},_initScrollbar:function(){this._scrollbar=new hc(pi("<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(t){return!0===t?"onScroll":!1===t?"never":t},_scrollStep:function(t){var e=this._location;this._location+=t,this._suppressBounce(),this._move(),Math.abs(e-this._location)<1||we.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(t){return t=void 0!==t?t:this._location,Math.max(Math.min(t,this._maxOffset),this._minOffset)},_move:function(t){this._location=void 0!==t?t*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var t=this._location;this._$container[this._scrollProp](-t/this._getScaleRatio()),this._moveContentByTranslator(t)},_getScaleRatio:function(){if(Mt()&&!this._scaleRatio){var t=this._$element.get(0),e=this._getRealDimension(t,this._dimension),i=this._getBaseDimension(t,this._dimension);this._scaleRatio=Math.round(e/i*100)/100}return this._scaleRatio||1},_getRealDimension:function(t,e){return Math.round(Cn(t)[e])},_getBaseDimension:function(t,e){return t["offset"+$e(e)]},_moveContentByTranslator:function(t){var e,i=-this._maxScrollPropValue;if(this._translateOffset!==(e=t>0?t:t<=i?t-i:t%1)){var n={};n[this._prop]=e,this._translateOffset=e,0!==e?Pi(this._$content,n):Bi(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 t=this._bounceLocation=this._boundLocation();this._velocity=(t-this._location)/xc},_inBounds:function(t){return this._boundLocation(t=void 0!==t?t:this._location)===t},_crossBoundOnNextStep:function(){var t=this._location,e=t+this._velocity;return t<this._minOffset&&e>=this._minOffset||t>this._maxOffset&&e<=this._maxOffset},_initHandler:function(t){this._stopScrolling(),this._prepareThumbScrolling(t)},_stopScrolling:pt((function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()})),_prepareThumbScrolling:function(t){if(!cr(t.originalEvent)){var e=pi(t.originalEvent.target),i=this._isScrollbar(e);i&&this._moveToMouseLocation(t),this._thumbScrolling=i||this._isThumb(e),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(e),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(t){return this._isThumb(t)},_moveToMouseLocation:function(t){var e=t["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],i=this._location+e/this._containerToContentRatio()-Zt(this._$container)/2;this._scrollStep(-Math.round(i))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(t){this._crossThumbScrolling||(this._thumbScrolling&&(t[this._axis]=-Math.round(t[this._axis]/this._containerToContentRatio())),this._scrollBy(t))},_scrollBy:function(t){t=t[this._axis],this._inBounds()||(t*=.5),this._scrollStep(t)},_scrollByHandler:function(t){this._scrollBy(t),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(t){return this._completeDeferred=new K,this._velocity=t[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(){return this._stopScrolling(),vt((()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),ft((()=>{this._moveScrollbar(),this._scrollbar.update()}))}))},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(ki(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:mt((function(){var t=this._containerSize(),e=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),n=this._getBaseDimension(this._$content.get(0),this._dimension);ft((()=>{this._scrollbar.option({containerSize:t,contentSize:e,baseContainerSize:i,baseContentSize:n,scaleRatio:this._getScaleRatio()})}))})),_moveToBounds:pt(mt(pt((function(){var t=this._boundLocation(),e=t!==this._location;this._location=t,this._move(),e&&this._scrollAction()})))),_createActionsHandler:function(t){this._scrollAction=t.scroll,this._bounceAction=t.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 t="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),e=this._getRealDimension(this._$content.get(0),this._dimension);if(!t){var i=this._$content[0]["scroll"+$e(this._dimension)]*this._getScaleRatio();e=Math.max(i,e)}return e},_validateEvent:function(t){var e=pi(t.originalEvent.target);return this._isThumb(e)||this._isScrollbar(e)},_isThumb:function(t){return this._scrollByThumb&&this._scrollbar.isThumb(t)},_isScrollbar:function(t){return this._scrollByThumb&&t&&t.is(this._$scrollbar)},_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:St}),wc=O.inherit({ctor:function(t){this._init(t)},_init:function(t){this._component=t,this._$element=t.$element(),this._$container=pi(t.container()),this._$wrapper=t._$wrapper,this._$content=t.$content(),this.option=t.option.bind(t),this._createActionByOption=t._createActionByOption.bind(t),this._isLocked=t._isLocked.bind(t),this._isDirection=t._isDirection.bind(t),this._allowedDirection=t._allowedDirection.bind(t),this._getMaxOffset=t._getMaxOffset.bind(t)},render:function(){this._$element.addClass("dx-scrollable-simulated"),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection("horizontal")&&this._createScroller("horizontal"),this._isDirection("vertical")&&this._createScroller("vertical"),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(t){this._scrollers[t]=new yc(this._scrollerOptions(t))},_scrollerOptions:function(t){return{direction:t,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(t){for(var e in this._scrollers){var i=this._getPropByDirection(e);n(t[i])&&(t[i]*=this._scrollers[e]._getScaleRatio())}return t},_isAnyThumbScrolling:function(t){var e=!1;return this._eventHandler("isThumbScrolling",t).done((function(t,i){e=t||i})),e},handleInit:function(t){this._suppressDirections(t),this._eventForUserAction=t,this._eventHandler("init",t)},_suppressDirections:function(t){cr(t.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller((function(e,i){var n=pi(t.originalEvent.target),r=e._validateEvent(t)||this.option("scrollByContent")&&this._isContent(n);this._validDirections[i]=r})))},_isContent:function(t){return!!t.closest(this._$element).length},_prepareDirections:function(t){t=t||!1,this._validDirections={},this._validDirections.horizontal=t,this._validDirections.vertical=t},_eachScroller:function(t){t=t.bind(this),m(this._scrollers,(function(e,i){t(i,e)}))},handleStart:function(t){this._eventForUserAction=t,this._eventHandler("start").done(this._startAction)},_saveActive:function(){fc=this},_resetActive:function(){fc===this&&(fc=null)},handleMove:function(t){if(this._isLocked())return t.cancel=!0,void this._resetActive();this._saveActive(),t.preventDefault&&t.preventDefault(),this._adjustDistance(t,t.delta),this._eventForUserAction=t,this._eventHandler("move",t.delta)},_adjustDistance:function(t,e){e.x*=this._validDirections.horizontal,e.y*=this._validDirections.vertical;var i=this._tryGetDevicePixelRatio();i&&cr(t.originalEvent)&&(e.x=Math.round(e.x/i*100)/100,e.y=Math.round(e.y/i*100)/100)},_tryGetDevicePixelRatio:function(){if(Mt())return Ot().devicePixelRatio},handleEnd:function(t){return this._resetActive(),this._refreshCursorState(t.originalEvent&&t.originalEvent.target),this._adjustDistance(t,t.velocity),this._eventForUserAction=t,this._eventHandler("end",t.velocity).done(this._endAction)},handleCancel:function(t){return this._resetActive(),this._eventForUserAction=t,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){we.off(this._$element,".".concat("dxSimulatedScrollableKeyboard")),!this.option("disabled")&&this.option("useKeyboard")&&we.on(this._$element,xr("keydown","dxSimulatedScrollableKeyboard"),this._keyDownHandler.bind(this))},_keyDownHandler:function(t){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout((()=>{"tab"===gr(t)&&this._eachScroller((t=>{t._updateHandler()}))})),this._$container.is(Tt.getActiveElement())){var e=!0;switch(gr(t)){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:e=!1}e&&(t.stopPropagation(),t.preventDefault())}},_scrollByLine:function(t){var e=this._tryGetDevicePixelRatio(),i=40;e&&(i=Math.abs(i/e*100)/100),this.scrollBy({top:(t.y||0)*-i,left:(t.x||0)*-i})},_scrollByPage:function(t){var e=this._wheelProp(),i=this._dimensionByProp(e),n={};n[e]=t*-("width"===i?Jt:Zt)(this._$container),this.scrollBy(n)},_dimensionByProp:function(t){return"left"===t?"width":"height"},_getPropByDirection:function(t){return"horizontal"===t?"left":"top"},_scrollToHome:function(){var t={};t[this._wheelProp()]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var t=this._wheelProp(),e={},i="width"===this._dimensionByProp(t)?Jt:Zt;e[t]=i(this._$content)-i(this._$container),this._component.scrollTo(e)},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(t){var e=this._createActionByOption(t);return()=>{e(v(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:t,vertical:e}=this._scrollers,i=this._getScrollOffset();return this._scrollOffset={top:e&&i.top,left:t&&i.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:t&&t._reachedMax(),reachedRight:t&&t._reachedMin(),reachedTop:e&&e._reachedMax(),reachedBottom:e&&e._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(t){var e=[].slice.call(arguments).slice(1),i=p(this._scrollers,(i=>i["_"+t+"Handler"].apply(i,e)));return U.apply(pi,i).promise()},location:function(){var t=ki(this._$content);return t.top-=this._$container.scrollTop(),t.left-=this._$container.scrollLeft(),t},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){we.off(this._$element,".".concat("dxSimulatedScrollableCursor")),!this.option("disabled")&&this._isHoverMode()&&(we.on(this._$element,xr("mouseenter","dxSimulatedScrollableCursor"),this._cursorEnterHandler.bind(this)),we.on(this._$element,xr("mouseleave","dxSimulatedScrollableCursor"),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(t){(t=t||{}).originalEvent=t.originalEvent||{},fc||t.originalEvent._hoverHandled||(dc&&dc._cursorLeaveHandler(),dc=this,this._eventHandler("cursorEnter"),t.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(t){dc===this&&fc!==dc&&(this._eventHandler("cursorLeave"),dc=null,this._refreshCursorState(t&&t.relatedTarget))},_refreshCursorState:function(t){if(this._isHoverMode()||t&&!fc){var e=pi(t).closest(".".concat("dx-scrollable-simulated",":not(.dx-state-disabled)")),i=e.length&&e.data("dxScrollableStrategy");dc&&dc!==i&&dc._cursorLeaveHandler(),i&&i._cursorEnterHandler()}},update:function(){return U(this._eventHandler("update").done(this._updateAction),vt((()=>{var t=this._allowedDirections();return ft((()=>{var e=t.vertical?"pan-x":"";e=t.horizontal?"pan-y":e,this._$container.css("touchAction",e=t.vertical&&t.horizontal?"none":e)})),U().promise()})))},_allowedDirections:function(){var t=this.option("bounceEnabled"),e=this._scrollers.vertical,i=this._scrollers.horizontal;return{vertical:e&&(e._minOffset<0||t),horizontal:i&&(i._minOffset<0||t)}},_updateBounds:function(){this._scrollers.horizontal&&this._scrollers.horizontal._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&"vertical"!==this.option("direction")},updateRtlPosition:function(t){t&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&vt((()=>{var t=this._getMaxOffset().left-this._rtlConfig.scrollRight;t<=0&&(t=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),ft((()=>{this._getScrollOffset().left!==t&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:t}),this._rtlConfig.skipUpdating=!1)}))}))},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:t,scrollLeft:e}=this._$container.get(0),i=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===i&&this._rtlConfig.clientWidth===t&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-e),this._rtlConfig.clientWidth=t,this._rtlConfig.windowPixelRatio=i}},_getWindowDevicePixelRatio:function(){return Mt()?Ot().devicePixelRatio:1},scrollBy:function(t){var e=this._scrollers.vertical,i=this._scrollers.horizontal;e&&(t.top=e._boundLocation(t.top+e._location)-e._location),i&&(t.left=i._boundLocation(t.left+i._location)-i._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:t.left,y:t.top}),this._endAction(),this._updateRtlConfig()},validate:function(t){return(!cr(t)||!br(t))&&!this.option("disabled")&&(!!this.option("bounceEnabled")||(cr(t)?this._validateWheel(t):this._validateMove(t)))},_validateWheel:function(t){var e=this._scrollers[this._wheelDirection(t)],i=e._reachedMin(),n=e._reachedMax(),r=(!i||!n)&&(!i&&!n||i&&t.delta>0||n&&t.delta<0);return(r=r||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout((()=>{this._validateWheelTimer=void 0}),500)),r},_validateMove:function(t){return!(!this.option("scrollByContent")&&!pi(t.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(t){return cr(t)?this._wheelDirection(t):this._allowedDirection()},_wheelProp:function(){return"horizontal"===this._wheelDirection()?"left":"top"},_wheelDirection:function(t){switch(this.option("direction")){case"horizontal":return"horizontal";case"vertical":return"vertical";default:return t&&t.shiftKey?"horizontal":"vertical"}},dispose:function(){this._resetActive(),dc===this&&(dc=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass("dx-scrollable-simulated"),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){we.off(this._$element,".".concat("dxSimulatedScrollableCursor")),we.off(this._$container,".".concat("dxSimulatedScrollableKeyboard"))}}),Sc=Math,Ec=yc.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 t=this;m([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],(function(e,i){i.element[t._state===i.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")}))},_initCallbacks:function(){this.pullDownCallbacks=z(),this.releaseCallbacks=z(),this.reachBottomCallbacks=z()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var t=this._$container.get(0),e=this._$content.get(0);this._bottomBoundary=Math.max(e.clientHeight-this._bottomPocketSize-t.clientHeight,0)}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 t=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(t.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 Sc.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=ht(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(t){this._reachBottomEnabled!==t&&(this._reachBottomEnabled=t,this._updateBounds())},_pullDownEnablingHandler:function(t){this._pullDownEnabled!==t&&(this._pullDownEnabled=t,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=Zt(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),Cc=wc.inherit({_init:function(t){this.callBase(t),this._$pullDown=t._$pullDown,this._$topPocket=t._$topPocket,this._$bottomPocket=t._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=z(),this.releaseCallbacks=z(),this.reachBottomCallbacks=z()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var t=pi("<div>").addClass("dx-scrollview-pull-down-image"),e=pi("<div>").addClass("dx-scrollview-pull-down-indicator"),i=new cc(pi("<div>")).$element(),n=this._$pullDownText=pi("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=pi("<div>").text(this.option("pullingDownText")).appendTo(n),this._$pulledDownText=pi("<div>").text(this.option("pulledDownText")).appendTo(n),this._$refreshingText=pi("<div>").text(this.option("refreshingText")).appendTo(n),this._$pullDown.empty().append(t).append(e.append(i)).append(n)},pullDownEnable:function(t){this._eventHandler("pullDownEnabling",t)},reachBottomEnable:function(t){this._eventHandler("reachBottomEnabling",t)},_createScroller:function(t){var e=this,i=e._scrollers[t]=new Ec(e._scrollerOptions(t));i.pullDownCallbacks.add((function(){e.pullDownCallbacks.fire()})),i.releaseCallbacks.add((function(){e.releaseCallbacks.fire()})),i.reachBottomCallbacks.add((function(){e.reachBottomCallbacks.fire()}))},_scrollerOptions:function(t){return v(this.callBase(t),{$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 t=this.callBase();return t.top+=Zt(this._$topPocket),t},dispose:function(){m(this._scrollers,(function(){this.dispose()})),this.callBase()}}),Ic=function(){return[{device:function(){return!Sn},options:{useNative:!1}},{device:function(t){return!dn.isSimulator()&&"desktop"===dn.real().deviceType&&"generic"===t.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:bn,showScrollbar:"onHover"}}]},Dc="dxScrollable",Tc=Pu.inherit({_getDefaultOptions:function(){return v(this.callBase(),{disabled:!1,onScroll:null,direction:"vertical",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(Ic(),[{device:function(){return Sn&&"android"===dn.real().platform&&!Mn.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(t){this.callBase(t),"useSimulatedScrollbar"in t||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(t){t?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var t=this.$element().addClass("dx-scrollable"),e=this._$container=pi("<div>").addClass("dx-scrollable-container"),i=this._$wrapper=pi("<div>").addClass("dx-scrollable-wrapper");(this._$content=pi("<div>").addClass("dx-scrollable-content")).append(t.contents()).appendTo(e),e.appendTo(i),i.appendTo(t)},_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(t){this._strategy.updateRtlPosition(t)},_getMaxOffset:function(){var{scrollWidth:t,clientWidth:e,scrollHeight:i,clientHeight:n}=pi(this.container()).get(0);return{left:t-e,top:i-n}},_attachEventHandlers:function(){var t=this._strategy,e={getDirection:t.getDirection.bind(t),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};we.off(this._$wrapper,"."+Dc),we.on(this._$wrapper,xr("dxscrollinit",Dc),e,this._initHandler.bind(this)),we.on(this._$wrapper,xr("dxscrollstart",Dc),t.handleStart.bind(t)),we.on(this._$wrapper,xr("dxscroll",Dc),t.handleMove.bind(t)),we.on(this._$wrapper,xr("dxscrollend",Dc),t.handleEnd.bind(t)),we.on(this._$wrapper,xr("dxscrollcancel",Dc),t.handleCancel.bind(t)),we.on(this._$wrapper,xr("dxscrollstop",Dc),t.handleStop.bind(t)),we.off(this._$container,"."+Dc),we.on(this._$container,xr("scroll",Dc),t.handleScroll.bind(t))},_validate:function(t){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(t))},_moveIsAllowed(t){return this._strategy.validate(t)},handleMove(t){this._strategy.handleMove(t)},_prepareDirections(t){this._strategy._prepareDirections(t)},_initHandler:function(){var t=this._strategy;t.handleInit.apply(t,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 uc(this):new wc(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(t){switch(t.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"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(t),this._updateRtlPosition();break;default:this.callBase(t)}},_resetInactiveDirection:function(){var t=this._getInactiveProp();if(t&&Mt()){var e=this.scrollOffset();e[t]=0,this.scrollTo(e)}},_getInactiveProp:function(){var t=this.option("direction");return"vertical"===t?"left":"horizontal"===t?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(t){if(u(t)){var e=at(t.left,t.x),i=at(t.top,t.y);return{left:n(e)?-e:void 0,top:n(i)?-i:void 0}}var r=this.option("direction");return{left:"vertical"!==r?-t:void 0,top:"horizontal"!==r?-t:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(t){var e=this.option("direction");return"vertical"===t?"horizontal"!==e:"horizontal"===t?"vertical"!==e:e===t},_updateAllowedDirection:function(){var t=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection("both")&&t.vertical&&t.horizontal?"both":this._isDirection("horizontal")&&t.horizontal?"horizontal":this._isDirection("vertical")&&t.vertical?"vertical":null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return Ii(this._$content)},container:function(){return Ii(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:t,rtlEnabled:e}=this.option();return t&&e},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return Zt(this._$container)},scrollHeight:function(){return Qt(this.$content())},clientWidth:function(){return Jt(this._$container)},scrollWidth:function(){return Xt(this.$content())},update:function(){if(this._strategy)return U(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(t){((t=this._normalizeLocation(t)).top||t.left)&&(this._updateIfNeed(),this._strategy.scrollBy(t))},scrollTo:function(t){t=this._normalizeLocation(t),this._updateIfNeed();var e=this._location();this.option("useNative")||(t=this._strategy._applyScaleRatio(t),e=this._strategy._applyScaleRatio(e)),this._isRtlNativeStrategy()&&(e.left=e.left-this._getMaxOffset().left);var i=this._normalizeLocation({left:e.left-at(t.left,e.left),top:e.top-at(t.top,e.top)});(i.top||i.left)&&this._strategy.scrollBy(i)},scrollToElement:function(t,e){var i=pi(t),n=this.$content().find(t).length,r=i.parents(".dx-scrollable").length-i.parents(".dx-scrollable-content").length==0;if(n&&r){var s={top:0,left:0},o=this.option("direction");"vertical"!==o&&(s.left=this.getScrollElementPosition(i,"horizontal",e)),"horizontal"!==o&&(s.top=this.getScrollElementPosition(i,"vertical",e)),this.scrollTo(s)}},getScrollElementPosition:function(t,e,i){var n=this.scrollOffset();return function(t,e,i,n,r){var s=se({top:0,left:0,right:0,bottom:0},r),o="vertical"===e,a=o?"top":"left",h=o?"bottom":"right",u=o?"height":"width",l=i["offset".concat($e(u))],c=i["client".concat($e(u))],d=i.getBoundingClientRect()[u],f=t.getBoundingClientRect()[u],v=1;Math.abs(d-l)>1&&(v=d/l);var p=function(t,e){for(var i={left:0,top:0},n=e;null!==(r=n)&&void 0!==r&&r.offsetParent&&!n.classList.contains("dx-scrollable-content");){var r,s=n.offsetParent,o=n.getBoundingClientRect(),a=s.getBoundingClientRect();i.left+=o.left-a.left,i.top+=o.top-a.top,n=n.offsetParent}return i}(0,t)[a]/v,m=n[a],g=m-p+s[a],x=m-p-f/v+c-s[h];return g<=0&&x>=0?m:m-(Math.abs(g)>Math.abs(x)?x:g)}(t.get(0),e,pi(this.container()).get(0),n,i)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!Tc.IS_RENOVATED_WIDGET}});Si(Dc,Tc);var kc="dxdragenter",Mc="dxdragleave",Ac="dxdrop",Oc=[],Rc=[],Fc=[],Pc={setup:function(t,e){Oc.includes(t)||(Oc.push(t),Rc.push([]),Fc.push(e||{}))},add:function(t,e){var i=Oc.indexOf(t);this.updateEventsCounter(t,e.type,1);var n=e.selector;Rc[i].includes(n)||Rc[i].push(n)},updateEventsCounter:function(t,e,i){if([kc,Mc,Ac].indexOf(e)>-1){var n=Ne(t,"dxDragEventsCount")||0;Ne(t,"dxDragEventsCount",Math.max(0,n+i))}},remove:function(t,e){this.updateEventsCounter(t,e.type,-1)},teardown:function(t){if(!Ne(t,"dxDragEventsCount")){var e=Oc.indexOf(t);Oc.splice(e,1),Rc.splice(e,1),Fc.splice(e,1),We(t,"dxDragEventsCount")}}};gi(kc,Pc),gi(Mc,Pc),gi(Ac,Pc),xs({emitter:Os.inherit({ctor:function(t){this.callBase(t),this.direction="both"},_init:function(t){this._initEvent=t},_start:function(t){if(t=this._fireEvent("dxdragstart",this._initEvent),this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset,t.targetElements||null===t.targetElements){var e=(i=t.targetElements||[],Array.isArray(i)?i:[i]);this._dropTargets=p(e,(function(t){return pi(t).get(0)}))}else this._dropTargets=Oc;var i},_move:function(t){var e=fr(t),i=this._calculateOffset(e);t=this._fireEvent("dxdrag",t,{offset:i}),this._processDropTargets(t),t._cancelPreventDefault||t.preventDefault()},_calculateOffset:function(t){return{x:this._calculateXOffset(t),y:this._calculateYOffset(t)}},_calculateXOffset:function(t){return"vertical"!==this.direction?this._fitOffset(t.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(t){return"horizontal"!==this.direction?this._fitOffset(t.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(t,e,i){return null!=e&&(t=Math.max(t,-e)),null!=i&&(t=Math.min(t,i)),t},_processDropTargets:function(t){var e=this._findDropTarget(t);e===this._currentDropTarget||(this._fireDropTargetEvent(t,Mc),this._currentDropTarget=e,this._fireDropTargetEvent(t,kc))},_fireDropTargetEvent:function(t,e){if(this._currentDropTarget){var i={type:e,originalEvent:t,draggingElement:this._$element.get(0),target:this._currentDropTarget};mr(i)}},_findDropTarget:function(t){var e,i=this;return m(Oc,(function(n,r){if(i._checkDropTargetActive(r)){var s,o,a,h,u=pi(r);m((o=Oc.indexOf((s=u).get(0)),a=Rc[o].filter((t=>t)),h=s.find(a.join(", ")),Rc[o].includes(void 0)&&(h=h.add(s)),h),(function(n,r){var s=pi(r);i._checkDropTarget(function(t){var e=Oc.indexOf(t.get(0));return Fc[e]}(u),s,pi(e),t)&&(e=r)}))}})),e},_checkDropTargetActive:function(t){var e=!1;return m(this._dropTargets,(function(i,n){return!(e=e||n===t||Zr(n,t))})),e},_checkDropTarget:function(t,e,i,n){if(e.get(0)===pi(n.target).get(0))return!1;var r,s,o=(s=e,(r=t).itemPositionFunc?r.itemPositionFunc(s):s.offset());if(n.pageX<o.left)return!1;if(n.pageY<o.top)return!1;var a=function(t,e){return t.itemSizeFunc?t.itemSizeFunc(e):{width:e.get(0).getBoundingClientRect().width,height:e.get(0).getBoundingClientRect().height}}(t,e);return!(n.pageX>o.left+a.width)&&!(n.pageY>o.top+a.height)&&(!i.length||!i.closest(e).length)&&!(t.checkDropTarget&&!t.checkDropTarget(e,n))&&e},_end:function(t){var e=fr(t);this._fireEvent("dxdragend",t,{offset:this._calculateOffset(e)}),this._fireDropTargetEvent(t,Ac),delete this._currentDropTarget}}),events:["dxdragstart","dxdrag","dxdragend"]});var Bc=function(){var t=[];return{add:function(e){t.includes(e)||t.push(e)},remove:function(e){var i=t.indexOf(e);-1!==i&&t.splice(i,1)},fire:function(){var e=t.pop(),i=!!e;return i&&e(),i},hasCallback:function(){return t.length>0}}}(),Hc=1500,Lc=[],zc=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hc,e=Lc.length,i=(e?Lc[e-1]:t)+1;return Lc.push(i),i},Gc=t=>{var e=Lc.indexOf(t);e>=0&&Lc.splice(e,1)};var Nc=Ot(),Wc={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"}},Vc={h:0,v:0};class Kc{constructor(t){var{position:e,container:i,visualContainer:n,$root:r,$content:s,$wrapper:o,onPositioned:a,onVisualPositionChanged:h,restorePosition:u,_fixWrapperPosition:l}=t;this._props={position:e,container:i,visualContainer:n,restorePosition:u,onPositioned:a,onVisualPositionChanged:h,_fixWrapperPosition:l},this._$root=r,this._$content=s,this._$wrapper=o,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(i),this.updatePosition(e),this.updateVisualContainer(n)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(t){this._props._fixWrapperPosition=t,this.styleWrapperPosition()}set restorePosition(t){this._props.restorePosition=t}restorePositionOnNextRender(t){this._shouldRenderContentInitialPosition=t||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}updatePosition(t){this._props.position=t,this._position=this._normalizePosition(t),this.updateVisualContainer()}updateContainer(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=t,this._$markupContainer=t?pi(t):(t=>{var e=pi(t).closest('[class^="'.concat("dx-swatch-",'"], [class*=" ').concat("dx-swatch-",'"]')),i=sn();if(!e.length)return i;var n=new RegExp("(\\s|^)(".concat("dx-swatch-",".*?)(\\s|$)")),r=e[0].className.match(n)[2],s=i.children("."+r);return s.length||(s=pi("<div>").addClass(r).appendTo(i)),s})(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){this._props.visualContainer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(t){this._updateVisualPositionValue(),this._raisePositionedEvents(t)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():(Pi(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&Xn.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var t=l(this.$visualContainer.get(0))||this._props._fixWrapperPosition;this._$wrapper.css("position",t?"fixed":"absolute")}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=ki(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),Bi(this._$content);var t=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var e=Xn.setup(this._$content,this._position);this._$wrapper.css("overflow",t),this._initialPosition=e,this.detectVisualPositionChange()}_raisePositionedEvents(t){var e=this._previousVisualPosition,i=this._visualPosition;((null==e?void 0:e.top)!==i.top||(null==e?void 0:e.left)!==i.left)&&this._props.onVisualPositionChanged({previousPosition:e,position:i,event:t}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var t,e=null!==(t=this._position)&&void 0!==t?t:{boundaryOffset:Vc};this._$content.css("margin","".concat(e.v,"px ").concat(e.h,"px"))}_getVisualContainer(){var t,e,i,n=(i=null===(t=this._props.position)||void 0===t?void 0:t.of)&&i.preventDefault?this._props.position.of.target:null===(e=this._props.position)||void 0===e?void 0:e.of;return pi(this._props.visualContainer||this._props.container||n||Nc)}_normalizePosition(t){var e={boundaryOffset:Vc};return n(t)?v(!0,{},e,this._positionToObject(t)):e}_positionToObject(t){return s(t)?v({},Wc[t]):t}}var Uc=Zi.add,jc=Ot(),qc=nn,$c=[];Uc((()=>{we.subscribeGlobal(Tt.getDocument(),vs.down,(t=>{for(var e=$c.length-1;e>=0;e--)if(!$c[e]._proxiedDocumentDownHandler(t))return}))}));var Jc=sc.inherit({_supportedKeys:function(){return v(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return v(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:v({},Wc.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}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!Mt()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),v(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),v(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(t,e){this.callBase(t,e),e&&(e.copyRootClassesToWrapper&&!e._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),e.elementAttr&&!e._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}))},_init:function(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=pi("<div>").addClass("dx-overlay-wrapper"),this._$content=pi("<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:t=>{this._hideOnParentsScrollHandler(t)}},this.warnPositionAsFunction()},warnPositionAsFunction(){r(this.option("position"))&&E.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass("dx-inner-overlay",this.option("innerOverlay"))},_initHideTopOverlayHandler:function(t){this._hideTopOverlayHandler=t},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var t=this._getActionsList();m(t,((t,e)=>{this._actions[e]=this._createActionByOption(e,{excludeValidators:["disabled","readOnly"]})||St}))},_initHideOnOutsideClickHandler:function(){var t=this;this._proxiedDocumentDownHandler=function(){return t._documentDownHandler(...arguments)}},_areContentDimensionsRendered:function(t){var e,i,n,r,s,o=null===(e=t.contentBoxSize)||void 0===e?void 0:e[0];if(o)return parseInt(o.inlineSize,10)===(null===(r=this._renderedDimensions)||void 0===r?void 0:r.width)&&parseInt(o.blockSize,10)===(null===(s=this._renderedDimensions)||void 0===s?void 0:s.height);var a=t.contentRect;return parseInt(a.width,10)===(null===(i=this._renderedDimensions)||void 0===i?void 0:i.width)&&parseInt(a.height,10)===(null===(n=this._renderedDimensions)||void 0===n?void 0:n.height)},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(t){this._showAnimationProcessing&&this._stopAnimation();var e=pi(jc.document).is(t.target)||Zr(jc.document,t.target),i=pi(t.target).closest(".".concat("dx-inner-overlay")).length;return e&&!i&&!(this._$content.is(t.target)||Zr(this._$content.get(0),t.target))&&this._shouldHideOnOutsideClick(t)&&this._outsideClickHandler(t),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(t){var{hideOnOutsideClick:e}=this.option();return r(e)?e(t):e},_outsideClickHandler(t){this.option("shading")&&t.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new au}),this.callBase()},_isTopOverlay:function(){for(var t=this._overlayStack(),e=t.length-1;e>=0;e--){var i=t[e]._findTabbableBounds();if(i.first||i.last)return t[e]===this}return!1},_overlayStack:function(){return $c},_zIndexInitValue:function(){return Jc.baseZIndex()},_toggleViewPortSubscription:function(t){var e=this;qc.remove(this._viewPortChangeHandle),t&&(this._viewPortChangeHandle=function(){e._viewPortChangeHandler(...arguments)},qc.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:t}=this.option(),e=v({},t),i=e.class;delete e.class,this.$wrapper().attr(e).removeClass(this._customWrapperClass).addClass(i),this._customWrapperClass=i},_renderVisibilityAnimate:function(t){return this._stopAnimation(),t?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var t,e,i,n=this,r=null!==(t=this._getAnimationConfig())&&void 0!==t?t:{},s=this._normalizeAnimation(r.show,"to"),o=null!==(e=null==s?void 0:s.start)&&void 0!==e?e:St,a=null!==(i=null==s?void 0:s.complete)&&void 0!==i?i:St;this._animate(s,(function(){if(!n._isAnimationPaused){n.option("focusStateEnabled")&&we.trigger(n._focusTarget(),"focus");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];a.call(n,...e),n._showAnimationProcessing=!1,n._isHidden=!1,n._actions.onShown(),n._toggleSafariScrolling(),n._showingDeferred.resolve()}}),(function(){if(!n._isAnimationPaused){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];o.call(n,...e),n._showAnimationProcessing=!0}}))},_show:function(){if(this._showingDeferred=new K,this._parentHidden=this._isParentHidden(),this._showingDeferred.done((()=>{delete this._parentHidden})),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new K).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.resolve();else{var t=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass("dx-state-invisible",!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var t={cancel:!1};this._actions.onShowing(t),t.cancel?(()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass("dx-state-invisible",!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()})():(()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()})()};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(t)):t()}return this._showingDeferred.promise()},_normalizeAnimation:function(t,e){return t&&(t=v({type:"slide",skipElementInitialStyles:!0},t),a(t[e])&&v(t[e],{position:this._positionController.position})),t},_animateHiding:function(){var t,e,i,n=this,r=null!==(t=this._getAnimationConfig())&&void 0!==t?t:{},s=this._normalizeAnimation(r.hide,"from"),o=null!==(e=null==s?void 0:s.start)&&void 0!==e?e:St,a=null!==(i=null==s?void 0:s.complete)&&void 0!==i?i:St;this._animate(s,(function(){var t;n._$content.css("pointerEvents",""),n._renderVisibility(!1);for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];a.call(n,...i),n._hideAnimationProcessing=!1,null===(t=n._actions)||void 0===t||t.onHidden(),n._hidingDeferred.resolve()}),(function(){n._$content.css("pointerEvents","none");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];o.call(n,...e),n._hideAnimationProcessing=!0}))},_hide:function(){if(!this._currentVisible)return(new K).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new K;var t={cancel:!1};return this._isShowingActionCanceled?this._hidingDeferred.resolve():(this._actions.onHiding(t),this._toggleSafariScrolling(),t.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 t=Tt.getActiveElement();this._$content.find(t).length&&qr()},_animate:function(t,e,i){t?Ur.animate(this._$content,v({},t,{start:i=i||t.start||St,complete:e})):e()},_stopAnimation:function(){Ur.stop(this._$content,!0)},_renderVisibility:function(t){t&&this._isParentHidden()||(this._currentVisible=t,this._stopAnimation(),t||iu(this._$content),t?(this._moveToContainer(),this._renderGeometry(),eu(this._$content),nu(this._$content)):(this._toggleVisibility(t),this._$content.toggleClass("dx-state-invisible",!t),this._updateZIndexStackPosition(t),this._moveFromContainer()),this._toggleShading(t),this._toggleSubscriptions(t))},_updateZIndexStackPosition:function(t){var e=this._overlayStack(),i=e.indexOf(this);t?(-1===i&&(this._zIndex=zc(this._zIndexInitValue()),e.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==i&&(e.splice(i,1),Gc(this._zIndex))},_toggleShading:function(t){this._$wrapper.toggleClass("dx-overlay-shader",t&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(t&&this.option("shading"))},_initTabTerminatorHandler:function(){var t=this;this._proxiedTabTerminatorHandler=function(){t._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(t){var e=xr("keydown",this.NAME);t?we.on(Tt.getDocument(),e,this._proxiedTabTerminatorHandler):we.off(Tt.getDocument(),e,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var t=this._$wrapper.find("*"),e=t.length-1,i={first:null,last:null},n=0;n<=e&&(!i.first&&t.eq(n).is(ir)&&(i.first=t.eq(n)),!i.last&&t.eq(e-n).is(ir)&&(i.last=t.eq(e-n)),!i.first||!i.last);n++);return i},_tabKeyHandler:function(t){if("tab"===gr(t)&&this._isTopOverlay()){var e=this._findTabbableBounds(),i=e.first,n=e.last,r=!t.shiftKey&&t.target===n.get(0),s=t.shiftKey&&t.target===i.get(0),o=0===e.length,a=!Zr(this._$wrapper.get(0),t.target);if(r||s||o||a){t.preventDefault();var h=t.shiftKey?n:i;we.trigger(h,"focusin"),we.trigger(h,"focus")}}},_toggleSubscriptions:function(t){Mt()&&(this._toggleHideTopOverlayCallback(t),this._toggleHideOnParentsScrollSubscription(t))},_toggleHideTopOverlayCallback:function(t){this._hideTopOverlayHandler&&(t?Bc.add(this._hideTopOverlayHandler):Bc.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(t){var e,i=xr("scroll",this.NAME),{prevTargets:n,handler:r}=null!==(e=this._parentsScrollSubscriptionInfo)&&void 0!==e?e:{};we.off(n,i,r);var s=this.option("hideOnParentScroll");if(t&&s){var o=this._hideOnParentScrollTarget().parents();"desktop"===dn.real().deviceType&&(o=o.add(jc)),we.on(o,i,r),this._parentsScrollSubscriptionInfo.prevTargets=o}},_hideOnParentsScrollHandler:function(t){var e=!1,i=this.option("hideOnParentScroll");r(i)&&(e=i(t)),e||this._showAnimationProcessing||this.hide()},_hideOnParentScrollTarget:function(){return this._$wrapper},_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 t=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||t||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var t=this.$element().parent();if(t.is(":visible"))return!1;var e=!1;return t.add(t.parents()).each((function(){if("none"===pi(this).css("display"))return e=!0,!1})),e||!Tt.getBody().contains(t.get(0))},_renderContentImpl:function(){var t=new K,e=this.option("contentTemplate"),i=this._getTemplate(e),n=this._templateManager.anonymousTemplateName===e;return i&&i.render({container:Ii(this.$content()),noModel:!0,transclude:n,onRendered:()=>{t.resolve()}}),this._renderScrollTerminator(),t.done((()=>{this.option("visible")&&this._moveToContainer()})),t.promise()},_getPositionControllerConfig(){var{container:t,visualContainer:e,_fixWrapperPosition:i,restorePosition:n}=this.option();return{container:t,visualContainer:e,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:n,_fixWrapperPosition:i}},_initPositionController(){this._positionController=new Kc(this._getPositionControllerConfig())},_renderScrollTerminator:function(){var t=this._$wrapper,e=xr("dxdrag",this.NAME);we.off(t,e),we.on(t,e,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(t){t||this._toggleGestureCoverImpl(t)},_clearSelection:St,isNative:!0},(t=>{var e=t.originalEvent.originalEvent,{type:i}=e||{},n="wheel"===i,r="mousemove"===i,s=n&&!br(t);t._cancelPreventDefault=!0,e&&!1!==t.cancelable&&(!r&&!n||s)&&t.preventDefault()}))},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._$wrapper.appendTo(this._positionController.$container),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(){var{visible:t}=this.option();t&&Mt()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return l(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var t=this.option("visible"),e=pi(Tt.getBody()),i="ios"===dn.real().platform&&Mn.safari,n=this._isAllWindowCovered(),r=e.hasClass("dx-prevent-safari-scrolling");i&&(!r||t&&n&&!this._disposed?!r&&t&&n&&(this._cachedBodyScrollTop=jc.pageYOffset,e.addClass("dx-prevent-safari-scrolling")):(e.removeClass("dx-prevent-safari-scrolling"),jc.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var t=this._positionController.$visualContainer,e=Tt.getDocumentElement(),i=l(t.get(0)),n=i?e.clientWidth:Xt(t),r=i?jc.innerHeight:Qt(t);this._$wrapper.css({width:n,height:r})},_renderDimensions:function(){var t=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",t),maxWidth:this._getOptionValue("maxWidth",t),minHeight:this._getOptionValue("minHeight",t),maxHeight:this._getOptionValue("maxHeight",t),width:this._getOptionValue("width",t),height:this._getOptionValue("height",t)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=Ou(this._$content,null,(t=>this._keyboardHandler(t)))},_keyboardHandler:function(t){var e=t.originalEvent,i=pi(e.target);!i.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(t){t?this.option("visible")&&this._renderVisibilityAnimate(t):this._renderVisibilityAnimate(t)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){var t=this.option();this._contentAlreadyRendered||t.isRenovated||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){Ur.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(),this.option("visible")&&Gc(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(t){this._$content.toggleClass("dx-rtl",t)},_optionChanged:function(t){var e=t.value;if(this._getActionsList().includes(t.name))this._initActions();else switch(t.name){case"animation":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();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(e).done((()=>{this._animateDeferred&&this._animateDeferred.resolveWith(this)}));break;case"container":this._positionController.updateContainer(e),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(e),this._renderWrapper(),this._toggleSafariScrolling();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(t.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(t);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=e;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=t.value;break;default:this.callBase(t)}},toggle:function(t){t=void 0===t?!this.option("visible"):t;var e=new K;if(t===this.option("visible"))return e.resolveWith(this,[t]).promise();var i=new K;return this._animateDeferred=i,this.option("visible",t),i.promise().done((()=>{delete this._animateDeferred,e.resolveWith(this,[this.option("visible")])})),e.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return Ii(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),nu(this._$content)):this.callBase()}});Jc.baseZIndex=t=>Hc=at(t,Hc),Si("dxOverlay",Jc);var Zc=Jc.inherit({_supportedKeys:function(){return v(this.callBase(),{escape:St})},_getDefaultOptions:function(){return v(this.callBase(),{message:Gs.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return dl()},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=pi("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var t=this.option("delay");if(!t)return this.callBase();var e=new K,i=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout((function(){i().done((function(){e.resolve()}))}),t),e.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var t=this.option("message");if(t){var e=pi("<div>").addClass("dx-loadpanel-message").text(t);this._$loadPanelContentWrapper.append(e)}}},_renderLoadIndicator:function(){this._$loadPanelContentWrapper&&this.option("showIndicator")&&(this._$indicator||(this._$indicator=pi("<div>").addClass("dx-loadpanel-indicator").appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,cc,{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(t){switch(t.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(t)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});Si("dxLoadPanel",Zc);var Yc={pullDown:vc,swipeDown:pc,simulated:Cc},Xc=!Mt(),Qc=Tc.inherit(Xc?{finishLoading:St,release:St,refresh:St,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(t){if("onUpdated"!==t.name)return this.callBase.apply(this,arguments)}}:{_getDefaultOptions:function(){return v(this.callBase(),{pullingDownText:Gs.format("dxScrollView-pullingDownText"),pulledDownText:Gs.format("dxScrollView-pulledDownText"),refreshingText:Gs.format("dxScrollView-refreshingText"),reachBottomText:Gs.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===dn.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return dl()},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 t=pi("<div>").addClass("dx-scrollview-content");this._$content.wrapInner(t)},_initTopPocket:function(){var t=this._$topPocket=pi("<div>").addClass("dx-scrollview-top-pocket"),e=this._$pullDown=pi("<div>").addClass("dx-scrollview-pull-down");t.append(e),this._$content.prepend(t)},_initBottomPocket:function(){var t=this._$bottomPocket=pi("<div>").addClass("dx-scrollview-bottom-pocket"),e=this._$reachBottom=pi("<div>").addClass("dx-scrollview-scrollbottom"),i=pi("<div>").addClass("dx-scrollview-scrollbottom-indicator"),n=new cc(pi("<div>")).$element(),r=this._$reachBottomText=pi("<div>").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),e.append(i.append(n)).append(r),t.append(e),this._$content.append(t)},_initLoadPanel:function(){var t=pi("<div>").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),e={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(t,Zc,e)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var t=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,Yc[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(t){var e=this.callBase.apply(this,arguments);return"pullDown"!==t&&"reachBottom"!==t||this._tryRefreshPocketState(),e},_pullDownEnable:function(t){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(t),this._strategy.pullDownEnable(t),this._pullDownEnabled=t)},_reachBottomEnable:function(t){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(t),this._strategy.reachBottomEnable(t),this._reachBottomEnabled=t)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(t){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=t},_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(t){switch(t.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(t)}},content:function(){return Ii(this._$content.children().eq(1))},release:function(t){return void 0!==t&&this.toggleLoading(!t),this._strategy.release()},toggleLoading:function(t){this._reachBottomEnable(t)},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()}});Si("dxScrollView",Qc);var td,ed,id,nd,rd=function(t){return Array.isArray(t)||(t=[t]),p(t,(function(t){var e={selector:r(t)||"string"==typeof t?t:t.getter||t.field||t.selector,desc:!(!t.desc&&"d"!==String(t.dir).charAt(0).toLowerCase())};return t.compare&&(e.compare=t.compare),e}))},sd=(ed={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},(0,Zi.add)((function(){var t=Ot();Tt.listen(t,"beforeunload",(function(){td=!0}))})),function(t,e){return td?"DEVEXTREME_XHR_ERROR_UNLOAD":t.status<400?function(t){return ed[t]||t}(e):t.statusText}),od={count:{seed:0,step:function(t){return 1+t}},sum:{seed:0,step:function(t,e){return t+e}},min:{step:function(t,e){return e<t?e:t}},max:{step:function(t,e){return e>t?e:t}},avg:{seed:[0,0],step:function(t,e){return[t[0]+e,t[1]+1]},finalize:function(t){return t[1]?t[0]/t[1]:NaN}}},ad=(nd=0,{obtain:function(){0===nd&&(id=new K),nd++},release:function(){--nd<1&&id.resolve()},promise:function(){return(0===nd?(new K).resolve():id).promise()},reset:function(){nd=0,id&&id.resolve()}}),hd=function(t,e,i){if(Array.isArray(t)){for(var n,r=p(e,(function(t,e){return e})),s=0;s<r.length;s++)if(!Dt(e[n=r[s]],i[n],0,!1))return!1;return!0}return Dt(e,i,0,!1)},ud=function(){var t=new K;return t.resolve.apply(t,arguments).promise()},ld=function(){var t=new K;return t.reject.apply(t,arguments).promise()};var cd=S(E.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}"}),dd=function(t){null===null||null(t)};function fd(t,e,i,n){var r;if(n){for(var s=0;s<e.length;s++)if(r=fd(t,e[s].items||e[s].collapsedItems||[]||[],i,n-1))return r}else if(Sd(t,e,i)>=0)return e}function vd(t,e,i,n){return n?fd(t,e,i,n)||[]:e}function pd(t,e,i){t._dataByKeyMap&&(t._dataByKeyMap[JSON.stringify(e)]=i,t._dataByKeyMapLength+=i?1:-1)}function md(t,e,i){i=i||new WeakMap;var n=t?Object.create(Object.getPrototypeOf(t)):{};t&&i.set(t,n);var r=se({},t);for(var s in $(n,r,!0,!0),r){var o=r[s],h=null==e?void 0:e[s];a(o)&&!u(o)&&a(h)&&!i.has(o)&&(n[s]=md(o,h,i))}for(var l in n){var c=n[l];a(c)&&i.has(c)&&(n[l]=i.get(c))}return n}function gd(t,e){var i=md(t,e);return $(i,e,!0,!0)}function xd(t){var{keyInfo:e,data:i,changes:r,groupCount:s,useInsertIndex:o,immutable:a,disableCache:h,logError:u}=t,l=!0===a?[...i]:i;return r.forEach((t=>{var i="insert"===t.type?l:vd(e,l,t.key,s);switch(!h&&function(t,e){if(t.key()&&(!e._dataByKeyMap||e._dataByKeyMapLength!==e.length)){for(var i={},n=e.length,r=0;r<n;r++)i[JSON.stringify(t.keyOf(e[r]))]=e[r];e._dataByKeyMap=i,e._dataByKeyMapLength=n}}(e,i),t.type){case"update":_d(e,i,t.key,t.data,!0,a,u);break;case"insert":yd(e,i,t.data,o&&n(t.index)?t.index:-1,!0,u);break;case"remove":wd(e,i,t.key,!0,u)}})),l}function bd(t,e,i){return t?e&&cd.log(i):ld(cd.Error(i))}function _d(t,e,i,r,s,o,a){var h,u=t.key();if(u){if(function(t,e){for(var i="string"==typeof e?e.split():e.slice();i.length;)if(i.shift()in t)return!0;return!1}(r,u)&&!hd(u,i,t.keyOf(r)))return bd(s,a,"E4017");if(!(h=function(t,e){if(t._dataByKeyMap)return t._dataByKeyMap[JSON.stringify(e)]}(e,i))){var l=Sd(t,e,i);if(l<0)return bd(s,a,"E4009");if(h=e[l],!0===o&&n(h)){var c=gd(h,r);return e[l]=c,!s&&ud(c,i)}}}else h=i;if($(h,r,!0),!s)return B().useLegacyStoreResult?ud(i,r):ud(h,i)}function yd(t,e,i,n,r,s){var o,a=t.key(),l=u(i)?v({},i):i;if(a){if(void 0===(o=t.keyOf(l))||"object"==typeof o&&h(o)){if(Array.isArray(a))throw cd.Error("E4007");o=l[a]=String(new H)}else if(void 0!==e[Sd(t,e,o)])return bd(r,s,"E4008")}else o=l;if(n>=0?e.splice(n,0,l):e.push(l),pd(e,o,l),!r)return ud(B().useLegacyStoreResult?i:l,o)}function wd(t,e,i,n,r){var s=Sd(t,e,i);return s>-1&&(e.splice(s,1),pd(e,i,null)),n?s<0?bd(n,r,"E4009"):void 0:ud(i)}function Sd(t,e,i){var n=t.key();if(!function(t,e){return!t._dataByKeyMap||t._dataByKeyMap[JSON.stringify(e)]}(e,i))return-1;for(var r=0,s=e.length;r<s;r++)if(hd(n,t.keyOf(e[r]),i))return r;return-1}var Ed=O.inherit({toArray:function(){var t=[];for(this.reset();this.next();)t.push(this.current());return t},countable:function(){return!1}}),Cd=Ed.inherit({ctor:function(t){this.array=t,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}}),Id=Ed.inherit({ctor:function(t){this.iter=t},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),Dd=Id.inherit({ctor:function(t,e){this.callBase(t),this.index=-1,this.mapper=e},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var t=this.callBase();return t&&this.index++,t}}),Td=function(t,e){return t=ot(t),e=ot(e),null===t&&null!==e?-1:null!==t&&null===e||void 0===t&&void 0!==e?1:void 0!==t&&void 0===e||t<e?-1:t>e?1:0},kd=Ed.inherit({ctor:function(t,e,i,n){t instanceof Dd||(t=new Dd(t,this._wrap)),this.iter=t,this.rules=[{getter:e,desc:i,compare:n}]},thenBy:function(t,e,i){var n=new kd(this.sortedIter||this.iter,t,e,i);return this.sortedIter||(n.rules=this.rules.concat(n.rules)),n},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 t=this;t.sortedIter||(m(t.rules,(function(){this.getter=it(this.getter)})),t.sortedIter=new Dd(new Cd(this.iter.toArray().sort((function(e,i){return t._compare(e,i)}))),t._unwrap))},_wrap:function(t,e){return{index:e,value:t}},_unwrap:function(t){return t.value},_compare:function(t,e){var i=t.index,n=e.index;if((t=t.value)===(e=e.value))return i-n;for(var r=0,s=this.rules.length;r<s;r++){var o=this.rules[r],a=o.getter(t),h=o.getter(e),u=(o.compare||Td)(a,h);if(u)return o.desc?-u:u}return i-n}}),Md=function(){var t=function(t){return n(t)?t.toString():""};function e(t,e,i){return function(n){n=ot(t(n));var r=function(t){return""===t||0===t||!1===t}(e)?n===e:n==e;return i&&(r=!r),r}}return function(i){return r(i)?i:function(t){var e=t[0],i=t[1];return!!Array.isArray(e)||!(!r(e)||!(Array.isArray(i)||r(i)||function(t){return"and"===t||"or"===t}(i)))}(i)?function(t){var e=[],i=!1,n=!1;return m(t,(function(){if(Array.isArray(this)||r(this)){if(e.length>1&&i!==n)throw new cd.Error("E4019");e.push(Md(this)),i=n,n=!0}else n=/^(and|&&|&)$/i.test(this)})),function(t){for(var n=i,r=0;r<e.length;r++)if(e[r](t)!==i){n=!i;break}return n}}(i):function(t){return"!"===t[0]&&Array.isArray(t[1])}(i)?function(t){var e=t[0],i=Md(t[1]);if("!"===e)return function(t){return!i(t)};throw cd.Error("E4003",e)}(i):function(i){i=function(t){return[t[0],t.length<3?"=":String(t[1]).toLowerCase(),t.length<2||t[t.length-1]]}(i);var n=it(i[0]),r=i[1],s=i[2];s=ot(s);var o=(t,e)=>(t=ot(n(t)),(null!=s&&null!=t||s===t)&&e(t,s));switch(r.toLowerCase()){case"=":return e(n,s);case"<>":return e(n,s,!0);case">":return t=>o(t,((t,e)=>t>e));case"<":return t=>o(t,((t,e)=>t<e));case">=":return t=>o(t,((t,e)=>t>=e));case"<=":return t=>o(t,((t,e)=>t<=e));case"startswith":return function(e){return 0===ot(t(n(e))).indexOf(s)};case"endswith":return function(e){var i=ot(t(n(e))),r=t(s);if(i.length<r.length)return!1;var o=i.lastIndexOf(s);return-1!==o&&o===i.length-s.length};case"contains":return function(e){return ot(t(n(e))).indexOf(s)>-1};case"notcontains":return function(e){return-1===ot(t(n(e))).indexOf(s)}}throw cd.Error("E4003",r)}(i)}}(),Ad=Id.inherit({ctor:function(t,e){this.callBase(t),this.criteria=Md(e)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),Od=Ed.inherit({ctor:function(t,e){this.iter=t,this.getter=e},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 t={},e=[],i=this.iter,n=it(this.getter);for(i.reset();i.next();){var r=i.current(),s=n(r);s in t?t[s].push(r):(t[s]=[r],e.push(s))}this.groupedIter=new Cd(p(e,(function(e){return{key:e,items:t[e]}})))}}}),Rd=Id.inherit({ctor:function(t,e){this.callBase(t),this.getter=it(e)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),Fd=Id.inherit({ctor:function(t,e,i){this.callBase(t),this.skip=Math.max(0,e),this.take=Math.max(0,i),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)}}),Pd=function t(e,i){i=i||{},e instanceof Ed||(e=new Cd(e));var n=function(t){var e=i.errorHandler;e&&e(t),dd(t)},s=function(t){var i=(new K).fail(n),r=t.step,s=t.finalize;try{e.reset();for(var o=("seed"in t?t.seed:e.next()?e.current():NaN);e.next();)o=r(o,e.current());i.resolve(s?s(o):o)}catch(t){i.reject(t)}return i.promise()},o=function(t){return s(od[t])},a=function(t){return r(t)||Array.isArray(t)||(t=[].slice.call(arguments)),u(new Rd(e,t))},h=function(t){return a(it(t))};function u(e){return t(e,i)}return{toArray:function(){return e.toArray()},enumerate:function(){var t=(new K).fail(n);try{t.resolve(e.toArray())}catch(e){t.reject(e)}return t.promise()},sortBy:function(t,i,n){return u(new kd(e,t,i,n))},thenBy:function(t,i,n){if(e instanceof kd)return u(e.thenBy(t,i,n));throw cd.Error("E4004")},filter:function(t){return Array.isArray(t)||(t=[].slice.call(arguments)),u(new Ad(e,t))},slice:function(t,i){return void 0===i&&(i=Number.MAX_VALUE),u(new Fd(e,t,i))},select:a,groupBy:function(t){return u(new Od(e,t))},aggregate:function(t,e,i){return s(arguments.length<2?{step:arguments[0]}:{seed:t,step:e,finalize:i})},count:function(){if(e.countable()){var t=(new K).fail(n);try{t.resolve(e.count())}catch(e){t.reject(e)}return t.promise()}return o("count")},sum:function(t){return t?h(t).sum():o("sum")},min:function(t){return t?h(t).min():o("min")},max:function(t){return t?h(t).max():o("max")},avg:function(t){return t?h(t).avg():o("avg")}}};function Bd(t,e){return t=t.groupBy(e[0].selector),e.length>1&&(t=t.select((function(t){return v({},t,{items:Bd(Pd(t.items),e.slice(1)).toArray()})}))),t}function Hd(t,e){var i=[];return m(t,(function(t,n){Et(e,(function(t){return n.selector===t.selector})).length<1&&i.push(n)})),i.concat(e)}const Ld=function(t,e,i){var n=(e=e||{}).filter;if(n&&(t=t.filter(n)),i)return t;var r=e.sort,s=e.select,o=e.group,a=e.skip,h=e.take;return o&&((o=rd(o)).keepInitialKeyOrder=!!e.group.keepInitialKeyOrder),(r||o)&&(r=rd(r||[]),o&&!o.keepInitialKeyOrder&&(r=Hd(o,r)),m(r,(function(e){t=t[e?"thenBy":"sortBy"](this.selector,this.desc,this.compare)}))),s&&(t=t.select(s)),o&&(t=Bd(t,o)),(h||a)&&(t=t.slice(a||0,h)),t};var zd,Gd=O.abstract,Nd=Ld,Wd={},Vd=O.inherit({ctor:function(t){var e=this;t=t||{},this._eventsStrategy=new Xi(this),m(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(i,n){n in t&&e.on(n.slice(2).toLowerCase(),t[n])})),this._key=t.key,this._errorHandler=t.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(t){return this._keyGetter||(this._keyGetter=it(this.key())),this._keyGetter(t)},_requireKey:function(){if(!this.key())throw cd.Error("E4005")},load:function(t){var e=this;return this._eventsStrategy.fireEvent("loading",[t=t||{}]),this._withLock(this._loadImpl(t)).done((function(i){e._eventsStrategy.fireEvent("loaded",[i,t])}))},_loadImpl:function(t){return Nd(this.createQuery(t),t).enumerate()},_withLock:function(t){var e=new K;return t.done((function(){var t=this,i=arguments;ad.promise().done((function(){e.resolveWith(t,i)}))})).fail((function(){e.rejectWith(this,arguments)})),e},createQuery:Gd,totalCount:function(t){return this._totalCountImpl(t)},_totalCountImpl:function(t){return Nd(this.createQuery(t),t,!0).count()},byKey:function(t,e){return this._addFailHandlers(this._withLock(this._byKeyImpl(t,e)))},_byKeyImpl:Gd,insert:function(t){var e=this;return e._eventsStrategy.fireEvent("modifying"),e._eventsStrategy.fireEvent("inserting",[t]),e._addFailHandlers(e._insertImpl(t).done((function(t,i){e._eventsStrategy.fireEvent("inserted",[t,i]),e._eventsStrategy.fireEvent("modified")})))},_insertImpl:Gd,update:function(t,e){var i=this;return i._eventsStrategy.fireEvent("modifying"),i._eventsStrategy.fireEvent("updating",[t,e]),i._addFailHandlers(i._updateImpl(t,e).done((function(){i._eventsStrategy.fireEvent("updated",[t,e]),i._eventsStrategy.fireEvent("modified")})))},_updateImpl:Gd,push:function(t){var e={changes:t,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[e]),U(...e.waitFor).done((()=>{this._pushImpl(t),this._eventsStrategy.fireEvent("push",[t])}))},_pushImpl:St,remove:function(t){var e=this;return e._eventsStrategy.fireEvent("modifying"),e._eventsStrategy.fireEvent("removing",[t]),e._addFailHandlers(e._removeImpl(t).done((function(t){e._eventsStrategy.fireEvent("removed",[t]),e._eventsStrategy.fireEvent("modified")})))},_removeImpl:Gd,_addFailHandlers:function(t){return t.fail(this._errorHandler).fail(dd)},on(t,e){return this._eventsStrategy.on(t,e),this},off(t,e){return this._eventsStrategy.off(t,e),this}});function Kd(t){return t&&r(t.then)}function Ud(t){return(new K).resolve(t).promise()}function jd(t,e){if(!r(e))throw cd.Error("E4011",t)}function qd(t){throw cd.Error("E4012",t)}function $d(t){function e(t){var e=t[0];return e&&e.getResponseHeader?sd(e,t[1]):null}return function(i){var n;"DEVEXTREME_XHR_ERROR_UNLOAD"!==(n=i instanceof Error?i:new Error(e(arguments)||i&&String(i)||"Unknown error")).message&&t.reject(n)}}function Jd(t,e){var i,n=t._loadFunc;return jd("load",n),i=n.apply(t,[e]),Array.isArray(i)?i=Ud(i):null==i?i=Ud([]):Kd(i)||qd("load"),W(i)}function Zd(t,e,i,n){if(e.__rawData)n(e.__rawData);else{var r=e.__rawDataPromise||Jd(e,i);e._cacheRawData&&(e.__rawDataPromise=r),r.always((function(){delete e.__rawDataPromise})).done((function(t){e._cacheRawData&&(e.__rawData=t),n(t)})).fail($d(t))}}function Yd(t,e,i,n){var r={};"userData"in(i=i||{})&&(r.userData=i.userData),Zd(t,e,r,(function(r){var s,o,a,h,u=Pd(r,{errorHandler:e._errorHandler}),l=[];n||((s=Ld(u,i))===u?a=r.slice(0):l.push(s.enumerate().done((function(t){a=t})))),(i.requireTotalCount||n)&&((o=Ld(u,i,!0))===u?h=r.length:l.push(o.count().done((function(t){h=t})))),U.apply(pi,l).done((function(){n?t.resolve(h):i.requireTotalCount?t.resolve(a,{totalCount:h}):t.resolve(a)})).fail((function(e){t.reject(e)}))}))}Vd.create=function(t,e){if(!(t in Wd))throw cd.Error("E4020",t);return new Wd[t](e)},Vd.registerClass=function(t,e){return e&&(Wd[e]=t),t},Vd.inherit=(zd=Vd.inherit,function(t,e){var i=zd.apply(this,[t]);return Vd.registerClass(i,e),i});var Xd=Vd.inherit({ctor:function(t){this.callBase(t=t||{}),this._useDefaultSearch=!!t.useDefaultSearch||"raw"===t.loadMode,this._loadMode=t.loadMode,this._cacheRawData=!1!==t.cacheRawData,this._loadFunc=t.load,this._totalCountFunc=t.totalCount,this._byKeyFunc=t.byKey,this._insertFunc=t.insert,this._updateFunc=t.update,this._removeFunc=t.remove},createQuery:function(){throw cd.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(t){var e=new K;return"raw"!==this._loadMode||this._totalCountFunc?(function(t,e){var i,n=t._totalCountFunc;if(!r(n))throw cd.Error("E4021");return Kd(i=n.apply(t,[e]))||(i=Number(i),isFinite(i)||qd("totalCount"),i=Ud(i)),W(i)}(this,t).done((function(t){e.resolve(Number(t))})).fail($d(e)),e=this._addFailHandlers(e)):Yd(e,this,t,!0),e.promise()},_pushImpl:function(t){this.__rawData&&xd({keyInfo:this,data:this.__rawData,changes:t})},_loadImpl:function(t){var e=new K;return"raw"===this._loadMode?Yd(e,this,t,!1):(Jd(this,t).done((function(t,i){e.resolve(t,i)})).fail($d(e)),e=this._addFailHandlers(e)),e.promise()},_byKeyImpl:function(t,e){var i=new K;return this._byKeyViaLoad()?(this._requireKey(),function(t,e,i){Zd(t,e,{},(function(n){for(var r,s=e.key(),o=0,a=n.length;o<a;o++)if(r=n[o],hd(s,e.keyOf(n[o]),i))return void t.resolve(r);t.reject(cd.Error("E4009"))}))}(i,this,t)):function(t,e,i){var n,r=t._byKeyFunc;return jd("byKey",r),Kd(n=r.apply(t,[e,i]))||(n=Ud(n)),W(n)}(this,t,e).done((function(t){i.resolve(t)})).fail($d(i)),i.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(t){var e,i=this,n=i._insertFunc,r=new K;return jd("insert",n),Kd(e=n.apply(i,[t]))||(e=Ud(e)),W(e).done((function(e){B().useLegacyStoreResult?r.resolve(t,e):r.resolve(e||t,i.keyOf(e))})).fail($d(r)),r.promise()},_updateImpl:function(t,e){var i,n=this._updateFunc,r=new K;return jd("update",n),Kd(i=n.apply(this,[t,e]))||(i=Ud(i)),W(i).done((function(i){B().useLegacyStoreResult?r.resolve(t,e):r.resolve(i||e,t)})).fail($d(r)),r.promise()},_removeImpl:function(t){var e,i=this._removeFunc,n=new K;return jd("remove",i),Kd(e=i.apply(this,[t]))||(e=Ud()),W(e).done((function(){n.resolve(t)})).fail($d(n)),n.promise()}}),Qd=Ot();const tf=R({getXhr:function(){return new Qd.XMLHttpRequest}});var ef=Ot(),nf=function(t){var e=Tt.createElement("script");for(var i in t)e[i]=t[i];return e},rf=function(t){t.parentNode.removeChild(t)},sf=function(t){return Tt.getHead().appendChild(t)},of=function(t){var e=nf({text:t});sf(e),rf(e)};function af(t){return(t.method||"GET").toUpperCase()}var hf=function(t){var e=t.headers||{};return e["Content-Type"]=e["Content-Type"]||function(t){var e;return t.data&&!t.upload&&"GET"!==af(t)&&(e="application/x-www-form-urlencoded;charset=utf-8"),t.contentType||e}(t),e.Accept=e.Accept||function(t){var e=t.dataType||"*",i="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",n={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:i,script:i};return function(t,e){for(var i in t=t||{},e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}(n,t.accepts),n[e]?n[e]+("*"!==e?", */*; q=0.01":""):n["*"]}(t),t.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e};const uf=R({sendRequest:function(t){var e,i=tf.getXhr(),r=new K,s=r.promise(),o=!n(t.async)||t.async,a=t.dataType,h=t.timeout||0;t.crossDomain=function(t){if(!Mt())return!0;var e=!1,i=Tt.createElement("a"),n=Tt.createElement("a");i.href=ef.location.href;try{n.href=t,n.href=n.href,e=i.protocol+"//"+i.host!=n.protocol+"//"+n.host}catch(t){e=!0}return e}(t.url);var u="jsonp"===a||"script"===a;void 0===t.cache&&(t.cache=!u);var l=function(t){if("jsonp"===t.dataType){var e=Math.random().toString().replace(/\D/g,""),i=t.jsonpCallback||"dxCallback"+Date.now()+"_"+e,n=t.jsonp||"callback";return t.data=t.data||{},t.data[n]=i,i}}(t),c=hf(t),d=function(t,e){var i=t.data,n="string"==typeof i,r=t.url||ef.location.href;return n||t.cache||((i=i||{})._=Date.now()),i&&!t.upload&&(n||(i=function(t){var e=[];for(var i in t){var n=t[i];void 0!==n&&(null===n&&(n=""),"function"==typeof n&&(n=n()),e.push(encodeURIComponent(i)+"="+encodeURIComponent(n)))}return e.join("&")}(i)),"GET"===af(t)?(""!==i&&(r+=(r.indexOf("?")>-1?"&":"?")+i),i=null):e["Content-Type"]&&e["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(i=i.replace(/%20/g,"+"))),{url:r,parameters:i}}(t,c),f=d.url,v=d.parameters;if(l&&(ef[l]=function(t){r.resolve(t,"success",i)}),t.crossDomain&&u)return function(t){var e=nf({src:t});return new Promise((function(t,i){var n={load:t,error:i},r=function(t){n[t.type](),rf(e)};for(var s in n)Tt.listen(e,s,r);sf(e)}))}(f).then((function(){"jsonp"!==a&&r.resolve(null,"success",i)}),(function(){r.reject(i,"error")})),s;if(t.crossDomain&&!("withCredentials"in i))return r.reject(i,"error"),s;if(i.open(af(t),f,o,t.username,t.password),o&&(i.timeout=h,e=function(t,e){return t&&setTimeout((function(){e.customStatus="timeout",e.abort()}),t)}(h,i)),i.onreadystatechange=function(){var t;4===i.readyState&&(clearTimeout(e),200<=(t=i.status)&&t<300?function(t){return 204!==t}(i.status)?function(t,e,i){var n=function(t){return t.responseType&&"text"!==t.responseType||"string"!=typeof t.responseText?t.response:t.responseText}(e);switch(i){case"jsonp":of(n);break;case"script":of(n),t.resolve(n,"success",e);break;case"json":try{t.resolve(JSON.parse(n),"success",e)}catch(i){t.reject(e,"parsererror",i)}break;default:t.resolve(n,"success",e)}}(r,i,a):r.resolve(null,"nocontent",i):r.reject(i,i.customStatus||"error"))},t.upload&&(i.upload.onprogress=t.upload.onprogress,i.upload.onloadstart=t.upload.onloadstart,i.upload.onabort=t.upload.onabort),t.xhrFields)for(var p in t.xhrFields)i[p]=t.xhrFields[p];for(var m in"arraybuffer"===t.responseType&&(i.responseType=t.responseType),c)Object.prototype.hasOwnProperty.call(c,m)&&n(c[m])&&i.setRequestHeader(m,c[m]);return t.beforeSend&&t.beforeSend(i),i.send(v),s.abort=function(){i.abort()},s}}),lf={};var cf={array:Pd,remote:function t(e,i,n){n=n||[],i=i||{};var s=function(t,e){return{name:t,args:e}},o=function(t){var o,a,h,u,l,c,d,f=new K,v=function(t){var e=i.errorHandler;e&&e(t),dd(t),f.reject(t)};function p(t){switch(t.name){case"sortBy":return l=[t.args],!0;case"thenBy":if(!l)throw cd.Error("E4004");return l.push(t.args),!0}return!1}try{r(o=i.adapter)||(o=lf[o]),a=o(i),h=[].concat(n).concat(t);var g=a.optimize;for(g&&g(h);h.length;){if(!p(u=h[0])){if(l){h.unshift(s("multiSort",[l])),l=null;continue}if("enumerate"!==String(u.name)&&(!a[u.name]||!1===a[u.name].apply(a,u.args)))break}h.shift()}d=[],(c=h[0])&&"multiSort"===c.name&&(h.shift(),m(c.args[0],(function(){d.push(s(d.length?"thenBy":"sortBy",this))}))),h=d.concat(h),a.exec(e).done((function(t,e){if(h.length){var n=Pd(t,{errorHandler:i.errorHandler});m(h,(function(){n=n[this.name].apply(n,this.args)})),n.done(f.resolve).fail(f.reject)}else f.resolve(t,e)})).fail(v)}catch(t){v(t)}return f.promise()},a={};return m(["sortBy","thenBy","filter","slice","select","groupBy"],(function(){var r=String(this);a[r]=function(){return t(e,i,n.concat(s(r,arguments)))}})),m(["count","min","max","sum","avg","aggregate","enumerate"],(function(){var t=String(this);a[t]=function(){return o.call(this,s(t,arguments))}})),a}},df=function(){var t=Array.isArray(arguments[0])?"array":"remote";return cf[t].apply(this,arguments)},ff=Vd.inherit({ctor:function(t){t=Array.isArray(t)?{data:t}:t||{},this.callBase(t);var e=t.data;if(e&&!Array.isArray(e))throw cd.Error("E4006");this._array=e||[]},createQuery:function(){return df(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(t){var e=Sd(this,this._array,t);return-1===e?ld(cd.Error("E4009")):ud(this._array[e])},_insertImpl:function(t){return yd(this,this._array,t)},_pushImpl:function(t){xd({keyInfo:this,data:this._array,changes:t})},_updateImpl:function(t,e){return _d(this,this._array,t,e)},_removeImpl:function(t){return wd(this,this._array,t)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array"),vf=["items"],pf=t=>"pending"===t.state(),mf=t=>{switch(t.length){case 0:return;case 1:return t[0]}return[].slice.call(t)},gf=(t,e,i)=>Array.isArray(t)?e?((t,e,i)=>p(t,(t=>se({},Vu(t,vf),{items:gf(t.items,e-1,i)}))))(t,e,i):p(t,i):t,xf=(t,e)=>{var i;return null!==(i=t)&&void 0!==i&&i.data&&(e=t,t=t.data),Array.isArray(t)||(t=[t]),{data:t,extra:e}},bf=t=>{var e={};return m(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],(function(){e[this]=t[this],delete t[this]})),new Xd(e)},_f=(t,e)=>new Xd({load:()=>uf.sendRequest({url:t,dataType:"json"}),loadMode:null==e?void 0:e.fromUrlLoadMode}),yf=(t,e)=>{var i,n,r;return"string"==typeof t&&(t={paginate:!1,store:_f(t,e)}),void 0===t&&(t=[]),void 0===(t=Array.isArray(t)||t instanceof Vd?{store:t}:v({},t)).store&&(t.store=[]),i=t.store,"load"in t?i=bf(t):Array.isArray(i)?i=new ff(i):u(i)&&(r=(n=v({},i)).type,delete n.type,i=Vd.create(r,n)),t.store=i,t};class wf{constructor(){this._counter=-1,this._deferreds={}}add(t){return this._counter++,this._deferreds[this._counter]=t,this._counter}remove(t){return delete this._deferreds[t]}cancel(t){return t in this._deferreds&&(this._deferreds[t].reject("canceled"),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}var Sf=O.inherit({ctor(t){var e,i,n,s;if(t=yf(t),this._eventsStrategy=new Xi(this,{syncStrategy:!0}),this._store=t.store,this._changedTime=0,0!==t.pushAggregationTimeout){var o,a,h=(i=t=>{o.resolve(),U(...a).done((()=>this._onPush(t))),a=void 0,o=void 0},n=[],s=function(t,e){var i,n;return function(){return n=arguments,i||(i=setTimeout((()=>{i=void 0,n&&t.call(this,n)}),r(e)?e():e)),i}}((function(){i.call(this,n),n=[]}),void 0===t.pushAggregationTimeout?()=>5*this._changedTime:t.pushAggregationTimeout),function(t){return Array.isArray(t)&&n.push(...t),s.call(this,n)});this._onPushHandler=t=>{this._aggregationTimeoutId=h(t.changes),o||(o=new K),a=t.waitFor,t.waitFor.push(o.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=t=>this._onPush(t),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(t),this._mapFunc=t.map,this._postProcessFunc=t.postProcess,this._pageIndex=void 0!==t.pageIndex?t.pageIndex:0,this._pageSize=void 0!==t.pageSize?t.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in t?t.searchValue:null,this._searchOperation=t.searchOperation||"contains",this._searchExpr=t.searchExpr,this._paginate=t.paginate,this._reshapeOnPush=null!==(e=t.reshapeOnPush)&&void 0!==e&&e,m(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],((e,i)=>{i in t&&this.on(i.substr(2,1).toLowerCase()+i.substr(3),t[i])})),this._operationManager=new wf,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,n(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var t;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(t=this._delayedLoadTask)||void 0===t||t.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(t){var e={},i=["sort","filter","select","group","requireTotalCount"],n=this._store._customLoadOptions();return n&&(i=i.concat(n)),m(i,(function(){e[this]=t[this]})),e},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(t){if(!o(t))return this._pageIndex;this._pageIndex=t,this._isLastPage=!this._paginate},paginate(t){if(!i(t))return this._paginate;this._paginate!==t&&(this._paginate=t,this.pageIndex(0))},pageSize(t){if(!o(t))return this._pageSize;this._pageSize=t},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(t){return e=>{var i=mf(e);if(void 0===i)return this._storeLoadOptions[t];this._storeLoadOptions[t]=i}},sort(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.generateStoreLoadOptionAccessor("sort")(e)},filter(){var t=mf(arguments);if(void 0===t)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=t,this.pageIndex(0)},group(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.generateStoreLoadOptionAccessor("group")(e)},select(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.generateStoreLoadOptionAccessor("select")(e)},requireTotalCount(t){if(!i(t))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=t},searchValue(t){if(arguments.length<1)return this._searchValue;this._searchValue=t,this.pageIndex(0)},searchOperation(t){if(!s(t))return this._searchOperation;this._searchOperation=t,this.pageIndex(0)},searchExpr(t){var e=arguments.length;if(0===e)return this._searchExpr;e>1&&(t=[].slice.call(arguments)),this._searchExpr=t,this.pageIndex(0)},store(){return this._store},key(){var t;return null===(t=this._store)||void 0===t?void 0:t.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>function(){var t=[],e=!1;function i(){for(;t.length;){e=!0;var n=t.shift()();if(void 0!==n){if(n.then)return void U(n).always(i);throw E.Error("E0015")}}e=!1}return{add:function(n){t.push(n),e||i()},busy:function(){return e}}}(),_changeLoadingCount(t){var e=this.isLoading();this._loadingCount+=t;var i=this.isLoading();e^i&&this._eventsStrategy.fireEvent("loadingChanged",[i])},_scheduleLoadCallbacks(t){this.beginLoading(),t.always((()=>{this.endLoading()}))},_scheduleFailCallbacks(t){var e=this;t.fail((function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];"canceled"!==i[0]&&e._eventsStrategy.fireEvent("loadError",i)}))},_fireChanged(t){var e=new Date;this._eventsStrategy.fireEvent("changed",t),this._changedTime=new Date-e},_scheduleChangedCallbacks(t){t.done((()=>this._fireChanged()))},loadSingle(t,e){var i=new K,r=this.key(),s=this._store,o=this._createStoreLoadOptions();return this._scheduleFailCallbacks(i),arguments.length<2&&(e=t,t=r),delete o.skip,delete o.group,delete o.refresh,delete o.pageIndex,delete o.searchString,(t===r||s instanceof Xd&&!s._byKeyViaLoad()?s.byKey(e,o):(o.take=1,o.filter=o.filter?[o.filter,[t,e]]:[t,e],s.load(o))).fail(i.reject).done((t=>{var e=Array.isArray(t)&&!t.length;!n(t)||e?i.reject(new cd.Error("E4009")):(Array.isArray(t)||(t=[t]),i.resolve(this._applyMapFunction(t)[0]))})),i.promise()},load(){var t=new K,e=()=>{if(!this._disposed&&pf(t))return this._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((()=>("number"==typeof i.delay?this._delayedLoadTask=ht(e,i.delay):e(),t.promise()))),t.promise({operationId:i.operationId})},_onPush(t){if(this._reshapeOnPush)this.load();else{var e={changes:t};this._eventsStrategy.fireEvent("changing",[e]);var i=this.group(),n=this.items(),r=0,s=this.paginate()||i?t.filter((t=>"update"===t.type)):t;i&&(r=Array.isArray(i)?i.length:1),this._mapFunc&&s.forEach((t=>{"insert"===t.type&&(t.data=this._mapFunc(t.data))})),e.postProcessChanges&&(s=e.postProcessChanges(s)),xd({keyInfo:this.store(),data:n,changes:s,groupCount:r,useInsertIndex:!0}),this._fireChanged([{changes:t}])}},_createLoadOperation(t){var e=this._operationManager.add(t),i=this._createStoreLoadOptions();return t.always((()=>this._operationManager.remove(e))),{operationId:e,storeLoadOptions:i}},reload(){var t=this.store();return t instanceof Xd&&t.clearRawDataCache(),this._init(),this.load()},cancel(t){return this._operationManager.cancel(t)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(t){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(t):(t.searchOperation=this._searchOperation,t.searchValue=this._searchValue,t.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var t=v({},this._storeLoadOptions);return this._addSearchOptions(t),this._paginate&&this._pageSize&&(t.skip=this._pageIndex*this._pageSize,t.take=this._pageSize),t.userData=this._userData,t},_addSearchFilter(t){var e=this._searchValue,i=this._searchOperation,n=this._searchExpr,r=[];e&&(n||(n="this"),Array.isArray(n)||(n=[n]),m(n,(function(t,n){r.length&&r.push("or"),r.push([n,i,e])})),t.filter=t.filter?[r,t.filter]:r)},_loadFromStore(t,e){var i=(i,n)=>{if(!this._disposed&&pf(e)){var r=v(xf(i,n),t);this._eventsStrategy.fireEvent("customizeLoadResult",[r]),U(r.data).done((t=>{r.data=t,this._processStoreLoadResult(r,e)})).fail(e.reject)}};return t.data?(new K).resolve(t.data).done(i):this.store().load(t.storeLoadOptions).done(i).fail(e.reject)},_processStoreLoadResult(t,e){var i=t.data,n=t.extra,r=t.storeLoadOptions,s=()=>(this._isLoaded=!0,this._totalCount=isFinite(n.totalCount)?n.totalCount:-1,e.resolve(i,n));this._disposed||(i=this._applyPostProcessFunction(this._applyMapFunction(i)),a(n)||(n={}),this._items=i,(!i.length||!this._paginate||this._pageSize&&i.length<this._pageSize)&&(this._isLastPage=!0),r.requireTotalCount&&!isFinite(n.totalCount)?(()=>{this.store().totalCount(r).done((function(t){n.totalCount=t,s()})).fail(e.reject)})():s())},_applyMapFunction(t){return this._mapFunc?(e=t,i=this._mapFunc,r=(n=this.group())?rd(n).length:0,gf(e,r,i)):t;var e,i,n,r},_applyPostProcessFunction(t){return this._postProcessFunc?this._postProcessFunc(t):t},on(t,e){return this._eventsStrategy.on(t,e),this},off(t,e){return this._eventsStrategy.off(t,e),this}}),Ef={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var t,e,i="_getSpecificDataSourceOption"in this?this._getSpecificDataSourceOption():this.option("dataSource");this._disposeDataSource(),i&&(i instanceof Sf?(this._isSharedDataSource=!0,this._dataSource=i):(t="_dataSourceOptions"in this?this._dataSourceOptions():{},e=this._dataSourceType?this._dataSourceType():Sf,i=yf(i,{fromUrlLoadMode:"_dataSourceFromUrlLoadMode"in this&&this._dataSourceFromUrlLoadMode()}),this._dataSource=new e(v(!0,{},t,i))),"_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(t){this._ready&&this._ready(!t)}.bind(this))},_addDataSourceChangeHandler:function(){var t=this._dataSource;this._proxiedDataSourceChangedHandler=function(e){this._dataSourceChangedHandler(t.items(),e)}.bind(this),t.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 t=this._dataSource;t.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():t.load()}},_loadSingle:function(t,e){return t="this"===t?this._dataSource.key()||"this":t,this._dataSource.loadSingle(t,e)},_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}},Cf=Math.abs;xs({emitter:ps.inherit({start:function(t){this._startEventData=fr(t),this._startTimer(t)},_startTimer:function(t){var e="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(t),this._fireEvent("dxhold",t,{target:t.target}),this._forgetAccept()}.bind(this),e)},move:function(t){this._touchWasMoved(t)&&this._cancel(t)},_touchWasMoved:function(t){var e=vr(this._startEventData,fr(t));return Cf(e.x)>5||Cf(e.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}}),bubble:!0,events:["dxhold"]});var If=xr("contextmenu","dxContexMenu"),Df=xr("dxhold","dxContexMenu"),Tf=O.inherit({setup:function(t){var e=pi(t);we.on(e,If,this._contextMenuHandler.bind(this)),(bn||dn.isSimulator())&&we.on(e,Df,this._holdHandler.bind(this))},_holdHandler:function(t){lr(t)&&!dn.isSimulator()||this._fireContextMenu(t)},_contextMenuHandler:function(t){this._fireContextMenu(t)},_fireContextMenu:function(t){return mr({type:"dxcontextmenu",originalEvent:t})},teardown:function(t){we.off(t,".dxContexMenu")}});gi("dxcontextmenu",new Tf);class kf extends su{constructor(t,e,i,n){super(),this._render=t,this._fields=e,this._fieldsMap=n||{},this._watchMethod=i}_renderCore(t){var i=pi(t.container),n=function(t,i,n,r,s){var o,a=((t,e,i)=>e((()=>t),i))(t,i,(function(t){o&&o(),function(t){return-1===["object","array","function"].indexOf(e(t))}(t)?s(t):o=function(t,e,i,n,r){var s={},o=i.slice(),a=i.map((function(i){var a=n[i];return e(a?()=>a(t):()=>t[i],(function(t){if(s[i]=t,o.length){var e=o.indexOf(i);e>=0&&o.splice(e,1)}o.length||r(s)}))}));return function(){a.forEach((t=>t()))}}(t,i,n,r,s)}));return function(){o&&o(),a&&a()}}(t.model,this._watchMethod,this._fields,this._fieldsMap,(e=>{i.empty(),this._render(i,e,t.model)}));return we.on(i,"dxremove",n),i.contents()}}var Mf="dx-item",Af=/^([^.]+\[\d+\]\.)+([\w.]+)$/,Of=sc.inherit({_activeStateUnit:"."+Mf,_supportedKeys:function(){var t=function(t){var e=pi(this.option("focusedElement"));e.length&&this._itemClickHandler(v({},t,{target:e.get(0),currentTarget:e.get(0)}))},e=function(t,e){br(e)||(e.preventDefault(),e.stopPropagation(),this._moveFocus(t,e))};return v(this.callBase(),{space:function(e){e.preventDefault(),t.call(this,e)},enter:t,leftArrow:e.bind(this,"left"),rightArrow:e.bind(this,"right"),upArrow:e.bind(this,"up"),downArrow:e.bind(this,"down"),pageUp:e.bind(this,"up"),pageDown:e.bind(this,"down"),home:e.bind(this,"first"),end:e.bind(this,"last")})},_getDefaultOptions:function(){return v(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:Gs.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(t){return t?t.disabled:void 0},visibleExpr:function(t){return t?t.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var t=this.option("displayExpr");this._displayGetter=t?it(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var t=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new kf(function(e,i){u(i)?this._prepareDefaultItemTemplate(i,e):(t&&r(t.text)&&(i=t.text(i)),e.text(String(at(i,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),t)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(t,e){n(t.text)&&e.text(t.text),n(t.html)&&e.html(t.html)},_initItemsFromMarkup:function(){var t=mu(this.$element(),"dxItem");if(t.length&&!this.option("items").length){var e=t.map((t=>{var{element:e,options:i}=t;return/\S/.test(e.innerHTML)&&!i.template?i.template=this._prepareItemTemplate(e):pi(e).remove(),i}));this.option("items",e)}},_prepareItemTemplate:function(t){var e="tmpl-"+new H,i=pi(t).detach().clone().removeAttr("data-options").addClass("dx-template-wrapper");return this._saveTemplate(e,i),e},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(t){if(this.callBase.apply(this,arguments),this._isFocusTarget(t.target)){var e=pi(this.option("focusedElement"));if(e.length)this._setFocusedItem(e);else{var i=this._getActiveItem();i.length&&this.option("focusedElement",Ii(i))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var t=pi(this.option("focusedElement"));this._updateFocusedItemState(t,!1)},_getActiveItem:function(t){var e=pi(this.option("focusedElement"));if(e.length)return e;var i=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,n=this._getActiveElement();return i<0&&(i=t?n.length-1:0),n.eq(i)},_moveFocus:function(t){var e,i=this._getAvailableItems();switch(t){case"pageup":case"up":e=this._prevItem(i);break;case"pagedown":case"down":e=this._nextItem(i);break;case"right":e=this.option("rtlEnabled")?this._prevItem(i):this._nextItem(i);break;case"left":e=this.option("rtlEnabled")?this._nextItem(i):this._prevItem(i);break;case"first":e=i.first();break;case"last":e=i.last();break;default:return!1}0!==e.length&&this.option("focusedElement",Ii(e))},_getVisibleItems:function(t){return(t=t||this._itemElements()).filter(":visible")},_getAvailableItems:function(t){return this._getVisibleItems(t).not(".dx-state-disabled")},_prevItem:function(t){var e=this._getActiveItem(),i=t.index(e),n=t.last(),r=pi(t[i-1]),s=this.option("loopItemFocus");return 0===r.length&&s&&(r=n),r},_nextItem:function(t){var e=this._getActiveItem(!0),i=t.index(e),n=t.first(),r=pi(t[i+1]),s=this.option("loopItemFocus");return 0===r.length&&s&&(r=n),r},_selectFocusedItem:function(t){this.selectItem(t)},_updateFocusedItemState:function(t,e,i){var n=pi(t);n.length&&(this._refreshActiveDescendant(),this._refreshItemId(n,i),this._toggleFocusClass(e,n)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(t){this.setAria("activedescendant",n(this.option("focusedElement"))?this.getFocusedItemId():null,t)},_refreshItemId:function(t,e){!e&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),t):this.setAria("id",null,t)},_setFocusedItem:function(t){t&&t.length&&(this._updateFocusedItemState(t,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(t))},_findItemElementByItem:function(t){var e=pi(),i=this;return this.itemElements().each((function(){var n=pi(this);if(n.data(i._itemDataKey())===t)return e=n,!1})),e},_getIndexByItem:function(t){return this.option("items").indexOf(t)},_itemOptionChanged:function(t,e,i){var n=this._findItemElementByItem(t);n.length&&(this.constructor.ItemClass.getInstance(n).setDataField(e,i)||this._refreshItem(n,t),"disabled"===e&&i&&this._resetItemFocus(n))},_resetItemFocus(t){t.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(t){var e=this._getItemData(t),i=t.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+i,e,null,t)},_updateParentActiveDescendant:St,_optionChanged:function(t){if("items"===t.name){var e=t.fullName.match(Af);if(e&&e.length){var i=e[e.length-1],n=t.fullName.replace("."+i,""),r=this.option(n);return void this._itemOptionChanged(r,i,t.value,t.previousValue)}}switch(t.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":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._updateFocusedItemState(t.previousValue,!1,!0),this._setFocusedItem(pi(t.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(t)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var t=this._dataSource;return this._expectNextPageLoading(),t.pageIndex(1+t.pageIndex()),t.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(t){var e=this.option("items");this._initialized&&e&&this._shouldAppendItems()?(this._renderedItemsCount=e.length,this._isLastPage()&&-1===this._startIndexForAppendedItems||(this.option().items=e.concat(t.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",t.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(){pi(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 Mf},_itemContentClass:function(){return this._itemClass()+"-content"},_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:pt((function(){this._renderContentImpl()})),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var t=this._itemSelector(),e=xr("dxclick",this.NAME),i=xr(vs.down,this.NAME),n=this,r=new Jh((function(t){n._itemPointerDownHandler(t.event)}));we.off(this._itemContainer(),e,t),we.off(this._itemContainer(),i,t),we.on(this._itemContainer(),e,t,function(t){this._itemClickHandler(t)}.bind(this)),we.on(this._itemContainer(),i,t,(function(t){r.execute({element:pi(t.target),event:t})}))},_itemClickHandler:function(t,e,i){this._itemDXEventHandler(t,"onItemClick",e,i)},_itemPointerDownHandler:function(t){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!t.isDefaultPrevented()){var e=pi(t.target),i=e.closest(this._itemElements()),n=this._closestFocusable(e);i.length&&this._isFocusTarget(null==n?void 0:n.get(0))&&this.option("focusedElement",Ii(i))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(t){if(t.is(er))return t;for(t=t.parent();t.length&&!Tt.isDocument(t.get(0));){if(t.is(er))return t;t=t.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var t=this._itemContainer(),e=this._itemSelector(),i=xr("dxhold",this.NAME);we.off(t,i,e),we.on(t,i,e,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(t){this._shouldFireHoldEvent()?this._itemDXEventHandler(t,"onItemHold"):t.cancel=!0},_attachContextMenuEvent:function(){var t=this._itemContainer(),e=this._itemSelector(),i=xr("dxcontextmenu",this.NAME);we.off(t,i,e),we.on(t,i,e,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(t){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(t,"onItemContextMenu"):t.cancel=!0},_renderContentImpl:function(){var t=this.option("items")||[];this._renderItems(this._renderedItemsCount?t.slice(this._renderedItemsCount):t)},_renderItems:function(t){t.length&&m(t,function(t,e){this._renderItem(this._renderedItemsCount+t,e)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(t,e,i,n){var r,s=null!==(r=null==t?void 0:t.item)&&void 0!==r?r:t;i=i||this._itemContainer();var o=this._renderItemFrame(s,e,i,n);this._setElementData(o,e,s),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(e,o);var a=this._getItemContent(o),h=this._renderItemContent({index:s,itemData:e,container:Ii(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),u=this;return U(h).done((function(i){u._postprocessRenderItem({itemElement:o,itemContent:i,itemData:e,itemIndex:s}),u._executeItemRenderAction(t,e,Ii(o))})),o},_getItemContent:function(t){var e=t.find(".dx-item-content-placeholder");return e.removeClass("dx-item-content-placeholder"),e},_attachItemClickEvent:function(t,e){t&&t.onClick&&we.on(e,"dxclick",function(i){this._itemEventHandlerByHandler(e,t.onClick,{event:i})}.bind(this))},_renderItemContent:function(t){var e=this._getItemTemplateName(t),i=this._getTemplate(e);this._addItemContentClasses(t);var n=pi(this._createItemByTemplate(i,t));return n.hasClass("dx-template-wrapper")?this._renderItemContentByNode(t,n):t.container},_renderItemContentByNode:function(t,e){return pi(t.container).replaceWith(e),t.container=Ii(e),this._addItemContentClasses(t),e},_addItemContentClasses:function(t){var e=[Mf+"-content",t.contentClass];pi(t.container).addClass(e.join(" "))},_appendItemToContainer:function(t,e){e.appendTo(t)},_renderItemFrame:function(t,e,i,n){var r=pi("<div>");if(new this.constructor.ItemClass(r,this._itemOptions(),e||{}),n&&n.length?n.replaceWith(r):this._appendItemToContainer.call(this,i,r,t),this.option("useItemTextAsTitle")){var s=this._displayGetter?this._displayGetter(e):e;r.attr("title",s)}return r},_itemOptions:function(){var t=this;return{watchMethod:function(){return t.option("integrationOptions.watchMethod")},owner:t,fieldGetter:function(e){var i=t.option(e+"Expr");return it(i)}}},_postprocessRenderItem:St,_executeItemRenderAction:function(t,e,i){this._getItemRenderAction()({itemElement:i,itemIndex:t,itemData:e})},_setElementData:function(t,e,i){t.addClass([Mf,this._itemClass()].join(" ")).data(this._itemDataKey(),e).data(this._itemIndexKey(),i)},_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(t){var e=t.itemData,i=t.templateProperty||this.option("itemTemplateProperty");return e&&e[i]||t.defaultTemplateName},_createItemByTemplate:function(t,e){return t.render({model:e.itemData,container:e.container,index:e.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(t){t=t||this.option("items");var e=this.option("noDataText"),i=!e||t&&t.length||this._isDataSourceLoading();i&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),i||(this._$noData=this._$noData||pi("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(e),this.setAria("label",e)),this.$element().toggleClass("dx-empty-collection",!i)},_itemDXEventHandler:function(t,e,i,n){this._itemEventHandler(t.target,e,v(i,{event:t}),n)},_itemEventHandler:function(t,e,i,n){var r=this._createActionByOption(e,v({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(t,r,i)},_itemEventHandlerByHandler:function(t,e,i,n){var r=this._createAction(e,v({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(t,r,i)},_itemEventHandlerImpl:function(t,e,i){var n=this._closestItemElement(pi(t)),r=v({},i);return e(v(i,this._extendActionArgs(n),r))},_extendActionArgs:function(t){return{itemElement:Ii(t),itemIndex:this._itemElements().index(t),itemData:this._getItemData(t)}},_closestItemElement:function(t){return pi(t).closest(this._itemSelector())},_getItemData:function(t){return pi(t).data(this._itemDataKey())},_getSummaryItemsWidth:function(t,e){var i=0;return t&&m(t,(function(t,n){i+=Xt(n,e||!1)})),i},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new H),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(Ef);Of.ItemClass=$s;var Rf=O.abstract,Ff=O.inherit({ctor:function(t){this._collectionWidget=t},getIndexByItemData:Rf,getItemDataByIndex:Rf,getKeysByItems:Rf,getItemsByKeys:Rf,itemsGetter:Rf,getKeyByIndex:function(t){var e=this._denormalizeItemIndex(t);return this.getKeysByItems([this.getItemDataByIndex(e)])[0]},_equalKeys:function(t,e){return this._collectionWidget._isKeySpecified()?Dt(t,e):t===e},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:Rf,getNormalizedIndex:function(t){return this._isNormalizedItemIndex(t)?t:this._isItemIndex(t)?this._normalizeItemIndex(t):this._isNode(t)?this._getNormalizedItemIndex(t):this._normalizeItemIndex(this.getIndexByItemData(t))},getIndex:function(t){return this._isNormalizedItemIndex(t)?this._denormalizeItemIndex(t):this._isItemIndex(t)?t:this._isNode(t)?this._denormalizeItemIndex(this._getNormalizedItemIndex(t)):this.getIndexByItemData(t)},getItemElement:function(t){if(this._isNormalizedItemIndex(t))return this._getItemByNormalizedIndex(t);if(this._isItemIndex(t))return this._getItemByNormalizedIndex(this._normalizeItemIndex(t));if(this._isNode(t))return pi(t);var e=this._normalizeItemIndex(this.getIndexByItemData(t));return this._getItemByNormalizedIndex(e)},_isNode:t=>Tt.isNode(t&&c(t)?t.get(0):t),deleteItemAtIndex:Rf,itemPlacementFunc:function(t,e){return this._itemsFromSameParent(t,e)&&t<e?"after":"before"},moveItemAtIndexToIndex:Rf,_isNormalizedItemIndex:function(t){return"number"==typeof t&&Math.round(t)===t},_isItemIndex:Rf,_getNormalizedItemIndex:Rf,_normalizeItemIndex:Rf,_denormalizeItemIndex:Rf,_getItemByNormalizedIndex:Rf,_itemsFromSameParent:Rf}).inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(t){var e=this._collectionWidget.keyOf.bind(this._collectionWidget);return e?this.getIndexByKey(e(t)):this._getPlainItems().indexOf(t)},getItemDataByIndex:function(t){return this._getPlainItems()[t]},deleteItemAtIndex:function(t){this._getPlainItems().splice(t,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(t){var e=this._collectionWidget.keyOf.bind(this._collectionWidget),i=t;if(e){i=[];for(var n=0;n<t.length;n++)i.push(e(t[n]))}return i},getIndexByKey:function(t){var e=this._cache,i=e&&e.keys||this.getKeysByItems(this._getPlainItems());if(e&&!e.keys&&(e.keys=i),"object"!=typeof t)return i.indexOf(t);for(var n=0,r=i.length;n<r;n++)if(this._equalKeys(t,i[n]))return n;return-1},getItemsByKeys:function(t,e){return(e||t).slice()},moveItemAtIndexToIndex:function(t,e){var i=this._getPlainItems(),n=i[t];i.splice(t,1),i.splice(e,0,n)},_isItemIndex:function(t){return"number"==typeof t&&Math.round(t)===t},_getNormalizedItemIndex:function(t){return this._collectionWidget._itemElements().index(t)},_normalizeItemIndex:function(t){return t},_denormalizeItemIndex:function(t){return t},_getItemByNormalizedIndex:function(t){return t>-1?this._collectionWidget._itemElements().eq(t):null},_itemsFromSameParent:function(){return!0}});const Pf=O.inherit({ctor:function(t){this.options=t,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:St,_setOption:function(t,e){this.options[t]=e},onSelectionChanged:function(){var t=this.options.addedItemKeys,e=this.options.removedItemKeys,i=this.options.addedItems,n=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,o=this.options.onSelectionChanged||St;this._clearItemKeys(),o({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:e,addedItems:i,removedItems:n})},equalKeys:function(t,e){return this.options.equalByReference&&a(t)&&a(e)?t===e:Dt(t,e)},getSelectableItems:function(t){return t.filter((function(t){return!(null!=t&&t.disabled)}))},_clearSelection:function(t,e,i,n){return t=t||[],t=Array.isArray(t)?t:[t],this.validate(),this.selectedItemKeys(t,e,i,n)},_removeTemplateProperty:function(t){return Array.isArray(t)?t.map((t=>this._removeTemplateProperty(t))):(a(t)&&delete t.template,t)},_loadFilteredData:function(t,e,i,n){var r=encodeURI(JSON.stringify(this._removeTemplateProperty(t))).length,s=this.options.maxFilterLengthInRequest&&r>this.options.maxFilterLengthInRequest,o=new K,a={filter:s?void 0:t,select:s?this.options.dataFields():i||this.options.dataFields()};return t&&0===t.length?o.resolve([]):this.options.load(a).done((function(i){var r=u(i)?i.data:i;e&&!n?r=r.filter(e):s&&(r=df(r).filter(t).toArray()),o.resolve(r)})).fail(o.reject.bind(o)),o},updateSelectedItemKeyHash:function(t){for(var e=0;e<t.length;e++){var i=yt(t[e]);a(i)||(this.options.keyHashIndices[i]=this.options.keyHashIndices[i]||[],this.options.keyHashIndices[i].push(e))}},_isAnyItemSelected:function(t){for(var e=0;e<t.length;e++)if(this.options.isItemSelected(t[e]))return;return!1},_getFullSelectAllState:function(){var t=this.options.plainItems(),e=this.options.filter(),i=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter((t=>!(null!=t&&t.disabled)));e&&(i=df(i).filter(e).toArray());var n=i.length,r=t.length-this.getSelectableItems(t).length;return n?n>=this.options.totalCount()-r||void 0:this._isAnyItemSelected(t)},_getVisibleSelectAllState:function(){for(var t=this.getSelectableItems(this.options.plainItems()),e=!1,i=!1,n=0;n<t.length;n++){var r=t[n],s=this.options.getItemData(r),o=this.options.keyOf(s);this.options.isSelectableItem(r)&&(this.isItemKeySelected(o)?e=!0:i=!0)}return!!e&&(!i||void 0)}}),Bf=Pf.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var t=new K,e=this,i=this.options.key(),n=s(i)?[i]:i;return this._loadFilteredData(this.options.selectionFilter,null,n).done((function(i){var n=i.map((function(t){return e.options.keyOf(t)}));t.resolve(n)})).fail(t.reject),t.promise()},selectedItemKeys:function(t,e,i,n){if(n){var r=this.options.filter();!r||JSON.stringify(r)===JSON.stringify(this.options.selectionFilter)&&i?this._setOption("selectionFilter",i?[]:null):this._addSelectionFilter(i,r,n)}else{e||this._setOption("selectionFilter",[]);for(var s=0;s<t.length;s++)i?this.removeSelectedItem(t[s]):this.addSelectedItem(t[s])}return this.onSelectionChanged(),(new K).resolve()},setSelectedItems:function(t){this._setOption("selectionFilter",null);for(var e=0;e<t.length;e++)this.addSelectedItem(t[e])},isItemDataSelected:function(t){return this.isItemKeySelected(t)},isItemKeySelected:function(t){var e=this.options.selectionFilter;return!e||!!df([t]).filter(e).toArray().length},_getKeyExpr:function(){var t=this.options.key();return Array.isArray(t)&&1===t.length?t[0]:t},_normalizeKey:function(t){var e=this.options.key();return Array.isArray(e)&&1===e.length?t[e[0]]:t},_getFilterByKey:function(t){var e=this._getKeyExpr(),i=[e,"=",this._normalizeKey(t)];if(Array.isArray(e)){i=[];for(var n=0;n<e.length;n++)i.push([e[n],"=",t[e[n]]]),n!==e.length-1&&i.push("and")}return i},addSelectedItem:function(t){var e=this._getFilterByKey(t);this._addSelectionFilter(!1,e)},removeSelectedItem:function(t){var e=this._getFilterByKey(t);this._addSelectionFilter(!0,e)},validate:function(){var t=this.options.key;if(t&&void 0===t())throw Uu.Error("E1042","Deferred selection")},_findSubFilter:function(t,e){if(!t)return-1;for(var i=JSON.stringify(e),n=0;n<t.length;n++){var r=t[n];if(r&&JSON.stringify(r)===i)return n}return-1},_isLastSubFilter:function(t,e){return!(!t||!e||this._findSubFilter(t,e)!==t.length-1&&0!==this._findSubFilter([t],e))},_addFilterOperator:function(t,e){return t.length>1&&s(t[1])&&t[1]!==e&&(t=[t]),t.length&&t.push(e),t},_denormalizeFilter:function(t){return t&&s(t[0])&&(t=[t]),t},_isOnlyNegativeFiltersLeft:function(t){return t.every(((t,e)=>e%2==0?Array.isArray(t)&&"!"===t[0]:"and"===t))},_addSelectionFilter:function(t,e,i){var n=t?["!",e]:e,r=t?"and":"or",s=!0,o=this.options.selectionFilter||[];if((o=this._denormalizeFilter(o))&&o.length){var a=this._removeSameFilter(o,e,t,i),h=this._removeSameFilter(o,e,!t);t&&(-1!==a||-1!==h)&&this._isOnlyNegativeFiltersLeft(o)&&(o=[]);var u=this._isKeyFilter(e)&&this._hasKeyFiltersOnlyStartingFromIndex(o,h);(s=e.length&&!u)&&(o=this._addFilterOperator(o,r))}s&&o.push(n),o=this._normalizeFilter(o),this._setOption("selectionFilter",t||o.length?o:null)},_normalizeFilter:function(t){return t&&1===t.length&&(t=t[0]),t},_removeFilterByIndex:function(t,e,i){var n=t[1];t.splice(e>0?e-1:e,2),i&&"and"===n&&t.splice(0,t.length)},_isSimpleKeyFilter:function(t,e){return 3===t.length&&t[0]===e&&"="===t[1]},_isKeyFilter:function(t){if(2===t.length&&"!"===t[0])return this._isKeyFilter(t[1]);var e=this._getKeyExpr();if(Array.isArray(e)){if(t.length!==2*e.length-1)return!1;for(var i=0;i<e.length;i++){if(i>0&&"and"!==t[2*i-1])return!1;if(!this._isSimpleKeyFilter(t[2*i],e[i]))return!1}return!0}return this._isSimpleKeyFilter(t,e)},_hasKeyFiltersOnlyStartingFromIndex:function(t,e){if(e>=0){for(var i=e;i<t.length;i++)if("string"!=typeof t[i]&&!this._isKeyFilter(t[i]))return!1;return!0}return!1},_removeSameFilter:function(t,e,i,n){if(e=i?["!",e]:e,JSON.stringify(e)===JSON.stringify(t))return t.splice(0,t.length),0;var r=this._findSubFilter(t,e);if(r>=0)return this._removeFilterByIndex(t,r,n),r;for(var s=0;s<t.length;s++)if(Array.isArray(t[s])&&t[s].length>2){var o=this._removeSameFilter(t[s],e,!1,n);if(o>=0)return t[s].length?1===t[s].length&&(t[s]=t[s][0]):this._removeFilterByIndex(t,s,n),o}return-1},getSelectAllState:function(){var t=this.options.filter(),e=this.options.selectionFilter;return!e||!!e.length&&(t&&t.length?(e=this._denormalizeFilter(e),!!this._isLastSubFilter(e,t)||!this._isLastSubFilter(e,["!",t])&&void 0):void 0)}});var Hf=function(t,e){var i=e(t);if(a(i))try{return JSON.stringify(i)}catch(t){return i}return i},Lf=function(t,e,i,n){return e[i[Hf(t,n)]]},zf=function(t,e){var i;function n(n,r,s,o,h){var u,l,c=r(h);if(!s&&(u=yt(c),!a(u)))return function(e,n){if(!i){i={};for(var r=function(t,e,i){return Array.isArray(i)?t.map((t=>e(t))):t}(t,e,n),s=0;s<r.length;s++)i[yt(r[s])]=!0}return i}(r,o)[u]?!e:!!e;for(l=0;l<t.length;l++)if(n(t[l],c))return!e;return!!e}function r(t,i){if(void 0!==i)return[t,e?"<>":"=",i]}this.getLocalFilter=function(t,e,i,r){return n.bind(this,e=void 0===e?Dt:e,t,i,r)},this.getExpr=function(i){var n;if(i)return t.forEach((function(t,o){var a;n=n||[],o>0&&n.push(e?"and":"or"),a=s(i)?r(i,t):function(t,i){for(var n=[],s=0,o=t.length;s<o;s++){var a=t[s],h=r(a,i&&i[a]);if(!h)break;s>0&&n.push(e?"or":"and"),n.push(h)}return n}(i,t),n.push(a)})),n&&1===n.length&&(n=n[0]),n},this.getCombinedFilter=function(t,i){var n=this.getExpr(t),r=n;return e&&i&&(n?((r=[]).push(n),r.push(i)):r=i),r}};const Gf=Pf.inherit({ctor:function(t){this.callBase(t),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(t,e){var i,n,r,s=this.options.keyOf;if(s){var o=e&&t.length>1&&!this.options.equalByReference;for(o&&(i={}),r=0;r<t.length;r++){var a=t[r],h=s(a);e?(n=this.removeSelectedItem(h,i,null==a?void 0:a.disabled),i&&n>=0&&(i[n]=!0)):this.addSelectedItem(h,a)}o&&this._batchRemoveSelectedItems(i)}},_batchRemoveSelectedItems:function(t){var e=this.options.selectedItemKeys.slice(0),i=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var n=0;n<e.length;n++)t[n]||(this.options.selectedItemKeys.push(e[n]),this.options.selectedItems.push(i[n]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(t,e,i,n){var r=new K,s=this.options.key();if(!t.length&&!i)return r.resolve([]),r;if(i&&e&&!n)return r.resolve(this.getSelectedItems()),r;var o=new zf(t,i),a=o.getCombinedFilter(s,n),h=[];if(e){var u=this.options.selectedItems;h=a&&t.length!==u.length?df(u).filter(a).toArray():u.slice(0)}var l=h.length?h:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),c=o.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,s);return l=l.filter(c),h.length||!i&&l.length===t.length?r.resolve(l):r=this._loadFilteredData(a,c,null,i),r},_replaceSelectionUpdate:function(t){var e=[],i=this.options.keyOf;if(i){for(var n=0;n<t.length;n++){var r=i(t[n]);e.push(r)}this.setSelectedItems(e,t)}},_warnOnIncorrectKeys:function(t){for(var e=this.options.allowNullValue,i=0;i<t.length;i++){var n=t[i];e&&null===n||this.isItemKeySelected(n)||Uu.log("W1002",n)}},_isMultiSelectEnabled:function(){var t=this.options.mode;return"all"===t||"multiple"===t},_requestInProgress:function(){var t;return"pending"===(null===(t=this._lastLoadDeferred)||void 0===t?void 0:t.state())},_concatRequestsItems:function(t,e,i,n){var r,s=e?t:[];return r=n||pu(t,this.options.selectedItemKeys),{addedItems:i.added.concat(r),removedItems:i.removed.concat(s),keys:t}},_collectLastRequestData:function(t,e,i,n){var r=e&&i,s={added:[],removed:[]},o=this._isMultiSelectEnabled(),a=o?this._lastRequestData:{};return o&&(this._shouldMergeWithLastRequest&&(r?(this._lastLoadDeferred.reject(),a={}):function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<e.length;i++)if(t[i]!==e[i])return!1;return!0}(t,this.options.selectedItemKeys)||(s.added=a.addedItems,s.removed=a.removedItems,e||this._lastLoadDeferred.reject())),a=this._concatRequestsItems(t,e,s,this._shouldMergeWithLastRequest?void 0:n)),a},_updateKeysByLastRequestData:function(t,e,i){var n,r,s=t;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!e&&!i&&(s=pu(t.concat(null===(n=this._lastRequestData)||void 0===n?void 0:n.addedItems),null===(r=this._lastRequestData)||void 0===r?void 0:r.removedItems),s=[...new Set(s)]),s},_loadSelectedItems:function(t,e,i,n){var r=this,s=new K,o=r.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(t,e,i,n),U(r._lastLoadDeferred).always((function(){var n=r._updateKeysByLastRequestData(t,e,i);r._shouldMergeWithLastRequest=!1,r._loadSelectedItemsCore(n,e,i,o).done(s.resolve).fail(s.reject)})),r._lastLoadDeferred=s,s},selectedItemKeys:function(t,e,i,n,r){var s=this,o=s._loadSelectedItems(t,i,n,r);return o.done((function(t){e?s._preserveSelectionUpdate(t,i):s._replaceSelectionUpdate(t),s.onSelectionChanged()})),o},addSelectedItem:function(t,e){if(n(e)&&!this.options.ignoreDisabledItems&&e.disabled)-1===this.options.disabledItemKeys.indexOf(t)&&this.options.disabledItemKeys.push(t);else{var i=this._getKeyHash(t);-1===this._indexOfSelectedItemKey(i)&&(!a(i)&&this.options.keyHashIndices&&(this.options.keyHashIndices[i]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(t),this.options.addedItemKeys.push(t),this.options.addedItems.push(e),this.options.selectedItems.push(e))}},_getSelectedIndexByKey:function(t,e){for(var i=this.options.selectedItemKeys,n=0;n<i.length;n++)if((!e||!e[n])&&this.equalKeys(i[n],t))return n;return-1},_getSelectedIndexByHash:function(t,e){var i=this.options.keyHashIndices[t];return i&&i.length>1&&e&&(i=i.filter((function(t){return!e[t]}))),i&&i[0]>=0?i[0]:-1},_indexOfSelectedItemKey:function(t,e){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(t):a(t)?this._getSelectedIndexByKey(t,e):this._getSelectedIndexByHash(t,e)},_shiftSelectedKeyIndices:function(t){for(var e=t;e<this.options.selectedItemKeys.length;e++){var i=yt(this.options.selectedItemKeys[e]),n=this.options.keyHashIndices[i];if(n)for(var r=0;r<n.length;r++)n[r]>t&&n[r]--}},removeSelectedItem:function(t,e,i){if(this.options.ignoreDisabledItems||!i){var n=this._getKeyHash(t),r=!!e,s=this._indexOfSelectedItemKey(n,e);if(s<0)return s;if(this.options.removedItemKeys.push(t),this.options.removedItems.push(this.options.selectedItems[s]),r)return s;if(this.options.selectedItemKeys.splice(s,1),this.options.selectedItems.splice(s,1),a(n)||!this.options.keyHashIndices)return s;var o=this.options.keyHashIndices[n];return o?(o.shift(),o.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(s),s):s}},_updateAddedItemKeys:function(t,e){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.addedItemKeys.push(t[i]),this.options.addedItems.push(e[i]))},_updateRemovedItemKeys:function(t,e,i){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.removedItemKeys.push(e[n]),this.options.removedItems.push(i[n]))},_isItemSelectionInProgress:function(t,e){var i;return!!(e&&this._lastRequestData&&this._requestInProgress())&&(null!==(i=this._lastRequestData.addedItems)&&void 0!==i?i:[]).includes(t)},_getKeyHash:function(t){return this.options.equalByReference?t:yt(t)},setSelectedItems:function(t,e){this._updateAddedItemKeys(t,e);var i=this.options.selectedItemKeys,n=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(t)),this._setOption("selectedItemKeys",t),this._setOption("selectedItems",e),this._updateRemovedItemKeys(t,i,n)},isItemDataSelected:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.options.keyOf(t);return this.isItemKeySelected(i,e)},isItemKeySelected:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._isItemSelectionInProgress(t,e.checkPending);if(!i){var n=this._getKeyHash(t),r=this._indexOfSelectedItemKey(n);i=-1!==r}return i},getSelectAllState:function(t){return t?this._getVisibleSelectAllState():this._getFullSelectAllState()}}),Nf=O.inherit({ctor:function(t){this.options=v(this._getDefaultOptions(),t,{selectedItemKeys:t.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new Bf(this.options):new Gf(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:St,key:St,keyOf:function(t){return t},load:function(){return(new K).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(t){return t},dataFields:St,filter:St}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(t){if(void 0===t)return this.options.selectionFilter;var e=this.options.selectionFilter!==t&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(t);this.options.selectionFilter=t,e&&this.onSelectionChanged()},setSelection:function(t,e){return this.selectedItemKeys(t,!1,!1,!1,e)},select:function(t){return this.selectedItemKeys(t,!0)},deselect:function(t){return this.selectedItemKeys(t,!0,!0)},selectedItemKeys:function(t,e,i,n,r){var s;return t=null!==(s=t)&&void 0!==s?s:[],t=Array.isArray(t)?t:[t],this.validate(),this._selectionStrategy.selectedItemKeys(t,e,i,n,r)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(t,e){this._selectionStrategy.addSelectedItem(e,t)},_removeSelectedItem:function(t){this._selectionStrategy.removeSelectedItem(t)},_setSelectedItems:function(t,e){this._selectionStrategy.setSelectedItems(t,e)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(t,e,i){var r,s,o,a,h,u=this.options.plainItems(),l=u[t],c=!1,d=!1,f=t=>t>=0&&!u.filter((e=>e.loadIndex===t)).length;if((null===(r=(s=this.options).allowLoadByRange)||void 0===r?void 0:r.call(s))&&(h=l.loadIndex-t,t=l.loadIndex,c=f(this._focusedItemIndex),n(this._shiftFocusedItemIndex)&&(d=f(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(l))return!1;var v=this.options.getItemData(l),p=this.options.keyOf(v);if((e=e||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)c||d?(o=t!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex)&&(a=this.changeItemSelectionWhenShiftKeyInVirtualPaging(t)):o=this.changeItemSelectionWhenShiftKeyPressed(t,u,h);else if(e.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!i){var m=this._selectionStrategy.isItemDataSelected(v);"single"===this.options.mode&&this.clearSelectedItems(),m?this._removeSelectedItem(p):this._addSelectedItem(v,p)}o=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var g=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],p);1===this.options.selectedItemKeys.length&&g||(this._setSelectedItems([p],[v]),o=!0)}return o?(U(a).done((()=>{this._focusedItemIndex=t,!i&&this.onSelectionChanged()})),!0):void 0},isDataItem:function(t){return this.options.isSelectableItem(t)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(t){return this._selectionStrategy.isItemDataSelected(t,{checkPending:!0})},isItemSelected:function(t,e){return this._selectionStrategy.isItemKeySelected(t,e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(t){var e=this.options.getLoadOptions(t,this._focusedItemIndex,this._shiftFocusedItemIndex),i=new K,n=e.skip;return this.options.load(e).done((e=>{this.changeItemSelectionWhenShiftKeyPressed(t,e,n),i.resolve()})),i.promise()},changeItemSelectionWhenShiftKeyPressed:function(t,e,i){var r,s,o,a,h=!1,u=n(i),l=u?this._focusedItemIndex-i:this._focusedItemIndex,c=this.options.keyOf,d=e[l],f=this.options.getItemData(d),v=c(f),p=d&&this.isItemDataSelected(f);if(n(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(r=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,a=u?this._shiftFocusedItemIndex-i:this._shiftFocusedItemIndex,l=u?this._focusedItemIndex-i:this._focusedItemIndex;l!==a;l+=r)(u||this.isDataItem(e[l]))&&(o=c(this.options.getItemData(e[l])),this._removeSelectedItem(o),h=!0);if(t!==this._shiftFocusedItemIndex)for(r=t<this._shiftFocusedItemIndex?1:-1,a=u?this._shiftFocusedItemIndex-i:this._shiftFocusedItemIndex,l=u?t-i:t;l!==a;l+=r)(u||this.isDataItem(e[l]))&&(o=c(s=this.options.getItemData(e[l])),this._addSelectedItem(s,o),h=!0);return!u&&!this.isDataItem(d)||p||(this._addSelectedItem(f,v),h=!0),h},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(t){for(var e=this._selectionStrategy.getSelectableItems(this.options.plainItems()),i=0;i<e.length;i++){var n=e[i];if(this.isDataItem(n)){var r=this.options.getItemData(n),s=this.options.keyOf(r),o=this.isItemSelected(s);o||t||this._addSelectedItem(r,s),o&&t&&this._removeSelectedItem(s)}}return this.onSelectionChanged(),(new K).resolve()},getSelectAllState:function(t){return this._selectionStrategy.getSelectAllState(t)}});var Wf=function(t){return-1!==t},Vf=Of.inherit({_setOptionsByReference:function(){this.callBase(),v(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return v(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(t,e){this._userOptions=e||{},this.callBase(t,e)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=it(this.option("keyExpr"))},_getKeysByItems:function(t){return this._editStrategy.getKeysByItems(t)},_getItemsByKeys:function(t,e){return this._editStrategy.getItemsByKeys(t,e)},_getKeyByIndex:function(t){return this._editStrategy.getKeyByIndex(t)},_getIndexByKey:function(t){return this._editStrategy.getIndexByKey(t)},_getIndexByItemData:function(t){return this._editStrategy.getIndexByItemData(t)},_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(t){var e=t,i=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?e=this._keyGetter(t):i&&(e=i.keyOf(t)),e},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var t=this,e=t._editStrategy.itemsGetter;this._selection=new Nf({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(e){(e.addedItemKeys.length||e.removedItemKeys.length)&&(t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e))},filter:t._getCombinedFilter.bind(t),totalCount:function(){var e=t.option("items"),i=t._dataSource;return i&&i.totalCount()>=0?i.totalCount():t._getItemsCount(e)},key:t.key.bind(t),keyOf:t.keyOf.bind(t),load:function(e){if(t._dataSource){var i=t._dataSource.loadOptions();e.customQueryParams=i.customQueryParams,e.userData=t._dataSource._userData}var n=t._dataSource&&t._dataSource.store();return n?n.load(e).done((function(e){if(!t._disposed){var i=xf(e).data;t._dataSource._applyMapFunction(i)}})):(new K).resolve(this.plainItems())},dataFields:function(){return t._dataSource&&t._dataSource.select()},plainItems:e.bind(t._editStrategy)})},_getItemsCount:function(t){return t.reduce(((t,e)=>t+(e.items?this._getItemsCount(e.items):1)),0)},_initEditStrategy:function(){this._editStrategy=new Ff(this)},_getSelectedItemIndices:function(t){var e=this,i=[];return t=t||this._selection.getSelectedItemKeys(),e._editStrategy.beginCache(),m(t,(function(t,n){var r=e._getIndexByKey(n);Wf(r)&&i.push(r)})),e._editStrategy.endCache(),i},_initMarkup:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done((()=>this._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(t){var e,i,r,s;switch(t=t||this._chooseSelectOption()){case"selectedIndex":e=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),n(e)?(this._setOptionWithoutOptionChange("selectedItems",[e]),this._setOptionWithoutOptionChange("selectedItem",e),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([e]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(i=(s=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(s[0]):-1,this.option("selectionRequired")&&!Wf(i))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",s[0]),this._setOptionWithoutOptionChange("selectedIndex",i),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(s));break;case"selectedItem":if(e=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(e),this.option("selectionRequired")&&!Wf(i))return this._syncSelectionOptions("selectedIndex");n(e)?(this._setOptionWithoutOptionChange("selectedItems",[e]),this._setOptionWithoutOptionChange("selectedIndex",i),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([e]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(r=this.option("selectedItemKeys"),this.option("selectionRequired")){var o=this._getIndexByKey(r[0]);if(!Wf(o))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(r)}return(new K).resolve().promise()},_chooseSelectOption:function(){var t="selectedIndex",e=function(t){var e=this.option(t);return n(e)&&e.length||t in this._userOptions}.bind(this);return e("selectedItems")?t="selectedItems":e("selectedItem")?t="selectedItem":e("selectedItemKeys")&&(t="selectedItemKeys"),t},_compareKeys:function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<e.length;i++)if(t[i]!==e[i])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var t=this.option("selectedItems");if(t.length>1||!t.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var e=this._selection.getSelectedItems(),i=void 0===t[0]?e[0]:t[0];return void 0===i&&(i=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&i&&i.items&&(i.items=[i.items[0]]),this._selection.setSelection(this._getKeysByItems([i])),this._setOptionWithoutOptionChange("selectedItems",[i]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(t))}else{var n=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,n)||this._selection.setSelection(n)}return(new K).resolve().promise()},_itemClickHandler:function(t){var e=(new K).resolve(),i=this.callBase;this._createAction(function(t){var i;e=null!==(i=this._itemSelectHandler(t.event))&&void 0!==i?i:e}.bind(this),{validatingTargetName:"itemElement"})({itemElement:pi(t.currentTarget),event:t}),e.always((()=>{i.apply(this,arguments)}))},_itemSelectHandler:function(t){var e,i;if(this.option("selectionByClick"))return this.isItemSelected(t.currentTarget)?this.unselectItem(t.currentTarget):i=this.selectItem(t.currentTarget),null===(e=i)||void 0===e?void 0:e.promise()},_selectedItemElement:function(t){return this._itemElements().eq(t)},_postprocessRenderItem:function(t){if("none"!==this.option("selectionMode")){var e=pi(t.itemElement),i=this._editStrategy.getNormalizedIndex(e),n=this._isItemSelected(i);this._processSelectableItem(e,n)}},_processSelectableItem:function(t,e){t.toggleClass(this._selectedItemClass(),e),this._setAriaSelected(t,String(e))},_updateSelectedItems:function(t){var e=this,i=t.addedItemKeys,n=t.removedItemKeys;if(e._rendered&&(i.length||n.length)){var r=e._selectionChangePromise;if(!e._rendering){var s,o=[],a=[];e._editStrategy.beginCache();for(var h=0;h<i.length;h++)s=e._getIndexByKey(i[h]),o.push(s),e._addSelection(s);for(var u=0;u<n.length;u++)s=e._getIndexByKey(n[u]),a.push(s),e._removeSelection(s);e._editStrategy.endCache(),e._updateSelection(o,a)}U(r).done((function(){e._fireSelectionChangeEvent(t.addedItems,t.removedItems)}))}},_fireSelectionChangeEvent:function(t,e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:t,removedItems:e})},_updateSelection:St,_setAriaSelected:function(t,e){this.setAria("selected",e,t)},_removeSelection:function(t){var e=this._editStrategy.getItemElement(t);Wf(t)&&(this._processSelectableItem(e,!1),we.triggerHandler(e,"stateChanged",!1))},_addSelection:function(t){var e=this._editStrategy.getItemElement(t);Wf(t)&&(this._processSelectableItem(e,!0),we.triggerHandler(e,"stateChanged",!0))},_isItemSelected:function(t){var e=this._getKeyByIndex(t);return this._selection.isItemSelected(e,{checkPending:!0})},_optionChanged:function(t){switch(t.name){case"selectionMode":this._invalidate();break;case"dataSource":(!t.value||Array.isArray(t.value)&&!t.value.length)&&this.option("selectedItemKeys",[]),this.callBase(t);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(t.name).done((()=>this._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(t)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(t){if(t.data("dxItemDeleting"))return(new K).resolve().promise();t.data("dxItemDeleting",!0);var e=new K,i={cancel:!1},n=this._itemEventHandler(t,"onItemDeleting",i,{excludeValidators:["disabled","readOnly"]});return U(n).always(function(r){var s=!n,o=!s&&"resolved"===n.state(),a=!!arguments.length,h=s||o&&!a||o&&r;U(W(i.cancel)).always((function(){t.data("dxItemDeleting",!1)})).done((function(t){h&&!t?e.resolve():e.reject()})).fail(e.reject)}.bind(this)),e.promise()},_deleteItemFromDS:function(t){if(!this._dataSource)return(new K).resolve().promise();var e=new K,i=this.option("disabled"),n=this._dataSource.store();if(this.option("disabled",!0),!n.remove)throw Uu.Error("E1011");return n.remove(n.keyOf(this._getItemData(t))).done((function(t){void 0!==t?e.resolve():e.reject()})).fail((function(){e.reject()})),e.always(function(){this.option("disabled",i)}.bind(this)),e},_tryRefreshLastPage:function(){var t=new K;return this._isLastPage()||this.option("grouped")?t.resolve():this._refreshLastPage().done((function(){t.resolve()})),t.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(t){var e=this._getKeyByIndex(t);this._selection.deselect([e])},_updateIndicesAfterIndex:function(t){for(var e=this._itemElements(),i=t+1;i<e.length;i++)pi(e[i]).data(this._itemIndexKey(),i-1)},_simulateOptionChange:function(t){var e=this.option(t);e instanceof Sf||this._optionChangedAction({name:t,fullName:t,value:e})},isItemSelected:function(t){return this._isItemSelected(this._editStrategy.getNormalizedIndex(t))},selectItem:function(t){if("none"!==this.option("selectionMode")){var e=this._editStrategy.getNormalizedIndex(t);if(Wf(e)){var i=this._getKeyByIndex(e);if(!this._selection.isItemSelected(i)){if("single"===this.option("selectionMode"))return this._selection.setSelection([i]);var n=this.option("selectedItemKeys")||[];return this._selection.setSelection([...n,i],[i])}}}},unselectItem:function(t){var e=this._editStrategy.getNormalizedIndex(t);if(Wf(e)){var i=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&i.length<=1)){var n=this._getKeyByIndex(e);this._selection.isItemSelected(n,{checkPending:!0})&&this._selection.deselect([n])}}},_deleteItemElementByIndex:function(t){this._updateSelectionAfterDelete(t),this._updateIndicesAfterIndex(t),this._editStrategy.deleteItemAtIndex(t)},_afterItemElementDeleted:function(t,e){this._simulateOptionChange(this._dataSource?"dataSource":"items"),this._itemEventHandler(t,"onItemDeleted",e,{beforeExecute:function(){t.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(t){var e=this,i=new K,n=this._editStrategy.getItemElement(t),r=this._editStrategy.getNormalizedIndex(t),s=this._itemResponseWaitClass();return Wf(r)?this._waitDeletingPrepare(n).done((function(){n.addClass(s);var t=e._extendActionArgs(n);e._deleteItemFromDS(n).done((function(){e._deleteItemElementByIndex(r),e._afterItemElementDeleted(n,t),e._tryRefreshLastPage().done((function(){i.resolveWith(e)}))})).fail((function(){n.removeClass(s),i.rejectWith(e)}))})).fail((function(){i.rejectWith(e)})):i.rejectWith(e),i.promise()},reorderItem:function(t,e){var i=new K,n=this,r=this._editStrategy,s=r.getItemElement(t),o=r.getItemElement(e),a=r.getNormalizedIndex(t),h=r.getNormalizedIndex(e),u=this._dataSource?"dataSource":"items";return Wf(a)&&Wf(h)&&a!==h?i.resolveWith(this):i.rejectWith(this),i.promise().done((function(){o[r.itemPlacementFunc(a,h)](s),r.moveItemAtIndexToIndex(a,h),this._updateIndicesAfterIndex(a),n.option("selectedItems",n._getItemsByKeys(n._selection.getSelectedItemKeys(),n._selection.getSelectedItems())),"items"===u&&n._simulateOptionChange(u),n._itemEventHandler(s,"onItemReordered",{fromIndex:r.getIndex(a),toIndex:r.getIndex(h)},{excludeValidators:["disabled","readOnly"]})}))}});const Kf=Vf.inherit({_getDefaultOptions:function(){return v(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=t=>{var e=this._dataSource;e&&!e.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=this._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(t){var e=pi(),i=this.key();return this.itemElements().each(((n,r)=>{var s=pi(r),o=this._getItemData(s);if(i?hd(i,this.keyOf(o),t):this._isItemEquals(o,t))return e=s,!1})),e},_dataSourceChangedHandler:function(t,e){null!=e&&e.changes?this._modifyByChanges(e.changes):(this.callBase(t,e),this._refreshItemsCache())},_isItemEquals:function(t,e){t&&t.__dx_key__&&(t=t.data);try{return JSON.stringify(t)===JSON.stringify(e)}catch(i){return t===e}},_isItemStrictEquals:function(t,e){return this._isItemEquals(t,e)},_shouldAddNewGroup:function(t,e){var i=!1;return this.option("grouped")&&(t.length||(i=!0),m(t,((t,n)=>{"insert"===n.type&&(i=!0,m(e,((t,e)=>{if(void 0!==n.data.key&&n.data.key===e.key)return i=!1,!1})))}))),i},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var t=function(t,e,i,n){var r={},s={},o=0,a=0,h=[];t.forEach((function(t,e){var n=Hf(t,i);r[n]=e})),e.forEach((function(t,e){var n=Hf(t,i);s[n]=e}));for(var u=Math.max(t.length,e.length),l=0;l<u+o;l++){var c=e[l],d=l-o+a,f=t[d];if(!c||f&&!Lf(f,e,s,i))f&&(h.push({type:"remove",key:i(f),index:l,oldItem:f}),a++,l--);else{var v=Hf(c,i),p=r[v],m=t[p];if(m){if(p!==d)return;n(m,c)||h.push({type:"update",data:c,key:i(c),index:l,oldItem:m})}else o++,h.push({type:"insert",data:c,index:l})}}return h}(this._itemsCache,this._editStrategy.itemsGetter(),(t=>t&&void 0!==t.__dx_key__?t.__dx_key__:this.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 t=this._editStrategy.itemsGetter();try{this._itemsCache=v(!0,[],t),this.key()||(this._itemsCache=this._itemsCache.map(((e,i)=>({__dx_key__:t[i],data:e}))))}catch(e){this._itemsCache=v([],t)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(t,e,i,n){if(n)this._renderItem(i.index,i.data,null,this._findItemElementByKey(i.key));else{var r=e[Sd(t,e,i.key)];r&&_d(t,e,i.key,i.data).done((()=>{this._renderItem(e.indexOf(r),r,null,this._findItemElementByKey(i.key))}))}},_insertByChange:function(t,e,i,n){U(n||yd(t,e,i.data,i.index)).done((()=>{var t;this._beforeItemElementInserted(i);var n=this._getItemContainer(i.data);this._renderItem(null!==(t=i.index)&&void 0!==t?t:e.length,i.data,n),this._afterItemElementInserted(),this._correctionIndex++}))},_getItemContainer:function(){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(t){var e=this.option("selectedIndex");e>t?this.option("selectedIndex",e-1):e===t&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(t){var e=this.option("selectedIndex");t.index<=e&&this.option("selectedIndex",e+1)},_afterItemElementInserted:St,_removeByChange:function(t,e,i,n){var r=n?i.index:Sd(t,e,i.key);if(n?i.oldItem:e[r]){var s=this._findItemElementByKey(i.key),o=this._extendActionArgs(s);this._waitDeletingPrepare(s).done((()=>{n?(this._updateIndicesAfterIndex(r-1),this._afterItemElementDeleted(s,o),this._updateSelectionAfterRemoveByChange(r)):(this._deleteItemElementByIndex(r),this._afterItemElementDeleted(s,o))})),this._correctionIndex--}},_modifyByChanges:function(t,e){var i=this._editStrategy.itemsGetter(),n={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},r=this._dataSource,s=r&&r.paginate(),o=r&&r.group();(s||o)&&(t=t.filter((t=>"insert"!==t.type||void 0!==t.index))),t.forEach((t=>this["_".concat(t.type,"ByChange")](n,i,t,e))),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(t,e,i){var n=t.children(this._itemSelector()).get(i);Tt.insertElement(t.get(0),e.get(0),n)},_optionChanged:function(t){switch(t.name){case"items":this._partialRefresh(t.value)||this.callBase(t);break;case"dataSource":this.option("repaintChangesOnly")&&t.value||this.option("items",[]),this.callBase(t);break;case"repaintChangesOnly":break;default:this.callBase(t)}}}),Uf={_getSpecificDataSourceOption:function(){var t=this.option("dataSource"),e=!1,i={};return this._getGroupedOption()&&(t=>Array.isArray(t)&&t.every((t=>2===Object.keys(t).length&&"key"in t&&"items"in t&&Array.isArray(t.items))))(t)&&(i=t.reduce(((t,i)=>{var n=i.items.map((t=>(a(t)||(t={text:t},e=!0),"key"in t||(t.key=i.key),t)));return t.concat(n)}),[]),t={store:{type:"array",data:i},group:{selector:"key",keepInitialKeyOrder:!0}},e&&(t.searchExpr="text")),t}};var jf=it("items"),qf=Kf.inherit({_activeStateUnit:[".dx-list-item",".dx-list-select-all"].join(","),_supportedKeys:function(){var t=this,e=function(e){var n=i(e);n.is(t.option("focusedElement"))&&(function(e,i){var n=e.position().top;"prev"===i&&(n=e.position().top-Zt(t.$element())+Qt(e)),t.scrollTo(n)}(n,e),n=i(e)),t.option("focusedElement",Ii(n)),t.scrollToItem(n)};function i(e){var i=t.scrollTop(),n=Zt(t.$element()),r=pi(t.option("focusedElement")),s=!0;if(!r.length)return pi();for(;s;){var o=r[e]();if(!o.length)break;var a=o.position().top+Qt(o)/2;(s=a<n+i&&a>i)&&(r=o)}return r}return v(this.callBase(),{leftArrow:St,rightArrow:St,pageUp:function(){return e("prev"),!1},pageDown:function(){return e("next"),!1}})},_getDefaultOptions:function(){return v(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:Gs.format("dxList-pullingDownText"),pulledDownText:Gs.format("dxList-pulledDownText"),refreshingText:Gs.format("dxList-refreshingText"),pageLoadingText:Gs.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:Gs.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,showChevronExpr:function(t){return t?t.showChevron:void 0},badgeExpr:function(t){return t?t.badge:void 0}})},_defaultOptionsRules:function(){var t=hl();return this.callBase().concat(Ic(),[{device:function(){return!Sn},options:{useNativeScrolling:!1}},{device:function(t){return!Sn&&!dn.isSimulator()&&"desktop"===dn.real().deviceType&&"generic"===t.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===dn.real().deviceType&&!dn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return dl(t)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(t){t&&this._updateLoadingState(!0)},_itemClass:function(){return"dx-list-item"},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(t){this._selectionChangeEventInstance=t},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this._itemElementsCache=this.option("grouped")?this._itemContainer().children(".dx-list-group").children(".dx-list-group-body").children(this._itemSelector()):this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(t,e){return this.callBase(t,e).done((function(){this._refreshItemElements()}))},deleteItem:function(t){return this.callBase(t).done((function(){this._refreshItemElements()}))},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(t){if("single"!==this.option("selectionMode")||!this.isItemSelected(t.currentTarget))return this.callBase(t)},_allowDynamicItemsAppend:function(){return!0},_resetDataSourcePageIndex:function(){var t=this.getDataSource();t&&0!==t.pageIndex()&&(t.pageIndex(0),t.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 t=this._scrollBottomMode(),e=this._nextButtonMode();return v(this.callBase(),{paginate:at(t||e,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(t){return this._itemContainer().find(".".concat("dx-list-group")).eq(t).find(".".concat("dx-list-group-body"))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var t=this.option("scrollingEnabled"),e=t&&this.option("pullRefreshEnabled"),i=t&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),Qc,{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!t,onScroll:this._scrollHandler.bind(this),onPullDown:e?this._pullDownHandler.bind(this):null,onReachBottom:i?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=pi(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass("dx-wrap-item-text"),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(t){this._scrollAction&&this._scrollAction(t)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new kf((function(t,e){u(e)?e.key&&t.text(e.key):t.text(String(e))}),["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(t,e){if(this.callBase(t,e),t.icon){var i=Ci(t.icon).addClass("dx-list-item-icon"),n=pi("<div>").addClass("dx-list-item-icon-container");n.append(i),e.prepend(n)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(t){var e=this._scrollBottomMode()&&t&&!this._isDataSourceLoading()&&!this._isLastPage();this._shouldContinueLoading(e)?this._infiniteDataLoading():(this._scrollView.release(!e&&!this._isDataSourceLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_isDataSourceFirstLoadCompleted:function(t){return n(t)&&(this._isFirstLoadCompleted=t),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(t){this._loadIndicationSuppressed()||(t&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var t;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(t=this._scrollView)||void 0===t||t.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),t||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&Mt()&&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(t){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=t},_scrollViewIsFull:function(){var t=this._scrollView;return!t||Zt(t.content())>Zt(t.container())},_pullDownHandler:function(t){this._pullRefreshAction(t),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_shouldContinueLoading:function(t){var e,i,n=Zt(this._scrollView.content())-Zt(this._scrollView.container())<(null!==(e=null===(i=this._scrollView.scrollOffset())||void 0===i?void 0:i.top)&&void 0!==e?e:0);return t&&(!this._scrollViewIsFull()||n)},_infiniteDataLoading:function(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout((()=>{this._loadNextPage()})))},_scrollBottomHandler:function(t){this._pageLoadingAction(t),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(t){this.option("grouped")?(m(t,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),dl()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var t=xr("dxclick",this.NAME),e=".dx-list-group-header",i=this.$element(),n=this.option("collapsibleGroups");i.toggleClass("dx-list-collapsible-groups",n),we.off(i,t,e),n&&we.on(i,t,e,function(t){this._createAction(function(t){var e=pi(t.event.currentTarget).parent();this._collapseGroupHandler(e),this.option("focusStateEnabled")&&this.option("focusedElement",Ii(e.find(".dx-list-item").eq(0)))}.bind(this),{validatingTargetName:"element"})({event:t})}.bind(this))},_collapseGroupHandler:function(t,e){var i=new K;if(t.hasClass("dx-list-group-collapsed")===e)return i.resolve();var n=t.children(".dx-list-group-body"),r=Qt(n),s=0;return 0===r&&(Yt(n,"auto"),s=Qt(n)),t.toggleClass("dx-list-group-collapsed",e),Ur.animate(n,{type:"custom",from:{height:r},to:{height:s},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),i.resolve()}.bind(this)}),i.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=pi(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=function(){var t=Ns(void 0);return{showWave:Vs.bind(this,t),hideWave:qs.bind(this,t)}}()},_toggleActiveState:function(t,e,i){this.callBase.apply(this,arguments);var n=this;if(this._inkRipple){var r={element:t,event:i};e?dl()?this._inkRippleTimer=setTimeout((function(){n._inkRipple.showWave(r)}),35):n._inkRipple.showWave(r):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(r))}},_postprocessRenderItem:function(t){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent(pi(t.itemElement))},_attachSwipeEvent:function(t){var e=xr("dxswipeend",this.NAME);we.on(t,e,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(t){this._itemDXEventHandler(t,"onItemSwipe",{direction:t.offset<0?"left":"right"})},_nextButtonHandler:function(t){this._pageLoadingAction(t);var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(t,e){var i=pi("<div>").addClass("dx-list-group").appendTo(this._itemContainer()),n=pi("<div>").addClass("dx-list-group-header").appendTo(i),r=this.option("groupTemplate"),s=this._getTemplate(e.template||r,e,t,n),o={index:t,itemData:e,container:Ii(n)};this._createItemByTemplate(s,o),dl()&&pi("<div>").addClass("dx-list-group-header-indicator").prependTo(n),this._renderingGroupIndex=t;var a=pi("<div>").addClass("dx-list-group-body").appendTo(i);m(jf(e)||[],function(e,i){this._renderItem({group:t,item:e},i,a)}.bind(this)),this._groupRenderAction({groupElement:Ii(i),groupIndex:t,groupData:e})},downInkRippleHandler:function(t){this._toggleActiveState(pi(t.currentTarget),!0,t)},upInkRippleHandler:function(t){this._toggleActiveState(pi(t.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var t=".dx-list-group-header",e=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var i=[e,"dxpointerdown",t,this._downInkRippleHandler],n=[e,"dxpointerup dxpointerout",t,this._upInkRippleHandler];we.off(...i),we.on(...i),we.off(...n),we.on(...n)},_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(t){this.callBase(t),this._scrollView.option("disabled",t||!this.option("scrollingEnabled"))},_toggleNextButton:function(t){var e=this._dataSource,i=this._getNextButton();this.$element().toggleClass("dx-has-next",t),t&&e&&e.isLoaded()&&i.appendTo(this._itemContainer()),t||i.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var t=pi("<div>").addClass("dx-list-next-button"),e=pi("<div>").appendTo(t);return this._createComponent(e,Ql,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:dl()?"default":void 0,integrationOptions:{}}),t},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(Mt()){var t=this._scrollView.scrollTop();this.callBase(),t&&this._scrollView.scrollTo(t)}else this.callBase()},_optionChanged:function(t){switch(t.name){case"pageLoadMode":this._toggleNextButton(t.value),this._initScrollView();break;case"dataSource":this.callBase(t),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(t),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":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"wrapItemText":this._$container.toggleClass("dx-wrap-item-text",t.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(t),this._scrollView.option(t.name,t.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(t),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(t);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(t)}},_extendActionArgs:function(t){if(!this.option("grouped"))return this.callBase(t);var e=t.closest(".dx-list-group"),i=e.find(".dx-list-item");return v(this.callBase(t),{itemIndex:{group:e.index(),item:i.index(t)}})},expandGroup:function(t){var e=new K,i=this._itemContainer().find(".dx-list-group").eq(t);return this._collapseGroupHandler(i,!1).done(function(){e.resolveWith(this)}.bind(this)),e.promise()},collapseGroup:function(t){var e=new K,i=this._itemContainer().find(".dx-list-group").eq(t);return this._collapseGroupHandler(i,!0).done(function(){e.resolveWith(this)}.bind(this)),e},updateDimensions:function(){var t=this,e=new K;return t._scrollView?t._scrollView.update().done((function(){!t._scrollViewIsFull()&&t._updateLoadingState(!0),e.resolveWith(t)})):e.resolveWith(t),e.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(t){this._scrollView.scrollBy(t)},scrollTo:function(t){this._scrollView.scrollTo(t)},scrollToItem:function(t){var e,i,n,r,s,o,a,h=this._editStrategy.getItemElement(t),u=null==h?void 0:h.get(0);this._scrollView.scrollToElement(u,{bottom:(e=u,i="bottom",a=(n=e)&&Mt()?null===(r=(s=Ot()).getComputedStyle)||void 0===r?void 0:r.call(s,n):null,a&&(o=a["margin".concat($e(i))])?Number(o.replace("px","")):0)})},_dimensionChanged:function(){this.updateDimensions()}}).include(Uf);qf.ItemClass=Js;var $f=qf.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 t=this,e=this._itemContainer();m(["before","center","after","menu"],(function(){var i="_$"+this+"Section",n=t[i];n||(t[i]=n=pi("<div>").addClass("dx-toolbar-menu-section")),n.appendTo(e)}))},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var t=this.$element().find(".dx-toolbar-menu-section");t.removeClass("dx-toolbar-menu-last-section"),t.not(":empty").eq(-1).addClass("dx-toolbar-menu-last-section")},_renderItem:function(t,e,i,n){var r=e.location||"menu",s=this.callBase(t,e,this["_$"+r+"Section"],n);return this._getItemTemplateName({itemData:e})&&s.addClass("dx-toolbar-menu-custom"),("menu"===r||"dxButton"===e.widget||"dxButtonGroup"===e.widget||e.isAction)&&s.addClass("dx-toolbar-menu-action"),"dxButton"===e.widget&&s.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===e.widget&&s.addClass("dx-toolbar-hidden-button-group"),s.addClass(e.cssClass),s},_getItemTemplateName:function(t){var e=this.callBase(t),i=t.itemData;return i&&i.menuItemTemplate||e},_itemClickHandler:function(t,e,i){pi(t.target).closest(".dx-toolbar-menu-action").length&&this.callBase(t,e,i)},_clean:function(){this._getSections().empty(),this.callBase()}});Si("dxToolbarMenu",$f);class Jf{constructor(t){this.init(t)}init(t){var{dragEnabled:e,handle:i,draggableElement:n,positionController:r}=t;this._positionController=r,this._draggableElement=n,this._handle=i,this._dragEnabled=e,this.unsubscribe(),e&&this.subscribe()}moveDown(t){this._moveTo(5,0,t)}moveUp(t){this._moveTo(-5,0,t)}moveLeft(t){this._moveTo(0,-5,t)}moveRight(t){this._moveTo(0,5,t)}subscribe(){var t=this._getEventNames();we.on(this._handle,t.startEventName,(t=>{this._dragStartHandler(t)})),we.on(this._handle,t.updateEventName,(t=>{this._dragUpdateHandler(t)})),we.on(this._handle,t.endEventName,(t=>{this._dragEndHandler(t)}))}unsubscribe(){var t=this._getEventNames();we.off(this._handle,t.startEventName),we.off(this._handle,t.updateEventName),we.off(this._handle,t.endEventName)}_getEventNames(){return{startEventName:xr("dxdragstart","overlayDrag"),updateEventName:xr("dxdrag","overlayDrag"),endEventName:xr("dxdragend","overlayDrag")}}_dragStartHandler(t){var e=this._getAllowedOffsets();this._prevOffset={x:0,y:0},t.targetElements=[],t.maxTopOffset=e.top,t.maxBottomOffset=e.bottom,t.maxLeftOffset=e.left,t.maxRightOffset=e.right}_dragUpdateHandler(t){this._moveByOffset({top:t.offset.y-this._prevOffset.y,left:t.offset.x-this._prevOffset.x}),this._prevOffset=t.offset}_dragEndHandler(t){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(t)}_moveTo(t,e,i){if(this._dragEnabled){i.preventDefault(),i.stopPropagation();var n=this._fitOffsetIntoAllowedRange(t,e);this._moveByOffset(n),this._dragEndHandler(i)}}_fitOffsetIntoAllowedRange(t,e){var i=this._getAllowedOffsets();return{top:Cs(t,-i.top,i.bottom),left:Cs(e,-i.left,i.right)}}_getContainerDimensions(){var t=Tt.getDocument(),e=this._positionController.$dragResizeContainer.get(0),i=Xt(e),n=Qt(e);return l(e)&&(n=Math.max(t.body.clientHeight,n),i=Math.max(t.body.clientWidth,i)),{width:i,height:n}}_getContainerPosition(){var t=this._positionController.$dragResizeContainer.get(0);return l(t)?{top:0,left:0}:re(t)}_getElementPosition(){return re(this._draggableElement)}_getInnerDelta(){var t=this._getContainerDimensions(),e=this._getElementDimensions();return{x:t.width-e.width,y:t.height-e.height}}_getOuterDelta(){var{width:t,height:e}=this._getElementDimensions(),i=this._positionController.outsideDragFactor;return{x:t*i,y:e*i}}_getFullDelta(){var t=this._getInnerDelta(),e=this._getOuterDelta();return{x:t.x+e.x,y:t.y+e.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var t=this._getFullDelta();if(!(t.y>=0&&t.x>=0))return{top:0,bottom:0,left:0,right:0};var e=this._getElementPosition(),i=this._getContainerPosition(),n=this._getOuterDelta();return{top:e.top-i.top+n.y,bottom:-e.top+i.top+t.y,left:e.left-i.left+n.x,right:-e.left+i.left+t.x}}_moveByOffset(t){var e=ki(this._draggableElement);Pi(this._draggableElement,{left:e.left+t.left,top:e.top+t.top})}}var Zf=xr("dxdragstart","dxResizable"),Yf=xr("dxdrag","dxResizable"),Xf=xr("dxdragend","dxResizable"),Qf={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},tv=Pu.inherit({_getDefaultOptions:function(){return v(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,keepAspectRatio:!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(){this._handles=[];var t=this.option("handles");if("none"!==t&&t){var e="all"===t?["top","bottom","left","right"]:t.split(" "),i={};m(e,((t,e)=>{i[e]=!0,this._renderHandle(e)})),i.bottom&&i.right&&this._renderHandle("corner-bottom-right"),i.bottom&&i.left&&this._renderHandle("corner-bottom-left"),i.top&&i.right&&this._renderHandle("corner-top-right"),i.top&&i.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(t){var e=pi("<div>").addClass("dx-resizable-handle").addClass("dx-resizable-handle-"+t).appendTo(this.$element());this._handles.push(e)},_attachEventHandlers:function(){if(!this.option("disabled")){var t={};t[Zf]=this._dragStartHandler.bind(this),t[Yf]=this._dragHandler.bind(this),t[Xf]=this._dragEndHandler.bind(this),this._handles.forEach((e=>{we.on(e,t,{direction:"both",immediate:!0})}))}},_detachEventHandlers:function(){this._handles.forEach((t=>{we.off(t)}))},_toggleEventHandlers:function(t){t?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var t=this.$element();return"border-box"===t.css("boxSizing")?{width:Xt(t),height:Qt(t)}:{width:Jt(t),height:Zt(t)}},_dragStartHandler:function(t){var e=this.$element();e.is(".dx-state-disabled, .dx-state-disabled *")?t.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(t),this._elementLocation=ki(e),this._elementSize=this._getElementSize(),this._renderDragOffsets(t),this._resizeStartAction({event:t,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),t.targetElements=null)},_toggleResizingClass:function(t){this.$element().toggleClass("dx-resizable-resizing",t)},_renderDragOffsets:function(t){var e=this._getArea();if(e){var i=pi(t.target).closest(".dx-resizable-handle"),n=Xt(i),r=Qt(i),s=i.offset(),o=e.offset,a=this._getAreaScrollOffset();t.maxLeftOffset=this._leftMaxOffset=s.left-o.left-a.scrollX,t.maxRightOffset=this._rightMaxOffset=o.left+e.width-s.left-n+a.scrollX,t.maxTopOffset=this._topMaxOffset=s.top-o.top-a.scrollY,t.maxBottomOffset=this._bottomMaxOffset=o.top+e.height-s.top-r+a.scrollY}},_getBorderWidth:function(t,e){if(l(t.get(0)))return 0;var i=t.css(Qf[e]);return parseInt(i)||0},_proportionate:function(t,e){var i=this._elementSize;return e*("x"===t?i.width/i.height:i.height/i.width)},_getProportionalDelta:function(t){var{x:e,y:i}=t,n=this._proportionate("y",e);if(n>=i)return{x:e,y:n};var r=this._proportionate("x",i);return r>=e?{x:r,y:i}:{x:0,y:0}},_getDirectionName:function(t){var e=this._movingSides;return"x"===t?e.left?"left":"right":e.top?"top":"bottom"},_fitIntoArea:function(t,e){var i,n=this._getDirectionName(t);return Math.min(e,null!==(i=this["_".concat(n,"MaxOffset")])&&void 0!==i?i:1/0)},_fitDeltaProportionally:function(t){var e=se({},t),i=this._elementSize,{minWidth:n,minHeight:r,maxWidth:s,maxHeight:o}=this.option(),a=()=>i.width+e.x,h=()=>i.height+e.y,u=t=>e[t]===this._fitIntoArea(t,e[t]),l=()=>Is(a(),n,s)&&u("x"),c=()=>Is(h(),r,o)&&u("y");if(!l()){var d=this._fitIntoArea("x",Cs(a(),n,s)-i.width);e={x:d,y:this._proportionate("y",d)}}if(!c()){var f=this._fitIntoArea("y",Cs(h(),r,o)-i.height);e={x:this._proportionate("x",f),y:f}}return l()&&c()?e:{x:0,y:0}},_fitDelta:function(t){var{x:e,y:i}=t,n=this._elementSize,{minWidth:r,minHeight:s,maxWidth:o,maxHeight:a}=this.option();return{x:Cs(n.width+e,r,o)-n.width,y:Cs(n.height+i,s,a)-n.height}},_getDeltaByOffset:function(t){var e=this._movingSides,i=this._isCornerHandler(e)&&this.option("keepAspectRatio"),n={x:t.x*(e.left?-1:1),y:t.y*(e.top?-1:1)};if(i){var r=this._getProportionalDelta(n);n=this._fitDeltaProportionally(r)}else{var s=this._fitDelta(n);n=this._roundByStep(s)}return n},_updatePosition:function(t,e){var{width:i,height:n}=e,r=this._elementLocation,s=this._movingSides,o=this.$element(),a=this._getElementSize();Pi(o,{top:r.top+(s.top?t.y*(s.top?-1:1)-((a.height||n)-n):0),left:r.left+(s.left?t.x*(s.left?-1:1)-((a.width||i)-i):0)})},_dragHandler:function(t){var e=this._getOffset(t),i=this._getDeltaByOffset(e),n=this._updateDimensions(i);this._updatePosition(i,n),this._triggerResizeAction(t,n)},_updateDimensions:function(t){var e=t=>"px"===t.substring(t.length-2),i="strict"===this.option("stepPrecision"),n=this._elementSize,r=n.width+t.x,s=n.height+t.y,o=this.$element().get(0).style,a=t.x||i||e(o.width),h=t.y||i||e(o.height);return a&&this.option({width:r}),h&&this.option({height:s}),{width:a?r:n.width,height:h?s:n.height}},_triggerResizeAction:function(t,e){var{width:i,height:n}=e;this._resizeAction({event:t,width:this.option("width")||i,height:this.option("height")||n,handles:this._movingSides}),nu(this.$element())},_isCornerHandler:t=>0===Object.values(t).reduce(((t,e)=>t^e),0),_getOffset:function(t){var e=t.offset,i=this._movingSides;return i.left||i.right||(e.x=0),i.top||i.bottom||(e.y=0),e},_roundByStep:function(t){return"strict"===this.option("stepPrecision")?this._roundStrict(t):this._roundNotStrict(t)},_getSteps:function(){return _t(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(t){var e=this._getSteps();return{x:t.x-t.x%e.h,y:t.y-t.y%e.v}},_roundStrict:function(t){var e=this._movingSides,i={x:t.x*(e.left?-1:1),y:t.y*(e.top?-1:1)},n=this._getSteps(),r=this._elementLocation,s=this._elementSize,o=((e.left?r.left:r.left+s.width)+i.x)%n.h,a=((e.top?r.top:r.top+s.height)+i.y)%n.v,h=Math.sign||(t=>0==(t=+t)||isNaN(t)?t:t>0?1:-1),u=(t,e)=>(1+.2*h(e))%1*t,l=(t,e)=>Math.abs(t)<.2*e,c=i.x-o,d=i.y-a;o>u(n.h,i.x)&&(c+=n.h),a>u(n.v,i.y)&&(d+=n.v);var f=!e.left&&!e.right||l(i.x,n.h)?0:c,v=!e.top&&!e.bottom||l(i.y,n.v)?0:d;return{x:f*(e.left?-1:1),y:v*(e.top?-1:1)}},_getMovingSides:function(t){var e=pi(t.target),i=e.hasClass("dx-resizable-handle-corner-top-left"),n=e.hasClass("dx-resizable-handle-corner-top-right"),r=e.hasClass("dx-resizable-handle-corner-bottom-left"),s=e.hasClass("dx-resizable-handle-corner-bottom-right");return{top:e.hasClass("dx-resizable-handle-top")||i||n,left:e.hasClass("dx-resizable-handle-left")||i||r,bottom:e.hasClass("dx-resizable-handle-bottom")||r||s,right:e.hasClass("dx-resizable-handle-right")||n||s}},_getArea:function(){var t=this.option("area");return r(t)&&(t=t.call(this)),u(t)?this._getAreaFromObject(t):this._getAreaFromElement(t)},_getAreaScrollOffset:function(){var t=this.option("area"),e={scrollY:0,scrollX:0};if(!r(t)&&!u(t)){var i=pi(t)[0];l(i)&&(e.scrollX=i.pageXOffset,e.scrollY=i.pageYOffset)}return e},_getAreaFromObject:function(t){var e={width:t.right-t.left,height:t.bottom-t.top,offset:{left:t.left,top:t.top}};return this._correctAreaGeometry(e),e},_getAreaFromElement:function(t){var e,i=pi(t);return i.length&&(e={width:te(i),height:ee(i),offset:v({top:0,left:0},l(i[0])?{}:i.offset())},this._correctAreaGeometry(e,i)),e},_correctAreaGeometry:function(t,e){var i=e?this._getBorderWidth(e,"left"):0,n=e?this._getBorderWidth(e,"top"):0;t.offset.left+=i+this._getBorderWidth(this.$element(),"left"),t.offset.top+=n+this._getBorderWidth(this.$element(),"top"),t.width-=Xt(this.$element())-te(this.$element()),t.height-=Qt(this.$element())-ee(this.$element())},_dragEndHandler:function(t){var e=this.$element();this._resizeEndAction({event:t,width:Xt(e),height:Qt(e),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(t){this.option("width",Cs(t,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(t){this.option("height",Cs(t,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(t){switch(t.name){case"disabled":this._toggleEventHandlers(!t.value),this.callBase(t);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":Mt()&&this._renderWidth(Xt(this.$element()));break;case"minHeight":case"maxHeight":Mt()&&this._renderHeight(Qt(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(t)}},_clean:function(){this.$element().find(".dx-resizable-handle").remove()},_useTemplates:function(){return!1}});Si("dxResizable",tv);var ev=Vf.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(t){var e=new K,i=new K;this._deferredItems[t.index]=i;var n=this.callBase.call(this,t);return i.done((()=>{e.resolve(n)})),e.promise()},_createItemByTemplate(t,e){return t.render({model:e.itemData,container:e.container,index:e.index,onRendered:()=>{this._deferredItems[e.index].resolve()}})},_postProcessRenderItems:St,_renderItemsAsync(){var t=new K;return U.apply(this,this._deferredItems).done((()=>{this._postProcessRenderItems(),t.resolve()})),t.promise()},_clean(){this.callBase(),this._deferredItems=[]}}).inherit({compactMode:!1,ctor:function(t,e){this._userOptions=e||{},this.callBase(t,e),"height"in this._userOptions&&E.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((t=>"disabled"!==t))},_initTemplates:function(){this.callBase();var t=new kf(function(t,e,i){u(e)?(e.text&&t.text(e.text).wrapInner("<div>"),e.html&&t.html(e.html),"dxDropDownButton"===e.widget&&(e.options=e.options||{},n(e.options.stylingMode)||(e.options.stylingMode=this.option("useFlatButtons")?"text":"contained")),"dxButton"===e.widget&&(this.option("useFlatButtons")&&(e.options=e.options||{},e.options.stylingMode=e.options.stylingMode||"text"),this.option("useDefaultButtons")&&(e.options=e.options||{},e.options.type=e.options.type||"default"))):t.text(String(e)),this._getTemplate("dx-polymorph-widget").render({container:t,model:i,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:t,menuItem:t})},_getDefaultOptions:function(){return v(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1,multiline:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return dl()},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 t=this.$element();return new Promise((e=>{var i=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout((()=>{return n=!0,t.parents().each(((t,e)=>{if(Ur.isAnimating(pi(e)))return n=!1,!1})),n&&e(),n||i();var n}),15)};i()}))},_render:function(){this.callBase(),this._renderItemsAsync(),dl()&&Promise.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass("dx-toolbar").toggleClass("dx-toolbar-multiline",this.option("multiline")),this._$toolbarItemsContainer=pi("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var t=this._$toolbarItemsContainer,e=this;m(["before","center","after"],(function(){var i="dx-toolbar-"+this,n=t.find("."+i);n.length||(e["_$"+this+"Section"]=n=pi("<div>").addClass(i).appendTo(t))}))},_checkWebFontForLabelsLoaded:function(){var t=this.$element().find(".dx-toolbar-label"),e=[];return t.each(((t,i)=>{var n=pi(i).text(),r=pi(i).css("fontWeight");e.push(function(t,e){return new Promise((i=>{var n=()=>{clearInterval(r),clearTimeout(s),i()},r=setInterval((()=>{(function(t,e){var i=Tt.getDocument(),n=i.createElement("span");n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",n.style.visibility="hidden",n.style.fontFamily="Arial",n.style.fontSize="250px",n.style.fontWeight=e,n.innerHTML=t,i.body.appendChild(n);var r=n.offsetWidth;n.style.fontFamily="Roboto, RobotoFallback, Arial";var s=n.offsetWidth;return n.parentNode.removeChild(n),r!==s})(t,e)&&n()}),15),s=setTimeout(n,2e3)}))}(n,r))})),Promise.all(e)},_arrangeItems:function(t){t=t||Jt(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var e=Cn(this._$beforeSection.get(0)),i=Cn(this._$afterSection.get(0));this._alignCenterSection(e,i,t);var n=this._$toolbarItemsContainer.find(".dx-toolbar-label").eq(0),r=n.parent();if(n.length){var s=e.width?e.width:n.position().left,o=r.hasClass("dx-toolbar-before")?0:s,a=r.hasClass("dx-toolbar-after")?0:i.width,h=0;r.children().not(".dx-toolbar-label").each((function(){h+=Xt(this)}));var u=Math.max(t-h-o-a,0);if(r.hasClass("dx-toolbar-before"))this._alignSection(this._$beforeSection,u);else{var l=Xt(n)-Jt(n);n.css("maxWidth",u-l)}}},_alignCenterSection:function(t,e,i){this._alignSection(this._$centerSection,i-t.width-e.width);var n=this.option("rtlEnabled"),r=n?e:t,s=n?t:e,o=Cn(this._$centerSection.get(0));(r.right>o.left||o.right>s.left)&&this._$centerSection.css({marginLeft:r.width,marginRight:s.width,float:r.width>s.width?"none":"right"})},_alignSection:function(t,e){var i=t.find(".dx-toolbar-label").toArray();e-=this._getCurrentLabelsPaddings(i);var n=this._getCurrentLabelsWidth(i),r=Math.abs(n-e);e<n?(i=i.reverse(),this._alignSectionLabels(i,r,!1)):this._alignSectionLabels(i,r,!0)},_alignSectionLabels:function(t,e,i){for(var n=function(t){return Cn(t).width},r=0;r<t.length;r++){var s=pi(t[r]),o=Math.ceil(n(t[r]));i&&s.css("maxWidth","inherit");var a=Math.ceil(i?n(t[r]):o);if(!(a<e)){s.css("maxWidth",i?o+e:o-e);break}e-=a,s.css("maxWidth",i?a:0)}},_applyCompactMode:function(){var t=this.$element();t.removeClass("dx-toolbar-compact"),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>Jt(t)&&t.addClass("dx-toolbar-compact")},_getCurrentLabelsWidth:function(t){var e=0;return t.forEach((function(t){e+=Xt(t)})),e},_getCurrentLabelsPaddings:function(t){var e=0;return t.forEach((function(t){e+=Xt(t)-Jt(t)})),e},_renderItem:function(t,e,i,n){var r=!(!e.text&&!e.html),s=this.callBase(t,e,i||this["_$"+(e.location||"center")+"Section"],n);return s.toggleClass(this._buttonClass(),!r).toggleClass("dx-toolbar-label",r).addClass(e.cssClass),s},_renderGroupedItems:function(){var t=this;m(this.option("items"),(function(e,i){var n=i.items,r=pi("<div>").addClass("dx-toolbar-group"),s=i.location||"center";n&&n.length&&(m(n,(function(e,i){t._renderItem(e,i,r,null)})),t._$toolbarItemsContainer.find(".dx-toolbar-"+s).append(r))}))},_renderItems:function(t){this.option("grouped")&&t.length&&t[0].items?this._renderGroupedItems():this.callBase(t)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var t=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===t.length),this._renderItems(this._renderedItemsCount?t.slice(this._renderedItemsCount):t),this._applyCompactMode()},_renderEmptyMessage:St,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(t){t&&this._arrangeItems()},_isVisible:function(){return Jt(this.$element())>0&&Zt(this.$element())>0},_getIndexByItem:function(t){return this._getToolbarItems().indexOf(t)},_itemOptionChanged:function(t,e,i){this.callBase.apply(this,[t,e,i]),this._arrangeItems()},_optionChanged:function(t){var e=t.name;switch(e){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"multiline":this.$element().toggleClass("dx-toolbar-multiline",t.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)}});Si("dxToolbarBase",ev);var iv=Ot(),nv={observe:St,unobserve:St,disconnect:St},rv=new class{constructor(){if(!Mt()||!iv.ResizeObserver)return nv;this._callbacksMap=new Map,this._observer=new iv.ResizeObserver((t=>{t.forEach((t=>{var e;null===(e=this._callbacksMap.get(t.target))||void 0===e||e(t)}))}))}observe(t,e){this._callbacksMap.set(t,e),this._observer.observe(t)}unobserve(t){this._callbacksMap.delete(t),this._observer.unobserve(t)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}},sv=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],ov=Ot();class av extends Kc{constructor(t){var{fullScreen:e,forceApplyBindings:i,dragOutsideBoundary:n,dragAndResizeArea:r,outsideDragFactor:s}=t;super(Vu(t,sv)),this._props=se({},this._props,{fullScreen:e,forceApplyBindings:i,dragOutsideBoundary:n,dragAndResizeArea:r,outsideDragFactor:s}),this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this._lastPositionBeforeFullScreen=void 0,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set fullScreen(t){this._props.fullScreen=t,t?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set dragAndResizeArea(t){this._props.dragAndResizeArea=t,this._updateDragResizeContainer()}set dragOutsideBoundary(t){this._props.dragOutsideBoundary=t,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(t){this._props.outsideDragFactor=t,this._updateOutsideDragFactor()}updateContainer(t){super.updateContainer(t),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var t,e;this._props.fullScreen?(Pi(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(t=(e=this._props).forceApplyBindings)||void 0===t||t.call(e),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?(Pi(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):super.positionContent())}_updateOutsideDragFactor(){this._outsideDragFactor=this._getOutsideDragFactor()}_getOutsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){return this._props.dragOutsideBoundary?pi(ov):this._props.dragAndResizeArea?pi(this._props.dragAndResizeArea):on().get(0)||this._props.container?this._$markupContainer:pi(ov)}_getVisualContainer(){return this._props.fullScreen?pi(ov):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var hv=Ot(),uv=["cancel","clear","done"],lv=Mn.safari&&tc(Mn.version,[11])<0,cv={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},dv=Jc.inherit({_supportedKeys:function(){return v(this.callBase(),{upArrow:t=>{var e;null===(e=this._drag)||void 0===e||e.moveUp(t)},downArrow:t=>{var e;null===(e=this._drag)||void 0===e||e.moveDown(t)},leftArrow:t=>{var e;null===(e=this._drag)||void 0===e||e.moveLeft(t)},rightArrow:t=>{var e;null===(e=this._drag)||void 0===e||e.moveRight(t)}})},_getDefaultOptions:function(){return v(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var t=hl();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(t){return"desktop"===dn.real().deviceType&&"generic"===t.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===dn.real().deviceType&&!dn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return dl(t)},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._updateResizeCallbackSkipCondition(),this.$element().addClass("dx-popup"),this.$wrapper().addClass("dx-popup-wrapper"),this._$popupContent=this._$content.wrapInner(pi("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var t=this.option("fullScreen");this._toggleFullScreenClass(t),this.callBase()},_toggleFullScreenClass:function(t){this.$overlayContent().toggleClass("dx-popup-fullscreen",t).toggleClass("dx-popup-normal",!t)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new au,bottom:new au})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(t){this._shouldSkipContentResize(t)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var t=this.option("animation");return["to","from"].some((e=>{var i,n=null==t||null===(i=t.show)||void 0===i?void 0:i[e];return a(n)&&("width"in n||"height"in n)}))},_updateResizeCallbackSkipCondition(){var t=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=e=>t&&this._showAnimationProcessing||this._areContentDimensionsRendered(e)},_observeContentResize:function(t){if(this.option("useResizeObserver")){var e=this._$content.get(0);t?rv.observe(e,(t=>{this._contentResizeHandler(t)})):rv.unobserve(e)}},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var t=this._getToolbarItems("top"),e=this.option("title"),i=this.option("showTitle");if(i&&e&&t.unshift({location:dn.current().ios?"center":"before",text:e}),i||t.length>0){this._$title&&this._$title.remove();var n=pi("<div>").addClass("dx-popup-title").insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",t,n).addClass("dx-popup-title"),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(t,e,i,n){var{rtlEnabled:r,useDefaultToolbarButtons:s,useFlatToolbarButtons:o,disabled:a}=this.option(),h=this._getTemplateByOption(t);if(h instanceof au){var u=v({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),l=v(n,{items:e,rtlEnabled:r,useDefaultButtons:s,useFlatButtons:o,disabled:a,integrationOptions:u});this._getTemplate("dx-polymorph-widget").render({container:i,model:{widget:"dxToolbarBase",options:l}});var c=i.children("div");return i.replaceWith(c),c}var d=pi(h.render({container:Ii(i)}));return d.hasClass("dx-template-wrapper")&&(i.replaceWith(d),i=d),i},_renderVisibilityAnimate:function(t){return this._observeContentResize(t),this.callBase(t)},_executeTitleRenderAction:function(t){this._getTitleRenderAction()({titleElement:Ii(t)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(t,e,i)=>{var n=pi("<div>").addClass("dx-closebutton");this._createComponent(n,Ql,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),pi(i).append(n)}},_getToolbarItems:function(t){var e=this.option("toolbarItems"),i=[];this._toolbarItemClasses=[];var r=dn.current().platform,s=0;return m(e,((e,o)=>{var a=n(o.shortcut),h=a?(t=>{var e=dn.current().platform,i="bottom",n="before";if("ios"===e)switch(t){case"cancel":i="top";break;case"clear":i="top",n="after";break;case"done":n="after"}else if("android"===e)switch(t){case"cancel":case"done":n="after"}return{toolbar:i,location:n}})(o.shortcut):o;if(a&&"ios"===r&&s<2&&(h.toolbar="top",s++),h.toolbar=o.toolbar||h.toolbar||"top",h&&h.toolbar===t){a&&v(h,{location:o.location},this._getToolbarItemByAlias(o));var u="generic"===r;"done"===o.shortcut&&u||"cancel"===o.shortcut&&!u?i.unshift(h):i.push(h)}})),"top"===t&&this._hasCloseButton()&&i.push(this._getCloseButton()),i},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:t=>"done"===t.toLowerCase()?"OK":qe(t,!0),_getToolbarItemByAlias:function(t){var e=this,i=t.shortcut;if(!uv.includes(i))return!1;var n=v({text:Gs.format(this._getLocalizationKey(i)),onClick:this._createToolbarItemAction(t.onClick),integrationOptions:{},type:e.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:e.option("useFlatToolbarButtons")?"text":"contained"},t.options||{}),r="dx-popup-"+i;return this._toolbarItemClasses.push(r),{template:function(t,i,s){var o=pi("<div>").addClass(r).appendTo(s);e._createComponent(o,Ql,n)}}},_createToolbarItemAction:function(t){return this._createAction(t,{afterExecute:function(t){t.component.hide()}})},_renderBottom:function(){var t=this._getToolbarItems("bottom");if(t.length){this._$bottom&&this._$bottom.remove();var e=pi("<div>").addClass("dx-popup-bottom").insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",t,e,{compactMode:!0}).addClass("dx-popup-bottom"),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(t){this.callBase(...arguments),this.$content().toggleClass("dx-state-disabled",Boolean(t))},_toggleClasses:function(){m(uv,((t,e)=>{var i="dx-popup-"+e;this._toolbarItemClasses.includes(i)?(this.$wrapper().addClass(i+"-visible"),this._$bottom.addClass(i)):(this.$wrapper().removeClass(i+"-visible"),this._$bottom.removeClass(i))}))},_toggleFocusClass(t,e){if(this.callBase(t,e),t&&!(()=>Lc.length&&Lc[Lc.length-1]===this._zIndex)()){var i=zc(this._zIndexInitValue());Gc(this._zIndex),this._zIndex=i,this._$wrapper.css("zIndex",i),this._$content.css("zIndex",i)}},_getPositionControllerConfig(){var{fullScreen:t,forceApplyBindings:e,dragOutsideBoundary:i,dragAndResizeArea:n,outsideDragFactor:r}=this.option();return v({},this.callBase(),{fullScreen:t,forceApplyBindings:e,dragOutsideBoundary:i,dragAndResizeArea:n,outsideDragFactor:r})},_initPositionController(){this._positionController=new av(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(t){var{visible:e,useResizeObserver:i}=this.option();if(e&&Mt()){var n=this._showAnimationProcessing&&!(null!=t&&t.forceStopAnimation)&&i;this._isAnimationPaused=n||void 0,this._stopAnimation(),null!=t&&t.shouldOnlyReposition?this._positionController.positionContent():this._renderGeometryImpl(null==t?void 0:t.isDimensionChange),n&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt(Jt(this._$content),10),height:parseInt(Zt(this._$content),10)})},_renderGeometryImpl:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var t=this._getDragTarget(),e=this.option("dragEnabled");if(t){var i={dragEnabled:e,handle:t.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(i):this._drag=new Jf(i),this.$overlayContent().toggleClass("dx-popup-draggable",e)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,tv,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:t=>{this._resizeEndHandler(t),this._observeContentResize(!0)},onResize:t=>{this._setContentHeight(),this._actions.onResize(t)},onResizeStart:t=>{this._observeContentResize(!1),this._actions.onResizeStart(t)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(t){var e=this._resizable.option("width"),i=this._resizable.option("height");e&&this._setOptionWithoutOptionChange("width",e),i&&this._setOptionWithoutOptionChange("height",i),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(t.event),this._actions.onResizeEnd(t)},_setContentHeight:function(){(this.option("forceApplyBindings")||St)();var t=this.$overlayContent().get(0),e=this._chooseHeightStrategy(t);this.$content().css(this._getHeightCssStyles(e,t)),this._setHeightClasses(this.$overlayContent(),e)},_heightStrategyChangeOffset:function(t,e){return t===cv.flex?-e:0},_chooseHeightStrategy:function(t){var e="auto"===t.style.width||""===t.style.width,i=cv.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(i=e||lv?cv.inherit:cv.flex),i},_getHeightCssStyles:function(t,e){var i={},n=this._getOptionValue("maxHeight",e),r=this._getOptionValue("minHeight",e),s=this._splitPopupHeight(),o=s.header+s.footer+s.contentVerticalOffsets+s.popupVerticalOffsets+this._heightStrategyChangeOffset(t,s.popupVerticalPaddings);if(t===cv.static){if(!this._isAutoHeight()||n||r){var a=this.option("fullScreen")?Math.min(Cn(e).height,Ot().innerHeight):Cn(e).height;i={height:Math.max(0,a-o),minHeight:"auto",maxHeight:"auto"}}}else{var h=pi(this._positionController.$visualContainer).get(0),u=function(t,e,i){var n=Ut(t,e,i);return null!==n?n:"none"}(n,-o,h);i={height:"auto",minHeight:function(t,e,i){var n=Ut(t,e,i);return null!==n?n:0}(r,-o,h),maxHeight:u}}return i},_setHeightClasses:function(t,e){var i="";for(var n in cv)cv[n]!==e&&(i+=" "+cv[n]);t.removeClass(i).addClass(e)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var t=this.topToolbar(),e=this.bottomToolbar();return{header:qt(t&&t.get(0)),footer:qt(e&&e.get(0)),contentVerticalOffsets:jt(this.$overlayContent().get(0),!0),popupVerticalOffsets:jt(this.$content().get(0),!0),popupVerticalPaddings:jt(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(),Mt()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",Xt(this.$overlayContent())===Jt(hv))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(t){var e,i=t.value;switch(t.name){case"disabled":this.callBase(t),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),nu(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),nu(this.$overlayContent());break;case"container":var n;this.callBase(t),this.option("resizeEnabled")&&(null===(n=this._resizable)||void 0===n||n.option("area",this._positionController.$dragResizeContainer));break;case"width":case"height":this.callBase(t),null===(e=this._resizable)||void 0===e||e.option(t.name,t.value);break;case"onTitleRendered":this._createTitleRenderAction(t.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var r=!t.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),r&&(this._renderGeometry(),nu(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();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"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),nu(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=t.value,this._toggleFullScreenClass(t.value),this._toggleSafariScrolling(),this._renderGeometry(),nu(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(t)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return Ii(this.$content())},$overlayContent:function(){return this._$content}});Si("dxPopup",dv);var fv={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},vv=["shading","target","$arrow"],pv={left:-1,top:-1,center:0,right:1,bottom:1},mv={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"}},gv={h:10,v:10};class xv extends Kc{constructor(t){var{shading:e,target:i,$arrow:n}=t;super(Vu(t,vv)),this._props=se({},this._props,{shading:e,target:i}),this._$arrow=n,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(t){this._props.target=t,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){var t=_t(this._position.offset||""),{h:e,v:i}=t,n=this._isVerticalSide(),r=this._isHorizontalSide();if(n||r){var s=(this._isPopoverInside()?-1:1)*pv[this._positionSide]*((n?Zt(this._$arrow):Jt(this._$arrow))-this._getContentBorderWidth(this._positionSide));n?i+=s:e+=s}return v({},this._position,{offset:e+" "+i})}_getContentBorderWidth(t){var e=this._$content.css(fv[t]);return parseInt(e)||0}_isPopoverInside(){var t=Xn.setup.normalizeAlign(this._position.my),e=Xn.setup.normalizeAlign(this._position.at);return t.h===e.h&&t.v===e.v}_isVerticalSide(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===t||"bottom"===t}_isHorizontalSide(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===t||"right"===t}_getDisplaySide(t){var e=Xn.setup.normalizeAlign(t.my),i=Xn.setup.normalizeAlign(t.at),n=pv[e.h]===pv[i.h]&&pv[e.v]===pv[i.v]?-1:1;return Math.abs(pv[e.h]-n*pv[i.h])>Math.abs(pv[e.v]-n*pv[i.v])?i.h:i.v}_normalizePosition(t){var e,i={of:this._props.target,boundaryOffset:gv};return e=n(t)?v(!0,{},i,this._positionToObject(t)):i,this._positionSide=this._getDisplaySide(e),e}_positionToObject(t){return s(t)?v({},mv[t]):t}}var bv={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},_v=function(t){return a(t)?t.name:t},yv=function(t,e){var i=t.option(e);return _v(i)},wv=function(t,e){var{target:i,shading:n,disabled:r,hideEvent:o}=t.option(),h=s(i),u=n&&"hide"===e,l=u?null:yv(t,"".concat(e,"Event"));if(u&&o&&Uu.log("W1020"),l&&!r){var c=xr(l,t.NAME),d=t._createAction(function(){var i=function(t,e){var i=t.option(e);return a(i)&&i.delay}(t,e+"Event");this._clearEventsTimeouts(),i?this._timeouts[e]=setTimeout((function(){t[e]()}),i):t[e]()}.bind(t),{validatingTargetName:"target"}),f=function(t){d({event:t,target:pi(t.currentTarget)})},v="_"+e+"EventHandler";if(h)t[v]=f,we.on(Tt.getDocument(),c,i,f);else{var p=Ii(pi(i));t[v]=void 0,we.on(p,c,f)}}},Sv=function(t,e,i,n){var r=n||yv(t,i+"Event");if(r){r=xr(r,t.NAME);var s="_"+i+"EventHandler";t[s]?we.off(Tt.getDocument(),r,e,t[s]):we.off(Ii(pi(e)),r)}},Ev=dv.inherit({_getDefaultOptions:function(){return v(this.callBase(),{target:void 0,shading:!1,position:v({},mv.bottom),hideOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,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!Mt()},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(t){Sv(this,t,"show"),Sv(this,t,"hide")},_attachEvents:function(){wv(this,"show"),wv(this,"hide")},_renderArrow:function(){this._$arrow=pi("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(t){return!this._isOutsideClick(t)||this.callBase(t)},_isOutsideClick:function(t){return!pi(t.target).closest(this.option("target")).length},_animate:function(t){t&&t.to&&"object"==typeof t.to&&v(t.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 t=this._getContainerPosition(),e=Xn.setup(this.$overlayContent(),t),i=this._getSideByLocation(e);this._togglePositionClass("dx-position-"+i),this._toggleFlippedClass(e.h.flip,e.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(i)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionController._positionSide),Pi(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this.$content()){var t=Xn.calculate(this.$overlayContent(),this._getContainerPosition());if(t.h.oversize>0&&this._isHorizontalSide()&&!t.h.fit){var e=Jt(this.$overlayContent())-t.h.oversize;((t,e)=>{!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];$t("width",...e)}(t,e)})(this.$overlayContent(),e)}if(t.v.oversize>0&&this._isVerticalSide()&&!t.v.fit){var i=Zt(this.$overlayContent())-t.v.oversize,n=Zt(this.$content())-t.v.oversize;Yt(this.$overlayContent(),i),Yt(this.$content(),n)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_hideOnParentScrollTarget:function(){return pi(this._positionController._position.of||this.callBase())},_getSideByLocation:function(t){var e=t.v.flip,i=t.h.flip;return this._isVerticalSide()&&e||this._isHorizontalSide()&&i||this._isPopoverInside()?bv[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(t){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(t)},_toggleFlippedClass:function(t,e){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",t).toggleClass("dx-popover-flipped-vertical",e)},_renderArrowPosition:function(t){var e=Cn(this._$arrow.get(0)),i=-(this._isVerticalSide(t)?e.height:e.width);this._$arrow.css(bv[t],i);var n,r=this._isVerticalSide(t)?"left":"top",s=this._isVerticalSide(t)?"width":"height",o=pi(this._positionController._position.of),a=Xn.offset(o)||{top:0,left:0},h=Xn.offset(this.$overlayContent()),u=e[s],l=h[r],c=Cn(this.$overlayContent().get(0))[s],d=a[r],f=o.get(0),v=f&&!f.preventDefault?Cn(f)[s]:0,p=Math.max(l,d),m=Math.min(l+c,d+v);n="start"===this.option("arrowPosition")?p-l:"end"===this.option("arrowPosition")?m-l-u:(p+m)/2-l-u/2;var g=this._positionController._getContentBorderWidth(t),x=Cs(n-g+this.option("arrowOffset"),g,c-u-2*g);this._$arrow.css(r,x)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(t){t&&this.callBase()},_getPositionControllerConfig(){var{shading:t,target:e}=this.option();return v({},this.callBase(),{target:e,shading:t,$arrow:this._$arrow})},_initPositionController(){this._positionController=new xv(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(t){return this._positionController._isVerticalSide(t)},_isHorizontalSide:function(t){return this._positionController._isHorizontalSide(t)},_clearEventTimeout:function(t){clearTimeout(this._timeouts[t])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(t){switch(t.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":t.value&&this.option("fullScreen",!1);break;case"target":t.previousValue&&this._detachEvents(t.previousValue),this._positionController.updateTarget(t.value),this._invalidate();break;case"showEvent":case"hideEvent":var e=t.name.substring(0,4),i=_v(t.previousValue);this.hide(),Sv(this,this.option("target"),e,i),wv(this,e);break;case"visible":this._clearEventTimeout(t.value?"show":"hide"),this.callBase(t);break;default:this.callBase(t)}},show:function(t){return t&&this.option("target",t),this.callBase()}});Si("dxPopover",Ev);var Cv=function(t){return(t.group<<20)+t.item},Iv=function(t){return{group:t>>20,item:1048575&t}},Dv=Ff.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find(".dx-list-group")},_groupItemElements:function(t){return t.find(".dx-list-item")},getIndexByItemData:function(t){var e=this._collectionWidget.option("items"),i=!1;return!!t&&(t.items&&t.items.length&&(t=t.items[0]),m(e,(function(e,n){return!!n.items&&(m(n.items,(function(n,r){return r!==t||(i={group:e,item:n},!1)})),!i&&void 0)})),i)},getItemDataByIndex:function(t){var e=this._collectionWidget.option("items");return o(t)?this.itemsGetter()[t]:t&&e[t.group]&&e[t.group].items[t.item]||null},itemsGetter:function(){for(var t=[],e=this._collectionWidget.option("items"),i=0;i<e.length;i++)e[i]&&e[i].items?t=t.concat(e[i].items):t.push(e[i]);return t},deleteItemAtIndex:function(t){var e=Iv(t);this._collectionWidget.option("items")[e.group].items.splice(e.item,1)},getKeysByItems:function(t){var e,i=[];for(e=0;e<t.length;e++)t[e]&&t[e].items?i=i.concat(t[e].items):i.push(t[e]);var n=[];for(e=0;e<i.length;e++)n.push(this._collectionWidget.keyOf(i[e]));return n},getIndexByKey:function(t,e){var i=e||this._collectionWidget.option("items"),n=-1,r=this;return m(i,(function(e,i){if(i.items)return m(i.items,(function(i,s){var o=r._collectionWidget.keyOf(s);if(r._equalKeys(o,t))return n={group:e,item:i},!1})),-1===n&&void 0})),n},_getGroups:function(t){var e=this._collectionWidget.getDataSource(),i=e&&e.group();return i?Ld(df(t),{group:i}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(t,e){var i=[],n=this._getGroups(e),r={},s=t=>{var e=this.getIndexByKey(t,n),i=e&&n[e.group];if(i)return{groupKey:i.key,item:i.items[e.item]}};return m(t,(function(t,e){var n=s(e);if(n){var o=n.groupKey,a=n.item,h=r[o];h||(r[o]=h={key:o,items:[]},i.push(h)),h.items.push(a)}})),i},moveItemAtIndexToIndex:function(t,e){var i=this._collectionWidget.option("items"),n=Iv(t),r=Iv(e),s=i[n.group].items,o=i[r.group].items,a=s[n.item];s.splice(n.item,1),o.splice(r.item,0,a)},_isItemIndex:function(t){return t&&o(t.group)&&o(t.item)},_getNormalizedItemIndex:function(t){var e=pi(t),i=e.closest(".dx-list-group");return i.length?Cv({group:this._groupElements().index(i),item:this._groupItemElements(i).index(e)}):-1},_normalizeItemIndex:function(t){return Cv(t)},_denormalizeItemIndex:function(t){return Iv(t)},_getItemByNormalizedIndex:function(t){var e=Iv(t),i=this._groupElements().eq(e.group);return this._groupItemElements(i).eq(e.item)},_itemsFromSameParent:function(t,e){return Iv(t).group===Iv(e).group}}),Tv={},kv=[],Mv=function(t,e,i){kv.push({enabled:t,decoratorType:e,decoratorSubType:i})};Mv((function(){return this.option("menuItems").length}),(function(){return"menu"}),(function(){return this.option("menuMode")})),Mv((function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")}),(function(){var t=this.option("itemDeleteMode");return"toggle"===t||"slideButton"===t||"swipe"===t||"static"===t?"delete":"menu"}),(function(){var t=this.option("itemDeleteMode");return"slideItem"===t&&(t="slide"),t})),Mv((function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")}),(function(){return"selection"}),(function(){return"default"})),Mv((function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")}),(function(){return"reorder"}),(function(){return"default"}));var Av=O.inherit({ctor:function(t){this._list=t,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&m(this._decorators,(function(t,e){e.dispose()}))},_fetchRequiredDecorators:function(){this._decorators=[],m(kv,function(t,e){if(e.enabled.call(this._list)){var i=e.decoratorType.call(this._list),n=e.decoratorSubType.call(this._list),r=this._createDecorator(i,n);this._decorators.push(r)}}.bind(this))},_createDecorator:function(t,e){return new(this._findDecorator(t,e))(this._list)},_findDecorator:function(t,e){var i,n=null===(i=Tv[t])||void 0===i?void 0:i[e];if(!n)throw Uu.Error("E1012",t,e);return n},modifyItemElement:function(t){var e=pi(t.itemElement),i={$itemElement:e};this._prependBeforeBags(e,i),this._appendAfterBags(e,i),this._applyDecorators("modifyElement",i)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(t,e){var i=this._collectDecoratorsMarkup("beforeBag",e,"dx-list-item-before-bag");t.prepend(i)},_appendAfterBags:function(t,e){var i=this._collectDecoratorsMarkup("afterBag",e,"dx-list-item-after-bag");t.append(i)},_collectDecoratorsMarkup:function(t,e,i){var n=pi("<div>");return m(this._decorators,(function(){var r=pi("<div>").addClass(i);this[t](v({$container:r},e)),r.children().length&&n.append(r)})),n.children()},_applyDecorators:function(t,e){m(this._decorators,(function(){this[t](e)}))},_handlerExists:function(t){if(!this._decorators)return!1;for(var e=this._decorators,i=e.length,n=0;n<i;n++)if(e[n][t]!==St)return!0;return!1},_eventHandler:function(t,e,i){if(!this._decorators)return!1;for(var n=!1,r=this._decorators,s=r.length,o=0;o<s&&!(n=r[o][t](e,i));o++);return n},handleClick:function(t,e){return this._eventHandler("handleClick",t,e)},handleKeyboardEvents:function(t,e){return this._eventHandler("handleKeyboardEvents",t,e)},handleEnterPressing:function(t){return this._eventHandler("handleEnterPressing",t)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(t,e){return this._eventHandler("handleContextMenu",t,e)},getExcludedItemSelectors:function(){var t=[];return this._applyDecorators("getExcludedSelectors",t),t.join(",")}}),Ov=qf.inherit({_supportedKeys(){var t=this,e=this.callBase(),i=(i,n)=>{var r=this._editStrategy,s=this.option("focusedElement"),o=r.getNormalizedIndex(s);if(o!==this._getLastItemIndex()||!this._isDataSourceLoading())if(i.shiftKey&&t.option("itemDragging.allowReordering")){var a=r.getItemElement(o+(n?-1:1));this.reorderItem(s,a),this.scrollToItem(s),i.preventDefault()}else this._editProvider.handleKeyboardEvents(o,n)||(n?e.upArrow(i):e.downArrow(i))};return v({},e,{del:e=>{t.option("allowItemDeleting")&&(e.preventDefault(),t.deleteItem(t.option("focusedElement")))},upArrow:t=>i(t,!0),downArrow:t=>i(t),enter:function(t){this._editProvider.handleEnterPressing(t)||e.enter.apply(this,arguments)},space:function(t){this._editProvider.handleEnterPressing(t)||e.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var t=this._editProvider.getExcludedItemSelectors();t.length&&(this._itemElementsCache=this._itemElementsCache.not(t))},_isItemStrictEquals:function(t,e){var i=t&&t.__dx_key__;return!(i&&!this.key()&&this._selection.isItemSelected(i))&&this.callBase(t,e)},_getDefaultOptions(){return v(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:Gs.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:t=>"ios"===t.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new Av(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new Dv(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>"dx-list-item-selected",_itemResponseWaitClass:()=>"dx-list-item-response-wait",_itemClickHandler(t){var e=pi(t.currentTarget);e.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(e,t)||(this._saveSelectionChangeEvent(t),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(t){var e=pi(t.currentTarget);e.is(".dx-state-disabled, .dx-state-disabled *")||(dr(t)&&this._editProvider.handleContextMenu(e,t)?t.handledByEditProvider=!0:this.callBase(...arguments))},_getItemContainer:function(t){if(this.option("grouped")){var e,i=null===(e=this._editStrategy.getIndexByItemData(t))||void 0===e?void 0:e.group;return this._getGroupContainerByIndex(i)}return this.callBase(t)},_itemContextMenuHandler(t){var e=pi(t.currentTarget);e.is(".dx-state-disabled, .dx-state-disabled *")||(!t.handledByEditProvider&&this._editProvider.handleContextMenu(e,t)?t.preventDefault():this.callBase(...arguments))},_postprocessRenderItem(t){this.callBase(...arguments),this._editProvider.modifyItemElement(t)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(t){var e=this._editStrategy.getItemElement(t);this.option("focusedElement",e),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(t){switch(t.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(t);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(t)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(t){return this._itemElements().index(t)},getItemElementByFlatIndex(t){var e=this._itemElements();return t<0||t>=e.length?pi():e.eq(t)},getItemByIndex(t){return this._editStrategy.getItemDataByIndex(t)}}),Rv=("TextBox",class{constructor(){throw new Error("Module '".concat("TextBox","' not found"))}static getInstance(){}});const Fv={_getDefaultOptions:function(){return v(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var t=this.$element(),e=this.option("searchEnabled"),i=this._addWidgetPrefix("search"),n=this._addWidgetPrefix("with-search");if(!e)return t.removeClass(n),void this._removeSearchBox();var r=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(r):(t.addClass(n),this._$searchEditorElement=pi("<div>").addClass(i).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,Rv,r))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var t=this,e=t.option("searchEditorOptions"),i=Gs.format("Search");return v({mode:"search",placeholder:i,tabIndex:t.option("tabIndex"),value:t.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":i},onValueChanged:function(e){var i=t.option("searchTimeout");t._valueChangeDeferred=new K,clearTimeout(t._valueChangeTimeout),t._valueChangeDeferred.done(function(){this.option("searchValue",e.value)}.bind(t)),e.event&&"input"===e.event.type&&i?t._valueChangeTimeout=setTimeout((function(){t._valueChangeDeferred.resolve()}),i):t._valueChangeDeferred.resolve()}},e)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(t,e){this.option("searchEnabled")&&this._toggleFocusClass(e,this.$element()),this.callBase(t,e)},getOperationBySearchMode:function(t){return"equals"===t?"=":t},_cleanAria:function(t){this.setAria({role:null,activedescendant:null},t),t.attr("tabIndex",null)},_optionChanged:function(t){switch(t.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 Uu.log("W1009");"searchMode"===t.name?this._dataSource.searchOperation(this.getOperationBySearchMode(t.value)):this._dataSource[t.name](t.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(t)}},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(t){Rv=t}};var Pv=Ov.inherit(Fv).inherit({_addWidgetPrefix:function(t){return"dx-list-"+t},_getCombinedFilter:function(){var t,e,i=this._dataSource;return i&&(e={filter:i.filter()},i._addSearchFilter(e),t=e.filter),t},_initDataSource:function(){var t=this.option("searchValue"),e=this.option("searchExpr"),i=this.option("searchMode");this.callBase(),this._dataSource&&(t&&t.length&&this._dataSource.searchValue(t),i.length&&this._dataSource.searchOperation(Fv.getOperationBySearchMode(i)),e&&this._dataSource.searchExpr(e))}});Si("dxList",Pv);var Bv=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function Hv(t,e){var i;if(t){var n=t._findItemElementByItem(e);if(n.length){var r=t._getItemData(n),s=!!(null!==(i=r.options)&&void 0!==i&&i.disabled||r.disabled||t.option("disabled")),{widget:o}=r;if(o&&-1!==Bv.indexOf(o)){var a=n.find(o.toLowerCase().replace("dx",".dx-"));if(a.length){var h,u,l=function(t){var e=t.data&&t.data(),i=e&&e.dxComponents,n=i&&i[0];return n&&e[n]}(a),c="dxDropDownButton"===o?l._focusTarget().find(".".concat("dx-buttongroup")):(null==l||null===(h=l._focusTarget)||void 0===h?void 0:h.call(l))||pi(l.element()),d=null===(u=r.options)||void 0===u?void 0:u.tabIndex;c.attr("tabIndex",s?-1:d||0)}}}}}var Lv=Ot(),zv={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},Gv={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},Nv=sc.inherit({_supportedKeys:function(){var t={};return this.option("opened")&&this._list.option("focusedElement")||(t=this._button._supportedKeys()),v(this.callBase(),t,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return v(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:Pv,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"===dn.real().deviceType&&!dn.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 dl()},options:{useInkRipple:!0}}])},_initOptions:function(t){"android"===dn.current().platform&&(t.popupPosition||(t.popupPosition={at:(t.usePopover?"bottom ":"top ")+(t.rtlEnabled?"left":"right")})),this.callBase(t)},_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 hu("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 t=this.$element().addClass("dx-dropdownmenu-button"),e=this._buttonOptions();this._button=this._createComponent(t,Ql,e)},_toggleActiveState:function(t,e,i){this._button._toggleActiveState(t,e,i)},_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(t){this.option("opened",!this.option("opened")),this._buttonClickAction(t)}.bind(this)}},_toggleMenuVisibility:function(t){var e=void 0===t?!this._popup.option("visible"):t;t&&this._renderPopup(),this._popup.toggle(e),this.setAria("expanded",e)},_renderPopup:function(){if(!this._$popup){var t=this._$popup=pi("<div>").appendTo(this.$element()),e=this._popupOptions();this._popup=this._createComponent(t,Ev,e)}},_popupOptions:function(){var t=!this.option("usePopover");return{onInitialized:function(e){e.component.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",t)},deferRendering:!1,contentTemplate:function(t){this._renderList(t)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(t){"visible"===t.name&&this.option("opened",t.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(t){var e=pi(t),i=this._listOptions();e.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(e,this.option("menuWidget"),i),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var n=.5*Zt(Lv);Zt(e)>n&&Yt(e,n)},_itemOptionChanged:function(t,e,i){var n;null===(n=this._list)||void 0===n||n._itemOptionChanged(t,e,i),Hv(this._list,t)},_listOptions:function(){return{pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),itemTemplate:this.option("itemTemplate"),onItemClick:function(t){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(t)}.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(){return this.callBase().concat([this._list])},_toggleVisibility:function(t){this.callBase(t),this._button.option("visible",t)},_optionChanged:function(t){var e=t.name,i=t.value;switch(e){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(e,this._getTemplate(i));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(Gv[e],i),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(zv[e],i);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(e,i),this.callBase(t);break;case"selectionMode":case"selectedItemKeys":case"onItemRendered":this._list&&this._list.option(e,i);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(i),this._updateFocusableItemsTabIndex();break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(t.name,t.value);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:this.callBase(t)}},_updateFocusableItemsTabIndex(){this.option("items").forEach((t=>Hv(this._list,t)))},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(Ef);Si("dxDropDownMenu",Nv);class Wv{constructor(t){this._toolbar=t}render(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var t=pi("<div>").appendTo(this._dropDownMenuContainer());this._dropDownMenu=this._toolbar._createComponent(t,Nv,this._dropDownMenuOptions()),this.renderMenuItems()}}renderMenuItems(){this._dropDownMenu||this.render(),this._dropDownMenu&&this._dropDownMenu.option("items",this._getMenuItems()),this._dropDownMenu&&!this._dropDownMenu.option("items").length&&this._dropDownMenu.close()}_renderMenuButtonContainer(){var t=this._toolbar._$afterSection;this._$menuButtonContainer=pi("<div>").appendTo(t).addClass(this._toolbar._buttonClass()).addClass("dx-toolbar-menu-container")}_getMenuItemTemplate(){return this._toolbar._getTemplateByOption("menuItemTemplate")}_dropDownMenuOptions(){var t=this._toolbar._createActionByOption("onItemClick");return{disabled:this._toolbar.option("disabled"),itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(e){t(e)}.bind(this),deferRendering:!0,container:this._toolbar.option("menuContainer"),popupMaxHeight:"android"===dn.current().platform?Tt.getDocumentElement().clientHeight-20:void 0,menuWidget:$f,onOptionChanged:t=>{var{name:e,value:i}=t;"opened"===e&&this._toolbar.option("overflowMenuVisible",i),"items"===e&&this._updateMenuVisibility(i)},popupPosition:{at:"bottom right",my:"top right"}}}_updateMenuVisibility(t){var e=t||this._getMenuItems(),i=e.length&&this._hasVisibleMenuItems(e);this._toggleMenuVisibility(i)}_getMenuItems(){return this._toolbar._getMenuItems()}_hasVisibleMenuItems(t){var e=t||this._toolbar.option("items"),i=!1,n=it("visible"),r=it("locateInMenu");return m(e,(function(t,e){var s=n(e,{functionsAsIs:!0}),o=r(e,{functionsAsIs:!0});(!1===s||"auto"!==o&&"always"!==o)&&"menu"!==e.location||(i=!0)})),i}_toggleMenuVisibility(t){this._dropDownMenuContainer()&&this._dropDownMenuContainer().toggleClass("dx-state-invisible",!t)}_dropDownMenuContainer(){return this._$menuButtonContainer}widgetOption(t,e){this._dropDownMenu&&this._dropDownMenu.option(t,e)}itemOption(t,e,i){var n;"disabled"===e||"options.disabled"===e?null===(n=this._dropDownMenu)||void 0===n||n._itemOptionChanged(t,e,i):this.renderMenuItems()}}var Vv=ev.inherit({_getDefaultOptions:function(){return v(this.callBase(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1})},updateDimensions:function(){this._dimensionChanged()},_dimensionChanged:function(t){"height"!==t&&(this.callBase(),this._menu.renderMenuItems())},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({actionSheetItem:new hu("item")})},_initMarkup:function(){this.callBase(),this._updateFocusableItemsTabIndex(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menu._updateMenuVisibility(),this.callBase(),ft((()=>{this._menu.renderMenuItems()}))},_renderItem:function(t,e,i,n){var r=this.callBase(t,e,i,n);return"auto"===e.locateInMenu&&r.addClass("dx-toolbar-item-auto-hide"),"dxButton"===e.widget&&"inMenu"===e.showText&&r.toggleClass("dx-toolbar-text-auto-hide"),r},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(t){var e=this.$element().find(".dx-toolbar-item-auto-hide");if(e.length){t=t||Jt(this.$element()),pi(e).removeClass("dx-toolbar-item-invisible");for(var i=this._getItemsWidth();e.length&&t<i;){var n=e.eq(-1);i-=Xt(n),n.addClass("dx-toolbar-item-invisible"),e.splice(-1,1)}}},_getMenuItems:function(){var t=this,e=Et(this.option("items")||[],(function(e){return t._isMenuItem(e)})),i=this._itemContainer().children(".dx-toolbar-item-auto-hide.dx-toolbar-item-invisible").not(".dx-state-invisible");return this._restoreItems=this._restoreItems||[],[...[].slice.call(i).map((e=>{var i=t._getItemData(e),n=pi(e),r=n.children();return v({menuItemTemplate:function(){return t._restoreItems.push({container:n,item:r}),pi("<div>").addClass("dx-toolbar-item-auto-hide").append(r)}},i)})),...e]},_getToolbarItems:function(){var t=this;return Et(this.option("items")||[],(function(e){return!t._isMenuItem(e)}))},_renderMenu:function(){this._renderMenuStrategy(),ft((()=>{this._menu.render()}))},_renderMenuStrategy:function(){this._menu||(this._menu=new Wv(this))},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),m(this._restoreItems||[],(function(t,e){pi(e.container).append(e.item)})),this._restoreItems=[];var t=Jt(this.$element());this._hideOverflowItems(t),this.callBase(t)}},_itemOptionChanged:function(t,e,i){this._isMenuItem(t)?this._menu.itemOption(t,e,i):this._isToolbarItem(t)?this.callBase(t,e,i):(this.callBase(t,e,i),this._menu.renderMenuItems()),"disabled"!==e&&"options.disabled"!==e||Hv(this,t),"location"===e&&this.repaint()},_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach((t=>Hv(this,t)))},_isMenuItem:function(t){return"menu"===t.location||"always"===t.locateInMenu},_isToolbarItem:function(t){return void 0===t.location||"never"===t.locateInMenu},_optionChanged:function(t){var{name:e,value:i}=t;switch(e){case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(i));break;case"onItemClick":this._changeMenuOption(e,i),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",i);break;case"overflowMenuVisible":this._changeMenuOption("opened",i);break;case"disabled":this._changeMenuOption("disabled",i),this.callBase.apply(this,arguments),this._updateFocusableItemsTabIndex();break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(t,e){this._menu.widgetOption(t,e)}});Si("dxToolbar",Vv);export{pi as $,ff as A,kf as B,Vf as C,Sf as D,ou as F,H as G,Pv as L,dv as P,Vv as T,sc as W,Ql as a,n as b,it as c,K as d,v as e,Ii as f,Xt as g,Mt as h,r as i,u as j,at as k,Ef as l,Gs as m,St as n,Ci as o,Si as r}
|