UNPKG

@devexpress/utils

Version:
24 lines (22 loc) 145 kB
/*! * DevExpress Utils (dx.utils.min) * Version: 1.4.3 * Build date: Wed Apr 03 2024 * * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs */ var DevExpress="object"==typeof DevExpress?DevExpress:{};DevExpress.WebUtils=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Browser=void 0;var r=function(){function t(){}return t.IdentUserAgent=function(e,n){void 0===n&&(n=!1);var r=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],i={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(e&&0!==e.length){e=e.toLowerCase(),t.indentPlatformMajorVersion(e);try{for(var o={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},s="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",a={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+s,Mozilla:"mozilla(?:.*rv:"+s+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+s,Firefox:"firefox(?:/|\\s*)?"+s,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+s,Opera10:"opera.*\\s*version(?:/|\\s*)?"+s,IE:"msie\\s*"+s,Edge:"edge(?:/|\\s*)?"+s},u=null,c=-1,h=0;h<r.length;h++){var p=r[h],l=new RegExp(a[p],"i").exec(e);if(l&&l.index>=0){if("IE"===u&&c>=11&&"Safari"===p)continue;"Opera10"===(u=p)&&(u="Opera");c=t.GetBrowserVersion(e,l,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",t.getIECompatibleVersionString()),"Mozilla"===u&&c>=11&&(u="IE")}}u||(u="IE");var f=-1!==c;f||(c=i[u]);var d=null,m=Number.MAX_VALUE;for(var y in o)if(Object.prototype.hasOwnProperty.call(o,y)){var v="!"===y.substr(0,1),g=e.indexOf((v?y.substr(1):y).toLowerCase());g>=0&&(g<m||v)&&(m=v?0:g,d=o[y])}var b=e.toUpperCase().match("SM-[A-Z]"),x=b&&b.length>0;"WinPhone"===d&&c<9&&(c=Math.floor(t.getVersionFromTrident(e,"trident(?:/|\\s*)?"+s))),!n&&"IE"===u&&c>7&&document.documentMode<c&&(c=document.documentMode),"WinPhone"===d&&(c=Math.max(9,c)),d||(d="Win"),d!==o["cpu os"]||f||(c=4),t.fillUserAgentInfo(r,u,c,d,x)}catch(e){t.fillUserAgentInfo(r,"IE",i.IE,"Win")}}else t.fillUserAgentInfo(r,"IE",i.IE,"Win")},t.GetBrowserVersion=function(e,n,r,i){var o=t.getVersionFromMatches(n);if(i){var s=t.getVersionFromTrident(e,r);if("edge"===i||parseInt(i)===s)return s}return o},t.getIECompatibleVersionString=function(){if(document.compatible)for(var t=0;t<document.compatible.length;t++)if("IE"===document.compatible[t].userAgent&&document.compatible[t].version)return document.compatible[t].version.toLowerCase();return""},t.isTouchEnabled=function(){return t.hasTouchStart()||t.hasMaxTouchPoints()||t.hasMsMaxTouchPoints()},t.hasTouchStart=function(){return"ontouchstart"in window},t.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},t.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},t.hasNavigator=function(){return"undefined"!=typeof navigator},t.fillUserAgentInfo=function(e,n,r,i,o){void 0===o&&(o=!1);for(var s=0;s<e.length;s++){var a=e[s];t[a]=a===n}t.Version=Math.floor(10*r)/10,t.MajorVersion=Math.floor(t.Version),t.WindowsPlatform="Win"===i||"WinPhone"===i,t.MacOSMobilePlatform="MacMobile"===i||"Mac"===i&&t.isTouchEnabled(),t.MacOSPlatform="Mac"===i&&!t.MacOSMobilePlatform,t.AndroidMobilePlatform="Android"===i,t.WindowsPhonePlatform="WinPhone"===i,t.WebKitFamily=t.Safari||t.Chrome||t.Opera&&t.MajorVersion>=15,t.NetscapeFamily=t.Netscape||t.Mozilla||t.Firefox,t.WebKitTouchUI=t.MacOSMobilePlatform||t.AndroidMobilePlatform;var u=t.IE&&t.MajorVersion>9&&t.WindowsPlatform&&t.UserAgent.toLowerCase().indexOf("touch")>=0;if(t.MSTouchUI=u||t.Edge&&!!window.navigator.maxTouchPoints,t.TouchUI=t.WebKitTouchUI||t.MSTouchUI,t.MobileUI=t.WebKitTouchUI||t.WindowsPhonePlatform,t.AndroidDefaultBrowser=t.AndroidMobilePlatform&&!t.Chrome,t.AndroidChromeBrowser=t.AndroidMobilePlatform&&t.Chrome,o&&(t.SamsungAndroidDevice=o),t.MSTouchUI){var c=t.UserAgent.toLowerCase().indexOf("arm;")>-1;t.VirtualKeyboardSupported=c||t.WindowsPhonePlatform}else t.VirtualKeyboardSupported=t.WebKitTouchUI;t.fillDocumentElementBrowserTypeClassNames(e)},t.indentPlatformMajorVersion=function(e){var n=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(e);n&&(t.PlaformMajorVersion=n[1])},t.getVersionFromMatches=function(t){var e=-1,n="";return t&&(t[1]&&(n+=t[1],t[2]&&(n+="."+t[2])),""!==n&&(e=parseFloat(n),isNaN(e)&&(e=-1))),e},t.getVersionFromTrident=function(e,n){var r=new RegExp(n,"i").exec(e);return t.getVersionFromMatches(r)+4},t.fillDocumentElementBrowserTypeClassNames=function(e){for(var n="",r=e.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),i=0;i<r.length;i++){var o=r[i];t[o]&&(n+="dx"+o+" ")}n+="dxBrowserVersion-"+t.MajorVersion,"undefined"!=typeof document&&document&&document.documentElement&&(""!==document.documentElement.className&&(n=" "+n),document.documentElement.className+=n,t.Info=n)},t.getUserAgent=function(){return t.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},t.UserAgent=t.getUserAgent(),t._foo=t.IdentUserAgent(t.UserAgent),t}();e.Browser=r},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return h})),n.d(e,"__generator",(function(){return p})),n.d(e,"__createBinding",(function(){return l})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__spreadArray",(function(){return g})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return x})),n.d(e,"__asyncDelegator",(function(){return w})),n.d(e,"__asyncValues",(function(){return P})),n.d(e,"__makeTemplateObject",(function(){return _})),n.d(e,"__importStar",(function(){return T})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return I})),n.d(e,"__classPrivateFieldSet",(function(){return E})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var l=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||l(e,t,n)}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function g(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function x(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,c):h(o[0][2],n)}catch(t){h(o[0][3],t)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function h(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function P(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var M=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function T(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&l(e,t,n);return M(e,t),e}function S(t){return t&&t.__esModule?t:{default:t}}function I(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function E(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numberToStringHex=e.numberToStringBin=e.isOdd=e.isEven=e.isNonNullString=e.isString=e.isNumber=e.boolToString=e.boolToInt=e.isDefined=void 0;var r=n(3);e.isDefined=function(t){return null!=t},e.boolToInt=function(t){return t?1:0},e.boolToString=function(t){return t?"1":"0"},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isNonNullString=function(t){return!!t},e.isEven=function(t){return t%2!=0},e.isOdd=function(t){return t%2==0},e.numberToStringBin=function(t,e){return void 0===e&&(e=0),r.StringUtils.padLeft(t.toString(2),e,"0")},e.numberToStringHex=function(t,e){return void 0===e&&(e=0),r.StringUtils.padLeft(t.toString(16),e,"0")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtils=void 0;var r=function(){function t(){}return t.isAlpha=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"},t.isDigit=function(t){return t>="0"&&t<="9"},t.stringHashCode=function(t){var e=0;if(0===t.length)return e;for(var n=t.length,r=0;r<n;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e},t.endsAt=function(t,e){var n=t.length-1,r=e.length-1,i=n-r;if(i<0)return!1;for(;n>=i;n--,r--)if(t[n]!==e[r])return!1;return!0},t.startsAt=function(t,e){return t.substr(0,e.length)===e},t.stringInLowerCase=function(t){return t.toLowerCase()===t},t.stringInUpperCase=function(t){return t.toUpperCase()===t},t.atLeastOneSymbolInUpperCase=function(e){for(var n=0,r=void 0;r=e[n];n++)if(t.stringInUpperCase(r)&&!t.stringInLowerCase(r))return!0;return!1},t.getSymbolFromEnd=function(t,e){return t[t.length-e]},t.trim=function(e,n){if(void 0===n)return t.trimInternal(e,!0,!0);var r=n.join("");return e.replace(new RegExp("(^["+r+"]*)|(["+r+"]*$)","g"),"")},t.trimStart=function(e,n){if(void 0===n)return t.trimInternal(e,!0,!1);var r=n.join("");return e.replace(new RegExp("^["+r+"]*","g"),"")},t.trimEnd=function(e,n){if(void 0===n)return t.trimInternal(e,!1,!0);var r=n.join("");return e.replace(new RegExp("["+r+"]*$","g"),"")},t.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},t.repeat=function(t,e){return new Array(e<=0?0:e+1).join(t)},t.isNullOrEmpty=function(t){return!t||!t.length},t.padLeft=function(e,n,r){return t.repeat(r,Math.max(0,n-e.length))+e},t.trimInternal=function(t,e,n){var r=t.length;if(!r)return t;if(r<764833){var i=t;return e&&(i=i.replace(/^\s+/,"")),n&&(i=i.replace(/\s+$/,"")),i}var o=0;if(n)for(;r>0&&/\s/.test(t[r-1]);)r--;if(e&&r>0)for(;o<r&&/\s/.test(t[o]);)o++;return t.substring(o,r)},t}();e.StringUtils=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Point=void 0;var r=function(){function t(t,e){this.x=t,this.y=e}return t.zero=function(){return new t(0,0)},t.fromNumber=function(e){return new t(e,e)},t.prototype.isZero=function(){return 0===this.x&&0===this.y},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y},t.prototype.offset=function(t,e){return this.x+=t,this.y+=e,this},t.prototype.offsetByPoint=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.multiply=function(t,e){return this.x*=t,this.y*=e,this},t.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},t.prototype.applyConverter=function(t){return this.x=t(this.x),this.y=t(this.y),this},t.plus=function(e,n){return new t(e.x+n.x,e.y+n.y)},t.minus=function(e,n){return new t(e.x-n.x,e.y-n.y)},t.xComparer=function(t,e){return t.x-e.x},t.yComparer=function(t,e){return t.y-e.y},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}();e.Point=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtendedMinMax=e.ExtendedMax=e.ExtendedMin=e.MinMaxNumber=e.MinMax=void 0;var r=n(1),i=function(t,e){this.minElement=t,this.maxElement=e};e.MinMax=i;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),e}(i);e.MinMaxNumber=o;var s=function(t,e){this.minElement=t,this.minValue=e};e.ExtendedMin=s;var a=function(t,e){this.maxElement=t,this.maxValue=e};e.ExtendedMax=a;var u=function(t){function e(e,n,r,i){var o=t.call(this,e,r)||this;return o.minValue=n,o.maxValue=i,o}return r.__extends(e,t),e}(i);e.ExtendedMinMax=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MathUtils=void 0;var r=n(7),i=function(){function t(){}return t.round=function(e,n){void 0===n&&(n=0);var r=t.powFactor[n];return Math.round(e*r)/r},t.numberCloseTo=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n},t.restrictValue=function(t,e,n){return n<e&&(n=e),t>n?n:t<e?e:t},t.getRandomInt=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},t.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},t.powFactor=r.ListUtils.initByCallback(20,(function(t){return Math.pow(10,t)})),t.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],t}();e.MathUtils=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListUtils=void 0;var r=n(5),i=n(26),o=function(){function t(){}return t.remove=function(t,e){var n=t.indexOf(e,0);n>=0&&t.splice(n,1)},t.removeBy=function(t,e){for(var n=t.length,r=0;r<n;r++)if(e(t[r],r))return t.splice(r,1)[0];return null},t.shallowCopy=function(t){return t.slice()},t.deepCopy=function(e){return t.map(e,(function(t){return t.clone()}))},t.initByValue=function(t,e){for(var n=[];t>0;t--)n.push(e);return n},t.initByCallback=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},t.forEachOnInterval=function(t,e){for(var n=t.end,r=t.start;r<n;r++)e(r)},t.reverseForEachOnInterval=function(t,e){for(var n=t.start,r=t.end-1;r>=n;r--)e(r)},t.reducedMap=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=[],o=n;o<r;o++){var s=e(t[o],o);null!==s&&i.push(s)}return i},t.filter=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=[],o=n;o<r;o++){var s=t[o];e(s,o)&&i.push(s)}return i},t.map=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=[],o=n;o<r;o++)i.push(e(t[o],o));return i},t.indexBy=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=n;i<r;i++)if(e(t[i],i))return i;return-1},t.reverseIndexBy=function(t,e,n,r){void 0===n&&(n=t.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(e(t[i],i))return i;return-1},t.elementBy=function(e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);var o=t.indexBy(e,n,r,i);return o<0?null:e[o]},t.reverseElementBy=function(e,n,r,i){void 0===r&&(r=e.length-1),void 0===i&&(i=0);var o=t.reverseIndexBy(e,n,r,i);return o<0?null:e[o]},t.last=function(t){return t[t.length-1]},t.setLast=function(t,e){return t[t.length-1]=e},t.incLast=function(t){return++t[t.length-1]},t.decLast=function(t){return--t[t.length-1]},t.equals=function(e,n){return e.length===n.length&&t.allOf2(e,n,(function(t,e){return t.equals(e)}))},t.equalsByReference=function(t,e){var n=t.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0},t.unique=function(e,n,r,i){void 0===r&&(r=n),void 0===i&&(i=function(){});var o=e.length;if(0===o)return[];var s=(e=e.sort(n))[0],a=t.reducedMap(e,(function(t){return 0!==r(s,t)?(s=t,t):(i(t),null)}),1,o);return a.unshift(e[0]),a},t.uniqueNumber=function(t){t=t.sort(i.Comparers.number);for(var e=Number.NaN,n=t.length-1;n>=0;n--)e===t[n]?t.splice(n,1):e=t[n];return t},t.forEach=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=n;i<r;i++)e(t[i],i)},t.forEach2=function(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);for(var o=r;o<i;o++)n(t[o],e[o],o)},t.reverseForEach=function(t,e,n,r){void 0===n&&(n=t.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)e(t[i],i)},t.reverseIndexOf=function(t,e,n,r){void 0===n&&(n=t.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(t[i]===e)return i;return-1},t.accumulate=function(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);for(var o=e,s=r;s<i;s++)o=n(o,t[s],s);return o},t.accumulateNumber=function(t,e,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=t.length);for(var o=n,s=r;s<i;s++)o+=e(t[s],s,o);return o},t.anyOf=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=n;i<r;i++)if(e(t[i],i))return!0;return!1},t.unsafeAnyOf=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=n;i<r;i++){var o=e(t[i],i);if(o)return o}return null},t.reverseAnyOf=function(t,e,n,r){void 0===n&&(n=t.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(e(t[i],i))return!0;return!1},t.unsafeReverseAnyOf=function(t,e,n,r){void 0===n&&(n=t.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--){var o=e(t[i],i);if(o)return o}return null},t.anyOf2=function(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);for(var o=r;o<i;o++)if(n(t[o],e[o],o))return!0;return!1},t.allOf=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var i=n;i<r;i++)if(!e(t[i],i))return!1;return!0},t.allOf2=function(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);for(var o=r;o<i;o++)if(!n(t[o],e[o],o))return!1;return!0},t.allOfOnInterval=function(t,e){for(var n=t.end,r=t.start;r<n;r++)if(!e(r))return!1;return!0},t.addListOnTail=function(t,e){for(var n=0,r=void 0;r=e[n];n++)t.push(r);return t},t.joinLists=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.accumulate(n,[],(function(n,r){return t.addListOnTail(n,e(r)),n}))},t.push=function(t,e){return t.push(e),t},t.countIf=function(e,n){return t.accumulateNumber(e,(function(t,e){return n(t,e)?1:0}))},t.clear=function(t){t.splice(0)},t.merge=function(t,e,n,r,i,o){if(void 0===i&&(i=0),void 0===o&&(o=t.length),t=t.slice(i,o),o-i<2)return t;for(var s=(t=t.sort(e))[i],a=[s],u=i+1;u<o;u++){var c=t[u];n(s,c)?r(s,c):(s=c,a.push(s))}return a},t.min=function(e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);var o=t.minExtended(e,n,r,i);return o?o.minElement:null},t.max=function(e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);var o=t.maxExtended(e,n,r,i);return o?o.maxElement:null},t.minMax=function(e,n,i,o){void 0===i&&(i=0),void 0===o&&(o=e.length);var s=t.minMaxExtended(e,n,i,o);return s?new r.MinMax(s.minElement,s.maxElement):null},t.minExtended=function(t,e,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),0===t.length)return null;for(var o=t[n],s=e(o),a=n+1;a<i;a++){var u=t[a],c=e(u);c<s&&(s=c,o=u)}return new r.ExtendedMin(o,s)},t.maxExtended=function(t,e,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),0===t.length)return null;for(var o=t[n],s=e(o),a=n+1;a<i;a++){var u=t[a],c=e(u);c>s&&(s=c,o=u)}return new r.ExtendedMax(o,s)},t.minMaxExtended=function(t,e,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),0===t.length)return null;for(var o=t[n],s=o,a=e(o),u=a,c=n+1;c<i;c++){var h=t[c],p=e(h);p<a?(a=p,o=h):p>u&&(u=p,s=h)}return new r.ExtendedMinMax(o,a,s,u)},t.minByCmp=function(t,e,n,r){if(void 0===n&&(n=0),void 0===r&&(r=t.length),0===t.length)return null;for(var i=t[n],o=n+1;o<r;o++){var s=t[o];e(s,i)<0&&(i=s)}return i},t.maxByCmp=function(t,e,n,r){if(void 0===n&&(n=0),void 0===r&&(r=t.length),0===t.length)return null;for(var i=t[n],o=n+1;o<r;o++){var s=t[o];e(s,i)>0&&(i=s)}return i},t.minMaxByCmp=function(t,e,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),0===t.length)return null;for(var o=t[n],s=o,a=n+1;a<i;a++){var u=t[a],c=e(u,o);c>0?s=u:c<0&&(o=u)}return new r.MinMax(o,s)},t}();e.ListUtils=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TouchUtils=void 0;var r=n(0),i=n(2),o=function(){function t(){}return t.onEventAttachingToDocument=function(e,n){return!r.Browser.MacOSMobilePlatform||!t.isTouchEventName(e)||(t.documentTouchHandlers[e]||(t.documentTouchHandlers[e]=[]),t.documentTouchHandlers[e].push(n),t.documentEventAttachingAllowed)},t.isTouchEventName=function(t){return r.Browser.WebKitTouchUI&&(t.indexOf("touch")>-1||t.indexOf("gesture")>-1)},t.isTouchEvent=function(t){return r.Browser.WebKitTouchUI&&i.isDefined(t.changedTouches)},t.getEventX=function(t){return r.Browser.IE?t.pageX:t.changedTouches[0].pageX},t.getEventY=function(t){return r.Browser.IE?t.pageY:t.changedTouches[0].pageY},t.touchMouseDownEventName=r.Browser.WebKitTouchUI?"touchstart":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",t.touchMouseUpEventName=r.Browser.WebKitTouchUI?"touchend":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",t.touchMouseMoveEventName=r.Browser.WebKitTouchUI?"touchmove":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",t.msTouchDraggableClassName="dxMSTouchDraggable",t.documentTouchHandlers={},t.documentEventAttachingAllowed=!0,t}();e.TouchUtils=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchUtils=void 0;var r=function(){function t(){}return t.binaryIndexOf=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=-2);var i=0===n;for(-2===r&&(r=t.length-1);n<=r;){var o=n+(r-n>>1),s=e(t[o]);if(s<0)n=o+1;else{if(!(s>0))return o;r=o-1}}return i?~n:-1},t.normedBinaryIndexOf=function(e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=-2);var o=t.binaryIndexOf(e,n,r,i);return t.binaryIndexNormalizator(o)},t.binaryIndexNormalizator=function(t){return t<0?~t-1:t},t.normedInterpolationIndexOf=function(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=-2),-2===i&&(i=t.length-1);var o=t[Math.min(r,i)];if(void 0===o||n<e(o))return-1;for(var s=e(t[r]),a=e(t[i]);;){if(!(n>s&&n<a))return n===s?r:i;var u=r+Math.floor((n-s)*(i-r)/(a-s)),c=e(t[u]);if(n>c){if(n<(s=e(t[r=u+1])))return u}else{if(!(n<c))return u;a=e(t[i=u-1])}}},t}();e.SearchUtils=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateUtils=void 0;var r=function(){function t(){}return t.fixTimezoneGap=function(t,e){var n=e.getHours()-t.getHours();if(0!==n){var r=1===n||-23===n?-1:1,i=new Date(e.getTime()+36e5*r);e.getHours()-i.getHours()===n&&(r>0||i.getDate()===e.getDate())&&e.setTime(i.getTime())}},t.expandTwoDigitYear=function(t,e){return(t+=1900)+99<e.twoDigitYearMax&&(t+=100),t},t.toUtcTime=function(e){var n=new Date;return n.setTime(e.valueOf()+t.getTimeZoneOffset(e)),n},t.getTimeZoneOffset=function(t){var e=t.getUTCFullYear(),n=new Date(e,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds());return e<100&&n.setFullYear(e),n.valueOf()-t.valueOf()},t}();e.DateUtils=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateFormatter=void 0;var r=n(23),i=n(3),o=n(10),s=function(){function t(t){this.date=new Date(2e3,0,1),this.mask="",this.specifiers={},this.spPositions=[],this.parserKeys=[],this.savedYear=-1,this.isYearParsed=!1,this.parsedMonth=-1,this.knownSpecifiers=["d","M","y","H","h","m","s","f","F","g","t"],this.replacers={d:this.replaceDay,M:this.replaceMonth,y:this.replaceYear,H:this.replaceHours23,h:this.replaceHours12,m:this.replaceMinutes,s:this.replaceSeconds,F:this.replaceMsTrimmed,f:this.replaceMs,g:this.replaceEra,t:this.replaceAmPm},this.parsers={d:this.parseDay,M:this.parseMonth,y:this.parseYear,H:this.parseHours,h:this.parseHours,m:this.parseMinutes,s:this.parseSeconds,F:this.parseMs,f:this.parseMs,g:this.parseEra,t:this.parseAmPm},this.options=t}return t.prototype.setFormatString=function(t){2===t.length&&"%"===t.charAt(0)&&(t=t.charAt(1));var e=!!t&&-1!==t.indexOf(this.options.ds);this.specifiers={},this.spPositions=[],this.mask="";for(var n=0,r=0,i=!1,o=!1,s="",a="",u=0;;u++){var c=t.charAt(u);if(""===c){s.length>0&&this.registerSpecifier(r,s,e);break}"\\"!==c||o?(o||"'"!==c&&'"'!==c?(i||("/"===c?c=this.options.ds:":"===c?c=this.options.ts:this.isKnownSpecifier(c)&&(0===a.length&&(a=c),c===a?s+=c:(s.length>0&&this.registerSpecifier(r,s,e),s=c,r=u-n))),this.mask+=c):(i=!i,n++),o=!1):(o=!0,n++),a=c}this.spPositions.reverse()},t.prototype.format=function(t){this.date=t;for(var e=this.mask,n=0,r=this.spPositions;n<r.length;n++){var i=r[n],o=this.specifiers[i],s=o.substr(0,1);this.replacers[s]&&(e=e.substr(0,i)+this.replacers[s].call(this,o.length)+e.substr(i+o.length))}return e},t.prototype.parse=function(t,e){var n=new Date;this.savedYear=n.getFullYear(),this.isYearParsed=!1,this.parsedMonth=-1,this.date=new Date(2e3,0,n.getDate()),this.strToParse=t,this.catchNumbers(t),this.hasAmPm=!1;for(var r=0,i=this.spPositions;r<i.length;r++){var o=i[r],s=this.specifiers[o],a=s.substr(0,1);if(this.parsers[a]&&(e&&this.parserKeys.push(a),!this.parsers[a].call(this,s.length)))return!1}return!(this.hasAmPm&&!this.fixHours())&&(this.isYearParsed||this.date.setFullYear(this.savedYear),this.parsedMonth<0&&(this.parsedMonth=n.getMonth()),this.applyMonth(),this.date)},t.prototype.hasYear=function(){return this.hasParserKey("y")},t.prototype.hasMonth=function(){return this.hasParserKey("M")},t.prototype.hasDay=function(){return this.hasParserKey("d")},t.prototype.hasHours=function(){return this.hasParserKey("h")||this.hasParserKey("H")},t.prototype.hasMinutes=function(){return this.hasParserKey("m")},t.prototype.hasSeconds=function(){return this.hasParserKey("s")},t.prototype.hasMilliseconds=function(){return this.hasParserKey("f")||this.hasParserKey("F")},t.prototype.hasParserKey=function(t){return-1!==this.parserKeys.indexOf(t)},t.expandPredefinedFormat=function(t,e){switch(t){case"d":return e.shortDate;case"D":return e.longDate;case"t":return e.shortTime;case"T":return e.longTime;case"g":return e.shortDate+" "+e.shortTime;case"f":return e.longDate+" "+e.shortTime;case"G":return e.shortDate+" "+e.longTime;case"F":case"U":return e.longDate+" "+e.longTime;case"M":case"m":return e.monthDay;case"Y":case"y":return e.yearMonth;case"O":case"o":return"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffff";case"R":case"r":return"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'";case"s":return"yyyy'-'MM'-'dd'T'HH':'mm':'ss";case"u":return"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"}return t},t.prototype.applyMonth=function(){for(var t,e=this.date.getDate();(t=new Date).setTime(this.date.getTime()),t.setMonth(this.parsedMonth),t.getMonth()!==this.parsedMonth;)--e,this.date.setDate(e);o.DateUtils.fixTimezoneGap(this.date,t),this.date=t},t.prototype.registerSpecifier=function(t,e,n){if(this.options.ds.length>1&&this.mask&&!n){var r=this.mask.split(this.options.ds);r&&(r.length>0&&""===r[r.length-1]&&r.pop(),t+=(r.length-1)*(this.options.ds.length-1))}this.spPositions.push(t),this.specifiers[t]=e},t.prototype.replaceDay=function(t){if(t<3){var e=this.date.getDate().toString();return 2===t?this.padLeft(e,2):e}return 3===t?this.options.abbrDayNames[this.date.getDay()]:this.options.dayNames[this.date.getDay()]},t.prototype.replaceMonth=function(t){var e=1+this.date.getMonth();switch(t){case 1:return e.toString();case 2:return this.padLeft(e.toString(),2);case 3:return this.options.abbrMonthNames[e-1];default:for(var n in this.specifiers)if(Object.prototype.hasOwnProperty.call(this.specifiers,n)){var r=this.specifiers[n];if("d"===r||"dd"===r)return this.options.genMonthNames[e-1]}return this.options.monthNames[e-1]}},t.prototype.replaceYear=function(t){var e=this.date.getFullYear();return t<=2&&(e%=100),this.padLeft(e.toString(),t)},t.prototype.replaceHours23=function(t){var e=this.date.getHours().toString();return t>1?this.padLeft(e,2):e},t.prototype.replaceHours12=function(t){var e=this.date.getHours()%12;0===e&&(e=12);var n=e.toString();return t>1?this.padLeft(n,2):n},t.prototype.replaceMinutes=function(t){var e=this.date.getMinutes().toString();return t>1?this.padLeft(e,2):e},t.prototype.replaceSeconds=function(t){var e=this.date.getSeconds().toString();return t>1?this.padLeft(e,2):e},t.prototype.replaceMsTrimmed=function(t){return this.formatMs(t,!0)},t.prototype.replaceMs=function(t){return this.formatMs(t,!1)},t.prototype.replaceEra=function(t){return"A.D."},t.prototype.replaceAmPm=function(t){var e=this.date.getHours()<12?this.options.am:this.options.pm;return t<2?e.charAt(0):e},t.prototype.catchNumbers=function(t){var e=this;this.parseNumbers=[];for(var n,i=/\d+/g;n=i.exec(t);)this.parseNumbers.push(this.parseDecInt(n[0]));var o=0,s=new Date;r.StringMapUtils.forEach(this.specifiers,(function(t){if("string"==typeof t&&e.isNumericSpecifier(t)&&(o++,e.parseNumbers.length<o)){var n=0;"y"===t.charAt(0)&&(n=s.getFullYear()),e.parseNumbers.push(n)}}));var a=this.parseNumbers.length-o;a>0&&this.parseNumbers.splice(o,a),this.currentParseNumber=this.parseNumbers.length-1},t.prototype.popParseNumber=function(){return this.parseNumbers[this.currentParseNumber--]},t.prototype.findAbbrMonth=function(){return this.findMonthCore(this.options.abbrMonthNames)},t.prototype.findFullMonth=function(){return this.findMonthCore(this.options.genMonthNames)},t.prototype.findMonthCore=function(t){for(var e=this.strToParse.toLowerCase(),n=0;n<t.length;n++){var r=t[n].toLowerCase();if(r.length>0&&e.indexOf(r)>-1)return this.strToParse=this.strToParse.replace(new RegExp(r,"gi"),i.StringUtils.repeat(" ",r.length)),1+n}return!1},t.prototype.parseDay=function(t){if(t<3){var e=this.popParseNumber();if(e<1||e>31)return!1;this.date.setDate(e)}return!0},t.prototype.parseMonth=function(t){var e;switch(t){case 1:case 2:e=this.popParseNumber();break;case 3:e=this.findAbbrMonth();break;default:e=this.findFullMonth()}return!(!1===e||e<1||e>12)&&(this.parsedMonth=e-1,!0)},t.prototype.parseYear=function(t){var e=this.popParseNumber();return!(e>9999)&&(e<100&&(e=o.DateUtils.expandTwoDigitYear(e,this.options)),this.date.setFullYear(e),this.isYearParsed=!0,!0)},t.prototype.parseHours=function(t){var e=this.popParseNumber();return!(e>23)&&(this.date.setHours(e),!0)},t.prototype.parseMinutes=function(t){var e=this.parseMinSecCore();return-1!==e&&(this.date.setMinutes(e),!0)},t.prototype.parseSeconds=function(t){var e=this.parseMinSecCore();return-1!==e&&(this.date.setSeconds(e),!0)},t.prototype.parseMs=function(t){t>3&&(t=3);for(var e=1,n=0;n<t;n++)e*=10;e-=1;for(var r=this.popParseNumber();r>e;)r/=10;return this.date.setMilliseconds(Math.round(r)),!0},t.prototype.parseEra=function(t){return!0},t.prototype.parseAmPm=function(t){return this.hasAmPm=this.options.am.length>0&&this.options.pm.length>0,!0},t.prototype.parseDecInt=function(t){return parseInt(t,10)},t.prototype.padLeft=function(t,e){for(;t.length<e;)t="0"+t;return t},t.prototype.formatMs=function(t,e){var n=Math.floor(this.date.getMilliseconds()*Math.pow(10,t-3)),r=this.padLeft(n.toString(),t);if(e){for(var i=r.length-1,o=!1;"0"===r.charAt(i);)o=!0,i--;o&&(r=r.substring(0,i+1))}return r},t.prototype.parseMinSecCore=function(){var t=this.popParseNumber();return t>59?-1:t},t.prototype.fixHours=function(){var t=this.getAmPmState(this.strToParse,!1);if(!t)return!0;var e=this.date.getHours();switch(t){case"P":if(e>12)return!1;e<12&&this.date.setHours(12+e);break;case"A":12===e&&this.date.setHours(0)}return!0},t.prototype.getAmPmState=function(t,e){var n=this.options.am.charAt(0).toLowerCase(),r=this.options.pm.charAt(0).toLowerCase(),i=new RegExp(n,"gi").exec(t),o=new RegExp(r,"gi").exec(t),s=i?i.length:0,a=o?o.length:0,u=s>0;return u!==a>0&&s<2&&a<2?u?"A":"P":e?null:(t=t.replace(new RegExp(this.getDayMonthNameReplacePattern(),"gi"),""),this.getAmPmState(t,!0))},t.prototype.getDayMonthNameReplacePattern=function(){return this.dayMonthNameReplacePattern?this.dayMonthNameReplacePattern:this.createDayMonthNameReplacePattern()},t.prototype.createDayMonthNameReplacePattern=function(){var t=[];return t.push("(?:"),t.push(this.createReplacePattern(this.options.monthNames)),t.push(this.createReplacePattern(this.options.genMonthNames)),t.push(this.createReplacePattern(this.options.abbrMonthNames)),t.push(this.createReplacePattern(this.options.abbrDayNames)),t.push(this.createReplacePattern(this.options.dayNames)),t.push(")"),t.join("")},t.prototype.createReplacePattern=function(t){return t&&t.length>0?"\\b"+t.join("\\b|\\b")+"\\b":""},t.prototype.isNumericSpecifier=function(t){var e=t.charAt(0);return!("g"===e||"t"===e||("M"===e||"d"===e)&&t.length>2)},t.prototype.isKnownSpecifier=function(t){return t=t.charAt(0),-1!==this.knownSpecifiers.indexOf(t)},t}();e.DateFormatter=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Int32Constants=e.Constants=void 0;var r=function(){function t(){}return t.MIN_SAFE_INTEGER=-(Math.pow(2,53)-1),t.MAX_SAFE_INTEGER=Math.pow(2,53)-1,t.MAX_BYTE=Math.pow(2,8)-1,t}();e.Constants=r;var i=function(){function t(){}return t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647,t}();e.Int32Constants=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Offsets=void 0;var r=function(){function t(t,e,n,r){this.left=t,this.right=e,this.top=n,this.bottom=r}return t.empty=function(){return new t(0,0,0,0)},Object.defineProperty(t.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!1,configurable:!0}),t.fromNumber=function(e){return new t(e,e,e,e)},t.fromOffsets=function(e){return new t(e.left,e.right,e.top,e.bottom)},t.fromSide=function(e,n){return new t(e,e,n,n)},t.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},t.prototype.offset=function(t){return this.left+=t.left,this.right+=t.right,this.top+=t.top,this.bottom+=t.bottom,this},t.prototype.multiply=function(t,e,n,r){switch(arguments.length){case 1:return this.left*=t,this.right*=t,this.top*=t,this.bottom*=t,this;case 2:return this.left*=t,this.right*=t,this.top*=e,this.bottom*=e,this;case 4:return this.left*=t,this.right*=e,this.top*=n,this.bottom*=r,this}return this},t.prototype.clone=function(){return new t(this.left,this.right,this.top,this.bottom)},t.prototype.copyFrom=function(t){this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom},t.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.right===t.right&&this.left===t.left},t.prototype.applyConverter=function(t){return this.left=t(this.left),this.right=t(this.right),this.top=t(this.top),this.bottom=t(this.bottom),this},t}();e.Offsets=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Vector=void 0;var r=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e}return Object.defineProperty(t.prototype,"length",{get:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},enumerable:!1,configurable:!0}),t.fromPoints=function(e,n){return new t(n.x-e.x,n.y-e.y)},t.fromSegment=function(e){return new t(e.endPoint.x-e.startPoint.x,e.endPoint.y-e.startPoint.y)},t.prototype.normalize=function(){var t=this.length;return 0!==t&&(this.x/=t,this.y/=t),this},t.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},Object.defineProperty(t,"axisX",{get:function(){return new t(1,0)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"axisY",{get:function(){return new t(0,1)},enumerable:!1,configurable:!0}),t.angleBetween=function(e,n){var r=t.scalarProduct(e,n)/(e.length*n.length);return Math.acos(r)},t.scalarProduct=function(t,e){return t.x*e.x+t.y*e.y},t}();e.Vector=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Segment=void 0;var r=n(6),i=n(27),o=n(4),s=n(16),a=function(){function t(t,e){this.startPoint=t,this.endPoint=e}return Object.defineProperty(t.prototype,"length",{get:function(){return i.Metrics.euclideanDistance(this.startPoint,this.endPoint)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xLength",{get:function(){return Math.abs(this.endPoint.x-this.startPoint.x)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yLength",{get:function(){return Math.abs(this.endPoint.y-this.startPoint.y)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return new o.Point(this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2)},enumerable:!1,configurable:!0}),t.prototype.isIntersected=function(t){return this.startPoint.equals(t.startPoint)||this.endPoint.equals(t.startPoint)||this.startPoint.equals(t.endPoint)||this.endPoint.equals(t.endPoint)||this.intersectCore(t)&&t.intersectCore(this)},t.prototype.containsPoint=function(t,e){return void 0===e&&(e=1e-7),this.startPoint.equals(t)||this.endPoint.equals(t)||r.MathUtils.numberCloseTo(this.length,i.Metrics.euclideanDistance(this.startPoint,t)+i.Metrics.euclideanDistance(this.endPoint,t),e)},t.prototype.isIntersectedByRect=function(e){if(s.Rectangle.containsPoint(e,this.startPoint)||s.Rectangle.containsPoint(e,this.endPoint))return!0;var n=e.x,r=e.x+e.width,i=e.y,a=e.y+e.height;return this.isIntersected(new t(new o.Point(n,i),new o.Point(n,a)))||this.isIntersected(new t(new o.Point(r,i),new o.Point(r,a)))||this.isIntersected(new t(new o.Point(n,i),new o.Point(r,i)))||this.isIntersected(new t(new o.Point(n,a),new o.Point(r,a)))},t.prototype.intersectCore=function(t){if(this.startPoint.x===this.endPoint.x){if(this.startPoint.x-t.endPoint.x!=0)return(this.startPoint.x-t.startPoint.x)/(this.startPoint.x-t.endPoint.x)<=0;if(t.endPoint.y-this.endPoint.y!=0)return(t.endPoint.y-this.startPoint.y)/(t.endPoint.y-this.endPoint.y)<=0}if(this.startPoint.y===this.endPoint.y){if(this.startPoint.y-t.endPoint.y!=0)return(this.startPoint.y-t.startPoint.y)/(this.startPoint.y-t.endPoint.y)<=0;if(t.endPoint.x-this.endPoint.x!=0)return(t.endPoint.x-this.startPoint.x)/(t.endPoint.x-this.endPoint.x)<=0}var e=(this.endPoint.y-this.startPoint.y)/(this.endPoint.x-this.startPoint.x),n=this.startPoint.y+(t.startPoint.x-this.startPoint.x)*e,r=this.startPoint.y+(t.endPoint.x-this.startPoint.x)*e,i=t.startPoint.y-n,o=t.endPoint.y-r;return 0===i&&0===o?(this.startPoint.y-n)/(this.endPoint.y-n)<=0||(this.startPoint.y-r)/(this.endPoint.y-r)<=0:0===i||0===o||i/o<0},t}();e.Segment=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RectangleDeviation=e.HitTestDeviation=e.Rectangle=void 0;var r,i=n(22),o=n(28),s=n(17),a=n(4),u=n(32),c=function(){function t(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return t.center(this)},enumerable:!1,configurable:!0}),t.prototype.createRectangle=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.createSize=function(){return new u.Size(this.width,this.height)},t.prototype.createPosition=function(){return new a.Point(this.x,this.y)},t.prototype.createVerticalInterval=function(){return new s.FixedInterval(this.y,this.height)},t.prototype.createHorizontalInterval=function(){return new s.FixedInterval(this.x,this.width)},t.fromGeometry=function(e,n){return new t(e.x,e.y,n.width,n.height)},t.fromPoints=function(e,n){return new t(Math.min(e.x,n.x),Math.min(e.y,n.y),Math.abs(e.x-n.x),Math.abs(e.y-n.y))},t.fromPositions=function(e,n,r,i){return new t(Math.min(e,r),Math.min(n,i),Math.abs(r-e),Math.abs(i-n))},t.fromCenter=function(e,n){return new t(e.x-n,e.y-n,2*n,2*n)},t.prototype.isCollapsed=function(){return 0===this.width||0===this.height},t.prototype.isEmpty=function(){return 0===this.x&&0===this.y&&0===this.width&&0===this.height},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.setPosition=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.setSize=function(t){return this.width=t.width,this.height=t.height,this},t.prototype.setGeomerty=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.moveRectangle=function(t,e){return this.x+=t,this.y+=e,this},t.prototype.moveRectangleByPoint=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.resize=function(t,e){return this.width+=t,this.height+=e,this},t.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},t.prototype.multiply=function(t,e){return this.x*=t,this.y*=e,this.width*=t,this.height*=e,this},t.prototype.equals=function(e){return t.equals(this,e)},t.prototype.clone=function(){var e=new t(0,0,0,0);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},t.prototype.containsPoint=function(e){return t.containsPoint(this,e)},t.prototype.containsRectangle=function(t){return this.x<=t.x&&this.right>=t.right&&this.y<=t.y&&this.bottom>=t.bottom},t.prototype.inflate=function(t,e){return void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.applyOffsetsInside=function(t){return this.x+=t.left,this.y+=t.top,this.width-=t.left+t.right,this.height-=t.top+t.bottom,this},t.prototype.applyNormalizedOffsetsInside=function(t){var e=Math.max(0,t.left),n=e+Math.max(0,t.right);0!==n&&(n<=this.width?(this.x+=e,this.width-=n):(this.x+=this.width*(e/n),this.width=0));var r=Math.max(0,t.top),i=r+Math.max(0,t.bottom);return 0!==i&&(i<=this.height?(this.y+=r,this.height-=i):(this.y+=this.height*(r/i),this.height=0)),this},t.prototype.applyOffsetsOutside=function(t){return this.x-=t.left,this.y-=t.top,this.width+=t.left+t.right,this.height+=t.top+t.bottom,this},t.prototype.applyConverter=function(t){return this.x=t(this.x),this.y=t(this.y),this.width=t(this.width),this.height=t(this.height),this},t.getHorizIntersection=function(t,e){return o.IntervalAlgorithms.getIntersection(new s.FixedInterval(t.x,t.width),new s.FixedInterval(e.x,e.width))},t.getVertIntersection=function(t,e){return o.IntervalAlgorithms.getIntersection(new s.FixedInterval(t.y,t.height),new s.FixedInterval(e.y,e.height))},t.getIntersection=function(e,n){var r=o.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.x,e.width),new s.FixedInterval(n.x