handsontable 0.0.0-next-b93689a-20230110 → 0.0.0-next-4fd87f2-20230117
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +7 -1
- package/core.mjs +7 -1
- package/dataMap/metaManager/metaSchema.js +1 -1
- package/dataMap/metaManager/metaSchema.mjs +1 -1
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +25 -7
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +25 -7
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/shortcuts/manager.js +9 -0
- package/shortcuts/manager.mjs +9 -0
- package/shortcuts/recorder.js +3 -0
- package/shortcuts/recorder.mjs +3 -0
@@ -25,10 +25,10 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 14/12/2022 (built at
|
28
|
+
* Version: 0.0.0-next-4fd87f2-20230117
|
29
|
+
* Release date: 14/12/2022 (built at 17/01/2023 08:51:54)
|
30
30
|
*/
|
31
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=635)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(269),o=n(93),i=n(691);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(421);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(88),o=n(167),i=n(173),a=n(106),s=n(71).f,l=n(266),u=n(268),c=n(121),d=n(57),h=a.set,f=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){h(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(270).charAt,o=n(62),i=n(106),a=n(266),s=n(268),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(4),s=n(126),l=n(47),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)h(r[f]&&r[f].prototype,f);h(i,"DOMTokenList")},function(e,t,n){n(692)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(743),s=n(422),l=n(61),u=n(56),c=n(123),d=n(29),h=o("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!d((function(){h((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!g)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:f),v=i(e,d,t);return u(v)?v:d}})},function(e,t,n){var r=n(566);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14).default,o=n(33);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.clone=function(e){var t={};return u(e,(function(e,n){t[n]=e})),t},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){var n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=l,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.objectEach=u,t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))};var o=r(n(26)),i=r(n(14));n(147),n(31),n(41),n(1),n(23);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(48),n(5),n(20),n(22),n(39),n(35),n(1),n(31),n(41),n(4),n(52),n(6),n(51),n(726)},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(29),i=n(88),a=n(116).f,s=n(57),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()},t.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.empty=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,t.getCaretPosition=function(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getComputedStyle=R,t.getCssTransform=function(e){var t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];if(e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"]))return["-webkit-transform",t];return-1},t.getFrameElement=d,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getParentWindow=function(e){return d(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return C(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(t);return e.scrollTop},t.getScrollableElement=function(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===v&&(v=w(e));return v},t.getSelectionEndPosition=function(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0},t.getSelectionText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.getStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getWindowScrollLeft=C,t.getWindowScrollTop=T,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=S,t.isOutsideInput=O,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r])},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.selectElementIfAllowed=function(e){O(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.setOverlayPosition=function(e,t,n){(0,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(32));n(419),n(31),n(41),n(39),n(22),n(35),n(1),n(148),n(51),n(98),n(83),n(149),n(82),n(20),n(23);var i,a,s,l=n(107),u=n(94),c=n(84);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var p=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};i=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}else{var g=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&g(t).test(e.className)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!g(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o[n];)r=r.replace(g(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return u})),n.d(t,"CellValueNoNumber",(function(){return c})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return h})),n.d(t,"CellValueDetailedType",(function(){return f})),n.d(t,"CellValueTypeOrd",(function(){return p})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return m})),n.d(t,"getCellValueFormat",(function(){return v})),n.d(t,"CellError",(function(){return y})),n.d(t,"simpleRowAddress",(function(){return E})),n.d(t,"invalidSimpleRowAddress",(function(){return T})),n.d(t,"simpleColumnAddress",(function(){return C})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return w})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return O})),n.d(t,"addressKey",(function(){return b})),n.d(t,"isSimpleCellAddress",(function(){return A})),n.d(t,"absoluteSheetReference",(function(){return N})),n.d(t,"equalSimpleCellAddress",(function(){return M}));var r,o,i=n(111),a=n(34),s=n(42),l=n(70);!function(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));const u=(e,t)=>e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY;var c,d;!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(c||(c={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));const h=Object.assign(Object.assign({},c),d),f=Object.assign(Object.assign({},c),s.NumberType),p=e=>{switch(e){case h.EMPTY:return 0;case h.NUMBER:return 1;case h.STRING:return 2;case h.BOOLEAN:return 3;case h.ERROR:return 4}throw new Error("Cell value not computed")},g=e=>{if(e===s.EmptyValue)return h.EMPTY;if(e instanceof y||e instanceof l.SimpleRangeValue)return h.ERROR;if("string"==typeof e)return h.STRING;if(Object(s.isExtendedNumber)(e))return h.NUMBER;if("boolean"==typeof e)return h.BOOLEAN;throw new Error("Cell value not computed")},m=e=>Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e),v=e=>Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0;class y{constructor(e,t,n){this.type=e,this.message=t,this.root=n}static parsingError(){return new y(r.ERROR,a.ErrorMessage.ParseError)}attachRootVertex(e){return void 0===this.root?new y(this.type,this.message,e):this}}const E=(e,t)=>({sheet:e,row:t}),T=e=>e.row<0,C=(e,t)=>({sheet:e,col:t}),R=e=>e.col<0,w=(e,t,n)=>({sheet:e,col:t,row:n}),S=e=>e.col<0||e.row<0,O=(e,t,n,r)=>w(t,e.col+n,e.row+r),b=e=>`${e.sheet},${e.row},${e.col}`;function A(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}const N=(e,t)=>{var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=(e,t)=>e.sheet===t.sheet&&e.col===t.col&&e.row===t.row},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=t.FILTERS_LABELS_DISJUNCTION=t.FILTERS_LABELS_CONJUNCTION=t.FILTERS_DIVS_FILTER_BY_VALUE=t.FILTERS_DIVS_FILTER_BY_CONDITION=t.FILTERS_CONDITIONS_YESTERDAY=t.FILTERS_CONDITIONS_TOMORROW=t.FILTERS_CONDITIONS_TODAY=t.FILTERS_CONDITIONS_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_LESS_THAN=t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_GREATER_THAN=t.FILTERS_CONDITIONS_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="ContextMenu:items",o="".concat(r,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=o;var i="".concat(r,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=i;var a="".concat(r,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(r,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(r,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var d="".concat(r,".undo");t.CONTEXTMENU_ITEMS_UNDO=d;var h="".concat(r,".redo");t.CONTEXTMENU_ITEMS_REDO=h;var f="".concat(r,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var p="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=p;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var m="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=m;var v="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=v;var y="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=y;var E="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=E;var T="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=T;var C="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=C;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var w="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=w;var S="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=S;var O="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=O;var b="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b;var A="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=A;var N="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=N;var M="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=M;var I="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=I;var _="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var k="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=k;var P="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=P;var x="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=x;var L="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=L;var D="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var F="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=F;var U="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=U;var H="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=H;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var j="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=j;var B="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;var Y="".concat(r,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=Y;var G="".concat(r,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=G;var z="".concat(r,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=z;var K="".concat(r,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=K;t.FILTERS_NAMESPACE="Filters:";var X="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=X;var q="".concat(X,".none");t.FILTERS_CONDITIONS_NONE=q;var $="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=$;var Q="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=Q;var Z="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var J="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=J;var ee="".concat(X,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=ee;var te="".concat(X,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=te;var ne="".concat(X,".contains");t.FILTERS_CONDITIONS_CONTAINS=ne;var re="".concat(X,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=re;var oe="".concat(X,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=oe;var ie="".concat(X,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ie;var ae="".concat(X,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ae;var se="".concat(X,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=se;var le="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=le;var ue="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ue;var ce="".concat(X,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ce;var de="".concat(X,".after");t.FILTERS_CONDITIONS_AFTER=de;var he="".concat(X,".before");t.FILTERS_CONDITIONS_BEFORE=he;var fe="".concat(X,".today");t.FILTERS_CONDITIONS_TODAY=fe;var pe="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=pe;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var me="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=me;var ve="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ve;var ye="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ye;var Ee="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ee;var Te="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=Te;var Ce="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ce;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var we="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=we;var Se="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var Oe="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Oe;var be="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=be;var Ae="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Ae},function(e,t,n){var r=n(790);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(29),i=n(145),a=n(56),s=n(81),l=n(92),u=n(408),c=n(144),d=n(278),h=n(179),f=n(47),p=n(168),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=h("concat"),y=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!v},{concat:function(e){var t,n,r,o,i,a=s(this),h=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?a:arguments[t],y(i))for(o=l(i),u(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else u(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(401),o=n(701),i=n(279),a=n(403);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(178),i=n(264).indexOf,a=n(146),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:l||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(715),s=n(126),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!g(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="0.0.0-next-b93689a-20230110",a="invalid",s="invalid",l=function(e){var t=[][m],n=t;if(e[m]!==T("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=T(o.shift());i;i=T(o.shift()||"A"))--i<""[m]?n|=(y("".concat(y(v(r)+(v(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=C(e||""));if(r||o||l)if(l){var u=(0,h.default)("14/12/2022","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),d=v(E(C(f=e),v("12"),T("F")))/(v(E(C(f),T("B"),~~![][m]))||9);n=(0,h.default)(864e5*(d+1),"x").format("MMMM DD, YYYY"),c>d?(a="expired",s="expired"):(a="valid",s="valid")}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";var f;"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(a="valid",s="valid");if(!R&&"valid"!==a){w[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](w[a]({keyValidityDate:n,hotVersion:i})),R=!0}if("valid"!==s&&t.parentNode){if(S[s]({keyValidityDate:n,hotVersion:i})){var p=document.createElement("div");p.className="hot-display-license-info",p.innerHTML=S[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(p,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=p,t.stringify=function(e){var t;switch((0,d.default)(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var o=r(n(64));n(1),n(98),n(728),n(51),n(82),n(424);var i,a,s,l,u,c,d=r(n(14)),h=r(n(95)),f=n(66);function p(e){return void 0===e}function g(e){return null===e||""===e||p(e)}var m="length",v=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},T=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,w={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."])))},non_commercial:function(){return""}},S={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.default)(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(44),o=n(116).f,i=n(126),a=n(93),s=n(263),l=n(386),u=n(213);e.exports=function(e,t){var n,c,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(421);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),n.d(t,"ArgumentTypes",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(77),i=n(17),a=n(34),s=n(60),l=n(100),u=n(42),c=n(70);!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));class d{constructor(e){this.coerceScalarToNumberOrError=e=>this.arithmeticHelper.coerceScalarToNumberOrError(e),this.runFunction=(e,t,n,o)=>{var s,l,u,d,h;let f,p=n.parameters||[];if(f=n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1]),void 0===n.repeatLastArgs&&p.length<f.length)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);if(void 0!==n.repeatLastArgs&&p.length<f.length&&(f.length-p.length)%n.repeatLastArgs!=0)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(p=[...p];p.length<f.length;)p.push(...p.slice(p.length-n.repeatLastArgs));let g=1,m=1;if(!n.vectorizationForbidden&&t.arraysFlag)for(let e=0;e<f.length;e++){const[t]=f[e];t instanceof c.SimpleRangeValue&&p[e].argumentType!==r.RANGE&&p[e].argumentType!==r.ANY&&(m=Math.max(m,t.height()),g=Math.max(g,t.width()))}for(let e=f.length;e<p.length;e++)if(void 0===(null===(s=p[e])||void 0===s?void 0:s.defaultValue)&&!(null===(l=p[e])||void 0===l?void 0:l.optionalArg))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const v=[];for(let e=0;e<m;e++){const s=[];for(let l=0;l<g;l++){let v=void 0;const y=[];for(let o=0;o<p.length;o++){let[s,g]=null!==(u=f[o])&&void 0!==u?u:[void 0,void 0];s instanceof c.SimpleRangeValue&&p[o].argumentType!==r.RANGE&&p[o].argumentType!==r.ANY&&!n.vectorizationForbidden&&t.arraysFlag&&(s=null===(d=s.data[1!==s.height()?e:0])||void 0===d?void 0:d[1!==s.width()?l:0]);const m=null!=s?s:null===(h=p[o])||void 0===h?void 0:h.defaultValue;if(void 0===m)y.push(void 0);else{const e=void 0!==s?this.coerceToType(m,p[o],t):m;void 0!==e?(e instanceof i.CellError&&p[o].argumentType!==r.SCALAR&&(v=null!=v?v:e),y.push(e)):g||(v=null!=v?v:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType))}}const E=null!=v?v:this.returnNumberWrapper(o(...y),n.returnNumberType);if(1===m&&1===g)return E;if(E instanceof c.SimpleRangeValue)throw"Function returning array cannot be vectorized.";s.push(E)}v.push(s)}return c.SimpleRangeValue.onlyValues(v)},this.runFunctionWithReferenceArgument=(e,t,n,r,l,u=(()=>new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)))=>{if(0===e.length)return this.returnNumberWrapper(r(),n.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);let c,d=e[0];for(;d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)c=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{c=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==c?this.returnNumberWrapper(l(c),n.returnNumberType):this.runFunction(e,t,n,u)},this.interpreter=e,this.dependencyGraph=e.dependencyGraph,this.columnSearch=e.columnSearch,this.config=e.config,this.serialization=e.serialization,this.arraySizePredictor=e.arraySizePredictor,this.dateTimeHelper=e.dateTimeHelper,this.arithmeticHelper=e.arithmeticHelper}evaluateAst(e,t){return this.interpreter.evaluateAst(e,t)}arraySizeForAst(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}listOfScalarValues(e,t){const n=[];for(const r of e){const e=this.evaluateAst(r,t);if(e instanceof c.SimpleRangeValue)for(const t of e.valuesFromTopLeftCorner())n.push([t,!0]);else n.push([e,!1])}return n}coerceToType(e,t,n){let o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:{const t=Object(l.coerceRangeToScalar)(e,n);if(void 0===t)return;e=t}}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:const n=this.coerceScalarToNumberOrError(e);if(!Object(u.isExtendedNumber)(n)){o=n;break}const s=Object(u.getRawValue)(n);if(void 0!==t.maxValue&&s>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&s<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&s>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&s<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(s))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=n;break;case r.STRING:o=Object(l.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(l.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(l.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(u.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(u.getRawValue)(o)}metadata(e){const t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error(`No metadata for function ${e}.`)}returnNumberWrapper(e,t,n){return void 0!==t&&Object(u.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(u.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return r})),n.d(t,"NoSheetWithNameError",(function(){return o})),n.d(t,"SheetNameAlreadyTakenError",(function(){return i})),n.d(t,"SheetSizeLimitExceededError",(function(){return a})),n.d(t,"NotAFormulaError",(function(){return s})),n.d(t,"InvalidAddressError",(function(){return l})),n.d(t,"InvalidArgumentsError",(function(){return u})),n.d(t,"SheetsNotEqual",(function(){return c})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return d})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return h})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return f})),n.d(t,"NoOperationToUndoError",(function(){return p})),n.d(t,"NoOperationToRedoError",(function(){return g})),n.d(t,"NothingToPasteError",(function(){return m})),n.d(t,"UnableToParseError",(function(){return y})),n.d(t,"ExpectedValueOfTypeError",(function(){return E})),n.d(t,"ConfigValueEmpty",(function(){return T})),n.d(t,"ConfigValueTooSmallError",(function(){return C})),n.d(t,"ConfigValueTooBigError",(function(){return R})),n.d(t,"ExpectedOneOfValuesError",(function(){return w})),n.d(t,"EvaluationSuspendedError",(function(){return S})),n.d(t,"MissingTranslationError",(function(){return O})),n.d(t,"ProtectedFunctionTranslationError",(function(){return b})),n.d(t,"LanguageNotRegisteredError",(function(){return A})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return N})),n.d(t,"FunctionPluginValidationError",(function(){return M})),n.d(t,"ProtectedFunctionError",(function(){return I})),n.d(t,"SourceLocationHasArrayError",(function(){return _})),n.d(t,"TargetLocationHasArrayError",(function(){return k})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return P})),n.d(t,"AliasAlreadyExisting",(function(){return x}));
|
31
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=635)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(269),o=n(93),i=n(691);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(421);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(88),o=n(167),i=n(173),a=n(106),s=n(71).f,l=n(266),u=n(268),c=n(121),d=n(57),h=a.set,f=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){h(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(270).charAt,o=n(62),i=n(106),a=n(266),s=n(268),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(4),s=n(126),l=n(47),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)h(r[f]&&r[f].prototype,f);h(i,"DOMTokenList")},function(e,t,n){n(692)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(743),s=n(422),l=n(61),u=n(56),c=n(123),d=n(29),h=o("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!d((function(){h((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!g)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:f),v=i(e,d,t);return u(v)?v:d}})},function(e,t,n){var r=n(566);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14).default,o=n(33);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.clone=function(e){var t={};return u(e,(function(e,n){t[n]=e})),t},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){var n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=l,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.objectEach=u,t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))};var o=r(n(26)),i=r(n(14));n(147),n(31),n(41),n(1),n(23);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(48),n(5),n(20),n(22),n(39),n(35),n(1),n(31),n(41),n(4),n(52),n(6),n(51),n(726)},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25),o=n(29),i=n(88),a=n(116).f,s=n(57),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()},t.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.empty=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,t.getCaretPosition=function(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getComputedStyle=R,t.getCssTransform=function(e){var t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];if(e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"]))return["-webkit-transform",t];return-1},t.getFrameElement=d,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getParentWindow=function(e){return d(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return C(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(t);return e.scrollTop},t.getScrollableElement=function(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===v&&(v=w(e));return v},t.getSelectionEndPosition=function(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0},t.getSelectionText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.getStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getWindowScrollLeft=C,t.getWindowScrollTop=T,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=S,t.isOutsideInput=O,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r])},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.selectElementIfAllowed=function(e){O(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.setOverlayPosition=function(e,t,n){(0,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(32));n(419),n(31),n(41),n(39),n(22),n(35),n(1),n(148),n(51),n(98),n(83),n(149),n(82),n(20),n(23);var i,a,s,l=n(107),u=n(94),c=n(84);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var p=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};i=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(p(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}else{var g=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&g(t).test(e.className)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!g(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o[n];)r=r.replace(g(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return u})),n.d(t,"CellValueNoNumber",(function(){return c})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return h})),n.d(t,"CellValueDetailedType",(function(){return f})),n.d(t,"CellValueTypeOrd",(function(){return p})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return m})),n.d(t,"getCellValueFormat",(function(){return v})),n.d(t,"CellError",(function(){return y})),n.d(t,"simpleRowAddress",(function(){return E})),n.d(t,"invalidSimpleRowAddress",(function(){return T})),n.d(t,"simpleColumnAddress",(function(){return C})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return w})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return O})),n.d(t,"addressKey",(function(){return b})),n.d(t,"isSimpleCellAddress",(function(){return A})),n.d(t,"absoluteSheetReference",(function(){return N})),n.d(t,"equalSimpleCellAddress",(function(){return M}));var r,o,i=n(111),a=n(34),s=n(42),l=n(70);!function(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));const u=(e,t)=>e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY;var c,d;!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(c||(c={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));const h=Object.assign(Object.assign({},c),d),f=Object.assign(Object.assign({},c),s.NumberType),p=e=>{switch(e){case h.EMPTY:return 0;case h.NUMBER:return 1;case h.STRING:return 2;case h.BOOLEAN:return 3;case h.ERROR:return 4}throw new Error("Cell value not computed")},g=e=>{if(e===s.EmptyValue)return h.EMPTY;if(e instanceof y||e instanceof l.SimpleRangeValue)return h.ERROR;if("string"==typeof e)return h.STRING;if(Object(s.isExtendedNumber)(e))return h.NUMBER;if("boolean"==typeof e)return h.BOOLEAN;throw new Error("Cell value not computed")},m=e=>Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e),v=e=>Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0;class y{constructor(e,t,n){this.type=e,this.message=t,this.root=n}static parsingError(){return new y(r.ERROR,a.ErrorMessage.ParseError)}attachRootVertex(e){return void 0===this.root?new y(this.type,this.message,e):this}}const E=(e,t)=>({sheet:e,row:t}),T=e=>e.row<0,C=(e,t)=>({sheet:e,col:t}),R=e=>e.col<0,w=(e,t,n)=>({sheet:e,col:t,row:n}),S=e=>e.col<0||e.row<0,O=(e,t,n,r)=>w(t,e.col+n,e.row+r),b=e=>`${e.sheet},${e.row},${e.col}`;function A(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}const N=(e,t)=>{var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=(e,t)=>e.sheet===t.sheet&&e.col===t.col&&e.row===t.row},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=t.FILTERS_LABELS_DISJUNCTION=t.FILTERS_LABELS_CONJUNCTION=t.FILTERS_DIVS_FILTER_BY_VALUE=t.FILTERS_DIVS_FILTER_BY_CONDITION=t.FILTERS_CONDITIONS_YESTERDAY=t.FILTERS_CONDITIONS_TOMORROW=t.FILTERS_CONDITIONS_TODAY=t.FILTERS_CONDITIONS_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_LESS_THAN=t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_GREATER_THAN=t.FILTERS_CONDITIONS_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="ContextMenu:items",o="".concat(r,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=o;var i="".concat(r,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=i;var a="".concat(r,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(r,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(r,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var d="".concat(r,".undo");t.CONTEXTMENU_ITEMS_UNDO=d;var h="".concat(r,".redo");t.CONTEXTMENU_ITEMS_REDO=h;var f="".concat(r,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var p="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=p;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var m="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=m;var v="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=v;var y="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=y;var E="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=E;var T="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=T;var C="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=C;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var w="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=w;var S="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=S;var O="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=O;var b="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b;var A="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=A;var N="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=N;var M="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=M;var I="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=I;var _="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var k="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=k;var P="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=P;var x="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=x;var L="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=L;var D="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var F="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=F;var U="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=U;var H="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=H;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var j="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=j;var B="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;var Y="".concat(r,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=Y;var G="".concat(r,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=G;var z="".concat(r,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=z;var K="".concat(r,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=K;t.FILTERS_NAMESPACE="Filters:";var X="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=X;var q="".concat(X,".none");t.FILTERS_CONDITIONS_NONE=q;var $="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=$;var Q="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=Q;var Z="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var J="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=J;var ee="".concat(X,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=ee;var te="".concat(X,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=te;var ne="".concat(X,".contains");t.FILTERS_CONDITIONS_CONTAINS=ne;var re="".concat(X,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=re;var oe="".concat(X,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=oe;var ie="".concat(X,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ie;var ae="".concat(X,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ae;var se="".concat(X,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=se;var le="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=le;var ue="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ue;var ce="".concat(X,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ce;var de="".concat(X,".after");t.FILTERS_CONDITIONS_AFTER=de;var he="".concat(X,".before");t.FILTERS_CONDITIONS_BEFORE=he;var fe="".concat(X,".today");t.FILTERS_CONDITIONS_TODAY=fe;var pe="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=pe;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var me="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=me;var ve="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ve;var ye="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ye;var Ee="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ee;var Te="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=Te;var Ce="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ce;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var we="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=we;var Se="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var Oe="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Oe;var be="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=be;var Ae="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Ae},function(e,t,n){var r=n(790);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(29),i=n(145),a=n(56),s=n(81),l=n(92),u=n(408),c=n(144),d=n(278),h=n(179),f=n(47),p=n(168),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=h("concat"),y=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!v},{concat:function(e){var t,n,r,o,i,a=s(this),h=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?a:arguments[t],y(i))for(o=l(i),u(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else u(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(401),o=n(701),i=n(279),a=n(403);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(25),o=n(178),i=n(264).indexOf,a=n(146),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:l||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(44),o=n(398),i=n(399),a=n(715),s=n(126),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!g(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="0.0.0-next-4fd87f2-20230117",a="invalid",s="invalid",l=function(e){var t=[][m],n=t;if(e[m]!==T("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=T(o.shift());i;i=T(o.shift()||"A"))--i<""[m]?n|=(y("".concat(y(v(r)+(v(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=C(e||""));if(r||o||l)if(l){var u=(0,h.default)("14/12/2022","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),d=v(E(C(f=e),v("12"),T("F")))/(v(E(C(f),T("B"),~~![][m]))||9);n=(0,h.default)(864e5*(d+1),"x").format("MMMM DD, YYYY"),c>d?(a="expired",s="expired"):(a="valid",s="valid")}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";var f;"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(a="valid",s="valid");if(!R&&"valid"!==a){w[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](w[a]({keyValidityDate:n,hotVersion:i})),R=!0}if("valid"!==s&&t.parentNode){if(S[s]({keyValidityDate:n,hotVersion:i})){var p=document.createElement("div");p.className="hot-display-license-info",p.innerHTML=S[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(p,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=p,t.stringify=function(e){var t;switch((0,d.default)(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var o=r(n(64));n(1),n(98),n(728),n(51),n(82),n(424);var i,a,s,l,u,c,d=r(n(14)),h=r(n(95)),f=n(66);function p(e){return void 0===e}function g(e){return null===e||""===e||p(e)}var m="length",v=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},T=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,w={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."])))},non_commercial:function(){return""}},S={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.default)(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(44),o=n(116).f,i=n(126),a=n(93),s=n(263),l=n(386),u=n(213);e.exports=function(e,t){var n,c,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(421);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),n.d(t,"ArgumentTypes",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(77),i=n(17),a=n(34),s=n(60),l=n(100),u=n(42),c=n(70);!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));class d{constructor(e){this.coerceScalarToNumberOrError=e=>this.arithmeticHelper.coerceScalarToNumberOrError(e),this.runFunction=(e,t,n,o)=>{var s,l,u,d,h;let f,p=n.parameters||[];if(f=n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1]),void 0===n.repeatLastArgs&&p.length<f.length)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);if(void 0!==n.repeatLastArgs&&p.length<f.length&&(f.length-p.length)%n.repeatLastArgs!=0)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(p=[...p];p.length<f.length;)p.push(...p.slice(p.length-n.repeatLastArgs));let g=1,m=1;if(!n.vectorizationForbidden&&t.arraysFlag)for(let e=0;e<f.length;e++){const[t]=f[e];t instanceof c.SimpleRangeValue&&p[e].argumentType!==r.RANGE&&p[e].argumentType!==r.ANY&&(m=Math.max(m,t.height()),g=Math.max(g,t.width()))}for(let e=f.length;e<p.length;e++)if(void 0===(null===(s=p[e])||void 0===s?void 0:s.defaultValue)&&!(null===(l=p[e])||void 0===l?void 0:l.optionalArg))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const v=[];for(let e=0;e<m;e++){const s=[];for(let l=0;l<g;l++){let v=void 0;const y=[];for(let o=0;o<p.length;o++){let[s,g]=null!==(u=f[o])&&void 0!==u?u:[void 0,void 0];s instanceof c.SimpleRangeValue&&p[o].argumentType!==r.RANGE&&p[o].argumentType!==r.ANY&&!n.vectorizationForbidden&&t.arraysFlag&&(s=null===(d=s.data[1!==s.height()?e:0])||void 0===d?void 0:d[1!==s.width()?l:0]);const m=null!=s?s:null===(h=p[o])||void 0===h?void 0:h.defaultValue;if(void 0===m)y.push(void 0);else{const e=void 0!==s?this.coerceToType(m,p[o],t):m;void 0!==e?(e instanceof i.CellError&&p[o].argumentType!==r.SCALAR&&(v=null!=v?v:e),y.push(e)):g||(v=null!=v?v:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType))}}const E=null!=v?v:this.returnNumberWrapper(o(...y),n.returnNumberType);if(1===m&&1===g)return E;if(E instanceof c.SimpleRangeValue)throw"Function returning array cannot be vectorized.";s.push(E)}v.push(s)}return c.SimpleRangeValue.onlyValues(v)},this.runFunctionWithReferenceArgument=(e,t,n,r,l,u=(()=>new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)))=>{if(0===e.length)return this.returnNumberWrapper(r(),n.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);let c,d=e[0];for(;d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)c=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{c=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==c?this.returnNumberWrapper(l(c),n.returnNumberType):this.runFunction(e,t,n,u)},this.interpreter=e,this.dependencyGraph=e.dependencyGraph,this.columnSearch=e.columnSearch,this.config=e.config,this.serialization=e.serialization,this.arraySizePredictor=e.arraySizePredictor,this.dateTimeHelper=e.dateTimeHelper,this.arithmeticHelper=e.arithmeticHelper}evaluateAst(e,t){return this.interpreter.evaluateAst(e,t)}arraySizeForAst(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}listOfScalarValues(e,t){const n=[];for(const r of e){const e=this.evaluateAst(r,t);if(e instanceof c.SimpleRangeValue)for(const t of e.valuesFromTopLeftCorner())n.push([t,!0]);else n.push([e,!1])}return n}coerceToType(e,t,n){let o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:{const t=Object(l.coerceRangeToScalar)(e,n);if(void 0===t)return;e=t}}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:const n=this.coerceScalarToNumberOrError(e);if(!Object(u.isExtendedNumber)(n)){o=n;break}const s=Object(u.getRawValue)(n);if(void 0!==t.maxValue&&s>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&s<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&s>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&s<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(s))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=n;break;case r.STRING:o=Object(l.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(l.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(l.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(u.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(u.getRawValue)(o)}metadata(e){const t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error(`No metadata for function ${e}.`)}returnNumberWrapper(e,t,n){return void 0!==t&&Object(u.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(u.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return r})),n.d(t,"NoSheetWithNameError",(function(){return o})),n.d(t,"SheetNameAlreadyTakenError",(function(){return i})),n.d(t,"SheetSizeLimitExceededError",(function(){return a})),n.d(t,"NotAFormulaError",(function(){return s})),n.d(t,"InvalidAddressError",(function(){return l})),n.d(t,"InvalidArgumentsError",(function(){return u})),n.d(t,"SheetsNotEqual",(function(){return c})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return d})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return h})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return f})),n.d(t,"NoOperationToUndoError",(function(){return p})),n.d(t,"NoOperationToRedoError",(function(){return g})),n.d(t,"NothingToPasteError",(function(){return m})),n.d(t,"UnableToParseError",(function(){return y})),n.d(t,"ExpectedValueOfTypeError",(function(){return E})),n.d(t,"ConfigValueEmpty",(function(){return T})),n.d(t,"ConfigValueTooSmallError",(function(){return C})),n.d(t,"ConfigValueTooBigError",(function(){return R})),n.d(t,"ExpectedOneOfValuesError",(function(){return w})),n.d(t,"EvaluationSuspendedError",(function(){return S})),n.d(t,"MissingTranslationError",(function(){return O})),n.d(t,"ProtectedFunctionTranslationError",(function(){return b})),n.d(t,"LanguageNotRegisteredError",(function(){return A})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return N})),n.d(t,"FunctionPluginValidationError",(function(){return M})),n.d(t,"ProtectedFunctionError",(function(){return I})),n.d(t,"SourceLocationHasArrayError",(function(){return _})),n.d(t,"TargetLocationHasArrayError",(function(){return k})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return P})),n.d(t,"AliasAlreadyExisting",(function(){return x}));
|
32
32
|
/**
|
33
33
|
* @license
|
34
34
|
* Copyright (c) 2022 Handsoncode. All rights reserved.
|
@@ -515,7 +515,7 @@ class s extends a.FunctionPlugin{complex(e,t){return this.runFunction(e.args,t,t
|
|
515
515
|
* @license
|
516
516
|
* Copyright (c) 2022 Handsoncode. All rights reserved.
|
517
517
|
*/
|
518
|
-
class l extends s.FunctionPlugin{avedev(e,t){return this.runFunction(e.args,t,this.metadata("AVEDEV"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;if(0===t.length)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const n=Object(a.mean)(t);return t.reduce((e,t)=>e+Math.abs(t-n),0)/t.length})}devsq(e,t){return this.runFunction(e.args,t,this.metadata("DEVSQ"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);return t instanceof r.CellError?t:0===t.length?0:Object(a.sumsqerr)(t)})}geomean(e,t){return this.runFunction(e.args,t,this.metadata("GEOMEAN"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;if(0===t.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue);for(const e of t)if(e<=0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);return Object(a.geomean)(t)})}harmean(e,t){return this.runFunction(e.args,t,this.metadata("HARMEAN"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;if(0===t.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue);for(const e of t)if(e<=0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);return t.length/t.reduce((e,t)=>e+1/t,0)})}correl(e,t){return this.runFunction(e.args,t,this.metadata("CORREL"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.corrcoeff)(n[0],n[1])})}rsq(e,t){return this.runFunction(e.args,t,this.metadata("RSQ"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Math.pow(Object(a.corrcoeff)(n[0],n[1]),2)})}covariancep(e,t){return this.runFunction(e.args,t,this.metadata("COVARIANCE.P"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);if(n instanceof r.CellError)return n;const i=n[0].length;return i<1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.OneValue):1===i?0:Object(a.covariance)(n[0],n[1])*(i-1)/i})}covariances(e,t){return this.runFunction(e.args,t,this.metadata("COVARIANCE.S"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.covariance)(n[0],n[1])})}ztest(e,t){return this.runFunction(e.args,t,this.metadata("Z.TEST"),(e,t,n)=>{const i=this.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner());if(i instanceof r.CellError)return i;const s=i.length;if(void 0===n){if(s<2)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);n=Object(a.stdev)(i,!0)}return s<1?new r.CellError(r.ErrorType.NA,o.ErrorMessage.OneValue):0===n?new r.CellError(r.ErrorType.DIV_BY_ZERO):1-a.normal.cdf((Object(a.mean)(i)-t)/(n/Math.sqrt(s)),0,1)})}ftest(e,t){return this.runFunction(e.args,t,this.metadata("F.TEST"),(e,t)=>{const n=this.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner()),o=this.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(n instanceof r.CellError)return n;if(o instanceof r.CellError)return o;if(n.length<=1||o.length<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const i=Object(a.variance)(n,!0),s=Object(a.variance)(o,!0);if(0===i||0===s)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const l=i/s,u=a.centralF.cdf(l,n.length-1,o.length-1);return 2*Math.min(u,1-u)})}steyx(e,t){return this.runFunction(e.args,t,this.metadata("STEYX"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);if(n instanceof r.CellError)return n;const i=n[0].length;return i<=2?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues):Math.sqrt((Object(a.sumsqerr)(n[0])-Math.pow(Object(a.covariance)(n[0],n[1])*(i-1),2)/Object(a.sumsqerr)(n[1]))/(i-2))})}slope(e,t){return this.runFunction(e.args,t,this.metadata("SLOPE"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);if(n instanceof r.CellError)return n;const i=n[0].length;return i<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.covariance)(n[0],n[1])*(i-1)/Object(a.sumsqerr)(n[1])})}chisqtest(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.TEST"),(e,t)=>{const n=e.height(),i=e.width();if(t.height()!==n||t.width()!==i)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const s=u(e,t);if(s instanceof r.CellError)return s;if(s[0].length<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);let l=0;for(let e=0;e<s[0].length;e++){if(0===s[1][e])return new r.CellError(r.ErrorType.DIV_BY_ZERO);l+=Math.pow(s[0][e]-s[1][e],2)/s[1][e]}return l<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NaN):1-a.chisquare.cdf(l,n>1&&i>1?(n-1)*(i-1):n*i-1)})}ttest(e,t){return this.runFunction(e.args,t,this.metadata("T.TEST"),(e,t,n,i)=>{const s=this.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner()),l=this.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(s instanceof r.CellError)return s;if(l instanceof r.CellError)return l;const u=s.length,c=l.length;if(1===i){if(c!==u)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);if(u<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=Array(u);for(let t=0;t<u;t++)e[t]=s[t]-l[t];const t=Object(a.stdev)(e,!0);if(0===t)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const i=Math.abs(Math.sqrt(u)*Object(a.mean)(e)/t);return n*(1-a.studentt.cdf(i,u-1))}if(2===i){if(u<=1||c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=(Object(a.sumsqerr)(s)+Object(a.sumsqerr)(l))/(u+c-2);if(0===e)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const t=Math.abs((Object(a.mean)(s)-Object(a.mean)(l))/Math.sqrt(e*(1/u+1/c)));return n*(1-a.studentt.cdf(t,u+c-2))}{if(u<=1||c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=Object(a.variance)(s,!0),t=Object(a.variance)(l,!0);if(0===e&&0===t)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const i=Math.abs((Object(a.mean)(s)-Object(a.mean)(l))/Math.sqrt(e/u+t/c)),d=Math.pow(e/u+t/c,2)/(Math.pow(e/u,2)/(u-1)+Math.pow(t/c,2)/(c-1));return n*(1-a.studentt.cdf(i,d))}})}skew(e,t){return this.runFunction(e.args,t,this.metadata("SKEW"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;const n=t.length;if(n<3)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues);const i=Object(a.mean)(t),s=Object(a.stdev)(t,!0);return 0===s?new r.CellError(r.ErrorType.DIV_BY_ZERO):t.reduce((e,t)=>e+Math.pow((t-i)/s,3),0)*n/(n-1)/(n-2)})}skewp(e,t){return this.runFunction(e.args,t,this.metadata("SKEW.P"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;const n=t.length;if(n<3)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues);const i=Object(a.mean)(t),s=Object(a.stdev)(t,!1);return 0===s?new r.CellError(r.ErrorType.DIV_BY_ZERO):t.reduce((e,t)=>e+Math.pow((t-i)/s,3),0)/n})}}function u(e,t){const n=e.iterateValuesFromTopLeftCorner(),o=t.iterateValuesFromTopLeftCorner();let a,s;const l=[],u=[];for(;a=n.next(),s=o.next(),!a.done&&!s.done;){const e=a.value,t=s.value;if(e instanceof r.CellError)return e;if(t instanceof r.CellError)return t;Object(i.isExtendedNumber)(e)&&Object(i.isExtendedNumber)(t)&&(l.push(Object(i.getRawValue)(e)),u.push(Object(i.getRawValue)(t)))}return[l,u]}l.implementedFunctions={AVEDEV:{method:"avedev",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},DEVSQ:{method:"devsq",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},GEOMEAN:{method:"geomean",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},HARMEAN:{method:"harmean",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},CORREL:{method:"correl",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},RSQ:{method:"rsq",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"COVARIANCE.P":{method:"covariancep",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"COVARIANCE.S":{method:"covariances",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"Z.TEST":{method:"ztest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,optionalArg:!0}]},"F.TEST":{method:"ftest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},STEYX:{method:"steyx",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},SLOPE:{method:"slope",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"CHISQ.TEST":{method:"chisqtest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"T.TEST":{method:"ttest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:2},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:3}]},SKEW:{method:"skew",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},"SKEW.P":{method:"skewp",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1}},l.aliases={COVAR:"COVARIANCE.P",FTEST:"F.TEST",PEARSON:"CORREL",ZTEST:"Z.TEST",CHITEST:"CHISQ.TEST",TTEST:"T.TEST",COVARIANCEP:"COVARIANCE.P",COVARIANCES:"COVARIANCE.S",SKEWP:"SKEW.P"}},function(e,t){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},function(e,t,n){var r=n(140);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(57),o=n(379),i=n(71),a=n(61),s=n(88),l=n(170);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(57),o=n(29);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(57),o=n(29),i=n(208);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(63),o=n(56),i=n(169),a=n(124),s=n(686),l=n(47),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){var r=n(30),o=n(55),i=n(88),a=n(264).indexOf,s=n(172),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},function(e,t,n){var r=n(101);e.exports=r("document","documentElement")},function(e,t,n){var r=n(44),o=n(50),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){var r=n(30),o=n(50),i=n(262),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var r=n(55),o=n(387),i=n(116),a=n(71);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},function(e,t,n){var r=n(101),o=n(30),i=n(143),a=n(212),s=n(61),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var r,o,i,a=n(29),s=n(50),l=n(56),u=n(123),c=n(267),d=n(93),h=n(47),f=n(121),p=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):g=!0),!l(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){var r=n(29);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(30),o=n(61),i=n(690);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var r=n(29),o=n(56),i=n(105),a=n(693),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(29);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(47),o=n(173),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(63),o=n(141),i=n(61),a=n(142),s=n(275),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw l(a(e)+" is not iterable")}},function(e,t,n){var r=n(63),o=n(61),i=n(124);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},function(e,t,n){var r=n(47)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(30),o=n(271),i=n(176).getWeakData,a=n(276),s=n(61),l=n(97),u=n(56),c=n(274),d=n(127),h=n(55),f=n(106),p=f.set,g=f.getterFor,m=d.find,v=d.findIndex,y=r([].splice),E=0,T=function(e){return e.frozen||(e.frozen=new C)},C=function(){this.entries=[]},R=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};C.prototype={get:function(e){var t=R(this,e);if(t)return t[1]},has:function(e){return!!R(this,e)},set:function(e,t){var n=R(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){a(e,f),p(e,{type:t,id:E++,frozen:void 0}),l(o)||c(o,e[r],{that:e,AS_ENTRIES:n})})),f=d.prototype,m=g(t),v=function(e,t,n){var r=m(e),o=i(s(t),!0);return!0===o?T(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=m(this);if(!u(e))return!1;var n=i(e);return!0===n?T(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!u(e))return!1;var n=i(e);return!0===n?T(t).has(e):n&&h(n,t.id)}}),o(f,n?{get:function(e){var t=m(this);if(u(e)){var n=i(e);return!0===n?T(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(208)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,B,W,Y,G=this,z=arguments.length>2&&void 0!==arguments[2]&&arguments[2],K=!1,X=this,q=new v.default(X),$=!0;(0,_.hasValidParameter)(z)&&(0,_.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;var Q=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",Z=["rtl","ltr"].includes(Q)?Q:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",Z),this.isRtl=function(){return"rtl"===Z},this.isLtr=function(){return!X.isRtl()},this.getDirectionFactor=function(){return X.isLtr()?1:-1},t.language=(0,x.getValidLanguageCode)(t.language);var J=new F.MetaManager(X,t,[F.DynamicCellMetaMod,F.ExtendMetaPropertiesMod]),ee=J.getTableMeta(),te=J.getGlobalMeta(),ne=(0,U.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,_.isRootInstance)(this)&&(0,h._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,O.randomString)()),this.columnIndexMapper=new I.IndexMapper,this.rowIndexMapper=new I.IndexMapper,B=new N.default(X),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var re=function(e){var t=e.row,n=e.col;return X._createCellCoords(t>=0?X.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?X.columnIndexMapper.getRenderableFromVisualIndex(n):n)},oe=function(e){var t=e.row,n=e.col;return X._createCellCoords(t>=0?X.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?X.columnIndexMapper.getVisualFromRenderableIndex(n):n)},ie=new D.Selection(ee,{rowIndexMapper:function(){return X.rowIndexMapper},columnIndexMapper:function(){return X.columnIndexMapper},countCols:function(){return X.countCols()},countRows:function(){return X.countRows()},propToCol:function(e){return r.propToCol(e)},isEditorOpened:function(){return!!X.getActiveEditor()&&X.getActiveEditor().isOpened()},countColsTranslated:function(){return G.view.countRenderableColumns()},countRowsTranslated:function(){return G.view.countRenderableRows()},getShortcutManager:function(){return X.getShortcutManager()},createCellCoords:function(e,t){return X._createCellCoords(e,t)},createCellRange:function(e,t,n){return X._createCellRange(e,t,n)},visualToRenderableCoords:re,renderableToVisualCoords:oe,isDisabledCellSelection:function(e,t){return X.getCellMeta(e,t).disableVisualSelection}});this.selection=ie;var ae=function(e){e.hiddenIndexesChanged&&G.selection.refresh()};function se(e){var t=(0,L.normalizeLanguageCode)(e);(0,x.hasLanguageDictionary)(t)?(X.runHooks("beforeLanguageChange",t),te.language=t,X.runHooks("afterLanguageChange",t)):(0,L.warnUserAboutLanguageRegistration)(e)}function le(e,t){var n="className"===e?X.rootElement:X.table;if($)(0,c.addClass)(n,t);else{var r=[],o=[];te[e]&&(r=Array.isArray(te[e])?te[e]:(0,E.stringToArray)(te[e])),t&&(o=Array.isArray(t)?t:(0,E.stringToArray)(t));var i=(0,E.getDifferenceOfArrays)(r,o),a=(0,E.getDifferenceOfArrays)(o,r);i.length&&(0,c.removeClass)(n,i),a.length&&(0,c.addClass)(n,a)}te[e]=t}function ue(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ce(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function de(e,t,n){if(e.length){var o=X.getActiveEditor(),i=X.runHooks("beforeChange",e,t||"edit"),s=!0;if(!1!==i){var l=new ue;l.onQueueEmpty=function(e){o&&s&&o.cancelChanges(),n(e)};for(var u=e.length-1;u>=0;u--)if(null===e[u])e.splice(u,1);else{var d=(0,a.default)(e[u],4),h=d[0],f=d[1],p=d[3],g=r.propToCol(f),m=X.getCellMeta(h,g);"numeric"===m.type&&"string"==typeof p&&(0,b.isNumericLike)(p)&&(e[u][3]=ce(p)),X.getCellValidator(m)&&(l.addValidatorToQueue(),X.validateCell(e[u][3],m,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){s=!1,e.splice(t,1),n.valid=!0;var o=X.getCell(n.visualRow,n.visualCol);null!==o&&(0,c.removeClass)(o,ee.invalidCellClassName)}l.removeValidatorFormQueue()}}(u,m),t))}l.checkIfQueueIsEmpty()}else o&&o.cancelChanges()}}function he(e,t){var n=e.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(ee.allowInsertRow)for(;e[n][0]>X.countRows()-1;){if(0===r.createRow(void 0,void 0,{source:t}).delta){o=!0;break}}if("array"===X.dataType&&(!ee.columns||0===ee.columns.length)&&ee.allowInsertColumn)for(;r.propToCol(e[n][1])>X.countCols()-1;){if(0===r.createCol(void 0,void 0,{source:t}).delta){o=!0;break}}o||r.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}X.forceFullRender=!0,W.adjustRowsAndCols(),X.runHooks("beforeChangeRender",e,t),Y.lockEditor(),X._refreshBorders(null),Y.unlockEditor(),X.view.adjustElementsSize(),X.runHooks("afterChange",e,t||"edit");var i=X.getActiveEditor();i&&(0,h.isDefined)(i.refreshValue)&&i.refreshValue()}}function fe(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}this.columnIndexMapper.addLocalHook("cacheUpdated",ae),this.rowIndexMapper.addLocalHook("cacheUpdated",ae),this.selection.addLocalHook("beforeSetRangeStart",(function(e){G.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){G.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){G.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=G.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=G.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=(0,y.createObjectPropListener)(!1),n=G.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;G.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),G.runHooks("afterSelectionByProp",o.row,X.colToProp(o.col),i.row,X.colToProp(i.col),t,a);var s=G.selection.isSelectedByAnyHeader(),l=G.selection.selectedRange.current(),u=!0;K&&(u=!1),t.isTouched()&&(u=!t.value);var d=G.selection.isSelectedByRowHeader(),h=G.selection.isSelectedByColumnHeader();!1!==u&&(s?d?G.view.scrollViewportVertically(X.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&G.view.scrollViewportHorizontally(X.columnIndexMapper.getRenderableFromVisualIndex(e.col)):l&&!G.selection.isMultiple()?G.view.scrollViewport(re(l.from)):G.view.scrollViewport(re(e))),d&&h?(0,c.addClass)(G.rootElement,["ht__selection--rows","ht__selection--columns"]):d?((0,c.removeClass)(G.rootElement,"ht__selection--columns"),(0,c.addClass)(G.rootElement,"ht__selection--rows")):h?((0,c.removeClass)(G.rootElement,"ht__selection--rows"),(0,c.addClass)(G.rootElement,"ht__selection--columns")):(0,c.removeClass)(G.rootElement,["ht__selection--rows","ht__selection--columns"]),G._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;G.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),G.runHooks("afterSelectionEndByProp",r.row,X.colToProp(r.col),o.row,X.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=G.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){G.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){G.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){G.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){G.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){Y.destroyEditor(),G._refreshBorders(),(0,c.removeClass)(G.rootElement,["ht__selection--rows","ht__selection--columns"]),G.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){G.alter("insert_row_above",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){G.alter("insert_col_start",e,1,"auto")})),W={alter:function(e,t){var n,o,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0,m=function(e){if(0===e.length)return[];var t=(0,s.default)(e);return t.sort((function(e,t){var n=(0,a.default)(e,1)[0],r=(0,a.default)(t,1)[0];return n===r?0:n>r?1:-1})),(0,E.arrayReduce)(t,(function(e,t){var n=(0,a.default)(t,2),r=n[0],o=n[1],i=e[e.length-1],s=(0,a.default)(i,2),l=s[0]+s[1];if(r<=l){var u=Math.max(o-(l-r),0);i[1]+=u}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row":j.has(e)||(j.add(e),(0,p.warn)((0,g.toSingleLine)(l||(l=(0,i.default)(["The `","` action of the `alter()` method is deprecated and will be removed \n in the next major release of Handsontable. Use the `insert_row_above` action instead."],["The \\`","\\` action of the \\`alter()\\` method is deprecated and will be removed\\x20\n in the next major release of Handsontable. Use the \\`insert_row_above\\` action instead."])),e)));case"insert_row_below":case"insert_row_above":var v=X.countSourceRows();if(ee.maxRows===v)return;var y="insert_row_below"===e?"below":"above";t=null!==(n=t)&&void 0!==n?n:"insert_row"===e||"below"===y?v:0;var T=r.createRow(t,c,{source:d,mode:y}),C=T.delta,R=T.startPhysicalIndex;if(C){var w=ie.selectedRange.current(),S=null==w?void 0:w.from,O=null==S?void 0:S.row,b=X.toVisualRow(R);if(ie.isSelectedByCorner())X.selectAll();else if((0,h.isDefined)(O)&&O>=b){var A=w.to,N=A.row,M=A.col,I=S.col;ie.isSelectedByRowHeader()&&(I=-1),ie.getSelectedRange().pop(),ie.setRangeStartOnly(X._createCellCoords(O+C,I),!0),ie.setRangeEnd(X._createCellCoords(N+C,M))}else X._refreshBorders()}break;case"insert_col":j.has(e)||(j.add(e),(0,p.warn)((0,g.toSingleLine)(u||(u=(0,i.default)(["The `","` action of the `alter()` method is deprecated and will be removed \n in the next major release of Handsontable. Use the `insert_col_start` action instead."],["The \\`","\\` action of the \\`alter()\\` method is deprecated and will be removed\\x20\n in the next major release of Handsontable. Use the \\`insert_col_start\\` action instead."])),e)));case"insert_col_start":case"insert_col_end":var _="insert_col_end"===e?"end":"start";t=null!==(o=t)&&void 0!==o?o:"insert_col"===e||"end"===_?X.countSourceCols():0;var k=r.createCol(t,c,{source:d,mode:_}),P=k.delta,x=k.startPhysicalIndex;if(P){if(Array.isArray(ee.colHeaders)){var L=[X.toVisualColumn(x),0];L.length+=P,Array.prototype.splice.apply(ee.colHeaders,L)}var D=ie.selectedRange.current(),F=null==D?void 0:D.from,U=null==F?void 0:F.col,H=X.toVisualColumn(x);if(ie.isSelectedByCorner())X.selectAll();else if((0,h.isDefined)(U)&&U>=H){var V=D.to,B=V.row,Y=V.col,G=F.row;ie.isSelectedByColumnHeader()&&(G=-1),ie.getSelectedRange().pop(),ie.setRangeStartOnly(X._createCellCoords(G,U+P),!0),ie.setRangeEnd(X._createCellCoords(B,Y+P))}else X._refreshBorders()}break;case"remove_row":var z=function(e){var t=0;(0,E.arrayEach)(e,(function(e){var n=(0,a.default)(e,2),o=n[0],i=n[1],s=(0,h.isEmpty)(o)?X.countRows()-1:Math.max(o-t,0);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeRow(o,i,d)){var l=X.countRows(),u=ee.fixedRowsTop;u>=s+1&&(ee.fixedRowsTop-=Math.min(i,u-s));var c=ee.fixedRowsBottom;c&&s>=l-c&&(ee.fixedRowsBottom-=Math.min(i,c)),t+=i}}))};Array.isArray(t)?z(m(t)):z([[t,c]]),W.adjustRowsAndCols(),X._refreshBorders();break;case"remove_col":var K=function(e){var t=0;(0,E.arrayEach)(e,(function(e){var n=(0,a.default)(e,2),o=n[0],i=n[1],s=(0,h.isEmpty)(o)?X.countCols()-1:Math.max(o-t,0),l=X.toPhysicalColumn(s);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,i,d)){var u=ee.fixedColumnsStart;u>=s+1&&(ee.fixedColumnsStart-=Math.min(i,u-s)),Array.isArray(ee.colHeaders)&&(void 0===l&&(l=-1),ee.colHeaders.splice(l,i)),t+=i}}))};Array.isArray(t)?K(m(t)):K([[t,c]]),W.adjustRowsAndCols(),X._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}f||W.adjustRowsAndCols()},adjustRowsAndCols:function(){var e,t=ee.minRows,n=ee.minSpareRows,o=ee.minCols,i=ee.minSpareCols;if(0===X.countRows()&&0===X.countCols()&&ie.deselect(),t){var a=X.countRows();a<t&&r.createRow(a,t-a,{source:"auto"})}if(n){var s=X.countEmptyRows(!0);if(s<n){var l=n-s,u=Math.min(l,ee.maxRows-X.countSourceRows());r.createRow(X.countRows(),u,{source:"auto"})}}(o||i)&&(e=X.countEmptyCols(!0));var c=X.countCols();if(o&&!ee.columns&&c<o){var d=o-c;e+=d,r.createCol(c,d,{source:"auto"})}if(i&&!ee.columns&&"array"===X.dataType&&e<i){c=X.countCols();var h=i-e,f=Math.min(h,ee.maxCols-c);r.createCol(c,f,{source:"auto"})}if(ie.isSelected()){var p=X.countRows(),g=X.countCols();(0,E.arrayEach)(ie.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>p-1?(t=!0,o>(n=p-1)&&(o=n)):o>p-1&&(t=!0,n>(o=p-1)&&(n=o)),r>g-1?(t=!0,i>(r=g-1)&&(i=r)):i>g-1&&(t=!0,r>(i=g-1)&&(r=i)),t&&X.selectCell(n,r,o,i)}))}X.view&&X.view.adjustElementsSize()},populateFromArray:function(e,t,n,r,i,a,l){var u,c,d,f,p=[],g={},m=[],v=e.row,T=e.col;if(0===(c=t.length))return!1;var C=0,R=0;switch((0,y.isObject)(n)&&(C=n.col-T+1,R=n.row-v+1),i){case"shift_down":var w=(0,E.pivot)(t),S=w.length,O=Math.max(S,C),b=X.getData().slice(v),A=(0,E.pivot)(b).slice(T,T+O);for(d=0;d<O;d+=1)if(d<S){for(u=0,c=w[d].length;u<R-c;u+=1)w[d].push(w[d][u%c]);d<A.length?m.push(w[d].concat(A[d])):m.push(w[d].concat(new Array(b.length).fill(null)))}else m.push(w[d%S].concat(A[d]));X.populateFromArray(v,T,(0,E.pivot)(m));break;case"shift_right":var N=t.length,M=Math.max(N,R),I=X.getData().slice(v).map((function(e){return e.slice(T)}));for(u=0;u<M;u+=1)if(u<N){for(d=0,f=t[u].length;d<C-f;d+=1)t[u].push(t[u][d%f]);var _;if(u<I.length)for(var k=0;k<I[u].length;k+=1)t[u].push(I[u][k]);else(_=t[u]).push.apply(_,(0,s.default)(new Array(I[0].length).fill(null)))}else t.push(t[u%c].slice(0,M).concat(I[u]));X.populateFromArray(v,T,t);break;case"overwrite":default:g.row=e.row,g.col=e.col;var P,x={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},L=0,D=0,F=!0,U=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},H=t.length,V=n?n.row-e.row+1:0;for(c=n?V:Math.max(H,V),u=0;u<c&&!(n&&g.row>n.row&&V>H||!ee.allowInsertRow&&g.row>X.countRows()-1||g.row>=ee.maxRows);u++){var j=u-L,B=U(j).length,W=n?n.col-e.col+1:0;if(f=n?W:Math.max(B,W),g.col=e.col,P=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!P.skipRowOnPaste){for(D=0,d=0;d<f&&!(n&&g.col>n.col&&W>B||!ee.allowInsertColumn&&g.col>X.countCols()-1||g.col>=ee.maxCols);d++)if(P=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!P.skipColumnOnPaste)if(P.readOnly&&"UndoRedo.undo"!==r)g.col+=1;else{var Y=d-D,G=U(j,Y),z=X.getDataAtCell(g.row,g.col),K={row:j,col:Y};if("Autofill.fill"===r){var q=X.runHooks("beforeAutofillInsidePopulate",K,a,t,l,{},x);q&&(G=(0,h.isUndefined)(q.value)?G:q.value)}if(null!==G&&"object"===(0,o.default)(G))if(Array.isArray(G)&&null===z&&(z=[]),null===z||"object"!==(0,o.default)(z))F=!1;else{var $=(0,y.duckSchema)(Array.isArray(z)?z:z[0]||z),Q=(0,y.duckSchema)(Array.isArray(G)?G:G[0]||G);(0,y.isObjectEqual)($,Q)||Array.isArray($)&&Array.isArray(Q)?G=(0,y.deepClone)(G):F=!1}else null!==z&&"object"===(0,o.default)(z)&&(F=!1);F&&p.push([g.row,g.col,G]),F=!0,g.col+=1}else D+=1,g.col+=1,f+=1;g.row+=1}else L+=1,g.row+=1,c+=1}X.setDataAtCell(p,null,null,r||"populateFromArray")}}},this.init=function(){B.setData(ee.data),X.runHooks("beforeInit"),((0,f.isMobileBrowser)()||(0,f.isIpadOS)())&&(0,c.addClass)(X.rootElement,"mobile"),this.updateSettings(ee,!0),this.view=new A.default(this),Y=m.default.getInstance(X,ee,ie),X.runHooks("init"),this.forceFullRender=!0,this.view.render(),$&&null===X.rootElement.offsetParent&&(0,c.observeVisibilityChangeOnce)(X.rootElement,(function(){X.view._wt.wtOverlays.updateLastSpreaderSize(),X.render(),X.view.adjustElementsSize()})),"object"===(0,o.default)($)&&(X.runHooks("afterChange",$[0],$[1]),$=!1),X.runHooks("afterInit")},this._createCellCoords=function(e,t){return X.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return X.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,r){var o,i=X.getCellValidator(t);function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var o=t.visualCol,i=t.visualRow,a=X.getCell(i,o,!0);if(a&&"TH"!==a.nodeName){var s=X.rowIndexMapper.getRenderableFromVisualIndex(i),l=X.columnIndexMapper.getRenderableFromVisualIndex(o);X.view._wt.getSetting("cellRenderer",s,l,a)}n(e)}else n(e)}(0,h.isRegExp)(i)&&(o=i,i=function(e,t){t(o.test(e))}),(0,d.isFunction)(i)?(e=X.runHooks("beforeValidate",e,t.visualRow,t.prop,r),X._registerImmediate((function(){i.call(t,e,(function(n){X&&(n=X.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),X.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):X._registerImmediate((function(){t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,i){var a,s,l,u=fe(e,t,n),c=[],d=i;for(a=0,s=u.length;a<s;a++){if("object"!==(0,o.default)(u[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof u[a][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=u[a][1]>=this.countCols()?u[a][1]:r.colToProp(u[a][1]),c.push([u[a][0],l,B.getAtCell(this.toPhysicalRow(u[a][0]),u[a][1]),u[a][2]])}d||"object"!==(0,o.default)(e)||(d=t),X.runHooks("afterSetDataAtCell",c,d),de(c,d,(function(){he(c,d)}))},this.setDataAtRowProp=function(e,t,n,r){var i,a,s=fe(e,t,n),l=[],u=r;for(i=0,a=s.length;i<a;i++)l.push([s[i][0],s[i][1],B.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);u||"object"!==(0,o.default)(e)||(u=t),X.runHooks("afterSetDataAtRowProp",l,u),de(l,u,(function(){he(l,u)}))},this.listen=function(){X&&!X.isListening()&&(V=X.guid,X.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(V=null,X.runHooks("afterUnlisten"))},this.isListening=function(){return V===X.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];X._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,s,l,u){if("object"!==(0,o.default)(n)||"object"!==(0,o.default)(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var c="number"==typeof r?X._createCellCoords(r,i):null;return W.populateFromArray(X._createCellCoords(e,t),n,c,a,s,l,u)},this.spliceCol=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceCol.apply(o,[e,t,n].concat(a))},this.spliceRow=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceRow.apply(o,[e,t,n].concat(a))},this.getSelected=function(){if(ie.isSelected())return(0,E.arrayMap)(ie.getSelectedRange(),(function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(ie.isSelected())return Array.from(ie.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(ie.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];(0,E.arrayEach)(ie.getSelectedRange(),(function(e){var r=e.getTopStartCorner(),o=e.getBottomEndCorner();(0,b.rangeEach)(r.row,o.row,(function(e){(0,b.rangeEach)(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){var e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(Y.lockEditor(),this._refreshBorders(null),Y.unlockEditor()))},this.batchRender=function(e){this.suspendRender();var t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();var n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();var t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(X.view){var e=X.view.getLastSize(),t=e.width,n=e.height,r=X.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n;!1===X.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a)||((a||X.view._wt.wtOverlays.scrollableElement===X.rootWindow)&&(X.view.setLastSize(o,i),X.render()),X.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.updateData=function(e,t){var n=this;(0,F.replaceData)(e,(function(e){r=e}),(function(e){r=e,X.columnIndexMapper.fitToLength(n.getInitialColumnCount()),X.rowIndexMapper.fitToLength(n.countSourceRows()),W.adjustRowsAndCols()}),{hotInstance:X,dataMap:r,dataSource:B,internalSource:"updateData",source:t,metaManager:J,firstRun:$})},this.loadData=function(e,t){(0,F.replaceData)(e,(function(e){r=e}),(function(){J.clearCellsCache(),X.initIndexMappers(),W.adjustRowsAndCols(),$&&($=[null,"loadData"])}),{hotInstance:X,dataMap:r,dataSource:B,internalSource:"loadData",source:t,metaManager:J,firstRun:$})},this.getInitialColumnCount=function(){var e=ee.columns,t=0;if(Array.isArray(e))t=e.length;else if((0,d.isFunction)(e))if("array"===X.dataType)for(var n=this.countSourceCols(),o=0;o<n;o+=1)e(o)&&(t+=1);else"object"!==X.dataType&&"function"!==X.dataType||(t=r.colToPropCache.length);else if((0,h.isDefined)(ee.dataSchema)){var i=r.getSchema();t=Array.isArray(i)?i.length:(0,y.deepObjectSize)(i)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,o){return(0,h.isUndefined)(e)?r.getAll():r.getRange(X._createCellCoords(e,t),X._createCellCoords(n,o),r.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return r.getCopyableText(X._createCellCoords(e,t),X._createCellCoords(n,o))},this.getCopyableData=function(e,t){return r.getCopyable(e,r.colToProp(t))},this.getSchema=function(){return r.getSchema()},this.updateSettings=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=($?X.loadData:X.updateData).bind(this),a=!1;if((0,h.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,h.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,h.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(t in e)"data"===t||("language"===t?se(e.language):"className"===t?le("className",e.className):"tableClassName"===t&&X.table?(le("tableClassName",e.tableClassName),X.view._wt.wtOverlays.syncOverlayTableClassNames()):P.default.getSingleton().isRegistered(t)||P.default.getSingleton().isDeprecated(t)?((0,d.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,X.addHook(t,e[t])):!o&&(0,y.hasOwnProperty)(e,t)&&(te[t]=e[t]));void 0===e.data&&void 0===ee.data?i(null,"updateSettings"):void 0!==e.data?i(e.data,"updateSettings"):void 0!==e.columns&&(r.createMap(),X.initIndexMappers());var s=X.countCols(),l=ee.columns;if(l&&(0,d.isFunction)(l)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||J.clearCache(),s>0)for(t=0,n=0;t<s;t++){if(l){var u=a?l(t):l[n];u&&J.updateColumnMeta(n,u)}n+=1}(0,h.isDefined)(e.cell)&&(0,y.objectEach)(e.cell,(function(e){X.setCellMetaObject(e.row,e.col,e)})),X.runHooks("afterCellMetaReset");var c=X.rootElement.style.height;""!==c&&(c=parseInt(X.rootElement.style.height,10));var f=e.height;if((0,d.isFunction)(f)&&(f=f()),o){var p=X.rootElement.getAttribute("style");p&&X.rootElement.setAttribute("data-initialstyle",X.rootElement.getAttribute("style"))}if(null===f){var g=X.rootElement.getAttribute("data-initialstyle");g&&(g.indexOf("height")>-1||g.indexOf("overflow")>-1)?X.rootElement.setAttribute("style",g):(X.rootElement.style.height="",X.rootElement.style.overflow="")}else void 0!==f&&(X.rootElement.style.height=isNaN(f)?"".concat(f):"".concat(f,"px"),X.rootElement.style.overflow="hidden");if(void 0!==e.width){var m=e.width;(0,d.isFunction)(m)&&(m=m()),X.rootElement.style.width=isNaN(m)?"".concat(m):"".concat(m,"px")}o||(X.view&&(X.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),X.view._wt.exportSettingsAsClassNames()),X.runHooks("afterUpdateSettings",e)),W.adjustRowsAndCols(),X.view&&!$&&(X.forceFullRender=!0,Y.lockEditor(),X._refreshBorders(null),X.view._wt.wtOverlays.adjustElementsSize(),Y.unlockEditor()),o||!X.view||""!==c&&""!==f&&void 0!==f||c===f||X.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=X.getSelectedLast();if(ee.getValue){if((0,d.isFunction)(ee.getValue))return ee.getValue.call(X);if(e)return X.getData()[e[0][0]][ee.getValue]}else if(e)return X.getDataAtCell(e[0],e[1])},this.getSettings=function(){return ee},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){W.alter(e,t,n,r,o)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r?null:X.view.getCellAtCoords(X._createCellCoords(o,r),n)},this.getCoords=function(e){var t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;var n=t.row,r=t.col,o=n,i=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),X._createCellCoords(o,i)},this.colToProp=function(e){return r.colToProp(e)},this.propToCol=function(e){return r.propToCol(e)},this.toVisualRow=function(e){return G.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return G.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return G.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return G.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return r.get(e,r.colToProp(t))},this.getDataAtRowProp=function(e,t){return r.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,(0,s.default)(r.getRange(X._createCellCoords(0,e),X._createCellCoords(ee.data.length-1,e),r.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=r.getRange(X._createCellCoords(0,r.propToCol(e)),X._createCellCoords(ee.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER);return(t=[]).concat.apply(t,(0,s.default)(n))},this.getSourceData=function(e,t,n,r){return void 0===e?B.getData():B.getByRange(X._createCellCoords(e,t),X._createCellCoords(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?B.getData(!0):B.getByRange(X._createCellCoords(e,t),X._createCellCoords(n,r),!0)},this.getSourceDataAtCol=function(e){return B.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){var o=fe(e,t,n),i=this.hasHook("afterSetSourceDataAtCell"),s=[];i&&(0,E.arrayEach)(o,(function(e){var t=(0,a.default)(e,3),n=t[0],r=t[1],o=t[2];s.push([n,r,B.getAtCell(n,r),o])})),(0,E.arrayEach)(o,(function(e){var t=(0,a.default)(e,3),n=t[0],r=t[1],o=t[2];B.setAtCell(n,r,o)})),i&&this.runHooks("afterSetSourceDataAtCell",s,r),this.render();var l=X.getActiveEditor();l&&(0,h.isDefined)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return B.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return B.getAtCell(e,t)},this.getDataAtRow=function(e){return r.getRange(X._createCellCoords(e,0),X._createCellCoords(e,this.countCols()-1),r.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],l=i[2],u=i[3],c=null,d=null;void 0===l&&(l=a),void 0===u&&(u=s);var h="mixed";return(0,b.rangeEach)(Math.max(Math.min(a,l),0),Math.max(a,l),(function(e){var t=!0;return(0,b.rangeEach)(Math.max(Math.min(s,u),0),Math.max(s,u),(function(n){var r=o.getCellMeta(e,n);return d=r.type,c?t=c===d:c=d,t})),h=t?d:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=J.getCellMetaKeyValue(o,i,n);!1!==X.runHooks("beforeRemoveCellMeta",e,t,n,a)&&(J.removeCellMeta(o,i,n),X.runHooks("afterRemoveCellMeta",e,t,n,a)),a=null},this.spliceCellsMeta=function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length>0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");n>0&&J.removeRow(this.toPhysicalRow(e),n),o.length>0&&(0,E.arrayEach)(o.reverse(),(function(n){J.createRow(t.toPhysicalRow(e)),(0,E.arrayEach)(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))})),X.render()},this.setCellMetaObject=function(e,t,n){var r=this;"object"===(0,o.default)(n)&&(0,y.objectEach)(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,r){if(!1!==X.runHooks("beforeSetCellMeta",e,t,n,r)){var o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),J.setCellMeta(o,i,n,r),X.runHooks("afterSetCellMeta",e,t,n,r)}},this.getCellsMeta=function(){return J.getCellsMeta()},this.getCellMeta=function(e,t){var n=this.toPhysicalRow(e),r=this.toPhysicalColumn(t);return null===n&&(n=e),null===r&&(r=t),J.getCellMeta(n,r,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return J.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===X.dataType||ee.columns)},this.getCellRenderer=function(e,t){var n="number"==typeof e?X.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?(0,R.getRenderer)(n):(0,h.isUndefined)(n)?(0,R.getRenderer)("text"):n},this.getCellEditor=function(e,t){var n="number"==typeof e?X.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?(0,w.getEditor)(n):(0,h.isUndefined)(n)?(0,w.getEditor)("text"):n},this.getCellValidator=function(e,t){var n="number"==typeof e?X.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?(0,S.getValidator)(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var r=new ue;e&&(r.onQueueEmpty=e);for(var o=X.countRows()-1;o>=0;)if(void 0===t||-1!==t.indexOf(o)){for(var i=X.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),X.validateCell(X.getDataAtCell(o,i),X.getCellMeta(o,i),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=ee.rowHeaders,n=e;return void 0!==n&&(n=X.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,b.rangeEach)(X.countRows()-1,(function(e){t.push(X.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,d.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!ee.rowHeaders},this.hasColHeaders=function(){if(void 0!==ee.colHeaders&&null!==ee.colHeaders)return!!ee.colHeaders;for(var e=0,t=X.countCols();e<t;e++)if(X.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=X.runHooks("modifyColHeader",e);if(void 0===n){for(var r=[],o=X.countCols(),i=0;i<o;i++)r.push(X.getColHeader(i));return r}var a=ee.colHeaders,s=function(e){for(var t=[],n=X.countCols(),r=0;r<n;r++)(0,d.isFunction)(ee.columns)&&ee.columns(r)&&t.push(r);return t[e]},l=X.toPhysicalColumn(n),u=s(l);return!1===ee.colHeaders?a=null:ee.columns&&(0,d.isFunction)(ee.columns)&&ee.columns(u)&&ee.columns(u).title?a=ee.columns(u).title:ee.columns&&ee.columns[l]&&ee.columns[l].title?a=ee.columns[l].title:Array.isArray(ee.colHeaders)&&void 0!==ee.colHeaders[l]?a=ee.colHeaders[l]:(0,d.isFunction)(ee.colHeaders)?a=ee.colHeaders(l):ee.colHeaders&&"string"!=typeof ee.colHeaders&&"number"!=typeof ee.colHeaders&&(a=(0,M.spreadsheetColumnLabel)(n)),a=X.runHooks("modifyColumnHeaderValue",a,e,t)},this._getColWidthFromSettings=function(e){var t;e>=0&&(t=X.getCellMeta(0,e).width);if(void 0!==t&&t!==ee.width||(t=ee.colWidths),null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){var t=X._getColWidthFromSettings(e);return void 0===(t=X.runHooks("modifyColWidth",t,e))&&(t=k.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=ee.rowHeights;if(null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=X._getRowHeightFromSettings(e);return t=X.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return B.countRows()},this.countSourceCols=function(){return B.countFirstRowKeys()},this.countRows=function(){return r.getLength()},this.countCols=function(){var e=ee.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return X.view._wt.drawn?X.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return X.view._wt.drawn?X.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return X.view._wt.drawn?X.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return X.view._wt.drawn?X.view._wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,b.rangeEachReverse)(X.countRows()-1,(function(n){if(X.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,b.rangeEachReverse)(X.countCols()-1,(function(n){if(X.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return ee.isEmptyRow.call(X,e)},this.isEmptyCol=function(e){return ee.isEmptyCol.call(X,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,h.isUndefined)(e)&&!(0,h.isUndefined)(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(K=!0);var r=ie.selectCells(e);return r&&n&&X.listen(),K=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return ie.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return ie.selectRows(e,t)},this.deselectCell=function(){ie.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();K=!0,ie.selectAll(t,n),K=!1};var pe=function(e,t){return e.getNearestNotHiddenIndex(t,1,!0)};function ge(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!n,a=!r,s=e,l=t;if(o){var u=Number.isInteger(e),c=Number.isInteger(t),d=u?pe(this.rowIndexMapper,e):void 0,h=c?pe(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=u?X.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,l=c?X.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),p=Number.isInteger(l);return f&&p?X.view.scrollViewport(X._createCellCoords(s,l),i,r,n,a):f&&!1===p?X.view.scrollViewportVertically(s,i,n):!(!p||!1!==f)&&X.view.scrollViewportHorizontally(l,r,a)},this.destroy=function(){if(X._clearTimeouts(),X._clearImmediates(),X.view&&X.view.destroy(),B&&B.destroy(),B=null,this.getShortcutManager().destroy(),J.clearCache(),(0,_.isRootInstance)(X)){var e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,c.empty)(X.rootElement),q.destroy(),Y&&Y.destroy(),X.batchExecution((function(){X.rowIndexMapper.unregisterAll(),X.columnIndexMapper.unregisterAll(),ne.getItems().forEach((function(e){(0,a.default)(e,2)[1].destroy()})),ne.clear(),X.runHooks("afterDestroy")}),!0),P.default.getSingleton().destroy(X),(0,y.objectEach)(X,(function(e,t,n){(0,d.isFunction)(e)?n[t]=ge(t):"guid"!==t&&(n[t]=null)})),X.isDestroyed=!0,r&&r.destroy(),X.rowIndexMapper=null,X.columnIndexMapper=null,r=null,W=null,ie=null,Y=null,X=null},this.getActiveEditor=function(){return Y.getActiveEditor()},this.getPlugin=function(e){var t=(0,O.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:ne.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ne.getId(e)},this.getInstance=function(){return X},this.addHook=function(e,t){P.default.getSingleton().add(e,t,X)},this.hasHook=function(e){return P.default.getSingleton().has(e,X)||P.default.getSingleton().has(e)},this.addHookOnce=function(e,t){P.default.getSingleton().once(e,t,X)},this.removeHook=function(e,t){P.default.getSingleton().remove(e,t,X)},this.runHooks=function(e,t,n,r,o,i,a){return P.default.getSingleton().run(X,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,x.getTranslatedPhrase)(ee.language,e,t)},this.toHTML=function(){return(0,T.instanceToHTML)(G)},this.toTableElement=function(){var e=G.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,T.instanceToHTML)(G)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"==typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){(0,E.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,E.arrayEach)(this.immediates,(function(e){clearImmediate(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Y.destroyEditor(e),X.view.render(),t&&ie.isSelected()&&Y.prepareEditor()},this.isRtl=function(){return"rtl"===X.rootWindow.getComputedStyle(X.rootElement).direction},this.isLtr=function(){return!X.isRtl()},this.getDirectionFactor=function(){return X.isLtr()?1:-1};var me=(0,H.createShortcutManager)({handleEvent:function(e){var t=X.isListening(),n=void 0!==(null==e?void 0:e.key);return t&&n},beforeKeyDown:function(e){return G.runHooks("beforeKeyDown",e)},afterKeyDown:function(e){G.isDestroyed||X.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.getShortcutManager=function(){return me};var ve=me.addContext("grid"),ye={runOnlyIf:function(){return(0,h.isDefined)(X.getSelected())&&X.countRenderedRows()>0&&X.countRenderedCols()>0},group:"gridDefault"};me.setActiveContextName("grid"),ve.addShortcuts([{keys:[["Control/Meta","A"]],callback:function(){X.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:function(){for(var e=X.getSelectedRange(),t=e[e.length-1].highlight,n=t.row,r=t.col,o=X.getDataAtCell(n,r),i=new Map,a=0;a<e.length;a++)e[a].forAll((function(e,t){e>=0&&t>=0&&(e!==n||t!==r)&&(X.getCellMeta(e,t).readOnly||i.set("".concat(e,"x").concat(t),[e,t,o]))}));X.setDataAtCell(Array.from(i.values()))},runOnlyIf:function(){return X.getSelectedRangeLast().getCellsCount()>1}},{keys:[["ArrowUp"]],callback:function(){ie.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:function(){ie.setRangeStart(X._createCellCoords(X.rowIndexMapper.getNearestNotHiddenIndex(0,1),X.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:function(){ie.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=X.getSelectedRangeLast(),t=e.from,n=e.to,r=X.rowIndexMapper.getNearestNotHiddenIndex(0,1);ie.setRangeStart(t.clone()),ie.setRangeEnd(X._createCellCoords(r,n.col))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByColumnHeader())}},{keys:[["ArrowDown"]],callback:function(){ie.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:function(){ie.setRangeStart(X._createCellCoords(X.rowIndexMapper.getNearestNotHiddenIndex(X.countRows()-1,-1),X.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:function(){ie.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=X.getSelectedRangeLast(),t=e.from,n=e.to,r=X.rowIndexMapper.getNearestNotHiddenIndex(X.countRows()-1,-1);ie.setRangeStart(t.clone()),ie.setRangeEnd(X._createCellCoords(r,n.col))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByColumnHeader())}},{keys:[["ArrowLeft"]],callback:function(){ie.transformStart(0,-1*X.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast().highlight.row,n=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[X.countCols()-1,-1]:[0,1]));ie.setRangeStart(X._createCellCoords(t,n))}},{keys:[["ArrowLeft","Shift"]],callback:function(){ie.transformEnd(0,-1*X.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[X.countCols()-1,-1]:[0,1]));ie.setRangeStart(n.clone()),ie.setRangeEnd(X._createCellCoords(r.row,o))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByRowHeader())}},{keys:[["ArrowRight"]],callback:function(){ie.transformStart(0,X.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast().highlight.row,n=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[0,1]:[X.countCols()-1,-1]));ie.setRangeStart(X._createCellCoords(t,n))}},{keys:[["ArrowRight","Shift"]],callback:function(){ie.transformEnd(0,X.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[0,1]:[X.countCols()-1,-1]));ie.setRangeStart(n.clone()),ie.setRangeEnd(X._createCellCoords(r.row,o))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByRowHeader())}},{keys:[["Home"]],captureCtrl:!0,callback:function(){var e=parseInt(X.getSettings().fixedColumnsStart,10),t=X.getSelectedRangeLast().highlight.row,n=X.columnIndexMapper.getNearestNotHiddenIndex(e,1);ie.setRangeStart(X._createCellCoords(t,n))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["Home","Shift"]],callback:function(){ie.setRangeEnd(X._createCellCoords(ie.selectedRange.current().from.row,X.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(X.getSettings().fixedRowsTop,10),t=parseInt(X.getSettings().fixedColumnsStart,10),n=X.rowIndexMapper.getNearestNotHiddenIndex(e,1),r=X.columnIndexMapper.getNearestNotHiddenIndex(t,1);ie.setRangeStart(X._createCellCoords(n,r))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End"]],captureCtrl:!0,callback:function(){ie.setRangeStart(X._createCellCoords(X.getSelectedRangeLast().highlight.row,X.columnIndexMapper.getNearestNotHiddenIndex(X.countCols()-1,-1)))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End","Shift"]],callback:function(){ie.setRangeEnd(X._createCellCoords(ie.selectedRange.current().from.row,X.columnIndexMapper.getNearestNotHiddenIndex(X.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(X.getSettings().fixedRowsBottom,10),t=X.rowIndexMapper.getNearestNotHiddenIndex(X.countRows()-e-1,-1),n=X.columnIndexMapper.getNearestNotHiddenIndex(X.countCols()-1,-1);ie.setRangeStart(X._createCellCoords(t,n))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["PageUp"]],callback:function(){ie.transformStart(-X.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:function(){var e=X.getSelectedRangeLast().to,t=Math.max(e.row-X.countVisibleRows(),0),n=X.rowIndexMapper.getNearestNotHiddenIndex(t,1);if(null!==n){var r=X._createCellCoords(n,e.col),o=e.row-X.view.getFirstFullyVisibleRow(),i=Math.max(r.row-o,0);ie.setRangeEnd(r),X.scrollViewportTo(i)}}},{keys:[["PageDown"]],callback:function(){ie.transformStart(X.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:function(){var e=X.getSelectedRangeLast().to,t=Math.min(e.row+X.countVisibleRows(),X.countRows()-1),n=X.rowIndexMapper.getNearestNotHiddenIndex(t,-1);if(null!==n){var r=X._createCellCoords(n,e.col),o=e.row-X.view.getFirstFullyVisibleRow(),i=Math.min(r.row-o,X.countRows()-1);ie.setRangeEnd(r),X.scrollViewportTo(i)}}},{keys:[["Tab"]],callback:function(e){var t="function"==typeof ee.tabMoves?ee.tabMoves(e):ee.tabMoves;ie.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:function(e){var t="function"==typeof ee.tabMoves?ee.tabMoves(e):ee.tabMoves;ie.transformStart(-t.row,-t.col)}}],ye),(0,C.getPluginsNames)().forEach((function(e){var t=(0,C.getPlugin)(e);ne.addItem(e,new t(G))})),P.default.getSingleton().run(X,"construct")};var o=r(n(14)),i=r(n(64)),a=r(n(21)),s=r(n(32));n(4),n(1),n(52),n(5),n(6),n(31),n(89),n(53),n(72),n(73),n(39),n(20),n(147),n(65),n(51),n(82),n(48),n(22),n(181),n(23),n(67),n(718),n(40);var l,u,c=n(16),d=n(58),h=n(24),f=n(94),p=n(74),g=n(66),m=r(n(182)),v=r(n(49)),y=n(12),E=n(13),T=n(285),C=n(223),R=n(183),w=n(129),S=n(184),O=n(84),b=n(36),A=r(n(738)),N=r(n(787)),M=n(133),I=n(76),_=n(291),k=n(130),P=r(n(59)),x=n(582),L=n(583),D=n(295),F=n(585),U=n(224),H=n(824),V=null,j=new Set},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(71).f,o=n(123),i=n(271),a=n(177),s=n(276),l=n(97),u=n(274),c=n(266),d=n(268),h=n(406),f=n(57),p=n(176).fastKey,g=n(106),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){s(e,h),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),l(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),h=d.prototype,g=v(t),y=function(e,t,n){var r,o,i=g(e),a=E(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},E=function(e,t){var n,r=g(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(h,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=g(this),n=E(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!E(this,e)}}),i(h,n?{get:function(e){var t=E(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(h,"size",{get:function(){return g(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);c(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){"use strict";var r=n(101),o=n(71),i=n(47),a=n(57),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(142),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){var r=n(30);e.exports=r(1..valueOf)},function(e,t,n){var r=n(30),o=n(80),i=n(62),a=n(411),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(61);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(29),o=n(44).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var r=n(29),o=n(44).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){var r=n(44),o=n(128),i=n(50),a=n(122),s=n(180),l=n(416),u=/MSIE .\./.test(a),c=r.Function,d=function(e){return u?function(t,n){var r=l(arguments.length,1)>2,a=i(t)?t:c(t),u=r?s(arguments,2):void 0;return e(r?function(){o(a,this,u)}:a,n)}:e};e.exports={setTimeout:d(r.setTimeout),setInterval:d(r.setInterval)}},function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},function(e,t,n){var r,o,i,a,s=n(44),l=n(128),u=n(177),c=n(50),d=n(55),h=n(29),f=n(383),p=n(180),g=n(208),m=n(416),v=n(720),y=n(418),E=s.setImmediate,T=s.clearImmediate,C=s.process,R=s.Dispatch,w=s.Function,S=s.MessageChannel,O=s.String,b=0,A={};try{r=s.location}catch(e){}var N=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},M=function(e){return function(){N(e)}},I=function(e){N(e.data)},_=function(e){s.postMessage(O(e),r.protocol+"//"+r.host)};E&&T||(E=function(e){m(arguments.length,1);var t=c(e)?e:w(e),n=p(arguments,1);return A[++b]=function(){l(t,void 0,n)},o(b),b},T=function(e){delete A[e]},y?o=function(e){C.nextTick(M(e))}:R&&R.now?o=function(e){R.now(M(e))}:S&&!v?(a=(i=new S).port2,i.port1.onmessage=I,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(_)?(o=_,s.addEventListener("message",I,!1)):o="onreadystatechange"in g("script")?function(e){f.appendChild(g("script")).onreadystatechange=function(){f.removeChild(this),N(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:E,clear:T}},function(e,t,n){var r=n(105),o=n(44);e.exports="process"==r(o.process)},function(e,t,n){var r=n(25),o=n(29),i=n(81),a=n(267),s=n(389);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){var r=n(63),o=n(55),i=n(114),a=n(412),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},function(e,t,n){var r=n(14).default,o=n(725);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(217),o=n(142),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return(r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i}).apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,l=Object.isFrozen,u=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,d=Object.freeze,h=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,g=p.apply,m=p.construct;g||(g=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),h||(h=function(e){return e}),m||(m=function(e,t){return r(e,o(t))});var v,y=M(Array.prototype.forEach),E=M(Array.prototype.pop),T=M(Array.prototype.push),C=M(String.prototype.toLowerCase),R=M(String.prototype.toString),w=M(String.prototype.match),S=M(String.prototype.replace),O=M(String.prototype.indexOf),b=M(String.prototype.trim),A=M(RegExp.prototype.test),N=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(v,t)});function M(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return g(e,t,r)}}function I(e,t,n){n=n||C,s&&s(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(l(t)||(t[r]=i),o=i)}e[o]=!0}return e}function _(e){var t,n=f(null);for(t in e)g(a,e,[t])&&(n[t]=e[t]);return n}function k(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}e=u(e)}return function(e){return console.warn("fallback value for",e),null}}var P=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=d(["#text"]),V=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),j=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=h(/<%[\w\W]*|[\w\W]*%>/gm),z=h(/\${[\w\W]*}/gm),K=h(/^data-[\-\w.\u00B7-\uFFFF]/),X=h(/^aria-[\-\w]+$/),q=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=h(/^(?:\w+script|data):/i),Q=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=h(/^html$/i),J=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(e){return t(e)};if(r.version="2.4.1",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,u=n.Node,c=n.Element,h=n.NodeFilter,f=n.NamedNodeMap,p=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,g=n.HTMLFormElement,m=n.DOMParser,v=n.trustedTypes,M=c.prototype,te=k(M,"cloneNode"),ne=k(M,"nextSibling"),re=k(M,"childNodes"),oe=k(M,"parentNode");if("function"==typeof l){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=ee(v,i),se=ae?ae.createHTML(""):"",le=a,ue=le.implementation,ce=le.createNodeIterator,de=le.createDocumentFragment,he=le.getElementsByTagName,fe=i.importNode,pe={};try{pe=_(a).documentMode?a.documentMode:{}}catch(e){}var ge={};r.isSupported="function"==typeof oe&&ue&&void 0!==ue.createHTMLDocument&&9!==pe;var me,ve,ye=Y,Ee=G,Te=z,Ce=K,Re=X,we=$,Se=Q,Oe=q,be=null,Ae=I({},[].concat(o(P),o(x),o(L),o(F),o(H))),Ne=null,Me=I({},[].concat(o(V),o(j),o(B),o(W))),Ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,ke=null,Pe=!0,xe=!0,Le=!1,De=!1,Fe=!1,Ue=!1,He=!1,Ve=!1,je=!1,Be=!1,We=!0,Ye=!1,Ge="user-content-",ze=!0,Ke=!1,Xe={},qe=null,$e=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,Ze=I({},["audio","video","img","source","image","track"]),Je=null,et=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,it=!1,at=null,st=I({},[tt,nt,rt],R),lt=["application/xhtml+xml","text/html"],ut="text/html",ct=null,dt=a.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ct&&ct===t||(t&&"object"===e(t)||(t={}),t=_(t),me=me=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===me?R:C,be="ALLOWED_TAGS"in t?I({},t.ALLOWED_TAGS,ve):Ae,Ne="ALLOWED_ATTR"in t?I({},t.ALLOWED_ATTR,ve):Me,at="ALLOWED_NAMESPACES"in t?I({},t.ALLOWED_NAMESPACES,R):st,Je="ADD_URI_SAFE_ATTR"in t?I(_(et),t.ADD_URI_SAFE_ATTR,ve):et,Qe="ADD_DATA_URI_TAGS"in t?I(_(Ze),t.ADD_DATA_URI_TAGS,ve):Ze,qe="FORBID_CONTENTS"in t?I({},t.FORBID_CONTENTS,ve):$e,_e="FORBID_TAGS"in t?I({},t.FORBID_TAGS,ve):{},ke="FORBID_ATTR"in t?I({},t.FORBID_ATTR,ve):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,xe=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Fe=t.WHOLE_DOCUMENT||!1,Ve=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,Ye=t.SANITIZE_NAMED_PROPS||!1,ze=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,ot=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(xe=!1),je&&(Ve=!0),Xe&&(be=I({},o(H)),Ne=[],!0===Xe.html&&(I(be,P),I(Ne,V)),!0===Xe.svg&&(I(be,x),I(Ne,j),I(Ne,W)),!0===Xe.svgFilters&&(I(be,L),I(Ne,j),I(Ne,W)),!0===Xe.mathMl&&(I(be,F),I(Ne,B),I(Ne,W))),t.ADD_TAGS&&(be===Ae&&(be=_(be)),I(be,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Ne===Me&&(Ne=_(Ne)),I(Ne,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&I(Je,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(qe===$e&&(qe=_(qe)),I(qe,t.FORBID_CONTENTS,ve)),ze&&(be["#text"]=!0),Fe&&I(be,["html","head","body"]),be.table&&(I(be,["tbody"]),delete _e.tbody),d&&d(t),ct=t)},pt=I({},["mi","mo","mn","ms","mtext"]),gt=I({},["foreignobject","desc","title","annotation-xml"]),mt=I({},["title","style","font","a","script"]),vt=I({},x);I(vt,L),I(vt,D);var yt=I({},F);I(yt,U);var Et=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(vt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&>[r]:Boolean(yt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!gt[r])&&!(t.namespaceURI===tt&&!pt[r])&&!yt[n]&&(mt[n]||!vt[n]):!("application/xhtml+xml"!==me||!at[e.namespaceURI]))},Tt=function(e){T(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Ct=function(e,t){try{T(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(Ve||je)try{Tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Rt=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var r=w(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&ot===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(ot===rt)try{t=(new m).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),ot===rt?he.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:i},wt=function(e){return ce.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},St=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,n){ge[e]&&y(ge[e],(function(e){e.call(r,t,n,ct)}))},At=function(e){var t;if(bt("beforeSanitizeElements",e,null),St(e))return Tt(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return Tt(e),!0;var n=ve(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&(!Ot(e.content)||!Ot(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return Tt(e),!0;if("select"===n&&A(/<template/i,e.innerHTML))return Tt(e),!0;if(!be[n]||_e[n]){if(!_e[n]&&Mt(n)){if(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(ze&&!qe[n]){var o=oe(e)||e.parentNode,i=re(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(te(i[a],!0),ne(e))}return Tt(e),!0}return e instanceof c&&!Et(e)?(Tt(e),!0):"noscript"!==n&&"noembed"!==n||!A(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=S(t,ye," "),t=S(t,Ee," "),t=S(t,Te," "),e.textContent!==t&&(T(r.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(Tt(e),!0)},Nt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in a||n in dt))return!1;if(xe&&!ke[t]&&A(Ce,t));else if(Pe&&A(Re,t));else if(!Ne[t]||ke[t]){if(!(Mt(e)&&(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&A(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(Je[t]);else if(A(Oe,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Qe[e])if(Le&&!A(we,S(n,Se,"")));else if(n)return!1;return!0},Mt=function(e){return e.indexOf("-")>0},It=function(t){var n,o,i,a;bt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(a=s.length;a--;){var u=n=s[a],c=u.name,d=u.namespaceURI;if(o="value"===c?n.value:b(n.value),i=ve(c),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(Ct(c,t),l.keepAttr))if(A(/\/>/i,o))Ct(c,t);else{De&&(o=S(o,ye," "),o=S(o,Ee," "),o=S(o,Te," "));var h=ve(t.nodeName);if(Nt(h,i,o)){if(!Ye||"id"!==i&&"name"!==i||(Ct(c,t),o=Ge+o),ae&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(h,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,c,o):t.setAttribute(c,o),E(r.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},_t=function e(t){var n,r=wt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),At(n)||(n.content instanceof s&&e(n.content),It(n));bt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,a,l,c,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((it=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ot(t)){if("function"!=typeof t.toString)throw N("toString is not a function");if("string"!=typeof(t=t.toString()))throw N("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Ot(t))return n.toStaticHTML(t.outerHTML)}return t}if(Ue||ft(h),r.removed=[],"string"==typeof t&&(Ke=!1),Ke){if(t.nodeName){var f=ve(t.nodeName);if(!be[f]||_e[f])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(a=(o=Rt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Ve&&!De&&!Fe&&-1===t.indexOf("<"))return ae&&Be?ae.createHTML(t):t;if(!(o=Rt(t)))return Ve?null:Be?se:""}o&&He&&Tt(o.firstChild);for(var p=wt(Ke?t:o);l=p.nextNode();)3===l.nodeType&&l===c||At(l)||(l.content instanceof s&&_t(l.content),It(l),c=l);if(c=null,Ke)return t;if(Ve){if(je)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return Ne.shadowroot&&(d=fe.call(i,d,!0)),d}var g=Fe?o.outerHTML:o.innerHTML;return Fe&&be["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&A(Z,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),De&&(g=S(g,ye," "),g=S(g,Ee," "),g=S(g,Te," ")),ae&&Be?ae.createHTML(g):g},r.setConfig=function(e){ft(e),Ue=!0},r.clearConfig=function(){ct=null,Ue=!1},r.isValidAttribute=function(e,t,n){ct||ft({});var r=ve(e),o=ve(t);return Nt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],T(ge[e],t))},r.removeHook=function(e){if(ge[e])return E(ge[e])},r.removeHooks=function(e){ge[e]&&(ge[e]=[])},r.removeAllHooks=function(){ge={}},r}()}(),window.DOMPurify=n(423)},function(e,t,n){"use strict";var r=n(25),o=n(729).start;r({target:"String",proto:!0,forced:n(730)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(115),o=n(62),i=n(80),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",s=r(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(63),o=n(219),i=n(61),a=n(97),s=n(125),l=n(62),u=n(80),c=n(124),d=n(281),h=n(220);o("match",(function(e,t,n){return[function(t){var n=u(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return h(r,o);var u=r.unicode;r.lastIndex=0;for(var c,f=[],p=0;null!==(c=h(r,o));){var g=l(c[0]);f[p]=g,""===g&&(r.lastIndex=d(o,s(r.lastIndex),u)),p++}return 0===p?null:f}]}))},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(286),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:l,calculationType:u,stretchingColumnWidthFn:h}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=c,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=s.get(this),i=o.calculationType,l=o.overrideFn,u=o.scrollOffset,c=o.totalColumns,d=o.viewportWidth,h=0;h<c;h++){e=this._getColumnWidth(h),t<=u&&i!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=h);var f=u>0?d+1:d;if(t>=u&&t+(i===a.FULLY_VISIBLE_TYPE?e:0)<=u+f&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=h),this.endColumn=h),r.push(t),t+=e,i!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=h),t>=u+d){n=!1;break}}if(this.endColumn===c-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var p=r[this.endColumn]+e-r[this.startColumn-1];if((p<=d||i!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),p>d)break}i===a.RENDER_TYPE&&null!==this.startColumn&&l&&l(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),c<this.endColumn&&(this.endColumn=c-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=s.get(this),r=n.totalColumns,o=0,i=0;i<r;i++){var a=this._getColumnWidth(i),l=n.stretchingColumnWidthFn(void 0,i);"number"==typeof l?t-=l:o+=a}var u=t-o;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(r-1),d=u+c;this.stretchLastWidth=d>=0?d:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,r=s.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===s.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=s.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}],[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(286),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:l,calculationType:u,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=0,r=!0,o=[],i=s.get(this),l=i.calculationType,u=i.overrideFn,c=i.rowHeightFn,d=i.scrollOffset,h=i.totalRows,f=i.viewportHeight,p=i.horizontalScrollbarHeight||0,g=0;g<h;g++)if(t=c(g),isNaN(t)&&(t=e.DEFAULT_HEIGHT),n<=d&&l!==a.FULLY_VISIBLE_TYPE&&(this.startRow=g),n>=d&&n+(l===a.FULLY_VISIBLE_TYPE?t:0)<=d+f-p&&(null===this.startRow&&(this.startRow=g),this.endRow=g),o.push(n),n+=t,l!==a.FULLY_VISIBLE_TYPE&&(this.endRow=g),n>=d+f-p){r=!1;break}if(this.endRow===h-1&&r)for(this.startRow=this.endRow;this.startRow>0;){var m=o[this.endRow]+t-o[this.startRow-1];if((m<=f-p||l!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),m>=f-p)break}l===a.RENDER_TYPE&&null!==this.startRow&&u&&u(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),h<this.endRow&&(this.endRow=h-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(41),n(22),n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=r(n(78)),l=r(n(79)),u=r(n(287));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,o.default)(this,e),(0,a.default)(this,"highlight",null),(0,a.default)(this,"from",null),(0,a.default)(this,"to",null),c(this,d,{writable:!0,value:!1}),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone(),(0,l.default)(this,d,i)}return(0,i.default)(e,[{key:"setHighlight",value:function(e){return this.highlight=e.clone().normalize(),this}},{key:"setFrom",value:function(e){return this.from=e.clone(),this}},{key:"setTo",value:function(e){return this.to=e.clone(),this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){if(this.from.row<0&&this.to.row<0)return 0;var e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getWidth",value:function(){if(this.from.col<0&&this.to.col<0)return 0;var e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getCellsCount",value:function(){return this.getWidth()*this.getHeight()}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getOuterTopRightCorner().col>=e.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=e.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=e.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=e.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getOuterBottomRightCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=e.getOuterBottomRightCorner().row||this.getOuterTopRightCorner().row<=e.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=e.getOuterTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=this.getDirection(),o=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),l=Math.max(n.row,i.row),u=Math.max(n.col,i.col),c=this._createCellCoords(a,s),d=this._createCellCoords(l,u);return this.from=c,this.to=d,this.setDirection(r),this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];this.from=o[0],this.to=o[1]}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getTopEndCorner():this.getTopStartCorner()}},{key:"getBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getBottomStartCorner():this.getBottomEndCorner()}},{key:"getTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getTopStartCorner():this.getTopEndCorner()}},{key:"getBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getBottomEndCorner():this.getBottomStartCorner()}},{key:"getOuterTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}},{key:"getOuterBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}},{key:"getOuterTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}},{key:"getOuterBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getOuterTopLeftCorner().isEqual(this._createCellCoords(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(this._createCellCoords(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(this._createCellCoords(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(this._createCellCoords(t.to.row,t.to.col))))||(e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof u.default))return!1;if(t){var n=t.from,r=t.to;if(t.includes(e)){if(this.getOuterTopStartCorner().isEqual(this._createCellCoords(n.row,n.col)))return this.getOuterBottomEndCorner();if(this.getOuterTopEndCorner().isEqual(this._createCellCoords(n.row,r.col)))return this.getOuterBottomStartCorner();if(this.getOuterBottomStartCorner().isEqual(this._createCellCoords(r.row,n.col)))return this.getOuterTopEndCorner();if(this.getOuterBottomEndCorner().isEqual(this._createCellCoords(r.row,r.col)))return this.getOuterTopStartCorner()}}return e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===l&&u.push("right"),n===a&&u.push("bottom"),r===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(this._createCellCoords(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(this._createCellCoords(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){if(!1===e(r,o))return}}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to,(0,s.default)(this,d))}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}},{key:"_createCellCoords",value:function(e,t){return new u.default(e,t,(0,s.default)(this,d))}}]),e}();t.default=h},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6),n(67),n(31);var a=n(16),s=n(58),l=n(107),u=n(94),c=n(24),d=new WeakMap,h=function(){function e(t,n,r,i,a,s){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;(0,o.default)(this,e),this.wtSettings=r,this.domBindings=n,this.wtTable=a,this.selections=s,this.parent=l,this.eventManager=i,this.facadeGetter=t,d.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return(0,i.default)(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.wtTable.holder,"contextmenu",(function(t){return e.onContextMenu(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseout",(function(t){return e.onMouseOut(t)}));var t=function(){e.eventManager.addEventListener(e.wtTable.holder,"touchstart",(function(t){return e.onTouchStart(t)})),e.eventManager.addEventListener(e.wtTable.holder,"touchend",(function(t){return e.onTouchEnd(t)})),e.momentumScrolling||(e.momentumScrolling={}),e.eventManager.addEventListener(e.wtTable.holder,"scroll",(function(){clearTimeout(e.momentumScrolling._timeout),e.momentumScrolling.ongoing||e.wtSettings.getSetting("onBeforeTouchScroll"),e.momentumScrolling.ongoing=!0,e.momentumScrolling._timeout=setTimeout((function(){e.touchApplied||(e.momentumScrolling.ongoing=!1,e.wtSettings.getSetting("onAfterMomentumScroll"))}),200)}))};(0,u.isMobileBrowser)()?t():((0,l.isTouchSupported)()&&t(),e.eventManager.addEventListener(e.wtTable.holder,"mouseup",(function(t){return e.onMouseUp(t)})),e.eventManager.addEventListener(e.wtTable.holder,"mousedown",(function(t){return e.onMouseDown(t)})))}},{key:"selectedCellWasTouched",value:function(e){var t=d.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var r=[n.row,t.selectedCellBeforeTouchEnd.from.row],o=r[0],i=r[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return o===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.wtTable.TABLE,r=(0,a.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.wtTable.getCoords(r),t.TD=r):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.selections.getCell().cellRange.highlight,t.TD=this.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"area")&&this.selections.createOrGetArea().cellRange&&(t.coords=this.selections.createOrGetArea().cellRange.to,t.TD=this.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=d.get(this),n=this.domBindings.rootDocument.activeElement,r=(0,s.partial)(a.getParent,e.target),o=e.target;if(o!==n&&r(0)!==n&&r(1)!==n){var i=this.parentCell(o);(0,a.hasClass)(o,"corner")?this.wtSettings.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.wtSettings.has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,i.coords,i.TD),(0===e.button||this.touchApplied)&&i.TD&&(t.dblClickOrigin[0]=i.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout((function(){t.dblClickOrigin[0]=null}),1e3))}}},{key:"onContextMenu",value:function(e){if(this.wtSettings.has("onCellContextMenu")){var t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}},{key:"onMouseOver",value:function(e){if(this.wtSettings.has("onCellMouseOver")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=this.parent||this;n&&n!==r.lastMouseOver&&(0,a.isChildOf)(n,t)&&(r.lastMouseOver=n,this.callListener("onCellMouseOver",e,this.wtTable.getCoords(n),n))}}},{key:"onMouseOut",value:function(e){if(this.wtSettings.has("onCellMouseOut")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=(0,a.closestDown)(e.relatedTarget,["TD","TH"],t);n&&n!==r&&(0,a.isChildOf)(n,t)&&this.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n)}}},{key:"onMouseUp",value:function(e){var t=d.get(this),n=this.parentCell(e.target);n.TD&&this.wtSettings.has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),(0===e.button||this.touchApplied)&&(n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout((function(){t.dblClickOrigin[1]=null}),500)))}},{key:"onTouchStart",value:function(e){d.get(this).selectedCellBeforeTouchEnd=this.selections.getCell().cellRange,this.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t,n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,o=(0,c.isDefined)(r)&&r.row>=0&&r.col>=0;if(e.cancelable&&o&&this.wtSettings.getSetting("isDataViewInstance")){(0,u.isIOS)()&&((0,u.isChromeWebKit)()||(0,u.isFirefoxWebKit)())&&this.selectedCellWasTouched(n)&&!["A","BUTTON","INPUT"].includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}},{key:"callListener",value:function(e,t,n,r){var o=this.wtSettings.getSettingPure(e);o&&o(t,n,r,this.facadeGetter())}},{key:"destroy",value:function(){var e=d.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Renderer=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(750));t.RowHeadersRenderer=a.default;var s=r(n(755));t.ColumnHeadersRenderer=s.default;var l=r(n(756));t.ColGroupRenderer=l.default;var u=r(n(757));t.RowsRenderer=u.default;var c=r(n(758));t.CellsRenderer=c.default;var d=r(n(759));t.TableRenderer=d.default;var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,i=t.COLGROUP,h=t.TBODY,f=t.rowUtils,p=t.columnUtils,g=t.cellRenderer;(0,o.default)(this,e),this.renderer=new d.default(n,{cellRenderer:g}),this.renderer.setRenderers({rowHeaders:new a.default,columnHeaders:new s.default(r),colGroup:new l.default(i),rows:new u.default(h),cells:new c.default}),this.renderer.setAxisUtils(f,p)}return(0,i.default)(e,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),e}();t.Renderer=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(570),s=r(n(751)),l=function(){function e(t,n,r){(0,o.default)(this,e),this.rootNode=t,this.nodesPool=n,this.sizeSet=new s.default,this.childNodeType=r.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}return(0,i.default)(e,[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var r=e.firstElementChild;r;){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(a.WORKING_SPACE_TOP))break;r=r.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize().nextSize,o=this.getRenderedChildCount();o<r;){var i=this.nodesPool();!n||n&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)?e.appendChild(i):e.insertBefore(i,e.firstChild),o+=1}for(var s=n&&t.isPlaceOn(a.WORKING_SPACE_TOP);o>r;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_TOP=t.WORKING_SPACE_BOTTOM=t.WORKING_SPACE_ALL=void 0;t.WORKING_SPACE_ALL=0;t.WORKING_SPACE_TOP=1;t.WORKING_SPACE_BOTTOM=2},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getLastRenderedRow:function(){var e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow:function(){var e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getRenderedRowsCount:function(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount:function(){return this.dataAccessObject.countRowsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){var r=n(25),o=n(392),i=n(29),a=n(56),s=n(176).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller,s=t.cellCoordsFactory;a.get(e.type)({coords:n,selection:o,controller:i,cellCoordsFactory:s,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})},t.mouseDown=o,t.mouseOver=i,n(4),n(40),n(1),n(5),n(6);var r=n(75);function o(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=e.cellCoordsFactory,l=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&l)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(u||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):u&&o.row<0&&!a.column?i.setRangeEnd(s(l.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,l.to.col)):(!u&&!c&&o.col<0||u&&o.col<0)&&!a.row?i.selectRows(Math.max(l.from.row,0),o.row,o.col):(!u&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(l.from.col,0),o.col,o.row);else{var d=!i.inInSelection(o),h=n||r&&d;o.row<0&&o.col>=0&&!a.column?h&&i.selectColumns(o.col,o.col,o.row):o.col<0&&o.row>=0&&!a.row?h&&i.selectRows(o.row,o.row,o.col):o.col>=0&&o.row>=0&&!a.cell?h&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0)}}function i(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller,i=e.cellCoordsFactory;if(t){var a=r.isSelectedByRowHeader(),s=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),u=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(u-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,l-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){var r=n(47);t.f=r},function(e,t,n){var r=n(781),o=n(55),i=n(576),a=n(71).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(140);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";n(23),n(43),t.__esModule=!0;var r={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!d.has(e))throw new Error('The provided map type ("'.concat(e,'") does not exist.'));return new(d.get(e))(t)},n(4),n(40),n(1),n(5),n(6);var o=n(789);t.HidingMap=o.HidingMap;var i=n(227);t.IndexMap=i.IndexMap;var a=n(791);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(292);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var l=n(792);t.TrimmingMap=l.TrimmingMap;var u=n(793);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(228);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",a.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",s.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},function(e,t,n){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,r.arrayMap)(e,(function(e){return e-t.filter((function(t){return t<e})).length}))},t.getIncreasedIndexes=function(e,t){var n=t[0],o=t.length;return(0,r.arrayMap)(e,(function(e){return e>=n?e+o:e}))},n(35),n(1);var r=n(13)},function(e,t,n){"use strict";t.__esModule=!0,t.alterUtilsFactory=void 0,n(4),n(40),n(1),n(5),n(6);var r=n(580);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(228),i=n(293),a=new Map([["indexesSequence",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}]]);t.alterUtilsFactory=function(e){if(!1===a.has(e))throw new Error("Alter strategy with ID '".concat(e,"' does not exist."));return a.get(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.dictionaryKeys=t.DEFAULT_LANGUAGE_CODE=void 0,t.getDefaultLanguageDictionary=function(){return d.default},t.getLanguageDictionary=C,t.getLanguagesDictionaries=function(){return E()},t.getTranslatedPhrase=function(e,t,n){var r=C(e);if(null===r)return null;var o=r[t];if((0,s.isUndefined)(o))return null;var i=function(e,t){var n=e;return(0,a.arrayEach)((0,c.getPhraseFormatters)(),(function(r){n=r(e,t)})),n}(o,n);if(Array.isArray(i))return i[0];return i},t.getValidLanguageCode=function(e){var t=(0,l.normalizeLanguageCode)(e);R(t)||(t=p,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=R,t.registerLanguageDictionary=T;var i=n(12),a=n(13),s=n(24),l=n(583),u=r(n(102)),c=n(799),d=r(n(801)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}t.dictionaryKeys=h;var p=d.default.languageCode;t.DEFAULT_LANGUAGE_CODE=p;var g=(0,u.default)("languagesDictionaries"),m=g.register,v=g.getItem,y=g.hasItem,E=g.getValues;function T(e,t){var n=e,r=t;return(0,i.isObject)(e)&&(n=(r=e).languageCode),function(e,t){e!==p&&(0,l.extendNotExistingKeys)(t,v(p))}(n,r),m(n,(0,i.deepClone)(r)),(0,i.deepClone)(r)}function C(e){return R(e)?(0,i.deepClone)(v(e)):null}function R(e){return y(e)}T(d.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createCellHeadersRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=n,i=r;if(e>t){var a=[i,o];o=a[0],i=a[1]}return"".concat(o,"-").concat(i)},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(function(t,n){(0,a.isUndefined)(e[n])&&(e[n]=t)})),e},t.normalizeLanguageCode=function(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase());return e},t.warnUserAboutLanguageRegistration=function(e){(0,a.isDefined)(e)&&(0,l.error)((0,u.toSingleLine)(i||(i=(0,o.default)(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'])),e))};var o=r(n(64));n(20),n(51);var i,a=n(24),s=n(12),l=n(74),u=n(66)},function(e,t,n){"use strict";n(43),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(147),n(4),n(40),n(1),n(5),n(6),n(31),n(41),n(20),n(296),n(54),n(186);var o=r(n(32)),i=r(n(26)),a=r(n(2)),s=r(n(3)),l=n(802),u=n(103),c=n(13);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){function t(e){(0,a.default)(this,t),this.options=e,this.layerLevel=0,this.cell=(0,l.createHighlight)(u.CELL_TYPE,e),this.fill=(0,l.createHighlight)(u.FILL_TYPE,e),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(t,[{key:"isEnabledFor",value:function(e,t){var n=e;e===u.CELL_TYPE&&(n="current");var r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}},{key:"useLayerLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=(0,l.createHighlight)(u.AREA_TYPE,h({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return(0,o.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,l.createHighlight)(u.HEADER_TYPE,h({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return(0,o.default)(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,l.createHighlight)(u.ACTIVE_HEADER_TYPE,h({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return(0,o.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,o.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,l.createHighlight)(u.CUSTOM_SELECTION_TYPE,h(h({},this.options),e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,c.arrayEach)(this.areas.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.headers.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:e,value:function(){return[this.cell,this.fill].concat((0,o.default)(this.areas.values()),(0,o.default)(this.headers.values()),(0,o.default)(this.activeHeaders.values()),(0,o.default)(this.customSelections))[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(586));t.DataMap=o.default;var i=r(n(816));t.MetaManager=i.default;var a=r(n(588));t.metaSchemaFactory=a.default;var s=n(821);t.replaceData=s.replaceData;var l=n(822);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var u=n(823);t.ExtendMetaPropertiesMod=u.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6),n(72),n(73),n(53),n(89),n(39),n(23),n(20),n(35),n(22);var o=r(n(32)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(587),u=n(133),c=n(12),d=n(13),h=n(36),f=n(24),p=function(){function e(t,n,r){(0,a.default)(this,e),this.instance=t,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.duckSchema=this.createDuckSchema(),this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap()}return(0,s.default)(e,[{key:"createMap",value:function(){var e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");var t,n=this.tableMeta.columns;if(this.colToPropCache=[],this.propToColCache=new Map,n){var r=0,o=0,i=!1;if("function"==typeof n){var a=(0,c.deepObjectSize)(e);r=a>0?a:this.countFirstRowKeys(),i=!0}else{var s=this.tableMeta.maxCols;r=Math.min(s,n.length)}for(t=0;t<r;t++){var l=i?n(t):n[t];if((0,c.isObject)(l)){if(void 0!==l.data){var u=i?o:t;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,u.countFirstRowKeys)(this.dataSource)}},{key:"recursiveDuckColumns",value:function(e,t,n){var r,o=this,a=t,s=n;return void 0===a&&(a=0,s=""),"object"!==(0,i.default)(e)||Array.isArray(e)||(0,c.objectEach)(e,(function(e,t){null===e?(r=s+t,o.colToPropCache.push(r),o.propToColCache.set(r,a),a+=1):a=o.recursiveDuckColumns(e,a,"".concat(t,"."))})),a}},{key:"colToProp",value:function(e){if(!1===Number.isInteger(e))return e;var t=this.instance.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,f.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t=this.propToColCache.get(e);if((0,f.isDefined)(t))return this.instance.toVisualColumn(t);var n=this.instance.toVisualColumn(e);return null===n?e:n}},{key:"getSchema",value:function(){var e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createDuckSchema",value:function(){return this.dataSource&&this.dataSource[0]?(0,c.duckSchema)(this.dataSource[0]):{}}},{key:"refreshDuckSchema",value:function(){this.duckSchema=this.createDuckSchema()}},{key:"createRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.source,i=r.mode,a=void 0===i?"above":i,s=this.instance.countSourceRows(),l=s,u=0,d=e;("number"!=typeof d||d>=s)&&(d=s),d<this.instance.countRows()&&(l=this.instance.toPhysicalRow(d));var f=this.instance.runHooks("beforeCreateRow",d,n,o);if(!1===f||null===l)return{delta:0};for(var p=this.tableMeta.maxRows,g=this.getSchema().length,m=[],v=function(){var e=null;"array"===t.instance.dataType?t.tableMeta.dataSchema?e=(0,c.deepClone)(t.getSchema()):(e=[],(0,h.rangeEach)(g-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.tableMeta.dataSchema(d+u):(e={},(0,c.deepExtend)(e,t.getSchema())),m.push(e),u+=1};u<n&&s+u<p;)v();this.instance.rowIndexMapper.insertIndexes(d,u),"below"===a&&(l=Math.min(l+1,s)),this.spliceData(l,0,m);var y=this.instance.toVisualRow(l);return this.instance.countSourceRows()===m.length&&this.instance.columnIndexMapper.initToLength(this.instance.getInitialColumnCount()),u>0&&(null==e?this.metaManager.createRow(null,u):"auto"!==o&&this.metaManager.createRow(l,n)),this.instance.runHooks("afterCreateRow",y,u,o),this.instance.forceFullRender=!0,{delta:u,startPhysicalIndex:l}}},{key:"createCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=n.mode,i=void 0===o?"start":o;if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var a=this.dataSource,s=this.tableMeta.maxCols,l=this.instance.countSourceCols(),u=e;("number"!=typeof u||u>=l)&&(u=l);var c=this.instance.runHooks("beforeCreateCol",u,t,r);if(!1===c)return{delta:0};var d=l;u<this.instance.countCols()&&(d=this.instance.toPhysicalColumn(u));var h=this.instance.countSourceRows(),f=this.instance.countCols(),p=0,g=d;"end"===i&&(g=Math.min(g+1,l));for(var m=g;p<t&&f<s;){if("number"!=typeof u||u>=f)if(h>0)for(var v=0;v<h;v+=1)void 0===a[v]&&(a[v]=[]),a[v].push(null);else a.push([null]);else for(var y=0;y<h;y++)a[y].splice(g,0,null);p+=1,g+=1,f+=1}this.instance.columnIndexMapper.insertIndexes(u,p),p>0&&(null==e?this.metaManager.createColumn(null,p):"auto"!==r&&this.metaManager.createColumn(m,t));var E=this.instance.toVisualColumn(m);return this.instance.runHooks("afterCreateCol",E,p,r),this.instance.forceFullRender=!0,this.refreshDuckSchema(),{delta:p,startPhysicalIndex:m}}},{key:"removeRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=Number.isInteger(e)?e:-n,i=this.visualRowsToPhysical(o,n),a=this.instance.countSourceRows();o=(a+o)%a;var s=this.instance.runHooks("beforeRemoveRow",o,i.length,i,r);if(!1===s)return!1;var l=i.length;if(this.filterData(o,l,i),o<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(i);var u=(0,f.isDefined)(this.tableMeta.columns)||(0,f.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===u&&this.instance.columnIndexMapper.setIndexesSequence([])}var c=i.slice(0).sort((function(e,t){return t-e}));return c.forEach((function(e){t.metaManager.removeRow(e,1)})),this.instance.runHooks("afterRemoveRow",o,l,i,r),this.instance.forceFullRender=!0,!0}},{key:"removeCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e})),a=this.instance.runHooks("beforeRemoveCol",r,t,o,n);if(!1===a)return!1;for(var s=!0,l=i.length,u=this.dataSource,c=0;c<l;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)u[d].splice(o[0],t),0===d&&this.metaManager.removeColumn(o[0],t);else for(var f=0,p=this.instance.countSourceRows();f<p;f++)for(var g=0;g<l;g++)u[f].splice(i[g],1),0===f&&this.metaManager.removeColumn(i[g],1);return r<this.instance.countCols()&&(this.instance.columnIndexMapper.removeIndexes(o),0===this.instance.columnIndexMapper.getNotTrimmedIndexesLength()&&this.instance.rowIndexMapper.setIndexesSequence([])),this.instance.runHooks("afterRemoveCol",r,t,o,n),this.instance.forceFullRender=!0,this.refreshDuckSchema(),!0}},{key:"spliceCol",value:function(e,t,n){for(var r=this.instance.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return(0,d.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),o}},{key:"spliceRow",value:function(e,t,n){for(var r=this.instance.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),o}},{key:"spliceData",value:function(e,t,n){var r=this;if(!1!==this.instance.runHooks("beforeDataSplice",e,t,n)){var i=[].concat((0,o.default)(this.dataSource.slice(0,e)),(0,o.default)(n),(0,o.default)(this.dataSource.slice(e)));this.dataSource.length=0,i.forEach((function(e){return r.dataSource.push(e)}))}}},{key:"filterData",value:function(e,t,n){var r=this.instance.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),r=this.dataSource[n],o=this.instance.runHooks("modifyRowData",n),i=null;if((r=isNaN(o)?o:r)&&r.hasOwnProperty&&(0,c.hasOwnProperty)(r,t))i=r[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=r;if(!s)return null;for(var l=0,u=a.length;l<u;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var d=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),d,"get"),d.isTouched()&&(i=d.value)}return i}},{key:"getCopyable",value:function(e,t){return this.instance.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}},{key:"set",value:function(e,t,n){var r=this.instance.toPhysicalRow(e),o=n,i=this.dataSource[r],a=this.instance.runHooks("modifyRowData",r);if(i=isNaN(a)?a:i,this.instance.hasHook("modifyData")){var s=(0,c.createObjectPropListener)(o);this.instance.runHooks("modifyData",r,this.propToCol(t),s,"set"),s.isTouched()&&(o=s.value)}if(i&&i.hasOwnProperty&&(0,c.hasOwnProperty)(i,t))i[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){var l,u=t.split("."),d=i,h=0;for(h=0,l=u.length-1;h<l;h++)void 0===d[u[h]]&&(d[u[h]]={}),d=d[u[h]];d[u[h]]=o}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],o):i[t]=o}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,r=this.instance.countSourceRows(),o=[],i=(r+e)%r,a=t;i<r&&a;)n=this.instance.toPhysicalRow(i),o.push(n),a-=1,i+=1;return o}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),r=[],o=(n+e)%n,i=t;o<n&&i;){var a=this.instance.toPhysicalColumn(o);r.push(a),i-=1,o+=1}return r}},{key:"clear",value:function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")}},{key:"getLength",value:function(){var e,t=this.tableMeta.maxRows;e=t<0||0===t?0:t||1/0;var n=this.instance.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,e)}},{key:"getAll",value:function(){var t={row:0,col:0},n={row:Math.max(this.instance.countRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return t.row-n.row!=0||this.instance.countSourceRows()?this.getRange(t,n,e.DESTINATION_RENDERER):[]}},{key:"countCachedColumns",value:function(){return this.colToPropCache.length}},{key:"getRange",value:function(t,n,r){var o,i,a,s=[],l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(0===l||0===u)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(l-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(u-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=d;o++){a=[];var f=o>=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=h&&null!==f;i++)a.push(c.call(this,o,this.colToProp(i)));null!==f&&s.push(a)}return s}},{key:"getText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.instance=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}],[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),e}();t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=t.parse=void 0;var r=n(815);t.parse=r.parse,t.stringify=r.stringify},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(14)),i=n(24),a=n(12);t.default=function(){return{_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(r=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(r))return!1;return!0},isEmptyRow:function(e){var t,n,r,s;for(t=0,n=this.countCols();t<n;t++)if(r=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(r))return"object"===(0,o.default)(r)&&(s=this.getCellMeta(e,t),(0,a.isObjectEqual)(this.getSchema()[s.prop],r));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:void 0,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(52),n(5),n(6),n(20),n(39),n(53),n(296),n(54),n(186),n(22);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(13),l=n(187),u=function(e){function t(e){(0,i.default)(this,t),this.valueFactory=e,this.data=[],this.index=[],this.holes=new Set}return(0,a.default)(t,[{key:"obtain",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t,n=this._getStorageIndexByKey(e);if(n>=0)void 0===(t=this.data[n])&&(t=this.valueFactory(e),this.data[n]=t);else if(t=this.valueFactory(e),this.holes.size>0){var r=this.holes.values().next().value;this.holes.delete(r),this.data[r]=t,this.index[e]=r}else this.data.push(t),this.index[e]=this.data.length-1;return t}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=[],r=this.data.length,i=0;i<t;i++)n.push(r+i),this.data.push(void 0);var a=(0,l.isNullish)(e)?this.index.length:e;this.index=[].concat((0,o.default)(this.index.slice(0,a)),n,(0,o.default)(this.index.slice(a)))}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,l.isNullish)(e)?this.index.length-t:e,t),r=0;r<n.length;r++){var o=n[r];"number"==typeof o&&this.holes.add(o)}}},{key:"size",value:function(){return this.data.length-this.holes.size}},{key:"values",value:function(){var e=this;return(0,s.arrayFilter)(this.data,(function(t,n){return!e.holes.has(n)}))[Symbol.iterator]()}},{key:"entries",value:function(){for(var e=[],t=0;t<this.data.length;t++){var n=this._getKeyByStorageIndex(t);-1!==n&&e.push([n,this.data[t]])}var r=0;return{next:function(){if(r<e.length){var t=e[r];return r+=1,{value:t,done:!1}}return{done:!0}}}}},{key:"clear",value:function(){this.data=[],this.index=[],this.holes.clear()}},{key:"_getStorageIndexByKey",value:function(e){return this.index.length>e?this.index[e]:-1}},{key:"_getKeyByStorageIndex",value:function(e){return this.index.indexOf(e)}},{key:e,value:function(){return this.entries()}}]),t}(Symbol.iterator);t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(4),n(40),n(1),n(5),n(6),n(83),n(89),n(65);var r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=function(e){return e.map((function(e){var t=e.toLowerCase();return r.has(t)?r.get(t):t})).sort().join("+")};t.getKeysList=function(e){return e.split("+")};t.normalizeEventKey=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(829);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.SHORTCUTS_GROUP_EDITOR=t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var o=r(n(21)),i=r(n(10)),a=r(n(11)),s=r(n(8)),l=r(n(2)),u=r(n(3));n(574),n(149),n(85),n(31);var c=n(24),d=n(12),h=n(182),f=r(n(831)),p=n(16);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}t.EDITOR_TYPE="base";var m=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});t.EDITOR_STATE=m;t.SHORTCUTS_GROUP_EDITOR="baseEditor";var v=function(){function e(t){(0,l.default)(this,e),this.hot=t,this.instance=t,this.state=m.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}return(0,u.default)(e,[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=m.VIRGIN}},{key:"extend",value:function(){return function(e){(0,i.default)(n,e);var t=g(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,u.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var l=this.hot.getSelectedLast();n=Math.max(Math.min(l[0],l[2]),0),r=Math.max(Math.min(l[1],l[3]),0),i=Math.max(l[0],l[2]),a=Math.max(l[1],l[3])}else{var u=[this.row,this.col,null,null];n=u[0],r=u[1],i=u[2],a=u[3]}var d=this.hot.runHooks("modifyGetCellCoords",n,r);if(Array.isArray(d)){var h=(0,o.default)(d,2);n=h[0],r=h[1]}var f=this.hot.getShortcutManager().getContext("editor"),p={runOnlyIf:function(){return(0,c.isDefined)(s.hot.getSelected())},group:"baseEditor"};this.isInFullEditMode()&&f.addShortcuts([{keys:[["ArrowUp"]],callback:function(){s.hot.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){s.hot.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){s.hot.selection.transformStart(0,-1*s.hot.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){s.hot.selection.transformStart(0,s.hot.getDirectionFactor())}}],p),this.hot.populateFromArray(n,r,e,i,a,"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===m.VIRGIN){var n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col);if(n.view.scrollViewport(n._createCellCoords(r,o)),this.state=m.EDITING,this.isInFullEditMode()){var i="string"==typeof e?e:(0,c.stringify)(this.originalValue);this.setValue(i)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,o=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.hot.view.render()}}if(!this.isWaiting()){var a=this.hot.getShortcutManager().getContext("editor");if(a.removeShortcutsByGroup("baseEditor"),a.removeShortcutsByGroup(h.SHORTCUTS_GROUP_NAVIGATION),this.state!==m.VIRGIN){if(this.state===m.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var s=this.getValue();r=this.cellProperties.trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=m.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=m.FINISHED,o.discardEditor(e)})):(this.state=m.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}}},{key:"cancelChanges",value:function(){this.state=m.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===m.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=m.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=m.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===m.WAITING}},{key:"getEditedCellRect",value:function(){var e,t=this.getEditedCell();if(t){var n=this.hot.view._wt,r=n.wtOverlays,o=n.wtViewport,i=this.hot.rootWindow,a=(0,p.offset)(t),s=(0,p.outerWidth)(t),l=(0,p.offset)(this.hot.rootElement),u=(0,p.outerWidth)(this.hot.rootElement),c=r.topOverlay.holder,d=r.inlineStartOverlay.holder,h=c!==i?c.scrollTop:0,f=d!==i?d.scrollLeft:0,g=i.innerWidth-l.left-u,m=(null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt).wtTable,v=m.name,y=["master","inline_start"].includes(v)?h:0,E=["master","top","bottom"].includes(v)?f:0,T=a.top===l.top?0:1,C=a.top-l.top-T-y,R=0;R=this.hot.isRtl()?i.innerWidth-a.left-s-g-1+E:a.left-l.left-1-E,["top","top_inline_start_corner"].includes(v)&&(C+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(v)&&(R+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));var w=this.hot.hasColHeaders(),S=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),O=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),b=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(w&&S<=0||S===b)&&(C+=1),O<=0&&(R+=1);var A=o.rowsRenderCalculator.startPosition,N=o.columnsRenderCalculator.startPosition,M=Math.abs(r.inlineStartOverlay.getScrollPosition()),I=r.topOverlay.getScrollPosition(),_=(0,p.getScrollbarWidth)(this.hot.rootDocument),k=t.offsetTop+A-I,P=0;if(this.hot.isRtl()){var x=t.offsetLeft;P=x>=0?m.getWidth()-t.offsetLeft:Math.abs(x),P+=N-M-s}else P=t.offsetLeft+N-M;var L=(0,p.getComputedStyle)(this.TD,this.hot.rootWindow),D=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",F=parseInt(L[D],10)>0?0:1,U=parseInt(L.borderTopWidth,10)>0?0:1,H=(0,p.outerWidth)(t)+F,V=(0,p.outerHeight)(t)+U,j=(0,p.hasVerticalScrollbar)(c)?_:0,B=(0,p.hasHorizontalScrollbar)(d)?_:0,W=this.hot.view.maximumVisibleElementWidth(P)-j+F;return{top:C,start:R,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(k)-B+U,23),width:H,maxWidth:W}}}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),e}();t.BaseEditor=v,(0,d.mixin)(v,f.default)},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var r=n(841);t.EDITOR_TYPE=r.EDITOR_TYPE,t.CheckboxEditor=r.CheckboxEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0;var r=n(845);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DropdownEditor=r.DropdownEditor},function(e,t,n){"use strict";t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var r=n(846);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var r=n(847);t.EDITOR_TYPE=r.EDITOR_TYPE,t.PasswordEditor=r.PasswordEditor},function(e,t,n){"use strict";t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var r=n(850);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TimeEditor=r.TimeEditor},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=t.RENDERER_TYPE=void 0;var r=n(853);t.RENDERER_TYPE=r.RENDERER_TYPE,t.htmlRenderer=r.htmlRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.checkboxRenderer=t.RENDERER_TYPE=void 0;var r=n(855);t.RENDERER_TYPE=r.RENDERER_TYPE,t.checkboxRenderer=r.checkboxRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.numericRenderer=t.RENDERER_TYPE=void 0;var r=n(857);t.RENDERER_TYPE=r.RENDERER_TYPE,t.numericRenderer=r.numericRenderer},function(e,t,n){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=!1,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){!function(e){"use strict";var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",l=1e14,u=14,c=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,f=1e9;function p(e){var t=0|e;return 0<e||e===t?t:t-1}function g(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=u-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function m(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return u<l^n?1:-1;for(s=(l=o.length)<(u=i.length)?l:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return l==u?0:u<l^n?1:-1}function v(e,t,n,r){if(e<t||n<e||e!==(e<0?o(e):i(e)))throw Error(a+(r||"Argument")+("number"==typeof e?e<t||n<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return p(e.e/u)==t&&e.c[t]%2!=0}function E(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function T(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var n,C,R,w,S,O,b,A,N,M,I=W.prototype={constructor:W,toString:null,valueOf:null},_=new W(1),k=20,P=4,x=-7,L=21,D=-1e7,F=1e7,U=!1,H=1,V=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz";function W(e,t){var n,o,a,l,d,h,f,p,g=this;if(!(g instanceof W))return new W(e,t);if(null==t){if(e instanceof W)return g.s=e.s,g.e=e.e,void(g.c=(e=e.c)?e.slice():e);if((h="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,d=e;10<=d;d/=10,l++);return g.e=l,void(g.c=[e])}p=String(e)}else{if(p=String(e),!r.test(p))return R(g,p,h);g.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}-1<(l=p.indexOf("."))&&(p=p.replace(".","")),0<(d=p.search(/e/i))?(l<0&&(l=d),l+=+p.slice(d+1),p=p.substring(0,d)):l<0&&(l=p.length)}else{if(v(t,2,B.length,"Base"),p=String(e),10==t)return K(g=new W(e instanceof W?e:p),k+g.e+1,P);if(h="number"==typeof e){if(0*e!=0)return R(g,p,h,t);if(g.s=1/e<0?(p=p.slice(1),-1):1,W.DEBUG&&15<p.replace(/^0\.0*|\./,"").length)throw Error(s+e);h=!1}else g.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=B.slice(0,t),l=d=0,f=p.length;d<f;d++)if(n.indexOf(o=p.charAt(d))<0){if("."==o){if(l<d){l=f;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,d=-1,l=0;continue}return R(g,String(e),h,t)}-1<(l=(p=C(p,t,10,g.s)).indexOf("."))?p=p.replace(".",""):l=p.length}for(d=0;48===p.charCodeAt(d);d++);for(f=p.length;48===p.charCodeAt(--f););if(p=p.slice(d,++f)){if(f-=d,h&&W.DEBUG&&15<f&&(c<e||e!==i(e)))throw Error(s+g.s*e);if(F<(l=l-d-1))g.c=g.e=null;else if(l<D)g.c=[g.e=0];else{if(g.e=l,g.c=[],d=(l+1)%u,l<0&&(d+=u),d<f){for(d&&g.c.push(+p.slice(0,d)),f-=u;d<f;)g.c.push(+p.slice(d,d+=u));p=p.slice(d),d=u-p.length}else d-=f;for(;d--;p+="0");g.c.push(+p)}}else g.c=[g.e=0]}function Y(e,t,n,r){var o,i,a,s,l;if(null==n?n=P:v(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)l=g(e.c),l=1==r||2==r&&(a<=x||L<=a)?E(l,a):T(l,a,"0");else if(i=(e=K(new W(e),t,n)).e,s=(l=g(e.c)).length,1==r||2==r&&(t<=i||i<=x)){for(;s<t;l+="0",s++);l=E(l,i)}else if(t-=a,l=T(l,i,"0"),s<i+1){if(0<--t)for(l+=".";t--;l+="0");}else if(0<(t+=i-s))for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function G(e,t){for(var n,r=1,o=new W(e[0]);r<e.length;r++){if(!(n=new W(e[r])).s){o=n;break}t.call(o,n)&&(o=n)}return o}function z(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];10<=o;o/=10,r++);return(n=r+n*u-1)>F?e.c=e.e=null:e.c=n<D?[e.e=0]:(e.e=n,t),e}function K(e,t,n,r){var a,s,c,h,f,p,g,m=e.c,v=d;if(m){e:{for(a=1,h=m[0];10<=h;h/=10,a++);if((s=t-a)<0)s+=u,c=t,g=(f=m[p=0])/v[a-c-1]%10|0;else if((p=o((s+1)/u))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));f=g=0,c=(s%=u)-u+(a=1)}else{for(f=h=m[p],a=1;10<=h;h/=10,a++);g=(c=(s%=u)-u+a)<0?0:f/v[a-c-1]%10|0}if(r=r||t<0||null!=m[p+1]||(c<0?f:f%v[a-c-1]),r=n<4?(g||r)&&(0==n||n==(e.s<0?3:2)):5<g||5==g&&(4==n||r||6==n&&(0<s?0<c?f/v[a-c]:0:m[p-1])%10&1||n==(e.s<0?8:7)),t<1||!m[0])return m.length=0,r?(t-=e.e+1,m[0]=v[(u-t%u)%u],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=p,h=1,p--):(m.length=p+1,h=v[u-s],m[p]=0<c?i(f/v[a-c]%v[c])*h:0),r)for(;;){if(0==p){for(s=1,c=m[0];10<=c;c/=10,s++);for(c=m[0]+=h,h=1;10<=c;c/=10,h++);s!=h&&(e.e++,m[0]==l&&(m[0]=1));break}if(m[p]+=h,m[p]!=l)break;m[p--]=0,h=1}for(s=m.length;0===m[--s];m.pop());}e.e>F?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}function X(e){var t,n=e.e;return null===n?e.toString():(t=g(e.c),t=n<=x||L<=n?E(t,n):T(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(a+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(n=e[t],0,f,t),k=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(n=e[t],0,8,t),P=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-f,0,t),v(n[1],0,f,t),x=n[0],L=n[1]):(v(n,-f,f,t),x=-(L=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)v(n[0],-f,-1,t),v(n[1],1,f,t),D=n[0],F=n[1];else{if(v(n,-f,f,t),!n)throw Error(a+t+" cannot be zero: "+n);D=-(F=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(a+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!n,Error(a+"crypto unavailable");U=n}else U=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(n=e[t],0,9,t),H=n),e.hasOwnProperty(t="POW_PRECISION")&&(v(n=e[t],0,f,t),V=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(a+t+" not an object: "+n);j=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(a+t+" invalid: "+n);B=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:P,EXPONENTIAL_AT:[x,L],RANGE:[D,F],CRYPTO:U,MODULO_MODE:H,POW_PRECISION:V,FORMAT:j,ALPHABET:B}},W.isBigNumber=function(e){return e instanceof W||e&&!0===e._isBigNumber||!1},W.maximum=W.max=function(){return G(arguments,I.lt)},W.minimum=W.min=function(){return G(arguments,I.gt)},W.random=(w=9007199254740992,S=Math.random()*w&2097151?function(){return i(Math.random()*w)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,s,l,c=0,h=[],p=new W(_);if(null==e?e=k:v(e,0,f),s=o(e/u),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)9e15<=(l=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(l%1e14),c+=2);c=s/2}else{if(!crypto.randomBytes)throw U=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(s*=7);c<s;)9e15<=(l=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])?crypto.randomBytes(7).copy(t,c):(h.push(l%1e14),c+=7);c=s/7}if(!U)for(;c<s;)(l=S())<9e15&&(h[c++]=l%1e14);for(s=h[--c],e%=u,s&&e&&(l=d[u-e],h[c]=i(s/l)*l);0===h[c];h.pop(),c--);if(c<0)h=[r=0];else{for(r=-1;0===h[0];h.splice(0,1),r-=u);for(c=1,l=h[0];10<=l;l/=10,c++);c<u&&(r-=u-c)}return p.e=r,p.c=h,p}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},C=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var l,u,c,d,h,f,p,m,v=r.indexOf("."),y=k,E=P;for(0<=v&&(d=V,V=0,r=r.replace(".",""),f=(m=new W(o)).pow(r.length-v),V=d,m.c=t(T(g(f.c),f.e,"0"),10,i,e),m.e=m.c.length),c=d=(p=t(r,o,i,s?(l=B,e):(l=e,B))).length;0==p[--d];p.pop());if(!p[0])return l.charAt(0);if(v<0?--c:(f.c=p,f.e=c,f.s=a,p=(f=n(f,m,y,E,i)).c,h=f.r,c=f.e),v=p[u=c+y+1],d=i/2,h=h||u<0||null!=p[u+1],h=E<4?(null!=v||h)&&(0==E||E==(f.s<0?3:2)):d<v||v==d&&(4==E||h||6==E&&1&p[u-1]||E==(f.s<0?8:7)),u<1||!p[0])r=h?T(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(p.length=u,h)for(--i;++p[--u]>i;)p[u]=0,u||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=l.charAt(p[v++]));r=T(r,c,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,l=e.length,u=t%h,c=t/h|0;for(e=e.slice();l--;)s=((o=u*(i=e[l]%h)+(r=c*i+(a=e[l]/h|0)*u)%h*h+s)/n|0)+(r/h|0)+c*a,e[l]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=r<n?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&1<e.length;e.splice(0,1));}return function(r,o,a,s,c){var d,h,f,g,m,v,y,E,T,C,R,w,S,O,b,A,N,M=r.s==o.s?1:-1,I=r.c,_=o.c;if(!(I&&I[0]&&_&&_[0]))return new W(r.s&&o.s&&(I?!_||I[0]!=_[0]:_)?I&&0==I[0]||!_?0*M:M/0:NaN);for(T=(E=new W(M)).c=[],M=a+(h=r.e-o.e)+1,c||(c=l,h=p(r.e/u)-p(o.e/u),M=M/u|0),f=0;_[f]==(I[f]||0);f++);if(_[f]>(I[f]||0)&&h--,M<0)T.push(1),g=!0;else{for(O=I.length,A=_.length,M+=2,1<(m=i(c/(_[f=0]+1)))&&(_=e(_,m,c),I=e(I,m,c),A=_.length,O=I.length),S=A,R=(C=I.slice(0,A)).length;R<A;C[R++]=0);N=_.slice(),N=[0].concat(N),b=_[0],_[1]>=c/2&&b++;do{if(m=0,(d=t(_,C,A,R))<0){if(w=C[0],A!=R&&(w=w*c+(C[1]||0)),1<(m=i(w/b)))for(c<=m&&(m=c-1),y=(v=e(_,m,c)).length,R=C.length;1==t(v,C,y,R);)m--,n(v,A<y?N:_,y,c),y=v.length,d=1;else 0==m&&(d=m=1),y=(v=_.slice()).length;if(y<R&&(v=[0].concat(v)),n(C,v,R,c),R=C.length,-1==d)for(;t(_,C,A,R)<1;)m++,n(C,A<R?N:_,R,c),R=C.length}else 0===d&&(m++,C=[0]);T[f++]=m,C[0]?C[R++]=I[S]||0:(C=[I[S]],R=1)}while((S++<O||null!=C[0])&&M--);g=null!=C[0],T[0]||T.splice(0,1)}if(c==l){for(f=1,M=T[0];10<=M;M/=10,f++);K(E,a+(E.e=f+h*u-1)+1,s,g)}else E.e=h,E.r=+g;return E}}(),O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,A=/^\.([^.]+)$/,N=/^-?(Infinity|NaN)$/,M=/^\s*\+(?=[\w.])|^\s+|\s+$/g,R=function(e,t,n,r){var o,i=n?t:t.replace(M,"");if(N.test(i))e.s=isNaN(i)?null:i<0?-1:1,e.c=e.e=null;else{if(!n&&(i=i.replace(O,(function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t})),r&&(o=r,i=i.replace(b,"$1").replace(A,"0.$1")),t!=i))return new W(i,o);if(W.DEBUG)throw Error(a+"Not a"+(r?" base "+r:"")+" number: "+t);e.c=e.e=e.s=null}},I.absoluteValue=I.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},I.comparedTo=function(e,t){return m(this,new W(e,t))},I.decimalPlaces=I.dp=function(e,t){var n,r,o;if(null!=e)return v(e,0,f),null==t?t=P:v(t,0,8),K(new W(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((o=n.length-1)-p(this.e/u))*u,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},I.dividedBy=I.div=function(e,t){return n(this,new W(e,t),k,P)},I.dividedToIntegerBy=I.idiv=function(e,t){return n(this,new W(e,t),0,1)},I.exponentiatedBy=I.pow=function(e,t){var n,r,s,l,c,d,h,f,p=this;if((e=new W(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+X(e));if(null!=t&&(t=new W(t)),c=14<e.e,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return f=new W(Math.pow(+X(p),c?2-y(e):+X(e))),t?f.mod(t):f;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(9<e.e&&(0<p.e||p.e<-1||(0==p.e?1<p.c[0]||c&&24e7<=p.c[1]:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return l=p.s<0&&y(e)?-0:0,-1<p.e&&(l=1/l),new W(d?1/l:l);V&&(l=o(V/u+2))}for(h=c?(n=new W(.5),d&&(e.s=1),y(e)):(s=Math.abs(+X(e)))%2,f=new W(_);;){if(h){if(!(f=f.times(p)).c)break;l?f.c.length>l&&(f.c.length=l):r&&(f=f.mod(t))}if(s){if(0===(s=i(s/2)))break;h=s%2}else if(K(e=e.times(n),e.e+1,1),14<e.e)h=y(e);else{if(0==(s=+X(e)))break;h=s%2}p=p.times(p),l?p.c&&p.c.length>l&&(p.c.length=l):r&&(p=p.mod(t))}return r?f:(d&&(f=_.div(f)),t?f.mod(t):l?K(f,V,P,void 0):f)},I.integerValue=function(e){var t=new W(this);return null==e?e=P:v(e,0,8),K(t,t.e+1,e)},I.isEqualTo=I.eq=function(e,t){return 0===m(this,new W(e,t))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(e,t){return 0<m(this,new W(e,t))},I.isGreaterThanOrEqualTo=I.gte=function(e,t){return 1===(t=m(this,new W(e,t)))||0===t},I.isInteger=function(){return!!this.c&&p(this.e/u)>this.c.length-2},I.isLessThan=I.lt=function(e,t){return m(this,new W(e,t))<0},I.isLessThanOrEqualTo=I.lte=function(e,t){return-1===(t=m(this,new W(e,t)))||0===t},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return 0<this.s},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/u,d=e.e/u,h=a.c,f=e.c;if(!c||!d){if(!h||!f)return h?(e.s=-t,e):new W(f?a:NaN);if(!h[0]||!f[0])return f[0]?(e.s=-t,e):new W(h[0]?a:3==P?-0:0)}if(c=p(c),d=p(d),h=h.slice(),s=c-d){for((o=(i=s<0)?(s=-s,h):(d=c,f)).reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=h.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(h[t]!=f[t]){i=h[t]<f[t];break}if(i&&(o=h,h=f,f=o,e.s=-e.s),0<(t=(r=f.length)-(n=h.length)))for(;t--;h[n++]=0);for(t=l-1;s<r;){if(h[--r]<f[r]){for(n=r;n&&!h[--n];h[n]=t);--h[n],h[r]+=l}h[r]-=f[r]}for(;0==h[0];h.splice(0,1),--d);return h[0]?z(e,h,d):(e.s=3==P?-1:1,e.c=[e.e=0],e)},I.modulo=I.mod=function(e,t){var r,o,i=this;return e=new W(e,t),!i.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||i.c&&!i.c[0]?new W(i):(9==H?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,H),(e=i.minus(r.times(e))).c[0]||1!=H||(e.s=i.s),e)},I.multipliedBy=I.times=function(e,t){var n,r,o,i,a,s,c,d,f,g,m,v,y,E,T,C=this,R=C.c,w=(e=new W(e,t)).c;if(!(R&&w&&R[0]&&w[0]))return!C.s||!e.s||R&&!R[0]&&!w||w&&!w[0]&&!R?e.c=e.e=e.s=null:(e.s*=C.s,R&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=p(C.e/u)+p(e.e/u),e.s*=C.s,(c=R.length)<(g=w.length)&&(y=R,R=w,w=y,o=c,c=g,g=o),o=c+g,y=[];o--;y.push(0));for(E=l,T=h,o=g;0<=--o;){for(n=0,m=w[o]%T,v=w[o]/T|0,i=o+(a=c);o<i;)n=((d=m*(d=R[--a]%T)+(s=v*d+(f=R[a]/T|0)*m)%T*T+y[i]+n)/E|0)+(s/T|0)+v*f,y[i--]=d%E;y[i]=n}return n?++r:y.splice(0,1),z(e,y,r)},I.negated=function(){var e=new W(this);return e.s=-e.s||null,e},I.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new W(e,t)).s,!o||!t)return new W(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/u,a=e.e/u,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new W(o/0);if(!s[0]||!c[0])return c[0]?e:new W(s[0]?r:0*o)}if(i=p(i),a=p(a),s=s.slice(),o=i-a){for((n=0<o?(a=i,c):(o=-o,s)).reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/l|0,s[t]=l===s[t]?0:s[t]%l;return o&&(s=[o].concat(s),++a),z(e,s,a)},I.precision=I.sd=function(e,t){var n,r,o;if(null!=e&&e!==!!e)return v(e,1,f),null==t?t=P:v(t,0,8),K(new W(this),e,t);if(!(n=this.c))return null;if(r=(o=n.length-1)*u+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];10<=o;o/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},I.shiftedBy=function(e){return v(e,-c,c),this.times("1e"+e)},I.squareRoot=I.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,l=a.s,u=a.e,c=k+4,d=new W("0.5");if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(l=Math.sqrt(+X(a)))||l==1/0?(((t=g(s)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=p((u+1)/2)-(u<0||u%2),new W(t=l==1/0?"1e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):new W(l+"")).c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(i=r,r=d.times(i.plus(n(a,i,c,1))),g(i.c).slice(0,l)===(t=g(r.c)).slice(0,l)){if(r.e<u&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(r,r.e+k+2,1),e=!r.times(r).eq(a));break}if(!o&&(K(i,i.e+k+2,0),i.times(i).eq(a))){r=i;break}c+=4,l+=4,o=1}return K(r,r.e+k+1,P,e)},I.toExponential=function(e,t){return null!=e&&(v(e,0,f),e++),Y(this,e,t,1)},I.toFixed=function(e,t){return null!=e&&(v(e,0,f),e=e+this.e+1),Y(this,e,t)},I.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=j;else if("object"!=typeof n)throw Error(a+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var o,i=r.split("."),s=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",c=i[0],d=i[1],h=this.s<0,f=h?c.slice(1):c,p=f.length;if(l&&(o=s,s=l,p-=l=o),0<s&&0<p){for(o=p%s||s,c=f.substr(0,o);o<p;o+=s)c+=u+f.substr(o,s);0<l&&(c+=u+f.slice(o)),h&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(e){var t,r,o,i,s,l,c,h,f,p,m,v,y=this,E=y.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(_)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+X(c));if(!E)return new W(y);for(t=new W(_),f=r=new W(_),o=h=new W(_),v=g(E),s=t.e=v.length-y.e-1,t.c[0]=d[(l=s%u)<0?u+l:l],e=!e||0<c.comparedTo(t)?0<s?t:f:c,l=F,F=1/0,c=new W(v),h.c[0]=0;p=n(c,t,0,1),1!=(i=r.plus(p.times(o))).comparedTo(e);)r=o,o=i,f=h.plus(p.times(i=f)),h=i,t=c.minus(p.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),h=h.plus(i.times(f)),r=r.plus(i.times(o)),h.s=f.s=y.s,m=n(f,o,s*=2,P).minus(y).abs().comparedTo(n(h,r,s,P).minus(y).abs())<1?[f,o]:[h,r],F=l,m},I.toNumber=function(){return+X(this)},I.toPrecision=function(e,t){return null!=e&&v(e,1,f),Y(this,e,t,2)},I.toString=function(e){var t,n=this,r=n.s,o=n.e;return null===o?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=null==e?o<=x||L<=o?E(g(n.c),o):T(g(n.c),o,"0"):10===e?T(g((n=K(new W(n),k+o+1,P)).c),n.e,"0"):(v(e,2,B.length,"Base"),C(T(g(n.c),o,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},I.valueOf=I.toJSON=function(){return X(this)},I._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(I[Symbol.toStringTag]="BigNumber",I[Symbol.for("nodejs.util.inspect.custom")]=I.valueOf),null!=t&&W.set(t),W}()).default=n.BigNumber=n,void 0!==t&&t.exports?t.exports=n:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=n)}(this)},{}],2:[function(e,t,n){"use strict";t.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=e("./globalState"),i=e("./validating"),a=e("./parsing"),s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l={general:{scale:1024,suffixes:s,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:s,marker:"d"}},u={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;if("string"==typeof t&&(t=a.parseFormat(t)),!i.validateFormat(t))return"ERROR: invalid format";var r=t.prefix||"",s=t.postfix||"",c=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){var r=n.currentCurrency(),o=Object.assign({},u,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,l=t.currencyPosition||r.position,c=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===l&&(i=a+c+a);var d=p({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===l&&(d=e._value<0&&"sign"===o.negative?"-".concat(a).concat(c).concat(d.slice(1)):c+a+d),l&&"postfix"!==l||(d=d+(a=s?"":a)+c),d}(e,t=g(t,o.currentCurrencyDefaultFormat()),o);case"percent":return function(e,t,n,r){var o=t.prefixSymbol,i=p({instance:r(100*e._value),providedFormat:t,state:n}),a=Object.assign({},u,t);return o?"%".concat(a.spaceSeparated?" ":"").concat(i):"".concat(i).concat(a.spaceSeparated?" ":"","%")}(e,t=g(t,o.currentPercentageDefaultFormat()),o,n);case"byte":return t=g(t,o.currentByteDefaultFormat()),T=e,R=o,w=n,S=(C=t).base||"binary",O=l[S],A=(b=d(T._value,O.suffixes,O.scale)).value,N=b.suffix,M=p({instance:w(A),providedFormat:C,state:R,defaults:R.currentByteDefaultFormat()}),I=R.currentAbbreviations(),"".concat(M).concat(I.spaced?" ":"").concat(N);case"time":return t=g(t,o.currentTimeDefaultFormat()),m=e,v=Math.floor(m._value/60/60),y=Math.floor((m._value-60*v*60)/60),E=Math.round(m._value-60*v*60-60*y),"".concat(v,":").concat(y<10?"0":"").concat(y,":").concat(E<10?"0":"").concat(E);case"ordinal":return r=e,i=t=g(t,o.currentOrdinalDefaultFormat()),s=(a=o).currentOrdinal(),c=Object.assign({},u,i),h=p({instance:r,providedFormat:i,state:a}),f=s(r._value),"".concat(h).concat(c.spaceSeparated?" ":"").concat(f);case"number":default:return p({instance:e,providedFormat:t,numbro:n})}var r,i,a,s,c,h,f,m,v,y,E,T,C,R,w,S,O,b,A,N,M,I}(e,t,n);return(c=r+c)+s}function d(e,t,n){var r=t[0],o=Math.abs(e);if(n<=o){for(var i=1;i<t.length;++i){var a=Math.pow(n,i),s=Math.pow(n,i+1);if(a<=o&&o<s){r=t[i],e/=a;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function h(e){for(var t="",n=0;n<e;n++)t+="0";return t}function f(e,t){return-1!==e.toString().indexOf("e")?function(e,t){var n=e.toString(),o=r(n.split("e"),2),i=o[0],a=o[1],s=r(i.split("."),2),l=s[0],u=s[1],c=void 0===u?"":u;if(0<+a)n=l+c+h(a-c.length);else{var d=".";d=+l<0?"-0".concat(d):"0".concat(d);var f=(h(-a-1)+Math.abs(l)+c).substr(0,t);f.length<t&&(f+=h(t-f.length)),n=d+f}return 0<+a&&0<t&&(n+=".".concat(h(t))),n}(e,t):(Math.round(+"".concat(e,"e+").concat(t))/Math.pow(10,t)).toFixed(t)}function p(e){var t=e.instance,n=e.providedFormat,i=e.state,a=void 0===i?o:i,s=e.decimalSeparator,l=e.defaults,c=void 0===l?a.currentDefaults():l,d=t._value;if(0===d&&a.hasZeroFormat())return a.getZeroFormat();if(!isFinite(d))return d.toString();var h,p,g,m,v,y,E,T,C=Object.assign({},u,c,n),R=C.totalLength,w=R?0:C.characteristic,S=C.optionalCharacteristic,O=C.forceAverage,b=!!R||!!O||C.average,A=R?-1:b&&void 0===n.mantissa?0:C.mantissa,N=!R&&(void 0===n.optionalMantissa?-1===A:C.optionalMantissa),M=C.trimMantissa,I=C.thousandSeparated,_=C.spaceSeparated,k=C.negative,P=C.forceSign,x=C.exponential,L="";if(b){var D=function(e){var t=e.value,n=e.forceAverage,r=e.abbreviations,o=e.spaceSeparated,i=void 0!==o&&o,a=e.totalLength,s=void 0===a?0:a,l="",u=Math.abs(t),c=-1;if(u>=Math.pow(10,12)&&!n||"trillion"===n?(l=r.trillion,t/=Math.pow(10,12)):u<Math.pow(10,12)&&u>=Math.pow(10,9)&&!n||"billion"===n?(l=r.billion,t/=Math.pow(10,9)):u<Math.pow(10,9)&&u>=Math.pow(10,6)&&!n||"million"===n?(l=r.million,t/=Math.pow(10,6)):(u<Math.pow(10,6)&&u>=Math.pow(10,3)&&!n||"thousand"===n)&&(l=r.thousand,t/=Math.pow(10,3)),l&&(l=(i?" ":"")+l),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:d,forceAverage:O,abbreviations:a.currentAbbreviations(),spaceSeparated:_,totalLength:R});d=D.value,L+=D.abbreviation,R&&(A=D.mantissaPrecision)}if(x){var F=(p=(h={value:d,characteristicPrecision:w}).value,m=void 0===(g=h.characteristicPrecision)?0:g,y=(v=r(p.toExponential().split("e"),2))[0],E=v[1],T=+y,m&&1<m&&(T*=Math.pow(10,m-1),E=0<=(E=+E-(m-1))?"+".concat(E):E),{value:T,abbreviation:"e".concat(E)});d=F.value,L=F.abbreviation+L}var U,H,V,j=function(e,t,n,o,i){if(-1===o)return e;var a=f(t,o),s=r(a.toString().split("."),2),l=s[0],u=s[1],c=void 0===u?"":u;if(c.match(/^0+$/)&&(n||i))return l;var d=c.match(/0+$/);return i&&d?"".concat(l,".").concat(c.toString().slice(0,d.index)):a.toString()}(d.toString(),d,N,A,M);return j=function(e,t,n,r,o){var i=r.currentDelimiters(),a=i.thousands;o=o||i.decimal;var s=i.thousandsSize||3,l=e.toString(),u=l.split(".")[0],c=l.split(".")[1];return n&&(t<0&&(u=u.slice(1)),function(e,t){for(var n=[],r=0,o=e;0<o;o--)r===t&&(n.unshift(o),r=0),r++;return n}(u.length,s).forEach((function(e,t){u=u.slice(0,e+t)+a+u.slice(e+t)})),t<0&&(u="-".concat(u))),c?u+o+c:u}(j=function(e,t,n,o){var i=e,a=r(i.toString().split("."),2),s=a[0],l=a[1];if(s.match(/^-?0$/)&&n)return l?"".concat(s.replace("0",""),".").concat(l):s.replace("0","");if(s.length<o)for(var u=o-s.length,c=0;c<u;c++)i="0".concat(i);return i.toString()}(j,0,S,w),d,I,a,s),(b||x)&&(j+=L),(P||d<0)&&(U=j,V=k,j=0===(H=d)?U:0==+U?U.replace("-",""):0<H?"+".concat(U):"sign"===V?U:"(".concat(U.replace("-",""),")")),j}function g(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}t.exports=function(e){return{format:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.general;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.binary;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.decimal;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},formatOrDefault:g}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,n){"use strict";var r=e("./en-US"),o=e("./validating"),i=e("./parsing"),a={},s=void 0,l={},u=null,c={};function d(e){s=e}function h(){return l[s]}a.languages=function(){return Object.assign({},l)},a.currentLanguage=function(){return s},a.currentCurrency=function(){return h().currency},a.currentAbbreviations=function(){return h().abbreviations},a.currentDelimiters=function(){return h().delimiters},a.currentOrdinal=function(){return h().ordinal},a.currentDefaults=function(){return Object.assign({},h().defaults,c)},a.currentOrdinalDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().ordinalFormat)},a.currentByteDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().byteFormat)},a.currentPercentageDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().percentageFormat)},a.currentCurrencyDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().currencyFormat)},a.currentTimeDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().timeFormat)},a.setDefaults=function(e){e=i.parseFormat(e),o.validateFormat(e)&&(c=e)},a.getZeroFormat=function(){return u},a.setZeroFormat=function(e){return u="string"==typeof e?e:null},a.hasZeroFormat=function(){return null!==u},a.languageData=function(e){if(e){if(l[e])return l[e];throw new Error('Unknown tag "'.concat(e,'"'))}return h()},a.registerLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!o.validateLanguage(e))throw new Error("Invalid language data");l[e.languageTag]=e,t&&d(e.languageTag)},a.setLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.languageTag;if(!l[e]){var n=e.split("-")[0],o=Object.keys(l).find((function(e){return e.split("-")[0]===n}));return l[o]?void d(o):void d(t)}d(e)},a.registerLanguage(r),s=r.languageTag,t.exports=a},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";t.exports=function(t){return{loadLanguagesInNode:function(n){return r=t,void n.forEach((function(t){var n=void 0;try{n=e("../languages/".concat(t))}catch(n){console.error('Unable to load "'.concat(t,'". No matching language file found.'))}n&&r.registerLanguage(n)}));var r}}}},{}],6:[function(e,t,n){"use strict";var r=e("bignumber.js");function o(e,t,n){var o=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=o.minus(i).toNumber(),e}t.exports=function(e){return{add:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.plus(l).toNumber(),o;var o,i,a,s,l},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.times(l).toNumber(),o;var o,i,a,s,l},divide:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.dividedBy(l).toNumber(),o;var o,i,a,s,l},set:function(t,n){return r=t,i=o=n,e.isNumbro(o)&&(i=o._value),r._value=i,r;var r,o,i},difference:function(t,n){return r=n,o(a=(i=e)(t._value),r,i),Math.abs(a._value);var r,i,a}}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=e("./globalState"),i=e("./validating"),a=e("./loading")(f),s=e("./unformatting"),l=e("./formatting")(f),u=e("./manipulating")(f),c=e("./parsing"),d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._value=t}var t,n;return t=e,(n=[{key:"clone",value:function(){return f(this._value)}},{key:"format",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return l.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=c.parseFormat(e)),(e=l.formatOrDefault(e,o.currentCurrencyDefaultFormat())).output="currency",l.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",l.format(this,e)}},{key:"binaryByteUnits",value:function(){return l.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return l.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return l.getByteUnit(this)}},{key:"difference",value:function(e){return u.difference(this,e)}},{key:"add",value:function(e){return u.add(this,e)}},{key:"subtract",value:function(e){return u.subtract(this,e)}},{key:"multiply",value:function(e){return u.multiply(this,e)}},{key:"divide",value:function(e){return u.divide(this,e)}},{key:"set",value:function(e){return u.set(this,h(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&r(t.prototype,n),e}();function h(e){var t=e;return f.isNumbro(e)?t=e._value:"string"==typeof e?t=f.unformat(e):isNaN(e)&&(t=NaN),t}function f(e){return new d(h(e))}f.version="2.1.2",f.isNumbro=function(e){return e instanceof d},f.language=o.currentLanguage,f.registerLanguage=o.registerLanguage,f.setLanguage=o.setLanguage,f.languages=o.languages,f.languageData=o.languageData,f.zeroFormat=o.setZeroFormat,f.defaultFormat=o.currentDefaults,f.setDefaults=o.setDefaults,f.defaultCurrencyFormat=o.currentCurrencyDefaultFormat,f.validate=i.validate,f.loadLanguagesInNode=a.loadLanguagesInNode,f.unformat=s.unformat,t.exports=f},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,n){"use strict";t.exports={parseFormat:function(e){var t,n,r,o,i,a,s,l,u,c,d,h,f,p,g,m,v,y,E,T,C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(n=C,i=C,function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",t.base="general"):-1!==e.indexOf("b")?(t.output="byte",t.base="binary"):-1!==e.indexOf("d")?(t.output="byte",t.base="decimal"):-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time";t.output="percent"}else t.output="currency"}(e=(a=(o=e=(r=(t=e).match(/^{([^}]*)}/))?(n.prefix=r[1],t.slice(r[0].length)):t).match(/{([^}]*)}$/))?(i.postfix=a[1],o.slice(0,-a[0].length)):o,C),s=C,(l=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+l[0]),u=C,(c=e.split(".")[0].match(/0+/))&&(u.characteristic=c[0].length),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,C),d=C,-1!==e.indexOf("a")&&(d.average=!0),f=C,-1!==(h=e).indexOf("K")?f.forceAverage="thousand":-1!==h.indexOf("M")?f.forceAverage="million":-1!==h.indexOf("B")?f.forceAverage="billion":-1!==h.indexOf("T")&&(f.forceAverage="trillion"),function(e,t){var n=e.split(".")[1];if(n){var r=n.match(/0+/);r&&(t.mantissa=r[0].length)}}(e,C),g=C,(p=e).match(/\[\.]/)?g.optionalMantissa=!0:p.match(/\./)&&(g.optionalMantissa=!1),m=C,-1!==e.indexOf(",")&&(m.thousandSeparated=!0),v=C,-1!==e.indexOf(" ")&&(v.spaceSeparated=!0),E=C,(y=e).match(/^\+?\([^)]*\)$/)&&(E.negative="parenthesis"),y.match(/^\+?-/)&&(E.negative="sign"),T=C,e.match(/^\+/)&&(T.forceSign=!0),C)}}},{}],9:[function(e,t,n){"use strict";var r=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function o(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}t.exports={unformat:function(t,n){var i,a,s,l=e("./globalState"),u=l.currentDelimiters(),c=l.currentCurrency().symbol,d=l.currentOrdinal(),h=l.getZeroFormat(),f=l.currentAbbreviations(),p=void 0;if("string"==typeof t)p=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var n=e.split(":");if(3!==n.length)return!1;var r=+n[0],o=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(o)&&!isNaN(i)}(t,u)?(a=+(i=t.split(":"))[0],s=+i[1],+i[2]+60*s+3600*a):function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",i=3<arguments.length?arguments[3]:void 0,a=4<arguments.length?arguments[4]:void 0,s=5<arguments.length?arguments[5]:void 0,l=6<arguments.length?arguments[6]:void 0;if(""!==e)return e===a?0:function e(t,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=3<arguments.length?arguments[3]:void 0,s=4<arguments.length?arguments[4]:void 0,l=5<arguments.length?arguments[5]:void 0,u=6<arguments.length?arguments[6]:void 0;if(!isNaN(+t))return+t;var c="",d=t.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==t)return-1*e(d,n,i,a,s,l,u);for(var h=0;h<r.length;h++){var f=r[h];if((c=t.replace(f.key,""))!==t)return e(c,n,i,a,s,l,u)*f.factor}if((c=t.replace("%",""))!==t)return e(c,n,i,a,s,l,u)/100;var p=parseFloat(t);if(!isNaN(p)){var g=a(p);if(g&&"."!==g&&(c=t.replace(new RegExp("".concat(o(g),"$")),""))!==t)return e(c,n,i,a,s,l,u);var m={};Object.keys(l).forEach((function(e){m[l[e]]=e}));for(var v=Object.keys(m).sort().reverse(),y=v.length,E=0;E<y;E++){var T=v[E],C=m[T];if((c=t.replace(T,""))!==t){var R=void 0;switch(C){case"thousand":R=Math.pow(10,3);break;case"million":R=Math.pow(10,6);break;case"billion":R=Math.pow(10,9);break;case"trillion":R=Math.pow(10,12)}return e(c,n,i,a,s,l,u)*R}}}}(function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",r=e.replace(n,"");return(r=r.replace(new RegExp("([0-9])".concat(o(t.thousands),"([0-9])"),"g"),"$1$2")).replace(t.decimal,".")}(e,t,n),t,n,i,a,s,l)}(t,u,c,d,h,f,n);else{if("number"!=typeof t)return;p=t}if(void 0!==p)return p}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("./unformatting"),a=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,s={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(e,t){return"byte"===t.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(e){return"byte"===e.output}},characteristic:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(e){return 0<=e},message:"value must be positive"},{restriction:function(e,t){return!t.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(e,t){return"percent"===t.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},l={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(a)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",ordinal:{type:"function",mandatory:!0},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function u(e){return!!i.unformat(e)}function c(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],a=Object.keys(e).map((function(r){if(!t[r])return console.error("".concat(n," Invalid key: ").concat(r)),!1;var i=e[r],a=t[r];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!c(i,s,"[Validate ".concat(r,"]"),!0))return!1}else if(o(i)!==a.type)return console.error("".concat(n," ").concat(r,' type mismatched: "').concat(a.type,'" expected, "').concat(o(i),'" provided')),!1;if(a.restrictions&&a.restrictions.length)for(var l=a.restrictions.length,u=0;u<l;u++){var d=a.restrictions[u],h=d.restriction,f=d.message;if(!h(i,e))return console.error("".concat(n," ").concat(r," invalid value: ").concat(f)),!1}return a.restriction&&!a.restriction(i,e)?(console.error("".concat(n," ").concat(r," invalid value: ").concat(a.message)),!1):a.validValues&&-1===a.validValues.indexOf(i)?(console.error("".concat(n," ").concat(r," invalid value: must be among ").concat(JSON.stringify(a.validValues),', "').concat(i,'" provided')),!1):!(a.children&&!c(i,a.children,"[Validate ".concat(r,"]")))}));return i||a.push.apply(a,r(Object.keys(t).map((function(r){var o=t[r];if("string"==typeof o&&(o={type:o}),o.mandatory){var i=o.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[r])return console.error("".concat(n,' Missing mandatory key "').concat(r,'"')),!1}return!0})))),a.reduce((function(e,t){return e&&t}),!0)}function d(e){return c(e,s,"[Validate format]")}t.exports={validate:function(e,t){var n=u(e),r=d(t);return n&&r},validateFormat:d,validateInput:u,validateLanguage:function(e){return c(e,l,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7),window.numbro=n(601)},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(858);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.timeRenderer=t.RENDERER_TYPE=void 0;var r=n(859);t.RENDERER_TYPE=r.RENDERER_TYPE,t.timeRenderer=r.timeRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.dateValidator=t.correctFormat=t.VALIDATOR_TYPE=void 0;var r=n(862);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(63),o=n(219),i=n(61),a=n(97),s=n(80),l=n(863),u=n(62),c=n(124),d=n(220);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=d(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);if(!isNaN(new Date("".concat(e,"T00:00")).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},function(e,t,n){"use strict";t.__esModule=!0,t.numericValidator=t.VALIDATOR_TYPE=void 0;var r=n(864);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.numericValidator=r.numericValidator},function(e,t,n){"use strict";t.__esModule=!0,t.timeValidator=t.VALIDATOR_TYPE=void 0;var r=n(865);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.timeValidator=r.timeValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6),n(43),n(22);var o=r(n(26)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(36),u=n(24),c=function(){function e(t){(0,i.default)(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return(0,a.default)(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var r=this,o=new Map,i="number"==typeof n?{from:n,to:n}:n,a=i.from,s=i.to;return(0,l.rangeEach)(a,s,(function(n){var i=r.generateSample(e,t,n);o.set(n,i)})),o}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var i=new Map,a="row"===e?"col":"row",c=[];return(0,l.rangeEach)(t.from,t.to,(function(t){var l,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,p="string"==typeof f&&f.length>0;l=p?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,u.stringify)(h).length),i.has(l)||i.set(l,{needed:r.getSampleCount(),strings:[]});var g=i.get(l);g.needed&&((!(c.indexOf(h)>-1)||r.allowDuplicates||p)&&(g.strings.push((0,o.default)({value:h},a,t)),c.push(h),g.needed-=1))})),i}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var r=n(899);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(401),o=n(404),i=n(279),a=n(403);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(h(e))return d(e);return d(o.COLUMN_DATA_TYPE)},t.registerRootComparator=t.getRootComparator=void 0;var o=n(613),i=n(903),a=n(904),s=n(905),l=r(n(102)),u=(0,l.default)("sorting.compareFunctionFactory"),c=u.register,d=u.getItem,h=u.hasItem,f=(0,l.default)("sorting.mainSortComparator"),p=f.register,g=f.getItem;t.getRootComparator=g,t.registerRootComparator=p,c(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),c(a.COLUMN_DATA_TYPE,a.compareFunctionFactory),c(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),c(o.COLUMN_DATA_TYPE,o.compareFunctionFactory)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var i=t.locale;return function(t,a){var s=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLocaleLowerCase(i)),"string"==typeof a&&(a=a.toLocaleLowerCase(i)),t===a?o.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(a)?o.DO_NOT_SWAP:s&&"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(0,r.isEmpty)(a)?s&&"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(a)?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(a)?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(a)||(t=parseFloat(t),a=parseFloat(a)),t<a?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:t>a?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP)}};var r=n(24),o=n(117);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(83);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12);function l(e,t){var n;return(0,a.arrayEach)(t,(function(t){var r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}var u=function(){function e(t){(0,o.default)(this,e),this.hot=t,this.commands={},this.commonCallback=null}return(0,i.default)(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.split(":"),u=i[0],c=2===i.length?i[1]:null,d=this.commands[u];if(!d)throw new Error("Menu command '".concat(u,"' not exists."));if(c&&d.submenu&&(d=l(c,d.submenu.items)),!0!==d.disabled&&("function"!=typeof d.disabled||!0!==d.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(d,"submenu")){var h=[];"function"==typeof d.callback&&h.push(d.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),r.unshift(i.join(":")),(0,a.arrayEach)(h,(function(e){return e.apply(t.hot,r)}))}}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(85),n(22);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(13),l=n(110);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=e;return o&&o.items?o=o.items:Array.isArray(o)||(o=t),(0,a.isObject)(o)?(0,a.objectEach)(o,(function(e,t){var o=n["string"==typeof e?e:t];o||(o=e),(0,a.isObject)(e)?(0,a.extend)(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=t),r.push(o)})):(0,s.arrayEach)(o,(function(e,t){var o=n[e];!o&&l.ITEMS.indexOf(e)>=0||(o||(o={name:e,key:"".concat(t)}),(0,a.isObject)(e)&&(0,a.extend)(o,e),void 0===o.key&&(o.key=t),r.push(o))})),r}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return(0,i.default)(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,a.objectEach)(e,(function(e,r){var o="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,o=l.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(24);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",l,{name:o.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,l.registerCondition)("eq",c,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=d;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46),l=n(619),u=n(620);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if("numeric"===e.meta.type){var a=parseFloat(r,10),c=parseFloat(o,10);r=Math.min(a,c),o=Math.max(a,c)}else if("date"===e.meta.type){var d=(0,s.getCondition)(u.CONDITION_NAME,[o]),h=(0,s.getCondition)(l.CONDITION_NAME,[r]);return d(e)&&h(e)}return e.value>=r&&e.value<=o}t.CONDITION_NAME="between",(0,s.registerCondition)("between",d,{name:a.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(21)),a=r(n(95)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)>=0}t.CONDITION_NAME="date_after",(0,l.registerCondition)("date_after",c,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(21)),a=r(n(95)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)<=0}t.CONDITION_NAME="date_before",(0,l.registerCondition)("date_before",c,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(22);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}t.CONDITION_NAME="contains",(0,l.registerCondition)("contains",c,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(192);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunction";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,l)},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1),n(39);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(192);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunctionWithExtraCondition";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((function(e){return e.func(t)}))&&e[e.length-1].func(t)}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunctionWithExtraCondition",s,l)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(64));n(85),n(65),n(22),n(1);var a,s,l=r(n(2)),u=r(n(3)),c=n(13),d=n(12),h=n(66),f=r(n(86)),p=n(46),g=n(307),m=n(192),v=n(24),y=n(76),E="ConditionCollection.filteringStates",T=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,l.default)(this,e),this.hot=t,this.isMapRegistrable=n,this.filteringStates=new y.LinkedPhysicalIndexToValueMap,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(E,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}return(0,u.default)(e,[{key:"isEmpty",value:function(){return 0===this.getFilteredColumns().length}},{key:"isMatch",value:function(e,t){var n,r=this.filteringStates.getValueAtIndex(t),o=null!==(n=null==r?void 0:r.conditions)&&void 0!==n?n:[],i=null==r?void 0:r.operation;return this.isMatchInConditions(o,e,i)}},{key:"isMatchInConditions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID;return!e.length||(0,m.getOperationFunc)(n)(e,t)}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID,r=arguments.length>3?arguments[3]:void 0,o=this.hot.getCellMeta(0,e).locale,l=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),u=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);var d=this.getOperation(e);if(d){if(d!==n)throw Error((0,h.toSingleLine)(a||(a=(0,i.default)(["The column of index "," has been already applied with a `","` \n filter operation. Use `removeConditions` to clear the current conditions and then add new ones. \n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`, \n use it consequently for a particular column)."],["The column of index "," has been already applied with a \\`","\\`\\x20\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\\x20\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\\x20\n use it consequently for a particular column)."])),e,d))}else if((0,v.isUndefined)(m.operations[n]))throw new Error((0,h.toSingleLine)(s||(s=(0,i.default)(["Unexpected operation named `","`. Possible ones are \n `disjunction` and `conjunction`."],["Unexpected operation named \\`","\\`. Possible ones are\\x20\n \\`disjunction\\` and \\`conjunction\\`."])),n));var f=this.getConditions(e);0===f.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:u,args:l,func:(0,p.getCondition)(u,l)}]},r):f.push({name:u,args:l,func:(0,p.getCondition)(u,l)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}},{key:"getOperation",value:function(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}},{key:"getFilteredColumns",value:function(){return this.filteringStates.getEntries().map((function(e){return(0,o.default)(e,1)[0]}))}},{key:"getColumnStackPosition",value:function(e){return this.getFilteredColumns().indexOf(e)}},{key:"exportAllConditions",value:function(){return(0,c.arrayReduce)(this.filteringStates.getEntries(),(function(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=i.operation,s=i.conditions;return e.push({column:r,operation:a,conditions:(0,c.arrayMap)(s,(function(e){return{name:e.name,args:e.args}}))}),e}),[])}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),(0,c.arrayEach)(e,(function(e){(0,c.arrayEach)(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}},{key:"hasConditions",value:function(e,t){var n=this.getConditions(e);return t?n.some((function(e){return e.name===t})):n.length>0}},{key:"destroy",value:function(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(E),this.filteringStates=null,this.clearLocalHooks()}}]),e}();(0,d.mixin)(T,f.default);var C=T;t.default=C},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(13),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,o.default)(this,e),this.conditionCollection=t,this.columnDataFactory=n}return(0,i.default)(e,[{key:"filter",value:function(){var e=this,t=[];return(0,a.arrayEach)(this.conditionCollection.getFilteredColumns(),(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return(0,a.arrayEach)(n,(function(n){void 0!==n&&t.conditionCollection.isMatch(n,e)&&r.push(n)})),r}},{key:"_getIntersectData",value:function(e,t){var n=[];return(0,a.arrayEach)(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}]),e}();t.default=s},function(e,t,n){"use strict";n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=u,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s(s({},l),r),o)},t.getEngineSettingsWithOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s({},r),o)};var o=r(n(26));n(221),n(1),n(43);var i=n(309);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable";var l={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!0,nullDate:{year:1899,month:12,day:31},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function u(e){var t,n;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(n=t.language)||void 0===n?void 0:n.langCode}}function c(e){return Object.keys(e).reduce((function(t,n){return"hyperformula"!==n&&(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(36),s=n(84),l=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0,this.inlineProperty=t.isRtl()?"right":"left"}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,a.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+"px")}},{key:"getPosition",value:function(){var e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}},{key:"setSize",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,a.isNumeric)(t)&&(this._element.style["margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty))]=t+"px")}},{key:"getOffset",value:function(){var e=this._element.style,t="margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty));return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.applySpanProperties=function(e,t,n,r){t?t.row===n&&t.col===r?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")},n(1),n(98)},function(e,t,n){"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.label,n=void 0===t?"":t,r=e.colspan,o=void 0===r?1:r,i=e.origColspan,a=void 0===i?1:i,s=e.collapsible,l=void 0!==s&&s,u=e.crossHiddenColumns,c=void 0===u?[]:u,d=e.isCollapsed,h=void 0!==d&&d,f=e.isHidden,p=void 0!==f&&f,g=e.isRoot,m=void 0!==g&&g,v=e.isPlaceholder,y=void 0!==v&&v;return{label:n,colspan:o,origColspan:a,collapsible:l,isCollapsed:h,crossHiddenColumns:c,isHidden:p,isRoot:m,isPlaceholder:y}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},function(e,t,n){"use strict";t.__esModule=!0,t.collapseNode=function e(t){var n,a=t.data,s=t.childs;if(a.isCollapsed||a.isHidden||a.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(s[0]);a.isCollapsed=!0;var l=s.slice(1),u=new Set;if(l.length>0)(0,r.arrayEach)(l,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){e.data.isHidden=!0}))}));else for(var c=a.origColspan,d=a.columnIndex,h=1;h<c;h++){var f=d+h;u.add(f)}var p=a.colspan-(null!==(n=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==n?n:1);return t.walkUp((function(e){var t=e.data;t.colspan-=p,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.expandNode)(t)},affectedColumns:Array.from(u),colspanCompensation:p}},n(39),n(4),n(1),n(52),n(5),n(6),n(48);var r=n(13),o=n(632),i=n(633)},function(e,t,n){"use strict";t.__esModule=!0,t.expandNode=function e(t){var n=t.data,a=t.childs;if(!n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);n.isCollapsed=!1;var s=a.slice(1),l=new Set,u=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;u+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;u=d-c;for(var f=1;f<d;f++)l.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=u,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.collapseNode)(t)},affectedColumns:Array.from(l),colspanCompensation:u}},n(39),n(4),n(1),n(52),n(5),n(6),n(48);var r=n(13),o=n(631),i=n(633)},function(e,t,n){"use strict";function r(e,t){var n=e.childs;if(0!==n.length)return n[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown((function(e){var n=e.data,r=e.childs;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(var o=1;o<n.colspan;o++)t(n.columnIndex+o)}))}},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(20);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(13),c=n(36),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this,e,r)).dataManager=i.plugin.dataManager,i.collapsingUI=i.plugin.collapsingUI,i.rowHeaderWidthCache=null,i}return(0,i.default)(n,[{key:"appendLevelIndicators",value:function(e,t){var r=this.hot.toPhysicalRow(e),o=this.dataManager.getRowLevel(r),i=this.dataManager.getDataObject(r),a=t.getElementsByTagName("DIV")[0],s=a.querySelector("span.rowHeader"),l=a.querySelectorAll('[class^="ht_nesting"]');if((0,u.arrayEach)(l,(function(e){e&&a.removeChild(e)})),(0,d.addClass)(t,n.CSS_CLASSES.indicatorContainer),o){var h=this.hot.rootDocument,f=s.cloneNode(!0);a.innerHTML="",(0,c.rangeEach)(0,o-1,(function(){var e=h.createElement("SPAN");(0,d.addClass)(e,n.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(f)}if(this.dataManager.hasChildren(i)){var p=this.hot.rootDocument.createElement("DIV");(0,d.addClass)(t,n.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?(0,d.addClass)(p,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.expandButton)):(0,d.addClass)(p,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.collapseButton)),a.appendChild(p)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t||(t=this.dataManager.cache.levelCount),this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}],[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),n}(r(n(311)).default);t.default=f},function(e,t,n){n(234),e.exports=n(685)},function(e,t,n){"use strict";n.r(t),n.d(t,"ResyncFollowsWalker",(function(){return c})),n.d(t,"computeAllProdsFollows",(function(){return d})),n.d(t,"buildBetweenProdsFollowPrefix",(function(){return h})),n.d(t,"buildInProdFollowPrefix",(function(){return f}));var r,o=n(236),i=n(314),a=n(37),s=n(315),l=n(45),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.topProd=t,n.follows={},n}return u(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,n){},t.prototype.walkProdRef=function(e,t,n){var r=h(e.referencedRule,e.idx)+this.topProd.name,o=t.concat(n),a=new l.Flat({definition:o}),s=Object(i.first)(a);this.follows[r]=s},t}(o.RestWalker);function d(e){var t={};return Object(a.forEach)(e,(function(e){var n=new c(e).startWalking();Object(a.assign)(t,n)})),t}function h(e,t){return e.name+t+s.IN}function f(e){return e.terminalType.name+e.idx+s.IN}},function(e,t,n){"use strict";n.r(t),n.d(t,"failedOptimizationPrefixMsg",(function(){return u})),n.d(t,"getOptimizedStartCodesIndices",(function(){return c})),n.d(t,"firstCharOptimizedIndices",(function(){return d})),n.d(t,"canMatchCharCode",(function(){return m}));var r,o=n(237),i=n(37),a=n(238),s=n(313),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u='Unable to use "first char" lexer optimizations:\n';function c(e,t){void 0===t&&(t=!1);try{var n=Object(a.getRegExpAst)(e);return d(n.value,{},n.flags.ignoreCase)}catch(n){if("Complement Sets are not supported for first char optimization"===n.message)t&&Object(i.PRINT_WARNING)(u+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var r="";t&&(r="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),Object(i.PRINT_ERROR)(u+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+o.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function d(e,t,n){switch(e.type){case"Disjunction":for(var r=0;r<e.value.length;r++)d(e.value[r],t,n);break;case"Alternative":var o=e.value;for(r=0;r<o.length;r++){var a=o[r];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var l=a;switch(l.type){case"Character":h(l.value,t,n);break;case"Set":if(!0===l.complement)throw Error("Complement Sets are not supported for first char optimization");Object(i.forEach)(l.value,(function(e){if("number"==typeof e)h(e,t,n);else{var r=e;if(!0===n)for(var o=r.from;o<=r.to;o++)h(o,t,n);else{for(o=r.from;o<=r.to&&o<s.minOptimizationVal;o++)h(o,t,n);if(r.to>=s.minOptimizationVal)for(var i=r.from>=s.minOptimizationVal?r.from:s.minOptimizationVal,a=r.to,l=Object(s.charCodeToOptimizedIndex)(i),u=Object(s.charCodeToOptimizedIndex)(a),c=l;c<=u;c++)t[c]=c}}}));break;case"Group":d(l.value,t,n);break;default:throw Error("Non Exhaustive Match")}var u=void 0!==l.quantifier&&0===l.quantifier.atLeast;if("Group"===l.type&&!1===p(l)||"Group"!==l.type&&!1===u)break}break;default:throw Error("non exhaustive match!")}return Object(i.values)(t)}function h(e,t,n){var r=Object(s.charCodeToOptimizedIndex)(e);t[r]=r,!0===n&&function(e,t){var n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){var o=Object(s.charCodeToOptimizedIndex)(r.charCodeAt(0));t[o]=o}else{var i=n.toLowerCase();if(i!==n){o=Object(s.charCodeToOptimizedIndex)(i.charCodeAt(0));t[o]=o}}}(e,t)}function f(e,t){return Object(i.find)(e.value,(function(e){if("number"==typeof e)return Object(i.contains)(t,e);var n=e;return void 0!==Object(i.find)(t,(function(e){return n.from<=e&&e<=n.to}))}))}function p(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(Object(i.isArray)(e.value)?Object(i.every)(e.value,p):p(e.value))}var g=function(e){function t(t){var n=e.call(this)||this;return n.targetCharCodes=t,n.found=!1,n}return l(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){Object(i.contains)(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===f(e,this.targetCharCodes)&&(this.found=!0):void 0!==f(e,this.targetCharCodes)&&(this.found=!0)},t}(o.BaseRegExpVisitor);function m(e,t){if(t instanceof RegExp){var n=Object(a.getRegExpAst)(t),r=new g(e);return r.visit(n),r.found}return void 0!==Object(i.find)(t,(function(t){return Object(i.contains)(e,t.charCodeAt(0))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"resolveGrammar",(function(){return l})),n.d(t,"GastRefResolverVisitor",(function(){return u}));var r,o=n(69),i=n(37),a=n(118),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e,t){var n=new u(e,t);return n.resolveRefs(),n.errors}var u=function(e){function t(t,n){var r=e.call(this)||this;return r.nameToTopRule=t,r.errMsgProvider=n,r.errors=[],r}return s(t,e),t.prototype.resolveRefs=function(){var e=this;Object(i.forEach)(Object(i.values)(this.nameToTopRule),(function(t){e.currTopLevel=t,t.accept(e)}))},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:o.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(a.GAstVisitor)},function(e,t,n){"use strict";n.r(t),n.d(t,"LooksAhead",(function(){return l}));var r=n(199),o=n(37),i=n(69),a=n(158),s=n(157),l=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=Object(o.has)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:i.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=Object(o.has)(e,"maxLookahead")?e.maxLookahead:i.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=Object(o.isES2015MapSupported)()?new Map:[],Object(o.isES2015MapSupported)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;Object(o.forEach)(e,(function(e){t.TRACE_INIT(e.name+" Rule Lookahead",(function(){var n=Object(s.collectMethods)(e),i=n.alternation,l=n.repetition,u=n.option,c=n.repetitionMandatory,d=n.repetitionMandatoryWithSeparator,h=n.repetitionWithSeparator;Object(o.forEach)(i,(function(n){var o=0===n.idx?"":n.idx;t.TRACE_INIT(""+Object(s.getProductionDslName)(n)+o,(function(){var o=Object(r.buildLookaheadFuncForOr)(n.idx,e,n.maxLookahead||t.maxLookahead,n.hasPredicates,t.dynamicTokensEnabled,t.lookAheadBuilderForAlternatives),i=Object(a.getKeyForAutomaticLookahead)(t.fullRuleNameToShort[e.name],a.OR_IDX,n.idx);t.setLaFuncCache(i,o)}))})),Object(o.forEach)(l,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_IDX,r.PROD_TYPE.REPETITION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(u,(function(n){t.computeLookaheadFunc(e,n.idx,a.OPTION_IDX,r.PROD_TYPE.OPTION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(c,(function(n){t.computeLookaheadFunc(e,n.idx,a.AT_LEAST_ONE_IDX,r.PROD_TYPE.REPETITION_MANDATORY,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(d,(function(n){t.computeLookaheadFunc(e,n.idx,a.AT_LEAST_ONE_SEP_IDX,r.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(h,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_SEP_IDX,r.PROD_TYPE.REPETITION_WITH_SEPARATOR,n.maxLookahead,Object(s.getProductionDslName)(n))}))}))}))},e.prototype.computeLookaheadFunc=function(e,t,n,o,i,s){var l=this;this.TRACE_INIT(""+s+(0===t?"":t),(function(){var s=Object(r.buildLookaheadFuncForOptionalProd)(t,e,i||l.maxLookahead,l.dynamicTokensEnabled,o,l.lookAheadBuilderForOptional),u=Object(a.getKeyForAutomaticLookahead)(l.fullRuleNameToShort[e.name],n,t);l.setLaFuncCache(u,s)}))},e.prototype.lookAheadBuilderForOptional=function(e,t,n){return Object(r.buildSingleAlternativeLookaheadFunction)(e,t,n)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,n,o){return Object(r.buildAlternativesLookAheadFunc)(e,t,n,o)},e.prototype.getKeyForAutomaticLookahead=function(e,t){var n=this.getLastExplicitRuleShortName();return Object(a.getKeyForAutomaticLookahead)(n,e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"TreeBuilder",(function(){return l}));var r=n(240),o=n(37),i=n(641),a=n(158),s=n(69),l=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=Object(o.has)(e,"outputCst")?e.outputCst:s.DEFAULT_PARSER_CONFIG.outputCst,this.nodeLocationTracking=Object(o.has)(e,"nodeLocationTracking")?e.nodeLocationTracking:s.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=r.setNodeLocationFull,this.setNodeLocationFromNode=r.setNodeLocationFull,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=r.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=r.setNodeLocationOnlyOffset,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=o.NOOP}else this.cstInvocationStateUpdate=o.NOOP,this.cstFinallyStateUpdate=o.NOOP,this.cstPostTerminal=o.NOOP,this.cstPostNonTerminal=o.NOOP,this.cstPostRule=o.NOOP,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var n={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var n={name:e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?n.endOffset=t.endOffset:n.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var n=this.CST_STACK[this.CST_STACK.length-1];Object(r.addTerminalToCst)(n,t,e),this.setNodeLocationFromToken(n.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var n=this.CST_STACK[this.CST_STACK.length-1];Object(r.addNoneTerminalToCst)(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(Object(o.isUndefined)(this.baseCstVisitorConstructor)){var e=Object(i.createBaseSemanticVisitorConstructor)(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Object(o.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=Object(i.createBaseVisitorConstructorWithDefaults)(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var n;return void 0!==e.NAME?(n=e.NAME,this.nestedRuleInvocationStateUpdate(n,t),n):void 0},e.prototype.nestedAltBeforeClause=function(e,t,n,r){var o,i=this.getLastExplicitRuleShortName(),s=Object(a.getKeyForAltIndex)(i,n,t,r);return void 0!==e.NAME?(o=e.NAME,this.nestedRuleInvocationStateUpdate(o,s),{shortName:s,nestedName:o}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var n=this.CST_STACK,o=n[n.length-1];this.nestedRuleFinallyStateUpdate();var i=n[n.length-1];Object(r.addNoneTerminalToCst)(i,t,o),this.setNodeLocationFromNode(i.location,o.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultVisit",(function(){return s})),n.d(t,"createBaseSemanticVisitorConstructor",(function(){return l})),n.d(t,"createBaseVisitorConstructorWithDefaults",(function(){return u})),n.d(t,"CstVisitorDefinitionError",(function(){return r})),n.d(t,"validateVisitor",(function(){return c})),n.d(t,"validateMissingCstMethods",(function(){return d})),n.d(t,"validateRedundantMethods",(function(){return f}));var r,o=n(37),i=n(317),a=n(198);function s(e,t){for(var n=Object(o.keys)(e),r=n.length,i=0;i<r;i++)for(var a=e[n[i]],s=a.length,l=0;l<s;l++){var u=a[l];void 0===u.tokenTypeIdx&&(void 0!==u.fullName?this[u.fullName](u.children,t):this[u.name](u.children,t))}}function l(e,t){var n=function(){};return Object(i.defineNameProp)(n,e+"BaseSemantics"),(n.prototype={visit:function(e,t){if(Object(o.isArray)(e)&&(e=e[0]),!Object(o.isUndefined)(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=c(this,t);if(!Object(o.isEmpty)(e)){var n=Object(o.map)(e,(function(e){return e.msg}));throw Error("Errors Detected in CST Visitor <"+Object(i.functionName)(this.constructor)+">:\n\t"+n.join("\n\n").replace(/\n/g,"\n\t"))}}}).constructor=n,n._RULE_NAMES=t,n}function u(e,t,n){var r=function(){};Object(i.defineNameProp)(r,e+"BaseSemanticsWithDefaults");var a=Object.create(n.prototype);return Object(o.forEach)(t,(function(e){a[e]=s})),(r.prototype=a).constructor=r,r}function c(e,t){var n=d(e,t),r=f(e,t);return n.concat(r)}function d(e,t){var n=Object(o.map)(t,(function(t){if(!Object(o.isFunction)(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+Object(i.functionName)(e.constructor)+" CST Visitor.",type:r.MISSING_METHOD,methodName:t}}));return Object(o.compact)(n)}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(r||(r={}));var h=["constructor","visit","validateVisitor"];function f(e,t){var n=[];for(var s in e)a.validTermsPattern.test(s)&&Object(o.isFunction)(e[s])&&!Object(o.contains)(h,s)&&!Object(o.contains)(t,s)&&n.push({msg:"Redundant visitor method: <"+s+"> on "+Object(i.functionName)(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+a.validTermsPattern.source+"/.",type:r.REDUNDANT_METHOD,methodName:s});return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"LexerAdapter",(function(){return o}));var r=n(69),o=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):r.END_OF_FILE},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?r.END_OF_FILE:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RecognizerApi",(function(){return u}));var r=n(37),o=n(99),i=n(69),a=n(119),s=n(198),l=n(45),u=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,n){return this.consumeInternal(t,e,n)},e.prototype.subrule=function(e,t,n){return this.subruleInternal(t,e,n)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,n){if(void 0===n&&(n=i.DEFAULT_RULE_CONFIG),Object(r.contains)(this.definedRulesNames,e)){var o={message:a.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(o)}this.definedRulesNames.push(e);var s=this.defineRule(e,t,n);return this[e]=s,s},e.prototype.OVERRIDE_RULE=function(e,t,n){void 0===n&&(n=i.DEFAULT_RULE_CONFIG);var r=[];r=r.concat(Object(s.validateRuleIsOverridden)(e,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(e,t,n);return this[e]=o,o},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(Object(o.isRecognitionException)(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Object(l.serializeGrammar)(Object(r.values)(this.gastProductionsCache))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RecognizerEngine",(function(){return f}));var r=n(37),o=n(158),i=n(99),a=n(199),s=n(200),l=n(69),u=n(316),c=n(87),d=n(156),h=n(317),f=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=Object(h.classNameFromInstance)(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=d.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Object(r.has)(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(Object(r.isArray)(e)){if(Object(r.isEmpty)(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(Object(r.isArray)(e))this.tokensMap=Object(r.reduce)(e,(function(e,t){return e[t.name]=t,e}),{});else if(Object(r.has)(e,"modes")&&Object(r.every)(Object(r.flatten)(Object(r.values)(e.modes)),d.isTokenType)){var n=Object(r.flatten)(Object(r.values)(e.modes)),o=Object(r.uniq)(n);this.tokensMap=Object(r.reduce)(o,(function(e,t){return e[t.name]=t,e}),{})}else{if(!Object(r.isObject)(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=Object(r.cloneObj)(e)}this.tokensMap.EOF=c.EOF;var i=Object(r.every)(Object(r.values)(e),(function(e){return Object(r.isEmpty)(e.categoryMatches)}));this.tokenMatcher=i?d.tokenStructuredMatcherNoCategories:d.tokenStructuredMatcher,Object(d.augmentTokenTypes)(Object(r.values)(this.tokensMap))},e.prototype.defineRule=function(e,t,n){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var i,a=Object(r.has)(n,"resyncEnabled")?n.resyncEnabled:l.DEFAULT_RULE_CONFIG.resyncEnabled,s=Object(r.has)(n,"recoveryValueFunc")?n.recoveryValueFunc:l.DEFAULT_RULE_CONFIG.recoveryValueFunc,u=this.ruleShortNameIdx<<o.BITS_FOR_METHOD_TYPE+o.BITS_FOR_OCCURRENCE_IDX;function c(e){try{if(!0===this.outputCst){t.apply(this,e);var n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,a,s)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[u]=e,this.fullRuleNameToShort[e]=u;return(i=function(t,n){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(u,e,t),c.call(this,n)}).ruleName=e,i.originalGrammarAction=t,i},e.prototype.invokeRuleCatch=function(e,t,n){var r=1===this.RULE_STACK.length,o=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Object(i.isRecognitionException)(e)){var a=e;if(o){var s,l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))return a.resyncedTokens=this.reSyncTo(l),this.outputCst?((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,s):n();throw this.outputCst&&((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,a.partialCstResult=s),a}if(r)return this.moveToTerminatedState(),n();throw a}throw e},e.prototype.optionInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OPTION_IDX,t),r=this.nestedRuleBeforeClause(e,n);try{return this.optionInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.optionInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OPTION_IDX,t);return this.optionInternalLogic(e,t,n)},e.prototype.optionInternalLogic=function(e,t,n){var r,o,i=this,a=this.getLaFuncFromCache(n);if(void 0!==e.DEF){if(r=e.DEF,void 0!==(o=e.GATE)){var s=a;a=function(){return o.call(i)&&s.call(i)}}}else r=e;if(!0===a.call(this))return r.call(this)},e.prototype.atLeastOneInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{return this.atLeastOneInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_IDX,e);this.atLeastOneInternalLogic(e,t,n)},e.prototype.atLeastOneInternalLogic=function(e,t,n){var r,i,l=this,u=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var c=u;u=function(){return i.call(l)&&c.call(l)}}}else r=t;if(!0!==u.call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY,t.ERR_MSG);for(var d=this.doSingleRepetition(r);!0===u.call(this)&&!0===d;)d=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],u,o.AT_LEAST_ONE_IDX,e,s.NextTerminalAfterAtLeastOneWalker)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_SEP_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{this.atLeastOneSepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_SEP_IDX,e);this.atLeastOneSepFirstInternalLogic(e,t,n)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,n){var r=this,i=t.DEF,l=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);i.call(this);for(var u=function(){return r.tokenMatcher(r.LA(1),l)};!0===this.tokenMatcher(this.LA(1),l);)this.CONSUME(l),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,l,u,i,s.NextTerminalAfterAtLeastOneSepWalker],u,o.AT_LEAST_ONE_SEP_IDX,e,s.NextTerminalAfterAtLeastOneSepWalker)},e.prototype.manyInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{return this.manyInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manyInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_IDX,e);return this.manyInternalLogic(e,t,n)},e.prototype.manyInternalLogic=function(e,t,n){var r,i,a=this,l=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var u=l;l=function(){return i.call(a)&&u.call(a)}}}else r=t;for(var c=!0;!0===l.call(this)&&!0===c;)c=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],l,o.MANY_IDX,e,s.NextTerminalAfterManyWalker,c)},e.prototype.manySepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_SEP_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{this.manySepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_SEP_IDX,e);this.manySepFirstInternalLogic(e,t,n)},e.prototype.manySepFirstInternalLogic=function(e,t,n){var r=this,i=t.DEF,a=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){i.call(this);for(var l=function(){return r.tokenMatcher(r.LA(1),a)};!0===this.tokenMatcher(this.LA(1),a);)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,s.NextTerminalAfterManySepWalker],l,o.MANY_SEP_IDX,e,s.NextTerminalAfterManySepWalker)}},e.prototype.repetitionSepSecondInternal=function(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,o.AT_LEAST_ONE_SEP_IDX,e,i)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var n=Object(r.isArray)(e)?e:e.DEF,i=this.getKeyForAutomaticLookahead(o.OR_IDX,t),a=this.getLaFuncFromCache(i).call(this,n);if(void 0!==a)return n[a].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OR_IDX,t),i=this.nestedRuleBeforeClause(e,n);try{var a=Object(r.isArray)(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,a);if(void 0!==s){var l=a[s],u=this.nestedAltBeforeClause(l,t,o.OR_IDX,s);try{return l.ALT.call(this)}finally{void 0!==u&&this.nestedRuleFinallyClause(u.shortName,u.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==i&&this.nestedRuleFinallyClause(n,i)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new i.NotAllInputParsedException(t,e))}},e.prototype.subruleInternal=function(e,t,n){var r;try{var o=void 0!==n?n.ARGS:void 0;return r=e.call(this,t,o),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(t){this.subruleInternalError(t,n,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,n){throw Object(i.isRecognitionException)(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,n){var r;try{var o=this.LA(1);!0===this.tokenMatcher(o,e)?(this.consumeToken(),r=o):this.consumeInternalError(e,o,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r},e.prototype.consumeInternalError=function(e,t,n){var r,o=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new i.MismatchedTokenException(r,t,o))},e.prototype.consumeInternalRecovery=function(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;var r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===u.IN_RULE_RECOVERY_EXCEPTION?n:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=Object(r.cloneArr)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),c.EOF)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorHandler",(function(){return s}));var r=n(99),o=n(37),i=n(199),a=n(69),s=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=Object(o.defaults)(e.errorMessageProvider,a.DEFAULT_PARSER_CONFIG.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(Object(r.isRecognitionException)(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Object(o.cloneArr)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return Object(o.cloneArr)(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,n){for(var o=this.getCurrRuleFullName(),a=this.getGAstProductions()[o],s=Object(i.getLookaheadPathsForOptionalProd)(e,a,t,this.maxLookahead)[0],l=[],u=1;u<=this.maxLookahead;u++)l.push(this.LA(u));var c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:l,previous:this.LA(0),customUserDescription:n,ruleName:o});throw this.SAVE_ERROR(new r.EarlyExitException(c,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var n=this.getCurrRuleFullName(),o=this.getGAstProductions()[n],a=Object(i.getLookaheadPathsForOr)(e,o,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new r.NoViableAltException(c,this.LA(1),u))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentAssist",(function(){return i}));var r=n(200),o=n(37),i=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var n=this.gastProductionsCache[e];if(Object(o.isUndefined)(n))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Object(r.nextPossibleTokensAfter)([n],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=Object(o.first)(e.ruleStack),n=this.getGAstProductions()[t];return new r.NextAfterTokenWalker(n,e).startWalking()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"GastRecorder",(function(){return g}));var r=n(37),o=n(45),i=n(136),a=n(156),s=n(87),l=n(69),u=n(158),c={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(c);var d=Math.pow(2,u.BITS_FOR_OCCURRENCE_IDX)-1,h=Object(s.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:i.Lexer.NA});Object(a.augmentTokenTypes)([h]);var f=Object(s.createTokenInstance)(h,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(f);var p={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},g=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var t=function(t){var n=t>0?t:"";e["CONSUME"+n]=function(e,n){return this.consumeInternalRecord(e,t,n)},e["SUBRULE"+n]=function(e,n){return this.subruleInternalRecord(e,t,n)},e["OPTION"+n]=function(e){return this.optionInternalRecord(e,t)},e["OR"+n]=function(e){return this.orInternalRecord(e,t)},e["MANY"+n]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+n]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+n]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+n]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},n=0;n<10;n++)t(n);e.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},e.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD}))},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var t=0;t<10;t++){var n=t>0?t:"";delete e["CONSUME"+n],delete e["SUBRULE"+n],delete e["OPTION"+n],delete e["OR"+n],delete e["MANY"+n],delete e["MANY_SEP"+n],delete e["AT_LEAST_ONE"+n],delete e["AT_LEAST_ONE_SEP"+n]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA}))},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return l.END_OF_FILE},e.prototype.topLevelRuleRecord=function(e,t){try{var n=new o.Rule({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return m.call(this,o.Option,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){m.call(this,o.RepetitionMandatory,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){m.call(this,o.RepetitionMandatoryWithSeparator,t,e,!0)},e.prototype.manyInternalRecord=function(e,t){m.call(this,o.Repetition,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){m.call(this,o.RepetitionWithSeparator,t,e,!0)},e.prototype.orInternalRecord=function(e,t){return v.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,n){if(E(t),!e||!1===Object(r.has)(e,"ruleName")){var i=new Error("<SUBRULE"+y(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw i.KNOWN_RECORDER_ERROR=!0,i}var a=Object(r.peek)(this.recordingProdStack),s=e.ruleName,l=new o.NonTerminal({idx:t,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?p:c},e.prototype.consumeInternalRecord=function(e,t,n){if(E(t),!Object(a.hasShortKeyProperty)(e)){var i=new Error("<CONSUME"+y(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw i.KNOWN_RECORDER_ERROR=!0,i}var s=Object(r.peek)(this.recordingProdStack),l=new o.Terminal({idx:t,terminalType:e});return s.definition.push(l),f},e}();function m(e,t,n,o){void 0===o&&(o=!1),E(n);var i=Object(r.peek)(this.recordingProdStack),a=Object(r.isFunction)(t)?t:t.DEF,s=new e({definition:[],idx:n});return Object(r.has)(t,"NAME")&&(s.name=t.NAME),o&&(s.separator=t.SEP),Object(r.has)(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),c}function v(e,t){var n=this;E(t);var i=Object(r.peek)(this.recordingProdStack),a=!1===Object(r.isArray)(e),s=!1===a?e:e.DEF,l=new o.Alternation({definition:[],idx:t,ignoreAmbiguities:a&&!0===e.IGNORE_AMBIGUITIES});Object(r.has)(e,"NAME")&&(l.name=e.NAME),Object(r.has)(e,"MAX_LOOKAHEAD")&&(l.maxLookahead=e.MAX_LOOKAHEAD);var u=Object(r.some)(s,(function(e){return Object(r.isFunction)(e.GATE)}));return l.hasPredicates=u,i.definition.push(l),Object(r.forEach)(s,(function(e){var t=new o.Flat({definition:[]});l.definition.push(t),Object(r.has)(e,"NAME")&&(t.name=e.NAME),Object(r.has)(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object(r.has)(e,"GATE")&&(t.ignoreAmbiguities=!0),n.recordingProdStack.push(t),e.ALT.call(n),n.recordingProdStack.pop()})),c}function y(e){return 0===e?"":""+e}function E(e){if(e<0||e>d){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(d+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}},function(e,t,n){"use strict";n.r(t),n.d(t,"PerformanceTracer",(function(){return i}));var r=n(37),o=n(69),i=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(Object(r.has)(e,"traceInitPerf")){var t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=o.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(n+"--\x3e <"+e+">");var o=Object(r.timer)(t),i=o.time,a=o.value,s=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(n+"<-- <"+e+"> time: "+i+"ms"),this.traceInitIndent--,a}return t()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"genUmdModule",(function(){return a})),n.d(t,"genWrapperFunction",(function(){return s})),n.d(t,"genClass",(function(){return l})),n.d(t,"genAllRules",(function(){return u})),n.d(t,"genRule",(function(){return c})),n.d(t,"genTerminal",(function(){return d})),n.d(t,"genNonTerminal",(function(){return h})),n.d(t,"genAlternation",(function(){return f})),n.d(t,"genSingleAlt",(function(){return p}));var r=n(37),o=n(45),i="\n";function a(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+l(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}function s(e){return" \n"+l(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}function l(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+u(e.rules)+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n"+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function u(e){return Object(r.map)(e,(function(e){return c(e,1)})).join("\n")}function c(e,t){var n=y(t,'$.RULE("'+e.name+'", function() {')+i;return n+=v(e.definition,t+1),n+=y(t+1,"})")+i}function d(e,t){var n=e.terminalType.name;return y(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+i)}function h(e,t){return y(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+i)}function f(e,t){var n=y(t,"$.OR"+e.idx+"([")+i;return n+=Object(r.map)(e.definition,(function(e){return p(e,t+1)})).join(",\n"),n+=i+y(t,"])\n")}function p(e,t){var n=y(t,"{")+i;return e.name&&(n+=y(t+1,'NAME: "'+e.name+'",')+i),n+=y(t+1,"ALT: function() {")+i,n+=v(e.definition,t+1),n+=y(t+1,"}")+i,n+=y(t,"}")}function g(e,t,n){var r=y(n,"$."+(e+t.idx)+"(");return t.name||t.separator?(r+="{\n",t.name&&(r+=y(n+1,'NAME: "'+t.name+'"')+","+i),t.separator&&(r+=y(n+1,"SEP: this.tokensMap."+t.separator.name)+","+i),r+="DEF: "+m(t.definition,n+2)+i,r+=y(n,"}")+i):r+=m(t.definition,n+1),r+=y(n,")")+i}function m(e,t){var n="function() {\n";return n+=v(e,t),n+=y(t,"}")+i}function v(e,t){var n="";return Object(r.forEach)(e,(function(e){n+=function(e,t){if(e instanceof o.NonTerminal)return h(e,t);if(e instanceof o.Option)return g("OPTION",e,t);if(e instanceof o.RepetitionMandatory)return g("AT_LEAST_ONE",e,t);if(e instanceof o.RepetitionMandatoryWithSeparator)return g("AT_LEAST_ONE_SEP",e,t);if(e instanceof o.RepetitionWithSeparator)return g("MANY_SEP",e,t);if(e instanceof o.Repetition)return g("MANY",e,t);if(e instanceof o.Alternation)return f(e,t);if(e instanceof o.Terminal)return d(e,t);if(e instanceof o.Flat)return v(e.definition,t);throw Error("non exhaustive match")}(e,t+1)})),n}function y(e,t){return Array(4*e+1).join(" ")+t}},function(e,t,n){"use strict";n.r(t),n.d(t,"Cache",(function(){return o})),n.d(t,"doesContainFunctions",(function(){return i}));var r=n(60);
|
518
|
+
class l extends s.FunctionPlugin{avedev(e,t){return this.runFunction(e.args,t,this.metadata("AVEDEV"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;if(0===t.length)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const n=Object(a.mean)(t);return t.reduce((e,t)=>e+Math.abs(t-n),0)/t.length})}devsq(e,t){return this.runFunction(e.args,t,this.metadata("DEVSQ"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);return t instanceof r.CellError?t:0===t.length?0:Object(a.sumsqerr)(t)})}geomean(e,t){return this.runFunction(e.args,t,this.metadata("GEOMEAN"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;if(0===t.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue);for(const e of t)if(e<=0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);return Object(a.geomean)(t)})}harmean(e,t){return this.runFunction(e.args,t,this.metadata("HARMEAN"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;if(0===t.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue);for(const e of t)if(e<=0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);return t.length/t.reduce((e,t)=>e+1/t,0)})}correl(e,t){return this.runFunction(e.args,t,this.metadata("CORREL"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.corrcoeff)(n[0],n[1])})}rsq(e,t){return this.runFunction(e.args,t,this.metadata("RSQ"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Math.pow(Object(a.corrcoeff)(n[0],n[1]),2)})}covariancep(e,t){return this.runFunction(e.args,t,this.metadata("COVARIANCE.P"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);if(n instanceof r.CellError)return n;const i=n[0].length;return i<1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.OneValue):1===i?0:Object(a.covariance)(n[0],n[1])*(i-1)/i})}covariances(e,t){return this.runFunction(e.args,t,this.metadata("COVARIANCE.S"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.covariance)(n[0],n[1])})}ztest(e,t){return this.runFunction(e.args,t,this.metadata("Z.TEST"),(e,t,n)=>{const i=this.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner());if(i instanceof r.CellError)return i;const s=i.length;if(void 0===n){if(s<2)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);n=Object(a.stdev)(i,!0)}return s<1?new r.CellError(r.ErrorType.NA,o.ErrorMessage.OneValue):0===n?new r.CellError(r.ErrorType.DIV_BY_ZERO):1-a.normal.cdf((Object(a.mean)(i)-t)/(n/Math.sqrt(s)),0,1)})}ftest(e,t){return this.runFunction(e.args,t,this.metadata("F.TEST"),(e,t)=>{const n=this.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner()),o=this.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(n instanceof r.CellError)return n;if(o instanceof r.CellError)return o;if(n.length<=1||o.length<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const i=Object(a.variance)(n,!0),s=Object(a.variance)(o,!0);if(0===i||0===s)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const l=i/s,u=a.centralF.cdf(l,n.length-1,o.length-1);return 2*Math.min(u,1-u)})}steyx(e,t){return this.runFunction(e.args,t,this.metadata("STEYX"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);if(n instanceof r.CellError)return n;const i=n[0].length;return i<=2?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues):Math.sqrt((Object(a.sumsqerr)(n[0])-Math.pow(Object(a.covariance)(n[0],n[1])*(i-1),2)/Object(a.sumsqerr)(n[1]))/(i-2))})}slope(e,t){return this.runFunction(e.args,t,this.metadata("SLOPE"),(e,t)=>{if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const n=u(e,t);if(n instanceof r.CellError)return n;const i=n[0].length;return i<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.covariance)(n[0],n[1])*(i-1)/Object(a.sumsqerr)(n[1])})}chisqtest(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.TEST"),(e,t)=>{const n=e.height(),i=e.width();if(t.height()!==n||t.width()!==i)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);const s=u(e,t);if(s instanceof r.CellError)return s;if(s[0].length<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);let l=0;for(let e=0;e<s[0].length;e++){if(0===s[1][e])return new r.CellError(r.ErrorType.DIV_BY_ZERO);l+=Math.pow(s[0][e]-s[1][e],2)/s[1][e]}return l<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NaN):1-a.chisquare.cdf(l,n>1&&i>1?(n-1)*(i-1):n*i-1)})}ttest(e,t){return this.runFunction(e.args,t,this.metadata("T.TEST"),(e,t,n,i)=>{const s=this.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner()),l=this.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(s instanceof r.CellError)return s;if(l instanceof r.CellError)return l;const u=s.length,c=l.length;if(1===i){if(c!==u)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);if(u<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=Array(u);for(let t=0;t<u;t++)e[t]=s[t]-l[t];const t=Object(a.stdev)(e,!0);if(0===t)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const i=Math.abs(Math.sqrt(u)*Object(a.mean)(e)/t);return n*(1-a.studentt.cdf(i,u-1))}if(2===i){if(u<=1||c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=(Object(a.sumsqerr)(s)+Object(a.sumsqerr)(l))/(u+c-2);if(0===e)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const t=Math.abs((Object(a.mean)(s)-Object(a.mean)(l))/Math.sqrt(e*(1/u+1/c)));return n*(1-a.studentt.cdf(t,u+c-2))}{if(u<=1||c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=Object(a.variance)(s,!0),t=Object(a.variance)(l,!0);if(0===e&&0===t)return new r.CellError(r.ErrorType.DIV_BY_ZERO);const i=Math.abs((Object(a.mean)(s)-Object(a.mean)(l))/Math.sqrt(e/u+t/c)),d=Math.pow(e/u+t/c,2)/(Math.pow(e/u,2)/(u-1)+Math.pow(t/c,2)/(c-1));return n*(1-a.studentt.cdf(i,d))}})}skew(e,t){return this.runFunction(e.args,t,this.metadata("SKEW"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;const n=t.length;if(n<3)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues);const i=Object(a.mean)(t),s=Object(a.stdev)(t,!0);return 0===s?new r.CellError(r.ErrorType.DIV_BY_ZERO):t.reduce((e,t)=>e+Math.pow((t-i)/s,3),0)*n/(n-1)/(n-2)})}skewp(e,t){return this.runFunction(e.args,t,this.metadata("SKEW.P"),(...e)=>{const t=this.arithmeticHelper.coerceNumbersExactRanges(e);if(t instanceof r.CellError)return t;const n=t.length;if(n<3)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues);const i=Object(a.mean)(t),s=Object(a.stdev)(t,!1);return 0===s?new r.CellError(r.ErrorType.DIV_BY_ZERO):t.reduce((e,t)=>e+Math.pow((t-i)/s,3),0)/n})}}function u(e,t){const n=e.iterateValuesFromTopLeftCorner(),o=t.iterateValuesFromTopLeftCorner();let a,s;const l=[],u=[];for(;a=n.next(),s=o.next(),!a.done&&!s.done;){const e=a.value,t=s.value;if(e instanceof r.CellError)return e;if(t instanceof r.CellError)return t;Object(i.isExtendedNumber)(e)&&Object(i.isExtendedNumber)(t)&&(l.push(Object(i.getRawValue)(e)),u.push(Object(i.getRawValue)(t)))}return[l,u]}l.implementedFunctions={AVEDEV:{method:"avedev",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},DEVSQ:{method:"devsq",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},GEOMEAN:{method:"geomean",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},HARMEAN:{method:"harmean",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},CORREL:{method:"correl",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},RSQ:{method:"rsq",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"COVARIANCE.P":{method:"covariancep",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"COVARIANCE.S":{method:"covariances",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"Z.TEST":{method:"ztest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,optionalArg:!0}]},"F.TEST":{method:"ftest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},STEYX:{method:"steyx",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},SLOPE:{method:"slope",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"CHISQ.TEST":{method:"chisqtest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"T.TEST":{method:"ttest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:2},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:3}]},SKEW:{method:"skew",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},"SKEW.P":{method:"skewp",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1}},l.aliases={COVAR:"COVARIANCE.P",FTEST:"F.TEST",PEARSON:"CORREL",ZTEST:"Z.TEST",CHITEST:"CHISQ.TEST",TTEST:"T.TEST",COVARIANCEP:"COVARIANCE.P",COVARIANCES:"COVARIANCE.S",SKEWP:"SKEW.P"}},function(e,t){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},function(e,t,n){var r=n(140);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(57),o=n(379),i=n(71),a=n(61),s=n(88),l=n(170);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(57),o=n(29);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(57),o=n(29),i=n(208);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(63),o=n(56),i=n(169),a=n(124),s=n(686),l=n(47),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){var r=n(30),o=n(55),i=n(88),a=n(264).indexOf,s=n(172),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},function(e,t,n){var r=n(101);e.exports=r("document","documentElement")},function(e,t,n){var r=n(44),o=n(50),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){var r=n(30),o=n(50),i=n(262),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var r=n(55),o=n(387),i=n(116),a=n(71);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},function(e,t,n){var r=n(101),o=n(30),i=n(143),a=n(212),s=n(61),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var r,o,i,a=n(29),s=n(50),l=n(56),u=n(123),c=n(267),d=n(93),h=n(47),f=n(121),p=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):g=!0),!l(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){var r=n(29);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(30),o=n(61),i=n(690);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var r=n(29),o=n(56),i=n(105),a=n(693),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(29);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(47),o=n(173),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(63),o=n(141),i=n(61),a=n(142),s=n(275),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw l(a(e)+" is not iterable")}},function(e,t,n){var r=n(63),o=n(61),i=n(124);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},function(e,t,n){var r=n(47)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(30),o=n(271),i=n(176).getWeakData,a=n(276),s=n(61),l=n(97),u=n(56),c=n(274),d=n(127),h=n(55),f=n(106),p=f.set,g=f.getterFor,m=d.find,v=d.findIndex,y=r([].splice),E=0,T=function(e){return e.frozen||(e.frozen=new C)},C=function(){this.entries=[]},R=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};C.prototype={get:function(e){var t=R(this,e);if(t)return t[1]},has:function(e){return!!R(this,e)},set:function(e,t){var n=R(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){a(e,f),p(e,{type:t,id:E++,frozen:void 0}),l(o)||c(o,e[r],{that:e,AS_ENTRIES:n})})),f=d.prototype,m=g(t),v=function(e,t,n){var r=m(e),o=i(s(t),!0);return!0===o?T(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=m(this);if(!u(e))return!1;var n=i(e);return!0===n?T(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!u(e))return!1;var n=i(e);return!0===n?T(t).has(e):n&&h(n,t.id)}}),o(f,n?{get:function(e){var t=m(this);if(u(e)){var n=i(e);return!0===n?T(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(208)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,B,W,Y,G=this,z=arguments.length>2&&void 0!==arguments[2]&&arguments[2],K=!1,X=this,q=new v.default(X),$=!0;(0,_.hasValidParameter)(z)&&(0,_.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;var Q=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",Z=["rtl","ltr"].includes(Q)?Q:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",Z),this.isRtl=function(){return"rtl"===Z},this.isLtr=function(){return!X.isRtl()},this.getDirectionFactor=function(){return X.isLtr()?1:-1},t.language=(0,x.getValidLanguageCode)(t.language);var J=new F.MetaManager(X,t,[F.DynamicCellMetaMod,F.ExtendMetaPropertiesMod]),ee=J.getTableMeta(),te=J.getGlobalMeta(),ne=(0,U.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,_.isRootInstance)(this)&&(0,h._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,O.randomString)()),this.columnIndexMapper=new I.IndexMapper,this.rowIndexMapper=new I.IndexMapper,B=new N.default(X),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var re=function(e){var t=e.row,n=e.col;return X._createCellCoords(t>=0?X.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?X.columnIndexMapper.getRenderableFromVisualIndex(n):n)},oe=function(e){var t=e.row,n=e.col;return X._createCellCoords(t>=0?X.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?X.columnIndexMapper.getVisualFromRenderableIndex(n):n)},ie=new D.Selection(ee,{rowIndexMapper:function(){return X.rowIndexMapper},columnIndexMapper:function(){return X.columnIndexMapper},countCols:function(){return X.countCols()},countRows:function(){return X.countRows()},propToCol:function(e){return r.propToCol(e)},isEditorOpened:function(){return!!X.getActiveEditor()&&X.getActiveEditor().isOpened()},countColsTranslated:function(){return G.view.countRenderableColumns()},countRowsTranslated:function(){return G.view.countRenderableRows()},getShortcutManager:function(){return X.getShortcutManager()},createCellCoords:function(e,t){return X._createCellCoords(e,t)},createCellRange:function(e,t,n){return X._createCellRange(e,t,n)},visualToRenderableCoords:re,renderableToVisualCoords:oe,isDisabledCellSelection:function(e,t){return X.getCellMeta(e,t).disableVisualSelection}});this.selection=ie;var ae=function(e){e.hiddenIndexesChanged&&G.selection.refresh()};function se(e){var t=(0,L.normalizeLanguageCode)(e);(0,x.hasLanguageDictionary)(t)?(X.runHooks("beforeLanguageChange",t),te.language=t,X.runHooks("afterLanguageChange",t)):(0,L.warnUserAboutLanguageRegistration)(e)}function le(e,t){var n="className"===e?X.rootElement:X.table;if($)(0,c.addClass)(n,t);else{var r=[],o=[];te[e]&&(r=Array.isArray(te[e])?te[e]:(0,E.stringToArray)(te[e])),t&&(o=Array.isArray(t)?t:(0,E.stringToArray)(t));var i=(0,E.getDifferenceOfArrays)(r,o),a=(0,E.getDifferenceOfArrays)(o,r);i.length&&(0,c.removeClass)(n,i),a.length&&(0,c.addClass)(n,a)}te[e]=t}function ue(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ce(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function de(e,t,n){if(e.length){var o=X.getActiveEditor(),i=X.runHooks("beforeChange",e,t||"edit"),s=!0;if(!1!==i){var l=new ue;l.onQueueEmpty=function(e){o&&s&&o.cancelChanges(),n(e)};for(var u=e.length-1;u>=0;u--)if(null===e[u])e.splice(u,1);else{var d=(0,a.default)(e[u],4),h=d[0],f=d[1],p=d[3],g=r.propToCol(f),m=X.getCellMeta(h,g);"numeric"===m.type&&"string"==typeof p&&(0,b.isNumericLike)(p)&&(e[u][3]=ce(p)),X.getCellValidator(m)&&(l.addValidatorToQueue(),X.validateCell(e[u][3],m,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){s=!1,e.splice(t,1),n.valid=!0;var o=X.getCell(n.visualRow,n.visualCol);null!==o&&(0,c.removeClass)(o,ee.invalidCellClassName)}l.removeValidatorFormQueue()}}(u,m),t))}l.checkIfQueueIsEmpty()}else o&&o.cancelChanges()}}function he(e,t){var n=e.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(ee.allowInsertRow)for(;e[n][0]>X.countRows()-1;){if(0===r.createRow(void 0,void 0,{source:t}).delta){o=!0;break}}if("array"===X.dataType&&(!ee.columns||0===ee.columns.length)&&ee.allowInsertColumn)for(;r.propToCol(e[n][1])>X.countCols()-1;){if(0===r.createCol(void 0,void 0,{source:t}).delta){o=!0;break}}o||r.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}X.forceFullRender=!0,W.adjustRowsAndCols(),X.runHooks("beforeChangeRender",e,t),Y.lockEditor(),X._refreshBorders(null),Y.unlockEditor(),X.view.adjustElementsSize(),X.runHooks("afterChange",e,t||"edit");var i=X.getActiveEditor();i&&(0,h.isDefined)(i.refreshValue)&&i.refreshValue()}}function fe(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}this.columnIndexMapper.addLocalHook("cacheUpdated",ae),this.rowIndexMapper.addLocalHook("cacheUpdated",ae),this.selection.addLocalHook("beforeSetRangeStart",(function(e){G.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){G.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){G.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=G.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=G.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=(0,y.createObjectPropListener)(!1),n=G.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;G.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),G.runHooks("afterSelectionByProp",o.row,X.colToProp(o.col),i.row,X.colToProp(i.col),t,a);var s=G.selection.isSelectedByAnyHeader(),l=G.selection.selectedRange.current(),u=!0;K&&(u=!1),t.isTouched()&&(u=!t.value);var d=G.selection.isSelectedByRowHeader(),h=G.selection.isSelectedByColumnHeader();!1!==u&&(s?d?G.view.scrollViewportVertically(X.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&G.view.scrollViewportHorizontally(X.columnIndexMapper.getRenderableFromVisualIndex(e.col)):l&&!G.selection.isMultiple()?G.view.scrollViewport(re(l.from)):G.view.scrollViewport(re(e))),d&&h?(0,c.addClass)(G.rootElement,["ht__selection--rows","ht__selection--columns"]):d?((0,c.removeClass)(G.rootElement,"ht__selection--columns"),(0,c.addClass)(G.rootElement,"ht__selection--rows")):h?((0,c.removeClass)(G.rootElement,"ht__selection--rows"),(0,c.addClass)(G.rootElement,"ht__selection--columns")):(0,c.removeClass)(G.rootElement,["ht__selection--rows","ht__selection--columns"]),G._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;G.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),G.runHooks("afterSelectionEndByProp",r.row,X.colToProp(r.col),o.row,X.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=G.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){G.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){G.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){G.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){G.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){Y.destroyEditor(),G._refreshBorders(),(0,c.removeClass)(G.rootElement,["ht__selection--rows","ht__selection--columns"]),G.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){G.alter("insert_row_above",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){G.alter("insert_col_start",e,1,"auto")})),W={alter:function(e,t){var n,o,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0,m=function(e){if(0===e.length)return[];var t=(0,s.default)(e);return t.sort((function(e,t){var n=(0,a.default)(e,1)[0],r=(0,a.default)(t,1)[0];return n===r?0:n>r?1:-1})),(0,E.arrayReduce)(t,(function(e,t){var n=(0,a.default)(t,2),r=n[0],o=n[1],i=e[e.length-1],s=(0,a.default)(i,2),l=s[0]+s[1];if(r<=l){var u=Math.max(o-(l-r),0);i[1]+=u}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row":j.has(e)||(j.add(e),(0,p.warn)((0,g.toSingleLine)(l||(l=(0,i.default)(["The `","` action of the `alter()` method is deprecated and will be removed \n in the next major release of Handsontable. Use the `insert_row_above` action instead."],["The \\`","\\` action of the \\`alter()\\` method is deprecated and will be removed\\x20\n in the next major release of Handsontable. Use the \\`insert_row_above\\` action instead."])),e)));case"insert_row_below":case"insert_row_above":var v=X.countSourceRows();if(ee.maxRows===v)return;var y="insert_row_below"===e?"below":"above";t=null!==(n=t)&&void 0!==n?n:"insert_row"===e||"below"===y?v:0;var T=r.createRow(t,c,{source:d,mode:y}),C=T.delta,R=T.startPhysicalIndex;if(C){var w=ie.selectedRange.current(),S=null==w?void 0:w.from,O=null==S?void 0:S.row,b=X.toVisualRow(R);if(ie.isSelectedByCorner())X.selectAll();else if((0,h.isDefined)(O)&&O>=b){var A=w.to,N=A.row,M=A.col,I=S.col;ie.isSelectedByRowHeader()&&(I=-1),ie.getSelectedRange().pop(),ie.setRangeStartOnly(X._createCellCoords(O+C,I),!0),ie.setRangeEnd(X._createCellCoords(N+C,M))}else X._refreshBorders()}break;case"insert_col":j.has(e)||(j.add(e),(0,p.warn)((0,g.toSingleLine)(u||(u=(0,i.default)(["The `","` action of the `alter()` method is deprecated and will be removed \n in the next major release of Handsontable. Use the `insert_col_start` action instead."],["The \\`","\\` action of the \\`alter()\\` method is deprecated and will be removed\\x20\n in the next major release of Handsontable. Use the \\`insert_col_start\\` action instead."])),e)));case"insert_col_start":case"insert_col_end":var _="insert_col_end"===e?"end":"start";t=null!==(o=t)&&void 0!==o?o:"insert_col"===e||"end"===_?X.countSourceCols():0;var k=r.createCol(t,c,{source:d,mode:_}),P=k.delta,x=k.startPhysicalIndex;if(P){if(Array.isArray(ee.colHeaders)){var L=[X.toVisualColumn(x),0];L.length+=P,Array.prototype.splice.apply(ee.colHeaders,L)}var D=ie.selectedRange.current(),F=null==D?void 0:D.from,U=null==F?void 0:F.col,H=X.toVisualColumn(x);if(ie.isSelectedByCorner())X.selectAll();else if((0,h.isDefined)(U)&&U>=H){var V=D.to,B=V.row,Y=V.col,G=F.row;ie.isSelectedByColumnHeader()&&(G=-1),ie.getSelectedRange().pop(),ie.setRangeStartOnly(X._createCellCoords(G,U+P),!0),ie.setRangeEnd(X._createCellCoords(B,Y+P))}else X._refreshBorders()}break;case"remove_row":var z=function(e){var t=0;(0,E.arrayEach)(e,(function(e){var n=(0,a.default)(e,2),o=n[0],i=n[1],s=(0,h.isEmpty)(o)?X.countRows()-1:Math.max(o-t,0);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeRow(o,i,d)){var l=X.countRows(),u=ee.fixedRowsTop;u>=s+1&&(ee.fixedRowsTop-=Math.min(i,u-s));var c=ee.fixedRowsBottom;c&&s>=l-c&&(ee.fixedRowsBottom-=Math.min(i,c)),t+=i}}))};Array.isArray(t)?z(m(t)):z([[t,c]]),W.adjustRowsAndCols(),X._refreshBorders();break;case"remove_col":var K=function(e){var t=0;(0,E.arrayEach)(e,(function(e){var n=(0,a.default)(e,2),o=n[0],i=n[1],s=(0,h.isEmpty)(o)?X.countCols()-1:Math.max(o-t,0),l=X.toPhysicalColumn(s);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,i,d)){var u=ee.fixedColumnsStart;u>=s+1&&(ee.fixedColumnsStart-=Math.min(i,u-s)),Array.isArray(ee.colHeaders)&&(void 0===l&&(l=-1),ee.colHeaders.splice(l,i)),t+=i}}))};Array.isArray(t)?K(m(t)):K([[t,c]]),W.adjustRowsAndCols(),X._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}f||W.adjustRowsAndCols()},adjustRowsAndCols:function(){var e,t=ee.minRows,n=ee.minSpareRows,o=ee.minCols,i=ee.minSpareCols;if(0===X.countRows()&&0===X.countCols()&&ie.deselect(),t){var a=X.countRows();a<t&&r.createRow(a,t-a,{source:"auto"})}if(n){var s=X.countEmptyRows(!0);if(s<n){var l=n-s,u=Math.min(l,ee.maxRows-X.countSourceRows());r.createRow(X.countRows(),u,{source:"auto"})}}(o||i)&&(e=X.countEmptyCols(!0));var c=X.countCols();if(o&&!ee.columns&&c<o){var d=o-c;e+=d,r.createCol(c,d,{source:"auto"})}if(i&&!ee.columns&&"array"===X.dataType&&e<i){c=X.countCols();var h=i-e,f=Math.min(h,ee.maxCols-c);r.createCol(c,f,{source:"auto"})}if(ie.isSelected()){var p=X.countRows(),g=X.countCols();(0,E.arrayEach)(ie.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>p-1?(t=!0,o>(n=p-1)&&(o=n)):o>p-1&&(t=!0,n>(o=p-1)&&(n=o)),r>g-1?(t=!0,i>(r=g-1)&&(i=r)):i>g-1&&(t=!0,r>(i=g-1)&&(r=i)),t&&X.selectCell(n,r,o,i)}))}X.view&&X.view.adjustElementsSize()},populateFromArray:function(e,t,n,r,i,a,l){var u,c,d,f,p=[],g={},m=[],v=e.row,T=e.col;if(0===(c=t.length))return!1;var C=0,R=0;switch((0,y.isObject)(n)&&(C=n.col-T+1,R=n.row-v+1),i){case"shift_down":var w=(0,E.pivot)(t),S=w.length,O=Math.max(S,C),b=X.getData().slice(v),A=(0,E.pivot)(b).slice(T,T+O);for(d=0;d<O;d+=1)if(d<S){for(u=0,c=w[d].length;u<R-c;u+=1)w[d].push(w[d][u%c]);d<A.length?m.push(w[d].concat(A[d])):m.push(w[d].concat(new Array(b.length).fill(null)))}else m.push(w[d%S].concat(A[d]));X.populateFromArray(v,T,(0,E.pivot)(m));break;case"shift_right":var N=t.length,M=Math.max(N,R),I=X.getData().slice(v).map((function(e){return e.slice(T)}));for(u=0;u<M;u+=1)if(u<N){for(d=0,f=t[u].length;d<C-f;d+=1)t[u].push(t[u][d%f]);var _;if(u<I.length)for(var k=0;k<I[u].length;k+=1)t[u].push(I[u][k]);else(_=t[u]).push.apply(_,(0,s.default)(new Array(I[0].length).fill(null)))}else t.push(t[u%c].slice(0,M).concat(I[u]));X.populateFromArray(v,T,t);break;case"overwrite":default:g.row=e.row,g.col=e.col;var P,x={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},L=0,D=0,F=!0,U=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},H=t.length,V=n?n.row-e.row+1:0;for(c=n?V:Math.max(H,V),u=0;u<c&&!(n&&g.row>n.row&&V>H||!ee.allowInsertRow&&g.row>X.countRows()-1||g.row>=ee.maxRows);u++){var j=u-L,B=U(j).length,W=n?n.col-e.col+1:0;if(f=n?W:Math.max(B,W),g.col=e.col,P=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!P.skipRowOnPaste){for(D=0,d=0;d<f&&!(n&&g.col>n.col&&W>B||!ee.allowInsertColumn&&g.col>X.countCols()-1||g.col>=ee.maxCols);d++)if(P=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!P.skipColumnOnPaste)if(P.readOnly&&"UndoRedo.undo"!==r)g.col+=1;else{var Y=d-D,G=U(j,Y),z=X.getDataAtCell(g.row,g.col),K={row:j,col:Y};if("Autofill.fill"===r){var q=X.runHooks("beforeAutofillInsidePopulate",K,a,t,l,{},x);q&&(G=(0,h.isUndefined)(q.value)?G:q.value)}if(null!==G&&"object"===(0,o.default)(G))if(Array.isArray(G)&&null===z&&(z=[]),null===z||"object"!==(0,o.default)(z))F=!1;else{var $=(0,y.duckSchema)(Array.isArray(z)?z:z[0]||z),Q=(0,y.duckSchema)(Array.isArray(G)?G:G[0]||G);(0,y.isObjectEqual)($,Q)||Array.isArray($)&&Array.isArray(Q)?G=(0,y.deepClone)(G):F=!1}else null!==z&&"object"===(0,o.default)(z)&&(F=!1);F&&p.push([g.row,g.col,G]),F=!0,g.col+=1}else D+=1,g.col+=1,f+=1;g.row+=1}else L+=1,g.row+=1,c+=1}X.setDataAtCell(p,null,null,r||"populateFromArray")}}},this.init=function(){B.setData(ee.data),X.runHooks("beforeInit"),((0,f.isMobileBrowser)()||(0,f.isIpadOS)())&&(0,c.addClass)(X.rootElement,"mobile"),this.updateSettings(ee,!0),this.view=new A.default(this),Y=m.default.getInstance(X,ee,ie),X.runHooks("init"),this.forceFullRender=!0,this.view.render(),$&&null===X.rootElement.offsetParent&&(0,c.observeVisibilityChangeOnce)(X.rootElement,(function(){X.view._wt.wtOverlays.updateLastSpreaderSize(),X.render(),X.view.adjustElementsSize()})),"object"===(0,o.default)($)&&(X.runHooks("afterChange",$[0],$[1]),$=!1),X.runHooks("afterInit")},this._createCellCoords=function(e,t){return X.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return X.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,r){var o,i=X.getCellValidator(t);function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var o=t.visualCol,i=t.visualRow,a=X.getCell(i,o,!0);if(a&&"TH"!==a.nodeName){var s=X.rowIndexMapper.getRenderableFromVisualIndex(i),l=X.columnIndexMapper.getRenderableFromVisualIndex(o);X.view._wt.getSetting("cellRenderer",s,l,a)}n(e)}else n(e)}(0,h.isRegExp)(i)&&(o=i,i=function(e,t){t(o.test(e))}),(0,d.isFunction)(i)?(e=X.runHooks("beforeValidate",e,t.visualRow,t.prop,r),X._registerImmediate((function(){i.call(t,e,(function(n){X&&(n=X.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),X.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):X._registerImmediate((function(){t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,i){var a,s,l,u=fe(e,t,n),c=[],d=i;for(a=0,s=u.length;a<s;a++){if("object"!==(0,o.default)(u[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof u[a][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=u[a][1]>=this.countCols()?u[a][1]:r.colToProp(u[a][1]),c.push([u[a][0],l,B.getAtCell(this.toPhysicalRow(u[a][0]),u[a][1]),u[a][2]])}d||"object"!==(0,o.default)(e)||(d=t),X.runHooks("afterSetDataAtCell",c,d),de(c,d,(function(){he(c,d)}))},this.setDataAtRowProp=function(e,t,n,r){var i,a,s=fe(e,t,n),l=[],u=r;for(i=0,a=s.length;i<a;i++)l.push([s[i][0],s[i][1],B.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);u||"object"!==(0,o.default)(e)||(u=t),X.runHooks("afterSetDataAtRowProp",l,u),de(l,u,(function(){he(l,u)}))},this.listen=function(){X&&!X.isListening()&&(V=X.guid,X.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(V=null,X.runHooks("afterUnlisten"))},this.isListening=function(){return V===X.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];X._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,s,l,u){if("object"!==(0,o.default)(n)||"object"!==(0,o.default)(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var c="number"==typeof r?X._createCellCoords(r,i):null;return W.populateFromArray(X._createCellCoords(e,t),n,c,a,s,l,u)},this.spliceCol=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceCol.apply(o,[e,t,n].concat(a))},this.spliceRow=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceRow.apply(o,[e,t,n].concat(a))},this.getSelected=function(){if(ie.isSelected())return(0,E.arrayMap)(ie.getSelectedRange(),(function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(ie.isSelected())return Array.from(ie.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(ie.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];(0,E.arrayEach)(ie.getSelectedRange(),(function(e){var r=e.getTopStartCorner(),o=e.getBottomEndCorner();(0,b.rangeEach)(r.row,o.row,(function(e){(0,b.rangeEach)(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){var e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(Y.lockEditor(),this._refreshBorders(null),Y.unlockEditor()))},this.batchRender=function(e){this.suspendRender();var t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();var n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();var t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(X.view){var e=X.view.getLastSize(),t=e.width,n=e.height,r=X.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n;!1===X.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a)||((a||X.view._wt.wtOverlays.scrollableElement===X.rootWindow)&&(X.view.setLastSize(o,i),X.render()),X.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.updateData=function(e,t){var n=this;(0,F.replaceData)(e,(function(e){r=e}),(function(e){r=e,X.columnIndexMapper.fitToLength(n.getInitialColumnCount()),X.rowIndexMapper.fitToLength(n.countSourceRows()),W.adjustRowsAndCols()}),{hotInstance:X,dataMap:r,dataSource:B,internalSource:"updateData",source:t,metaManager:J,firstRun:$})},this.loadData=function(e,t){(0,F.replaceData)(e,(function(e){r=e}),(function(){J.clearCellsCache(),X.initIndexMappers(),W.adjustRowsAndCols(),$&&($=[null,"loadData"])}),{hotInstance:X,dataMap:r,dataSource:B,internalSource:"loadData",source:t,metaManager:J,firstRun:$})},this.getInitialColumnCount=function(){var e=ee.columns,t=0;if(Array.isArray(e))t=e.length;else if((0,d.isFunction)(e))if("array"===X.dataType)for(var n=this.countSourceCols(),o=0;o<n;o+=1)e(o)&&(t+=1);else"object"!==X.dataType&&"function"!==X.dataType||(t=r.colToPropCache.length);else if((0,h.isDefined)(ee.dataSchema)){var i=r.getSchema();t=Array.isArray(i)?i.length:(0,y.deepObjectSize)(i)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,o){return(0,h.isUndefined)(e)?r.getAll():r.getRange(X._createCellCoords(e,t),X._createCellCoords(n,o),r.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return r.getCopyableText(X._createCellCoords(e,t),X._createCellCoords(n,o))},this.getCopyableData=function(e,t){return r.getCopyable(e,r.colToProp(t))},this.getSchema=function(){return r.getSchema()},this.updateSettings=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=($?X.loadData:X.updateData).bind(this),a=!1;if((0,h.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,h.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,h.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(t in e)"data"===t||("language"===t?se(e.language):"className"===t?le("className",e.className):"tableClassName"===t&&X.table?(le("tableClassName",e.tableClassName),X.view._wt.wtOverlays.syncOverlayTableClassNames()):P.default.getSingleton().isRegistered(t)||P.default.getSingleton().isDeprecated(t)?((0,d.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,X.addHook(t,e[t])):!o&&(0,y.hasOwnProperty)(e,t)&&(te[t]=e[t]));void 0===e.data&&void 0===ee.data?i(null,"updateSettings"):void 0!==e.data?i(e.data,"updateSettings"):void 0!==e.columns&&(r.createMap(),X.initIndexMappers());var s=X.countCols(),l=ee.columns;if(l&&(0,d.isFunction)(l)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||J.clearCache(),s>0)for(t=0,n=0;t<s;t++){if(l){var u=a?l(t):l[n];u&&J.updateColumnMeta(n,u)}n+=1}(0,h.isDefined)(e.cell)&&(0,y.objectEach)(e.cell,(function(e){X.setCellMetaObject(e.row,e.col,e)})),X.runHooks("afterCellMetaReset");var c=X.rootElement.style.height;""!==c&&(c=parseInt(X.rootElement.style.height,10));var f=e.height;if((0,d.isFunction)(f)&&(f=f()),o){var p=X.rootElement.getAttribute("style");p&&X.rootElement.setAttribute("data-initialstyle",X.rootElement.getAttribute("style"))}if(null===f){var g=X.rootElement.getAttribute("data-initialstyle");g&&(g.indexOf("height")>-1||g.indexOf("overflow")>-1)?X.rootElement.setAttribute("style",g):(X.rootElement.style.height="",X.rootElement.style.overflow="")}else void 0!==f&&(X.rootElement.style.height=isNaN(f)?"".concat(f):"".concat(f,"px"),X.rootElement.style.overflow="hidden");if(void 0!==e.width){var m=e.width;(0,d.isFunction)(m)&&(m=m()),X.rootElement.style.width=isNaN(m)?"".concat(m):"".concat(m,"px")}o||(X.view&&(X.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),X.view._wt.exportSettingsAsClassNames()),X.runHooks("afterUpdateSettings",e)),W.adjustRowsAndCols(),X.view&&!$&&(X.forceFullRender=!0,Y.lockEditor(),X._refreshBorders(null),X.view._wt.wtOverlays.adjustElementsSize(),Y.unlockEditor()),o||!X.view||""!==c&&""!==f&&void 0!==f||c===f||X.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=X.getSelectedLast();if(ee.getValue){if((0,d.isFunction)(ee.getValue))return ee.getValue.call(X);if(e)return X.getData()[e[0][0]][ee.getValue]}else if(e)return X.getDataAtCell(e[0],e[1])},this.getSettings=function(){return ee},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){W.alter(e,t,n,r,o)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r?null:X.view.getCellAtCoords(X._createCellCoords(o,r),n)},this.getCoords=function(e){var t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;var n=t.row,r=t.col,o=n,i=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),X._createCellCoords(o,i)},this.colToProp=function(e){return r.colToProp(e)},this.propToCol=function(e){return r.propToCol(e)},this.toVisualRow=function(e){return G.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return G.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return G.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return G.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return r.get(e,r.colToProp(t))},this.getDataAtRowProp=function(e,t){return r.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,(0,s.default)(r.getRange(X._createCellCoords(0,e),X._createCellCoords(ee.data.length-1,e),r.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=r.getRange(X._createCellCoords(0,r.propToCol(e)),X._createCellCoords(ee.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER);return(t=[]).concat.apply(t,(0,s.default)(n))},this.getSourceData=function(e,t,n,r){return void 0===e?B.getData():B.getByRange(X._createCellCoords(e,t),X._createCellCoords(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?B.getData(!0):B.getByRange(X._createCellCoords(e,t),X._createCellCoords(n,r),!0)},this.getSourceDataAtCol=function(e){return B.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){var o=fe(e,t,n),i=this.hasHook("afterSetSourceDataAtCell"),s=[];i&&(0,E.arrayEach)(o,(function(e){var t=(0,a.default)(e,3),n=t[0],r=t[1],o=t[2];s.push([n,r,B.getAtCell(n,r),o])})),(0,E.arrayEach)(o,(function(e){var t=(0,a.default)(e,3),n=t[0],r=t[1],o=t[2];B.setAtCell(n,r,o)})),i&&this.runHooks("afterSetSourceDataAtCell",s,r),this.render();var l=X.getActiveEditor();l&&(0,h.isDefined)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return B.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return B.getAtCell(e,t)},this.getDataAtRow=function(e){return r.getRange(X._createCellCoords(e,0),X._createCellCoords(e,this.countCols()-1),r.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],l=i[2],u=i[3],c=null,d=null;void 0===l&&(l=a),void 0===u&&(u=s);var h="mixed";return(0,b.rangeEach)(Math.max(Math.min(a,l),0),Math.max(a,l),(function(e){var t=!0;return(0,b.rangeEach)(Math.max(Math.min(s,u),0),Math.max(s,u),(function(n){var r=o.getCellMeta(e,n);return d=r.type,c?t=c===d:c=d,t})),h=t?d:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=J.getCellMetaKeyValue(o,i,n);!1!==X.runHooks("beforeRemoveCellMeta",e,t,n,a)&&(J.removeCellMeta(o,i,n),X.runHooks("afterRemoveCellMeta",e,t,n,a)),a=null},this.spliceCellsMeta=function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length>0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");n>0&&J.removeRow(this.toPhysicalRow(e),n),o.length>0&&(0,E.arrayEach)(o.reverse(),(function(n){J.createRow(t.toPhysicalRow(e)),(0,E.arrayEach)(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))})),X.render()},this.setCellMetaObject=function(e,t,n){var r=this;"object"===(0,o.default)(n)&&(0,y.objectEach)(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,r){if(!1!==X.runHooks("beforeSetCellMeta",e,t,n,r)){var o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),J.setCellMeta(o,i,n,r),X.runHooks("afterSetCellMeta",e,t,n,r)}},this.getCellsMeta=function(){return J.getCellsMeta()},this.getCellMeta=function(e,t){var n=this.toPhysicalRow(e),r=this.toPhysicalColumn(t);return null===n&&(n=e),null===r&&(r=t),J.getCellMeta(n,r,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return J.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===X.dataType||ee.columns)},this.getCellRenderer=function(e,t){var n="number"==typeof e?X.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?(0,R.getRenderer)(n):(0,h.isUndefined)(n)?(0,R.getRenderer)("text"):n},this.getCellEditor=function(e,t){var n="number"==typeof e?X.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?(0,w.getEditor)(n):(0,h.isUndefined)(n)?(0,w.getEditor)("text"):n},this.getCellValidator=function(e,t){var n="number"==typeof e?X.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?(0,S.getValidator)(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var r=new ue;e&&(r.onQueueEmpty=e);for(var o=X.countRows()-1;o>=0;)if(void 0===t||-1!==t.indexOf(o)){for(var i=X.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),X.validateCell(X.getDataAtCell(o,i),X.getCellMeta(o,i),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=ee.rowHeaders,n=e;return void 0!==n&&(n=X.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,b.rangeEach)(X.countRows()-1,(function(e){t.push(X.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,d.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!ee.rowHeaders},this.hasColHeaders=function(){if(void 0!==ee.colHeaders&&null!==ee.colHeaders)return!!ee.colHeaders;for(var e=0,t=X.countCols();e<t;e++)if(X.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=X.runHooks("modifyColHeader",e);if(void 0===n){for(var r=[],o=X.countCols(),i=0;i<o;i++)r.push(X.getColHeader(i));return r}var a=ee.colHeaders,s=function(e){for(var t=[],n=X.countCols(),r=0;r<n;r++)(0,d.isFunction)(ee.columns)&&ee.columns(r)&&t.push(r);return t[e]},l=X.toPhysicalColumn(n),u=s(l);return!1===ee.colHeaders?a=null:ee.columns&&(0,d.isFunction)(ee.columns)&&ee.columns(u)&&ee.columns(u).title?a=ee.columns(u).title:ee.columns&&ee.columns[l]&&ee.columns[l].title?a=ee.columns[l].title:Array.isArray(ee.colHeaders)&&void 0!==ee.colHeaders[l]?a=ee.colHeaders[l]:(0,d.isFunction)(ee.colHeaders)?a=ee.colHeaders(l):ee.colHeaders&&"string"!=typeof ee.colHeaders&&"number"!=typeof ee.colHeaders&&(a=(0,M.spreadsheetColumnLabel)(n)),a=X.runHooks("modifyColumnHeaderValue",a,e,t)},this._getColWidthFromSettings=function(e){var t;e>=0&&(t=X.getCellMeta(0,e).width);if(void 0!==t&&t!==ee.width||(t=ee.colWidths),null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){var t=X._getColWidthFromSettings(e);return void 0===(t=X.runHooks("modifyColWidth",t,e))&&(t=k.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=ee.rowHeights;if(null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=X._getRowHeightFromSettings(e);return t=X.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return B.countRows()},this.countSourceCols=function(){return B.countFirstRowKeys()},this.countRows=function(){return r.getLength()},this.countCols=function(){var e=ee.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return X.view._wt.drawn?X.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return X.view._wt.drawn?X.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return X.view._wt.drawn?X.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return X.view._wt.drawn?X.view._wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,b.rangeEachReverse)(X.countRows()-1,(function(n){if(X.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,b.rangeEachReverse)(X.countCols()-1,(function(n){if(X.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return ee.isEmptyRow.call(X,e)},this.isEmptyCol=function(e){return ee.isEmptyCol.call(X,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,h.isUndefined)(e)&&!(0,h.isUndefined)(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(K=!0);var r=ie.selectCells(e);return r&&n&&X.listen(),K=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return ie.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return ie.selectRows(e,t)},this.deselectCell=function(){ie.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();K=!0,ie.selectAll(t,n),K=!1};var pe=function(e,t){return e.getNearestNotHiddenIndex(t,1,!0)};function ge(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!n,a=!r,s=e,l=t;if(o){var u=Number.isInteger(e),c=Number.isInteger(t),d=u?pe(this.rowIndexMapper,e):void 0,h=c?pe(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=u?X.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,l=c?X.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),p=Number.isInteger(l);return f&&p?X.view.scrollViewport(X._createCellCoords(s,l),i,r,n,a):f&&!1===p?X.view.scrollViewportVertically(s,i,n):!(!p||!1!==f)&&X.view.scrollViewportHorizontally(l,r,a)},this.destroy=function(){if(X._clearTimeouts(),X._clearImmediates(),X.view&&X.view.destroy(),B&&B.destroy(),B=null,this.getShortcutManager().destroy(),J.clearCache(),(0,_.isRootInstance)(X)){var e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,c.empty)(X.rootElement),q.destroy(),Y&&Y.destroy(),X.batchExecution((function(){X.rowIndexMapper.unregisterAll(),X.columnIndexMapper.unregisterAll(),ne.getItems().forEach((function(e){(0,a.default)(e,2)[1].destroy()})),ne.clear(),X.runHooks("afterDestroy")}),!0),P.default.getSingleton().destroy(X),(0,y.objectEach)(X,(function(e,t,n){(0,d.isFunction)(e)?n[t]=ge(t):"guid"!==t&&(n[t]=null)})),X.isDestroyed=!0,r&&r.destroy(),X.rowIndexMapper=null,X.columnIndexMapper=null,r=null,W=null,ie=null,Y=null,X=null},this.getActiveEditor=function(){return Y.getActiveEditor()},this.getPlugin=function(e){var t=(0,O.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:ne.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ne.getId(e)},this.getInstance=function(){return X},this.addHook=function(e,t){P.default.getSingleton().add(e,t,X)},this.hasHook=function(e){return P.default.getSingleton().has(e,X)||P.default.getSingleton().has(e)},this.addHookOnce=function(e,t){P.default.getSingleton().once(e,t,X)},this.removeHook=function(e,t){P.default.getSingleton().remove(e,t,X)},this.runHooks=function(e,t,n,r,o,i,a){return P.default.getSingleton().run(X,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,x.getTranslatedPhrase)(ee.language,e,t)},this.toHTML=function(){return(0,T.instanceToHTML)(G)},this.toTableElement=function(){var e=G.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,T.instanceToHTML)(G)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"==typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){(0,E.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,E.arrayEach)(this.immediates,(function(e){clearImmediate(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Y.destroyEditor(e),X.view.render(),t&&ie.isSelected()&&Y.prepareEditor()},this.isRtl=function(){return"rtl"===X.rootWindow.getComputedStyle(X.rootElement).direction},this.isLtr=function(){return!X.isRtl()},this.getDirectionFactor=function(){return X.isLtr()?1:-1};var me=(0,H.createShortcutManager)({handleEvent:function(e){var t=X.isListening(),n=void 0!==(null==e?void 0:e.key);return t&&n},beforeKeyDown:function(e){return G.runHooks("beforeKeyDown",e)},afterKeyDown:function(e){G.isDestroyed||X.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(function(e){!1===e.ctrlKey&&!1===e.metaKey&&me.releasePressedKeys()})),this.getShortcutManager=function(){return me};var ve=me.addContext("grid"),ye={runOnlyIf:function(){return(0,h.isDefined)(X.getSelected())&&X.countRenderedRows()>0&&X.countRenderedCols()>0},group:"gridDefault"};me.setActiveContextName("grid"),ve.addShortcuts([{keys:[["Control/Meta","A"]],callback:function(){X.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:function(){for(var e=X.getSelectedRange(),t=e[e.length-1].highlight,n=t.row,r=t.col,o=X.getDataAtCell(n,r),i=new Map,a=0;a<e.length;a++)e[a].forAll((function(e,t){e>=0&&t>=0&&(e!==n||t!==r)&&(X.getCellMeta(e,t).readOnly||i.set("".concat(e,"x").concat(t),[e,t,o]))}));X.setDataAtCell(Array.from(i.values()))},runOnlyIf:function(){return X.getSelectedRangeLast().getCellsCount()>1}},{keys:[["ArrowUp"]],callback:function(){ie.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:function(){ie.setRangeStart(X._createCellCoords(X.rowIndexMapper.getNearestNotHiddenIndex(0,1),X.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:function(){ie.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=X.getSelectedRangeLast(),t=e.from,n=e.to,r=X.rowIndexMapper.getNearestNotHiddenIndex(0,1);ie.setRangeStart(t.clone()),ie.setRangeEnd(X._createCellCoords(r,n.col))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByColumnHeader())}},{keys:[["ArrowDown"]],callback:function(){ie.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:function(){ie.setRangeStart(X._createCellCoords(X.rowIndexMapper.getNearestNotHiddenIndex(X.countRows()-1,-1),X.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:function(){ie.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=X.getSelectedRangeLast(),t=e.from,n=e.to,r=X.rowIndexMapper.getNearestNotHiddenIndex(X.countRows()-1,-1);ie.setRangeStart(t.clone()),ie.setRangeEnd(X._createCellCoords(r,n.col))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByColumnHeader())}},{keys:[["ArrowLeft"]],callback:function(){ie.transformStart(0,-1*X.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast().highlight.row,n=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[X.countCols()-1,-1]:[0,1]));ie.setRangeStart(X._createCellCoords(t,n))}},{keys:[["ArrowLeft","Shift"]],callback:function(){ie.transformEnd(0,-1*X.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[X.countCols()-1,-1]:[0,1]));ie.setRangeStart(n.clone()),ie.setRangeEnd(X._createCellCoords(r.row,o))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByRowHeader())}},{keys:[["ArrowRight"]],callback:function(){ie.transformStart(0,X.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast().highlight.row,n=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[0,1]:[X.countCols()-1,-1]));ie.setRangeStart(X._createCellCoords(t,n))}},{keys:[["ArrowRight","Shift"]],callback:function(){ie.transformEnd(0,X.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=X.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=X.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,s.default)(X.isRtl()?[0,1]:[X.countCols()-1,-1]));ie.setRangeStart(n.clone()),ie.setRangeEnd(X._createCellCoords(r.row,o))},runOnlyIf:function(){return!(X.selection.isSelectedByCorner()||X.selection.isSelectedByRowHeader())}},{keys:[["Home"]],captureCtrl:!0,callback:function(){var e=parseInt(X.getSettings().fixedColumnsStart,10),t=X.getSelectedRangeLast().highlight.row,n=X.columnIndexMapper.getNearestNotHiddenIndex(e,1);ie.setRangeStart(X._createCellCoords(t,n))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["Home","Shift"]],callback:function(){ie.setRangeEnd(X._createCellCoords(ie.selectedRange.current().from.row,X.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(X.getSettings().fixedRowsTop,10),t=parseInt(X.getSettings().fixedColumnsStart,10),n=X.rowIndexMapper.getNearestNotHiddenIndex(e,1),r=X.columnIndexMapper.getNearestNotHiddenIndex(t,1);ie.setRangeStart(X._createCellCoords(n,r))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End"]],captureCtrl:!0,callback:function(){ie.setRangeStart(X._createCellCoords(X.getSelectedRangeLast().highlight.row,X.columnIndexMapper.getNearestNotHiddenIndex(X.countCols()-1,-1)))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End","Shift"]],callback:function(){ie.setRangeEnd(X._createCellCoords(ie.selectedRange.current().from.row,X.columnIndexMapper.getNearestNotHiddenIndex(X.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(X.getSettings().fixedRowsBottom,10),t=X.rowIndexMapper.getNearestNotHiddenIndex(X.countRows()-e-1,-1),n=X.columnIndexMapper.getNearestNotHiddenIndex(X.countCols()-1,-1);ie.setRangeStart(X._createCellCoords(t,n))},runOnlyIf:function(){return X.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["PageUp"]],callback:function(){ie.transformStart(-X.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:function(){var e=X.getSelectedRangeLast().to,t=Math.max(e.row-X.countVisibleRows(),0),n=X.rowIndexMapper.getNearestNotHiddenIndex(t,1);if(null!==n){var r=X._createCellCoords(n,e.col),o=e.row-X.view.getFirstFullyVisibleRow(),i=Math.max(r.row-o,0);ie.setRangeEnd(r),X.scrollViewportTo(i)}}},{keys:[["PageDown"]],callback:function(){ie.transformStart(X.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:function(){var e=X.getSelectedRangeLast().to,t=Math.min(e.row+X.countVisibleRows(),X.countRows()-1),n=X.rowIndexMapper.getNearestNotHiddenIndex(t,-1);if(null!==n){var r=X._createCellCoords(n,e.col),o=e.row-X.view.getFirstFullyVisibleRow(),i=Math.min(r.row-o,X.countRows()-1);ie.setRangeEnd(r),X.scrollViewportTo(i)}}},{keys:[["Tab"]],callback:function(e){var t="function"==typeof ee.tabMoves?ee.tabMoves(e):ee.tabMoves;ie.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:function(e){var t="function"==typeof ee.tabMoves?ee.tabMoves(e):ee.tabMoves;ie.transformStart(-t.row,-t.col)}}],ye),(0,C.getPluginsNames)().forEach((function(e){var t=(0,C.getPlugin)(e);ne.addItem(e,new t(G))})),P.default.getSingleton().run(X,"construct")};var o=r(n(14)),i=r(n(64)),a=r(n(21)),s=r(n(32));n(4),n(1),n(52),n(5),n(6),n(31),n(89),n(53),n(72),n(73),n(39),n(20),n(147),n(65),n(51),n(82),n(48),n(22),n(181),n(23),n(67),n(718),n(40);var l,u,c=n(16),d=n(58),h=n(24),f=n(94),p=n(74),g=n(66),m=r(n(182)),v=r(n(49)),y=n(12),E=n(13),T=n(285),C=n(223),R=n(183),w=n(129),S=n(184),O=n(84),b=n(36),A=r(n(738)),N=r(n(787)),M=n(133),I=n(76),_=n(291),k=n(130),P=r(n(59)),x=n(582),L=n(583),D=n(295),F=n(585),U=n(224),H=n(824),V=null,j=new Set},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(71).f,o=n(123),i=n(271),a=n(177),s=n(276),l=n(97),u=n(274),c=n(266),d=n(268),h=n(406),f=n(57),p=n(176).fastKey,g=n(106),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){s(e,h),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),l(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),h=d.prototype,g=v(t),y=function(e,t,n){var r,o,i=g(e),a=E(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},E=function(e,t){var n,r=g(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(h,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=g(this),n=E(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!E(this,e)}}),i(h,n?{get:function(e){var t=E(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(h,"size",{get:function(){return g(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);c(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){"use strict";var r=n(101),o=n(71),i=n(47),a=n(57),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(142),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){var r=n(30);e.exports=r(1..valueOf)},function(e,t,n){var r=n(30),o=n(80),i=n(62),a=n(411),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),d=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(61);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(29),o=n(44).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var r=n(29),o=n(44).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){var r=n(44),o=n(128),i=n(50),a=n(122),s=n(180),l=n(416),u=/MSIE .\./.test(a),c=r.Function,d=function(e){return u?function(t,n){var r=l(arguments.length,1)>2,a=i(t)?t:c(t),u=r?s(arguments,2):void 0;return e(r?function(){o(a,this,u)}:a,n)}:e};e.exports={setTimeout:d(r.setTimeout),setInterval:d(r.setInterval)}},function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},function(e,t,n){var r,o,i,a,s=n(44),l=n(128),u=n(177),c=n(50),d=n(55),h=n(29),f=n(383),p=n(180),g=n(208),m=n(416),v=n(720),y=n(418),E=s.setImmediate,T=s.clearImmediate,C=s.process,R=s.Dispatch,w=s.Function,S=s.MessageChannel,O=s.String,b=0,A={};try{r=s.location}catch(e){}var N=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},M=function(e){return function(){N(e)}},I=function(e){N(e.data)},_=function(e){s.postMessage(O(e),r.protocol+"//"+r.host)};E&&T||(E=function(e){m(arguments.length,1);var t=c(e)?e:w(e),n=p(arguments,1);return A[++b]=function(){l(t,void 0,n)},o(b),b},T=function(e){delete A[e]},y?o=function(e){C.nextTick(M(e))}:R&&R.now?o=function(e){R.now(M(e))}:S&&!v?(a=(i=new S).port2,i.port1.onmessage=I,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(_)?(o=_,s.addEventListener("message",I,!1)):o="onreadystatechange"in g("script")?function(e){f.appendChild(g("script")).onreadystatechange=function(){f.removeChild(this),N(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:E,clear:T}},function(e,t,n){var r=n(105),o=n(44);e.exports="process"==r(o.process)},function(e,t,n){var r=n(25),o=n(29),i=n(81),a=n(267),s=n(389);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){var r=n(63),o=n(55),i=n(114),a=n(412),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},function(e,t,n){var r=n(14).default,o=n(725);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(217),o=n(142),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return(r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i}).apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,l=Object.isFrozen,u=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,d=Object.freeze,h=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,g=p.apply,m=p.construct;g||(g=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),h||(h=function(e){return e}),m||(m=function(e,t){return r(e,o(t))});var v,y=M(Array.prototype.forEach),E=M(Array.prototype.pop),T=M(Array.prototype.push),C=M(String.prototype.toLowerCase),R=M(String.prototype.toString),w=M(String.prototype.match),S=M(String.prototype.replace),O=M(String.prototype.indexOf),b=M(String.prototype.trim),A=M(RegExp.prototype.test),N=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(v,t)});function M(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return g(e,t,r)}}function I(e,t,n){n=n||C,s&&s(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(l(t)||(t[r]=i),o=i)}e[o]=!0}return e}function _(e){var t,n=f(null);for(t in e)g(a,e,[t])&&(n[t]=e[t]);return n}function k(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}e=u(e)}return function(e){return console.warn("fallback value for",e),null}}var P=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=d(["#text"]),V=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),j=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=h(/<%[\w\W]*|[\w\W]*%>/gm),z=h(/\${[\w\W]*}/gm),K=h(/^data-[\-\w.\u00B7-\uFFFF]/),X=h(/^aria-[\-\w]+$/),q=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=h(/^(?:\w+script|data):/i),Q=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=h(/^html$/i),J=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(e){return t(e)};if(r.version="2.4.1",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,u=n.Node,c=n.Element,h=n.NodeFilter,f=n.NamedNodeMap,p=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,g=n.HTMLFormElement,m=n.DOMParser,v=n.trustedTypes,M=c.prototype,te=k(M,"cloneNode"),ne=k(M,"nextSibling"),re=k(M,"childNodes"),oe=k(M,"parentNode");if("function"==typeof l){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=ee(v,i),se=ae?ae.createHTML(""):"",le=a,ue=le.implementation,ce=le.createNodeIterator,de=le.createDocumentFragment,he=le.getElementsByTagName,fe=i.importNode,pe={};try{pe=_(a).documentMode?a.documentMode:{}}catch(e){}var ge={};r.isSupported="function"==typeof oe&&ue&&void 0!==ue.createHTMLDocument&&9!==pe;var me,ve,ye=Y,Ee=G,Te=z,Ce=K,Re=X,we=$,Se=Q,Oe=q,be=null,Ae=I({},[].concat(o(P),o(x),o(L),o(F),o(H))),Ne=null,Me=I({},[].concat(o(V),o(j),o(B),o(W))),Ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,ke=null,Pe=!0,xe=!0,Le=!1,De=!1,Fe=!1,Ue=!1,He=!1,Ve=!1,je=!1,Be=!1,We=!0,Ye=!1,Ge="user-content-",ze=!0,Ke=!1,Xe={},qe=null,$e=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,Ze=I({},["audio","video","img","source","image","track"]),Je=null,et=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,it=!1,at=null,st=I({},[tt,nt,rt],R),lt=["application/xhtml+xml","text/html"],ut="text/html",ct=null,dt=a.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ct&&ct===t||(t&&"object"===e(t)||(t={}),t=_(t),me=me=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===me?R:C,be="ALLOWED_TAGS"in t?I({},t.ALLOWED_TAGS,ve):Ae,Ne="ALLOWED_ATTR"in t?I({},t.ALLOWED_ATTR,ve):Me,at="ALLOWED_NAMESPACES"in t?I({},t.ALLOWED_NAMESPACES,R):st,Je="ADD_URI_SAFE_ATTR"in t?I(_(et),t.ADD_URI_SAFE_ATTR,ve):et,Qe="ADD_DATA_URI_TAGS"in t?I(_(Ze),t.ADD_DATA_URI_TAGS,ve):Ze,qe="FORBID_CONTENTS"in t?I({},t.FORBID_CONTENTS,ve):$e,_e="FORBID_TAGS"in t?I({},t.FORBID_TAGS,ve):{},ke="FORBID_ATTR"in t?I({},t.FORBID_ATTR,ve):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,xe=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Fe=t.WHOLE_DOCUMENT||!1,Ve=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,Ye=t.SANITIZE_NAMED_PROPS||!1,ze=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,ot=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(xe=!1),je&&(Ve=!0),Xe&&(be=I({},o(H)),Ne=[],!0===Xe.html&&(I(be,P),I(Ne,V)),!0===Xe.svg&&(I(be,x),I(Ne,j),I(Ne,W)),!0===Xe.svgFilters&&(I(be,L),I(Ne,j),I(Ne,W)),!0===Xe.mathMl&&(I(be,F),I(Ne,B),I(Ne,W))),t.ADD_TAGS&&(be===Ae&&(be=_(be)),I(be,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Ne===Me&&(Ne=_(Ne)),I(Ne,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&I(Je,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(qe===$e&&(qe=_(qe)),I(qe,t.FORBID_CONTENTS,ve)),ze&&(be["#text"]=!0),Fe&&I(be,["html","head","body"]),be.table&&(I(be,["tbody"]),delete _e.tbody),d&&d(t),ct=t)},pt=I({},["mi","mo","mn","ms","mtext"]),gt=I({},["foreignobject","desc","title","annotation-xml"]),mt=I({},["title","style","font","a","script"]),vt=I({},x);I(vt,L),I(vt,D);var yt=I({},F);I(yt,U);var Et=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(vt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&>[r]:Boolean(yt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!gt[r])&&!(t.namespaceURI===tt&&!pt[r])&&!yt[n]&&(mt[n]||!vt[n]):!("application/xhtml+xml"!==me||!at[e.namespaceURI]))},Tt=function(e){T(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Ct=function(e,t){try{T(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(Ve||je)try{Tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Rt=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var r=w(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&ot===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(ot===rt)try{t=(new m).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),ot===rt?he.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:i},wt=function(e){return ce.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},St=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,n){ge[e]&&y(ge[e],(function(e){e.call(r,t,n,ct)}))},At=function(e){var t;if(bt("beforeSanitizeElements",e,null),St(e))return Tt(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return Tt(e),!0;var n=ve(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&(!Ot(e.content)||!Ot(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return Tt(e),!0;if("select"===n&&A(/<template/i,e.innerHTML))return Tt(e),!0;if(!be[n]||_e[n]){if(!_e[n]&&Mt(n)){if(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(ze&&!qe[n]){var o=oe(e)||e.parentNode,i=re(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(te(i[a],!0),ne(e))}return Tt(e),!0}return e instanceof c&&!Et(e)?(Tt(e),!0):"noscript"!==n&&"noembed"!==n||!A(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=S(t,ye," "),t=S(t,Ee," "),t=S(t,Te," "),e.textContent!==t&&(T(r.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(Tt(e),!0)},Nt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in a||n in dt))return!1;if(xe&&!ke[t]&&A(Ce,t));else if(Pe&&A(Re,t));else if(!Ne[t]||ke[t]){if(!(Mt(e)&&(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&A(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(Je[t]);else if(A(Oe,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Qe[e])if(Le&&!A(we,S(n,Se,"")));else if(n)return!1;return!0},Mt=function(e){return e.indexOf("-")>0},It=function(t){var n,o,i,a;bt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(a=s.length;a--;){var u=n=s[a],c=u.name,d=u.namespaceURI;if(o="value"===c?n.value:b(n.value),i=ve(c),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(Ct(c,t),l.keepAttr))if(A(/\/>/i,o))Ct(c,t);else{De&&(o=S(o,ye," "),o=S(o,Ee," "),o=S(o,Te," "));var h=ve(t.nodeName);if(Nt(h,i,o)){if(!Ye||"id"!==i&&"name"!==i||(Ct(c,t),o=Ge+o),ae&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(h,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,c,o):t.setAttribute(c,o),E(r.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},_t=function e(t){var n,r=wt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),At(n)||(n.content instanceof s&&e(n.content),It(n));bt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,a,l,c,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((it=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ot(t)){if("function"!=typeof t.toString)throw N("toString is not a function");if("string"!=typeof(t=t.toString()))throw N("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Ot(t))return n.toStaticHTML(t.outerHTML)}return t}if(Ue||ft(h),r.removed=[],"string"==typeof t&&(Ke=!1),Ke){if(t.nodeName){var f=ve(t.nodeName);if(!be[f]||_e[f])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(a=(o=Rt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Ve&&!De&&!Fe&&-1===t.indexOf("<"))return ae&&Be?ae.createHTML(t):t;if(!(o=Rt(t)))return Ve?null:Be?se:""}o&&He&&Tt(o.firstChild);for(var p=wt(Ke?t:o);l=p.nextNode();)3===l.nodeType&&l===c||At(l)||(l.content instanceof s&&_t(l.content),It(l),c=l);if(c=null,Ke)return t;if(Ve){if(je)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return Ne.shadowroot&&(d=fe.call(i,d,!0)),d}var g=Fe?o.outerHTML:o.innerHTML;return Fe&&be["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&A(Z,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),De&&(g=S(g,ye," "),g=S(g,Ee," "),g=S(g,Te," ")),ae&&Be?ae.createHTML(g):g},r.setConfig=function(e){ft(e),Ue=!0},r.clearConfig=function(){ct=null,Ue=!1},r.isValidAttribute=function(e,t,n){ct||ft({});var r=ve(e),o=ve(t);return Nt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],T(ge[e],t))},r.removeHook=function(e){if(ge[e])return E(ge[e])},r.removeHooks=function(e){ge[e]&&(ge[e]=[])},r.removeAllHooks=function(){ge={}},r}()}(),window.DOMPurify=n(423)},function(e,t,n){"use strict";var r=n(25),o=n(729).start;r({target:"String",proto:!0,forced:n(730)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(115),o=n(62),i=n(80),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",s=r(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(63),o=n(219),i=n(61),a=n(97),s=n(125),l=n(62),u=n(80),c=n(124),d=n(281),h=n(220);o("match",(function(e,t,n){return[function(t){var n=u(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return h(r,o);var u=r.unicode;r.lastIndex=0;for(var c,f=[],p=0;null!==(c=h(r,o));){var g=l(c[0]);f[p]=g,""===g&&(r.lastIndex=d(o,s(r.lastIndex),u)),p++}return 0===p?null:f}]}))},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(286),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:l,calculationType:u,stretchingColumnWidthFn:h}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=c,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=s.get(this),i=o.calculationType,l=o.overrideFn,u=o.scrollOffset,c=o.totalColumns,d=o.viewportWidth,h=0;h<c;h++){e=this._getColumnWidth(h),t<=u&&i!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=h);var f=u>0?d+1:d;if(t>=u&&t+(i===a.FULLY_VISIBLE_TYPE?e:0)<=u+f&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=h),this.endColumn=h),r.push(t),t+=e,i!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=h),t>=u+d){n=!1;break}}if(this.endColumn===c-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var p=r[this.endColumn]+e-r[this.startColumn-1];if((p<=d||i!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),p>d)break}i===a.RENDER_TYPE&&null!==this.startColumn&&l&&l(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),c<this.endColumn&&(this.endColumn=c-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=s.get(this),r=n.totalColumns,o=0,i=0;i<r;i++){var a=this._getColumnWidth(i),l=n.stretchingColumnWidthFn(void 0,i);"number"==typeof l?t-=l:o+=a}var u=t-o;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(r-1),d=u+c;this.stretchLastWidth=d>=0?d:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,r=s.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===s.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=s.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}],[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(286),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:l,calculationType:u,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=0,r=!0,o=[],i=s.get(this),l=i.calculationType,u=i.overrideFn,c=i.rowHeightFn,d=i.scrollOffset,h=i.totalRows,f=i.viewportHeight,p=i.horizontalScrollbarHeight||0,g=0;g<h;g++)if(t=c(g),isNaN(t)&&(t=e.DEFAULT_HEIGHT),n<=d&&l!==a.FULLY_VISIBLE_TYPE&&(this.startRow=g),n>=d&&n+(l===a.FULLY_VISIBLE_TYPE?t:0)<=d+f-p&&(null===this.startRow&&(this.startRow=g),this.endRow=g),o.push(n),n+=t,l!==a.FULLY_VISIBLE_TYPE&&(this.endRow=g),n>=d+f-p){r=!1;break}if(this.endRow===h-1&&r)for(this.startRow=this.endRow;this.startRow>0;){var m=o[this.endRow]+t-o[this.startRow-1];if((m<=f-p||l!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),m>=f-p)break}l===a.RENDER_TYPE&&null!==this.startRow&&u&&u(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),h<this.endRow&&(this.endRow=h-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(41),n(22),n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=r(n(78)),l=r(n(79)),u=r(n(287));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,o.default)(this,e),(0,a.default)(this,"highlight",null),(0,a.default)(this,"from",null),(0,a.default)(this,"to",null),c(this,d,{writable:!0,value:!1}),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone(),(0,l.default)(this,d,i)}return(0,i.default)(e,[{key:"setHighlight",value:function(e){return this.highlight=e.clone().normalize(),this}},{key:"setFrom",value:function(e){return this.from=e.clone(),this}},{key:"setTo",value:function(e){return this.to=e.clone(),this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){if(this.from.row<0&&this.to.row<0)return 0;var e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getWidth",value:function(){if(this.from.col<0&&this.to.col<0)return 0;var e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getCellsCount",value:function(){return this.getWidth()*this.getHeight()}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getOuterTopRightCorner().col>=e.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=e.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=e.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=e.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getOuterBottomRightCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=e.getOuterBottomRightCorner().row||this.getOuterTopRightCorner().row<=e.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=e.getOuterTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=this.getDirection(),o=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),l=Math.max(n.row,i.row),u=Math.max(n.col,i.col),c=this._createCellCoords(a,s),d=this._createCellCoords(l,u);return this.from=c,this.to=d,this.setDirection(r),this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];this.from=o[0],this.to=o[1]}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getTopEndCorner():this.getTopStartCorner()}},{key:"getBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getBottomStartCorner():this.getBottomEndCorner()}},{key:"getTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getTopStartCorner():this.getTopEndCorner()}},{key:"getBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getBottomEndCorner():this.getBottomStartCorner()}},{key:"getOuterTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}},{key:"getOuterBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}},{key:"getOuterTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}},{key:"getOuterBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getOuterTopLeftCorner().isEqual(this._createCellCoords(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(this._createCellCoords(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(this._createCellCoords(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(this._createCellCoords(t.to.row,t.to.col))))||(e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof u.default))return!1;if(t){var n=t.from,r=t.to;if(t.includes(e)){if(this.getOuterTopStartCorner().isEqual(this._createCellCoords(n.row,n.col)))return this.getOuterBottomEndCorner();if(this.getOuterTopEndCorner().isEqual(this._createCellCoords(n.row,r.col)))return this.getOuterBottomStartCorner();if(this.getOuterBottomStartCorner().isEqual(this._createCellCoords(r.row,n.col)))return this.getOuterTopEndCorner();if(this.getOuterBottomEndCorner().isEqual(this._createCellCoords(r.row,r.col)))return this.getOuterTopStartCorner()}}return e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===l&&u.push("right"),n===a&&u.push("bottom"),r===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(this._createCellCoords(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(this._createCellCoords(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){if(!1===e(r,o))return}}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to,(0,s.default)(this,d))}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}},{key:"_createCellCoords",value:function(e,t){return new u.default(e,t,(0,s.default)(this,d))}}]),e}();t.default=h},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6),n(67),n(31);var a=n(16),s=n(58),l=n(107),u=n(94),c=n(24),d=new WeakMap,h=function(){function e(t,n,r,i,a,s){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;(0,o.default)(this,e),this.wtSettings=r,this.domBindings=n,this.wtTable=a,this.selections=s,this.parent=l,this.eventManager=i,this.facadeGetter=t,d.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return(0,i.default)(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.wtTable.holder,"contextmenu",(function(t){return e.onContextMenu(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseout",(function(t){return e.onMouseOut(t)}));var t=function(){e.eventManager.addEventListener(e.wtTable.holder,"touchstart",(function(t){return e.onTouchStart(t)})),e.eventManager.addEventListener(e.wtTable.holder,"touchend",(function(t){return e.onTouchEnd(t)})),e.momentumScrolling||(e.momentumScrolling={}),e.eventManager.addEventListener(e.wtTable.holder,"scroll",(function(){clearTimeout(e.momentumScrolling._timeout),e.momentumScrolling.ongoing||e.wtSettings.getSetting("onBeforeTouchScroll"),e.momentumScrolling.ongoing=!0,e.momentumScrolling._timeout=setTimeout((function(){e.touchApplied||(e.momentumScrolling.ongoing=!1,e.wtSettings.getSetting("onAfterMomentumScroll"))}),200)}))};(0,u.isMobileBrowser)()?t():((0,l.isTouchSupported)()&&t(),e.eventManager.addEventListener(e.wtTable.holder,"mouseup",(function(t){return e.onMouseUp(t)})),e.eventManager.addEventListener(e.wtTable.holder,"mousedown",(function(t){return e.onMouseDown(t)})))}},{key:"selectedCellWasTouched",value:function(e){var t=d.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var r=[n.row,t.selectedCellBeforeTouchEnd.from.row],o=r[0],i=r[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return o===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.wtTable.TABLE,r=(0,a.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.wtTable.getCoords(r),t.TD=r):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.selections.getCell().cellRange.highlight,t.TD=this.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"area")&&this.selections.createOrGetArea().cellRange&&(t.coords=this.selections.createOrGetArea().cellRange.to,t.TD=this.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=d.get(this),n=this.domBindings.rootDocument.activeElement,r=(0,s.partial)(a.getParent,e.target),o=e.target;if(o!==n&&r(0)!==n&&r(1)!==n){var i=this.parentCell(o);(0,a.hasClass)(o,"corner")?this.wtSettings.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.wtSettings.has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,i.coords,i.TD),(0===e.button||this.touchApplied)&&i.TD&&(t.dblClickOrigin[0]=i.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout((function(){t.dblClickOrigin[0]=null}),1e3))}}},{key:"onContextMenu",value:function(e){if(this.wtSettings.has("onCellContextMenu")){var t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}},{key:"onMouseOver",value:function(e){if(this.wtSettings.has("onCellMouseOver")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=this.parent||this;n&&n!==r.lastMouseOver&&(0,a.isChildOf)(n,t)&&(r.lastMouseOver=n,this.callListener("onCellMouseOver",e,this.wtTable.getCoords(n),n))}}},{key:"onMouseOut",value:function(e){if(this.wtSettings.has("onCellMouseOut")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=(0,a.closestDown)(e.relatedTarget,["TD","TH"],t);n&&n!==r&&(0,a.isChildOf)(n,t)&&this.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n)}}},{key:"onMouseUp",value:function(e){var t=d.get(this),n=this.parentCell(e.target);n.TD&&this.wtSettings.has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),(0===e.button||this.touchApplied)&&(n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout((function(){t.dblClickOrigin[1]=null}),500)))}},{key:"onTouchStart",value:function(e){d.get(this).selectedCellBeforeTouchEnd=this.selections.getCell().cellRange,this.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t,n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,o=(0,c.isDefined)(r)&&r.row>=0&&r.col>=0;if(e.cancelable&&o&&this.wtSettings.getSetting("isDataViewInstance")){(0,u.isIOS)()&&((0,u.isChromeWebKit)()||(0,u.isFirefoxWebKit)())&&this.selectedCellWasTouched(n)&&!["A","BUTTON","INPUT"].includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}},{key:"callListener",value:function(e,t,n,r){var o=this.wtSettings.getSettingPure(e);o&&o(t,n,r,this.facadeGetter())}},{key:"destroy",value:function(){var e=d.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Renderer=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(750));t.RowHeadersRenderer=a.default;var s=r(n(755));t.ColumnHeadersRenderer=s.default;var l=r(n(756));t.ColGroupRenderer=l.default;var u=r(n(757));t.RowsRenderer=u.default;var c=r(n(758));t.CellsRenderer=c.default;var d=r(n(759));t.TableRenderer=d.default;var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,i=t.COLGROUP,h=t.TBODY,f=t.rowUtils,p=t.columnUtils,g=t.cellRenderer;(0,o.default)(this,e),this.renderer=new d.default(n,{cellRenderer:g}),this.renderer.setRenderers({rowHeaders:new a.default,columnHeaders:new s.default(r),colGroup:new l.default(i),rows:new u.default(h),cells:new c.default}),this.renderer.setAxisUtils(f,p)}return(0,i.default)(e,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),e}();t.Renderer=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(570),s=r(n(751)),l=function(){function e(t,n,r){(0,o.default)(this,e),this.rootNode=t,this.nodesPool=n,this.sizeSet=new s.default,this.childNodeType=r.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}return(0,i.default)(e,[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var r=e.firstElementChild;r;){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(a.WORKING_SPACE_TOP))break;r=r.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize().nextSize,o=this.getRenderedChildCount();o<r;){var i=this.nodesPool();!n||n&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)?e.appendChild(i):e.insertBefore(i,e.firstChild),o+=1}for(var s=n&&t.isPlaceOn(a.WORKING_SPACE_TOP);o>r;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_TOP=t.WORKING_SPACE_BOTTOM=t.WORKING_SPACE_ALL=void 0;t.WORKING_SPACE_ALL=0;t.WORKING_SPACE_TOP=1;t.WORKING_SPACE_BOTTOM=2},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getLastRenderedRow:function(){var e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow:function(){var e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getRenderedRowsCount:function(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount:function(){return this.dataAccessObject.countRowsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){var r=n(25),o=n(392),i=n(29),a=n(56),s=n(176).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller,s=t.cellCoordsFactory;a.get(e.type)({coords:n,selection:o,controller:i,cellCoordsFactory:s,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})},t.mouseDown=o,t.mouseOver=i,n(4),n(40),n(1),n(5),n(6);var r=n(75);function o(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=e.cellCoordsFactory,l=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&l)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(u||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):u&&o.row<0&&!a.column?i.setRangeEnd(s(l.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,l.to.col)):(!u&&!c&&o.col<0||u&&o.col<0)&&!a.row?i.selectRows(Math.max(l.from.row,0),o.row,o.col):(!u&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(l.from.col,0),o.col,o.row);else{var d=!i.inInSelection(o),h=n||r&&d;o.row<0&&o.col>=0&&!a.column?h&&i.selectColumns(o.col,o.col,o.row):o.col<0&&o.row>=0&&!a.row?h&&i.selectRows(o.row,o.row,o.col):o.col>=0&&o.row>=0&&!a.cell?h&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0)}}function i(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller,i=e.cellCoordsFactory;if(t){var a=r.isSelectedByRowHeader(),s=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),u=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(u-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,l-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){var r=n(47);t.f=r},function(e,t,n){var r=n(781),o=n(55),i=n(576),a=n(71).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(140);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";n(23),n(43),t.__esModule=!0;var r={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!d.has(e))throw new Error('The provided map type ("'.concat(e,'") does not exist.'));return new(d.get(e))(t)},n(4),n(40),n(1),n(5),n(6);var o=n(789);t.HidingMap=o.HidingMap;var i=n(227);t.IndexMap=i.IndexMap;var a=n(791);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(292);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var l=n(792);t.TrimmingMap=l.TrimmingMap;var u=n(793);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(228);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",a.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",s.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},function(e,t,n){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,r.arrayMap)(e,(function(e){return e-t.filter((function(t){return t<e})).length}))},t.getIncreasedIndexes=function(e,t){var n=t[0],o=t.length;return(0,r.arrayMap)(e,(function(e){return e>=n?e+o:e}))},n(35),n(1);var r=n(13)},function(e,t,n){"use strict";t.__esModule=!0,t.alterUtilsFactory=void 0,n(4),n(40),n(1),n(5),n(6);var r=n(580);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(228),i=n(293),a=new Map([["indexesSequence",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}]]);t.alterUtilsFactory=function(e){if(!1===a.has(e))throw new Error("Alter strategy with ID '".concat(e,"' does not exist."));return a.get(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.dictionaryKeys=t.DEFAULT_LANGUAGE_CODE=void 0,t.getDefaultLanguageDictionary=function(){return d.default},t.getLanguageDictionary=C,t.getLanguagesDictionaries=function(){return E()},t.getTranslatedPhrase=function(e,t,n){var r=C(e);if(null===r)return null;var o=r[t];if((0,s.isUndefined)(o))return null;var i=function(e,t){var n=e;return(0,a.arrayEach)((0,c.getPhraseFormatters)(),(function(r){n=r(e,t)})),n}(o,n);if(Array.isArray(i))return i[0];return i},t.getValidLanguageCode=function(e){var t=(0,l.normalizeLanguageCode)(e);R(t)||(t=p,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=R,t.registerLanguageDictionary=T;var i=n(12),a=n(13),s=n(24),l=n(583),u=r(n(102)),c=n(799),d=r(n(801)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}t.dictionaryKeys=h;var p=d.default.languageCode;t.DEFAULT_LANGUAGE_CODE=p;var g=(0,u.default)("languagesDictionaries"),m=g.register,v=g.getItem,y=g.hasItem,E=g.getValues;function T(e,t){var n=e,r=t;return(0,i.isObject)(e)&&(n=(r=e).languageCode),function(e,t){e!==p&&(0,l.extendNotExistingKeys)(t,v(p))}(n,r),m(n,(0,i.deepClone)(r)),(0,i.deepClone)(r)}function C(e){return R(e)?(0,i.deepClone)(v(e)):null}function R(e){return y(e)}T(d.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createCellHeadersRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=n,i=r;if(e>t){var a=[i,o];o=a[0],i=a[1]}return"".concat(o,"-").concat(i)},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(function(t,n){(0,a.isUndefined)(e[n])&&(e[n]=t)})),e},t.normalizeLanguageCode=function(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase());return e},t.warnUserAboutLanguageRegistration=function(e){(0,a.isDefined)(e)&&(0,l.error)((0,u.toSingleLine)(i||(i=(0,o.default)(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'])),e))};var o=r(n(64));n(20),n(51);var i,a=n(24),s=n(12),l=n(74),u=n(66)},function(e,t,n){"use strict";n(43),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(147),n(4),n(40),n(1),n(5),n(6),n(31),n(41),n(20),n(296),n(54),n(186);var o=r(n(32)),i=r(n(26)),a=r(n(2)),s=r(n(3)),l=n(802),u=n(103),c=n(13);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){function t(e){(0,a.default)(this,t),this.options=e,this.layerLevel=0,this.cell=(0,l.createHighlight)(u.CELL_TYPE,e),this.fill=(0,l.createHighlight)(u.FILL_TYPE,e),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(t,[{key:"isEnabledFor",value:function(e,t){var n=e;e===u.CELL_TYPE&&(n="current");var r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}},{key:"useLayerLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=(0,l.createHighlight)(u.AREA_TYPE,h({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return(0,o.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,l.createHighlight)(u.HEADER_TYPE,h({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return(0,o.default)(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,l.createHighlight)(u.ACTIVE_HEADER_TYPE,h({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return(0,o.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,o.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,l.createHighlight)(u.CUSTOM_SELECTION_TYPE,h(h({},this.options),e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,c.arrayEach)(this.areas.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.headers.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:e,value:function(){return[this.cell,this.fill].concat((0,o.default)(this.areas.values()),(0,o.default)(this.headers.values()),(0,o.default)(this.activeHeaders.values()),(0,o.default)(this.customSelections))[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(586));t.DataMap=o.default;var i=r(n(816));t.MetaManager=i.default;var a=r(n(588));t.metaSchemaFactory=a.default;var s=n(821);t.replaceData=s.replaceData;var l=n(822);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var u=n(823);t.ExtendMetaPropertiesMod=u.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6),n(72),n(73),n(53),n(89),n(39),n(23),n(20),n(35),n(22);var o=r(n(32)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(587),u=n(133),c=n(12),d=n(13),h=n(36),f=n(24),p=function(){function e(t,n,r){(0,a.default)(this,e),this.instance=t,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.duckSchema=this.createDuckSchema(),this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap()}return(0,s.default)(e,[{key:"createMap",value:function(){var e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");var t,n=this.tableMeta.columns;if(this.colToPropCache=[],this.propToColCache=new Map,n){var r=0,o=0,i=!1;if("function"==typeof n){var a=(0,c.deepObjectSize)(e);r=a>0?a:this.countFirstRowKeys(),i=!0}else{var s=this.tableMeta.maxCols;r=Math.min(s,n.length)}for(t=0;t<r;t++){var l=i?n(t):n[t];if((0,c.isObject)(l)){if(void 0!==l.data){var u=i?o:t;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,u.countFirstRowKeys)(this.dataSource)}},{key:"recursiveDuckColumns",value:function(e,t,n){var r,o=this,a=t,s=n;return void 0===a&&(a=0,s=""),"object"!==(0,i.default)(e)||Array.isArray(e)||(0,c.objectEach)(e,(function(e,t){null===e?(r=s+t,o.colToPropCache.push(r),o.propToColCache.set(r,a),a+=1):a=o.recursiveDuckColumns(e,a,"".concat(t,"."))})),a}},{key:"colToProp",value:function(e){if(!1===Number.isInteger(e))return e;var t=this.instance.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,f.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t=this.propToColCache.get(e);if((0,f.isDefined)(t))return this.instance.toVisualColumn(t);var n=this.instance.toVisualColumn(e);return null===n?e:n}},{key:"getSchema",value:function(){var e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createDuckSchema",value:function(){return this.dataSource&&this.dataSource[0]?(0,c.duckSchema)(this.dataSource[0]):{}}},{key:"refreshDuckSchema",value:function(){this.duckSchema=this.createDuckSchema()}},{key:"createRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.source,i=r.mode,a=void 0===i?"above":i,s=this.instance.countSourceRows(),l=s,u=0,d=e;("number"!=typeof d||d>=s)&&(d=s),d<this.instance.countRows()&&(l=this.instance.toPhysicalRow(d));var f=this.instance.runHooks("beforeCreateRow",d,n,o);if(!1===f||null===l)return{delta:0};for(var p=this.tableMeta.maxRows,g=this.getSchema().length,m=[],v=function(){var e=null;"array"===t.instance.dataType?t.tableMeta.dataSchema?e=(0,c.deepClone)(t.getSchema()):(e=[],(0,h.rangeEach)(g-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.tableMeta.dataSchema(d+u):(e={},(0,c.deepExtend)(e,t.getSchema())),m.push(e),u+=1};u<n&&s+u<p;)v();this.instance.rowIndexMapper.insertIndexes(d,u),"below"===a&&(l=Math.min(l+1,s)),this.spliceData(l,0,m);var y=this.instance.toVisualRow(l);return this.instance.countSourceRows()===m.length&&this.instance.columnIndexMapper.initToLength(this.instance.getInitialColumnCount()),u>0&&(null==e?this.metaManager.createRow(null,u):"auto"!==o&&this.metaManager.createRow(l,n)),this.instance.runHooks("afterCreateRow",y,u,o),this.instance.forceFullRender=!0,{delta:u,startPhysicalIndex:l}}},{key:"createCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=n.mode,i=void 0===o?"start":o;if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var a=this.dataSource,s=this.tableMeta.maxCols,l=this.instance.countSourceCols(),u=e;("number"!=typeof u||u>=l)&&(u=l);var c=this.instance.runHooks("beforeCreateCol",u,t,r);if(!1===c)return{delta:0};var d=l;u<this.instance.countCols()&&(d=this.instance.toPhysicalColumn(u));var h=this.instance.countSourceRows(),f=this.instance.countCols(),p=0,g=d;"end"===i&&(g=Math.min(g+1,l));for(var m=g;p<t&&f<s;){if("number"!=typeof u||u>=f)if(h>0)for(var v=0;v<h;v+=1)void 0===a[v]&&(a[v]=[]),a[v].push(null);else a.push([null]);else for(var y=0;y<h;y++)a[y].splice(g,0,null);p+=1,g+=1,f+=1}this.instance.columnIndexMapper.insertIndexes(u,p),p>0&&(null==e?this.metaManager.createColumn(null,p):"auto"!==r&&this.metaManager.createColumn(m,t));var E=this.instance.toVisualColumn(m);return this.instance.runHooks("afterCreateCol",E,p,r),this.instance.forceFullRender=!0,this.refreshDuckSchema(),{delta:p,startPhysicalIndex:m}}},{key:"removeRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=Number.isInteger(e)?e:-n,i=this.visualRowsToPhysical(o,n),a=this.instance.countSourceRows();o=(a+o)%a;var s=this.instance.runHooks("beforeRemoveRow",o,i.length,i,r);if(!1===s)return!1;var l=i.length;if(this.filterData(o,l,i),o<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(i);var u=(0,f.isDefined)(this.tableMeta.columns)||(0,f.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===u&&this.instance.columnIndexMapper.setIndexesSequence([])}var c=i.slice(0).sort((function(e,t){return t-e}));return c.forEach((function(e){t.metaManager.removeRow(e,1)})),this.instance.runHooks("afterRemoveRow",o,l,i,r),this.instance.forceFullRender=!0,!0}},{key:"removeCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e})),a=this.instance.runHooks("beforeRemoveCol",r,t,o,n);if(!1===a)return!1;for(var s=!0,l=i.length,u=this.dataSource,c=0;c<l;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)u[d].splice(o[0],t),0===d&&this.metaManager.removeColumn(o[0],t);else for(var f=0,p=this.instance.countSourceRows();f<p;f++)for(var g=0;g<l;g++)u[f].splice(i[g],1),0===f&&this.metaManager.removeColumn(i[g],1);return r<this.instance.countCols()&&(this.instance.columnIndexMapper.removeIndexes(o),0===this.instance.columnIndexMapper.getNotTrimmedIndexesLength()&&this.instance.rowIndexMapper.setIndexesSequence([])),this.instance.runHooks("afterRemoveCol",r,t,o,n),this.instance.forceFullRender=!0,this.refreshDuckSchema(),!0}},{key:"spliceCol",value:function(e,t,n){for(var r=this.instance.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return(0,d.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),o}},{key:"spliceRow",value:function(e,t,n){for(var r=this.instance.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),o}},{key:"spliceData",value:function(e,t,n){var r=this;if(!1!==this.instance.runHooks("beforeDataSplice",e,t,n)){var i=[].concat((0,o.default)(this.dataSource.slice(0,e)),(0,o.default)(n),(0,o.default)(this.dataSource.slice(e)));this.dataSource.length=0,i.forEach((function(e){return r.dataSource.push(e)}))}}},{key:"filterData",value:function(e,t,n){var r=this.instance.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),r=this.dataSource[n],o=this.instance.runHooks("modifyRowData",n),i=null;if((r=isNaN(o)?o:r)&&r.hasOwnProperty&&(0,c.hasOwnProperty)(r,t))i=r[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=r;if(!s)return null;for(var l=0,u=a.length;l<u;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var d=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),d,"get"),d.isTouched()&&(i=d.value)}return i}},{key:"getCopyable",value:function(e,t){return this.instance.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}},{key:"set",value:function(e,t,n){var r=this.instance.toPhysicalRow(e),o=n,i=this.dataSource[r],a=this.instance.runHooks("modifyRowData",r);if(i=isNaN(a)?a:i,this.instance.hasHook("modifyData")){var s=(0,c.createObjectPropListener)(o);this.instance.runHooks("modifyData",r,this.propToCol(t),s,"set"),s.isTouched()&&(o=s.value)}if(i&&i.hasOwnProperty&&(0,c.hasOwnProperty)(i,t))i[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){var l,u=t.split("."),d=i,h=0;for(h=0,l=u.length-1;h<l;h++)void 0===d[u[h]]&&(d[u[h]]={}),d=d[u[h]];d[u[h]]=o}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],o):i[t]=o}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,r=this.instance.countSourceRows(),o=[],i=(r+e)%r,a=t;i<r&&a;)n=this.instance.toPhysicalRow(i),o.push(n),a-=1,i+=1;return o}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),r=[],o=(n+e)%n,i=t;o<n&&i;){var a=this.instance.toPhysicalColumn(o);r.push(a),i-=1,o+=1}return r}},{key:"clear",value:function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")}},{key:"getLength",value:function(){var e,t=this.tableMeta.maxRows;e=t<0||0===t?0:t||1/0;var n=this.instance.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,e)}},{key:"getAll",value:function(){var t={row:0,col:0},n={row:Math.max(this.instance.countRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return t.row-n.row!=0||this.instance.countSourceRows()?this.getRange(t,n,e.DESTINATION_RENDERER):[]}},{key:"countCachedColumns",value:function(){return this.colToPropCache.length}},{key:"getRange",value:function(t,n,r){var o,i,a,s=[],l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(0===l||0===u)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(l-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(u-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=d;o++){a=[];var f=o>=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=h&&null!==f;i++)a.push(c.call(this,o,this.colToProp(i)));null!==f&&s.push(a)}return s}},{key:"getText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.instance=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}],[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),e}();t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=t.parse=void 0;var r=n(815);t.parse=r.parse,t.stringify=r.stringify},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(14)),i=n(24),a=n(12);t.default=function(){return{_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(r=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(r))return!1;return!0},isEmptyRow:function(e){var t,n,r,s;for(t=0,n=this.countCols();t<n;t++)if(r=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(r))return"object"===(0,o.default)(r)&&(s=this.getCellMeta(e,t),(0,a.isObjectEqual)(this.getSchema()[s.prop],r));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:void 0,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(52),n(5),n(6),n(20),n(39),n(53),n(296),n(54),n(186),n(22);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(13),l=n(187),u=function(e){function t(e){(0,i.default)(this,t),this.valueFactory=e,this.data=[],this.index=[],this.holes=new Set}return(0,a.default)(t,[{key:"obtain",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t,n=this._getStorageIndexByKey(e);if(n>=0)void 0===(t=this.data[n])&&(t=this.valueFactory(e),this.data[n]=t);else if(t=this.valueFactory(e),this.holes.size>0){var r=this.holes.values().next().value;this.holes.delete(r),this.data[r]=t,this.index[e]=r}else this.data.push(t),this.index[e]=this.data.length-1;return t}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=[],r=this.data.length,i=0;i<t;i++)n.push(r+i),this.data.push(void 0);var a=(0,l.isNullish)(e)?this.index.length:e;this.index=[].concat((0,o.default)(this.index.slice(0,a)),n,(0,o.default)(this.index.slice(a)))}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,l.isNullish)(e)?this.index.length-t:e,t),r=0;r<n.length;r++){var o=n[r];"number"==typeof o&&this.holes.add(o)}}},{key:"size",value:function(){return this.data.length-this.holes.size}},{key:"values",value:function(){var e=this;return(0,s.arrayFilter)(this.data,(function(t,n){return!e.holes.has(n)}))[Symbol.iterator]()}},{key:"entries",value:function(){for(var e=[],t=0;t<this.data.length;t++){var n=this._getKeyByStorageIndex(t);-1!==n&&e.push([n,this.data[t]])}var r=0;return{next:function(){if(r<e.length){var t=e[r];return r+=1,{value:t,done:!1}}return{done:!0}}}}},{key:"clear",value:function(){this.data=[],this.index=[],this.holes.clear()}},{key:"_getStorageIndexByKey",value:function(e){return this.index.length>e?this.index[e]:-1}},{key:"_getKeyByStorageIndex",value:function(e){return this.index.indexOf(e)}},{key:e,value:function(){return this.entries()}}]),t}(Symbol.iterator);t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(4),n(40),n(1),n(5),n(6),n(83),n(89),n(65);var r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=function(e){return e.map((function(e){var t=e.toLowerCase();return r.has(t)?r.get(t):t})).sort().join("+")};t.getKeysList=function(e){return e.split("+")};t.normalizeEventKey=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(829);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.SHORTCUTS_GROUP_EDITOR=t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var o=r(n(21)),i=r(n(10)),a=r(n(11)),s=r(n(8)),l=r(n(2)),u=r(n(3));n(574),n(149),n(85),n(31);var c=n(24),d=n(12),h=n(182),f=r(n(831)),p=n(16);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}t.EDITOR_TYPE="base";var m=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});t.EDITOR_STATE=m;t.SHORTCUTS_GROUP_EDITOR="baseEditor";var v=function(){function e(t){(0,l.default)(this,e),this.hot=t,this.instance=t,this.state=m.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}return(0,u.default)(e,[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=m.VIRGIN}},{key:"extend",value:function(){return function(e){(0,i.default)(n,e);var t=g(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,u.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var l=this.hot.getSelectedLast();n=Math.max(Math.min(l[0],l[2]),0),r=Math.max(Math.min(l[1],l[3]),0),i=Math.max(l[0],l[2]),a=Math.max(l[1],l[3])}else{var u=[this.row,this.col,null,null];n=u[0],r=u[1],i=u[2],a=u[3]}var d=this.hot.runHooks("modifyGetCellCoords",n,r);if(Array.isArray(d)){var h=(0,o.default)(d,2);n=h[0],r=h[1]}var f=this.hot.getShortcutManager().getContext("editor"),p={runOnlyIf:function(){return(0,c.isDefined)(s.hot.getSelected())},group:"baseEditor"};this.isInFullEditMode()&&f.addShortcuts([{keys:[["ArrowUp"]],callback:function(){s.hot.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){s.hot.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){s.hot.selection.transformStart(0,-1*s.hot.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){s.hot.selection.transformStart(0,s.hot.getDirectionFactor())}}],p),this.hot.populateFromArray(n,r,e,i,a,"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===m.VIRGIN){var n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col);if(n.view.scrollViewport(n._createCellCoords(r,o)),this.state=m.EDITING,this.isInFullEditMode()){var i="string"==typeof e?e:(0,c.stringify)(this.originalValue);this.setValue(i)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,o=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.hot.view.render()}}if(!this.isWaiting()){var a=this.hot.getShortcutManager().getContext("editor");if(a.removeShortcutsByGroup("baseEditor"),a.removeShortcutsByGroup(h.SHORTCUTS_GROUP_NAVIGATION),this.state!==m.VIRGIN){if(this.state===m.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var s=this.getValue();r=this.cellProperties.trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=m.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=m.FINISHED,o.discardEditor(e)})):(this.state=m.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}}},{key:"cancelChanges",value:function(){this.state=m.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===m.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=m.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=m.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===m.WAITING}},{key:"getEditedCellRect",value:function(){var e,t=this.getEditedCell();if(t){var n=this.hot.view._wt,r=n.wtOverlays,o=n.wtViewport,i=this.hot.rootWindow,a=(0,p.offset)(t),s=(0,p.outerWidth)(t),l=(0,p.offset)(this.hot.rootElement),u=(0,p.outerWidth)(this.hot.rootElement),c=r.topOverlay.holder,d=r.inlineStartOverlay.holder,h=c!==i?c.scrollTop:0,f=d!==i?d.scrollLeft:0,g=i.innerWidth-l.left-u,m=(null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt).wtTable,v=m.name,y=["master","inline_start"].includes(v)?h:0,E=["master","top","bottom"].includes(v)?f:0,T=a.top===l.top?0:1,C=a.top-l.top-T-y,R=0;R=this.hot.isRtl()?i.innerWidth-a.left-s-g-1+E:a.left-l.left-1-E,["top","top_inline_start_corner"].includes(v)&&(C+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(v)&&(R+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));var w=this.hot.hasColHeaders(),S=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),O=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),b=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(w&&S<=0||S===b)&&(C+=1),O<=0&&(R+=1);var A=o.rowsRenderCalculator.startPosition,N=o.columnsRenderCalculator.startPosition,M=Math.abs(r.inlineStartOverlay.getScrollPosition()),I=r.topOverlay.getScrollPosition(),_=(0,p.getScrollbarWidth)(this.hot.rootDocument),k=t.offsetTop+A-I,P=0;if(this.hot.isRtl()){var x=t.offsetLeft;P=x>=0?m.getWidth()-t.offsetLeft:Math.abs(x),P+=N-M-s}else P=t.offsetLeft+N-M;var L=(0,p.getComputedStyle)(this.TD,this.hot.rootWindow),D=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",F=parseInt(L[D],10)>0?0:1,U=parseInt(L.borderTopWidth,10)>0?0:1,H=(0,p.outerWidth)(t)+F,V=(0,p.outerHeight)(t)+U,j=(0,p.hasVerticalScrollbar)(c)?_:0,B=(0,p.hasHorizontalScrollbar)(d)?_:0,W=this.hot.view.maximumVisibleElementWidth(P)-j+F;return{top:C,start:R,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(k)-B+U,23),width:H,maxWidth:W}}}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),e}();t.BaseEditor=v,(0,d.mixin)(v,f.default)},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var r=n(841);t.EDITOR_TYPE=r.EDITOR_TYPE,t.CheckboxEditor=r.CheckboxEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0;var r=n(845);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DropdownEditor=r.DropdownEditor},function(e,t,n){"use strict";t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var r=n(846);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var r=n(847);t.EDITOR_TYPE=r.EDITOR_TYPE,t.PasswordEditor=r.PasswordEditor},function(e,t,n){"use strict";t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var r=n(850);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TimeEditor=r.TimeEditor},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=t.RENDERER_TYPE=void 0;var r=n(853);t.RENDERER_TYPE=r.RENDERER_TYPE,t.htmlRenderer=r.htmlRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.checkboxRenderer=t.RENDERER_TYPE=void 0;var r=n(855);t.RENDERER_TYPE=r.RENDERER_TYPE,t.checkboxRenderer=r.checkboxRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.numericRenderer=t.RENDERER_TYPE=void 0;var r=n(857);t.RENDERER_TYPE=r.RENDERER_TYPE,t.numericRenderer=r.numericRenderer},function(e,t,n){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=!1,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){!function(e){"use strict";var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",l=1e14,u=14,c=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,f=1e9;function p(e){var t=0|e;return 0<e||e===t?t:t-1}function g(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=u-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function m(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return u<l^n?1:-1;for(s=(l=o.length)<(u=i.length)?l:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return l==u?0:u<l^n?1:-1}function v(e,t,n,r){if(e<t||n<e||e!==(e<0?o(e):i(e)))throw Error(a+(r||"Argument")+("number"==typeof e?e<t||n<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return p(e.e/u)==t&&e.c[t]%2!=0}function E(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function T(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var n,C,R,w,S,O,b,A,N,M,I=W.prototype={constructor:W,toString:null,valueOf:null},_=new W(1),k=20,P=4,x=-7,L=21,D=-1e7,F=1e7,U=!1,H=1,V=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz";function W(e,t){var n,o,a,l,d,h,f,p,g=this;if(!(g instanceof W))return new W(e,t);if(null==t){if(e instanceof W)return g.s=e.s,g.e=e.e,void(g.c=(e=e.c)?e.slice():e);if((h="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,d=e;10<=d;d/=10,l++);return g.e=l,void(g.c=[e])}p=String(e)}else{if(p=String(e),!r.test(p))return R(g,p,h);g.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}-1<(l=p.indexOf("."))&&(p=p.replace(".","")),0<(d=p.search(/e/i))?(l<0&&(l=d),l+=+p.slice(d+1),p=p.substring(0,d)):l<0&&(l=p.length)}else{if(v(t,2,B.length,"Base"),p=String(e),10==t)return K(g=new W(e instanceof W?e:p),k+g.e+1,P);if(h="number"==typeof e){if(0*e!=0)return R(g,p,h,t);if(g.s=1/e<0?(p=p.slice(1),-1):1,W.DEBUG&&15<p.replace(/^0\.0*|\./,"").length)throw Error(s+e);h=!1}else g.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=B.slice(0,t),l=d=0,f=p.length;d<f;d++)if(n.indexOf(o=p.charAt(d))<0){if("."==o){if(l<d){l=f;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,d=-1,l=0;continue}return R(g,String(e),h,t)}-1<(l=(p=C(p,t,10,g.s)).indexOf("."))?p=p.replace(".",""):l=p.length}for(d=0;48===p.charCodeAt(d);d++);for(f=p.length;48===p.charCodeAt(--f););if(p=p.slice(d,++f)){if(f-=d,h&&W.DEBUG&&15<f&&(c<e||e!==i(e)))throw Error(s+g.s*e);if(F<(l=l-d-1))g.c=g.e=null;else if(l<D)g.c=[g.e=0];else{if(g.e=l,g.c=[],d=(l+1)%u,l<0&&(d+=u),d<f){for(d&&g.c.push(+p.slice(0,d)),f-=u;d<f;)g.c.push(+p.slice(d,d+=u));p=p.slice(d),d=u-p.length}else d-=f;for(;d--;p+="0");g.c.push(+p)}}else g.c=[g.e=0]}function Y(e,t,n,r){var o,i,a,s,l;if(null==n?n=P:v(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)l=g(e.c),l=1==r||2==r&&(a<=x||L<=a)?E(l,a):T(l,a,"0");else if(i=(e=K(new W(e),t,n)).e,s=(l=g(e.c)).length,1==r||2==r&&(t<=i||i<=x)){for(;s<t;l+="0",s++);l=E(l,i)}else if(t-=a,l=T(l,i,"0"),s<i+1){if(0<--t)for(l+=".";t--;l+="0");}else if(0<(t+=i-s))for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function G(e,t){for(var n,r=1,o=new W(e[0]);r<e.length;r++){if(!(n=new W(e[r])).s){o=n;break}t.call(o,n)&&(o=n)}return o}function z(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];10<=o;o/=10,r++);return(n=r+n*u-1)>F?e.c=e.e=null:e.c=n<D?[e.e=0]:(e.e=n,t),e}function K(e,t,n,r){var a,s,c,h,f,p,g,m=e.c,v=d;if(m){e:{for(a=1,h=m[0];10<=h;h/=10,a++);if((s=t-a)<0)s+=u,c=t,g=(f=m[p=0])/v[a-c-1]%10|0;else if((p=o((s+1)/u))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));f=g=0,c=(s%=u)-u+(a=1)}else{for(f=h=m[p],a=1;10<=h;h/=10,a++);g=(c=(s%=u)-u+a)<0?0:f/v[a-c-1]%10|0}if(r=r||t<0||null!=m[p+1]||(c<0?f:f%v[a-c-1]),r=n<4?(g||r)&&(0==n||n==(e.s<0?3:2)):5<g||5==g&&(4==n||r||6==n&&(0<s?0<c?f/v[a-c]:0:m[p-1])%10&1||n==(e.s<0?8:7)),t<1||!m[0])return m.length=0,r?(t-=e.e+1,m[0]=v[(u-t%u)%u],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=p,h=1,p--):(m.length=p+1,h=v[u-s],m[p]=0<c?i(f/v[a-c]%v[c])*h:0),r)for(;;){if(0==p){for(s=1,c=m[0];10<=c;c/=10,s++);for(c=m[0]+=h,h=1;10<=c;c/=10,h++);s!=h&&(e.e++,m[0]==l&&(m[0]=1));break}if(m[p]+=h,m[p]!=l)break;m[p--]=0,h=1}for(s=m.length;0===m[--s];m.pop());}e.e>F?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}function X(e){var t,n=e.e;return null===n?e.toString():(t=g(e.c),t=n<=x||L<=n?E(t,n):T(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(a+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(n=e[t],0,f,t),k=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(n=e[t],0,8,t),P=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-f,0,t),v(n[1],0,f,t),x=n[0],L=n[1]):(v(n,-f,f,t),x=-(L=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)v(n[0],-f,-1,t),v(n[1],1,f,t),D=n[0],F=n[1];else{if(v(n,-f,f,t),!n)throw Error(a+t+" cannot be zero: "+n);D=-(F=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(a+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!n,Error(a+"crypto unavailable");U=n}else U=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(n=e[t],0,9,t),H=n),e.hasOwnProperty(t="POW_PRECISION")&&(v(n=e[t],0,f,t),V=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(a+t+" not an object: "+n);j=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(a+t+" invalid: "+n);B=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:P,EXPONENTIAL_AT:[x,L],RANGE:[D,F],CRYPTO:U,MODULO_MODE:H,POW_PRECISION:V,FORMAT:j,ALPHABET:B}},W.isBigNumber=function(e){return e instanceof W||e&&!0===e._isBigNumber||!1},W.maximum=W.max=function(){return G(arguments,I.lt)},W.minimum=W.min=function(){return G(arguments,I.gt)},W.random=(w=9007199254740992,S=Math.random()*w&2097151?function(){return i(Math.random()*w)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,s,l,c=0,h=[],p=new W(_);if(null==e?e=k:v(e,0,f),s=o(e/u),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)9e15<=(l=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(l%1e14),c+=2);c=s/2}else{if(!crypto.randomBytes)throw U=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(s*=7);c<s;)9e15<=(l=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])?crypto.randomBytes(7).copy(t,c):(h.push(l%1e14),c+=7);c=s/7}if(!U)for(;c<s;)(l=S())<9e15&&(h[c++]=l%1e14);for(s=h[--c],e%=u,s&&e&&(l=d[u-e],h[c]=i(s/l)*l);0===h[c];h.pop(),c--);if(c<0)h=[r=0];else{for(r=-1;0===h[0];h.splice(0,1),r-=u);for(c=1,l=h[0];10<=l;l/=10,c++);c<u&&(r-=u-c)}return p.e=r,p.c=h,p}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},C=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var l,u,c,d,h,f,p,m,v=r.indexOf("."),y=k,E=P;for(0<=v&&(d=V,V=0,r=r.replace(".",""),f=(m=new W(o)).pow(r.length-v),V=d,m.c=t(T(g(f.c),f.e,"0"),10,i,e),m.e=m.c.length),c=d=(p=t(r,o,i,s?(l=B,e):(l=e,B))).length;0==p[--d];p.pop());if(!p[0])return l.charAt(0);if(v<0?--c:(f.c=p,f.e=c,f.s=a,p=(f=n(f,m,y,E,i)).c,h=f.r,c=f.e),v=p[u=c+y+1],d=i/2,h=h||u<0||null!=p[u+1],h=E<4?(null!=v||h)&&(0==E||E==(f.s<0?3:2)):d<v||v==d&&(4==E||h||6==E&&1&p[u-1]||E==(f.s<0?8:7)),u<1||!p[0])r=h?T(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(p.length=u,h)for(--i;++p[--u]>i;)p[u]=0,u||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=l.charAt(p[v++]));r=T(r,c,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,l=e.length,u=t%h,c=t/h|0;for(e=e.slice();l--;)s=((o=u*(i=e[l]%h)+(r=c*i+(a=e[l]/h|0)*u)%h*h+s)/n|0)+(r/h|0)+c*a,e[l]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=r<n?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&1<e.length;e.splice(0,1));}return function(r,o,a,s,c){var d,h,f,g,m,v,y,E,T,C,R,w,S,O,b,A,N,M=r.s==o.s?1:-1,I=r.c,_=o.c;if(!(I&&I[0]&&_&&_[0]))return new W(r.s&&o.s&&(I?!_||I[0]!=_[0]:_)?I&&0==I[0]||!_?0*M:M/0:NaN);for(T=(E=new W(M)).c=[],M=a+(h=r.e-o.e)+1,c||(c=l,h=p(r.e/u)-p(o.e/u),M=M/u|0),f=0;_[f]==(I[f]||0);f++);if(_[f]>(I[f]||0)&&h--,M<0)T.push(1),g=!0;else{for(O=I.length,A=_.length,M+=2,1<(m=i(c/(_[f=0]+1)))&&(_=e(_,m,c),I=e(I,m,c),A=_.length,O=I.length),S=A,R=(C=I.slice(0,A)).length;R<A;C[R++]=0);N=_.slice(),N=[0].concat(N),b=_[0],_[1]>=c/2&&b++;do{if(m=0,(d=t(_,C,A,R))<0){if(w=C[0],A!=R&&(w=w*c+(C[1]||0)),1<(m=i(w/b)))for(c<=m&&(m=c-1),y=(v=e(_,m,c)).length,R=C.length;1==t(v,C,y,R);)m--,n(v,A<y?N:_,y,c),y=v.length,d=1;else 0==m&&(d=m=1),y=(v=_.slice()).length;if(y<R&&(v=[0].concat(v)),n(C,v,R,c),R=C.length,-1==d)for(;t(_,C,A,R)<1;)m++,n(C,A<R?N:_,R,c),R=C.length}else 0===d&&(m++,C=[0]);T[f++]=m,C[0]?C[R++]=I[S]||0:(C=[I[S]],R=1)}while((S++<O||null!=C[0])&&M--);g=null!=C[0],T[0]||T.splice(0,1)}if(c==l){for(f=1,M=T[0];10<=M;M/=10,f++);K(E,a+(E.e=f+h*u-1)+1,s,g)}else E.e=h,E.r=+g;return E}}(),O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,A=/^\.([^.]+)$/,N=/^-?(Infinity|NaN)$/,M=/^\s*\+(?=[\w.])|^\s+|\s+$/g,R=function(e,t,n,r){var o,i=n?t:t.replace(M,"");if(N.test(i))e.s=isNaN(i)?null:i<0?-1:1,e.c=e.e=null;else{if(!n&&(i=i.replace(O,(function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t})),r&&(o=r,i=i.replace(b,"$1").replace(A,"0.$1")),t!=i))return new W(i,o);if(W.DEBUG)throw Error(a+"Not a"+(r?" base "+r:"")+" number: "+t);e.c=e.e=e.s=null}},I.absoluteValue=I.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},I.comparedTo=function(e,t){return m(this,new W(e,t))},I.decimalPlaces=I.dp=function(e,t){var n,r,o;if(null!=e)return v(e,0,f),null==t?t=P:v(t,0,8),K(new W(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((o=n.length-1)-p(this.e/u))*u,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},I.dividedBy=I.div=function(e,t){return n(this,new W(e,t),k,P)},I.dividedToIntegerBy=I.idiv=function(e,t){return n(this,new W(e,t),0,1)},I.exponentiatedBy=I.pow=function(e,t){var n,r,s,l,c,d,h,f,p=this;if((e=new W(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+X(e));if(null!=t&&(t=new W(t)),c=14<e.e,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return f=new W(Math.pow(+X(p),c?2-y(e):+X(e))),t?f.mod(t):f;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(9<e.e&&(0<p.e||p.e<-1||(0==p.e?1<p.c[0]||c&&24e7<=p.c[1]:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return l=p.s<0&&y(e)?-0:0,-1<p.e&&(l=1/l),new W(d?1/l:l);V&&(l=o(V/u+2))}for(h=c?(n=new W(.5),d&&(e.s=1),y(e)):(s=Math.abs(+X(e)))%2,f=new W(_);;){if(h){if(!(f=f.times(p)).c)break;l?f.c.length>l&&(f.c.length=l):r&&(f=f.mod(t))}if(s){if(0===(s=i(s/2)))break;h=s%2}else if(K(e=e.times(n),e.e+1,1),14<e.e)h=y(e);else{if(0==(s=+X(e)))break;h=s%2}p=p.times(p),l?p.c&&p.c.length>l&&(p.c.length=l):r&&(p=p.mod(t))}return r?f:(d&&(f=_.div(f)),t?f.mod(t):l?K(f,V,P,void 0):f)},I.integerValue=function(e){var t=new W(this);return null==e?e=P:v(e,0,8),K(t,t.e+1,e)},I.isEqualTo=I.eq=function(e,t){return 0===m(this,new W(e,t))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(e,t){return 0<m(this,new W(e,t))},I.isGreaterThanOrEqualTo=I.gte=function(e,t){return 1===(t=m(this,new W(e,t)))||0===t},I.isInteger=function(){return!!this.c&&p(this.e/u)>this.c.length-2},I.isLessThan=I.lt=function(e,t){return m(this,new W(e,t))<0},I.isLessThanOrEqualTo=I.lte=function(e,t){return-1===(t=m(this,new W(e,t)))||0===t},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return 0<this.s},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/u,d=e.e/u,h=a.c,f=e.c;if(!c||!d){if(!h||!f)return h?(e.s=-t,e):new W(f?a:NaN);if(!h[0]||!f[0])return f[0]?(e.s=-t,e):new W(h[0]?a:3==P?-0:0)}if(c=p(c),d=p(d),h=h.slice(),s=c-d){for((o=(i=s<0)?(s=-s,h):(d=c,f)).reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=h.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(h[t]!=f[t]){i=h[t]<f[t];break}if(i&&(o=h,h=f,f=o,e.s=-e.s),0<(t=(r=f.length)-(n=h.length)))for(;t--;h[n++]=0);for(t=l-1;s<r;){if(h[--r]<f[r]){for(n=r;n&&!h[--n];h[n]=t);--h[n],h[r]+=l}h[r]-=f[r]}for(;0==h[0];h.splice(0,1),--d);return h[0]?z(e,h,d):(e.s=3==P?-1:1,e.c=[e.e=0],e)},I.modulo=I.mod=function(e,t){var r,o,i=this;return e=new W(e,t),!i.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||i.c&&!i.c[0]?new W(i):(9==H?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,H),(e=i.minus(r.times(e))).c[0]||1!=H||(e.s=i.s),e)},I.multipliedBy=I.times=function(e,t){var n,r,o,i,a,s,c,d,f,g,m,v,y,E,T,C=this,R=C.c,w=(e=new W(e,t)).c;if(!(R&&w&&R[0]&&w[0]))return!C.s||!e.s||R&&!R[0]&&!w||w&&!w[0]&&!R?e.c=e.e=e.s=null:(e.s*=C.s,R&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=p(C.e/u)+p(e.e/u),e.s*=C.s,(c=R.length)<(g=w.length)&&(y=R,R=w,w=y,o=c,c=g,g=o),o=c+g,y=[];o--;y.push(0));for(E=l,T=h,o=g;0<=--o;){for(n=0,m=w[o]%T,v=w[o]/T|0,i=o+(a=c);o<i;)n=((d=m*(d=R[--a]%T)+(s=v*d+(f=R[a]/T|0)*m)%T*T+y[i]+n)/E|0)+(s/T|0)+v*f,y[i--]=d%E;y[i]=n}return n?++r:y.splice(0,1),z(e,y,r)},I.negated=function(){var e=new W(this);return e.s=-e.s||null,e},I.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new W(e,t)).s,!o||!t)return new W(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/u,a=e.e/u,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new W(o/0);if(!s[0]||!c[0])return c[0]?e:new W(s[0]?r:0*o)}if(i=p(i),a=p(a),s=s.slice(),o=i-a){for((n=0<o?(a=i,c):(o=-o,s)).reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/l|0,s[t]=l===s[t]?0:s[t]%l;return o&&(s=[o].concat(s),++a),z(e,s,a)},I.precision=I.sd=function(e,t){var n,r,o;if(null!=e&&e!==!!e)return v(e,1,f),null==t?t=P:v(t,0,8),K(new W(this),e,t);if(!(n=this.c))return null;if(r=(o=n.length-1)*u+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];10<=o;o/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},I.shiftedBy=function(e){return v(e,-c,c),this.times("1e"+e)},I.squareRoot=I.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,l=a.s,u=a.e,c=k+4,d=new W("0.5");if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(l=Math.sqrt(+X(a)))||l==1/0?(((t=g(s)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=p((u+1)/2)-(u<0||u%2),new W(t=l==1/0?"1e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):new W(l+"")).c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(i=r,r=d.times(i.plus(n(a,i,c,1))),g(i.c).slice(0,l)===(t=g(r.c)).slice(0,l)){if(r.e<u&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(r,r.e+k+2,1),e=!r.times(r).eq(a));break}if(!o&&(K(i,i.e+k+2,0),i.times(i).eq(a))){r=i;break}c+=4,l+=4,o=1}return K(r,r.e+k+1,P,e)},I.toExponential=function(e,t){return null!=e&&(v(e,0,f),e++),Y(this,e,t,1)},I.toFixed=function(e,t){return null!=e&&(v(e,0,f),e=e+this.e+1),Y(this,e,t)},I.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=j;else if("object"!=typeof n)throw Error(a+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var o,i=r.split("."),s=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",c=i[0],d=i[1],h=this.s<0,f=h?c.slice(1):c,p=f.length;if(l&&(o=s,s=l,p-=l=o),0<s&&0<p){for(o=p%s||s,c=f.substr(0,o);o<p;o+=s)c+=u+f.substr(o,s);0<l&&(c+=u+f.slice(o)),h&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(e){var t,r,o,i,s,l,c,h,f,p,m,v,y=this,E=y.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(_)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+X(c));if(!E)return new W(y);for(t=new W(_),f=r=new W(_),o=h=new W(_),v=g(E),s=t.e=v.length-y.e-1,t.c[0]=d[(l=s%u)<0?u+l:l],e=!e||0<c.comparedTo(t)?0<s?t:f:c,l=F,F=1/0,c=new W(v),h.c[0]=0;p=n(c,t,0,1),1!=(i=r.plus(p.times(o))).comparedTo(e);)r=o,o=i,f=h.plus(p.times(i=f)),h=i,t=c.minus(p.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),h=h.plus(i.times(f)),r=r.plus(i.times(o)),h.s=f.s=y.s,m=n(f,o,s*=2,P).minus(y).abs().comparedTo(n(h,r,s,P).minus(y).abs())<1?[f,o]:[h,r],F=l,m},I.toNumber=function(){return+X(this)},I.toPrecision=function(e,t){return null!=e&&v(e,1,f),Y(this,e,t,2)},I.toString=function(e){var t,n=this,r=n.s,o=n.e;return null===o?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=null==e?o<=x||L<=o?E(g(n.c),o):T(g(n.c),o,"0"):10===e?T(g((n=K(new W(n),k+o+1,P)).c),n.e,"0"):(v(e,2,B.length,"Base"),C(T(g(n.c),o,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},I.valueOf=I.toJSON=function(){return X(this)},I._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(I[Symbol.toStringTag]="BigNumber",I[Symbol.for("nodejs.util.inspect.custom")]=I.valueOf),null!=t&&W.set(t),W}()).default=n.BigNumber=n,void 0!==t&&t.exports?t.exports=n:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=n)}(this)},{}],2:[function(e,t,n){"use strict";t.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=e("./globalState"),i=e("./validating"),a=e("./parsing"),s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l={general:{scale:1024,suffixes:s,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:s,marker:"d"}},u={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;if("string"==typeof t&&(t=a.parseFormat(t)),!i.validateFormat(t))return"ERROR: invalid format";var r=t.prefix||"",s=t.postfix||"",c=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){var r=n.currentCurrency(),o=Object.assign({},u,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,l=t.currencyPosition||r.position,c=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===l&&(i=a+c+a);var d=p({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===l&&(d=e._value<0&&"sign"===o.negative?"-".concat(a).concat(c).concat(d.slice(1)):c+a+d),l&&"postfix"!==l||(d=d+(a=s?"":a)+c),d}(e,t=g(t,o.currentCurrencyDefaultFormat()),o);case"percent":return function(e,t,n,r){var o=t.prefixSymbol,i=p({instance:r(100*e._value),providedFormat:t,state:n}),a=Object.assign({},u,t);return o?"%".concat(a.spaceSeparated?" ":"").concat(i):"".concat(i).concat(a.spaceSeparated?" ":"","%")}(e,t=g(t,o.currentPercentageDefaultFormat()),o,n);case"byte":return t=g(t,o.currentByteDefaultFormat()),T=e,R=o,w=n,S=(C=t).base||"binary",O=l[S],A=(b=d(T._value,O.suffixes,O.scale)).value,N=b.suffix,M=p({instance:w(A),providedFormat:C,state:R,defaults:R.currentByteDefaultFormat()}),I=R.currentAbbreviations(),"".concat(M).concat(I.spaced?" ":"").concat(N);case"time":return t=g(t,o.currentTimeDefaultFormat()),m=e,v=Math.floor(m._value/60/60),y=Math.floor((m._value-60*v*60)/60),E=Math.round(m._value-60*v*60-60*y),"".concat(v,":").concat(y<10?"0":"").concat(y,":").concat(E<10?"0":"").concat(E);case"ordinal":return r=e,i=t=g(t,o.currentOrdinalDefaultFormat()),s=(a=o).currentOrdinal(),c=Object.assign({},u,i),h=p({instance:r,providedFormat:i,state:a}),f=s(r._value),"".concat(h).concat(c.spaceSeparated?" ":"").concat(f);case"number":default:return p({instance:e,providedFormat:t,numbro:n})}var r,i,a,s,c,h,f,m,v,y,E,T,C,R,w,S,O,b,A,N,M,I}(e,t,n);return(c=r+c)+s}function d(e,t,n){var r=t[0],o=Math.abs(e);if(n<=o){for(var i=1;i<t.length;++i){var a=Math.pow(n,i),s=Math.pow(n,i+1);if(a<=o&&o<s){r=t[i],e/=a;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function h(e){for(var t="",n=0;n<e;n++)t+="0";return t}function f(e,t){return-1!==e.toString().indexOf("e")?function(e,t){var n=e.toString(),o=r(n.split("e"),2),i=o[0],a=o[1],s=r(i.split("."),2),l=s[0],u=s[1],c=void 0===u?"":u;if(0<+a)n=l+c+h(a-c.length);else{var d=".";d=+l<0?"-0".concat(d):"0".concat(d);var f=(h(-a-1)+Math.abs(l)+c).substr(0,t);f.length<t&&(f+=h(t-f.length)),n=d+f}return 0<+a&&0<t&&(n+=".".concat(h(t))),n}(e,t):(Math.round(+"".concat(e,"e+").concat(t))/Math.pow(10,t)).toFixed(t)}function p(e){var t=e.instance,n=e.providedFormat,i=e.state,a=void 0===i?o:i,s=e.decimalSeparator,l=e.defaults,c=void 0===l?a.currentDefaults():l,d=t._value;if(0===d&&a.hasZeroFormat())return a.getZeroFormat();if(!isFinite(d))return d.toString();var h,p,g,m,v,y,E,T,C=Object.assign({},u,c,n),R=C.totalLength,w=R?0:C.characteristic,S=C.optionalCharacteristic,O=C.forceAverage,b=!!R||!!O||C.average,A=R?-1:b&&void 0===n.mantissa?0:C.mantissa,N=!R&&(void 0===n.optionalMantissa?-1===A:C.optionalMantissa),M=C.trimMantissa,I=C.thousandSeparated,_=C.spaceSeparated,k=C.negative,P=C.forceSign,x=C.exponential,L="";if(b){var D=function(e){var t=e.value,n=e.forceAverage,r=e.abbreviations,o=e.spaceSeparated,i=void 0!==o&&o,a=e.totalLength,s=void 0===a?0:a,l="",u=Math.abs(t),c=-1;if(u>=Math.pow(10,12)&&!n||"trillion"===n?(l=r.trillion,t/=Math.pow(10,12)):u<Math.pow(10,12)&&u>=Math.pow(10,9)&&!n||"billion"===n?(l=r.billion,t/=Math.pow(10,9)):u<Math.pow(10,9)&&u>=Math.pow(10,6)&&!n||"million"===n?(l=r.million,t/=Math.pow(10,6)):(u<Math.pow(10,6)&&u>=Math.pow(10,3)&&!n||"thousand"===n)&&(l=r.thousand,t/=Math.pow(10,3)),l&&(l=(i?" ":"")+l),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:d,forceAverage:O,abbreviations:a.currentAbbreviations(),spaceSeparated:_,totalLength:R});d=D.value,L+=D.abbreviation,R&&(A=D.mantissaPrecision)}if(x){var F=(p=(h={value:d,characteristicPrecision:w}).value,m=void 0===(g=h.characteristicPrecision)?0:g,y=(v=r(p.toExponential().split("e"),2))[0],E=v[1],T=+y,m&&1<m&&(T*=Math.pow(10,m-1),E=0<=(E=+E-(m-1))?"+".concat(E):E),{value:T,abbreviation:"e".concat(E)});d=F.value,L=F.abbreviation+L}var U,H,V,j=function(e,t,n,o,i){if(-1===o)return e;var a=f(t,o),s=r(a.toString().split("."),2),l=s[0],u=s[1],c=void 0===u?"":u;if(c.match(/^0+$/)&&(n||i))return l;var d=c.match(/0+$/);return i&&d?"".concat(l,".").concat(c.toString().slice(0,d.index)):a.toString()}(d.toString(),d,N,A,M);return j=function(e,t,n,r,o){var i=r.currentDelimiters(),a=i.thousands;o=o||i.decimal;var s=i.thousandsSize||3,l=e.toString(),u=l.split(".")[0],c=l.split(".")[1];return n&&(t<0&&(u=u.slice(1)),function(e,t){for(var n=[],r=0,o=e;0<o;o--)r===t&&(n.unshift(o),r=0),r++;return n}(u.length,s).forEach((function(e,t){u=u.slice(0,e+t)+a+u.slice(e+t)})),t<0&&(u="-".concat(u))),c?u+o+c:u}(j=function(e,t,n,o){var i=e,a=r(i.toString().split("."),2),s=a[0],l=a[1];if(s.match(/^-?0$/)&&n)return l?"".concat(s.replace("0",""),".").concat(l):s.replace("0","");if(s.length<o)for(var u=o-s.length,c=0;c<u;c++)i="0".concat(i);return i.toString()}(j,0,S,w),d,I,a,s),(b||x)&&(j+=L),(P||d<0)&&(U=j,V=k,j=0===(H=d)?U:0==+U?U.replace("-",""):0<H?"+".concat(U):"sign"===V?U:"(".concat(U.replace("-",""),")")),j}function g(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}t.exports=function(e){return{format:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.general;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.binary;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.decimal;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},formatOrDefault:g}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,n){"use strict";var r=e("./en-US"),o=e("./validating"),i=e("./parsing"),a={},s=void 0,l={},u=null,c={};function d(e){s=e}function h(){return l[s]}a.languages=function(){return Object.assign({},l)},a.currentLanguage=function(){return s},a.currentCurrency=function(){return h().currency},a.currentAbbreviations=function(){return h().abbreviations},a.currentDelimiters=function(){return h().delimiters},a.currentOrdinal=function(){return h().ordinal},a.currentDefaults=function(){return Object.assign({},h().defaults,c)},a.currentOrdinalDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().ordinalFormat)},a.currentByteDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().byteFormat)},a.currentPercentageDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().percentageFormat)},a.currentCurrencyDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().currencyFormat)},a.currentTimeDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().timeFormat)},a.setDefaults=function(e){e=i.parseFormat(e),o.validateFormat(e)&&(c=e)},a.getZeroFormat=function(){return u},a.setZeroFormat=function(e){return u="string"==typeof e?e:null},a.hasZeroFormat=function(){return null!==u},a.languageData=function(e){if(e){if(l[e])return l[e];throw new Error('Unknown tag "'.concat(e,'"'))}return h()},a.registerLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!o.validateLanguage(e))throw new Error("Invalid language data");l[e.languageTag]=e,t&&d(e.languageTag)},a.setLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.languageTag;if(!l[e]){var n=e.split("-")[0],o=Object.keys(l).find((function(e){return e.split("-")[0]===n}));return l[o]?void d(o):void d(t)}d(e)},a.registerLanguage(r),s=r.languageTag,t.exports=a},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";t.exports=function(t){return{loadLanguagesInNode:function(n){return r=t,void n.forEach((function(t){var n=void 0;try{n=e("../languages/".concat(t))}catch(n){console.error('Unable to load "'.concat(t,'". No matching language file found.'))}n&&r.registerLanguage(n)}));var r}}}},{}],6:[function(e,t,n){"use strict";var r=e("bignumber.js");function o(e,t,n){var o=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=o.minus(i).toNumber(),e}t.exports=function(e){return{add:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.plus(l).toNumber(),o;var o,i,a,s,l},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.times(l).toNumber(),o;var o,i,a,s,l},divide:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.dividedBy(l).toNumber(),o;var o,i,a,s,l},set:function(t,n){return r=t,i=o=n,e.isNumbro(o)&&(i=o._value),r._value=i,r;var r,o,i},difference:function(t,n){return r=n,o(a=(i=e)(t._value),r,i),Math.abs(a._value);var r,i,a}}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=e("./globalState"),i=e("./validating"),a=e("./loading")(f),s=e("./unformatting"),l=e("./formatting")(f),u=e("./manipulating")(f),c=e("./parsing"),d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._value=t}var t,n;return t=e,(n=[{key:"clone",value:function(){return f(this._value)}},{key:"format",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return l.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=c.parseFormat(e)),(e=l.formatOrDefault(e,o.currentCurrencyDefaultFormat())).output="currency",l.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",l.format(this,e)}},{key:"binaryByteUnits",value:function(){return l.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return l.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return l.getByteUnit(this)}},{key:"difference",value:function(e){return u.difference(this,e)}},{key:"add",value:function(e){return u.add(this,e)}},{key:"subtract",value:function(e){return u.subtract(this,e)}},{key:"multiply",value:function(e){return u.multiply(this,e)}},{key:"divide",value:function(e){return u.divide(this,e)}},{key:"set",value:function(e){return u.set(this,h(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&r(t.prototype,n),e}();function h(e){var t=e;return f.isNumbro(e)?t=e._value:"string"==typeof e?t=f.unformat(e):isNaN(e)&&(t=NaN),t}function f(e){return new d(h(e))}f.version="2.1.2",f.isNumbro=function(e){return e instanceof d},f.language=o.currentLanguage,f.registerLanguage=o.registerLanguage,f.setLanguage=o.setLanguage,f.languages=o.languages,f.languageData=o.languageData,f.zeroFormat=o.setZeroFormat,f.defaultFormat=o.currentDefaults,f.setDefaults=o.setDefaults,f.defaultCurrencyFormat=o.currentCurrencyDefaultFormat,f.validate=i.validate,f.loadLanguagesInNode=a.loadLanguagesInNode,f.unformat=s.unformat,t.exports=f},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,n){"use strict";t.exports={parseFormat:function(e){var t,n,r,o,i,a,s,l,u,c,d,h,f,p,g,m,v,y,E,T,C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(n=C,i=C,function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",t.base="general"):-1!==e.indexOf("b")?(t.output="byte",t.base="binary"):-1!==e.indexOf("d")?(t.output="byte",t.base="decimal"):-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time";t.output="percent"}else t.output="currency"}(e=(a=(o=e=(r=(t=e).match(/^{([^}]*)}/))?(n.prefix=r[1],t.slice(r[0].length)):t).match(/{([^}]*)}$/))?(i.postfix=a[1],o.slice(0,-a[0].length)):o,C),s=C,(l=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+l[0]),u=C,(c=e.split(".")[0].match(/0+/))&&(u.characteristic=c[0].length),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,C),d=C,-1!==e.indexOf("a")&&(d.average=!0),f=C,-1!==(h=e).indexOf("K")?f.forceAverage="thousand":-1!==h.indexOf("M")?f.forceAverage="million":-1!==h.indexOf("B")?f.forceAverage="billion":-1!==h.indexOf("T")&&(f.forceAverage="trillion"),function(e,t){var n=e.split(".")[1];if(n){var r=n.match(/0+/);r&&(t.mantissa=r[0].length)}}(e,C),g=C,(p=e).match(/\[\.]/)?g.optionalMantissa=!0:p.match(/\./)&&(g.optionalMantissa=!1),m=C,-1!==e.indexOf(",")&&(m.thousandSeparated=!0),v=C,-1!==e.indexOf(" ")&&(v.spaceSeparated=!0),E=C,(y=e).match(/^\+?\([^)]*\)$/)&&(E.negative="parenthesis"),y.match(/^\+?-/)&&(E.negative="sign"),T=C,e.match(/^\+/)&&(T.forceSign=!0),C)}}},{}],9:[function(e,t,n){"use strict";var r=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function o(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}t.exports={unformat:function(t,n){var i,a,s,l=e("./globalState"),u=l.currentDelimiters(),c=l.currentCurrency().symbol,d=l.currentOrdinal(),h=l.getZeroFormat(),f=l.currentAbbreviations(),p=void 0;if("string"==typeof t)p=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var n=e.split(":");if(3!==n.length)return!1;var r=+n[0],o=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(o)&&!isNaN(i)}(t,u)?(a=+(i=t.split(":"))[0],s=+i[1],+i[2]+60*s+3600*a):function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",i=3<arguments.length?arguments[3]:void 0,a=4<arguments.length?arguments[4]:void 0,s=5<arguments.length?arguments[5]:void 0,l=6<arguments.length?arguments[6]:void 0;if(""!==e)return e===a?0:function e(t,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=3<arguments.length?arguments[3]:void 0,s=4<arguments.length?arguments[4]:void 0,l=5<arguments.length?arguments[5]:void 0,u=6<arguments.length?arguments[6]:void 0;if(!isNaN(+t))return+t;var c="",d=t.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==t)return-1*e(d,n,i,a,s,l,u);for(var h=0;h<r.length;h++){var f=r[h];if((c=t.replace(f.key,""))!==t)return e(c,n,i,a,s,l,u)*f.factor}if((c=t.replace("%",""))!==t)return e(c,n,i,a,s,l,u)/100;var p=parseFloat(t);if(!isNaN(p)){var g=a(p);if(g&&"."!==g&&(c=t.replace(new RegExp("".concat(o(g),"$")),""))!==t)return e(c,n,i,a,s,l,u);var m={};Object.keys(l).forEach((function(e){m[l[e]]=e}));for(var v=Object.keys(m).sort().reverse(),y=v.length,E=0;E<y;E++){var T=v[E],C=m[T];if((c=t.replace(T,""))!==t){var R=void 0;switch(C){case"thousand":R=Math.pow(10,3);break;case"million":R=Math.pow(10,6);break;case"billion":R=Math.pow(10,9);break;case"trillion":R=Math.pow(10,12)}return e(c,n,i,a,s,l,u)*R}}}}(function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",r=e.replace(n,"");return(r=r.replace(new RegExp("([0-9])".concat(o(t.thousands),"([0-9])"),"g"),"$1$2")).replace(t.decimal,".")}(e,t,n),t,n,i,a,s,l)}(t,u,c,d,h,f,n);else{if("number"!=typeof t)return;p=t}if(void 0!==p)return p}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("./unformatting"),a=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,s={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(e,t){return"byte"===t.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(e){return"byte"===e.output}},characteristic:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(e){return 0<=e},message:"value must be positive"},{restriction:function(e,t){return!t.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(e,t){return"percent"===t.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},l={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(a)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",ordinal:{type:"function",mandatory:!0},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function u(e){return!!i.unformat(e)}function c(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],a=Object.keys(e).map((function(r){if(!t[r])return console.error("".concat(n," Invalid key: ").concat(r)),!1;var i=e[r],a=t[r];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!c(i,s,"[Validate ".concat(r,"]"),!0))return!1}else if(o(i)!==a.type)return console.error("".concat(n," ").concat(r,' type mismatched: "').concat(a.type,'" expected, "').concat(o(i),'" provided')),!1;if(a.restrictions&&a.restrictions.length)for(var l=a.restrictions.length,u=0;u<l;u++){var d=a.restrictions[u],h=d.restriction,f=d.message;if(!h(i,e))return console.error("".concat(n," ").concat(r," invalid value: ").concat(f)),!1}return a.restriction&&!a.restriction(i,e)?(console.error("".concat(n," ").concat(r," invalid value: ").concat(a.message)),!1):a.validValues&&-1===a.validValues.indexOf(i)?(console.error("".concat(n," ").concat(r," invalid value: must be among ").concat(JSON.stringify(a.validValues),', "').concat(i,'" provided')),!1):!(a.children&&!c(i,a.children,"[Validate ".concat(r,"]")))}));return i||a.push.apply(a,r(Object.keys(t).map((function(r){var o=t[r];if("string"==typeof o&&(o={type:o}),o.mandatory){var i=o.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[r])return console.error("".concat(n,' Missing mandatory key "').concat(r,'"')),!1}return!0})))),a.reduce((function(e,t){return e&&t}),!0)}function d(e){return c(e,s,"[Validate format]")}t.exports={validate:function(e,t){var n=u(e),r=d(t);return n&&r},validateFormat:d,validateInput:u,validateLanguage:function(e){return c(e,l,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7),window.numbro=n(601)},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(858);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.timeRenderer=t.RENDERER_TYPE=void 0;var r=n(859);t.RENDERER_TYPE=r.RENDERER_TYPE,t.timeRenderer=r.timeRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.dateValidator=t.correctFormat=t.VALIDATOR_TYPE=void 0;var r=n(862);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(63),o=n(219),i=n(61),a=n(97),s=n(80),l=n(863),u=n(62),c=n(124),d=n(220);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=d(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);if(!isNaN(new Date("".concat(e,"T00:00")).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},function(e,t,n){"use strict";t.__esModule=!0,t.numericValidator=t.VALIDATOR_TYPE=void 0;var r=n(864);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.numericValidator=r.numericValidator},function(e,t,n){"use strict";t.__esModule=!0,t.timeValidator=t.VALIDATOR_TYPE=void 0;var r=n(865);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.timeValidator=r.timeValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6),n(43),n(22);var o=r(n(26)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(36),u=n(24),c=function(){function e(t){(0,i.default)(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return(0,a.default)(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var r=this,o=new Map,i="number"==typeof n?{from:n,to:n}:n,a=i.from,s=i.to;return(0,l.rangeEach)(a,s,(function(n){var i=r.generateSample(e,t,n);o.set(n,i)})),o}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var i=new Map,a="row"===e?"col":"row",c=[];return(0,l.rangeEach)(t.from,t.to,(function(t){var l,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,p="string"==typeof f&&f.length>0;l=p?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,u.stringify)(h).length),i.has(l)||i.set(l,{needed:r.getSampleCount(),strings:[]});var g=i.get(l);g.needed&&((!(c.indexOf(h)>-1)||r.allowDuplicates||p)&&(g.strings.push((0,o.default)({value:h},a,t)),c.push(h),g.needed-=1))})),i}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var r=n(899);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(401),o=n(404),i=n(279),a=n(403);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(h(e))return d(e);return d(o.COLUMN_DATA_TYPE)},t.registerRootComparator=t.getRootComparator=void 0;var o=n(613),i=n(903),a=n(904),s=n(905),l=r(n(102)),u=(0,l.default)("sorting.compareFunctionFactory"),c=u.register,d=u.getItem,h=u.hasItem,f=(0,l.default)("sorting.mainSortComparator"),p=f.register,g=f.getItem;t.getRootComparator=g,t.registerRootComparator=p,c(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),c(a.COLUMN_DATA_TYPE,a.compareFunctionFactory),c(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),c(o.COLUMN_DATA_TYPE,o.compareFunctionFactory)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var i=t.locale;return function(t,a){var s=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLocaleLowerCase(i)),"string"==typeof a&&(a=a.toLocaleLowerCase(i)),t===a?o.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(a)?o.DO_NOT_SWAP:s&&"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(0,r.isEmpty)(a)?s&&"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(a)?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(a)?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(a)||(t=parseFloat(t),a=parseFloat(a)),t<a?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:t>a?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP)}};var r=n(24),o=n(117);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(83);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12);function l(e,t){var n;return(0,a.arrayEach)(t,(function(t){var r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}var u=function(){function e(t){(0,o.default)(this,e),this.hot=t,this.commands={},this.commonCallback=null}return(0,i.default)(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.split(":"),u=i[0],c=2===i.length?i[1]:null,d=this.commands[u];if(!d)throw new Error("Menu command '".concat(u,"' not exists."));if(c&&d.submenu&&(d=l(c,d.submenu.items)),!0!==d.disabled&&("function"!=typeof d.disabled||!0!==d.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(d,"submenu")){var h=[];"function"==typeof d.callback&&h.push(d.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),r.unshift(i.join(":")),(0,a.arrayEach)(h,(function(e){return e.apply(t.hot,r)}))}}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(85),n(22);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(13),l=n(110);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=e;return o&&o.items?o=o.items:Array.isArray(o)||(o=t),(0,a.isObject)(o)?(0,a.objectEach)(o,(function(e,t){var o=n["string"==typeof e?e:t];o||(o=e),(0,a.isObject)(e)?(0,a.extend)(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=t),r.push(o)})):(0,s.arrayEach)(o,(function(e,t){var o=n[e];!o&&l.ITEMS.indexOf(e)>=0||(o||(o={name:e,key:"".concat(t)}),(0,a.isObject)(e)&&(0,a.extend)(o,e),void 0===o.key&&(o.key=t),r.push(o))})),r}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return(0,i.default)(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,a.objectEach)(e,(function(e,r){var o="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,o=l.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(24);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",l,{name:o.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,l.registerCondition)("eq",c,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=d;var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(46),l=n(619),u=n(620);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if("numeric"===e.meta.type){var a=parseFloat(r,10),c=parseFloat(o,10);r=Math.min(a,c),o=Math.max(a,c)}else if("date"===e.meta.type){var d=(0,s.getCondition)(u.CONDITION_NAME,[o]),h=(0,s.getCondition)(l.CONDITION_NAME,[r]);return d(e)&&h(e)}return e.value>=r&&e.value<=o}t.CONDITION_NAME="between",(0,s.registerCondition)("between",d,{name:a.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(21)),a=r(n(95)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)>=0}t.CONDITION_NAME="date_after",(0,l.registerCondition)("date_after",c,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(21)),a=r(n(95)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)<=0}t.CONDITION_NAME="date_before",(0,l.registerCondition)("date_before",c,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(22);var i=r(n(21)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18)),s=n(24),l=n(46);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}t.CONDITION_NAME="contains",(0,l.registerCondition)("contains",c,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(192);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunction";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,l)},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(15);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1),n(39);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(192);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunctionWithExtraCondition";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((function(e){return e.func(t)}))&&e[e.length-1].func(t)}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunctionWithExtraCondition",s,l)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(64));n(85),n(65),n(22),n(1);var a,s,l=r(n(2)),u=r(n(3)),c=n(13),d=n(12),h=n(66),f=r(n(86)),p=n(46),g=n(307),m=n(192),v=n(24),y=n(76),E="ConditionCollection.filteringStates",T=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,l.default)(this,e),this.hot=t,this.isMapRegistrable=n,this.filteringStates=new y.LinkedPhysicalIndexToValueMap,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(E,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}return(0,u.default)(e,[{key:"isEmpty",value:function(){return 0===this.getFilteredColumns().length}},{key:"isMatch",value:function(e,t){var n,r=this.filteringStates.getValueAtIndex(t),o=null!==(n=null==r?void 0:r.conditions)&&void 0!==n?n:[],i=null==r?void 0:r.operation;return this.isMatchInConditions(o,e,i)}},{key:"isMatchInConditions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID;return!e.length||(0,m.getOperationFunc)(n)(e,t)}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID,r=arguments.length>3?arguments[3]:void 0,o=this.hot.getCellMeta(0,e).locale,l=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),u=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);var d=this.getOperation(e);if(d){if(d!==n)throw Error((0,h.toSingleLine)(a||(a=(0,i.default)(["The column of index "," has been already applied with a `","` \n filter operation. Use `removeConditions` to clear the current conditions and then add new ones. \n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`, \n use it consequently for a particular column)."],["The column of index "," has been already applied with a \\`","\\`\\x20\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\\x20\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\\x20\n use it consequently for a particular column)."])),e,d))}else if((0,v.isUndefined)(m.operations[n]))throw new Error((0,h.toSingleLine)(s||(s=(0,i.default)(["Unexpected operation named `","`. Possible ones are \n `disjunction` and `conjunction`."],["Unexpected operation named \\`","\\`. Possible ones are\\x20\n \\`disjunction\\` and \\`conjunction\\`."])),n));var f=this.getConditions(e);0===f.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:u,args:l,func:(0,p.getCondition)(u,l)}]},r):f.push({name:u,args:l,func:(0,p.getCondition)(u,l)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}},{key:"getOperation",value:function(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}},{key:"getFilteredColumns",value:function(){return this.filteringStates.getEntries().map((function(e){return(0,o.default)(e,1)[0]}))}},{key:"getColumnStackPosition",value:function(e){return this.getFilteredColumns().indexOf(e)}},{key:"exportAllConditions",value:function(){return(0,c.arrayReduce)(this.filteringStates.getEntries(),(function(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=i.operation,s=i.conditions;return e.push({column:r,operation:a,conditions:(0,c.arrayMap)(s,(function(e){return{name:e.name,args:e.args}}))}),e}),[])}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),(0,c.arrayEach)(e,(function(e){(0,c.arrayEach)(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}},{key:"hasConditions",value:function(e,t){var n=this.getConditions(e);return t?n.some((function(e){return e.name===t})):n.length>0}},{key:"destroy",value:function(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(E),this.filteringStates=null,this.clearLocalHooks()}}]),e}();(0,d.mixin)(T,f.default);var C=T;t.default=C},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(13),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,o.default)(this,e),this.conditionCollection=t,this.columnDataFactory=n}return(0,i.default)(e,[{key:"filter",value:function(){var e=this,t=[];return(0,a.arrayEach)(this.conditionCollection.getFilteredColumns(),(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return(0,a.arrayEach)(n,(function(n){void 0!==n&&t.conditionCollection.isMatch(n,e)&&r.push(n)})),r}},{key:"_getIntersectData",value:function(e,t){var n=[];return(0,a.arrayEach)(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}]),e}();t.default=s},function(e,t,n){"use strict";n(54),n(35),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=u,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s(s({},l),r),o)},t.getEngineSettingsWithOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s({},r),o)};var o=r(n(26));n(221),n(1),n(43);var i=n(309);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable";var l={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!0,nullDate:{year:1899,month:12,day:31},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function u(e){var t,n;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(n=t.language)||void 0===n?void 0:n.langCode}}function c(e){return Object.keys(e).reduce((function(t,n){return"hyperformula"!==n&&(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(36),s=n(84),l=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0,this.inlineProperty=t.isRtl()?"right":"left"}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,a.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+"px")}},{key:"getPosition",value:function(){var e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}},{key:"setSize",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,a.isNumeric)(t)&&(this._element.style["margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty))]=t+"px")}},{key:"getOffset",value:function(){var e=this._element.style,t="margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty));return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.applySpanProperties=function(e,t,n,r){t?t.row===n&&t.col===r?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")},n(1),n(98)},function(e,t,n){"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.label,n=void 0===t?"":t,r=e.colspan,o=void 0===r?1:r,i=e.origColspan,a=void 0===i?1:i,s=e.collapsible,l=void 0!==s&&s,u=e.crossHiddenColumns,c=void 0===u?[]:u,d=e.isCollapsed,h=void 0!==d&&d,f=e.isHidden,p=void 0!==f&&f,g=e.isRoot,m=void 0!==g&&g,v=e.isPlaceholder,y=void 0!==v&&v;return{label:n,colspan:o,origColspan:a,collapsible:l,isCollapsed:h,crossHiddenColumns:c,isHidden:p,isRoot:m,isPlaceholder:y}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},function(e,t,n){"use strict";t.__esModule=!0,t.collapseNode=function e(t){var n,a=t.data,s=t.childs;if(a.isCollapsed||a.isHidden||a.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(s[0]);a.isCollapsed=!0;var l=s.slice(1),u=new Set;if(l.length>0)(0,r.arrayEach)(l,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){e.data.isHidden=!0}))}));else for(var c=a.origColspan,d=a.columnIndex,h=1;h<c;h++){var f=d+h;u.add(f)}var p=a.colspan-(null!==(n=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==n?n:1);return t.walkUp((function(e){var t=e.data;t.colspan-=p,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.expandNode)(t)},affectedColumns:Array.from(u),colspanCompensation:p}},n(39),n(4),n(1),n(52),n(5),n(6),n(48);var r=n(13),o=n(632),i=n(633)},function(e,t,n){"use strict";t.__esModule=!0,t.expandNode=function e(t){var n=t.data,a=t.childs;if(!n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);n.isCollapsed=!1;var s=a.slice(1),l=new Set,u=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;u+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;u=d-c;for(var f=1;f<d;f++)l.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=u,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.collapseNode)(t)},affectedColumns:Array.from(l),colspanCompensation:u}},n(39),n(4),n(1),n(52),n(5),n(6),n(48);var r=n(13),o=n(631),i=n(633)},function(e,t,n){"use strict";function r(e,t){var n=e.childs;if(0!==n.length)return n[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown((function(e){var n=e.data,r=e.childs;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(var o=1;o<n.colspan;o++)t(n.columnIndex+o)}))}},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(20);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(13),c=n(36),d=n(16);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this,e,r)).dataManager=i.plugin.dataManager,i.collapsingUI=i.plugin.collapsingUI,i.rowHeaderWidthCache=null,i}return(0,i.default)(n,[{key:"appendLevelIndicators",value:function(e,t){var r=this.hot.toPhysicalRow(e),o=this.dataManager.getRowLevel(r),i=this.dataManager.getDataObject(r),a=t.getElementsByTagName("DIV")[0],s=a.querySelector("span.rowHeader"),l=a.querySelectorAll('[class^="ht_nesting"]');if((0,u.arrayEach)(l,(function(e){e&&a.removeChild(e)})),(0,d.addClass)(t,n.CSS_CLASSES.indicatorContainer),o){var h=this.hot.rootDocument,f=s.cloneNode(!0);a.innerHTML="",(0,c.rangeEach)(0,o-1,(function(){var e=h.createElement("SPAN");(0,d.addClass)(e,n.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(f)}if(this.dataManager.hasChildren(i)){var p=this.hot.rootDocument.createElement("DIV");(0,d.addClass)(t,n.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?(0,d.addClass)(p,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.expandButton)):(0,d.addClass)(p,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.collapseButton)),a.appendChild(p)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t||(t=this.dataManager.cache.levelCount),this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}],[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),n}(r(n(311)).default);t.default=f},function(e,t,n){n(234),e.exports=n(685)},function(e,t,n){"use strict";n.r(t),n.d(t,"ResyncFollowsWalker",(function(){return c})),n.d(t,"computeAllProdsFollows",(function(){return d})),n.d(t,"buildBetweenProdsFollowPrefix",(function(){return h})),n.d(t,"buildInProdFollowPrefix",(function(){return f}));var r,o=n(236),i=n(314),a=n(37),s=n(315),l=n(45),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.topProd=t,n.follows={},n}return u(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,n){},t.prototype.walkProdRef=function(e,t,n){var r=h(e.referencedRule,e.idx)+this.topProd.name,o=t.concat(n),a=new l.Flat({definition:o}),s=Object(i.first)(a);this.follows[r]=s},t}(o.RestWalker);function d(e){var t={};return Object(a.forEach)(e,(function(e){var n=new c(e).startWalking();Object(a.assign)(t,n)})),t}function h(e,t){return e.name+t+s.IN}function f(e){return e.terminalType.name+e.idx+s.IN}},function(e,t,n){"use strict";n.r(t),n.d(t,"failedOptimizationPrefixMsg",(function(){return u})),n.d(t,"getOptimizedStartCodesIndices",(function(){return c})),n.d(t,"firstCharOptimizedIndices",(function(){return d})),n.d(t,"canMatchCharCode",(function(){return m}));var r,o=n(237),i=n(37),a=n(238),s=n(313),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u='Unable to use "first char" lexer optimizations:\n';function c(e,t){void 0===t&&(t=!1);try{var n=Object(a.getRegExpAst)(e);return d(n.value,{},n.flags.ignoreCase)}catch(n){if("Complement Sets are not supported for first char optimization"===n.message)t&&Object(i.PRINT_WARNING)(u+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var r="";t&&(r="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),Object(i.PRINT_ERROR)(u+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+o.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function d(e,t,n){switch(e.type){case"Disjunction":for(var r=0;r<e.value.length;r++)d(e.value[r],t,n);break;case"Alternative":var o=e.value;for(r=0;r<o.length;r++){var a=o[r];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var l=a;switch(l.type){case"Character":h(l.value,t,n);break;case"Set":if(!0===l.complement)throw Error("Complement Sets are not supported for first char optimization");Object(i.forEach)(l.value,(function(e){if("number"==typeof e)h(e,t,n);else{var r=e;if(!0===n)for(var o=r.from;o<=r.to;o++)h(o,t,n);else{for(o=r.from;o<=r.to&&o<s.minOptimizationVal;o++)h(o,t,n);if(r.to>=s.minOptimizationVal)for(var i=r.from>=s.minOptimizationVal?r.from:s.minOptimizationVal,a=r.to,l=Object(s.charCodeToOptimizedIndex)(i),u=Object(s.charCodeToOptimizedIndex)(a),c=l;c<=u;c++)t[c]=c}}}));break;case"Group":d(l.value,t,n);break;default:throw Error("Non Exhaustive Match")}var u=void 0!==l.quantifier&&0===l.quantifier.atLeast;if("Group"===l.type&&!1===p(l)||"Group"!==l.type&&!1===u)break}break;default:throw Error("non exhaustive match!")}return Object(i.values)(t)}function h(e,t,n){var r=Object(s.charCodeToOptimizedIndex)(e);t[r]=r,!0===n&&function(e,t){var n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){var o=Object(s.charCodeToOptimizedIndex)(r.charCodeAt(0));t[o]=o}else{var i=n.toLowerCase();if(i!==n){o=Object(s.charCodeToOptimizedIndex)(i.charCodeAt(0));t[o]=o}}}(e,t)}function f(e,t){return Object(i.find)(e.value,(function(e){if("number"==typeof e)return Object(i.contains)(t,e);var n=e;return void 0!==Object(i.find)(t,(function(e){return n.from<=e&&e<=n.to}))}))}function p(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(Object(i.isArray)(e.value)?Object(i.every)(e.value,p):p(e.value))}var g=function(e){function t(t){var n=e.call(this)||this;return n.targetCharCodes=t,n.found=!1,n}return l(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){Object(i.contains)(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===f(e,this.targetCharCodes)&&(this.found=!0):void 0!==f(e,this.targetCharCodes)&&(this.found=!0)},t}(o.BaseRegExpVisitor);function m(e,t){if(t instanceof RegExp){var n=Object(a.getRegExpAst)(t),r=new g(e);return r.visit(n),r.found}return void 0!==Object(i.find)(t,(function(t){return Object(i.contains)(e,t.charCodeAt(0))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"resolveGrammar",(function(){return l})),n.d(t,"GastRefResolverVisitor",(function(){return u}));var r,o=n(69),i=n(37),a=n(118),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e,t){var n=new u(e,t);return n.resolveRefs(),n.errors}var u=function(e){function t(t,n){var r=e.call(this)||this;return r.nameToTopRule=t,r.errMsgProvider=n,r.errors=[],r}return s(t,e),t.prototype.resolveRefs=function(){var e=this;Object(i.forEach)(Object(i.values)(this.nameToTopRule),(function(t){e.currTopLevel=t,t.accept(e)}))},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:o.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(a.GAstVisitor)},function(e,t,n){"use strict";n.r(t),n.d(t,"LooksAhead",(function(){return l}));var r=n(199),o=n(37),i=n(69),a=n(158),s=n(157),l=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=Object(o.has)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:i.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=Object(o.has)(e,"maxLookahead")?e.maxLookahead:i.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=Object(o.isES2015MapSupported)()?new Map:[],Object(o.isES2015MapSupported)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;Object(o.forEach)(e,(function(e){t.TRACE_INIT(e.name+" Rule Lookahead",(function(){var n=Object(s.collectMethods)(e),i=n.alternation,l=n.repetition,u=n.option,c=n.repetitionMandatory,d=n.repetitionMandatoryWithSeparator,h=n.repetitionWithSeparator;Object(o.forEach)(i,(function(n){var o=0===n.idx?"":n.idx;t.TRACE_INIT(""+Object(s.getProductionDslName)(n)+o,(function(){var o=Object(r.buildLookaheadFuncForOr)(n.idx,e,n.maxLookahead||t.maxLookahead,n.hasPredicates,t.dynamicTokensEnabled,t.lookAheadBuilderForAlternatives),i=Object(a.getKeyForAutomaticLookahead)(t.fullRuleNameToShort[e.name],a.OR_IDX,n.idx);t.setLaFuncCache(i,o)}))})),Object(o.forEach)(l,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_IDX,r.PROD_TYPE.REPETITION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(u,(function(n){t.computeLookaheadFunc(e,n.idx,a.OPTION_IDX,r.PROD_TYPE.OPTION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(c,(function(n){t.computeLookaheadFunc(e,n.idx,a.AT_LEAST_ONE_IDX,r.PROD_TYPE.REPETITION_MANDATORY,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(d,(function(n){t.computeLookaheadFunc(e,n.idx,a.AT_LEAST_ONE_SEP_IDX,r.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(h,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_SEP_IDX,r.PROD_TYPE.REPETITION_WITH_SEPARATOR,n.maxLookahead,Object(s.getProductionDslName)(n))}))}))}))},e.prototype.computeLookaheadFunc=function(e,t,n,o,i,s){var l=this;this.TRACE_INIT(""+s+(0===t?"":t),(function(){var s=Object(r.buildLookaheadFuncForOptionalProd)(t,e,i||l.maxLookahead,l.dynamicTokensEnabled,o,l.lookAheadBuilderForOptional),u=Object(a.getKeyForAutomaticLookahead)(l.fullRuleNameToShort[e.name],n,t);l.setLaFuncCache(u,s)}))},e.prototype.lookAheadBuilderForOptional=function(e,t,n){return Object(r.buildSingleAlternativeLookaheadFunction)(e,t,n)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,n,o){return Object(r.buildAlternativesLookAheadFunc)(e,t,n,o)},e.prototype.getKeyForAutomaticLookahead=function(e,t){var n=this.getLastExplicitRuleShortName();return Object(a.getKeyForAutomaticLookahead)(n,e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"TreeBuilder",(function(){return l}));var r=n(240),o=n(37),i=n(641),a=n(158),s=n(69),l=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=Object(o.has)(e,"outputCst")?e.outputCst:s.DEFAULT_PARSER_CONFIG.outputCst,this.nodeLocationTracking=Object(o.has)(e,"nodeLocationTracking")?e.nodeLocationTracking:s.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=r.setNodeLocationFull,this.setNodeLocationFromNode=r.setNodeLocationFull,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=r.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=r.setNodeLocationOnlyOffset,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=o.NOOP}else this.cstInvocationStateUpdate=o.NOOP,this.cstFinallyStateUpdate=o.NOOP,this.cstPostTerminal=o.NOOP,this.cstPostNonTerminal=o.NOOP,this.cstPostRule=o.NOOP,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var n={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var n={name:e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?n.endOffset=t.endOffset:n.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var n=this.CST_STACK[this.CST_STACK.length-1];Object(r.addTerminalToCst)(n,t,e),this.setNodeLocationFromToken(n.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var n=this.CST_STACK[this.CST_STACK.length-1];Object(r.addNoneTerminalToCst)(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(Object(o.isUndefined)(this.baseCstVisitorConstructor)){var e=Object(i.createBaseSemanticVisitorConstructor)(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Object(o.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=Object(i.createBaseVisitorConstructorWithDefaults)(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var n;return void 0!==e.NAME?(n=e.NAME,this.nestedRuleInvocationStateUpdate(n,t),n):void 0},e.prototype.nestedAltBeforeClause=function(e,t,n,r){var o,i=this.getLastExplicitRuleShortName(),s=Object(a.getKeyForAltIndex)(i,n,t,r);return void 0!==e.NAME?(o=e.NAME,this.nestedRuleInvocationStateUpdate(o,s),{shortName:s,nestedName:o}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var n=this.CST_STACK,o=n[n.length-1];this.nestedRuleFinallyStateUpdate();var i=n[n.length-1];Object(r.addNoneTerminalToCst)(i,t,o),this.setNodeLocationFromNode(i.location,o.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultVisit",(function(){return s})),n.d(t,"createBaseSemanticVisitorConstructor",(function(){return l})),n.d(t,"createBaseVisitorConstructorWithDefaults",(function(){return u})),n.d(t,"CstVisitorDefinitionError",(function(){return r})),n.d(t,"validateVisitor",(function(){return c})),n.d(t,"validateMissingCstMethods",(function(){return d})),n.d(t,"validateRedundantMethods",(function(){return f}));var r,o=n(37),i=n(317),a=n(198);function s(e,t){for(var n=Object(o.keys)(e),r=n.length,i=0;i<r;i++)for(var a=e[n[i]],s=a.length,l=0;l<s;l++){var u=a[l];void 0===u.tokenTypeIdx&&(void 0!==u.fullName?this[u.fullName](u.children,t):this[u.name](u.children,t))}}function l(e,t){var n=function(){};return Object(i.defineNameProp)(n,e+"BaseSemantics"),(n.prototype={visit:function(e,t){if(Object(o.isArray)(e)&&(e=e[0]),!Object(o.isUndefined)(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=c(this,t);if(!Object(o.isEmpty)(e)){var n=Object(o.map)(e,(function(e){return e.msg}));throw Error("Errors Detected in CST Visitor <"+Object(i.functionName)(this.constructor)+">:\n\t"+n.join("\n\n").replace(/\n/g,"\n\t"))}}}).constructor=n,n._RULE_NAMES=t,n}function u(e,t,n){var r=function(){};Object(i.defineNameProp)(r,e+"BaseSemanticsWithDefaults");var a=Object.create(n.prototype);return Object(o.forEach)(t,(function(e){a[e]=s})),(r.prototype=a).constructor=r,r}function c(e,t){var n=d(e,t),r=f(e,t);return n.concat(r)}function d(e,t){var n=Object(o.map)(t,(function(t){if(!Object(o.isFunction)(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+Object(i.functionName)(e.constructor)+" CST Visitor.",type:r.MISSING_METHOD,methodName:t}}));return Object(o.compact)(n)}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(r||(r={}));var h=["constructor","visit","validateVisitor"];function f(e,t){var n=[];for(var s in e)a.validTermsPattern.test(s)&&Object(o.isFunction)(e[s])&&!Object(o.contains)(h,s)&&!Object(o.contains)(t,s)&&n.push({msg:"Redundant visitor method: <"+s+"> on "+Object(i.functionName)(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+a.validTermsPattern.source+"/.",type:r.REDUNDANT_METHOD,methodName:s});return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"LexerAdapter",(function(){return o}));var r=n(69),o=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):r.END_OF_FILE},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?r.END_OF_FILE:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RecognizerApi",(function(){return u}));var r=n(37),o=n(99),i=n(69),a=n(119),s=n(198),l=n(45),u=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,n){return this.consumeInternal(t,e,n)},e.prototype.subrule=function(e,t,n){return this.subruleInternal(t,e,n)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,n){if(void 0===n&&(n=i.DEFAULT_RULE_CONFIG),Object(r.contains)(this.definedRulesNames,e)){var o={message:a.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(o)}this.definedRulesNames.push(e);var s=this.defineRule(e,t,n);return this[e]=s,s},e.prototype.OVERRIDE_RULE=function(e,t,n){void 0===n&&(n=i.DEFAULT_RULE_CONFIG);var r=[];r=r.concat(Object(s.validateRuleIsOverridden)(e,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(e,t,n);return this[e]=o,o},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(Object(o.isRecognitionException)(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Object(l.serializeGrammar)(Object(r.values)(this.gastProductionsCache))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RecognizerEngine",(function(){return f}));var r=n(37),o=n(158),i=n(99),a=n(199),s=n(200),l=n(69),u=n(316),c=n(87),d=n(156),h=n(317),f=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=Object(h.classNameFromInstance)(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=d.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Object(r.has)(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(Object(r.isArray)(e)){if(Object(r.isEmpty)(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(Object(r.isArray)(e))this.tokensMap=Object(r.reduce)(e,(function(e,t){return e[t.name]=t,e}),{});else if(Object(r.has)(e,"modes")&&Object(r.every)(Object(r.flatten)(Object(r.values)(e.modes)),d.isTokenType)){var n=Object(r.flatten)(Object(r.values)(e.modes)),o=Object(r.uniq)(n);this.tokensMap=Object(r.reduce)(o,(function(e,t){return e[t.name]=t,e}),{})}else{if(!Object(r.isObject)(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=Object(r.cloneObj)(e)}this.tokensMap.EOF=c.EOF;var i=Object(r.every)(Object(r.values)(e),(function(e){return Object(r.isEmpty)(e.categoryMatches)}));this.tokenMatcher=i?d.tokenStructuredMatcherNoCategories:d.tokenStructuredMatcher,Object(d.augmentTokenTypes)(Object(r.values)(this.tokensMap))},e.prototype.defineRule=function(e,t,n){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var i,a=Object(r.has)(n,"resyncEnabled")?n.resyncEnabled:l.DEFAULT_RULE_CONFIG.resyncEnabled,s=Object(r.has)(n,"recoveryValueFunc")?n.recoveryValueFunc:l.DEFAULT_RULE_CONFIG.recoveryValueFunc,u=this.ruleShortNameIdx<<o.BITS_FOR_METHOD_TYPE+o.BITS_FOR_OCCURRENCE_IDX;function c(e){try{if(!0===this.outputCst){t.apply(this,e);var n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,a,s)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[u]=e,this.fullRuleNameToShort[e]=u;return(i=function(t,n){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(u,e,t),c.call(this,n)}).ruleName=e,i.originalGrammarAction=t,i},e.prototype.invokeRuleCatch=function(e,t,n){var r=1===this.RULE_STACK.length,o=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Object(i.isRecognitionException)(e)){var a=e;if(o){var s,l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))return a.resyncedTokens=this.reSyncTo(l),this.outputCst?((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,s):n();throw this.outputCst&&((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,a.partialCstResult=s),a}if(r)return this.moveToTerminatedState(),n();throw a}throw e},e.prototype.optionInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OPTION_IDX,t),r=this.nestedRuleBeforeClause(e,n);try{return this.optionInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.optionInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OPTION_IDX,t);return this.optionInternalLogic(e,t,n)},e.prototype.optionInternalLogic=function(e,t,n){var r,o,i=this,a=this.getLaFuncFromCache(n);if(void 0!==e.DEF){if(r=e.DEF,void 0!==(o=e.GATE)){var s=a;a=function(){return o.call(i)&&s.call(i)}}}else r=e;if(!0===a.call(this))return r.call(this)},e.prototype.atLeastOneInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{return this.atLeastOneInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_IDX,e);this.atLeastOneInternalLogic(e,t,n)},e.prototype.atLeastOneInternalLogic=function(e,t,n){var r,i,l=this,u=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var c=u;u=function(){return i.call(l)&&c.call(l)}}}else r=t;if(!0!==u.call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY,t.ERR_MSG);for(var d=this.doSingleRepetition(r);!0===u.call(this)&&!0===d;)d=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],u,o.AT_LEAST_ONE_IDX,e,s.NextTerminalAfterAtLeastOneWalker)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_SEP_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{this.atLeastOneSepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_SEP_IDX,e);this.atLeastOneSepFirstInternalLogic(e,t,n)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,n){var r=this,i=t.DEF,l=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);i.call(this);for(var u=function(){return r.tokenMatcher(r.LA(1),l)};!0===this.tokenMatcher(this.LA(1),l);)this.CONSUME(l),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,l,u,i,s.NextTerminalAfterAtLeastOneSepWalker],u,o.AT_LEAST_ONE_SEP_IDX,e,s.NextTerminalAfterAtLeastOneSepWalker)},e.prototype.manyInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{return this.manyInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manyInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_IDX,e);return this.manyInternalLogic(e,t,n)},e.prototype.manyInternalLogic=function(e,t,n){var r,i,a=this,l=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var u=l;l=function(){return i.call(a)&&u.call(a)}}}else r=t;for(var c=!0;!0===l.call(this)&&!0===c;)c=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],l,o.MANY_IDX,e,s.NextTerminalAfterManyWalker,c)},e.prototype.manySepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_SEP_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{this.manySepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_SEP_IDX,e);this.manySepFirstInternalLogic(e,t,n)},e.prototype.manySepFirstInternalLogic=function(e,t,n){var r=this,i=t.DEF,a=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){i.call(this);for(var l=function(){return r.tokenMatcher(r.LA(1),a)};!0===this.tokenMatcher(this.LA(1),a);)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,s.NextTerminalAfterManySepWalker],l,o.MANY_SEP_IDX,e,s.NextTerminalAfterManySepWalker)}},e.prototype.repetitionSepSecondInternal=function(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,o.AT_LEAST_ONE_SEP_IDX,e,i)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var n=Object(r.isArray)(e)?e:e.DEF,i=this.getKeyForAutomaticLookahead(o.OR_IDX,t),a=this.getLaFuncFromCache(i).call(this,n);if(void 0!==a)return n[a].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OR_IDX,t),i=this.nestedRuleBeforeClause(e,n);try{var a=Object(r.isArray)(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,a);if(void 0!==s){var l=a[s],u=this.nestedAltBeforeClause(l,t,o.OR_IDX,s);try{return l.ALT.call(this)}finally{void 0!==u&&this.nestedRuleFinallyClause(u.shortName,u.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==i&&this.nestedRuleFinallyClause(n,i)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new i.NotAllInputParsedException(t,e))}},e.prototype.subruleInternal=function(e,t,n){var r;try{var o=void 0!==n?n.ARGS:void 0;return r=e.call(this,t,o),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(t){this.subruleInternalError(t,n,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,n){throw Object(i.isRecognitionException)(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,n){var r;try{var o=this.LA(1);!0===this.tokenMatcher(o,e)?(this.consumeToken(),r=o):this.consumeInternalError(e,o,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r},e.prototype.consumeInternalError=function(e,t,n){var r,o=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new i.MismatchedTokenException(r,t,o))},e.prototype.consumeInternalRecovery=function(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;var r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===u.IN_RULE_RECOVERY_EXCEPTION?n:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=Object(r.cloneArr)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),c.EOF)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorHandler",(function(){return s}));var r=n(99),o=n(37),i=n(199),a=n(69),s=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=Object(o.defaults)(e.errorMessageProvider,a.DEFAULT_PARSER_CONFIG.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(Object(r.isRecognitionException)(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Object(o.cloneArr)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return Object(o.cloneArr)(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,n){for(var o=this.getCurrRuleFullName(),a=this.getGAstProductions()[o],s=Object(i.getLookaheadPathsForOptionalProd)(e,a,t,this.maxLookahead)[0],l=[],u=1;u<=this.maxLookahead;u++)l.push(this.LA(u));var c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:l,previous:this.LA(0),customUserDescription:n,ruleName:o});throw this.SAVE_ERROR(new r.EarlyExitException(c,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var n=this.getCurrRuleFullName(),o=this.getGAstProductions()[n],a=Object(i.getLookaheadPathsForOr)(e,o,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new r.NoViableAltException(c,this.LA(1),u))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentAssist",(function(){return i}));var r=n(200),o=n(37),i=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var n=this.gastProductionsCache[e];if(Object(o.isUndefined)(n))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Object(r.nextPossibleTokensAfter)([n],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=Object(o.first)(e.ruleStack),n=this.getGAstProductions()[t];return new r.NextAfterTokenWalker(n,e).startWalking()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"GastRecorder",(function(){return g}));var r=n(37),o=n(45),i=n(136),a=n(156),s=n(87),l=n(69),u=n(158),c={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(c);var d=Math.pow(2,u.BITS_FOR_OCCURRENCE_IDX)-1,h=Object(s.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:i.Lexer.NA});Object(a.augmentTokenTypes)([h]);var f=Object(s.createTokenInstance)(h,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(f);var p={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},g=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var t=function(t){var n=t>0?t:"";e["CONSUME"+n]=function(e,n){return this.consumeInternalRecord(e,t,n)},e["SUBRULE"+n]=function(e,n){return this.subruleInternalRecord(e,t,n)},e["OPTION"+n]=function(e){return this.optionInternalRecord(e,t)},e["OR"+n]=function(e){return this.orInternalRecord(e,t)},e["MANY"+n]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+n]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+n]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+n]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},n=0;n<10;n++)t(n);e.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},e.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD}))},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var t=0;t<10;t++){var n=t>0?t:"";delete e["CONSUME"+n],delete e["SUBRULE"+n],delete e["OPTION"+n],delete e["OR"+n],delete e["MANY"+n],delete e["MANY_SEP"+n],delete e["AT_LEAST_ONE"+n],delete e["AT_LEAST_ONE_SEP"+n]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA}))},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return l.END_OF_FILE},e.prototype.topLevelRuleRecord=function(e,t){try{var n=new o.Rule({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return m.call(this,o.Option,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){m.call(this,o.RepetitionMandatory,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){m.call(this,o.RepetitionMandatoryWithSeparator,t,e,!0)},e.prototype.manyInternalRecord=function(e,t){m.call(this,o.Repetition,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){m.call(this,o.RepetitionWithSeparator,t,e,!0)},e.prototype.orInternalRecord=function(e,t){return v.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,n){if(E(t),!e||!1===Object(r.has)(e,"ruleName")){var i=new Error("<SUBRULE"+y(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw i.KNOWN_RECORDER_ERROR=!0,i}var a=Object(r.peek)(this.recordingProdStack),s=e.ruleName,l=new o.NonTerminal({idx:t,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?p:c},e.prototype.consumeInternalRecord=function(e,t,n){if(E(t),!Object(a.hasShortKeyProperty)(e)){var i=new Error("<CONSUME"+y(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw i.KNOWN_RECORDER_ERROR=!0,i}var s=Object(r.peek)(this.recordingProdStack),l=new o.Terminal({idx:t,terminalType:e});return s.definition.push(l),f},e}();function m(e,t,n,o){void 0===o&&(o=!1),E(n);var i=Object(r.peek)(this.recordingProdStack),a=Object(r.isFunction)(t)?t:t.DEF,s=new e({definition:[],idx:n});return Object(r.has)(t,"NAME")&&(s.name=t.NAME),o&&(s.separator=t.SEP),Object(r.has)(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),c}function v(e,t){var n=this;E(t);var i=Object(r.peek)(this.recordingProdStack),a=!1===Object(r.isArray)(e),s=!1===a?e:e.DEF,l=new o.Alternation({definition:[],idx:t,ignoreAmbiguities:a&&!0===e.IGNORE_AMBIGUITIES});Object(r.has)(e,"NAME")&&(l.name=e.NAME),Object(r.has)(e,"MAX_LOOKAHEAD")&&(l.maxLookahead=e.MAX_LOOKAHEAD);var u=Object(r.some)(s,(function(e){return Object(r.isFunction)(e.GATE)}));return l.hasPredicates=u,i.definition.push(l),Object(r.forEach)(s,(function(e){var t=new o.Flat({definition:[]});l.definition.push(t),Object(r.has)(e,"NAME")&&(t.name=e.NAME),Object(r.has)(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object(r.has)(e,"GATE")&&(t.ignoreAmbiguities=!0),n.recordingProdStack.push(t),e.ALT.call(n),n.recordingProdStack.pop()})),c}function y(e){return 0===e?"":""+e}function E(e){if(e<0||e>d){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(d+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}},function(e,t,n){"use strict";n.r(t),n.d(t,"PerformanceTracer",(function(){return i}));var r=n(37),o=n(69),i=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(Object(r.has)(e,"traceInitPerf")){var t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=o.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(n+"--\x3e <"+e+">");var o=Object(r.timer)(t),i=o.time,a=o.value,s=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(n+"<-- <"+e+"> time: "+i+"ms"),this.traceInitIndent--,a}return t()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"genUmdModule",(function(){return a})),n.d(t,"genWrapperFunction",(function(){return s})),n.d(t,"genClass",(function(){return l})),n.d(t,"genAllRules",(function(){return u})),n.d(t,"genRule",(function(){return c})),n.d(t,"genTerminal",(function(){return d})),n.d(t,"genNonTerminal",(function(){return h})),n.d(t,"genAlternation",(function(){return f})),n.d(t,"genSingleAlt",(function(){return p}));var r=n(37),o=n(45),i="\n";function a(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+l(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}function s(e){return" \n"+l(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}function l(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+u(e.rules)+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n"+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function u(e){return Object(r.map)(e,(function(e){return c(e,1)})).join("\n")}function c(e,t){var n=y(t,'$.RULE("'+e.name+'", function() {')+i;return n+=v(e.definition,t+1),n+=y(t+1,"})")+i}function d(e,t){var n=e.terminalType.name;return y(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+i)}function h(e,t){return y(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+i)}function f(e,t){var n=y(t,"$.OR"+e.idx+"([")+i;return n+=Object(r.map)(e.definition,(function(e){return p(e,t+1)})).join(",\n"),n+=i+y(t,"])\n")}function p(e,t){var n=y(t,"{")+i;return e.name&&(n+=y(t+1,'NAME: "'+e.name+'",')+i),n+=y(t+1,"ALT: function() {")+i,n+=v(e.definition,t+1),n+=y(t+1,"}")+i,n+=y(t,"}")}function g(e,t,n){var r=y(n,"$."+(e+t.idx)+"(");return t.name||t.separator?(r+="{\n",t.name&&(r+=y(n+1,'NAME: "'+t.name+'"')+","+i),t.separator&&(r+=y(n+1,"SEP: this.tokensMap."+t.separator.name)+","+i),r+="DEF: "+m(t.definition,n+2)+i,r+=y(n,"}")+i):r+=m(t.definition,n+1),r+=y(n,")")+i}function m(e,t){var n="function() {\n";return n+=v(e,t),n+=y(t,"}")+i}function v(e,t){var n="";return Object(r.forEach)(e,(function(e){n+=function(e,t){if(e instanceof o.NonTerminal)return h(e,t);if(e instanceof o.Option)return g("OPTION",e,t);if(e instanceof o.RepetitionMandatory)return g("AT_LEAST_ONE",e,t);if(e instanceof o.RepetitionMandatoryWithSeparator)return g("AT_LEAST_ONE_SEP",e,t);if(e instanceof o.RepetitionWithSeparator)return g("MANY_SEP",e,t);if(e instanceof o.Repetition)return g("MANY",e,t);if(e instanceof o.Alternation)return f(e,t);if(e instanceof o.Terminal)return d(e,t);if(e instanceof o.Flat)return v(e.definition,t);throw Error("non exhaustive match")}(e,t+1)})),n}function y(e,t){return Array(4*e+1).join(" ")+t}},function(e,t,n){"use strict";n.r(t),n.d(t,"Cache",(function(){return o})),n.d(t,"doesContainFunctions",(function(){return i}));var r=n(60);
|
519
519
|
/**
|
520
520
|
* @license
|
521
521
|
* Copyright (c) 2022 Handsoncode. All rights reserved.
|
@@ -854,7 +854,7 @@ function*r(){}function o(e){const t=e[Symbol.iterator](),{done:n,value:o}=t.next
|
|
854
854
|
limitations under the License.
|
855
855
|
|
856
856
|
*/
|
857
|
-
var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,l,u,c,d,h,f,p,g,m,v,y,E,T=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function l(i){var l=0,u=0,c=0,d=i*i;if(i<8)l=(u=o(t,d))/(c=o(n,d));else{var h=i-.785398164;u=o(a,d=64/d),c=o(s,d),l=r.sqrt(e/i)*(r.cos(h)*u-r.sin(h)*c*8/i)}return l}var u=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),d=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function f(t){var n=0,i=0,a=0,s=t*t,l=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(u,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(l)*i-r.sin(l)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return l(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,l(t),f(t),-1);else{for(var a=!1,s=0,u=0,c=1,d=0,h=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,u*=1e-10),a&&(u+=c),a=!a,p==n&&(o=s);o/=u=2*u-c}return o}}(),C=(s=.636619772,l=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),u=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),d=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),h=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),f=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),g=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,h=e-.785398164;return e<8?t=(n=o(l,a))/(i=o(u,a))+s*T(e,0)*r.log(e):(n=o(c,a=64/a),i=o(d,a),t=r.sqrt(s/e)*(r.sin(h)*n+r.cos(h)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,l=e-2.356194491;return e<8?t=(n=e*o(h,a))/(i=o(f,a))+s*(T(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(g,a),t=r.sqrt(s/e)*(r.sin(l)*n+r.cos(l)*i*8/e)),t}),0,1,-1)),R=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),v=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(v,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(y,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),l=0,u=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*u+l,l=u,u=c,r.abs(u)>1e10&&(u*=1e-10,l*=1e-10,a*=1e-10),i==n&&(a=l);return a*=e(t,0)/u,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*R(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*R(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(695);var i=F(n(696));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,l,u,c,d=n(837),h=F(n(49)),f=n(76),p=r(n(1075)),g=r(n(302)),m=F(n(285)),v=F(n(13)),y=F(n(94)),E=F(n(133)),T=F(n(606)),C=F(n(107)),R=F(n(58)),w=F(n(24)),S=F(n(36)),O=F(n(12)),b=F(n(84)),A=F(n(108)),N=F(n(16)),M=F(n(75)),I=n(129),_=n(183),k=n(184),P=n(188),x=n(223),L=n(38);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,d.registerAllModules)(),(0,p.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var U=[v,y,E,T,C,R,w,S,O,b,A,m],H=[N,M];i.default.helper={},i.default.dom={},v.arrayEach(U,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),v.arrayEach(H,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes=null!==(a=i.default.cellTypes)&&void 0!==a?a:{},v.arrayEach((0,P.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,P.getCellType)(e)})),i.default.cellTypes.registerCellType=P.registerCellType,i.default.cellTypes.getCellType=P.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},v.arrayEach((0,I.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(b.toUpperCaseFirst(e),"Editor")]=(0,I.getEditor)(e)})),i.default.editors.registerEditor=I.registerEditor,i.default.editors.getEditor=I.getEditor,i.default.renderers=null!==(l=i.default.renderers)&&void 0!==l?l:{},v.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(b.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators=null!==(u=i.default.validators)&&void 0!==u?u:{},v.arrayEach((0,k.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(b.toUpperCaseFirst(e),"Validator")]=(0,k.getValidator)(e)})),i.default.validators.registerValidator=k.registerValidator,i.default.validators.getValidator=k.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},v.arrayEach((0,x.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,x.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=x.registerPlugin,i.default.plugins.getPlugin=x.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(63),o=n(50),i=n(56),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},function(e,t,n){var r=n(29),o=n(50),i=n(55),a=n(57),s=n(175).CONFIGURABLE,l=n(385),u=n(106),c=u.enforce,d=u.get,h=Object.defineProperty,f=a&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&d(this).source||l(this)}),"toString")},function(e,t,n){"use strict";var r=n(388).IteratorPrototype,o=n(123),i=n(174),a=n(214),s=n(173),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(50),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(269),o=n(215);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(44),i=n(30),a=n(271),s=n(176),l=n(216),u=n(397),c=n(56),d=n(391),h=n(106).enforce,f=n(384),p=!o.ActiveXObject&&"ActiveXObject"in o,g=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=l("WeakMap",g,u);if(f&&p){r=u.getConstructor(g,"WeakMap",!0),s.enable();var v=m.prototype,y=i(v.delete),E=i(v.has),T=i(v.get),C=i(v.set);a(v,{delete:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.delete(e)}return y(this,e)},has:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=h(this);n.frozen||(n.frozen=new r),E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}},function(e,t,n){var r=n(29);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){var r=n(145),o=n(217),i=n(56),a=n(47)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){var r=n(25),o=n(29),i=n(272).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(697),n(698),n(699),n(700);var o=r(n(400)),i=n(291),a=n(585),s=r(n(59)),l=n(582),u=n(188),c=n(591),d=n(189),h=n(130);function f(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}t.CellCoords=h.CellCoords,t.CellRange=h.CellRange,(0,u.registerCellType)(c.TextCellType),f.editors={BaseEditor:d.BaseEditor},f.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},f.DefaultSettings=(0,a.metaSchemaFactory)(),f.hooks=s.default.getSingleton(),f.CellCoords=h.CellCoords,f.CellRange=h.CellRange,f.packageName="handsontable",f.buildDate="10/01/2023 10:13:55",f.version="0.0.0-next-b93689a-20230110",f.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};var p=f;t.default=p},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(402);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(216)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(273),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(122).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(122);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(122).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(57),o=n(145),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(56),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(81),o=n(171),i=n(92);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(81),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=c;return void 0!==d&&(d=o(d),g=u),s(h,g,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var h=i(c/10);return 0===h?o:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var r=n(177),o=n(63),i=n(81),a=n(714),s=n(393),l=n(217),u=n(92),c=n(144),d=n(394),h=n(275),f=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,E,T,C,R,w=h(t),S=0;if(!w||this===f&&s(w))for(v=u(t),y=n?new this(v):f(v);v>S;S++)R=m?g(t[S],S):t[S],c(y,S,R);else for(C=(T=d(t,w)).next,y=n?new this:[];!(E=o(C,T)).done;S++)R=m?a(T,g,[E.value,S],!0):E.value,c(y,S,R);return y.length=S,y}},function(e,t,n){var r=n(61),o=n(395);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(127).forEach,o=n(146)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(25),o=n(44),i=n(415).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t,n){var r=n(25),o=n(44),i=n(415).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(719),n(721)},function(e,t,n){var r=n(25),o=n(44),i=n(417).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(122);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(25),o=n(44),i=n(417).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},function(e,t,n){"use strict";n(216)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(71).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(175).PROPER,o=n(29),i=n(411);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e}))}},function(e,t,n){var r=n(14).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(128),o=n(63),i=n(30),a=n(219),s=n(61),l=n(97),u=n(283),c=n(80),d=n(727),h=n(281),f=n(125),p=n(62),g=n(124),m=n(273),v=n(220),y=n(218),E=n(280),T=n(29),C=E.UNSUPPORTED_Y,R=Math.min,w=[].push,S=i(/./.exec),O=i(w),b=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=p(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");(s=o(y,v,i))&&!((l=v.lastIndex)>g&&(O(h,b(i,g,s.index)),s.length>1&&s.index<i.length&&r(w,h,m(s,1)),d=s[0].length,g=l,h.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return g===i.length?!d&&S(v,"")||O(h,""):O(h,b(i,g)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=s(this),a=p(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new u(C?"^(?:"+o.source+")":o,g),y=void 0===r?4294967295:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];for(var E=0,T=0,w=[];T<a.length;){m.lastIndex=C?0:T;var S,A=v(m,C?b(a,T):a);if(null===A||(S=R(f(m.lastIndex+(C?T:0)),a.length))===E)T=h(a,T,c);else{if(O(w,b(a,E,T)),w.length===y)return w;for(var N=1;N<=A.length-1;N++)if(O(w,A[N]),w.length===y)return w;T=E=S}}return O(w,b(a,E)),w}]}),!!T((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),C)},function(e,t,n){var r=n(61),o=n(422),i=n(97),a=n(47)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},function(e,t,n){"use strict";var r=n(25),o=n(270).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(125),i=n(62),a=n(425),s=n(80),l=r(a),u=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),p=h.length,g=void 0===r?" ":i(r);return f<=p||""==g?h:((d=l(g,c((a=f-p)/g.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(122);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":426,"./af.js":426,"./ar":427,"./ar-dz":428,"./ar-dz.js":428,"./ar-kw":429,"./ar-kw.js":429,"./ar-ly":430,"./ar-ly.js":430,"./ar-ma":431,"./ar-ma.js":431,"./ar-sa":432,"./ar-sa.js":432,"./ar-tn":433,"./ar-tn.js":433,"./ar.js":427,"./az":434,"./az.js":434,"./be":435,"./be.js":435,"./bg":436,"./bg.js":436,"./bm":437,"./bm.js":437,"./bn":438,"./bn-bd":439,"./bn-bd.js":439,"./bn.js":438,"./bo":440,"./bo.js":440,"./br":441,"./br.js":441,"./bs":442,"./bs.js":442,"./ca":443,"./ca.js":443,"./cs":444,"./cs.js":444,"./cv":445,"./cv.js":445,"./cy":446,"./cy.js":446,"./da":447,"./da.js":447,"./de":448,"./de-at":449,"./de-at.js":449,"./de-ch":450,"./de-ch.js":450,"./de.js":448,"./dv":451,"./dv.js":451,"./el":452,"./el.js":452,"./en-au":453,"./en-au.js":453,"./en-ca":454,"./en-ca.js":454,"./en-gb":455,"./en-gb.js":455,"./en-ie":456,"./en-ie.js":456,"./en-il":457,"./en-il.js":457,"./en-in":458,"./en-in.js":458,"./en-nz":459,"./en-nz.js":459,"./en-sg":460,"./en-sg.js":460,"./eo":461,"./eo.js":461,"./es":462,"./es-do":463,"./es-do.js":463,"./es-mx":464,"./es-mx.js":464,"./es-us":465,"./es-us.js":465,"./es.js":462,"./et":466,"./et.js":466,"./eu":467,"./eu.js":467,"./fa":468,"./fa.js":468,"./fi":469,"./fi.js":469,"./fil":470,"./fil.js":470,"./fo":471,"./fo.js":471,"./fr":472,"./fr-ca":473,"./fr-ca.js":473,"./fr-ch":474,"./fr-ch.js":474,"./fr.js":472,"./fy":475,"./fy.js":475,"./ga":476,"./ga.js":476,"./gd":477,"./gd.js":477,"./gl":478,"./gl.js":478,"./gom-deva":479,"./gom-deva.js":479,"./gom-latn":480,"./gom-latn.js":480,"./gu":481,"./gu.js":481,"./he":482,"./he.js":482,"./hi":483,"./hi.js":483,"./hr":484,"./hr.js":484,"./hu":485,"./hu.js":485,"./hy-am":486,"./hy-am.js":486,"./id":487,"./id.js":487,"./is":488,"./is.js":488,"./it":489,"./it-ch":490,"./it-ch.js":490,"./it.js":489,"./ja":491,"./ja.js":491,"./jv":492,"./jv.js":492,"./ka":493,"./ka.js":493,"./kk":494,"./kk.js":494,"./km":495,"./km.js":495,"./kn":496,"./kn.js":496,"./ko":497,"./ko.js":497,"./ku":498,"./ku.js":498,"./ky":499,"./ky.js":499,"./lb":500,"./lb.js":500,"./lo":501,"./lo.js":501,"./lt":502,"./lt.js":502,"./lv":503,"./lv.js":503,"./me":504,"./me.js":504,"./mi":505,"./mi.js":505,"./mk":506,"./mk.js":506,"./ml":507,"./ml.js":507,"./mn":508,"./mn.js":508,"./mr":509,"./mr.js":509,"./ms":510,"./ms-my":511,"./ms-my.js":511,"./ms.js":510,"./mt":512,"./mt.js":512,"./my":513,"./my.js":513,"./nb":514,"./nb.js":514,"./ne":515,"./ne.js":515,"./nl":516,"./nl-be":517,"./nl-be.js":517,"./nl.js":516,"./nn":518,"./nn.js":518,"./oc-lnc":519,"./oc-lnc.js":519,"./pa-in":520,"./pa-in.js":520,"./pl":521,"./pl.js":521,"./pt":522,"./pt-br":523,"./pt-br.js":523,"./pt.js":522,"./ro":524,"./ro.js":524,"./ru":525,"./ru.js":525,"./sd":526,"./sd.js":526,"./se":527,"./se.js":527,"./si":528,"./si.js":528,"./sk":529,"./sk.js":529,"./sl":530,"./sl.js":530,"./sq":531,"./sq.js":531,"./sr":532,"./sr-cyrl":533,"./sr-cyrl.js":533,"./sr.js":532,"./ss":534,"./ss.js":534,"./sv":535,"./sv.js":535,"./sw":536,"./sw.js":536,"./ta":537,"./ta.js":537,"./te":538,"./te.js":538,"./tet":539,"./tet.js":539,"./tg":540,"./tg.js":540,"./th":541,"./th.js":541,"./tk":542,"./tk.js":542,"./tl-ph":543,"./tl-ph.js":543,"./tlh":544,"./tlh.js":544,"./tr":545,"./tr.js":545,"./tzl":546,"./tzl.js":546,"./tzm":547,"./tzm-latn":548,"./tzm-latn.js":548,"./tzm.js":547,"./ug-cn":549,"./ug-cn.js":549,"./uk":550,"./uk.js":550,"./ur":551,"./ur.js":551,"./uz":552,"./uz-latn":553,"./uz-latn.js":553,"./uz.js":552,"./vi":554,"./vi.js":554,"./x-pseudo":555,"./x-pseudo.js":555,"./yo":556,"./yo.js":556,"./zh-cn":557,"./zh-cn.js":557,"./zh-hk":558,"./zh-hk.js":558,"./zh-mo":559,"./zh-mo.js":559,"./zh-tw":560,"./zh-tw.js":560};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=732},function(e,t,n){var r=n(25),o=n(734);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(128),o=n(88),i=n(115),a=n(92),s=n(146),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var r=n(141),o=n(81),i=n(165),a=n(92),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=n(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DESC=t.ASC=void 0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}};var o=r(n(32)),i=r(n(21));n(4),n(40),n(1),n(5),n(6),n(65),n(89);var a=n(36),s=n(58),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}function l(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:l,getItems:s}};var o=r(n(32));n(4),n(1),n(52),n(5),n(6);var i=n(58),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(32)),a=r(n(2)),s=r(n(3)),l=r(n(26)),u=r(n(78)),c=r(n(79));n(4),n(1),n(5),n(7),n(6),n(72),n(73);var d=n(16),h=r(n(49)),f=n(75),p=r(n(130)),g=n(575),m=n(291);function v(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var y=new WeakMap,E=new WeakMap,T=new WeakMap,C=function(){function e(t){(0,a.default)(this,e),(0,l.default)(this,"instance",void 0),(0,l.default)(this,"eventManager",void 0),(0,l.default)(this,"settings",void 0),(0,l.default)(this,"THEAD",void 0),(0,l.default)(this,"TBODY",void 0),(0,l.default)(this,"_wt",void 0),(0,l.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,l.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),y.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize(e)}},{key:"getCellAtCoords",value:function(e,t){var n=this._wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wt.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=y.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,d.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var e=this,t=y.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,d.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,d.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,f.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,d.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,f.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,f.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(u===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,d.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=y.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,m.isRootInstance)(e.instance)},preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),(0,c.default)(e,T,t.length),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),(0,c.default)(e,E,t.length),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,o.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),p=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,l,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,p,g,f),e.instance.runHooks("afterRenderer",r,s,l,p,g,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onContainerElementResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||((0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e._wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,f.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e._wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,f.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e._wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e._wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,f.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e._wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.afterRender(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);i=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?i.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,o.default)(u,4),d=c[0],h=c[1],f=c[2],p=c[3];return[d>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(h,1)):h,f>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(f,-1)):f,p>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(p,-1)):p]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsStart&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this._wt=new p.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,l=a.height;this.setLastSize(s,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e._wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if((0,d.isInput)(e))return!0;var t=(0,d.isChildOf)(e,this.instance.view._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return y.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,d.hasClass)(n,"relative"))return(0,d.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.instance.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.firstChild){var o=t.firstChild;(0,d.hasClass)(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,n,r):((0,d.empty)(t),this.appendColHeader(e,t,n,r))}else{var i=this.instance.rootDocument,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="colHeader",this.updateCellHeader(s,e,n,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetColHeader",e,t,r)}},{key:"updateCellHeader",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t,i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,d.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,d.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,d.fastInnerHTML)(e,n(t,r)):((0,d.fastInnerText)(e,String.fromCharCode(160)),(0,d.addClass)(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=y.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=y.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"getColumnHeadersCount",value:function(){return(0,u.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,u.default)(this,T)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=C},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(742)),s=r(n(289)),l=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(567)),d=r(n(744)),h=r(n(772)),f=r(n(773)),p=r(n(774)),g=r(n(289)),m=n(12),v=n(16);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=y(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new h.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new f.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new p.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new d.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,v.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,v.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(g.default);t.default=E},function(e,t,n){"use strict";var r=n(30),o=n(141),i=n(56),a=n(55),s=n(180),l=n(166),u=Function,c=r([].concat),d=r([].join),h={},f=function(e,t,n){if(!a(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=u("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=c(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(1),n(23),n(67);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(26)),l=n(16),u=n(107),c=n(13),d=n(108),h=n(94),f=n(131),p=function(){function e(t,n,r,o,a,c){var d=this;(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"resizeObserver",new ResizeObserver((function(e){(0,u.requestAnimationFrame)((function(){Array.isArray(e)&&e.length&&d.wtSettings.getSetting("onContainerElementResize")}))}))),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=c;var h=this.domBindings,f=h.rootDocument,p=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,l.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,l.getScrollableElement)(c.TABLE),this.initOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=p.scrollX,this.lastScrollY=p.scrollY}return(0,a.default)(e,[{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(f.TopOverlay,e),this.bottomOverlay=(0,o.default)(f.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(f.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(f.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(f.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),l||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,d.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,l.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.updateLastSpreaderSize();t&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"updateLastSpreaderSize",value:function(){var e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var l=n.wtRootElement,u=l.scrollHeight,c=l.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=u<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>u&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,c.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,c.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=p},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(747)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,l){var u;return(0,i.default)(this,n),(u=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,u.inlineStartOverlay=l,u}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,c.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}}]),n}(h.Overlay);t.BottomInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(226);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(752)),s=n(570),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.default)(e,[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof a.default}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.default)(e,[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}]),n}(r(n(569)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(185)),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&(0,c.addClass)(u,"rowHeader")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(64)),a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(74),h=n(66),f=n(226),p=r(n(185));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=!1,v=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!m&&e>1e3&&(m=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=n(226);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(185)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=r}return(0,i.default)(e,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,l=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(l=e.getSetting("onModifyRowHeaderWidth",l)))for(var u=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<u;d++){var h=Array.isArray(l)?l[d]:l;h=null==h?c:h,this.headerWidths.set(d,h)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(26)),d=r(n(567));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var l=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),l,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(l,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(289)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),(0,a.default)(this,"lastScrolledColumnPos",-1),(0,a.default)(this,"lastScrolledRowPos",-1),this.dataAccessObject=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalColumns;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleColumn(),s=this.getLastVisibleColumn(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedColumnsStart,d=u.inlineStartOverlay;if(l&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,l?e>this.lastScrolledColumnPos:t):(l&&(e<a||e>s)||!l)&&(h=d.scrollTo(e,l?e>s:t)),h&&(this.lastScrolledColumnPos=e),h}},{key:"scrollViewportVertically",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalRows;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleRow(),s=this.getLastVisibleRow(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedRowsBottom,d=u.fixedRowsTop,h=u.topOverlay;if(l&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,l?e>this.lastScrolledRowPos:n):(l&&(e<a||e>s)||!l)&&(f=h.scrollTo(e,l?e>s:n)),f&&(this.lastScrolledRowPos=e),f}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var u=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(f+=t.sumCellSizes(p-1,p),u.top+c-f<=h){l=p;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.getScrollTop)(i,i);if(l.top>u)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=Math.abs((0,s.getScrollLeft)(i,i));if(l.left>u)for(var c=(0,s.innerWidth)(i),d=r.getRowHeaderWidth(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.left+d-u>=c){a=h-2;break}}return a}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(765)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsBottom",-1),l.cachedFixedRowsBottom=l.wtSettings.getSetting("fixedRowsBottom"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,h.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("defaultRowHeight"),i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,h.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,l=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===l){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=a),u=Math.min(u,t.wtRootElement.scrollWidth),s.width="".concat(u,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(p.Overlay);t.BottomOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(767)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,f.CLONE_INLINE_START,o,a)}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultColumnWidth"),r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&(this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1));return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(h.Overlay);t.InlineStartOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(572)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_INLINE_START)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(769)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a,l,u){var c;return(0,i.default)(this,n),c=t.call(this,e,r,g.CLONE_TOP_INLINE_START_CORNER,o,a),(0,d.default)((0,s.default)(c),"topOverlay",void 0),(0,d.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=l,c.inlineStartOverlay=u,c}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,h.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,h.resetCssTransform)(e);var r=(0,h.outerHeight)(this.clone.wtTable.TABLE),o=(0,h.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(p.Overlay);t.TopInlineStartCornerOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(771)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsTop",-1),l.cachedFixedRowsTop=l.wtSettings.getSetting("fixedRowsTop"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,h.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultRowHeight"),r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;t&&(this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1));if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),l=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}return o}}]),n}(p.Overlay);t.TopOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(574);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=n(12),u=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,l.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,onContainerElementResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,l.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(31);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=r(n(151)),d=r(n(572)),h=r(n(290)),f=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",h.style.position="absolute",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,f.mixin)(g,d.default),(0,f.mixin)(g,h.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=n(12),l=n(775),u=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,l=o.documentElement.offsetWidth,u=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=l-(d?h.right-l:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,l):Math.min(this.getContainerFillWidth(),f,l),s===i&&u>0&&this.sumColumnWidths(0,u-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var p=n.getSetting("stretchH");return"none"!==p&&p?e:Math.max(e,(0,a.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,a.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===l.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;s<0&&(s=0);var u=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return u&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,u),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new l.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("viewportRowCalculatorOverride"),calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN,o<0&&(o=0);var i=t.getSetting("fixedColumnsStart");if(i){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new l.ViewportColumnsCalculator({viewportSize:r,scrollOffset:Math.abs(o),totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(l.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(l.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow;if(null===t&&null===n)return!1;var r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn;if(null===t&&null===n)return!1;var r=this.columnsRenderCalculator,o=r.startColumn,i=r.endColumn;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(23),n(43);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(563));t.ViewportColumnsCalculator=i.default;var a=r(n(564));t.ViewportRowsCalculator=a.default;var s=n(286);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(41),n(20),n(1),n(23),n(777);var o=r(n(21)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(16),u=r(n(779)),c=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(this.settings.createCellCoords(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,p=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,m=d.selectionType,v=void 0===m||["active-header","header"].includes(m);if(v&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var T=e.wtTable.columnFilter.renderedToSource(E);if(T>=s&&T<=c){var C=e.wtTable.getColumnHeaders(T),R=C.length-1;g&&C.length>1&&(C=[C[R]]);for(var w=0;w<C.length;w+=1){var S=[],O=C[w];h&&S.push(h),f&&S.push(f),w=g?R:w;var b=e.getSetting("onBeforeHighlightingColumnHeader",T,w,{selectionType:m,columnCursor:y,selectionWidth:c-s+1,classNames:S});b!==T&&(O=e.wtTable.getColumnHeader(b,w)),(0,l.addClass)(O,S)}y+=1}}if(null!==a&&null!==u)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=u){var I=e.wtTable.getRowHeaders(M),_=I.length-1;g&&I.length>1&&(I=[I[_]]);for(var k=0;k<I.length;k+=1){var P=[],x=I[k];h&&P.push(h),p&&P.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:u-a+1,classNames:P});L!==M&&(x=e.wtTable.getRowHeader(L,k)),(0,l.addClass)(x,P)}A+=1}if(null!==s&&null!==c)for(var D=0;D<n;D+=1){var F=e.wtTable.columnFilter.renderedToSource(D);M>=a&&M<=u&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=u?p&&this.addClassAtCoords(e,M,F,p):F>=s&&F<=c&&f&&this.addClassAtCoords(e,M,F,f);var U=e.getSetting("onAfterDrawSelection",M,F,this.settings.layerLevel);"string"==typeof U&&this.addClassAtCoords(e,M,F,U)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=c},function(e,t,n){var r=n(25),o=n(778).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(57),o=n(30),i=n(170),a=n(88),s=o(n(211).f),l=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,d=0,h=[];c>d;)n=u[d++],r&&!s(o,n)||l(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(83);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(16),l=n(75),u=n(12),c=n(94),d=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t,n){var r=e.main.childNodes[t];e.eventManager.addEventListener(r,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","start","bottom","end","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,c.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[n]=t}));var r={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,r,o,i){var a=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=this.selectionHandles.styles,l=s.top,u=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(l.borderWidth,10),f=parseInt(l.width,10),p=parseInt(u.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();l.top="".concat(parseInt(n-f-1,10),"px"),l[a]="".concat(parseInt(r-f-1,10),"px"),u.top="".concat(parseInt(n-p/4*3,10),"px"),u[a]="".concat(parseInt(r-p/4*3,10),"px");var v=Math.min(parseInt(r+o,10),g-f-2*h),y=Math.min(parseInt(r+o-p/4,10),g-p-2*h);c[a]="".concat(v,"px"),d[a]="".concat(y,"px");var E=Math.min(parseInt(n+i,10),m-f-2*h),T=Math.min(parseInt(n+i-p/4,10),m-p-2*h);c.top="".concat(E,"px"),d.top="".concat(T,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",u.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(l.display="none",c.display="none",u.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",u.zIndex="9999"):(l.zIndex="",u.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,l,u=this.wot,d=u.wtTable,h=u.rootDocument,f=u.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var v=p-1;v>=0;v-=1){var y=d.rowFilter.renderedToSource(v);if(y>=e[0]&&y<=e[2]){n=y;break}}for(var E=d.getRenderedColumnsCount(),T=0;T<E;T+=1){var C=d.columnFilter.renderedToSource(T);if(C>=e[1]&&C<=e[3]){r=C,l=e[1];break}}for(var R=E-1;R>=0;R-=1){var w=d.columnFilter.renderedToSource(R);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,b=O?d.getCell(this.wot.createCellCoords(n,i)):S,A=(0,s.offset)(S),N=O?(0,s.offset)(b):A,M=(0,s.offset)(d.TABLE),I=(0,s.outerWidth)(d.TABLE),_=A.top,k=A.left,P=this.wot.wtSettings.getSetting("rtlMode"),x=0,L=0;if(P){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,x=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,x=k-M.left-1;if(this.isEntireColumnSelected(t,n)){var U=this.getDimensionsFromHeader("columns",r,i,a,M),H=null;if(U){var V=(0,o.default)(U,3);H=V[0],x=V[1],L=V[2]}H&&(S=H)}var j=_-M.top-1,B=N.top+(0,s.outerHeight)(b)-_;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,l,M),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],j=G[1],B=G[2]}Y&&(S=Y)}var z=(0,s.getComputedStyle)(S,f);parseInt(z.borderTopWidth,10)>0&&(j+=1,B=B>0?B-1:0),parseInt(z[P?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,L=L>0?L-1:0);var K=P?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(B,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(j+B-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(x+L-X,"px"),this.endStyle.height="".concat(B+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var $=this.wot.getSetting("onModifyGetCellCoords",n,i),Q=n,Z=i;if($&&Array.isArray($)){var J=(0,o.default)($,4);Q=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange(Q,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(j+B+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+L+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(d.TABLE),te=ee===f;te&&(ee=h.documentElement);var ne=parseInt(this.cornerDefaultStyle.width,10)/2,re=parseInt(this.cornerDefaultStyle.height,10)/2;if(i===this.wot.getSetting("totalColumns")-1){var oe=te?b.getBoundingClientRect().left:b.offsetLeft;(P?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[P?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(j+B+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,j,x,L,B)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=l(t,m-r),g=l(n,m-r),!p||!g)return!1;var v=(0,s.offset)(p),y=(0,s.offset)(g);return p&&g&&(d=v[f]-o[f]-1,h=y[f]+u(g)-v[f]),[p,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"start"!==e&&"end"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(25),o=n(44),i=n(63),a=n(30),s=n(121),l=n(57),u=n(140),c=n(29),d=n(55),h=n(114),f=n(61),p=n(88),g=n(209),m=n(62),v=n(174),y=n(123),E=n(170),T=n(143),C=n(272),R=n(212),w=n(116),S=n(71),O=n(378),b=n(211),A=n(93),N=n(139),M=n(210),I=n(172),_=n(207),k=n(47),P=n(576),x=n(577),L=n(782),D=n(214),F=n(106),U=n(127).forEach,H=M("hidden"),V=F.set,j=F.getterFor("Symbol"),B=Object.prototype,W=o.Symbol,Y=W&&W.prototype,G=o.TypeError,z=o.QObject,K=w.f,X=S.f,q=C.f,$=b.f,Q=a([].push),Z=N("symbols"),J=N("op-symbols"),ee=N("wks"),te=!z||!z.prototype||!z.prototype.findChild,ne=l&&c((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(B,t);r&&delete B[t],X(e,t,n),r&&e!==B&&X(B,t,r)}:X,re=function(e,t){var n=Z[e]=y(Y);return V(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},oe=function(e,t,n){e===B&&oe(J,t,n),f(e);var r=g(t);return f(n),d(Z,r)?(n.enumerable?(d(e,H)&&e[H][r]&&(e[H][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,H)||X(e,H,v(1,{})),e[H][r]=!0),ne(e,r,n)):X(e,r,n)},ie=function(e,t){f(e);var n=p(t),r=E(n).concat(ue(n));return U(r,(function(t){l&&!i(ae,n,t)||oe(e,t,n[t])})),e},ae=function(e){var t=g(e),n=i($,this,t);return!(this===B&&d(Z,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,H)&&this[H][t])||n)},se=function(e,t){var n=p(e),r=g(t);if(n!==B||!d(Z,r)||d(J,r)){var o=K(n,r);return!o||!d(Z,r)||d(n,H)&&n[H][r]||(o.enumerable=!0),o}},le=function(e){var t=q(p(e)),n=[];return U(t,(function(e){d(Z,e)||d(I,e)||Q(n,e)})),n},ue=function(e){var t=e===B,n=q(t?J:p(e)),r=[];return U(n,(function(e){!d(Z,e)||t&&!d(B,e)||Q(r,Z[e])})),r};u||(A(Y=(W=function(){if(h(Y,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=_(e),n=function(e){this===B&&i(n,J,e),d(this,H)&&d(this[H],t)&&(this[H][t]=!1),ne(this,t,v(1,e))};return l&&te&&ne(B,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return j(this).tag})),A(W,"withoutSetter",(function(e){return re(_(e),e)})),b.f=ae,S.f=oe,O.f=ie,w.f=se,T.f=C.f=le,R.f=ue,P.f=function(e){return re(k(e),e)},l&&(X(Y,"description",{configurable:!0,get:function(){return j(this).description}}),s||A(B,"propertyIsEnumerable",ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(E(ee),(function(e){x(e)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ie(y(e),t)},defineProperty:oe,defineProperties:ie,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le}),L(),D(W,"Symbol"),I[H]=!0},function(e,t,n){var r=n(44);e.exports=r},function(e,t,n){var r=n(63),o=n(101),i=n(47),a=n(93);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(25),o=n(101),i=n(55),a=n(62),s=n(139),l=n(578),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(25),o=n(55),i=n(169),a=n(142),s=n(139),l=n(578),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(63),s=n(30),l=n(29),u=n(145),c=n(50),d=n(56),h=n(169),f=n(180),p=n(140),g=o("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),E=s("".replace),T=s(1..toString),C=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!p||l((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=f(arguments),r=t;if((d(t)||void 0!==e)&&!h(e))return u(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!h(t))return t}),n[1]=t,i(g,null,n)},A=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(R,e)&&!m(w,o)||m(w,e)&&!m(R,r)?"\\u"+T(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,n){var r=f(arguments),o=i(S?b:g,null,r);return O&&"string"==typeof o?E(o,C,A):o}})},function(e,t,n){var r=n(25),o=n(140),i=n(29),a=n(212),s=n(81);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73),n(1),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(133),l=n(13),u=n(36),c=n(58),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,this.propToCol(t),r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,this.colToProp(t),o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0;var o=r(n(32)),i=r(n(64)),a=r(n(2)),s=r(n(3));n(4),n(1),n(52),n(5),n(6),n(40),n(48),n(222),n(181),n(65),n(35),n(22),n(31),n(41),n(147);var l,u=n(13),c=n(66),d=n(74),h=n(579),f=n(794),p=r(n(86)),g=n(12),m=n(24),v=n(796),y=new Set(["getFirstNotHiddenIndex"]),E=function(){function e(){var t=this;(0,a.default)(this,e),this.indexesSequence=new h.IndexesSequence,this.trimmingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new f.MapCollection,this.hidingChangesObservable=new v.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,s.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,h.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof h.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof h.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getFirstNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e-t;y.has("getFirstNotHiddenIndex")&&(y.delete("getFirstNotHiddenIndex"),(0,d.warn)((0,c.toSingleLine)(l||(l=(0,i.default)(['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next \n major release. Please use "getNearestNotHiddenIndex" instead.'],['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next\\x20\n major release. Please use "getNearestNotHiddenIndex" instead.'])))));var o=this.getPhysicalFromVisualIndex(e);return null===o?!0===n&&r!==e-t?this.getFirstNotHiddenIndex(r,-t,!1,r):null:!1===this.isHidden(o)?e:this.getFirstNotHiddenIndex(e+t,t,n,r)}},{key:"getNearestNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getPhysicalFromVisualIndex(e);if(null===r)return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;var o=Array.from(this.fromVisualToRenderableIndexesCache.keys()),i=-1;return-1===(i=t>0?o.findIndex((function(t){return t>e})):o.reverse().findIndex((function(t){return t<e})))?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesSequence.init(e),this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){this.indexesSequence.setValues(e)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,u.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,h.getListWithRemovedItems)(this.getIndexesSequence(),r),s=o-i;if(t+i<o){var l=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];s=a.indexOf(l)}this.setIndexesSequence((0,h.getListWithInsertedItems)(a,s,r))}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,m.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,u.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesSequence.insert(o,i),this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesSequence.remove(e),this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderableIndexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}();t.IndexMapper=E,(0,g.mixin)(E,p.default)},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(8);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(20),n(65),n(4),n(1),n(6),n(31),n(41),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(26)),f=n(227),p=n(293),g=n(228),m=n(580),v=n(58);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var E=function(e){(0,u.default)(n,e);var t=y(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,v.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=E},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(227),d=n(228),h=n(581);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(23),n(43),t.__esModule=!0;var r=n(795);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(294);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(294),c=n(13),d=n(24);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(4),n(1),n(52),n(5),n(6),n(147),n(23),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(78)),s=r(n(79)),l=n(797),u=n(798);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,d,{writable:!0,value:new Set}),c(this,h,{writable:!0,value:[]}),c(this,f,{writable:!0,value:[]}),c(this,p,{writable:!0,value:!1}),c(this,g,{writable:!0,value:!1}),(0,s.default)(this,g,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,h),(0,a.default)(this,f))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,f);(0,a.default)(this,p)&&(0,a.default)(this,h).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,g)):(0,s.default)(this,h,new Array(e.length).fill((0,a.default)(this,g))),(0,a.default)(this,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,h)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(79)),s=r(n(78)),l=n(12),u=r(n(86));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(){(0,o.default)(this,e),c(this,d,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,d)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,d,e)}}]),e}();t.ChangesObserver=h,(0,l.mixin)(h,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=u;var o=r(n(102)),i=r(n(800)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(72),n(73)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(26)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=(i={languageCode:"en-US"},(0,a.default)(i,s.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,["Copy with header","Copy with headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,["Copy with group header","Copy with group headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,["Copy header only","Copy headers only"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,a.default)(i,s.FILTERS_CONDITIONS_NONE,"None"),(0,a.default)(i,s.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,a.default)(i,s.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,a.default)(i,s.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,a.default)(i,s.FILTERS_CONDITIONS_AFTER,"After"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEFORE,"Before"),(0,a.default)(i,s.FILTERS_CONDITIONS_TODAY,"Today"),(0,a.default)(i,s.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,a.default)(i,s.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),(0,a.default)(i,s.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,a.default)(i,s.FILTERS_LABELS_CONJUNCTION,"And"),(0,a.default)(i,s.FILTERS_LABELS_DISJUNCTION,"Or"),(0,a.default)(i,s.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,a.default)(i,s.FILTERS_BUTTONS_CLEAR,"Clear"),(0,a.default)(i,s.FILTERS_BUTTONS_OK,"OK"),(0,a.default)(i,s.FILTERS_BUTTONS_CANCEL,"Cancel"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),i);t.default=u},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.createHighlight=function(e,t){return m(e)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:e},t))};var o=r(n(26)),i=r(n(102)),a=n(103),s=r(n(803)),l=r(n(805)),u=r(n(806)),c=r(n(807)),d=r(n(808)),h=r(n(811));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var p=(0,i.default)("highlight/types"),g=p.register,m=p.getItem;g(a.ACTIVE_HEADER_TYPE,s.default),g(a.AREA_TYPE,l.default),g(a.CELL_TYPE,u.default),g(a.CUSTOM_SELECTION_TYPE,c.default),g(a.FILL_TYPE,d.default),g(a.HEADER_TYPE,h.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["activeHeaderClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.activeHeaderClassName,n=(0,i.default)(e,l);return new s.default(c(c({highlightHeaderClassName:t},n),{},{selectionType:a.ACTIVE_HEADER_TYPE}))};t.default=d},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["layerLevel","areaCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.layerLevel,n=e.areaCornerVisible,r=(0,i.default)(e,l);return new s.default(c(c({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r),{},{selectionType:a.AREA_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["cellCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.cellCornerVisible,n=(0,i.default)(e,l);return new s.default(c(c({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n),{},{selectionType:a.CELL_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["border","visualCellRange"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.border,n=e.visualCellRange,r=(0,i.default)(e,l);return new s.default(c(c(c({},t),r),{},{selectionType:a.CUSTOM_SELECTION_TYPE}),n)};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(297);var o=r(n(26)),i=r(n(810)),a=n(103),s=r(n(153));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=Object.assign({},((0,i.default)(e),e));return new s.default(u(u({className:"fill",border:{width:1,color:"#ff0000"}},t),{},{selectionType:a.FILL_TYPE}))};t.default=c},function(e,t,n){"use strict";var r=n(57),o=n(30),i=n(63),a=n(29),s=n(170),l=n(212),u=n(211),c=n(81),d=n(165),h=Object.assign,f=Object.defineProperty,p=o([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||"abcdefghijklmnopqrst"!=s(h({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,h=l.f,f=u.f;o>a;)for(var g,m=d(arguments[a++]),v=h?p(s(m),h(m)):s(m),y=v.length,E=0;y>E;)g=v[E++],r&&!i(f,m,g)||(n[g]=m[g]);return n}:h},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["headerClassName","rowClassName","columnClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=(0,i.default)(e,l);return new s.default(c(c({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o),{},{highlightOnlyClosestHeader:!0,selectionType:a.HEADER_TYPE}))};t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(64));n(4),n(1),n(52),n(5),n(6),n(20),n(48),n(31),n(41),n(72),n(73),n(23);var a,s=r(n(2)),l=r(n(3)),u=r(n(584)),c=n(103),d=r(n(813)),h=n(12),f=n(24),p=n(13),g=r(n(86)),m=r(n(814)),v=n(229),y=n(66),E=function(){function e(t,n){var r=this;(0,s.default)(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new d.default((function(e,t,n){return r.tableProps.createCellRange(e,t,n)})),this.highlight=new u.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disabledCellSelection:function(e,t){return r.tableProps.isDisabledCellSelection(e,t)},cellCornerVisible:function(){return r.isCellCornerVisible.apply(r,arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible.apply(r,arguments)},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},createCellRange:function(e,t,n){return r.tableProps.createCellRange(e,t,n)},rowIndexMapper:function(){return r.tableProps.rowIndexMapper()},columnIndexMapper:function(){return r.tableProps.columnIndexMapper()}}),this.transformation=new m.default(this.selectedRange,{countRows:function(){return r.tableProps.countRowsTranslated()},countCols:function(){return r.tableProps.countColsTranslated()},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("beforeTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("afterTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("insertRowRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertRowRequire"].concat(t))})),this.transformation.addLocalHook("insertColRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertColRequire"].concat(t))}))}return(0,l.default)(e,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=(0,f.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,i=e.row<0,a=e.col<0,s=i&&a,l=e.clone();this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),l),(!r||r&&!o&&(0,f.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(l),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){var t=e.clone();this.runLocalHooks("beforeSetRangeEnd",t),this.begin();var n=this.selectedRange.current();"single"!==this.settings.selectionMode&&n.setTo(this.tableProps.createCellCoords(t.row,t.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(c.CELL_TYPE,n.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().syncWith(n);var r=this.getLayerLevel();r<this.highlight.layerLevel&&((0,p.arrayEach)(this.highlight.getAreas(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getHeaders(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(r);var o=this.highlight.createOrGetArea(),i=this.highlight.createOrGetHeader(),a=this.highlight.createOrGetActiveHeader();if(o.clear(),i.clear(),a.clear(),this.highlight.isEnabledFor(c.AREA_TYPE,n.highlight)&&(this.isMultiple()||r>=1)&&(o.add(n.from).add(n.to).commit(),1===r)){var s=this.selectedRange.previous();this.highlight.useLayerLevel(r-1).createOrGetArea().add(s.from).commit().syncWith(s),this.highlight.useLayerLevel(r)}if(this.highlight.isEnabledFor(c.HEADER_TYPE,n.highlight)){var l=0===this.tableProps.countRowsTranslated(),u=0===this.tableProps.countColsTranslated(),d=n;if((l||u)&&(d=n.clone()),l&&(d.from.row=-1),u&&(d.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&d.from.normalize(),i.add(d.from).commit()):i.add(d.from).add(d.to).commit(),this.isEntireRowSelected())this.tableProps.countCols()===n.getWidth()&&a.add(this.tableProps.createCellCoords(n.from.row,-1)).add(this.tableProps.createCellCoords(n.to.row,-1)).commit();if(this.isEntireColumnSelected())this.tableProps.countRows()===n.getHeight()&&a.add(this.tableProps.createCellCoords(-1,n.from.col)).add(this.tableProps.createCellCoords(-1,n.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,h.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&this.isEntireRowSelected(e)}},{key:"isEntireRowSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(e)}},{key:"isEntireColumnSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.tableProps.countRows(),r=this.tableProps.countCols();if(e||t||0!==n&&0!==r){var o=this.tableProps.createCellCoords(t?-1:0,e?-1:0),i=this.tableProps.createCellCoords(n-1,r-1);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(i),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=(0,v.detectSelectionType)(e);if(n===v.SELECTION_TYPE_EMPTY)return!1;if(n===v.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,y.toSingleLine)(a||(a=(0,i.default)(["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, \n columnEnd/columnPropEnd]]) or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass\\x20\n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\\x20\n columnEnd/columnPropEnd]]) or as an array of CellRange objects."]))));var r=(0,v.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),s=this.tableProps.countRows(),l=this.tableProps.countCols(),u=!e.some((function(e){var t=r(e),n=(0,o.default)(t,4),i=n[0],a=n[1],u=n[2],c=n[3];return!((0,v.isValidCoord)(i,s)&&(0,v.isValidCoord)(a,l)&&(0,v.isValidCoord)(u,s)&&(0,v.isValidCoord)(c,l))}));return u&&(this.clear(),(0,p.arrayEach)(e,(function(e){var n=r(e),i=(0,o.default)(n,4),a=i[0],s=i[1],l=i[2],u=i[3];t.setRangeStartOnly(t.tableProps.createCellCoords(a,s),!1),t.setRangeEnd(t.tableProps.createCellCoords(l,u)),t.finish()}))),u}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countCols(),a=this.tableProps.countRows(),s=(0,v.isValidCoord)(r,i)&&(0,v.isValidCoord)(o,i);return s&&(this.setRangeStartOnly(this.tableProps.createCellCoords(n,r)),this.setRangeEnd(this.tableProps.createCellCoords(a-1,o)),this.finish()),s}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.tableProps.countRows(),o=this.tableProps.countCols(),i=(0,v.isValidCoord)(e,r)&&(0,v.isValidCoord)(t,r);return i&&(this.setRangeStartOnly(this.tableProps.createCellCoords(e,n)),this.setRangeEnd(this.tableProps.createCellCoords(t,o-1)),this.finish()),i}},{key:"refresh",value:function(){if(this.highlight.getCustomSelections().forEach((function(e){e.commit()})),this.isSelected()){var e=this.highlight.getCell(),t=this.getLayerLevel();e.commit().syncWith(this.selectedRange.current());for(var n=0;n<this.selectedRange.size();n+=1){this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();r.commit(),o.commit(),i.commit()}this.highlight.useLayerLevel(t)}}}]),e}();(0,h.mixin)(E,g.default);var T=E;t.default=T},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(31),n(41),n(296),n(4),n(5),n(6),n(54),n(186);var o=r(n(2)),i=r(n(3)),a=function(e){function t(e){(0,o.default)(this,t),this.ranges=[],this.createCellRange=e}return(0,i.default)(t,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(this.createCellRange(e)),this}},{key:"pop",value:function(){return this.ranges.pop(),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some((function(t){return t.includes(e)}))}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:e,value:function(){return this.ranges[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=r(n(86)),l=function(){function e(t,n){(0,o.default)(this,e),this.range=t,this.options=n}return(0,i.default)(e,[{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.options.createCellCoords(e,t),o=this.range.current().highlight,i=this.options.visualToRenderableCoords(o),a=i.row,s=i.col,l=o,u=0,c=0;if(this.runLocalHooks("beforeTransformStart",r),null!==a&&null!==s){var d=this.options.countRows(),h=this.options.countCols(),f=this.options.fixedRowsBottom(),p=this.options.minSpareRows(),g=this.options.minSpareCols(),m=this.options.autoWrapRow(),v=this.options.autoWrapCol();a+e>d-1?n&&p>0&&!(f&&a>=d-f-1)?(this.runLocalHooks("insertRowRequire",d),d=this.options.countRows()):v&&(r.row=1-d,r.col=s+r.col===h-1?1-h:1):v&&a+r.row<0&&s+r.col>=0&&(r.row=d-1,r.col=s+r.col===0?h-1:-1),s+r.col>h-1?n&&g>0?(this.runLocalHooks("insertColRequire",h),h=this.options.countCols()):m&&(r.row=a+r.row===d-1?1-d:1,r.col=1-h):m&&s+r.col<0&&a+r.row>=0&&(r.row=a+r.row===0?d-1:-1,r.col=h-1);var y=this.options.createCellCoords(a+r.row,s+r.col);u=0,c=0,y.row<0?(u=-1,y.row=0):y.row>0&&y.row>=d&&(u=1,y.row=d-1),y.col<0?(c=-1,y.col=0):y.col>0&&y.col>=h&&(c=1,y.col=h-1),l=this.options.renderableToVisualCoords(y)}return this.runLocalHooks("afterTransformStart",l,u,c),l}},{key:"transformEnd",value:function(e,t){var n=this.options.createCellCoords(e,t),r=this.range.current(),o=r.to,i=0,a=0;this.runLocalHooks("beforeTransformEnd",n);var s=this.options.visualToRenderableCoords(r.highlight),l=s.row,u=s.col;if(null!==l&&null!==u){var c=this.options.countRows(),d=this.options.countCols(),h=this.options.visualToRenderableCoords(r.to),f=h.row,p=h.col,g=this.options.createCellCoords(f+n.row,p+n.col);i=0,a=0,g.row<0?(i=-1,g.row=0):g.row>0&&g.row>=c&&(i=1,g.row=c-1),g.col<0?(a=-1,g.col=0):g.col>0&&g.col>=d&&(a=1,g.col=d-1),o=this.options.renderableToVisualCoords(g)}return this.runLocalHooks("afterTransformEnd",o,i,a),o}}]),e}();(0,a.mixin)(l,s.default);var u=l;t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.parse=function(e){var t=[[""]];if(0===e.length)return t;var n,a=0,s=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(i))e=e.replace(i,""),a+=1,t[s][a]="";else if(e.match(r))e=e.replace(r,""),a=0,t[s+=1]=[""];else{var l="";if(e.startsWith('"')){for(var u=0,c=!0;c;){var d=e.slice(0,1);'"'===d&&(u+=1),l+=d,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&u%2==0)&&(c=!1)}l=l.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var h=e.match(o);l=h?h[0]:"",e=e.slice(l.length)}t[s][a]=l}return t},t.stringify=function(e){var t,n,r,o,i,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(a+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?a+='"'.concat(i.replace(/"/g,'""'),'"'):a+=i:a+=null==i?"":i;t!==n-1&&(a+="\n")}return a},n(51),n(561),n(82),n(230),n(39),n(83),n(147),n(22);var r=/^(\r\n|\n\r|\r|\n)/,o=/^[^\t\r\n]+/,i=/^\t/},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(23);var o=r(n(2)),i=r(n(3)),a=r(n(817)),s=r(n(818)),l=r(n(819)),u=r(n(820)),c=r(n(86)),d=n(12),h=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,o.default)(this,e),this.hot=t,this.globalMeta=new a.default(t),this.tableMeta=new s.default(this.globalMeta),this.columnMeta=new l.default(this.globalMeta),this.cellMeta=new u.default(this.columnMeta),i.forEach((function(e){return new e(n)})),this.globalMeta.updateMeta(r)}return(0,i.default)(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(e){this.globalMeta.updateMeta(e)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(e){this.tableMeta.updateMeta(e)}},{key:"getColumnMeta",value:function(e){return this.columnMeta.getMeta(e)}},{key:"updateColumnMeta",value:function(e,t){this.columnMeta.updateMeta(e,t)}},{key:"getCellMeta",value:function(e,t,n){var r=n.visualRow,o=n.visualColumn,i=this.cellMeta.getMeta(e,t);return i.visualRow=r,i.visualCol=o,i.row=e,i.col=t,this.runLocalHooks("afterGetCellMeta",i),i}},{key:"getCellMetaKeyValue",value:function(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}},{key:"setCellMeta",value:function(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}},{key:"updateCellMeta",value:function(e,t,n){this.cellMeta.updateMeta(e,t,n)}},{key:"removeCellMeta",value:function(e,t,n){this.cellMeta.removeMeta(e,t,n)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(e){return this.cellMeta.getMetasAtRow(e)}},{key:"createRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}},{key:"createColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}},{key:"removeColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}},{key:"clearCache",value:function(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}]),e}();t.default=h,(0,d.mixin)(h,c.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(3)),a=r(n(2)),s=n(12),l=n(187),u=r(n(588));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){function e(t){(0,a.default)(this,e),this.metaCtor=(0,i.default)((function e(){(0,a.default)(this,e)})),this.meta=this.metaCtor.prototype,(0,s.extend)(this.meta,(0,u.default)()),this.meta.instance=t}return(0,i.default)(e,[{key:"getMetaConstructor",value:function(){return this.metaCtor}},{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){var t;(0,s.extend)(this.meta,e),(0,l.extendByMetaType)(this.meta,d(d({},e),{},{type:null!==(t=e.type)&&void 0!==t?t:this.meta.type}),e)}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=function(){function e(t){(0,o.default)(this,e);var n=t.getMetaConstructor();this.meta=new n}return(0,i.default)(e,[{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){(0,a.extend)(this.meta,e),(0,s.extendByMetaType)(this.meta,e,e)}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=r(n(589)),u=["data","width"],c=function(){function e(t){var n=this;(0,o.default)(this,e),this.globalMeta=t,this.metas=new l.default((function(){return n._createMeta()}))}return(0,i.default)(e,[{key:"updateMeta",value:function(e,t){var n=this.getMeta(e);(0,a.extend)(n,t),(0,s.extendByMetaType)(n,t)}},{key:"createColumn",value:function(e,t){this.metas.insert(e,t)}},{key:"removeColumn",value:function(e,t){this.metas.remove(e,t)}},{key:"getMeta",value:function(e){return this.metas.obtain(e)}},{key:"getMetaConstructor",value:function(e){return this.metas.obtain(e).constructor}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createMeta",value:function(){return(0,s.columnFactory)(this.globalMeta.getMetaConstructor(),u).prototype}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(48),n(5),n(4),n(1),n(6),n(40);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(187),u=r(n(589)),c=function(){function e(t){var n=this;(0,i.default)(this,e),this.columnMeta=t,this.metas=new u.default((function(){return n._createRow()}))}return(0,a.default)(e,[{key:"updateMeta",value:function(e,t,n){var r=this.getMeta(e,t);(0,s.extend)(r,n),(0,l.extendByMetaType)(r,n)}},{key:"createRow",value:function(e,t){this.metas.insert(e,t)}},{key:"createColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}},{key:"removeRow",value:function(e,t){this.metas.remove(e,t)}},{key:"removeColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}},{key:"getMeta",value:function(e,t,n){var r=this.metas.obtain(e).obtain(t);return void 0===n?r:r[n]}},{key:"setMeta",value:function(e,t,n,r){var o,i=this.metas.obtain(e).obtain(t);null===(o=i._automaticallyAssignedMetaProps)||void 0===o||o.delete(n),i[n]=r}},{key:"removeMeta",value:function(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}},{key:"getMetas",value:function(){for(var e=[],t=Array.from(this.metas.values()),n=0;n<t.length;n++)e.push.apply(e,(0,o.default)(t[n].values()));return e}},{key:"getMetasAtRow",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createRow",value:function(){var e=this;return new u.default((function(t){return e._createMeta(t)}))}},{key:"_createMeta",value:function(e){return new(this.columnMeta.getMetaConstructor(e))}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.replaceData=function(e,t,n,r){var u=r.hotInstance,c=r.dataMap,d=r.dataSource,h=r.internalSource,f=r.source,p=r.metaManager,g=r.firstRun,m=(0,i.toUpperCaseFirst)(h),v=u.getSettings();Array.isArray(v.dataSchema)?u.dataType="array":(0,a.isFunction)(v.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks("before".concat(m),e,g,f);var y=new s.default(u,e,p);if(t(y),"object"===(0,o.default)(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("".concat(h," only accepts array of objects or array of arrays (").concat((0,o.default)(e)," given)"));var E,T=y.getSchema();e=[];var C,R=0;for(R=0,C=v.startRows;R<C;R++)if("object"!==u.dataType&&"function"!==u.dataType||!v.dataSchema)if("array"===u.dataType)E=(0,l.deepClone)(T[0]),e.push(E);else{E=[];for(var w=0,S=v.startCols;w<S;w++)E.push(null);e.push(E)}else E=(0,l.deepClone)(T),e.push(E)}Array.isArray(e[0])&&(u.dataType="array");v.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),n(y),u.runHooks("after".concat(m),e,g,f),g||(u.runHooks("afterChange",null,h),u.render())},n(53),n(20);var o=r(n(14)),i=n(84),a=n(58),s=r(n(586)),l=n(12)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DynamicCellMetaMod=void 0,n(4),n(40),n(1),n(5),n(6),n(52);var o=r(n(2)),i=r(n(3)),a=r(n(59)),s=n(12),l=n(58),u=function(){function e(t){var n=this;(0,o.default)(this,e),this.metaManager=t,this.metaSyncMemo=new Map,t.addLocalHook("afterGetCellMeta",(function(e){return n.extendCellMeta(e)})),a.default.getSingleton().add("beforeRender",(function(e){e&&n.metaSyncMemo.clear()}),this.metaManager.hot)}return(0,i.default)(e,[{key:"extendCellMeta",value:function(e){var t,n=e.row,r=e.col;if(null===(t=this.metaSyncMemo.get(n))||void 0===t||!t.has(r)){var o=e.visualRow,i=e.visualCol,a=this.metaManager.hot,u=a.colToProp(i);e.prop=u,a.runHooks("beforeGetCellMeta",o,i,e);var c,d=(0,s.hasOwnProperty)(e,"type")?e.type:null,h=(0,l.isFunction)(e.cells)?e.cells(n,r,u):null;if(d)if(h)h.type=null!==(c=h.type)&&void 0!==c?c:d;else h={type:d};h&&this.metaManager.updateCellMeta(n,r,h),a.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}}]),e}();t.DynamicCellMetaMod=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ExtendMetaPropertiesMod=void 0,n(4),n(1),n(52),n(5),n(6),n(40),n(23);var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.metaManager=t,this.usageTracker=new Set,this.propDescriptors=new Map([["fixedColumnsLeft",{target:"fixedColumnsStart",onChange:function(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{onChange:function(e,t,n){if(!n)throw new Error("The `".concat(e,"` option can not be updated after the Handsontable is initialized."))}}]]),this.extendMetaProps()}return(0,i.default)(e,[{key:"extendMetaProps",value:function(){var e=this;this.propDescriptors.forEach((function(t,n){var r=t.target,o=t.onChange,i=void 0===o?function(){}:o,a="string"==typeof r,s=a?r:n,l="_".concat(s);e.metaManager.globalMeta.meta[l]=e.metaManager.globalMeta.meta[s],e.installPropWatcher(n,l,i),a&&e.installPropWatcher(r,l,i)}))}},{key:"installPropWatcher",value:function(e,t,n){var r=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get:function(){return this[t]},set:function(o){var i=!r.usageTracker.has(e);r.usageTracker.add(e),n.call(r,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}]),e}();t.ExtendMetaPropertiesMod=a},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(825);t.createShortcutManager=r.createShortcutManager},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(224),o=n(826),i=n(827);t.createShortcutManager=function(e){var t=e.ownerWindow,n=e.handleEvent,a=e.beforeKeyDown,s=e.afterKeyDown,l=(0,r.createUniqueMap)({errorIdExists:function(e){return'The "'.concat(e,'" context name is already registered.')}}),u="grid",c=function(){return u},d=function(e){return l.getItem(e)},h=!1,f=(0,i.useRecorder)(t,n,a,s,(function(e,t){var n=d(c()),r=!1;if(!n.hasShortcut(t))return r;for(var o=n.getShortcuts(t),i=0;i<o.length;i++){var a=o[i],s=a.callback,l=a.runOnlyIf,u=a.preventDefault,f=a.stopPropagation,p=a.captureCtrl;if(!1!==l(e)&&(h=p,r=!1===s(e,t),h=!1,u&&e.preventDefault(),f&&e.stopPropagation(),r))break}return r}));return f.mount(),{addContext:function(e){var t=(0,o.createContext)(e);return l.addItem(e,t),t},getActiveContextName:c,getContext:d,setActiveContextName:function(e){u=e},isCtrlPressed:function(){return!h&&(f.isPressed("control")||f.isPressed("meta"))},destroy:function(){return f.unmount()}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createContext=void 0;var o=r(n(32)),i=r(n(21)),a=r(n(64));n(20),n(4),n(1),n(6),n(23),n(222),n(53),n(35),n(39);var s,l=n(224),u=n(590),c=n(24),d=n(58),h=n(12),f=n(66);t.createContext=function(e){var t=(0,l.createUniqueMap)({errorIdExists:function(t){return'The "'.concat(t,'" shortcut is already registered in the "').concat(e,'" context.')}}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.keys,r=e.callback,o=e.group,i=e.runOnlyIf,l=void 0===i?function(){return!0}:i,h=e.captureCtrl,p=void 0!==h&&h,g=e.preventDefault,m=void 0===g||g,v=e.stopPropagation,y=void 0!==v&&v,E=e.relativeToGroup,T=e.position;if((0,c.isUndefined)(o))throw new Error("You need to define the shortcut's group.");if(!1===(0,d.isFunction)(r))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(n))throw new Error((0,f.toSingleLine)(s||(s=(0,a.default)(["Pass the shortcut's keys as an array of arrays, \n using the KeyboardEvent.key properties: \n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."],["Pass the shortcut\\'s keys as an array of arrays,\\x20\n using the KeyboardEvent.key properties:\\x20\n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."]))));var C={callback:r,group:o,runOnlyIf:l,captureCtrl:p,preventDefault:m,stopPropagation:y};if((0,c.isDefined)(E)){var R=[E,T];C.relativeToGroup=R[0],C.position=R[1]}n.forEach((function(e){var n=(0,u.normalizeKeys)(e);if(t.hasItem(n)){var r=t.getItem(n),o=r.findIndex((function(e){return e.group===E}));-1!==o?"before"===T?o-=1:o+=1:o=r.length,r.splice(o,0,C)}else t.addItem(n,[C])}))},r=function(e){var n=(0,u.normalizeKeys)(e);t.removeItem(n)};return{addShortcut:n,addShortcuts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){(0,h.objectEach)(t,(function(n,r){!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])})),n(e)}))},getShortcuts:function(e){var n=(0,u.normalizeKeys)(e),r=t.getItem(n);return(0,c.isDefined)(r)?r.slice():[]},hasShortcut:function(e){var n=(0,u.normalizeKeys)(e);return t.hasItem(n)},removeShortcutsByKeys:r,removeShortcutsByGroup:function(e){t.getItems().forEach((function(t){var n=(0,i.default)(t,2),a=n[0],s=n[1],l=s.filter((function(t){return t.group!==e}));0===l.length?r((0,u.getKeysList)(a)):(s.length=0,s.push.apply(s,(0,o.default)(l)))}))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,n,r,c){var d=function(e){return l.includes(e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},f=function(e){if(!1!==t(e)){var a=n(e);if(229!==e.keyCode&&!1!==a&&!(0,i.isImmediatePropagationStopped)(e)){var l=(0,o.normalizeEventKey)(e.key),f=[];d(l)?u.press(l):f=h(e);var p=[l].concat(f);!c(e,p)&&((0,s.isMacOS)()&&f.includes("meta")||!(0,s.isMacOS)()&&f.includes("control"))&&c(e,[l].concat(h(e,!0))),r(e)}}},p=function(e){if(!1!==t(e)){var n=(0,o.normalizeEventKey)(e.key);!1!==d(n)&&u.release(n)}},g=function(){u.releaseAll()};return{mount:function(){for(var t=e;t;)t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("keyup",p),t.document.documentElement.addEventListener("blur",g),t=(0,a.getParentWindow)(t)},unmount:function(){for(var t=e;t;)t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("keyup",p),t.document.documentElement.removeEventListener("blur",g),t=(0,a.getParentWindow)(t)},isPressed:function(e){return u.isPressed(e)}}},n(31),n(20),n(41);var r=n(828),o=n(590),i=n(75),a=n(16),s=n(94),l=["meta","alt","shift","control"],u=(0,r.createKeysObserver)()},function(e,t,n){"use strict";t.__esModule=!0,t.createKeysObserver=function(){var e=new Set;return{press:function(t){e.add(t)},release:function(t){e.delete(t)},releaseAll:function(){e.clear()},isPressed:function(t){return e.has(t)}}},n(4),n(1),n(52),n(5),n(6)},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(134),o=n(135);t.CELL_TYPE="text";var i={CELL_TYPE:"text",editor:r.TextEditor,renderer:o.textRenderer};t.TextCellType=i},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0,n(22);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(189),f=r(n(49)),p=n(94),g=n(16),m=n(36),v=n(108),y=n(832),E=n(24),T=n(182),C=n(592),R=n(834);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.EDITOR_TYPE="text";var S=function(e){(0,u.default)(n,e);var t=w(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).eventManager=new f.default((0,s.default)(r)),r.autoResize=(0,y.autoResize)(),r.TEXTAREA=void 0,r.textareaStyle=void 0,r.TEXTAREA_PARENT=void 0,r.textareaParentStyle=void 0,r.layerClass=void 0,r.createElements(),r.bindEvents(),r.hot.addHookOnce("afterDestroy",(function(){return r.destroy()})),r}return(0,a.default)(n,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var e=this;this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.addHook("afterDocumentKeyDown",(function(t){return e.onAfterDocumentKeyDown(t)})),this.registerShortcuts()}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts(),this.removeHooksByKey("afterDocumentKeyDown")}},{key:"prepare",value:function(e,t,r,o,i,a){var s=this.state;if((0,l.default)((0,d.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var u=a.allowInvalid,c=a.fragmentSelection;u&&(this.TEXTAREA.value=""),s!==h.EDITOR_STATE.FINISHED&&this.hideEditableElement(),!c&&!(0,p.isMobileBrowser)()&&this.focus()}}},{key:"beginEditing",value:function(e,t){this.state===h.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,l.default)((0,d.default)(n.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(){this.TEXTAREA.select(),(0,g.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.tabIndex=-1,(0,g.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,g.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,g.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){((0,p.isIE)()||(0,p.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;(0,m.rangeEach)(e.length-1,(function(n){var r=e[n];if((0,g.hasClass)(r,"handsontableEditor"))return t=!0,!1})),(0,g.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,g.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===h.EDITOR_STATE.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t=this.getEditedCellRect(),n=t.top,r=t.start,o=t.width,i=t.maxWidth,a=t.height,s=t.maxHeight;this.textareaParentStyle.top="".concat(n,"px"),this.textareaParentStyle[this.hot.isRtl()?"right":"left"]="".concat(r,"px"),this.showEditableElement();var l=(0,g.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor;var u=(0,g.getComputedStyle)(this.TEXTAREA),c=parseInt(u.paddingLeft,10)+parseInt(u.paddingRight,10),d=parseInt(u.paddingTop,10)+parseInt(u.paddingBottom,10),f=o-c,p=a-d,m=i-c,v=s-d;this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(f,m),minHeight:Math.min(p,v),maxWidth:m,maxHeight:v},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return e.stopPropagation()})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return e.stopPropagation()})),(0,p.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(function(){return e.finishEditing(!1)})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={runOnlyIf:function(){return(0,E.isDefined)(e.hot.getSelected())},group:"textEditor"},r=function(){e.hot.rootDocument.execCommand("insertText",!1,"\n")};t.addShortcuts([{keys:[["Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(r.row,r.col,!0)}},{keys:[["Shift","Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(-r.row,-r.col)}},{keys:[["Control","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(t){return!e.hot.selection.isMultiple()&&!t.altKey},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Meta","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(){return!e.hot.selection.isMultiple()},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Alt","Enter"]],callback:function(){return r(),!1},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["PageUp"]],callback:function(){e.hot.selection.transformStart(-e.hot.countVisibleRows(),0)}},{keys:[["PageDown"]],callback:function(){e.hot.selection.transformStart(e.hot.countVisibleRows(),0)}},{keys:[["Home"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["End"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["Control/Meta","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}},{keys:[["Control/Meta","Shift","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}}],n)}},{key:"unregisterShortcuts",value:function(){var e=this.hot.getShortcutManager().getContext("editor");e.removeShortcutsByGroup(T.SHORTCUTS_GROUP_NAVIGATION),e.removeShortcutsByGroup("textEditor"),e.removeShortcutsByGroup(C.SHORTCUTS_GROUP_EDITOR)}},{key:"onAfterDocumentKeyDown",value:function(e){-1===[v.KEY_CODES.ARROW_UP,v.KEY_CODES.ARROW_RIGHT,v.KEY_CODES.ARROW_DOWN,v.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}],[{key:"EDITOR_TYPE",get:function(){return"text"}}]),n}(h.BaseEditor);t.TextEditor=S},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(13),o=n(12),i={_hooksStorage:Object.create(null),addHook:function(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey:function(e){var t=this;(0,r.arrayEach)(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;(0,o.objectEach)(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};(0,o.defineGetter)(i,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=void 0;var r=n(833);t.autoResize=r.autoResize},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.position="absolute",o.style.fontSize=c(e).fontSize,o.style.fontFamily=c(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},u=function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){u(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}},n(51),n(67)},function(e,t,n){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){for(var n=(0,r.getCaretPosition)(t),o=t.value.split("\n"),i=n,a=0,s=0;s<o.length;s++){var l=o[s];0!==s&&(a+=o[s-1].length+1);var u=a+l.length;if("home"===e?i=a:"end"===e&&(i=u),n<=u)break}(0,r.setCaretPosition)(t,i)};var r=n(16)},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.textRenderer=a,n(149);var r=n(231),o=n(16),i=n(24);function a(e,t,n,a,s,l,u){r.baseRenderer.apply(this,[e,t,n,a,s,l,u]);var c=l;if(!c&&u.placeholder&&(c=u.placeholder),c=(0,i.stringify)(c),u.trimWhitespace&&(c=c.trim()),u.rendererTemplate){(0,o.empty)(t);var d=e.rootDocument.createElement("TEMPLATE");d.setAttribute("bind","{{}}"),d.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(d),d.model=e.getSourceDataAtRow(n),t.appendChild(d)}else(0,o.fastInnerText)(t,c)}t.RENDERER_TYPE="text",a.RENDERER_TYPE="text"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.baseRenderer=o;var r=n(16);function o(e,t,n,o,i,a,s){var l=[],u=[];s.className&&(0,r.addClass)(t,s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,r.removeClass)(t,u),(0,r.addClass)(t,l)}t.RENDERER_TYPE="base",o.RENDERER_TYPE="base"},function(e,t,n){"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,r.registerAllEditors)(),(0,o.registerAllRenderers)(),(0,i.registerAllValidators)(),(0,a.registerAllCellTypes)(),(0,s.registerAllPlugins)()};var r=n(838);t.registerAllEditors=r.registerAllEditors;var o=n(851);t.registerAllRenderers=o.registerAllRenderers;var i=n(860);t.registerAllValidators=i.registerAllValidators;var a=n(866);t.registerAllCellTypes=a.registerAllCellTypes;var s=n(883);t.registerAllPlugins=s.registerAllPlugins},function(e,t,n){"use strict";t.__esModule=!0,t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=t.getEditorInstance=t.getEditor=t._getEditorInstance=t.RegisteredEditor=void 0,t.registerAllEditors=function(){(0,p.registerEditor)(o.BaseEditor),(0,p.registerEditor)(r.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(a.DateEditor),(0,p.registerEditor)(s.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(u.NumericEditor),(0,p.registerEditor)(c.PasswordEditor),(0,p.registerEditor)(d.SelectEditor),(0,p.registerEditor)(h.TextEditor),(0,p.registerEditor)(f.TimeEditor)};var r=n(298);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var o=n(189);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=n(593);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var a=n(300);t.DateEditor=a.DateEditor,t.DATE_EDITOR=a.EDITOR_TYPE;var s=n(594);t.DropdownEditor=s.DropdownEditor,t.DROPDOWN_EDITOR=s.EDITOR_TYPE;var l=n(299);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var u=n(595);t.NumericEditor=u.NumericEditor,t.NUMERIC_EDITOR=u.EDITOR_TYPE;var c=n(596);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var d=n(848);t.SelectEditor=d.SelectEditor,t.SELECT_EDITOR=d.EDITOR_TYPE;var h=n(134);t.TextEditor=h.TextEditor,t.TEXT_EDITOR=h.EDITOR_TYPE;var f=n(597);t.TimeEditor=f.TimeEditor,t.TIME_EDITOR=f.EDITOR_TYPE;var p=n(129);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26));n(4),n(1),n(5),n(7),n(6),n(22),n(89),n(225),n(51),n(82),n(35);var h=n(299),f=n(13),p=n(16),g=n(24),m=n(84),v=n(108),y=n(135);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var T=new WeakMap;t.EDITOR_TYPE="autocomplete";var C=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),(0,d.default)((0,a.default)(r),"sortByRelevance",(function(e,t,n){var r,o,i,a,s=[],l=[],u=e.length,c=t.length;if(0===u){for(i=0;i<c;i++)l.push(i);return l}for(i=0;i<c;i++){if(o=(0,m.stripTags)((0,g.stringify)(t[i])),n)a=o.indexOf(e);else{var d=this.cellProperties.locale;a=o.toLocaleLowerCase(d).indexOf(e.toLocaleLowerCase(d))}-1!==a&&(r=o.length-a-u,s.push({baseIndex:i,index:a,charsLeft:r,value:o}))}for(s.sort((function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),i=0,c=s.length;i<c;i++)l.push(s[i].baseIndex);return l})),r.query=null,r.strippedChoices=[],r.rawChoices=[],T.set((0,a.default)(r),{skipOne:!1,isMacOS:r.hot.rootWindow.navigator.platform.indexOf("Mac")>-1}),r}return(0,i.default)(n,[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value}));return(0,g.isDefined)(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,s.default)((0,c.default)(n.prototype),"createElements",this).call(this),(0,p.addClass)(this.htContainer,"autocompleteEditor"),(0,p.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var e=this,t=T.get(this);(0,s.default)((0,c.default)(n.prototype),"open",this).call(this);var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=(0,p.getScrollbarWidth)();0===i&&t.isMacOS&&(i+=15),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)})),r.updateSettings({colWidths:o?[(0,p.outerWidth)(this.TEXTAREA)-2]:void 0,width:o?(0,p.outerWidth)(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){(0,y.textRenderer)(t,n,r,o,i,a,s);var l,u,c=e.cellProperties,d=c.filteringCaseSensitive,h=c.allowHtml,f=c.locale,p=e.query,m=(0,g.stringify)(a);m&&!h&&-1!==(l=!0===d?m.indexOf(p):m.toLocaleLowerCase(f).indexOf(p.toLocaleLowerCase(f)))&&(u=m.substr(l,p.length),m=m.replace(u,"<strong>".concat(u,"</strong>"))),n.innerHTML=m},autoColumnSize:!0}),t.skipOne&&(t.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),(0,s.default)((0,c.default)(n.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){(0,s.default)((0,c.default)(n.prototype),"discardEditor",this).call(this,e),this.hot.view.render()}},{key:"queryChoices",value:function(e){var t=this,n=this.cellProperties.source;this.query=e,"function"==typeof n?n.call(this.cellProperties,e,(function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))})):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(e){var t=(0,p.getCaretPosition)(this.TEXTAREA),n=(0,p.getSelectionEndPosition)(this.TEXTAREA),r=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,i=null,a=null,s=e;r&&(i=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),s,this.cellProperties.filteringCaseSensitive));var l=Array.isArray(i)?i.length:0;if(!1===o)l&&(a=i[0]);else{for(var u=[],c=0,d=s.length;c<d&&!(r&&l<=c);c++)l?u.push(s[i[c]]):u.push(s[c]);a=0,s=u}this.strippedChoices=s,this.htEditor.loadData((0,f.pivot)([s])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.hot.listen(),(0,p.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,p.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),t=e===this.hot.rootWindow,n=this.cellProperties.preventOverflow;if(t||!t&&(n||"horizontal"===n))return!1;var r=(0,p.offset)(this.TEXTAREA),o=(0,p.outerHeight)(this.TEXTAREA),i=this.getDropdownHeight(),a=e.scrollTop,s=(0,p.outerHeight)(this.hot.view._wt.wtTable.THEAD),l=(0,p.offset)(e),u=r.top-l.top-s+a,c=e.scrollHeight-u-s-o,d=i>c&&u>c;return d?this.flipDropdown(i):this.unflipDropdown(),this.limitDropdownIfNeeded(d?u:c,i),d}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n,r=0,o=0,i=0;do{r+=i=this.htEditor.getRowHeight(o)||this.htEditor.view._wt.getSetting("defaultRowHeight"),o+=1}while(r<e);n=r-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(r-i)}}},{key:"flipDropdown",value:function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top="".concat(-e,"px"),this.htEditor.flipped=!0}},{key:"unflipDropdown",value:function(){var e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var e=this.htEditor.getColWidth(0)+(0,p.getScrollbarWidth)(this.hot.rootDocument)+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}},{key:"setDropdownHeight",value:function(e){this.htEditor.updateSettings({height:e})}},{key:"highlightBestMatchingChoice",value:function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}},{key:"getDropdownHeight",value:function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8}},{key:"stripValueIfNeeded",value:function(e){return this.stripValuesIfNeeded([e])[0]}},{key:"stripValuesIfNeeded",value:function(e){var t=this.cellProperties.allowHtml,n=(0,f.arrayMap)(e,(function(e){return(0,g.stringify)(e)}));return(0,f.arrayMap)(n,(function(e){return t?e:(0,m.stripTags)(e)}))}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===v.KEY_CODES.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===v.KEY_CODES.ARROW_UP&&n>-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var t=this,n=T.get(this);if(n.skipOne=!1,(0,v.isPrintableChar)(e.keyCode)||e.keyCode===v.KEY_CODES.BACKSPACE||e.keyCode===v.KEY_CODES.DELETE||e.keyCode===v.KEY_CODES.INSERT){var r=10;if(e.keyCode===v.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(r+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),n.skipOne=!0}),r)}}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),n}(h.HandsontableEditor);t.AutocompleteEditor=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134),d=n(16),h=n(75),f=n(12),p=n(182);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="handsontable";var m=function(e){(0,s.default)(n,e);var t=g(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"open",value:function(){(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,d.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.refreshDimensions()}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s);var l=this,c={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&l.setValue(n),l.instance.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,f.extend)(c,s.handsontable),this.htOptions=c}},{key:"beginEditing",value:function(e,t){var r=this.hot.getSettings().onBeginEditing;r&&!1===r()||(0,a.default)((0,u.default)(n.prototype),"beginEditing",this).call(this,e,t)}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this);var e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}},{key:"finishEditing",value:function(e,t,r){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var o=this.htEditor.getInstance().getValue();void 0!==o&&this.setValue(o)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t,r)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",(function(){e.htEditor&&e.htEditor.destroy()}))}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor");(0,a.default)((0,u.default)(n.prototype),"registerShortcuts",this).call(this);var r={group:"handsontableEditor",relativeToGroup:p.SHORTCUTS_GROUP_NAVIGATION,position:"before"},o=function(t,n){var r=e.htEditor.getInstance();if(void 0!==t&&(t<0||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length))return n.preventDefault(),(0,h.stopImmediatePropagation)(n),e.hot.listen(),e.TEXTAREA.focus(),!1};t.addShortcuts([{keys:[["ArrowUp"]],callback:function(t){var n,r,i=e.htEditor.getInstance();return!i.getSelectedLast()&&i.flipped?n=i.countRows()-1:i.getSelectedLast()&&(i.flipped?(r=i.getSelectedLast()[0],n=Math.max(0,r-1)):n=(r=i.getSelectedLast()[0])-1),o(n,t)},preventDefault:!1},{keys:[["ArrowDown"]],callback:function(t){var n,r,i=e.htEditor.getInstance();if(i.getSelectedLast()||i.flipped){if(i.getSelectedLast())if(i.flipped)n=i.getSelectedLast()[0]+1;else if(!i.flipped){var a=i.countRows()-1;r=i.getSelectedLast()[0],n=Math.min(a,r+1)}}else n=0;return o(n,t)},preventDefault:!1}],r)}},{key:"unregisterShortcuts",value:function(){(0,a.default)((0,u.default)(n.prototype),"unregisterShortcuts",this).call(this),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("handsontableEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),n}(c.TextEditor);t.HandsontableEditor=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(189),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="checkbox";var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');(0,c.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}],[{key:"EDITOR_TYPE",get:function(){return"checkbox"}}]),n}(u.BaseEditor);t.CheckboxEditor=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(95)),d=r(n(843)),h=n(134),f=r(n(49)),p=n(16),g=n(12),m=n(108);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}n(844);t.EDITOR_TYPE="date";var y=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).defaultDateFormat="DD/MM/YYYY",r.isCellEdited=!1,r.parentDestroyed=!1,r.$datePicker=null,r}return(0,i.default)(n,[{key:"init",value:function(){var e=this;if("function"!=typeof c.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof d.default)throw new Error("You need to include Pikaday to your project.");(0,a.default)((0,u.default)(n.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",(function(){e.parentDestroyed=!0,e.destroyElements()}))}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,p.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),new f.default(this).addEventListener(this.datePicker,"mousedown",(function(e){return e.stopPropagation()}))}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.hot.getShortcutManager(),r=t.getContext("editor");(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.showDatepicker(e),r.addShortcut({keys:[["Enter"]],callback:function(e){e.stopPropagation()},group:"dateEditor"})}},{key:"close",value:function(){var e,t=this;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.instance._registerTimeout((function(){t.instance._refreshBorders()})),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("dateEditor"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.instance.view.isMouseDown(),i=!!e&&(0,m.isFunctionKey)(e.keyCode);this.datePicker.style.display="block",this.$datePicker=new d.default(this.getDatePickerConfig()),this.$datePicker._onInputFocus=function(){},this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,p.outerHeight)(this.TD),"px");var a=this.hot.rootWindow.pageXOffset;a=this.hot.isRtl()?n.right-(0,p.outerWidth)(this.datePicker):n.left,this.datePickerStyle.left="".concat(a,"px"),this.originalValue?(t=this.originalValue,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,g.deepExtend)(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,c.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}],[{key:"EDITOR_TYPE",get:function(){return"date"}}]),n}(h.TextEditor);t.DateEditor=y},function(e,t,n){
|
857
|
+
var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,l,u,c,d,h,f,p,g,m,v,y,E,T=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function l(i){var l=0,u=0,c=0,d=i*i;if(i<8)l=(u=o(t,d))/(c=o(n,d));else{var h=i-.785398164;u=o(a,d=64/d),c=o(s,d),l=r.sqrt(e/i)*(r.cos(h)*u-r.sin(h)*c*8/i)}return l}var u=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),d=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function f(t){var n=0,i=0,a=0,s=t*t,l=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(u,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(l)*i-r.sin(l)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return l(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,l(t),f(t),-1);else{for(var a=!1,s=0,u=0,c=1,d=0,h=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,u*=1e-10),a&&(u+=c),a=!a,p==n&&(o=s);o/=u=2*u-c}return o}}(),C=(s=.636619772,l=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),u=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),d=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),h=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),f=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),g=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,h=e-.785398164;return e<8?t=(n=o(l,a))/(i=o(u,a))+s*T(e,0)*r.log(e):(n=o(c,a=64/a),i=o(d,a),t=r.sqrt(s/e)*(r.sin(h)*n+r.cos(h)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,l=e-2.356194491;return e<8?t=(n=e*o(h,a))/(i=o(f,a))+s*(T(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(g,a),t=r.sqrt(s/e)*(r.sin(l)*n+r.cos(l)*i*8/e)),t}),0,1,-1)),R=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),v=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(v,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(y,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),l=0,u=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*u+l,l=u,u=c,r.abs(u)>1e10&&(u*=1e-10,l*=1e-10,a*=1e-10),i==n&&(a=l);return a*=e(t,0)/u,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*R(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*R(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(695);var i=F(n(696));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,l,u,c,d=n(837),h=F(n(49)),f=n(76),p=r(n(1075)),g=r(n(302)),m=F(n(285)),v=F(n(13)),y=F(n(94)),E=F(n(133)),T=F(n(606)),C=F(n(107)),R=F(n(58)),w=F(n(24)),S=F(n(36)),O=F(n(12)),b=F(n(84)),A=F(n(108)),N=F(n(16)),M=F(n(75)),I=n(129),_=n(183),k=n(184),P=n(188),x=n(223),L=n(38);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,d.registerAllModules)(),(0,p.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var U=[v,y,E,T,C,R,w,S,O,b,A,m],H=[N,M];i.default.helper={},i.default.dom={},v.arrayEach(U,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),v.arrayEach(H,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes=null!==(a=i.default.cellTypes)&&void 0!==a?a:{},v.arrayEach((0,P.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,P.getCellType)(e)})),i.default.cellTypes.registerCellType=P.registerCellType,i.default.cellTypes.getCellType=P.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},v.arrayEach((0,I.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(b.toUpperCaseFirst(e),"Editor")]=(0,I.getEditor)(e)})),i.default.editors.registerEditor=I.registerEditor,i.default.editors.getEditor=I.getEditor,i.default.renderers=null!==(l=i.default.renderers)&&void 0!==l?l:{},v.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(b.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators=null!==(u=i.default.validators)&&void 0!==u?u:{},v.arrayEach((0,k.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(b.toUpperCaseFirst(e),"Validator")]=(0,k.getValidator)(e)})),i.default.validators.registerValidator=k.registerValidator,i.default.validators.getValidator=k.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},v.arrayEach((0,x.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,x.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=x.registerPlugin,i.default.plugins.getPlugin=x.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(63),o=n(50),i=n(56),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},function(e,t,n){var r=n(29),o=n(50),i=n(55),a=n(57),s=n(175).CONFIGURABLE,l=n(385),u=n(106),c=u.enforce,d=u.get,h=Object.defineProperty,f=a&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&d(this).source||l(this)}),"toString")},function(e,t,n){"use strict";var r=n(388).IteratorPrototype,o=n(123),i=n(174),a=n(214),s=n(173),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(50),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(269),o=n(215);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(44),i=n(30),a=n(271),s=n(176),l=n(216),u=n(397),c=n(56),d=n(391),h=n(106).enforce,f=n(384),p=!o.ActiveXObject&&"ActiveXObject"in o,g=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=l("WeakMap",g,u);if(f&&p){r=u.getConstructor(g,"WeakMap",!0),s.enable();var v=m.prototype,y=i(v.delete),E=i(v.has),T=i(v.get),C=i(v.set);a(v,{delete:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.delete(e)}return y(this,e)},has:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(c(e)&&!d(e)){var t=h(this);return t.frozen||(t.frozen=new r),E(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=h(this);n.frozen||(n.frozen=new r),E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}},function(e,t,n){var r=n(29);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){var r=n(145),o=n(217),i=n(56),a=n(47)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){var r=n(25),o=n(29),i=n(272).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(697),n(698),n(699),n(700);var o=r(n(400)),i=n(291),a=n(585),s=r(n(59)),l=n(582),u=n(188),c=n(591),d=n(189),h=n(130);function f(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}t.CellCoords=h.CellCoords,t.CellRange=h.CellRange,(0,u.registerCellType)(c.TextCellType),f.editors={BaseEditor:d.BaseEditor},f.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},f.DefaultSettings=(0,a.metaSchemaFactory)(),f.hooks=s.default.getSingleton(),f.CellCoords=h.CellCoords,f.CellRange=h.CellRange,f.packageName="handsontable",f.buildDate="17/01/2023 08:51:54",f.version="0.0.0-next-4fd87f2-20230117",f.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};var p=f;t.default=p},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(402);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(216)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(273),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(122).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(122);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(122).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(57),o=n(145),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(56),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(81),o=n(171),i=n(92);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(81),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=c;return void 0!==d&&(d=o(d),g=u),s(h,g,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var h=i(c/10);return 0===h?o:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var r=n(177),o=n(63),i=n(81),a=n(714),s=n(393),l=n(217),u=n(92),c=n(144),d=n(394),h=n(275),f=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,E,T,C,R,w=h(t),S=0;if(!w||this===f&&s(w))for(v=u(t),y=n?new this(v):f(v);v>S;S++)R=m?g(t[S],S):t[S],c(y,S,R);else for(C=(T=d(t,w)).next,y=n?new this:[];!(E=o(C,T)).done;S++)R=m?a(T,g,[E.value,S],!0):E.value,c(y,S,R);return y.length=S,y}},function(e,t,n){var r=n(61),o=n(395);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(127).forEach,o=n(146)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(25),o=n(44),i=n(415).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t,n){var r=n(25),o=n(44),i=n(415).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(719),n(721)},function(e,t,n){var r=n(25),o=n(44),i=n(417).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(122);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(25),o=n(44),i=n(417).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},function(e,t,n){"use strict";n(216)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(405))},function(e,t,n){var r=n(71).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(175).PROPER,o=n(29),i=n(411);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e}))}},function(e,t,n){var r=n(14).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(128),o=n(63),i=n(30),a=n(219),s=n(61),l=n(97),u=n(283),c=n(80),d=n(727),h=n(281),f=n(125),p=n(62),g=n(124),m=n(273),v=n(220),y=n(218),E=n(280),T=n(29),C=E.UNSUPPORTED_Y,R=Math.min,w=[].push,S=i(/./.exec),O=i(w),b=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=p(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");(s=o(y,v,i))&&!((l=v.lastIndex)>g&&(O(h,b(i,g,s.index)),s.length>1&&s.index<i.length&&r(w,h,m(s,1)),d=s[0].length,g=l,h.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return g===i.length?!d&&S(v,"")||O(h,""):O(h,b(i,g)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=s(this),a=p(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new u(C?"^(?:"+o.source+")":o,g),y=void 0===r?4294967295:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];for(var E=0,T=0,w=[];T<a.length;){m.lastIndex=C?0:T;var S,A=v(m,C?b(a,T):a);if(null===A||(S=R(f(m.lastIndex+(C?T:0)),a.length))===E)T=h(a,T,c);else{if(O(w,b(a,E,T)),w.length===y)return w;for(var N=1;N<=A.length-1;N++)if(O(w,A[N]),w.length===y)return w;T=E=S}}return O(w,b(a,E)),w}]}),!!T((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),C)},function(e,t,n){var r=n(61),o=n(422),i=n(97),a=n(47)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},function(e,t,n){"use strict";var r=n(25),o=n(270).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(125),i=n(62),a=n(425),s=n(80),l=r(a),u=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),p=h.length,g=void 0===r?" ":i(r);return f<=p||""==g?h:((d=l(g,c((a=f-p)/g.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(122);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":426,"./af.js":426,"./ar":427,"./ar-dz":428,"./ar-dz.js":428,"./ar-kw":429,"./ar-kw.js":429,"./ar-ly":430,"./ar-ly.js":430,"./ar-ma":431,"./ar-ma.js":431,"./ar-sa":432,"./ar-sa.js":432,"./ar-tn":433,"./ar-tn.js":433,"./ar.js":427,"./az":434,"./az.js":434,"./be":435,"./be.js":435,"./bg":436,"./bg.js":436,"./bm":437,"./bm.js":437,"./bn":438,"./bn-bd":439,"./bn-bd.js":439,"./bn.js":438,"./bo":440,"./bo.js":440,"./br":441,"./br.js":441,"./bs":442,"./bs.js":442,"./ca":443,"./ca.js":443,"./cs":444,"./cs.js":444,"./cv":445,"./cv.js":445,"./cy":446,"./cy.js":446,"./da":447,"./da.js":447,"./de":448,"./de-at":449,"./de-at.js":449,"./de-ch":450,"./de-ch.js":450,"./de.js":448,"./dv":451,"./dv.js":451,"./el":452,"./el.js":452,"./en-au":453,"./en-au.js":453,"./en-ca":454,"./en-ca.js":454,"./en-gb":455,"./en-gb.js":455,"./en-ie":456,"./en-ie.js":456,"./en-il":457,"./en-il.js":457,"./en-in":458,"./en-in.js":458,"./en-nz":459,"./en-nz.js":459,"./en-sg":460,"./en-sg.js":460,"./eo":461,"./eo.js":461,"./es":462,"./es-do":463,"./es-do.js":463,"./es-mx":464,"./es-mx.js":464,"./es-us":465,"./es-us.js":465,"./es.js":462,"./et":466,"./et.js":466,"./eu":467,"./eu.js":467,"./fa":468,"./fa.js":468,"./fi":469,"./fi.js":469,"./fil":470,"./fil.js":470,"./fo":471,"./fo.js":471,"./fr":472,"./fr-ca":473,"./fr-ca.js":473,"./fr-ch":474,"./fr-ch.js":474,"./fr.js":472,"./fy":475,"./fy.js":475,"./ga":476,"./ga.js":476,"./gd":477,"./gd.js":477,"./gl":478,"./gl.js":478,"./gom-deva":479,"./gom-deva.js":479,"./gom-latn":480,"./gom-latn.js":480,"./gu":481,"./gu.js":481,"./he":482,"./he.js":482,"./hi":483,"./hi.js":483,"./hr":484,"./hr.js":484,"./hu":485,"./hu.js":485,"./hy-am":486,"./hy-am.js":486,"./id":487,"./id.js":487,"./is":488,"./is.js":488,"./it":489,"./it-ch":490,"./it-ch.js":490,"./it.js":489,"./ja":491,"./ja.js":491,"./jv":492,"./jv.js":492,"./ka":493,"./ka.js":493,"./kk":494,"./kk.js":494,"./km":495,"./km.js":495,"./kn":496,"./kn.js":496,"./ko":497,"./ko.js":497,"./ku":498,"./ku.js":498,"./ky":499,"./ky.js":499,"./lb":500,"./lb.js":500,"./lo":501,"./lo.js":501,"./lt":502,"./lt.js":502,"./lv":503,"./lv.js":503,"./me":504,"./me.js":504,"./mi":505,"./mi.js":505,"./mk":506,"./mk.js":506,"./ml":507,"./ml.js":507,"./mn":508,"./mn.js":508,"./mr":509,"./mr.js":509,"./ms":510,"./ms-my":511,"./ms-my.js":511,"./ms.js":510,"./mt":512,"./mt.js":512,"./my":513,"./my.js":513,"./nb":514,"./nb.js":514,"./ne":515,"./ne.js":515,"./nl":516,"./nl-be":517,"./nl-be.js":517,"./nl.js":516,"./nn":518,"./nn.js":518,"./oc-lnc":519,"./oc-lnc.js":519,"./pa-in":520,"./pa-in.js":520,"./pl":521,"./pl.js":521,"./pt":522,"./pt-br":523,"./pt-br.js":523,"./pt.js":522,"./ro":524,"./ro.js":524,"./ru":525,"./ru.js":525,"./sd":526,"./sd.js":526,"./se":527,"./se.js":527,"./si":528,"./si.js":528,"./sk":529,"./sk.js":529,"./sl":530,"./sl.js":530,"./sq":531,"./sq.js":531,"./sr":532,"./sr-cyrl":533,"./sr-cyrl.js":533,"./sr.js":532,"./ss":534,"./ss.js":534,"./sv":535,"./sv.js":535,"./sw":536,"./sw.js":536,"./ta":537,"./ta.js":537,"./te":538,"./te.js":538,"./tet":539,"./tet.js":539,"./tg":540,"./tg.js":540,"./th":541,"./th.js":541,"./tk":542,"./tk.js":542,"./tl-ph":543,"./tl-ph.js":543,"./tlh":544,"./tlh.js":544,"./tr":545,"./tr.js":545,"./tzl":546,"./tzl.js":546,"./tzm":547,"./tzm-latn":548,"./tzm-latn.js":548,"./tzm.js":547,"./ug-cn":549,"./ug-cn.js":549,"./uk":550,"./uk.js":550,"./ur":551,"./ur.js":551,"./uz":552,"./uz-latn":553,"./uz-latn.js":553,"./uz.js":552,"./vi":554,"./vi.js":554,"./x-pseudo":555,"./x-pseudo.js":555,"./yo":556,"./yo.js":556,"./zh-cn":557,"./zh-cn.js":557,"./zh-hk":558,"./zh-hk.js":558,"./zh-mo":559,"./zh-mo.js":559,"./zh-tw":560,"./zh-tw.js":560};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=732},function(e,t,n){var r=n(25),o=n(734);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(128),o=n(88),i=n(115),a=n(92),s=n(146),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var r=n(141),o=n(81),i=n(165),a=n(92),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=n(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DESC=t.ASC=void 0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}};var o=r(n(32)),i=r(n(21));n(4),n(40),n(1),n(5),n(6),n(65),n(89);var a=n(36),s=n(58),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}function l(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:l,getItems:s}};var o=r(n(32));n(4),n(1),n(52),n(5),n(6);var i=n(58),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(32)),a=r(n(2)),s=r(n(3)),l=r(n(26)),u=r(n(78)),c=r(n(79));n(4),n(1),n(5),n(7),n(6),n(72),n(73);var d=n(16),h=r(n(49)),f=n(75),p=r(n(130)),g=n(575),m=n(291);function v(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var y=new WeakMap,E=new WeakMap,T=new WeakMap,C=function(){function e(t){(0,a.default)(this,e),(0,l.default)(this,"instance",void 0),(0,l.default)(this,"eventManager",void 0),(0,l.default)(this,"settings",void 0),(0,l.default)(this,"THEAD",void 0),(0,l.default)(this,"TBODY",void 0),(0,l.default)(this,"_wt",void 0),(0,l.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,l.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),y.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize(e)}},{key:"getCellAtCoords",value:function(e,t){var n=this._wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wt.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=y.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,d.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var e=this,t=y.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,d.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,d.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,f.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,d.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,f.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,f.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(u===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,d.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=y.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,m.isRootInstance)(e.instance)},preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),(0,c.default)(e,T,t.length),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),(0,c.default)(e,E,t.length),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,o.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),p=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,l,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,p,g,f),e.instance.runHooks("afterRenderer",r,s,l,p,g,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onContainerElementResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||((0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e._wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,f.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e._wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,f.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e._wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e._wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,f.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e._wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.afterRender(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);i=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?i.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,o.default)(u,4),d=c[0],h=c[1],f=c[2],p=c[3];return[d>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(h,1)):h,f>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(f,-1)):f,p>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(p,-1)):p]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsStart&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this._wt=new p.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,l=a.height;this.setLastSize(s,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e._wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if((0,d.isInput)(e))return!0;var t=(0,d.isChildOf)(e,this.instance.view._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return y.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,d.hasClass)(n,"relative"))return(0,d.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.instance.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.firstChild){var o=t.firstChild;(0,d.hasClass)(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,n,r):((0,d.empty)(t),this.appendColHeader(e,t,n,r))}else{var i=this.instance.rootDocument,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="colHeader",this.updateCellHeader(s,e,n,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetColHeader",e,t,r)}},{key:"updateCellHeader",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t,i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,d.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,d.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,d.fastInnerHTML)(e,n(t,r)):((0,d.fastInnerText)(e,String.fromCharCode(160)),(0,d.addClass)(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=y.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=y.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"getColumnHeadersCount",value:function(){return(0,u.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,u.default)(this,T)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=C},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(742)),s=r(n(289)),l=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(567)),d=r(n(744)),h=r(n(772)),f=r(n(773)),p=r(n(774)),g=r(n(289)),m=n(12),v=n(16);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=y(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new h.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new f.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new p.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new d.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,v.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,v.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(g.default);t.default=E},function(e,t,n){"use strict";var r=n(30),o=n(141),i=n(56),a=n(55),s=n(180),l=n(166),u=Function,c=r([].concat),d=r([].join),h={},f=function(e,t,n){if(!a(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=u("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=c(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(20),n(1),n(23),n(67);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(26)),l=n(16),u=n(107),c=n(13),d=n(108),h=n(94),f=n(131),p=function(){function e(t,n,r,o,a,c){var d=this;(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"resizeObserver",new ResizeObserver((function(e){(0,u.requestAnimationFrame)((function(){Array.isArray(e)&&e.length&&d.wtSettings.getSetting("onContainerElementResize")}))}))),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=c;var h=this.domBindings,f=h.rootDocument,p=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,l.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,l.getScrollableElement)(c.TABLE),this.initOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=p.scrollX,this.lastScrollY=p.scrollY}return(0,a.default)(e,[{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(f.TopOverlay,e),this.bottomOverlay=(0,o.default)(f.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(f.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(f.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(f.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),l||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,d.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,l.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.updateLastSpreaderSize();t&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"updateLastSpreaderSize",value:function(){var e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var l=n.wtRootElement,u=l.scrollHeight,c=l.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=u<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>u&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,c.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,c.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=p},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(747)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,l){var u;return(0,i.default)(this,n),(u=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,u.inlineStartOverlay=l,u}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,c.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}}]),n}(h.Overlay);t.BottomInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(226);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(752)),s=n(570),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.default)(e,[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof a.default}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.default)(e,[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}]),n}(r(n(569)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(185)).default);t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(185)),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&(0,c.addClass)(u,"rowHeader")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(64)),a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(74),h=n(66),f=n(226),p=r(n(185));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=!1,v=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!m&&e>1e3&&(m=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=n(226);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(185)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=r}return(0,i.default)(e,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(40),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(16),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,l=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(l=e.getSetting("onModifyRowHeaderWidth",l)))for(var u=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<u;d++){var h=Array.isArray(l)?l[d]:l;h=null==h?c:h,this.headerWidths.set(d,h)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(33)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(26)),d=r(n(567));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var l=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),l,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(l,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(289)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),(0,a.default)(this,"lastScrolledColumnPos",-1),(0,a.default)(this,"lastScrolledRowPos",-1),this.dataAccessObject=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalColumns;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleColumn(),s=this.getLastVisibleColumn(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedColumnsStart,d=u.inlineStartOverlay;if(l&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,l?e>this.lastScrolledColumnPos:t):(l&&(e<a||e>s)||!l)&&(h=d.scrollTo(e,l?e>s:t)),h&&(this.lastScrolledColumnPos=e),h}},{key:"scrollViewportVertically",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalRows;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleRow(),s=this.getLastVisibleRow(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedRowsBottom,d=u.fixedRowsTop,h=u.topOverlay;if(l&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,l?e>this.lastScrolledRowPos:n):(l&&(e<a||e>s)||!l)&&(f=h.scrollTo(e,l?e>s:n)),f&&(this.lastScrolledRowPos=e),f}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var u=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(f+=t.sumCellSizes(p-1,p),u.top+c-f<=h){l=p;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.getScrollTop)(i,i);if(l.top>u)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=Math.abs((0,s.getScrollLeft)(i,i));if(l.left>u)for(var c=(0,s.innerWidth)(i),d=r.getRowHeaderWidth(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.left+d-u>=c){a=h-2;break}}return a}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(765)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsBottom",-1),l.cachedFixedRowsBottom=l.wtSettings.getSetting("fixedRowsBottom"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,h.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("defaultRowHeight"),i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,h.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,l=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===l){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=a),u=Math.min(u,t.wtRootElement.scrollWidth),s.width="".concat(u,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(p.Overlay);t.BottomOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(571)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(16),d=r(n(767)),h=n(152),f=n(132);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,f.CLONE_INLINE_START,o,a)}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultColumnWidth"),r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&(this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1));return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(h.Overlay);t.InlineStartOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(572)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_INLINE_START)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(769)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a,l,u){var c;return(0,i.default)(this,n),c=t.call(this,e,r,g.CLONE_TOP_INLINE_START_CORNER,o,a),(0,d.default)((0,s.default)(c),"topOverlay",void 0),(0,d.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=l,c.inlineStartOverlay=u,c}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,h.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,h.resetCssTransform)(e);var r=(0,h.outerHeight)(this.clone.wtTable.TABLE),o=(0,h.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(p.Overlay);t.TopInlineStartCornerOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(288)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26)),h=n(16),f=r(n(771)),p=n(152),g=n(132);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(e){(0,l.default)(n,e);var t=m(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsTop",-1),l.cachedFixedRowsTop=l.wtSettings.getSetting("fixedRowsTop"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,h.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultRowHeight"),r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;t&&(this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1));if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),l=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}return o}}]),n}(p.Overlay);t.TopOverlay=v},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=r(n(573)),d=r(n(290)),h=n(12),f=n(131);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(574);var o=r(n(2)),i=r(n(3)),a=r(n(26)),s=n(16),l=n(12),u=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,l.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,onContainerElementResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,l.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(31);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(16),c=r(n(151)),d=r(n(572)),h=r(n(290)),f=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",h.style.position="absolute",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,f.mixin)(g,d.default),(0,f.mixin)(g,h.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(16),s=n(12),l=n(775),u=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,l=o.documentElement.offsetWidth,u=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=l-(d?h.right-l:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,l):Math.min(this.getContainerFillWidth(),f,l),s===i&&u>0&&this.sumColumnWidths(0,u-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var p=n.getSetting("stretchH");return"none"!==p&&p?e:Math.max(e,(0,a.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,a.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===l.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;s<0&&(s=0);var u=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return u&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,u),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new l.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("viewportRowCalculatorOverride"),calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN,o<0&&(o=0);var i=t.getSetting("fixedColumnsStart");if(i){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new l.ViewportColumnsCalculator({viewportSize:r,scrollOffset:Math.abs(o),totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(l.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(l.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow;if(null===t&&null===n)return!1;var r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn;if(null===t&&null===n)return!1;var r=this.columnsRenderCalculator,o=r.startColumn,i=r.endColumn;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(23),n(43);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(563));t.ViewportColumnsCalculator=i.default;var a=r(n(564));t.ViewportRowsCalculator=a.default;var s=n(286);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(41),n(20),n(1),n(23),n(777);var o=r(n(21)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(16),u=r(n(779)),c=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(this.settings.createCellCoords(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,p=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,m=d.selectionType,v=void 0===m||["active-header","header"].includes(m);if(v&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var T=e.wtTable.columnFilter.renderedToSource(E);if(T>=s&&T<=c){var C=e.wtTable.getColumnHeaders(T),R=C.length-1;g&&C.length>1&&(C=[C[R]]);for(var w=0;w<C.length;w+=1){var S=[],O=C[w];h&&S.push(h),f&&S.push(f),w=g?R:w;var b=e.getSetting("onBeforeHighlightingColumnHeader",T,w,{selectionType:m,columnCursor:y,selectionWidth:c-s+1,classNames:S});b!==T&&(O=e.wtTable.getColumnHeader(b,w)),(0,l.addClass)(O,S)}y+=1}}if(null!==a&&null!==u)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=u){var I=e.wtTable.getRowHeaders(M),_=I.length-1;g&&I.length>1&&(I=[I[_]]);for(var k=0;k<I.length;k+=1){var P=[],x=I[k];h&&P.push(h),p&&P.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:u-a+1,classNames:P});L!==M&&(x=e.wtTable.getRowHeader(L,k)),(0,l.addClass)(x,P)}A+=1}if(null!==s&&null!==c)for(var D=0;D<n;D+=1){var F=e.wtTable.columnFilter.renderedToSource(D);M>=a&&M<=u&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=u?p&&this.addClassAtCoords(e,M,F,p):F>=s&&F<=c&&f&&this.addClassAtCoords(e,M,F,f);var U=e.getSetting("onAfterDrawSelection",M,F,this.settings.layerLevel);"string"==typeof U&&this.addClassAtCoords(e,M,F,U)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=c},function(e,t,n){var r=n(25),o=n(778).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(57),o=n(30),i=n(170),a=n(88),s=o(n(211).f),l=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,d=0,h=[];c>d;)n=u[d++],r&&!s(o,n)||l(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(83);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=n(16),l=n(75),u=n(12),c=n(94),d=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t,n){var r=e.main.childNodes[t];e.eventManager.addEventListener(r,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","start","bottom","end","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,c.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[n]=t}));var r={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,r,o,i){var a=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=this.selectionHandles.styles,l=s.top,u=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(l.borderWidth,10),f=parseInt(l.width,10),p=parseInt(u.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();l.top="".concat(parseInt(n-f-1,10),"px"),l[a]="".concat(parseInt(r-f-1,10),"px"),u.top="".concat(parseInt(n-p/4*3,10),"px"),u[a]="".concat(parseInt(r-p/4*3,10),"px");var v=Math.min(parseInt(r+o,10),g-f-2*h),y=Math.min(parseInt(r+o-p/4,10),g-p-2*h);c[a]="".concat(v,"px"),d[a]="".concat(y,"px");var E=Math.min(parseInt(n+i,10),m-f-2*h),T=Math.min(parseInt(n+i-p/4,10),m-p-2*h);c.top="".concat(E,"px"),d.top="".concat(T,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",u.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(l.display="none",c.display="none",u.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",u.zIndex="9999"):(l.zIndex="",u.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,l,u=this.wot,d=u.wtTable,h=u.rootDocument,f=u.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var v=p-1;v>=0;v-=1){var y=d.rowFilter.renderedToSource(v);if(y>=e[0]&&y<=e[2]){n=y;break}}for(var E=d.getRenderedColumnsCount(),T=0;T<E;T+=1){var C=d.columnFilter.renderedToSource(T);if(C>=e[1]&&C<=e[3]){r=C,l=e[1];break}}for(var R=E-1;R>=0;R-=1){var w=d.columnFilter.renderedToSource(R);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,b=O?d.getCell(this.wot.createCellCoords(n,i)):S,A=(0,s.offset)(S),N=O?(0,s.offset)(b):A,M=(0,s.offset)(d.TABLE),I=(0,s.outerWidth)(d.TABLE),_=A.top,k=A.left,P=this.wot.wtSettings.getSetting("rtlMode"),x=0,L=0;if(P){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,x=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,x=k-M.left-1;if(this.isEntireColumnSelected(t,n)){var U=this.getDimensionsFromHeader("columns",r,i,a,M),H=null;if(U){var V=(0,o.default)(U,3);H=V[0],x=V[1],L=V[2]}H&&(S=H)}var j=_-M.top-1,B=N.top+(0,s.outerHeight)(b)-_;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,l,M),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],j=G[1],B=G[2]}Y&&(S=Y)}var z=(0,s.getComputedStyle)(S,f);parseInt(z.borderTopWidth,10)>0&&(j+=1,B=B>0?B-1:0),parseInt(z[P?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,L=L>0?L-1:0);var K=P?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(B,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(j+B-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(x+L-X,"px"),this.endStyle.height="".concat(B+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var $=this.wot.getSetting("onModifyGetCellCoords",n,i),Q=n,Z=i;if($&&Array.isArray($)){var J=(0,o.default)($,4);Q=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange(Q,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(j+B+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+L+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(d.TABLE),te=ee===f;te&&(ee=h.documentElement);var ne=parseInt(this.cornerDefaultStyle.width,10)/2,re=parseInt(this.cornerDefaultStyle.height,10)/2;if(i===this.wot.getSetting("totalColumns")-1){var oe=te?b.getBoundingClientRect().left:b.offsetLeft;(P?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[P?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(j+B+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,j,x,L,B)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=l(t,m-r),g=l(n,m-r),!p||!g)return!1;var v=(0,s.offset)(p),y=(0,s.offset)(g);return p&&g&&(d=v[f]-o[f]-1,h=y[f]+u(g)-v[f]),[p,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"start"!==e&&"end"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(25),o=n(44),i=n(63),a=n(30),s=n(121),l=n(57),u=n(140),c=n(29),d=n(55),h=n(114),f=n(61),p=n(88),g=n(209),m=n(62),v=n(174),y=n(123),E=n(170),T=n(143),C=n(272),R=n(212),w=n(116),S=n(71),O=n(378),b=n(211),A=n(93),N=n(139),M=n(210),I=n(172),_=n(207),k=n(47),P=n(576),x=n(577),L=n(782),D=n(214),F=n(106),U=n(127).forEach,H=M("hidden"),V=F.set,j=F.getterFor("Symbol"),B=Object.prototype,W=o.Symbol,Y=W&&W.prototype,G=o.TypeError,z=o.QObject,K=w.f,X=S.f,q=C.f,$=b.f,Q=a([].push),Z=N("symbols"),J=N("op-symbols"),ee=N("wks"),te=!z||!z.prototype||!z.prototype.findChild,ne=l&&c((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(B,t);r&&delete B[t],X(e,t,n),r&&e!==B&&X(B,t,r)}:X,re=function(e,t){var n=Z[e]=y(Y);return V(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},oe=function(e,t,n){e===B&&oe(J,t,n),f(e);var r=g(t);return f(n),d(Z,r)?(n.enumerable?(d(e,H)&&e[H][r]&&(e[H][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,H)||X(e,H,v(1,{})),e[H][r]=!0),ne(e,r,n)):X(e,r,n)},ie=function(e,t){f(e);var n=p(t),r=E(n).concat(ue(n));return U(r,(function(t){l&&!i(ae,n,t)||oe(e,t,n[t])})),e},ae=function(e){var t=g(e),n=i($,this,t);return!(this===B&&d(Z,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,H)&&this[H][t])||n)},se=function(e,t){var n=p(e),r=g(t);if(n!==B||!d(Z,r)||d(J,r)){var o=K(n,r);return!o||!d(Z,r)||d(n,H)&&n[H][r]||(o.enumerable=!0),o}},le=function(e){var t=q(p(e)),n=[];return U(t,(function(e){d(Z,e)||d(I,e)||Q(n,e)})),n},ue=function(e){var t=e===B,n=q(t?J:p(e)),r=[];return U(n,(function(e){!d(Z,e)||t&&!d(B,e)||Q(r,Z[e])})),r};u||(A(Y=(W=function(){if(h(Y,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=_(e),n=function(e){this===B&&i(n,J,e),d(this,H)&&d(this[H],t)&&(this[H][t]=!1),ne(this,t,v(1,e))};return l&&te&&ne(B,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return j(this).tag})),A(W,"withoutSetter",(function(e){return re(_(e),e)})),b.f=ae,S.f=oe,O.f=ie,w.f=se,T.f=C.f=le,R.f=ue,P.f=function(e){return re(k(e),e)},l&&(X(Y,"description",{configurable:!0,get:function(){return j(this).description}}),s||A(B,"propertyIsEnumerable",ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(E(ee),(function(e){x(e)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ie(y(e),t)},defineProperty:oe,defineProperties:ie,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le}),L(),D(W,"Symbol"),I[H]=!0},function(e,t,n){var r=n(44);e.exports=r},function(e,t,n){var r=n(63),o=n(101),i=n(47),a=n(93);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(25),o=n(101),i=n(55),a=n(62),s=n(139),l=n(578),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(25),o=n(55),i=n(169),a=n(142),s=n(139),l=n(578),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},function(e,t,n){var r=n(25),o=n(101),i=n(128),a=n(63),s=n(30),l=n(29),u=n(145),c=n(50),d=n(56),h=n(169),f=n(180),p=n(140),g=o("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),E=s("".replace),T=s(1..toString),C=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!p||l((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=f(arguments),r=t;if((d(t)||void 0!==e)&&!h(e))return u(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!h(t))return t}),n[1]=t,i(g,null,n)},A=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(R,e)&&!m(w,o)||m(w,e)&&!m(R,r)?"\\u"+T(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,n){var r=f(arguments),o=i(S?b:g,null,r);return O&&"string"==typeof o?E(o,C,A):o}})},function(e,t,n){var r=n(25),o=n(140),i=n(29),a=n(212),s=n(81);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(72),n(73),n(1),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(133),l=n(13),u=n(36),c=n(58),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,this.propToCol(t),r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,this.colToProp(t),o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0;var o=r(n(32)),i=r(n(64)),a=r(n(2)),s=r(n(3));n(4),n(1),n(52),n(5),n(6),n(40),n(48),n(222),n(181),n(65),n(35),n(22),n(31),n(41),n(147);var l,u=n(13),c=n(66),d=n(74),h=n(579),f=n(794),p=r(n(86)),g=n(12),m=n(24),v=n(796),y=new Set(["getFirstNotHiddenIndex"]),E=function(){function e(){var t=this;(0,a.default)(this,e),this.indexesSequence=new h.IndexesSequence,this.trimmingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new f.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new f.MapCollection,this.hidingChangesObservable=new v.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,s.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,h.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof h.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof h.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,m.isDefined)(t)?t:null}},{key:"getFirstNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e-t;y.has("getFirstNotHiddenIndex")&&(y.delete("getFirstNotHiddenIndex"),(0,d.warn)((0,c.toSingleLine)(l||(l=(0,i.default)(['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next \n major release. Please use "getNearestNotHiddenIndex" instead.'],['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next\\x20\n major release. Please use "getNearestNotHiddenIndex" instead.'])))));var o=this.getPhysicalFromVisualIndex(e);return null===o?!0===n&&r!==e-t?this.getFirstNotHiddenIndex(r,-t,!1,r):null:!1===this.isHidden(o)?e:this.getFirstNotHiddenIndex(e+t,t,n,r)}},{key:"getNearestNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getPhysicalFromVisualIndex(e);if(null===r)return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;var o=Array.from(this.fromVisualToRenderableIndexesCache.keys()),i=-1;return-1===(i=t>0?o.findIndex((function(t){return t>e})):o.reverse().findIndex((function(t){return t<e})))?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesSequence.init(e),this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){this.indexesSequence.setValues(e)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,u.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,h.getListWithRemovedItems)(this.getIndexesSequence(),r),s=o-i;if(t+i<o){var l=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];s=a.indexOf(l)}this.setIndexesSequence((0,h.getListWithInsertedItems)(a,s,r))}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,m.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,u.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesSequence.insert(o,i),this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesSequence.remove(e),this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderableIndexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}();t.IndexMapper=E,(0,g.mixin)(E,p.default)},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(8);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(20),n(65),n(4),n(1),n(6),n(31),n(41),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(26)),f=n(227),p=n(293),g=n(228),m=n(580),v=n(58);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var E=function(e){(0,u.default)(n,e);var t=y(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,v.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=E},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(292),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(227),d=n(228),h=n(581);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(23),n(43),t.__esModule=!0;var r=n(795);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(294);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(294),c=n(13),d=n(24);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(4),n(1),n(52),n(5),n(6),n(147),n(23),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(78)),s=r(n(79)),l=n(797),u=n(798);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,d,{writable:!0,value:new Set}),c(this,h,{writable:!0,value:[]}),c(this,f,{writable:!0,value:[]}),c(this,p,{writable:!0,value:!1}),c(this,g,{writable:!0,value:!1}),(0,s.default)(this,g,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,h),(0,a.default)(this,f))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,f);(0,a.default)(this,p)&&(0,a.default)(this,h).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,g)):(0,s.default)(this,h,new Array(e.length).fill((0,a.default)(this,g))),(0,a.default)(this,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,h)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(79)),s=r(n(78)),l=n(12),u=r(n(86));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(){(0,o.default)(this,e),c(this,d,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,d)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,d,e)}}]),e}();t.ChangesObserver=h,(0,l.mixin)(h,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=u;var o=r(n(102)),i=r(n(800)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(72),n(73)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(15);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(26)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(18));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=(i={languageCode:"en-US"},(0,a.default)(i,s.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,["Copy with header","Copy with headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,["Copy with group header","Copy with group headers"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,["Copy header only","Copy headers only"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,a.default)(i,s.FILTERS_CONDITIONS_NONE,"None"),(0,a.default)(i,s.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,a.default)(i,s.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,a.default)(i,s.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,a.default)(i,s.FILTERS_CONDITIONS_AFTER,"After"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEFORE,"Before"),(0,a.default)(i,s.FILTERS_CONDITIONS_TODAY,"Today"),(0,a.default)(i,s.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,a.default)(i,s.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),(0,a.default)(i,s.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,a.default)(i,s.FILTERS_LABELS_CONJUNCTION,"And"),(0,a.default)(i,s.FILTERS_LABELS_DISJUNCTION,"Or"),(0,a.default)(i,s.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,a.default)(i,s.FILTERS_BUTTONS_CLEAR,"Clear"),(0,a.default)(i,s.FILTERS_BUTTONS_OK,"OK"),(0,a.default)(i,s.FILTERS_BUTTONS_CANCEL,"Cancel"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),i);t.default=u},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.createHighlight=function(e,t){return m(e)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:e},t))};var o=r(n(26)),i=r(n(102)),a=n(103),s=r(n(803)),l=r(n(805)),u=r(n(806)),c=r(n(807)),d=r(n(808)),h=r(n(811));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var p=(0,i.default)("highlight/types"),g=p.register,m=p.getItem;g(a.ACTIVE_HEADER_TYPE,s.default),g(a.AREA_TYPE,l.default),g(a.CELL_TYPE,u.default),g(a.CUSTOM_SELECTION_TYPE,c.default),g(a.FILL_TYPE,d.default),g(a.HEADER_TYPE,h.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["activeHeaderClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.activeHeaderClassName,n=(0,i.default)(e,l);return new s.default(c(c({highlightHeaderClassName:t},n),{},{selectionType:a.ACTIVE_HEADER_TYPE}))};t.default=d},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["layerLevel","areaCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.layerLevel,n=e.areaCornerVisible,r=(0,i.default)(e,l);return new s.default(c(c({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r),{},{selectionType:a.AREA_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["cellCornerVisible"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.cellCornerVisible,n=(0,i.default)(e,l);return new s.default(c(c({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n),{},{selectionType:a.CELL_TYPE}))};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["border","visualCellRange"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.border,n=e.visualCellRange,r=(0,i.default)(e,l);return new s.default(c(c(c({},t),r),{},{selectionType:a.CUSTOM_SELECTION_TYPE}),n)};t.default=d},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0,n(297);var o=r(n(26)),i=r(n(810)),a=n(103),s=r(n(153));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=Object.assign({},((0,i.default)(e),e));return new s.default(u(u({className:"fill",border:{width:1,color:"#ff0000"}},t),{},{selectionType:a.FILL_TYPE}))};t.default=c},function(e,t,n){"use strict";var r=n(57),o=n(30),i=n(63),a=n(29),s=n(170),l=n(212),u=n(211),c=n(81),d=n(165),h=Object.assign,f=Object.defineProperty,p=o([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||"abcdefghijklmnopqrst"!=s(h({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,h=l.f,f=u.f;o>a;)for(var g,m=d(arguments[a++]),v=h?p(s(m),h(m)):s(m),y=v.length,E=0;y>E;)g=v[E++],r&&!i(f,m,g)||(n[g]=m[g]);return n}:h},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(109)),a=n(103),s=r(n(153)),l=["headerClassName","rowClassName","columnClassName"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=(0,i.default)(e,l);return new s.default(c(c({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o),{},{highlightOnlyClosestHeader:!0,selectionType:a.HEADER_TYPE}))};t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=r(n(64));n(4),n(1),n(52),n(5),n(6),n(20),n(48),n(31),n(41),n(72),n(73),n(23);var a,s=r(n(2)),l=r(n(3)),u=r(n(584)),c=n(103),d=r(n(813)),h=n(12),f=n(24),p=n(13),g=r(n(86)),m=r(n(814)),v=n(229),y=n(66),E=function(){function e(t,n){var r=this;(0,s.default)(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new d.default((function(e,t,n){return r.tableProps.createCellRange(e,t,n)})),this.highlight=new u.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disabledCellSelection:function(e,t){return r.tableProps.isDisabledCellSelection(e,t)},cellCornerVisible:function(){return r.isCellCornerVisible.apply(r,arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible.apply(r,arguments)},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},createCellRange:function(e,t,n){return r.tableProps.createCellRange(e,t,n)},rowIndexMapper:function(){return r.tableProps.rowIndexMapper()},columnIndexMapper:function(){return r.tableProps.columnIndexMapper()}}),this.transformation=new m.default(this.selectedRange,{countRows:function(){return r.tableProps.countRowsTranslated()},countCols:function(){return r.tableProps.countColsTranslated()},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("beforeTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("afterTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("insertRowRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertRowRequire"].concat(t))})),this.transformation.addLocalHook("insertColRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertColRequire"].concat(t))}))}return(0,l.default)(e,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=(0,f.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,i=e.row<0,a=e.col<0,s=i&&a,l=e.clone();this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),l),(!r||r&&!o&&(0,f.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(l),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){var t=e.clone();this.runLocalHooks("beforeSetRangeEnd",t),this.begin();var n=this.selectedRange.current();"single"!==this.settings.selectionMode&&n.setTo(this.tableProps.createCellCoords(t.row,t.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(c.CELL_TYPE,n.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().syncWith(n);var r=this.getLayerLevel();r<this.highlight.layerLevel&&((0,p.arrayEach)(this.highlight.getAreas(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getHeaders(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(r);var o=this.highlight.createOrGetArea(),i=this.highlight.createOrGetHeader(),a=this.highlight.createOrGetActiveHeader();if(o.clear(),i.clear(),a.clear(),this.highlight.isEnabledFor(c.AREA_TYPE,n.highlight)&&(this.isMultiple()||r>=1)&&(o.add(n.from).add(n.to).commit(),1===r)){var s=this.selectedRange.previous();this.highlight.useLayerLevel(r-1).createOrGetArea().add(s.from).commit().syncWith(s),this.highlight.useLayerLevel(r)}if(this.highlight.isEnabledFor(c.HEADER_TYPE,n.highlight)){var l=0===this.tableProps.countRowsTranslated(),u=0===this.tableProps.countColsTranslated(),d=n;if((l||u)&&(d=n.clone()),l&&(d.from.row=-1),u&&(d.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&d.from.normalize(),i.add(d.from).commit()):i.add(d.from).add(d.to).commit(),this.isEntireRowSelected())this.tableProps.countCols()===n.getWidth()&&a.add(this.tableProps.createCellCoords(n.from.row,-1)).add(this.tableProps.createCellCoords(n.to.row,-1)).commit();if(this.isEntireColumnSelected())this.tableProps.countRows()===n.getHeight()&&a.add(this.tableProps.createCellCoords(-1,n.from.col)).add(this.tableProps.createCellCoords(-1,n.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,h.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&this.isEntireRowSelected(e)}},{key:"isEntireRowSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(e)}},{key:"isEntireColumnSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.tableProps.countRows(),r=this.tableProps.countCols();if(e||t||0!==n&&0!==r){var o=this.tableProps.createCellCoords(t?-1:0,e?-1:0),i=this.tableProps.createCellCoords(n-1,r-1);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(i),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=(0,v.detectSelectionType)(e);if(n===v.SELECTION_TYPE_EMPTY)return!1;if(n===v.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,y.toSingleLine)(a||(a=(0,i.default)(["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, \n columnEnd/columnPropEnd]]) or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass\\x20\n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\\x20\n columnEnd/columnPropEnd]]) or as an array of CellRange objects."]))));var r=(0,v.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),s=this.tableProps.countRows(),l=this.tableProps.countCols(),u=!e.some((function(e){var t=r(e),n=(0,o.default)(t,4),i=n[0],a=n[1],u=n[2],c=n[3];return!((0,v.isValidCoord)(i,s)&&(0,v.isValidCoord)(a,l)&&(0,v.isValidCoord)(u,s)&&(0,v.isValidCoord)(c,l))}));return u&&(this.clear(),(0,p.arrayEach)(e,(function(e){var n=r(e),i=(0,o.default)(n,4),a=i[0],s=i[1],l=i[2],u=i[3];t.setRangeStartOnly(t.tableProps.createCellCoords(a,s),!1),t.setRangeEnd(t.tableProps.createCellCoords(l,u)),t.finish()}))),u}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countCols(),a=this.tableProps.countRows(),s=(0,v.isValidCoord)(r,i)&&(0,v.isValidCoord)(o,i);return s&&(this.setRangeStartOnly(this.tableProps.createCellCoords(n,r)),this.setRangeEnd(this.tableProps.createCellCoords(a-1,o)),this.finish()),s}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.tableProps.countRows(),o=this.tableProps.countCols(),i=(0,v.isValidCoord)(e,r)&&(0,v.isValidCoord)(t,r);return i&&(this.setRangeStartOnly(this.tableProps.createCellCoords(e,n)),this.setRangeEnd(this.tableProps.createCellCoords(t,o-1)),this.finish()),i}},{key:"refresh",value:function(){if(this.highlight.getCustomSelections().forEach((function(e){e.commit()})),this.isSelected()){var e=this.highlight.getCell(),t=this.getLayerLevel();e.commit().syncWith(this.selectedRange.current());for(var n=0;n<this.selectedRange.size();n+=1){this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();r.commit(),o.commit(),i.commit()}this.highlight.useLayerLevel(t)}}}]),e}();(0,h.mixin)(E,g.default);var T=E;t.default=T},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(31),n(41),n(296),n(4),n(5),n(6),n(54),n(186);var o=r(n(2)),i=r(n(3)),a=function(e){function t(e){(0,o.default)(this,t),this.ranges=[],this.createCellRange=e}return(0,i.default)(t,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(this.createCellRange(e)),this}},{key:"pop",value:function(){return this.ranges.pop(),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some((function(t){return t.includes(e)}))}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:e,value:function(){return this.ranges[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=r(n(86)),l=function(){function e(t,n){(0,o.default)(this,e),this.range=t,this.options=n}return(0,i.default)(e,[{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.options.createCellCoords(e,t),o=this.range.current().highlight,i=this.options.visualToRenderableCoords(o),a=i.row,s=i.col,l=o,u=0,c=0;if(this.runLocalHooks("beforeTransformStart",r),null!==a&&null!==s){var d=this.options.countRows(),h=this.options.countCols(),f=this.options.fixedRowsBottom(),p=this.options.minSpareRows(),g=this.options.minSpareCols(),m=this.options.autoWrapRow(),v=this.options.autoWrapCol();a+e>d-1?n&&p>0&&!(f&&a>=d-f-1)?(this.runLocalHooks("insertRowRequire",d),d=this.options.countRows()):v&&(r.row=1-d,r.col=s+r.col===h-1?1-h:1):v&&a+r.row<0&&s+r.col>=0&&(r.row=d-1,r.col=s+r.col===0?h-1:-1),s+r.col>h-1?n&&g>0?(this.runLocalHooks("insertColRequire",h),h=this.options.countCols()):m&&(r.row=a+r.row===d-1?1-d:1,r.col=1-h):m&&s+r.col<0&&a+r.row>=0&&(r.row=a+r.row===0?d-1:-1,r.col=h-1);var y=this.options.createCellCoords(a+r.row,s+r.col);u=0,c=0,y.row<0?(u=-1,y.row=0):y.row>0&&y.row>=d&&(u=1,y.row=d-1),y.col<0?(c=-1,y.col=0):y.col>0&&y.col>=h&&(c=1,y.col=h-1),l=this.options.renderableToVisualCoords(y)}return this.runLocalHooks("afterTransformStart",l,u,c),l}},{key:"transformEnd",value:function(e,t){var n=this.options.createCellCoords(e,t),r=this.range.current(),o=r.to,i=0,a=0;this.runLocalHooks("beforeTransformEnd",n);var s=this.options.visualToRenderableCoords(r.highlight),l=s.row,u=s.col;if(null!==l&&null!==u){var c=this.options.countRows(),d=this.options.countCols(),h=this.options.visualToRenderableCoords(r.to),f=h.row,p=h.col,g=this.options.createCellCoords(f+n.row,p+n.col);i=0,a=0,g.row<0?(i=-1,g.row=0):g.row>0&&g.row>=c&&(i=1,g.row=c-1),g.col<0?(a=-1,g.col=0):g.col>0&&g.col>=d&&(a=1,g.col=d-1),o=this.options.renderableToVisualCoords(g)}return this.runLocalHooks("afterTransformEnd",o,i,a),o}}]),e}();(0,a.mixin)(l,s.default);var u=l;t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.parse=function(e){var t=[[""]];if(0===e.length)return t;var n,a=0,s=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(i))e=e.replace(i,""),a+=1,t[s][a]="";else if(e.match(r))e=e.replace(r,""),a=0,t[s+=1]=[""];else{var l="";if(e.startsWith('"')){for(var u=0,c=!0;c;){var d=e.slice(0,1);'"'===d&&(u+=1),l+=d,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&u%2==0)&&(c=!1)}l=l.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var h=e.match(o);l=h?h[0]:"",e=e.slice(l.length)}t[s][a]=l}return t},t.stringify=function(e){var t,n,r,o,i,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(a+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?a+='"'.concat(i.replace(/"/g,'""'),'"'):a+=i:a+=null==i?"":i;t!==n-1&&(a+="\n")}return a},n(51),n(561),n(82),n(230),n(39),n(83),n(147),n(22);var r=/^(\r\n|\n\r|\r|\n)/,o=/^[^\t\r\n]+/,i=/^\t/},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(23);var o=r(n(2)),i=r(n(3)),a=r(n(817)),s=r(n(818)),l=r(n(819)),u=r(n(820)),c=r(n(86)),d=n(12),h=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,o.default)(this,e),this.hot=t,this.globalMeta=new a.default(t),this.tableMeta=new s.default(this.globalMeta),this.columnMeta=new l.default(this.globalMeta),this.cellMeta=new u.default(this.columnMeta),i.forEach((function(e){return new e(n)})),this.globalMeta.updateMeta(r)}return(0,i.default)(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(e){this.globalMeta.updateMeta(e)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(e){this.tableMeta.updateMeta(e)}},{key:"getColumnMeta",value:function(e){return this.columnMeta.getMeta(e)}},{key:"updateColumnMeta",value:function(e,t){this.columnMeta.updateMeta(e,t)}},{key:"getCellMeta",value:function(e,t,n){var r=n.visualRow,o=n.visualColumn,i=this.cellMeta.getMeta(e,t);return i.visualRow=r,i.visualCol=o,i.row=e,i.col=t,this.runLocalHooks("afterGetCellMeta",i),i}},{key:"getCellMetaKeyValue",value:function(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}},{key:"setCellMeta",value:function(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}},{key:"updateCellMeta",value:function(e,t,n){this.cellMeta.updateMeta(e,t,n)}},{key:"removeCellMeta",value:function(e,t,n){this.cellMeta.removeMeta(e,t,n)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(e){return this.cellMeta.getMetasAtRow(e)}},{key:"createRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}},{key:"createColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}},{key:"removeColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}},{key:"clearCache",value:function(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}]),e}();t.default=h,(0,d.mixin)(h,c.default)},function(e,t,n){"use strict";n(43),n(54),n(35),n(1),n(15),n(23),n(68);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(26)),i=r(n(3)),a=r(n(2)),s=n(12),l=n(187),u=r(n(588));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){function e(t){(0,a.default)(this,e),this.metaCtor=(0,i.default)((function e(){(0,a.default)(this,e)})),this.meta=this.metaCtor.prototype,(0,s.extend)(this.meta,(0,u.default)()),this.meta.instance=t}return(0,i.default)(e,[{key:"getMetaConstructor",value:function(){return this.metaCtor}},{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){var t;(0,s.extend)(this.meta,e),(0,l.extendByMetaType)(this.meta,d(d({},e),{},{type:null!==(t=e.type)&&void 0!==t?t:this.meta.type}),e)}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=function(){function e(t){(0,o.default)(this,e);var n=t.getMetaConstructor();this.meta=new n}return(0,i.default)(e,[{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){(0,a.extend)(this.meta,e),(0,s.extendByMetaType)(this.meta,e,e)}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(12),s=n(187),l=r(n(589)),u=["data","width"],c=function(){function e(t){var n=this;(0,o.default)(this,e),this.globalMeta=t,this.metas=new l.default((function(){return n._createMeta()}))}return(0,i.default)(e,[{key:"updateMeta",value:function(e,t){var n=this.getMeta(e);(0,a.extend)(n,t),(0,s.extendByMetaType)(n,t)}},{key:"createColumn",value:function(e,t){this.metas.insert(e,t)}},{key:"removeColumn",value:function(e,t){this.metas.remove(e,t)}},{key:"getMeta",value:function(e){return this.metas.obtain(e)}},{key:"getMetaConstructor",value:function(e){return this.metas.obtain(e).constructor}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createMeta",value:function(){return(0,s.columnFactory)(this.globalMeta.getMetaConstructor(),u).prototype}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(48),n(5),n(4),n(1),n(6),n(40);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(187),u=r(n(589)),c=function(){function e(t){var n=this;(0,i.default)(this,e),this.columnMeta=t,this.metas=new u.default((function(){return n._createRow()}))}return(0,a.default)(e,[{key:"updateMeta",value:function(e,t,n){var r=this.getMeta(e,t);(0,s.extend)(r,n),(0,l.extendByMetaType)(r,n)}},{key:"createRow",value:function(e,t){this.metas.insert(e,t)}},{key:"createColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}},{key:"removeRow",value:function(e,t){this.metas.remove(e,t)}},{key:"removeColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}},{key:"getMeta",value:function(e,t,n){var r=this.metas.obtain(e).obtain(t);return void 0===n?r:r[n]}},{key:"setMeta",value:function(e,t,n,r){var o,i=this.metas.obtain(e).obtain(t);null===(o=i._automaticallyAssignedMetaProps)||void 0===o||o.delete(n),i[n]=r}},{key:"removeMeta",value:function(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}},{key:"getMetas",value:function(){for(var e=[],t=Array.from(this.metas.values()),n=0;n<t.length;n++)e.push.apply(e,(0,o.default)(t[n].values()));return e}},{key:"getMetasAtRow",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createRow",value:function(){var e=this;return new u.default((function(t){return e._createMeta(t)}))}},{key:"_createMeta",value:function(e){return new(this.columnMeta.getMetaConstructor(e))}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.replaceData=function(e,t,n,r){var u=r.hotInstance,c=r.dataMap,d=r.dataSource,h=r.internalSource,f=r.source,p=r.metaManager,g=r.firstRun,m=(0,i.toUpperCaseFirst)(h),v=u.getSettings();Array.isArray(v.dataSchema)?u.dataType="array":(0,a.isFunction)(v.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks("before".concat(m),e,g,f);var y=new s.default(u,e,p);if(t(y),"object"===(0,o.default)(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("".concat(h," only accepts array of objects or array of arrays (").concat((0,o.default)(e)," given)"));var E,T=y.getSchema();e=[];var C,R=0;for(R=0,C=v.startRows;R<C;R++)if("object"!==u.dataType&&"function"!==u.dataType||!v.dataSchema)if("array"===u.dataType)E=(0,l.deepClone)(T[0]),e.push(E);else{E=[];for(var w=0,S=v.startCols;w<S;w++)E.push(null);e.push(E)}else E=(0,l.deepClone)(T),e.push(E)}Array.isArray(e[0])&&(u.dataType="array");v.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),n(y),u.runHooks("after".concat(m),e,g,f),g||(u.runHooks("afterChange",null,h),u.render())},n(53),n(20);var o=r(n(14)),i=n(84),a=n(58),s=r(n(586)),l=n(12)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DynamicCellMetaMod=void 0,n(4),n(40),n(1),n(5),n(6),n(52);var o=r(n(2)),i=r(n(3)),a=r(n(59)),s=n(12),l=n(58),u=function(){function e(t){var n=this;(0,o.default)(this,e),this.metaManager=t,this.metaSyncMemo=new Map,t.addLocalHook("afterGetCellMeta",(function(e){return n.extendCellMeta(e)})),a.default.getSingleton().add("beforeRender",(function(e){e&&n.metaSyncMemo.clear()}),this.metaManager.hot)}return(0,i.default)(e,[{key:"extendCellMeta",value:function(e){var t,n=e.row,r=e.col;if(null===(t=this.metaSyncMemo.get(n))||void 0===t||!t.has(r)){var o=e.visualRow,i=e.visualCol,a=this.metaManager.hot,u=a.colToProp(i);e.prop=u,a.runHooks("beforeGetCellMeta",o,i,e);var c,d=(0,s.hasOwnProperty)(e,"type")?e.type:null,h=(0,l.isFunction)(e.cells)?e.cells(n,r,u):null;if(d)if(h)h.type=null!==(c=h.type)&&void 0!==c?c:d;else h={type:d};h&&this.metaManager.updateCellMeta(n,r,h),a.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}}]),e}();t.DynamicCellMetaMod=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ExtendMetaPropertiesMod=void 0,n(4),n(1),n(52),n(5),n(6),n(40),n(23);var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.metaManager=t,this.usageTracker=new Set,this.propDescriptors=new Map([["fixedColumnsLeft",{target:"fixedColumnsStart",onChange:function(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{onChange:function(e,t,n){if(!n)throw new Error("The `".concat(e,"` option can not be updated after the Handsontable is initialized."))}}]]),this.extendMetaProps()}return(0,i.default)(e,[{key:"extendMetaProps",value:function(){var e=this;this.propDescriptors.forEach((function(t,n){var r=t.target,o=t.onChange,i=void 0===o?function(){}:o,a="string"==typeof r,s=a?r:n,l="_".concat(s);e.metaManager.globalMeta.meta[l]=e.metaManager.globalMeta.meta[s],e.installPropWatcher(n,l,i),a&&e.installPropWatcher(r,l,i)}))}},{key:"installPropWatcher",value:function(e,t,n){var r=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get:function(){return this[t]},set:function(o){var i=!r.usageTracker.has(e);r.usageTracker.add(e),n.call(r,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}]),e}();t.ExtendMetaPropertiesMod=a},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(825);t.createShortcutManager=r.createShortcutManager},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(224),o=n(826),i=n(827);t.createShortcutManager=function(e){var t=e.ownerWindow,n=e.handleEvent,a=e.beforeKeyDown,s=e.afterKeyDown,l=(0,r.createUniqueMap)({errorIdExists:function(e){return'The "'.concat(e,'" context name is already registered.')}}),u="grid",c=function(){return u},d=function(e){return l.getItem(e)},h=!1,f=(0,i.useRecorder)(t,n,a,s,(function(e,t){var n=d(c()),r=!1;if(!n.hasShortcut(t))return r;for(var o=n.getShortcuts(t),i=0;i<o.length;i++){var a=o[i],s=a.callback,l=a.runOnlyIf,u=a.preventDefault,f=a.stopPropagation,p=a.captureCtrl;if(!1!==l(e)&&(h=p,r=!1===s(e,t),h=!1,u&&e.preventDefault(),f&&e.stopPropagation(),r))break}return r}));return f.mount(),{addContext:function(e){var t=(0,o.createContext)(e);return l.addItem(e,t),t},getActiveContextName:c,getContext:d,setActiveContextName:function(e){u=e},isCtrlPressed:function(){return!h&&(f.isPressed("control")||f.isPressed("meta"))},releasePressedKeys:function(){return f.releasePressedKeys()},destroy:function(){return f.unmount()}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createContext=void 0;var o=r(n(32)),i=r(n(21)),a=r(n(64));n(20),n(4),n(1),n(6),n(23),n(222),n(53),n(35),n(39);var s,l=n(224),u=n(590),c=n(24),d=n(58),h=n(12),f=n(66);t.createContext=function(e){var t=(0,l.createUniqueMap)({errorIdExists:function(t){return'The "'.concat(t,'" shortcut is already registered in the "').concat(e,'" context.')}}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.keys,r=e.callback,o=e.group,i=e.runOnlyIf,l=void 0===i?function(){return!0}:i,h=e.captureCtrl,p=void 0!==h&&h,g=e.preventDefault,m=void 0===g||g,v=e.stopPropagation,y=void 0!==v&&v,E=e.relativeToGroup,T=e.position;if((0,c.isUndefined)(o))throw new Error("You need to define the shortcut's group.");if(!1===(0,d.isFunction)(r))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(n))throw new Error((0,f.toSingleLine)(s||(s=(0,a.default)(["Pass the shortcut's keys as an array of arrays, \n using the KeyboardEvent.key properties: \n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."],["Pass the shortcut\\'s keys as an array of arrays,\\x20\n using the KeyboardEvent.key properties:\\x20\n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."]))));var C={callback:r,group:o,runOnlyIf:l,captureCtrl:p,preventDefault:m,stopPropagation:y};if((0,c.isDefined)(E)){var R=[E,T];C.relativeToGroup=R[0],C.position=R[1]}n.forEach((function(e){var n=(0,u.normalizeKeys)(e);if(t.hasItem(n)){var r=t.getItem(n),o=r.findIndex((function(e){return e.group===E}));-1!==o?"before"===T?o-=1:o+=1:o=r.length,r.splice(o,0,C)}else t.addItem(n,[C])}))},r=function(e){var n=(0,u.normalizeKeys)(e);t.removeItem(n)};return{addShortcut:n,addShortcuts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){(0,h.objectEach)(t,(function(n,r){!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])})),n(e)}))},getShortcuts:function(e){var n=(0,u.normalizeKeys)(e),r=t.getItem(n);return(0,c.isDefined)(r)?r.slice():[]},hasShortcut:function(e){var n=(0,u.normalizeKeys)(e);return t.hasItem(n)},removeShortcutsByKeys:r,removeShortcutsByGroup:function(e){t.getItems().forEach((function(t){var n=(0,i.default)(t,2),a=n[0],s=n[1],l=s.filter((function(t){return t.group!==e}));0===l.length?r((0,u.getKeysList)(a)):(s.length=0,s.push.apply(s,(0,o.default)(l)))}))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,n,r,c){var d=function(e){return l.includes(e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},f=function(e){if(!1!==t(e)){var a=n(e);if(229!==e.keyCode&&!1!==a&&!(0,i.isImmediatePropagationStopped)(e)){var l=(0,o.normalizeEventKey)(e.key),f=[];d(l)?u.press(l):f=h(e);var p=[l].concat(f);!c(e,p)&&((0,s.isMacOS)()&&f.includes("meta")||!(0,s.isMacOS)()&&f.includes("control"))&&c(e,[l].concat(h(e,!0))),r(e)}}},p=function(e){if(!1!==t(e)){var n=(0,o.normalizeEventKey)(e.key);!1!==d(n)&&u.release(n)}},g=function(){u.releaseAll()};return{mount:function(){for(var t=e;t;)t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("keyup",p),t.document.documentElement.addEventListener("blur",g),t=(0,a.getParentWindow)(t)},unmount:function(){for(var t=e;t;)t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("keyup",p),t.document.documentElement.removeEventListener("blur",g),t=(0,a.getParentWindow)(t)},isPressed:function(e){return u.isPressed(e)},releasePressedKeys:function(){return u.releaseAll()}}},n(31),n(20),n(41);var r=n(828),o=n(590),i=n(75),a=n(16),s=n(94),l=["meta","alt","shift","control"],u=(0,r.createKeysObserver)()},function(e,t,n){"use strict";t.__esModule=!0,t.createKeysObserver=function(){var e=new Set;return{press:function(t){e.add(t)},release:function(t){e.delete(t)},releaseAll:function(){e.clear()},isPressed:function(t){return e.has(t)}}},n(4),n(1),n(52),n(5),n(6)},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(134),o=n(135);t.CELL_TYPE="text";var i={CELL_TYPE:"text",editor:r.TextEditor,renderer:o.textRenderer};t.TextCellType=i},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0,n(22);var o=r(n(21)),i=r(n(2)),a=r(n(3)),s=r(n(33)),l=r(n(19)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=n(189),f=r(n(49)),p=n(94),g=n(16),m=n(36),v=n(108),y=n(832),E=n(24),T=n(182),C=n(592),R=n(834);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.EDITOR_TYPE="text";var S=function(e){(0,u.default)(n,e);var t=w(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).eventManager=new f.default((0,s.default)(r)),r.autoResize=(0,y.autoResize)(),r.TEXTAREA=void 0,r.textareaStyle=void 0,r.TEXTAREA_PARENT=void 0,r.textareaParentStyle=void 0,r.layerClass=void 0,r.createElements(),r.bindEvents(),r.hot.addHookOnce("afterDestroy",(function(){return r.destroy()})),r}return(0,a.default)(n,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var e=this;this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.addHook("afterDocumentKeyDown",(function(t){return e.onAfterDocumentKeyDown(t)})),this.registerShortcuts()}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts(),this.removeHooksByKey("afterDocumentKeyDown")}},{key:"prepare",value:function(e,t,r,o,i,a){var s=this.state;if((0,l.default)((0,d.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var u=a.allowInvalid,c=a.fragmentSelection;u&&(this.TEXTAREA.value=""),s!==h.EDITOR_STATE.FINISHED&&this.hideEditableElement(),!c&&!(0,p.isMobileBrowser)()&&this.focus()}}},{key:"beginEditing",value:function(e,t){this.state===h.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,l.default)((0,d.default)(n.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(){this.TEXTAREA.select(),(0,g.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.tabIndex=-1,(0,g.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,g.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,g.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){((0,p.isIE)()||(0,p.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,g.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,g.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;(0,m.rangeEach)(e.length-1,(function(n){var r=e[n];if((0,g.hasClass)(r,"handsontableEditor"))return t=!0,!1})),(0,g.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,g.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,g.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===h.EDITOR_STATE.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t=this.getEditedCellRect(),n=t.top,r=t.start,o=t.width,i=t.maxWidth,a=t.height,s=t.maxHeight;this.textareaParentStyle.top="".concat(n,"px"),this.textareaParentStyle[this.hot.isRtl()?"right":"left"]="".concat(r,"px"),this.showEditableElement();var l=(0,g.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor;var u=(0,g.getComputedStyle)(this.TEXTAREA),c=parseInt(u.paddingLeft,10)+parseInt(u.paddingRight,10),d=parseInt(u.paddingTop,10)+parseInt(u.paddingBottom,10),f=o-c,p=a-d,m=i-c,v=s-d;this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(f,m),minHeight:Math.min(p,v),maxWidth:m,maxHeight:v},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return e.stopPropagation()})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return e.stopPropagation()})),(0,p.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(function(){return e.finishEditing(!1)})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={runOnlyIf:function(){return(0,E.isDefined)(e.hot.getSelected())},group:"textEditor"},r=function(){e.hot.rootDocument.execCommand("insertText",!1,"\n")};t.addShortcuts([{keys:[["Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(r.row,r.col,!0)}},{keys:[["Shift","Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(-r.row,-r.col)}},{keys:[["Control","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(t){return!e.hot.selection.isMultiple()&&!t.altKey},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Meta","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(){return!e.hot.selection.isMultiple()},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Alt","Enter"]],callback:function(){return r(),!1},relativeToGroup:T.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["PageUp"]],callback:function(){e.hot.selection.transformStart(-e.hot.countVisibleRows(),0)}},{keys:[["PageDown"]],callback:function(){e.hot.selection.transformStart(e.hot.countVisibleRows(),0)}},{keys:[["Home"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["End"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,R.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["Control/Meta","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}},{keys:[["Control/Meta","Shift","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}}],n)}},{key:"unregisterShortcuts",value:function(){var e=this.hot.getShortcutManager().getContext("editor");e.removeShortcutsByGroup(T.SHORTCUTS_GROUP_NAVIGATION),e.removeShortcutsByGroup("textEditor"),e.removeShortcutsByGroup(C.SHORTCUTS_GROUP_EDITOR)}},{key:"onAfterDocumentKeyDown",value:function(e){-1===[v.KEY_CODES.ARROW_UP,v.KEY_CODES.ARROW_RIGHT,v.KEY_CODES.ARROW_DOWN,v.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}],[{key:"EDITOR_TYPE",get:function(){return"text"}}]),n}(h.BaseEditor);t.TextEditor=S},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(13),o=n(12),i={_hooksStorage:Object.create(null),addHook:function(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey:function(e){var t=this;(0,r.arrayEach)(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;(0,o.objectEach)(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};(0,o.defineGetter)(i,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=void 0;var r=n(833);t.autoResize=r.autoResize},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.position="absolute",o.style.fontSize=c(e).fontSize,o.style.fontFamily=c(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},u=function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){u(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}},n(51),n(67)},function(e,t,n){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){for(var n=(0,r.getCaretPosition)(t),o=t.value.split("\n"),i=n,a=0,s=0;s<o.length;s++){var l=o[s];0!==s&&(a+=o[s-1].length+1);var u=a+l.length;if("home"===e?i=a:"end"===e&&(i=u),n<=u)break}(0,r.setCaretPosition)(t,i)};var r=n(16)},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.textRenderer=a,n(149);var r=n(231),o=n(16),i=n(24);function a(e,t,n,a,s,l,u){r.baseRenderer.apply(this,[e,t,n,a,s,l,u]);var c=l;if(!c&&u.placeholder&&(c=u.placeholder),c=(0,i.stringify)(c),u.trimWhitespace&&(c=c.trim()),u.rendererTemplate){(0,o.empty)(t);var d=e.rootDocument.createElement("TEMPLATE");d.setAttribute("bind","{{}}"),d.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(d),d.model=e.getSourceDataAtRow(n),t.appendChild(d)}else(0,o.fastInnerText)(t,c)}t.RENDERER_TYPE="text",a.RENDERER_TYPE="text"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.baseRenderer=o;var r=n(16);function o(e,t,n,o,i,a,s){var l=[],u=[];s.className&&(0,r.addClass)(t,s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,r.removeClass)(t,u),(0,r.addClass)(t,l)}t.RENDERER_TYPE="base",o.RENDERER_TYPE="base"},function(e,t,n){"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,r.registerAllEditors)(),(0,o.registerAllRenderers)(),(0,i.registerAllValidators)(),(0,a.registerAllCellTypes)(),(0,s.registerAllPlugins)()};var r=n(838);t.registerAllEditors=r.registerAllEditors;var o=n(851);t.registerAllRenderers=o.registerAllRenderers;var i=n(860);t.registerAllValidators=i.registerAllValidators;var a=n(866);t.registerAllCellTypes=a.registerAllCellTypes;var s=n(883);t.registerAllPlugins=s.registerAllPlugins},function(e,t,n){"use strict";t.__esModule=!0,t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=t.getEditorInstance=t.getEditor=t._getEditorInstance=t.RegisteredEditor=void 0,t.registerAllEditors=function(){(0,p.registerEditor)(o.BaseEditor),(0,p.registerEditor)(r.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(a.DateEditor),(0,p.registerEditor)(s.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(u.NumericEditor),(0,p.registerEditor)(c.PasswordEditor),(0,p.registerEditor)(d.SelectEditor),(0,p.registerEditor)(h.TextEditor),(0,p.registerEditor)(f.TimeEditor)};var r=n(298);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var o=n(189);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=n(593);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var a=n(300);t.DateEditor=a.DateEditor,t.DATE_EDITOR=a.EDITOR_TYPE;var s=n(594);t.DropdownEditor=s.DropdownEditor,t.DROPDOWN_EDITOR=s.EDITOR_TYPE;var l=n(299);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var u=n(595);t.NumericEditor=u.NumericEditor,t.NUMERIC_EDITOR=u.EDITOR_TYPE;var c=n(596);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var d=n(848);t.SelectEditor=d.SelectEditor,t.SELECT_EDITOR=d.EDITOR_TYPE;var h=n(134);t.TextEditor=h.TextEditor,t.TEXT_EDITOR=h.EDITOR_TYPE;var f=n(597);t.TimeEditor=f.TimeEditor,t.TIME_EDITOR=f.EDITOR_TYPE;var p=n(129);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(33)),s=r(n(19)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(26));n(4),n(1),n(5),n(7),n(6),n(22),n(89),n(225),n(51),n(82),n(35);var h=n(299),f=n(13),p=n(16),g=n(24),m=n(84),v=n(108),y=n(135);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var T=new WeakMap;t.EDITOR_TYPE="autocomplete";var C=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),(0,d.default)((0,a.default)(r),"sortByRelevance",(function(e,t,n){var r,o,i,a,s=[],l=[],u=e.length,c=t.length;if(0===u){for(i=0;i<c;i++)l.push(i);return l}for(i=0;i<c;i++){if(o=(0,m.stripTags)((0,g.stringify)(t[i])),n)a=o.indexOf(e);else{var d=this.cellProperties.locale;a=o.toLocaleLowerCase(d).indexOf(e.toLocaleLowerCase(d))}-1!==a&&(r=o.length-a-u,s.push({baseIndex:i,index:a,charsLeft:r,value:o}))}for(s.sort((function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),i=0,c=s.length;i<c;i++)l.push(s[i].baseIndex);return l})),r.query=null,r.strippedChoices=[],r.rawChoices=[],T.set((0,a.default)(r),{skipOne:!1,isMacOS:r.hot.rootWindow.navigator.platform.indexOf("Mac")>-1}),r}return(0,i.default)(n,[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value}));return(0,g.isDefined)(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,s.default)((0,c.default)(n.prototype),"createElements",this).call(this),(0,p.addClass)(this.htContainer,"autocompleteEditor"),(0,p.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var e=this,t=T.get(this);(0,s.default)((0,c.default)(n.prototype),"open",this).call(this);var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=(0,p.getScrollbarWidth)();0===i&&t.isMacOS&&(i+=15),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)})),r.updateSettings({colWidths:o?[(0,p.outerWidth)(this.TEXTAREA)-2]:void 0,width:o?(0,p.outerWidth)(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){(0,y.textRenderer)(t,n,r,o,i,a,s);var l,u,c=e.cellProperties,d=c.filteringCaseSensitive,h=c.allowHtml,f=c.locale,p=e.query,m=(0,g.stringify)(a);m&&!h&&-1!==(l=!0===d?m.indexOf(p):m.toLocaleLowerCase(f).indexOf(p.toLocaleLowerCase(f)))&&(u=m.substr(l,p.length),m=m.replace(u,"<strong>".concat(u,"</strong>"))),n.innerHTML=m},autoColumnSize:!0}),t.skipOne&&(t.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),(0,s.default)((0,c.default)(n.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){(0,s.default)((0,c.default)(n.prototype),"discardEditor",this).call(this,e),this.hot.view.render()}},{key:"queryChoices",value:function(e){var t=this,n=this.cellProperties.source;this.query=e,"function"==typeof n?n.call(this.cellProperties,e,(function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))})):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(e){var t=(0,p.getCaretPosition)(this.TEXTAREA),n=(0,p.getSelectionEndPosition)(this.TEXTAREA),r=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,i=null,a=null,s=e;r&&(i=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),s,this.cellProperties.filteringCaseSensitive));var l=Array.isArray(i)?i.length:0;if(!1===o)l&&(a=i[0]);else{for(var u=[],c=0,d=s.length;c<d&&!(r&&l<=c);c++)l?u.push(s[i[c]]):u.push(s[c]);a=0,s=u}this.strippedChoices=s,this.htEditor.loadData((0,f.pivot)([s])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.hot.listen(),(0,p.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,p.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),t=e===this.hot.rootWindow,n=this.cellProperties.preventOverflow;if(t||!t&&(n||"horizontal"===n))return!1;var r=(0,p.offset)(this.TEXTAREA),o=(0,p.outerHeight)(this.TEXTAREA),i=this.getDropdownHeight(),a=e.scrollTop,s=(0,p.outerHeight)(this.hot.view._wt.wtTable.THEAD),l=(0,p.offset)(e),u=r.top-l.top-s+a,c=e.scrollHeight-u-s-o,d=i>c&&u>c;return d?this.flipDropdown(i):this.unflipDropdown(),this.limitDropdownIfNeeded(d?u:c,i),d}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n,r=0,o=0,i=0;do{r+=i=this.htEditor.getRowHeight(o)||this.htEditor.view._wt.getSetting("defaultRowHeight"),o+=1}while(r<e);n=r-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(r-i)}}},{key:"flipDropdown",value:function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top="".concat(-e,"px"),this.htEditor.flipped=!0}},{key:"unflipDropdown",value:function(){var e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var e=this.htEditor.getColWidth(0)+(0,p.getScrollbarWidth)(this.hot.rootDocument)+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}},{key:"setDropdownHeight",value:function(e){this.htEditor.updateSettings({height:e})}},{key:"highlightBestMatchingChoice",value:function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}},{key:"getDropdownHeight",value:function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8}},{key:"stripValueIfNeeded",value:function(e){return this.stripValuesIfNeeded([e])[0]}},{key:"stripValuesIfNeeded",value:function(e){var t=this.cellProperties.allowHtml,n=(0,f.arrayMap)(e,(function(e){return(0,g.stringify)(e)}));return(0,f.arrayMap)(n,(function(e){return t?e:(0,m.stripTags)(e)}))}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===v.KEY_CODES.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===v.KEY_CODES.ARROW_UP&&n>-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var t=this,n=T.get(this);if(n.skipOne=!1,(0,v.isPrintableChar)(e.keyCode)||e.keyCode===v.KEY_CODES.BACKSPACE||e.keyCode===v.KEY_CODES.DELETE||e.keyCode===v.KEY_CODES.INSERT){var r=10;if(e.keyCode===v.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(r+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),n.skipOne=!0}),r)}}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),n}(h.HandsontableEditor);t.AutocompleteEditor=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(134),d=n(16),h=n(75),f=n(12),p=n(182);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="handsontable";var m=function(e){(0,s.default)(n,e);var t=g(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"open",value:function(){(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,d.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.refreshDimensions()}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s);var l=this,c={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&l.setValue(n),l.instance.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,f.extend)(c,s.handsontable),this.htOptions=c}},{key:"beginEditing",value:function(e,t){var r=this.hot.getSettings().onBeginEditing;r&&!1===r()||(0,a.default)((0,u.default)(n.prototype),"beginEditing",this).call(this,e,t)}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this);var e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}},{key:"finishEditing",value:function(e,t,r){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var o=this.htEditor.getInstance().getValue();void 0!==o&&this.setValue(o)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t,r)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",(function(){e.htEditor&&e.htEditor.destroy()}))}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor");(0,a.default)((0,u.default)(n.prototype),"registerShortcuts",this).call(this);var r={group:"handsontableEditor",relativeToGroup:p.SHORTCUTS_GROUP_NAVIGATION,position:"before"},o=function(t,n){var r=e.htEditor.getInstance();if(void 0!==t&&(t<0||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length))return n.preventDefault(),(0,h.stopImmediatePropagation)(n),e.hot.listen(),e.TEXTAREA.focus(),!1};t.addShortcuts([{keys:[["ArrowUp"]],callback:function(t){var n,r,i=e.htEditor.getInstance();return!i.getSelectedLast()&&i.flipped?n=i.countRows()-1:i.getSelectedLast()&&(i.flipped?(r=i.getSelectedLast()[0],n=Math.max(0,r-1)):n=(r=i.getSelectedLast()[0])-1),o(n,t)},preventDefault:!1},{keys:[["ArrowDown"]],callback:function(t){var n,r,i=e.htEditor.getInstance();if(i.getSelectedLast()||i.flipped){if(i.getSelectedLast())if(i.flipped)n=i.getSelectedLast()[0]+1;else if(!i.flipped){var a=i.countRows()-1;r=i.getSelectedLast()[0],n=Math.min(a,r+1)}}else n=0;return o(n,t)},preventDefault:!1}],r)}},{key:"unregisterShortcuts",value:function(){(0,a.default)((0,u.default)(n.prototype),"unregisterShortcuts",this).call(this),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("handsontableEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),n}(c.TextEditor);t.HandsontableEditor=m},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(189),c=n(16);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="checkbox";var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');(0,c.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}],[{key:"EDITOR_TYPE",get:function(){return"checkbox"}}]),n}(u.BaseEditor);t.CheckboxEditor=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(95)),d=r(n(843)),h=n(134),f=r(n(49)),p=n(16),g=n(12),m=n(108);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}n(844);t.EDITOR_TYPE="date";var y=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).defaultDateFormat="DD/MM/YYYY",r.isCellEdited=!1,r.parentDestroyed=!1,r.$datePicker=null,r}return(0,i.default)(n,[{key:"init",value:function(){var e=this;if("function"!=typeof c.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof d.default)throw new Error("You need to include Pikaday to your project.");(0,a.default)((0,u.default)(n.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",(function(){e.parentDestroyed=!0,e.destroyElements()}))}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,p.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),new f.default(this).addEventListener(this.datePicker,"mousedown",(function(e){return e.stopPropagation()}))}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.hot.getShortcutManager(),r=t.getContext("editor");(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.showDatepicker(e),r.addShortcut({keys:[["Enter"]],callback:function(e){e.stopPropagation()},group:"dateEditor"})}},{key:"close",value:function(){var e,t=this;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.instance._registerTimeout((function(){t.instance._refreshBorders()})),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("dateEditor"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.instance.view.isMouseDown(),i=!!e&&(0,m.isFunctionKey)(e.keyCode);this.datePicker.style.display="block",this.$datePicker=new d.default(this.getDatePickerConfig()),this.$datePicker._onInputFocus=function(){},this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,p.outerHeight)(this.TD),"px");var a=this.hot.rootWindow.pageXOffset;a=this.hot.isRtl()?n.right-(0,p.outerWidth)(this.datePicker):n.left,this.datePickerStyle.left="".concat(a,"px"),this.originalValue?(t=this.originalValue,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,g.deepExtend)(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,c.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}],[{key:"EDITOR_TYPE",get:function(){return"date"}}]),n}(h.TextEditor);t.DateEditor=y},function(e,t,n){
|
858
858
|
/*!
|
859
859
|
* Pikaday
|
860
860
|
*
|