handsontable 0.0.0-next-8d3d78c-20230518 → 0.0.0-next-59715d3-20230523
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/CHANGELOG.md +25 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +24 -2
- package/dist/handsontable.full.css +24 -2
- package/dist/handsontable.full.js +83 -74
- package/dist/handsontable.full.min.css +4 -4
- package/dist/handsontable.full.min.js +16 -16
- package/dist/handsontable.js +23 -14
- package/dist/handsontable.min.css +4 -4
- package/dist/handsontable.min.js +3 -3
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +1 -1
- package/pluginHooks.js +8 -4
- package/pluginHooks.mjs +8 -4
@@ -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:
|
28
|
+
* Version: 0.0.0-next-59715d3-20230523
|
29
|
+
* Release date: 23/05/2023 (built at 23/05/2023 09:18:01)
|
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=638)}([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(271),o=n(97),i=n(696);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(425);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(168),i=n(174),a=n(107),s=n(84).f,u=n(268),l=n(270),c=n(114),d=n(55),h=a.set,f=a.getterFor("Array Iterator");e.exports=u(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,l(void 0,!0)):l("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(272).charAt,o=n(56),i=n(107),a=n(268),s=n(270),u=i.set,l=i.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=l(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(45),o=n(402),i=n(403),a=n(4),s=n(127),u=n(48),l=u("iterator"),c=u("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(t){e[l]=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(697)},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(22),o=n(106),i=n(129),a=n(751),s=n(426),u=n(62),l=n(63),c=n(123),d=n(28),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),u(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(l(o)?o:f),v=i(e,d,t);return l(v)?v:d}})},function(e,t,n){var r=n(569);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 l(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){l(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(!u(e))return 0;return function e(t){var n=0;return u(t)?l(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={},l(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 l(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 l(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=u,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),l(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)||u(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=l,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(27)),i=r(n(14));n(147),n(31),n(40),n(1),n(21);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(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(47),n(5),n(20),n(23),n(37),n(35),n(1),n(31),n(40),n(4),n(52),n(6),n(50),n(733)},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){"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,u.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,l=a.overflowX,c=a.overflowY;if([s,l,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,l=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(l)||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(l)||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"),u=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(u))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,l=e;if((0,u.hasCaptionProblem)()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(o=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=l.offsetLeft,n=l.offsetTop,r=l;for(;(l=l.offsetParent)&&l!==i.body;)t+=l.offsetLeft,n+=l.offsetTop,r=l;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,u.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,l.isIE9)()?(e.style.top=n,e.style.left=t):(0,l.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(423),n(31),n(40),n(37),n(23),n(35),n(1),n(148),n(50),n(98),n(85),n(149),n(79),n(20),n(21);var i,a,s,u=n(108),l=n(90),c=n(80);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,u=s.nodeType,l=s.nodeName;if(u===o&&(t.includes(l)||t.includes(a)))return a;var c=a,d=c.host;a=d&&u===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,u.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?u.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){var r=n(22),o=n(28),i=n(88),a=n(117).f,s=n(55);r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},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 l})),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(112),a=n(34),s=n(42),u=n(69);!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 l=(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 u.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 u="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=u;var l="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=l;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 x="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=x;var P="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=P;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 ue="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=ue;var le="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=le;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(798);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(22),o=n(28),i=n(145),a=n(63),s=n(83),u=n(94),l=n(412),c=n(144),d=n(281),h=n(181),f=n(48),p=n(169),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=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||!h("concat")},{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],v(i))for(o=u(i),l(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else l(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(45),o=n(402),i=n(403),a=n(721),s=n(127),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},function(e,t,n){var r=n(45),o=n(117).f,i=n(127),a=n(97),s=n(265),u=n(392),l=n(217);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],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){"use strict";var r=n(22),o=n(179),i=n(266).indexOf,a=n(146),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(405),o=n(707),i=n(282),a=n(407);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(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-8d3d78c-20230518",a="invalid",s="invalid",u=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||u)if(u){var l=(0,h.default)("28/03/2023","DD/MM/YYYY"),c=Math.floor(l.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(735),n(50),n(79),n(428);var i,a,s,u,l,c,d=r(n(14)),h=r(n(91)),f=n(65);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)(u||(u=(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)(l||(l=(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){"use strict";n.r(t),n.d(t,"FunctionArgumentType",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(78),i=n(17),a=n(34),s=n(61),u=n(101),l=n(42),c=n(69);!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,r)=>{const o=this.evaluateArguments(e,t,n),s=o.map(([e,t])=>e),u=o.map(([e,t])=>t),l=this.buildMetadataForEachArgumentValue(s.length,n),d=t.arraysFlag&&!n.vectorizationForbidden;if(!this.isNumberOfArgumentValuesValid(l,s.length))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const[h,f]=d?this.calculateSizeOfVectorizedResultArray(s,l):[1,1];if(1===h&&1===f){const e=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,0,0);return this.calculateSingleCellOfResultArray(t,e,l,u,r,n.returnNumberType)}const p=[...Array(h).keys()].map(e=>[...Array(f).keys()].map(o=>{const i=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,e,o),a=this.calculateSingleCellOfResultArray(t,i,l,u,r,n.returnNumberType);if(a instanceof c.SimpleRangeValue)throw new Error("Function returning array cannot be vectorized.");return a}));return c.SimpleRangeValue.onlyValues(p)},this.runFunctionWithReferenceArgument=(e,t,n,r,u,l=(()=>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(u(c),n.returnNumberType):this.runFunction(e,t,n,l)},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(u.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(l.isExtendedNumber)(n)){o=n;break}const s=Object(l.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(u.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(u.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(u.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(l.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(l.getRawValue)(o)}calculateSingleCellOfResultArray(e,t,n,r,o,a){const s=this.coerceArgumentsToRequiredTypes(e,t,n,r);if(s instanceof i.CellError)return s;const u=o(...s);return this.returnNumberWrapper(u,a)}coerceArgumentsToRequiredTypes(e,t,n,o){const s=[];for(let u=0;u<n.length;u++){const l=n[u],c=void 0!==t[u]?t[u]:null==l?void 0:l.defaultValue;if(void 0===c){s.push(void 0);continue}const d=this.coerceToType(c,l,e);if(void 0===d&&!o[u])return new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType);if(d instanceof i.CellError&&l.argumentType!==r.SCALAR)return d;s.push(d)}return s}vectorizeAndBroadcastArgumentsIfNecessary(e,t,n,r,o){return t.map((t,i)=>e&&this.isRangePassedAsAScalarArgument(t,n[i])?this.vectorizeAndBroadcastRangeArgument(t,r,o):t)}vectorizeAndBroadcastRangeArgument(e,t,n){var r;const o=1===e.height()?0:t,i=1===e.width()?0:n;return null===(r=e.data[o])||void 0===r?void 0:r[i]}evaluateArguments(e,t,n){return n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1])}buildMetadataForEachArgumentValue(e,t){const n=t.parameters?[...t.parameters]:[];if(void 0!==t.repeatLastArgs&&Number.isInteger(t.repeatLastArgs)&&t.repeatLastArgs>0)for(;e>n.length;)n.push(...n.slice(n.length-t.repeatLastArgs));return n}isNumberOfArgumentValuesValid(e,t){if(t>e.length)return!1;if(t<e.length){return e.slice(t).every(e=>(null==e?void 0:e.optionalArg)||void 0!==(null==e?void 0:e.defaultValue))}return!0}calculateSizeOfVectorizedResultArray(e,t){const n=e.filter((e,n)=>this.isRangePassedAsAScalarArgument(e,t[n]));return[Math.max(1,...n.map(e=>e.height())),Math.max(1,...n.map(e=>e.width()))]}isRangePassedAsAScalarArgument(e,t){return null!=e&&null!=t&&(e instanceof c.SimpleRangeValue&&![r.RANGE,r.ANY].includes(t.argumentType))}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(l.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(l.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){var r=n(425);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){e.exports=function(e){try{return!!e()}catch(e){return!0}}},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 u})),n.d(t,"InvalidArgumentsError",(function(){return l})),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 x})),n.d(t,"AliasAlreadyExisting",(function(){return P}));
|
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=638)}([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(271),o=n(97),i=n(696);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(425);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(168),i=n(174),a=n(107),s=n(84).f,u=n(268),l=n(270),c=n(114),d=n(55),h=a.set,f=a.getterFor("Array Iterator");e.exports=u(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,l(void 0,!0)):l("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(272).charAt,o=n(56),i=n(107),a=n(268),s=n(270),u=i.set,l=i.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=l(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(402),i=n(403),a=n(4),s=n(127),u=n(48),l=u("iterator"),c=u("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(t){e[l]=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(697)},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(22),o=n(106),i=n(129),a=n(751),s=n(426),u=n(62),l=n(63),c=n(123),d=n(28),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),u(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(l(o)?o:f),v=i(e,d,t);return l(v)?v:d}})},function(e,t,n){var r=n(569);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 l(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){l(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(!u(e))return 0;return function e(t){var n=0;return u(t)?l(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={},l(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 l(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 l(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=u,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),l(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)||u(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=l,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(27)),i=r(n(14));n(147),n(31),n(40),n(1),n(21);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(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(47),n(5),n(20),n(23),n(37),n(35),n(1),n(31),n(40),n(4),n(52),n(6),n(50),n(733)},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){"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,u.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,l=a.overflowX,c=a.overflowY;if([s,l,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,l=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(l)||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(l)||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"),u=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(u))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,l=e;if((0,u.hasCaptionProblem)()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(o=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=l.offsetLeft,n=l.offsetTop,r=l;for(;(l=l.offsetParent)&&l!==i.body;)t+=l.offsetLeft,n+=l.offsetTop,r=l;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,u.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,l.isIE9)()?(e.style.top=n,e.style.left=t):(0,l.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(423),n(31),n(40),n(37),n(23),n(35),n(1),n(148),n(50),n(98),n(85),n(149),n(79),n(20),n(21);var i,a,s,u=n(108),l=n(90),c=n(80);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,u=s.nodeType,l=s.nodeName;if(u===o&&(t.includes(l)||t.includes(a)))return a;var c=a,d=c.host;a=d&&u===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,u.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?u.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){var r=n(22),o=n(28),i=n(88),a=n(117).f,s=n(55);r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},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 l})),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(112),a=n(34),s=n(42),u=n(69);!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 l=(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 u.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 u="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=u;var l="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=l;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 x="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=x;var P="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=P;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 ue="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=ue;var le="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=le;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(798);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(22),o=n(28),i=n(145),a=n(63),s=n(83),u=n(94),l=n(412),c=n(144),d=n(281),h=n(181),f=n(48),p=n(169),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=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||!h("concat")},{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],v(i))for(o=u(i),l(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else l(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(44),o=n(402),i=n(403),a=n(721),s=n(127),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},function(e,t,n){var r=n(44),o=n(117).f,i=n(127),a=n(97),s=n(265),u=n(392),l=n(217);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],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){"use strict";var r=n(22),o=n(179),i=n(266).indexOf,a=n(146),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(405),o=n(707),i=n(282),a=n(407);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(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-59715d3-20230523",a="invalid",s="invalid",u=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||u)if(u){var l=(0,h.default)("23/05/2023","DD/MM/YYYY"),c=Math.floor(l.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(735),n(50),n(79),n(428);var i,a,s,u,l,c,d=r(n(14)),h=r(n(91)),f=n(65);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)(u||(u=(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)(l||(l=(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){"use strict";n.r(t),n.d(t,"FunctionArgumentType",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(78),i=n(17),a=n(34),s=n(61),u=n(101),l=n(42),c=n(69);!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,r)=>{const o=this.evaluateArguments(e,t,n),s=o.map(([e,t])=>e),u=o.map(([e,t])=>t),l=this.buildMetadataForEachArgumentValue(s.length,n),d=t.arraysFlag&&!n.vectorizationForbidden;if(!this.isNumberOfArgumentValuesValid(l,s.length))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const[h,f]=d?this.calculateSizeOfVectorizedResultArray(s,l):[1,1];if(1===h&&1===f){const e=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,0,0);return this.calculateSingleCellOfResultArray(t,e,l,u,r,n.returnNumberType)}const p=[...Array(h).keys()].map(e=>[...Array(f).keys()].map(o=>{const i=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,e,o),a=this.calculateSingleCellOfResultArray(t,i,l,u,r,n.returnNumberType);if(a instanceof c.SimpleRangeValue)throw new Error("Function returning array cannot be vectorized.");return a}));return c.SimpleRangeValue.onlyValues(p)},this.runFunctionWithReferenceArgument=(e,t,n,r,u,l=(()=>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(u(c),n.returnNumberType):this.runFunction(e,t,n,l)},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(u.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(l.isExtendedNumber)(n)){o=n;break}const s=Object(l.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(u.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(u.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(u.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(l.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(l.getRawValue)(o)}calculateSingleCellOfResultArray(e,t,n,r,o,a){const s=this.coerceArgumentsToRequiredTypes(e,t,n,r);if(s instanceof i.CellError)return s;const u=o(...s);return this.returnNumberWrapper(u,a)}coerceArgumentsToRequiredTypes(e,t,n,o){const s=[];for(let u=0;u<n.length;u++){const l=n[u],c=void 0!==t[u]?t[u]:null==l?void 0:l.defaultValue;if(void 0===c){s.push(void 0);continue}const d=this.coerceToType(c,l,e);if(void 0===d&&!o[u])return new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType);if(d instanceof i.CellError&&l.argumentType!==r.SCALAR)return d;s.push(d)}return s}vectorizeAndBroadcastArgumentsIfNecessary(e,t,n,r,o){return t.map((t,i)=>e&&this.isRangePassedAsAScalarArgument(t,n[i])?this.vectorizeAndBroadcastRangeArgument(t,r,o):t)}vectorizeAndBroadcastRangeArgument(e,t,n){var r;const o=1===e.height()?0:t,i=1===e.width()?0:n;return null===(r=e.data[o])||void 0===r?void 0:r[i]}evaluateArguments(e,t,n){return n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1])}buildMetadataForEachArgumentValue(e,t){const n=t.parameters?[...t.parameters]:[];if(void 0!==t.repeatLastArgs&&Number.isInteger(t.repeatLastArgs)&&t.repeatLastArgs>0)for(;e>n.length;)n.push(...n.slice(n.length-t.repeatLastArgs));return n}isNumberOfArgumentValuesValid(e,t){if(t>e.length)return!1;if(t<e.length){return e.slice(t).every(e=>(null==e?void 0:e.optionalArg)||void 0!==(null==e?void 0:e.defaultValue))}return!0}calculateSizeOfVectorizedResultArray(e,t){const n=e.filter((e,n)=>this.isRangePassedAsAScalarArgument(e,t[n]));return[Math.max(1,...n.map(e=>e.height())),Math.max(1,...n.map(e=>e.width()))]}isRangePassedAsAScalarArgument(e,t){return null!=e&&null!=t&&(e instanceof c.SimpleRangeValue&&![r.RANGE,r.ANY].includes(t.argumentType))}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(l.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(l.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){var r=n(425);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){e.exports=function(e){try{return!!e()}catch(e){return!0}}},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 u})),n.d(t,"InvalidArgumentsError",(function(){return l})),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 x})),n.d(t,"AliasAlreadyExisting",(function(){return P}));
|
32
32
|
/**
|
33
33
|
* @license
|
34
34
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -43,12 +43,12 @@ class r{}r.DistinctSigns="Distinct signs.",r.WrongArgNumber="Wrong number of arg
|
|
43
43
|
* @license
|
44
44
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
45
45
|
*/
|
46
|
-
const r=Symbol("Empty value");function o(e){return e instanceof i?e.val:e}class i{constructor(e,t){this.val=e,this.format=t}fromNumber(e){return new this.constructor(e)}}function a(e,t){if("number"==typeof e)return t;{const n=e.fromNumber(t);return n.format=e.format,n}}class s extends i{getDetailedType(){return f.NUMBER_DATE}}class u extends i{getDetailedType(){return f.NUMBER_CURRENCY}}class l extends i{getDetailedType(){return f.NUMBER_TIME}}class c extends i{getDetailedType(){return f.NUMBER_DATETIME}}class d extends i{getDetailedType(){return f.NUMBER_PERCENT}}function h(e){return"number"==typeof e||e instanceof i}var f;function p(e){return e instanceof i?e.getDetailedType():f.NUMBER_RAW}function g(e){return e instanceof i?e.format:void 0}function m(e){return e instanceof i?{type:e.getDetailedType(),format:e.format}:{type:f.NUMBER_RAW}}!function(e){e.NUMBER_RAW="NUMBER_RAW",e.NUMBER_DATE="NUMBER_DATE",e.NUMBER_TIME="NUMBER_TIME",e.NUMBER_DATETIME="NUMBER_DATETIME",e.NUMBER_CURRENCY="NUMBER_CURRENCY",e.NUMBER_PERCENT="NUMBER_PERCENT"}(f||(f={}))},function(e,t,n){var r=n(22),o=n(83),i=n(171);r({target:"Object",stat:!0,forced:n(28)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractProduction",(function(){return s})),n.d(t,"NonTerminal",(function(){return u})),n.d(t,"Rule",(function(){return l})),n.d(t,"Flat",(function(){return c})),n.d(t,"Option",(function(){return d})),n.d(t,"RepetitionMandatory",(function(){return h})),n.d(t,"RepetitionMandatoryWithSeparator",(function(){return f})),n.d(t,"Repetition",(function(){return p})),n.d(t,"RepetitionWithSeparator",(function(){return g})),n.d(t,"Alternation",(function(){return m})),n.d(t,"Terminal",(function(){return v})),n.d(t,"serializeGrammar",(function(){return y})),n.d(t,"serializeProduction",(function(){return E}));var r,o=n(38),i=n(87),a=(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)}),s=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),Object(o.forEach)(this.definition,(function(t){t.accept(e)}))},e}(),u=function(e){function t(t){var n=e.call(this,[])||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(s),l=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.orgText="",Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),c=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.ignoreAmbiguities=!1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),d=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),h=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),f=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),p=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),g=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),m=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,n.ignoreAmbiguities=!1,n.hasPredicates=!1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),v=function(){function e(e){this.idx=1,Object(o.assign)(this,Object(o.pick)(e,(function(e){return void 0!==e})))}return e.prototype.accept=function(e){e.visit(this)},e}();function y(e){return Object(o.map)(e,E)}function E(e){function t(e){return Object(o.map)(e,E)}if(e instanceof u)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof c)return{type:"Flat",definition:t(e.definition)};if(e instanceof d)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof h)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof f)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:E(new v({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof g)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:E(new v({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof p)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof m)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof v){var n={type:"Terminal",name:e.terminalType.name,label:Object(i.tokenLabel)(e.terminalType),idx:e.idx},r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=Object(o.isRegExp)(r)?r.source:r),n}if(e instanceof l)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t,n){"use strict";t.__esModule=!0,t.conditions=void 0,t.getCondition=function(e,t){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=r[e],o=n.condition,i=n.descriptor,a=t;i.inputValuesDecorator&&(a=i.inputValuesDecorator(a));return function(e){return o.apply(e.meta.instance,[].concat([e],[a]))}},t.getConditionDescriptor=function(e){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return r[e].descriptor},t.registerCondition=function(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}},n(20);var r={};t.conditions=r},function(e,t,n){var r=n(22),o=n(719);r({target:"Array",stat:!0,forced:!n(400)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){var r=n(45),o=n(140),i=n(54),a=n(211),s=n(141),u=n(381),l=r.Symbol,c=o("wks"),d=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(382),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(22),o=n(222);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,t.getListenersCounter=function(){return u},n(53);var o=r(n(2)),i=r(n(3)),a=n(108),s=n(73),u=0;function l(e){var t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,s.stopImmediatePropagation)(this)},e}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return(0,i.default)(e,[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){n.call(this,l(e))}return"boolean"==typeof o||(0,a.isPassiveEventSupported)()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i,options:o,eventManager:this}),e.addEventListener(t,i,o),u+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;i;)if(i-=1,(r=this.context.eventListeners[i]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),u-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),u-=1)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents")).initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}]),e}();t.default=c},function(e,t,n){n(710)},function(e,t,n){"use strict";var r=n(22),o=n(83),i=n(172),a=n(116),s=n(94),u=n(715),l=n(412),c=n(281),d=n(144),h=n(411),f=n(181)("splice"),p=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,f,m,v,y,E=o(this),T=s(E),C=i(e,T),R=arguments.length;for(0===R?n=r=0:1===R?(n=0,r=T-C):(n=R-2,r=g(p(a(t),0),T-C)),l(T+n-r),f=c(E,r),m=0;m<r;m++)(v=C+m)in E&&d(f,m,E[v]);if(f.length=r,n<r){for(m=C;m<T-r;m++)y=m+n,(v=m+r)in E?E[y]=E[v]:h(E,y);for(m=T;m>T-r+n;m--)h(E,m-1)}else if(n>r)for(m=T-r;m>C;m--)y=m+n-1,(v=m+r-1)in E?E[y]=E[v]:h(E,y);for(m=0;m<n;m++)E[m+C]=arguments[m+2];return u(E,T-r+n),f}})},function(e,t,n){var r=n(30),o=n(83),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){var r=n(28);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(219),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(22),o=n(128).map;r({target:"Array",proto:!0,forced:!n(181)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";t.__esModule=!0,t.curry=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])},t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;function o(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((function(){t=e.apply(o,a)}),n),t}return o},t.fastCall=function(e,t,n,r,i,a,s,u){if((0,o.isDefined)(u))return e.call(t,n,r,i,a,s,u);if((0,o.isDefined)(s))return e.call(t,n,r,i,a,s);if((0,o.isDefined)(a))return e.call(t,n,r,i,a);if((0,o.isDefined)(i))return e.call(t,n,r,i);if((0,o.isDefined)(r))return e.call(t,n,r);if((0,o.isDefined)(n))return e.call(t,n);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.arrayReduce)(i,(function(e,t){return t(e)}),o.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(e,t),o=n;function a(){o=n}function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o?(o-=1,e.apply(this,n)):r.apply(this,n)}return s.clearHits=a,s},n(67),n(37),n(20),n(183);var r=n(13),o=n(25);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;function i(){for(var i=this,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var l=Date.now(),c=!1;r.lastCallThrottled=!0,n||(n=l,c=!0);var d=t-(l-n);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout((function(){r.lastCallThrottled=!1,e.apply(i,s),n=0,o=void 0}),d)),r}return i}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(41),n(1),n(5),n(6),n(23),n(53);var o,i=r(n(2)),a=r(n(3)),s=r(n(64)),u=n(13),l=n(12),c=n(80),d=n(72),h=n(65),f=n(58),p=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeSetCellMeta","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyRowHeader","modifyRowHeight","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],g=(0,h.toSingleLine)(o||(o=(0,s.default)(['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion]. \n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to \n learn about the migration path.'],['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\\x20\n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\\x20\n learn about the migration path.']))),m=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),v=new Map([["beforeAutofillInsidePopulate",'The plugin hook "beforeAutofillInsidePopulate" is deprecated and will be removed in the next major release.']]),y=function(){function e(){(0,i.default)(this,e),this.globalBucket=this.createEmptyBucket()}return(0,a.default)(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,u.arrayEach)(p,(function(t){return e[t]=[]})),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,u.arrayEach)(t,(function(t){return n.add(e,t,r)}));else{m.has(e)&&(0,d.warn)((0,c.substitute)(g,{hookName:e,removedInVersion:m.get(e)})),v.has(e)&&(0,d.warn)(v.get(e));var o=this.getBucket(r);if(void 0===o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&(0,u.arrayEach)(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,u.arrayEach)(t,(function(t){return n.once(e,t,r)})):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,o,i,a,s){var u=this.globalBucket[t],l=u?u.length:0,c=0;if(l)for(;c<l;)if(u[c]&&!u[c].skip){var d=(0,f.fastCall)(u[c],e,n,r,o,i,a,s);void 0!==d&&(n=d),u[c]&&u[c].runOnce&&this.remove(t,u[c]),c+=1}else c+=1;var h=this.getBucket(e)[t],p=h?h.length:0,g=0;if(p)for(;g<p;)if(h[g]&&!h[g].skip){var m=(0,f.fastCall)(h[g],e,n,r,o,i,a,s);void 0!==m&&(n=m),h[g]&&h[g].runOnce&&this.remove(t,h[g],e),g+=1}else g+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,l.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||p.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&p.splice(p.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return v.has(e)||m.has(e)}},{key:"isRegistered",value:function(e){return p.indexOf(e)>=0}},{key:"getRegistered",value:function(){return p}}],[{key:"getSingleton",value:function(){return E}}]),e}(),E=new y;var T=y;t.default=T},function(e,t,n){n(788),n(790),n(791),n(792),n(794)},function(e,t,n){"use strict";n.r(t);var r=n(92);n.d(t,"cellAddressFromString",(function(){return r.cellAddressFromString})),n.d(t,"simpleCellAddressFromString",(function(){return r.simpleCellAddressFromString})),n.d(t,"simpleCellAddressToString",(function(){return r.simpleCellAddressToString})),n.d(t,"simpleCellRangeFromString",(function(){return r.simpleCellRangeFromString})),n.d(t,"simpleCellRangeToString",(function(){return r.simpleCellRangeToString}));var o=n(197);n.d(t,"CellAddress",(function(){return o.CellAddress}));var i=n(318);n.d(t,"ParserWithCaching",(function(){return i.ParserWithCaching}));var a=n(326);n.d(t,"collectDependencies",(function(){return a.collectDependencies}));var s=n(204);n.d(t,"buildLexerConfig",(function(){return s.buildLexerConfig}));var u=n(245);n.d(t,"FormulaLexer",(function(){return u.FormulaLexer}));var l=n(93);n.d(t,"AstNodeType",(function(){return l.AstNodeType})),n.d(t,"ParsingErrorType",(function(){return l.ParsingErrorType})),n.d(t,"buildProcedureAst",(function(){return l.buildProcedureAst})),n.d(t,"buildCellRangeAst",(function(){return l.buildCellRangeAst})),n.d(t,"buildParsingErrorAst",(function(){return l.buildParsingErrorAst})),n.d(t,"buildCellErrorAst",(function(){return l.buildCellErrorAst}));var c=n(246);n.d(t,"Unparser",(function(){return c.Unparser}));var d=n(138);n.d(t,"AddressDependency",(function(){return d.AddressDependency})),n.d(t,"CellRangeDependency",(function(){return d.CellRangeDependency})),n.d(t,"ColumnRangeDependency",(function(){return d.ColumnRangeDependency})),n.d(t,"RowRangeDependency",(function(){return d.RowRangeDependency})),n.d(t,"NamedExpressionDependency",(function(){return d.NamedExpressionDependency}))},function(e,t,n){var r=n(63),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,t,n){var r=n(49),o=n(382),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=(0,r.arrayReduce)(e,(function(e,t,r){return e+t.replace(/\r?\n\s*/g,"")+(n[r]?n[r]:"")}),"");return i.trim()},n(50),n(79),n(149);var r=n(13)},function(e,t,n){var r=n(167),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){n(722),n(724)},function(e,t,n){"use strict";n.r(t),n.d(t,"END_OF_FILE",(function(){return C})),n.d(t,"DEFAULT_PARSER_CONFIG",(function(){return w})),n.d(t,"DEFAULT_RULE_CONFIG",(function(){return S})),n.d(t,"ParserDefinitionErrorType",(function(){return R})),n.d(t,"EMPTY_ALT",(function(){return O})),n.d(t,"Parser",(function(){return b})),n.d(t,"CstParser",(function(){return A})),n.d(t,"EmbeddedActionsParser",(function(){return N}));var r,o=n(38),i=n(639),a=n(87),s=n(243),u=n(120),l=n(160),c=n(322),d=n(642),h=n(643),f=n(645),p=n(646),g=n(647),m=n(648),v=n(649),y=n(650),E=n(651),T=(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=Object(a.createTokenInstance)(a.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(C);var R,w=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:u.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),S=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function O(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(R||(R={}));var b=function(){function e(e,t){void 0===t&&(t=w),this.ignoredIssues=w.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),Object(o.has)(t,"ignoredIssues")&&t.ignoredIssues!==w.ignoredIssues&&Object(o.PRINT_WARNING)("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=Object(o.has)(t,"ignoredIssues")?t.ignoredIssues:w.ignoredIssues,this.skipValidations=Object(o.has)(t,"skipValidations")?t.skipValidations:w.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",(function(){var n;t.selfAnalysisDone=!0;var r=t.className;t.TRACE_INIT("toFastProps",(function(){Object(o.toFastProperties)(t)})),t.TRACE_INIT("Grammar Recording",(function(){try{t.enableRecording(),Object(o.forEach)(t.definedRulesNames,(function(e){var n=t[e].originalGrammarAction,r=void 0;t.TRACE_INIT(e+" Rule",(function(){r=t.topLevelRuleRecord(e,n)})),t.gastProductionsCache[e]=r}))}finally{t.disableRecording()}}));var a=[];if(t.TRACE_INIT("Grammar Resolving",(function(){a=Object(l.resolveGrammar)({rules:Object(o.values)(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,a)})),t.TRACE_INIT("Grammar Validations",(function(){if(Object(o.isEmpty)(a)&&!1===t.skipValidations){var e=Object(l.validateGrammar)({rules:Object(o.values)(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Object(o.values)(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:u.defaultGrammarValidatorErrorProvider,grammarName:r});t.definitionErrors.push.apply(t.definitionErrors,e)}})),Object(o.isEmpty)(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",(function(){var e=Object(i.computeAllProdsFollows)(Object(o.values)(t.gastProductionsCache));t.resyncFollows=e})),t.TRACE_INIT("ComputeLookaheadFunctions",(function(){t.preComputeLookaheadFunctions(Object(o.values)(t.gastProductionsCache))}))),t.TRACE_INIT("expandAllNestedRuleNames",(function(){var e=Object(s.expandAllNestedRuleNames)(Object(o.values)(t.gastProductionsCache),t.fullRuleNameToShort);t.allRuleNames=e.allRuleNames})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!Object(o.isEmpty)(t.definitionErrors))throw n=Object(o.map)(t.definitionErrors,(function(e){return e.message})),new Error("Parser Definition Errors detected:\n "+n.join("\n-------------------------------\n"))}))},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Object(o.applyMixins)(b,[c.Recoverable,d.LooksAhead,h.TreeBuilder,f.LexerAdapter,g.RecognizerEngine,p.RecognizerApi,m.ErrorHandler,v.ContentAssist,y.GastRecorder,E.PerformanceTracer]);var A=function(e){function t(t,n){void 0===n&&(n=w);var r=Object(o.cloneObj)(n);return r.outputCst=!0,e.call(this,t,r)||this}return T(t,e),t}(b),N=function(e){function t(t,n){void 0===n&&(n=w);var r=Object(o.cloneObj)(n);return r.outputCst=!1,e.call(this,t,r)||this}return T(t,e),t}(b)},function(e,t,n){"use strict";n.r(t),n.d(t,"SimpleRangeValue",(function(){return s}));var r=n(99),o=n(17),i=n(34),a=n(42);
|
46
|
+
const r=Symbol("Empty value");function o(e){return e instanceof i?e.val:e}class i{constructor(e,t){this.val=e,this.format=t}fromNumber(e){return new this.constructor(e)}}function a(e,t){if("number"==typeof e)return t;{const n=e.fromNumber(t);return n.format=e.format,n}}class s extends i{getDetailedType(){return f.NUMBER_DATE}}class u extends i{getDetailedType(){return f.NUMBER_CURRENCY}}class l extends i{getDetailedType(){return f.NUMBER_TIME}}class c extends i{getDetailedType(){return f.NUMBER_DATETIME}}class d extends i{getDetailedType(){return f.NUMBER_PERCENT}}function h(e){return"number"==typeof e||e instanceof i}var f;function p(e){return e instanceof i?e.getDetailedType():f.NUMBER_RAW}function g(e){return e instanceof i?e.format:void 0}function m(e){return e instanceof i?{type:e.getDetailedType(),format:e.format}:{type:f.NUMBER_RAW}}!function(e){e.NUMBER_RAW="NUMBER_RAW",e.NUMBER_DATE="NUMBER_DATE",e.NUMBER_TIME="NUMBER_TIME",e.NUMBER_DATETIME="NUMBER_DATETIME",e.NUMBER_CURRENCY="NUMBER_CURRENCY",e.NUMBER_PERCENT="NUMBER_PERCENT"}(f||(f={}))},function(e,t,n){var r=n(22),o=n(83),i=n(171);r({target:"Object",stat:!0,forced:n(28)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractProduction",(function(){return s})),n.d(t,"NonTerminal",(function(){return u})),n.d(t,"Rule",(function(){return l})),n.d(t,"Flat",(function(){return c})),n.d(t,"Option",(function(){return d})),n.d(t,"RepetitionMandatory",(function(){return h})),n.d(t,"RepetitionMandatoryWithSeparator",(function(){return f})),n.d(t,"Repetition",(function(){return p})),n.d(t,"RepetitionWithSeparator",(function(){return g})),n.d(t,"Alternation",(function(){return m})),n.d(t,"Terminal",(function(){return v})),n.d(t,"serializeGrammar",(function(){return y})),n.d(t,"serializeProduction",(function(){return E}));var r,o=n(38),i=n(87),a=(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)}),s=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),Object(o.forEach)(this.definition,(function(t){t.accept(e)}))},e}(),u=function(e){function t(t){var n=e.call(this,[])||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(s),l=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.orgText="",Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),c=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.ignoreAmbiguities=!1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),d=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),h=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),f=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),p=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),g=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),m=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,n.ignoreAmbiguities=!1,n.hasPredicates=!1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),v=function(){function e(e){this.idx=1,Object(o.assign)(this,Object(o.pick)(e,(function(e){return void 0!==e})))}return e.prototype.accept=function(e){e.visit(this)},e}();function y(e){return Object(o.map)(e,E)}function E(e){function t(e){return Object(o.map)(e,E)}if(e instanceof u)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof c)return{type:"Flat",definition:t(e.definition)};if(e instanceof d)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof h)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof f)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:E(new v({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof g)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:E(new v({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof p)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof m)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof v){var n={type:"Terminal",name:e.terminalType.name,label:Object(i.tokenLabel)(e.terminalType),idx:e.idx},r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=Object(o.isRegExp)(r)?r.source:r),n}if(e instanceof l)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}},function(e,t,n){"use strict";t.__esModule=!0,t.conditions=void 0,t.getCondition=function(e,t){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=r[e],o=n.condition,i=n.descriptor,a=t;i.inputValuesDecorator&&(a=i.inputValuesDecorator(a));return function(e){return o.apply(e.meta.instance,[].concat([e],[a]))}},t.getConditionDescriptor=function(e){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return r[e].descriptor},t.registerCondition=function(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}},n(20);var r={};t.conditions=r},function(e,t,n){var r=n(22),o=n(719);r({target:"Array",stat:!0,forced:!n(400)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){var r=n(44),o=n(140),i=n(54),a=n(211),s=n(141),u=n(381),l=r.Symbol,c=o("wks"),d=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(382),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(22),o=n(222);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,t.getListenersCounter=function(){return u},n(53);var o=r(n(2)),i=r(n(3)),a=n(108),s=n(73),u=0;function l(e){var t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,s.stopImmediatePropagation)(this)},e}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return(0,i.default)(e,[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){n.call(this,l(e))}return"boolean"==typeof o||(0,a.isPassiveEventSupported)()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i,options:o,eventManager:this}),e.addEventListener(t,i,o),u+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;i;)if(i-=1,(r=this.context.eventListeners[i]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),u-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),u-=1)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents")).initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}]),e}();t.default=c},function(e,t,n){n(710)},function(e,t,n){"use strict";var r=n(22),o=n(83),i=n(172),a=n(116),s=n(94),u=n(715),l=n(412),c=n(281),d=n(144),h=n(411),f=n(181)("splice"),p=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,f,m,v,y,E=o(this),T=s(E),C=i(e,T),R=arguments.length;for(0===R?n=r=0:1===R?(n=0,r=T-C):(n=R-2,r=g(p(a(t),0),T-C)),l(T+n-r),f=c(E,r),m=0;m<r;m++)(v=C+m)in E&&d(f,m,E[v]);if(f.length=r,n<r){for(m=C;m<T-r;m++)y=m+n,(v=m+r)in E?E[y]=E[v]:h(E,y);for(m=T;m>T-r+n;m--)h(E,m-1)}else if(n>r)for(m=T-r;m>C;m--)y=m+n-1,(v=m+r-1)in E?E[y]=E[v]:h(E,y);for(m=0;m<n;m++)E[m+C]=arguments[m+2];return u(E,T-r+n),f}})},function(e,t,n){var r=n(30),o=n(83),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){var r=n(28);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(219),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(22),o=n(128).map;r({target:"Array",proto:!0,forced:!n(181)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";t.__esModule=!0,t.curry=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])},t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;function o(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((function(){t=e.apply(o,a)}),n),t}return o},t.fastCall=function(e,t,n,r,i,a,s,u){if((0,o.isDefined)(u))return e.call(t,n,r,i,a,s,u);if((0,o.isDefined)(s))return e.call(t,n,r,i,a,s);if((0,o.isDefined)(a))return e.call(t,n,r,i,a);if((0,o.isDefined)(i))return e.call(t,n,r,i);if((0,o.isDefined)(r))return e.call(t,n,r);if((0,o.isDefined)(n))return e.call(t,n);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.arrayReduce)(i,(function(e,t){return t(e)}),o.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(e,t),o=n;function a(){o=n}function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o?(o-=1,e.apply(this,n)):r.apply(this,n)}return s.clearHits=a,s},n(67),n(37),n(20),n(183);var r=n(13),o=n(25);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;function i(){for(var i=this,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var l=Date.now(),c=!1;r.lastCallThrottled=!0,n||(n=l,c=!0);var d=t-(l-n);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout((function(){r.lastCallThrottled=!1,e.apply(i,s),n=0,o=void 0}),d)),r}return i}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(41),n(1),n(5),n(6),n(23),n(53);var o,i=r(n(2)),a=r(n(3)),s=r(n(64)),u=n(13),l=n(12),c=n(80),d=n(72),h=n(65),f=n(58),p=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeSetCellMeta","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyRowHeader","modifyRowHeight","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],g=(0,h.toSingleLine)(o||(o=(0,s.default)(['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion]. \n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to \n learn about the migration path.'],['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\\x20\n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\\x20\n learn about the migration path.']))),m=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),v=new Map([["beforeAutofillInsidePopulate",'The plugin hook "beforeAutofillInsidePopulate" is deprecated and will be removed in the next major release.']]),y=function(){function e(){(0,i.default)(this,e),this.globalBucket=this.createEmptyBucket()}return(0,a.default)(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,u.arrayEach)(p,(function(t){return e[t]=[]})),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,u.arrayEach)(t,(function(t){return n.add(e,t,r)}));else{m.has(e)&&(0,d.warn)((0,c.substitute)(g,{hookName:e,removedInVersion:m.get(e)})),v.has(e)&&(0,d.warn)(v.get(e));var o=this.getBucket(r);if(void 0===o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&(0,u.arrayEach)(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,u.arrayEach)(t,(function(t){return n.once(e,t,r)})):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,o,i,a,s){var u=this.globalBucket[t],l=u?u.length:0,c=0;if(l)for(;c<l;)if(u[c]&&!u[c].skip){var d=(0,f.fastCall)(u[c],e,n,r,o,i,a,s);void 0!==d&&(n=d),u[c]&&u[c].runOnce&&this.remove(t,u[c]),c+=1}else c+=1;var h=this.getBucket(e)[t],p=h?h.length:0,g=0;if(p)for(;g<p;)if(h[g]&&!h[g].skip){var m=(0,f.fastCall)(h[g],e,n,r,o,i,a,s);void 0!==m&&(n=m),h[g]&&h[g].runOnce&&this.remove(t,h[g],e),g+=1}else g+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,l.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||p.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&p.splice(p.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return v.has(e)||m.has(e)}},{key:"isRegistered",value:function(e){return p.indexOf(e)>=0}},{key:"getRegistered",value:function(){return p}}],[{key:"getSingleton",value:function(){return E}}]),e}(),E=new y;var T=y;t.default=T},function(e,t,n){n(788),n(790),n(791),n(792),n(794)},function(e,t,n){"use strict";n.r(t);var r=n(92);n.d(t,"cellAddressFromString",(function(){return r.cellAddressFromString})),n.d(t,"simpleCellAddressFromString",(function(){return r.simpleCellAddressFromString})),n.d(t,"simpleCellAddressToString",(function(){return r.simpleCellAddressToString})),n.d(t,"simpleCellRangeFromString",(function(){return r.simpleCellRangeFromString})),n.d(t,"simpleCellRangeToString",(function(){return r.simpleCellRangeToString}));var o=n(197);n.d(t,"CellAddress",(function(){return o.CellAddress}));var i=n(318);n.d(t,"ParserWithCaching",(function(){return i.ParserWithCaching}));var a=n(326);n.d(t,"collectDependencies",(function(){return a.collectDependencies}));var s=n(204);n.d(t,"buildLexerConfig",(function(){return s.buildLexerConfig}));var u=n(245);n.d(t,"FormulaLexer",(function(){return u.FormulaLexer}));var l=n(93);n.d(t,"AstNodeType",(function(){return l.AstNodeType})),n.d(t,"ParsingErrorType",(function(){return l.ParsingErrorType})),n.d(t,"buildProcedureAst",(function(){return l.buildProcedureAst})),n.d(t,"buildCellRangeAst",(function(){return l.buildCellRangeAst})),n.d(t,"buildParsingErrorAst",(function(){return l.buildParsingErrorAst})),n.d(t,"buildCellErrorAst",(function(){return l.buildCellErrorAst}));var c=n(246);n.d(t,"Unparser",(function(){return c.Unparser}));var d=n(138);n.d(t,"AddressDependency",(function(){return d.AddressDependency})),n.d(t,"CellRangeDependency",(function(){return d.CellRangeDependency})),n.d(t,"ColumnRangeDependency",(function(){return d.ColumnRangeDependency})),n.d(t,"RowRangeDependency",(function(){return d.RowRangeDependency})),n.d(t,"NamedExpressionDependency",(function(){return d.NamedExpressionDependency}))},function(e,t,n){var r=n(63),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,t,n){var r=n(49),o=n(382),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=(0,r.arrayReduce)(e,(function(e,t,r){return e+t.replace(/\r?\n\s*/g,"")+(n[r]?n[r]:"")}),"");return i.trim()},n(50),n(79),n(149);var r=n(13)},function(e,t,n){var r=n(167),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){n(722),n(724)},function(e,t,n){"use strict";n.r(t),n.d(t,"END_OF_FILE",(function(){return C})),n.d(t,"DEFAULT_PARSER_CONFIG",(function(){return w})),n.d(t,"DEFAULT_RULE_CONFIG",(function(){return S})),n.d(t,"ParserDefinitionErrorType",(function(){return R})),n.d(t,"EMPTY_ALT",(function(){return O})),n.d(t,"Parser",(function(){return b})),n.d(t,"CstParser",(function(){return A})),n.d(t,"EmbeddedActionsParser",(function(){return N}));var r,o=n(38),i=n(639),a=n(87),s=n(243),u=n(120),l=n(160),c=n(322),d=n(642),h=n(643),f=n(645),p=n(646),g=n(647),m=n(648),v=n(649),y=n(650),E=n(651),T=(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=Object(a.createTokenInstance)(a.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(C);var R,w=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:u.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),S=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function O(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(R||(R={}));var b=function(){function e(e,t){void 0===t&&(t=w),this.ignoredIssues=w.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),Object(o.has)(t,"ignoredIssues")&&t.ignoredIssues!==w.ignoredIssues&&Object(o.PRINT_WARNING)("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=Object(o.has)(t,"ignoredIssues")?t.ignoredIssues:w.ignoredIssues,this.skipValidations=Object(o.has)(t,"skipValidations")?t.skipValidations:w.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",(function(){var n;t.selfAnalysisDone=!0;var r=t.className;t.TRACE_INIT("toFastProps",(function(){Object(o.toFastProperties)(t)})),t.TRACE_INIT("Grammar Recording",(function(){try{t.enableRecording(),Object(o.forEach)(t.definedRulesNames,(function(e){var n=t[e].originalGrammarAction,r=void 0;t.TRACE_INIT(e+" Rule",(function(){r=t.topLevelRuleRecord(e,n)})),t.gastProductionsCache[e]=r}))}finally{t.disableRecording()}}));var a=[];if(t.TRACE_INIT("Grammar Resolving",(function(){a=Object(l.resolveGrammar)({rules:Object(o.values)(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,a)})),t.TRACE_INIT("Grammar Validations",(function(){if(Object(o.isEmpty)(a)&&!1===t.skipValidations){var e=Object(l.validateGrammar)({rules:Object(o.values)(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Object(o.values)(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:u.defaultGrammarValidatorErrorProvider,grammarName:r});t.definitionErrors.push.apply(t.definitionErrors,e)}})),Object(o.isEmpty)(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",(function(){var e=Object(i.computeAllProdsFollows)(Object(o.values)(t.gastProductionsCache));t.resyncFollows=e})),t.TRACE_INIT("ComputeLookaheadFunctions",(function(){t.preComputeLookaheadFunctions(Object(o.values)(t.gastProductionsCache))}))),t.TRACE_INIT("expandAllNestedRuleNames",(function(){var e=Object(s.expandAllNestedRuleNames)(Object(o.values)(t.gastProductionsCache),t.fullRuleNameToShort);t.allRuleNames=e.allRuleNames})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!Object(o.isEmpty)(t.definitionErrors))throw n=Object(o.map)(t.definitionErrors,(function(e){return e.message})),new Error("Parser Definition Errors detected:\n "+n.join("\n-------------------------------\n"))}))},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Object(o.applyMixins)(b,[c.Recoverable,d.LooksAhead,h.TreeBuilder,f.LexerAdapter,g.RecognizerEngine,p.RecognizerApi,m.ErrorHandler,v.ContentAssist,y.GastRecorder,E.PerformanceTracer]);var A=function(e){function t(t,n){void 0===n&&(n=w);var r=Object(o.cloneObj)(n);return r.outputCst=!0,e.call(this,t,r)||this}return T(t,e),t}(b),N=function(e){function t(t,n){void 0===n&&(n=w);var r=Object(o.cloneObj)(n);return r.outputCst=!1,e.call(this,t,r)||this}return T(t,e),t}(b)},function(e,t,n){"use strict";n.r(t),n.d(t,"SimpleRangeValue",(function(){return s}));var r=n(99),o=n(17),i=n(34),a=n(42);
|
47
47
|
/**
|
48
48
|
* @license
|
49
49
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
50
50
|
*/
|
51
|
-
class s{constructor(e,t,n,o){this._data=e,this.range=t,this.dependencyGraph=n,this._hasOnlyNumbers=o,this.size=void 0===e?new r.ArraySize(t.effectiveWidth(n),t.effectiveHeight(n)):new r.ArraySize(e[0].length,e.length)}get data(){return this.ensureThatComputed(),this._data}static fromRange(e,t,n){return new s(e,t,n,!0)}static onlyNumbers(e){return new s(e,void 0,void 0,!0)}static onlyValues(e){return new s(e,void 0,void 0,void 0)}static onlyRange(e,t){return new s(void 0,e,t,void 0)}static fromScalar(e){return new s([[e]],void 0,void 0,void 0)}isAdHoc(){return void 0===this.range}width(){return this.size.width}height(){return this.size.height}valuesFromTopLeftCorner(){this.ensureThatComputed();const e=[];for(let t=0;t<this._data.length;t++)for(let n=0;n<this._data[0].length;n++)e.push(this._data[t][n]);return e}*effectiveAddressesFromData(e){for(let t=0;t<this.data.length;++t){const n=this.data[t];for(let r=0;r<n.length;++r)yield Object(o.simpleCellAddress)(e.sheet,e.col+r,e.row+t)}}*entriesFromTopLeftCorner(e){this.ensureThatComputed();for(let t=0;t<this.size.height;++t)for(let n=0;n<this.size.width;++n)yield[this._data[t][n],Object(o.simpleCellAddress)(e.sheet,e.col+n,e.row+t)]}*iterateValuesFromTopLeftCorner(){yield*this.valuesFromTopLeftCorner()}numberOfElements(){return this.size.width*this.size.height}hasOnlyNumbers(){if(void 0===this._hasOnlyNumbers){this._hasOnlyNumbers=!0;for(const e of this.data)for(const t of e)if("number"!=typeof t)return this._hasOnlyNumbers=!1,!1}return this._hasOnlyNumbers}rawNumbers(){return this._data}rawData(){var e;return this.ensureThatComputed(),null!==(e=this._data)&&void 0!==e?e:[]}sameDimensionsAs(e){return this.width()===e.width()&&this.height()===e.height()}ensureThatComputed(){void 0===this._data&&(this._hasOnlyNumbers=!0,this._data=this.range.addressesArrayMap(this.dependencyGraph,e=>{const t=this.dependencyGraph.getCellValue(e);return t instanceof s?(this._hasOnlyNumbers=!1,new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.ScalarExpected)):(Object(a.isExtendedNumber)(t)||(this._hasOnlyNumbers=!1),t)}))}}},function(e,t,n){n(22)({target:"Number",stat:!0},{isInteger:n(716)})},function(e,t,n){"use strict";var r=n(22),o=n(114),i=n(55),a=n(
|
51
|
+
class s{constructor(e,t,n,o){this._data=e,this.range=t,this.dependencyGraph=n,this._hasOnlyNumbers=o,this.size=void 0===e?new r.ArraySize(t.effectiveWidth(n),t.effectiveHeight(n)):new r.ArraySize(e[0].length,e.length)}get data(){return this.ensureThatComputed(),this._data}static fromRange(e,t,n){return new s(e,t,n,!0)}static onlyNumbers(e){return new s(e,void 0,void 0,!0)}static onlyValues(e){return new s(e,void 0,void 0,void 0)}static onlyRange(e,t){return new s(void 0,e,t,void 0)}static fromScalar(e){return new s([[e]],void 0,void 0,void 0)}isAdHoc(){return void 0===this.range}width(){return this.size.width}height(){return this.size.height}valuesFromTopLeftCorner(){this.ensureThatComputed();const e=[];for(let t=0;t<this._data.length;t++)for(let n=0;n<this._data[0].length;n++)e.push(this._data[t][n]);return e}*effectiveAddressesFromData(e){for(let t=0;t<this.data.length;++t){const n=this.data[t];for(let r=0;r<n.length;++r)yield Object(o.simpleCellAddress)(e.sheet,e.col+r,e.row+t)}}*entriesFromTopLeftCorner(e){this.ensureThatComputed();for(let t=0;t<this.size.height;++t)for(let n=0;n<this.size.width;++n)yield[this._data[t][n],Object(o.simpleCellAddress)(e.sheet,e.col+n,e.row+t)]}*iterateValuesFromTopLeftCorner(){yield*this.valuesFromTopLeftCorner()}numberOfElements(){return this.size.width*this.size.height}hasOnlyNumbers(){if(void 0===this._hasOnlyNumbers){this._hasOnlyNumbers=!0;for(const e of this.data)for(const t of e)if("number"!=typeof t)return this._hasOnlyNumbers=!1,!1}return this._hasOnlyNumbers}rawNumbers(){return this._data}rawData(){var e;return this.ensureThatComputed(),null!==(e=this._data)&&void 0!==e?e:[]}sameDimensionsAs(e){return this.width()===e.width()&&this.height()===e.height()}ensureThatComputed(){void 0===this._data&&(this._hasOnlyNumbers=!0,this._data=this.range.addressesArrayMap(this.dependencyGraph,e=>{const t=this.dependencyGraph.getCellValue(e);return t instanceof s?(this._hasOnlyNumbers=!1,new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.ScalarExpected)):(Object(a.isExtendedNumber)(t)||(this._hasOnlyNumbers=!1),t)}))}}},function(e,t,n){n(22)({target:"Number",stat:!0},{isInteger:n(716)})},function(e,t,n){"use strict";var r=n(22),o=n(114),i=n(55),a=n(44),s=n(413),u=n(30),l=n(217),c=n(54),d=n(280),h=n(115),f=n(170),p=n(386),g=n(28),m=n(143).f,v=n(117).f,y=n(84).f,E=n(414),T=n(415).trim,C=a.Number,R=s.Number,w=C.prototype,S=a.TypeError,O=u("".slice),b=u("".charCodeAt),A=function(e){var t=p(e,"number");return"bigint"==typeof t?t:N(t)},N=function(e){var t,n,r,o,i,a,s,u,l=p(e,"number");if(f(l))throw S("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=T(l),43===(t=b(l,0))||45===t){if(88===(n=b(l,2))||120===n)return NaN}else if(48===t){switch(b(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=O(l,2)).length,s=0;s<a;s++)if((u=b(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+l},M=l("Number",!C(" 0o1")||!C("0b1")||C("+0x1")),I=function(e){return h(w,e)&&g((function(){E(e)}))},_=function(e){var t=arguments.length<1?0:C(A(e));return I(this)?d(Object(t),this,_):t};_.prototype=w,M&&!o&&(w.constructor=_),r({global:!0,constructor:!0,wrap:!0,forced:M},{Number:_});var k=function(e,t){for(var n,r=i?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&y(e,n,v(t,n))};o&&R&&k(s.Number,R),(M||o)&&k(s.Number,C)},function(e,t,n){"use strict";t.__esModule=!0,t.error=function(){var e;(0,r.isDefined)(console)&&(e=console).error.apply(e,arguments)},t.info=function(){var e;(0,r.isDefined)(console)&&(e=console).info.apply(e,arguments)},t.log=function(){var e;(0,r.isDefined)(console)&&(e=console).log.apply(e,arguments)},t.warn=function(){var e;(0,r.isDefined)(console)&&(e=console).warn.apply(e,arguments)};var r=n(25)},function(e,t,n){"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}},function(e,t,n){var r=n(747),o=n(565);e.exports=function(e,t){var n=o(e,t,"get");return r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(748),o=n(565);e.exports=function(e,t,n){var i=o(e,t,"set");return r(e,i,n),n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(21),n(43),t.__esModule=!0;var r={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0};t.getRegisteredMapsCounter=t.getIncreasedIndexes=t.getDecreasedIndexes=t.alterUtilsFactory=t.IndexMapper=void 0;var o=n(796);t.IndexMapper=o.IndexMapper;var i=n(299);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var a=n(584);t.getIncreasedIndexes=a.getIncreasedIndexes,t.getDecreasedIndexes=a.getDecreasedIndexes,t.alterUtilsFactory=a.alterUtilsFactory;var s=n(582);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){var r=n(22),o=n(55),i=n(393),a=n(88),s=n(117),u=n(144);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),c={},d=0;l.length>d;)void 0!==(n=o(r,t=l[d++]))&&u(c,t,n);return c}})},function(e,t,n){"use strict";n.r(t),n.d(t,"WRONG_RANGE_SIZE",(function(){return s})),n.d(t,"isSimpleCellRange",(function(){return u})),n.d(t,"simpleCellRange",(function(){return l})),n.d(t,"AbsoluteCellRange",(function(){return c})),n.d(t,"AbsoluteColumnRange",(function(){return d})),n.d(t,"AbsoluteRowRange",(function(){return h}));var r=n(17),o=n(29),i=n(61),a=n(161);
|
52
52
|
/**
|
53
53
|
* @license
|
54
54
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -79,7 +79,7 @@ const c=/^\s*([+-]?)\s*(([\d\.,]+(e[+-]?\d+)?)\s*([ij]?)|([ij]))\s*(([+-])\s*([+
|
|
79
79
|
* @license
|
80
80
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
81
81
|
*/
|
82
|
-
class c{constructor(e,t,n){this.formula=e,this.cellAddress=t,this.version=n}get width(){return 1}get height(){return 1}static fromAst(e,t,n,r){return n.isScalar()?new h(e,t,r):new d(e,t,n,r)}getFormula(e){return this.ensureRecentData(e),this.formula}ensureRecentData(e){if(this.version!=e.version()){const[t,n,r]=e.applyTransformations(this.formula,this.cellAddress,this.version);this.formula=t,this.cellAddress=n,this.version=r}}getAddress(e){return this.ensureRecentData(e),this.cellAddress}}class d extends c{constructor(e,t,n,r=0){super(e,t,r),n.isRef?this.array=new i.ErroredArray(new a.CellError(a.ErrorType.REF,s.ErrorMessage.NoSpaceForArrayResult),o.ArraySize.error()):this.array=new i.NotComputedArray(n)}get width(){return this.array.width()}get height(){return this.array.height()}get sheet(){return this.cellAddress.sheet}get leftCorner(){return this.cellAddress}setCellValue(e){if(e instanceof a.CellError)return this.setErrorValue(e),e;const t=i.ArrayValue.fromInterpreterValue(e);return t.resize(this.array.size),this.array=t,e}getCellValue(){if(this.array instanceof i.NotComputedArray)throw Error("Array not computed yet.");return this.array.simpleRangeValue()}valueOrUndef(){if(!(this.array instanceof i.NotComputedArray))return this.array.simpleRangeValue()}getArrayCellValue(e){const t=e.col-this.cellAddress.col,n=e.row-this.cellAddress.row;try{return this.array.get(t,n)}catch(e){return new a.CellError(a.ErrorType.REF)}}getArrayCellRawValue(e){const t=this.getArrayCellValue(e);return t instanceof a.CellError||t===u.EmptyValue?void 0:Object(u.getRawValue)(t)}setArrayCellValue(e,t){const n=e.col-this.cellAddress.col,r=e.row-this.cellAddress.row;this.array instanceof i.ArrayValue&&this.array.set(n,r,t)}setNoSpace(){return this.array=new i.ErroredArray(new a.CellError(a.ErrorType.SPILL,s.ErrorMessage.NoSpaceForArrayResult),o.ArraySize.error()),this.getCellValue()}getRange(){return r.AbsoluteCellRange.spanFrom(this.cellAddress,this.width,this.height)}getRangeOrUndef(){return r.AbsoluteCellRange.spanFromOrUndef(this.cellAddress,this.width,this.height)}setAddress(e){this.cellAddress=e}setFormula(e){this.formula=e}spansThroughSheetRows(e,t,n=t){return this.cellAddress.sheet===e&&this.cellAddress.row<=n&&t<this.cellAddress.row+this.height}spansThroughSheetColumn(e,t,n=t){return this.cellAddress.sheet===e&&this.cellAddress.col<=n&&t<this.cellAddress.col+this.width}isComputed(){return!(this.array instanceof i.NotComputedArray)}columnsFromArray(){return l.ColumnsSpan.fromNumberOfColumns(this.cellAddress.sheet,this.cellAddress.col,this.width)}rowsFromArray(){return l.RowsSpan.fromNumberOfRows(this.cellAddress.sheet,this.cellAddress.row,this.height)}ensureRecentData(e){}isLeftCorner(e){return Object(a.equalSimpleCellAddress)(this.cellAddress,e)}setErrorValue(e){this.array=new i.ErroredArray(e,this.array.size)}}class h extends c{constructor(e,t,n){super(e,t,n)}valueOrUndef(){return this.cachedCellValue}setCellValue(e){return this.cachedCellValue=e,this.cachedCellValue}getCellValue(){if(void 0!==this.cachedCellValue)return this.cachedCellValue;throw Error("Value of the formula cell is not computed.")}isComputed(){return void 0!==this.cachedCellValue}}},function(e,t,n){var r=n(45),o=n(49),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){var r,o,i,a=n(389),s=n(45),u=n(63),l=n(127),c=n(54),d=n(264),h=n(214),f=n(173),p=s.TypeError,g=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw p("Object already initialized");return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var v=h("state");f[v]=!0,r=function(e,t){if(c(e,v))throw p("Object already initialized");return t.facade=e,l(e,v,t),t},o=function(e){return c(e,v)?e[v]:{}},i=function(e){return c(e,v)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i)return i;i="object"===("undefined"==typeof Intl?"undefined":(0,s.default)(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1};return i},t.hasCaptionProblem=function(){void 0===o&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),o=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return o},t.isClassListSupported=function(){return!!document.documentElement.classList},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},t.isPassiveEventSupported=function(){if(void 0!==a)return a;try{var e={get passive(){a=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){a=!1}return a},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)};var o,i,a,s=r(n(14))},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isCtrlKey=function(e){var t=[];(0,o.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return a.includes(e)},t.isKey=function(e,t){var n=t.split("|"),o=!1;return(0,r.arrayEach)(n,(function(t){if(e===i[t])return o=!0,!1})),o},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},n(31),n(40);var r=n(13),o=n(90),i={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,o.isFirefox)()?182:174,AUDIO_MUTE:(0,o.isFirefox)()?181:173,AUDIO_UP:(0,o.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90};t.KEY_CODES=i;var a=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},function(e,t,n){var r=n(812);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.NO_ITEMS=t.ITEMS=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0,t.addItem=function(e,t){-1===w.indexOf(e)&&(S[e]=t)},t.predefinedItems=function(){var e={};return(0,a.objectEach)(S,(function(t,n){e[n]=t()})),e},n(23);var i=r(n(27)),a=n(12),s=R(n(927));t.ALIGNMENT=s.KEY;var u=R(n(928));t.CLEAR_COLUMN=u.KEY;var l=R(n(929));t.COLUMN_LEFT=l.KEY;var c=R(n(930));t.COLUMN_RIGHT=c.KEY;var d=R(n(931));t.READ_ONLY=d.KEY;var h=R(n(932));t.REDO=h.KEY;var f=R(n(933));t.REMOVE_COLUMN=f.KEY;var p=R(n(934));t.REMOVE_ROW=p.KEY;var g=R(n(935));t.ROW_ABOVE=g.KEY;var m=R(n(936));t.ROW_BELOW=m.KEY;var v=R(n(309));t.SEPARATOR=v.KEY;var y=R(n(937));t.NO_ITEMS=y.KEY;var E,T=R(n(938));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 R(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]}return r.default=e,n&&n.set(e,r),r}t.UNDO=T.KEY;var w=[g.KEY,m.KEY,l.KEY,c.KEY,u.KEY,p.KEY,f.KEY,T.KEY,h.KEY,d.KEY,s.KEY,v.KEY,y.KEY];t.ITEMS=w;var S=(E={},(0,i.default)(E,v.KEY,v.default),(0,i.default)(E,y.KEY,y.default),(0,i.default)(E,g.KEY,g.default),(0,i.default)(E,m.KEY,m.default),(0,i.default)(E,l.KEY,l.default),(0,i.default)(E,c.KEY,c.default),(0,i.default)(E,u.KEY,u.default),(0,i.default)(E,p.KEY,p.default),(0,i.default)(E,f.KEY,f.default),(0,i.default)(E,T.KEY,T.default),(0,i.default)(E,h.KEY,h.default),(0,i.default)(E,d.KEY,d.default),(0,i.default)(E,s.KEY,s.default),E)},function(e,t,n){"use strict";n.r(t);var r=n(317);n.d(t,"DependencyGraph",(function(){return r.DependencyGraph}));var o=n(250);n.d(t,"AddressMapping",(function(){return o.AddressMapping}));var i=n(253);n.d(t,"Graph",(function(){return i.Graph}));var a=n(254);n.d(t,"RangeMapping",(function(){return a.RangeMapping}));var s=n(255);n.d(t,"SheetMapping",(function(){return s.SheetMapping}));var u=n(251);n.d(t,"ArrayMapping",(function(){return u.ArrayMapping}));var l=n(105);n.d(t,"FormulaCellVertex",(function(){return l.FormulaCellVertex}));var c=n(329);n.d(t,"EmptyCellVertex",(function(){return c.EmptyCellVertex}));var d=n(330);n.d(t,"ValueCellVertex",(function(){return d.ValueCellVertex}));var h=n(331);n.d(t,"ParsingErrorVertex",(function(){return h.ParsingErrorVertex}));var f=n(252);n.d(t,"RangeVertex",(function(){return f.RangeVertex}));var p=n(257);n.d(t,"SparseStrategy",(function(){return p.SparseStrategy}));var g=n(258);n.d(t,"DenseStrategy",(function(){return g.DenseStrategy})),n.d(t,"ArrayVertex",(function(){return l.ArrayVertex}))},function(e,t,n){"use strict";n.r(t);var r=n(327);n.d(t,"EmptyStatistics",(function(){return r.EmptyStatistics}));var o=n(248);n.d(t,"Statistics",(function(){return o.Statistics}));var i=n(249);n.d(t,"StatType",(function(){return i.StatType}))},function(e,t){e.exports=!1},function(e,t,n){var r=n(30);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(692);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){var r=n(55),o=n(66),i=n(215),a=n(175),s=n(88),u=n(213),l=n(54),c=n(385),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){"use strict";n(89),t.__esModule=!0;var r=n(615);t.registerRootComparator=r.registerRootComparator,t.getRootComparator=r.getRootComparator,t.getCompareFunctionFactory=r.getCompareFunctionFactory;var o=n(914);t.FIRST_AFTER_SECOND=o.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=o.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=o.DO_NOT_SWAP,t.sort=o.sort},function(e,t,n){"use strict";n.r(t),n.d(t,"GAstVisitor",(function(){return o}));var r=n(44),o=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case r.NonTerminal:return this.visitNonTerminal(t);case r.Flat:return this.visitFlat(t);case r.Option:return this.visitOption(t);case r.RepetitionMandatory:return this.visitRepetitionMandatory(t);case r.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(t);case r.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(t);case r.Repetition:return this.visitRepetition(t);case r.Alternation:return this.visitAlternation(t);case r.Terminal:return this.visitTerminal(t);case r.Rule:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultParserErrorProvider",(function(){return u})),n.d(t,"defaultGrammarResolverErrorProvider",(function(){return l})),n.d(t,"defaultGrammarValidatorErrorProvider",(function(){return c}));var r=n(87),o=n(38),i=n(44),a=n(158),s=n(201),u={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual;e.previous,e.ruleName;return"Expecting "+(Object(r.hasTokenLabel)(t)?"--\x3e "+Object(r.tokenLabel)(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+n.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=(e.previous,e.customUserDescription),a=(e.ruleName,"\nbut found: '"+Object(o.first)(n).image+"'");if(i)return"Expecting: "+i+a;var s=Object(o.reduce)(t,(function(e,t){return e.concat(t)}),[]),u=Object(o.map)(s,(function(e){return"["+Object(o.map)(e,(function(e){return Object(r.tokenLabel)(e)})).join(", ")+"]"}));return"Expecting: "+("one of these possible Token sequences:\n"+Object(o.map)(u,(function(e,t){return" "+(t+1)+". "+e})).join("\n"))+a},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,a=(e.ruleName,"\nbut found: '"+Object(o.first)(n).image+"'");return i?"Expecting: "+i+a:"Expecting: "+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+Object(o.map)(t,(function(e){return"["+Object(o.map)(e,(function(e){return Object(r.tokenLabel)(e)})).join(",")+"]"})).join(" ,")+">")+a}};Object.freeze(u);var l={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},c={buildDuplicateFoundError:function(e,t){var n,r=e.name,s=Object(o.first)(t),u=s.idx,l=Object(a.getProductionDslName)(s),c=(n=s)instanceof i.Terminal?n.terminalType.name:n instanceof i.NonTerminal?n.nonTerminalName:"",d="->"+l+(u>0?u:"")+"<- "+(c?"with argument: ->"+c+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+r+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return d=(d=d.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+s.validNestedRuleName.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+Object(o.first)(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=Object(o.map)(e.prefixPath,(function(e){return Object(r.tokenLabel)(e)})).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=Object(o.map)(e.prefixPath,(function(e){return Object(r.tokenLabel)(e)})).join(", "),n=0===e.alternation.idx?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return i+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=Object(a.getProductionDslName)(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+o.map(e.leftRecursionPath,(function(e){return e.name})).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof i.Rule?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Transformer",(function(){return i}));var r=n(17),o=n(61);
|
82
|
+
class c{constructor(e,t,n){this.formula=e,this.cellAddress=t,this.version=n}get width(){return 1}get height(){return 1}static fromAst(e,t,n,r){return n.isScalar()?new h(e,t,r):new d(e,t,n,r)}getFormula(e){return this.ensureRecentData(e),this.formula}ensureRecentData(e){if(this.version!=e.version()){const[t,n,r]=e.applyTransformations(this.formula,this.cellAddress,this.version);this.formula=t,this.cellAddress=n,this.version=r}}getAddress(e){return this.ensureRecentData(e),this.cellAddress}}class d extends c{constructor(e,t,n,r=0){super(e,t,r),n.isRef?this.array=new i.ErroredArray(new a.CellError(a.ErrorType.REF,s.ErrorMessage.NoSpaceForArrayResult),o.ArraySize.error()):this.array=new i.NotComputedArray(n)}get width(){return this.array.width()}get height(){return this.array.height()}get sheet(){return this.cellAddress.sheet}get leftCorner(){return this.cellAddress}setCellValue(e){if(e instanceof a.CellError)return this.setErrorValue(e),e;const t=i.ArrayValue.fromInterpreterValue(e);return t.resize(this.array.size),this.array=t,e}getCellValue(){if(this.array instanceof i.NotComputedArray)throw Error("Array not computed yet.");return this.array.simpleRangeValue()}valueOrUndef(){if(!(this.array instanceof i.NotComputedArray))return this.array.simpleRangeValue()}getArrayCellValue(e){const t=e.col-this.cellAddress.col,n=e.row-this.cellAddress.row;try{return this.array.get(t,n)}catch(e){return new a.CellError(a.ErrorType.REF)}}getArrayCellRawValue(e){const t=this.getArrayCellValue(e);return t instanceof a.CellError||t===u.EmptyValue?void 0:Object(u.getRawValue)(t)}setArrayCellValue(e,t){const n=e.col-this.cellAddress.col,r=e.row-this.cellAddress.row;this.array instanceof i.ArrayValue&&this.array.set(n,r,t)}setNoSpace(){return this.array=new i.ErroredArray(new a.CellError(a.ErrorType.SPILL,s.ErrorMessage.NoSpaceForArrayResult),o.ArraySize.error()),this.getCellValue()}getRange(){return r.AbsoluteCellRange.spanFrom(this.cellAddress,this.width,this.height)}getRangeOrUndef(){return r.AbsoluteCellRange.spanFromOrUndef(this.cellAddress,this.width,this.height)}setAddress(e){this.cellAddress=e}setFormula(e){this.formula=e}spansThroughSheetRows(e,t,n=t){return this.cellAddress.sheet===e&&this.cellAddress.row<=n&&t<this.cellAddress.row+this.height}spansThroughSheetColumn(e,t,n=t){return this.cellAddress.sheet===e&&this.cellAddress.col<=n&&t<this.cellAddress.col+this.width}isComputed(){return!(this.array instanceof i.NotComputedArray)}columnsFromArray(){return l.ColumnsSpan.fromNumberOfColumns(this.cellAddress.sheet,this.cellAddress.col,this.width)}rowsFromArray(){return l.RowsSpan.fromNumberOfRows(this.cellAddress.sheet,this.cellAddress.row,this.height)}ensureRecentData(e){}isLeftCorner(e){return Object(a.equalSimpleCellAddress)(this.cellAddress,e)}setErrorValue(e){this.array=new i.ErroredArray(e,this.array.size)}}class h extends c{constructor(e,t,n){super(e,t,n)}valueOrUndef(){return this.cachedCellValue}setCellValue(e){return this.cachedCellValue=e,this.cachedCellValue}getCellValue(){if(void 0!==this.cachedCellValue)return this.cachedCellValue;throw Error("Value of the formula cell is not computed.")}isComputed(){return void 0!==this.cachedCellValue}}},function(e,t,n){var r=n(44),o=n(49),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){var r,o,i,a=n(389),s=n(44),u=n(63),l=n(127),c=n(54),d=n(264),h=n(214),f=n(173),p=s.TypeError,g=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw p("Object already initialized");return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var v=h("state");f[v]=!0,r=function(e,t){if(c(e,v))throw p("Object already initialized");return t.facade=e,l(e,v,t),t},o=function(e){return c(e,v)?e[v]:{}},i=function(e){return c(e,v)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i)return i;i="object"===("undefined"==typeof Intl?"undefined":(0,s.default)(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1};return i},t.hasCaptionProblem=function(){void 0===o&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),o=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return o},t.isClassListSupported=function(){return!!document.documentElement.classList},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},t.isPassiveEventSupported=function(){if(void 0!==a)return a;try{var e={get passive(){a=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){a=!1}return a},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)};var o,i,a,s=r(n(14))},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isCtrlKey=function(e){var t=[];(0,o.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return a.includes(e)},t.isKey=function(e,t){var n=t.split("|"),o=!1;return(0,r.arrayEach)(n,(function(t){if(e===i[t])return o=!0,!1})),o},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},n(31),n(40);var r=n(13),o=n(90),i={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,o.isFirefox)()?182:174,AUDIO_MUTE:(0,o.isFirefox)()?181:173,AUDIO_UP:(0,o.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90};t.KEY_CODES=i;var a=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},function(e,t,n){var r=n(812);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.NO_ITEMS=t.ITEMS=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0,t.addItem=function(e,t){-1===w.indexOf(e)&&(S[e]=t)},t.predefinedItems=function(){var e={};return(0,a.objectEach)(S,(function(t,n){e[n]=t()})),e},n(23);var i=r(n(27)),a=n(12),s=R(n(927));t.ALIGNMENT=s.KEY;var u=R(n(928));t.CLEAR_COLUMN=u.KEY;var l=R(n(929));t.COLUMN_LEFT=l.KEY;var c=R(n(930));t.COLUMN_RIGHT=c.KEY;var d=R(n(931));t.READ_ONLY=d.KEY;var h=R(n(932));t.REDO=h.KEY;var f=R(n(933));t.REMOVE_COLUMN=f.KEY;var p=R(n(934));t.REMOVE_ROW=p.KEY;var g=R(n(935));t.ROW_ABOVE=g.KEY;var m=R(n(936));t.ROW_BELOW=m.KEY;var v=R(n(309));t.SEPARATOR=v.KEY;var y=R(n(937));t.NO_ITEMS=y.KEY;var E,T=R(n(938));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 R(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]}return r.default=e,n&&n.set(e,r),r}t.UNDO=T.KEY;var w=[g.KEY,m.KEY,l.KEY,c.KEY,u.KEY,p.KEY,f.KEY,T.KEY,h.KEY,d.KEY,s.KEY,v.KEY,y.KEY];t.ITEMS=w;var S=(E={},(0,i.default)(E,v.KEY,v.default),(0,i.default)(E,y.KEY,y.default),(0,i.default)(E,g.KEY,g.default),(0,i.default)(E,m.KEY,m.default),(0,i.default)(E,l.KEY,l.default),(0,i.default)(E,c.KEY,c.default),(0,i.default)(E,u.KEY,u.default),(0,i.default)(E,p.KEY,p.default),(0,i.default)(E,f.KEY,f.default),(0,i.default)(E,T.KEY,T.default),(0,i.default)(E,h.KEY,h.default),(0,i.default)(E,d.KEY,d.default),(0,i.default)(E,s.KEY,s.default),E)},function(e,t,n){"use strict";n.r(t);var r=n(317);n.d(t,"DependencyGraph",(function(){return r.DependencyGraph}));var o=n(250);n.d(t,"AddressMapping",(function(){return o.AddressMapping}));var i=n(253);n.d(t,"Graph",(function(){return i.Graph}));var a=n(254);n.d(t,"RangeMapping",(function(){return a.RangeMapping}));var s=n(255);n.d(t,"SheetMapping",(function(){return s.SheetMapping}));var u=n(251);n.d(t,"ArrayMapping",(function(){return u.ArrayMapping}));var l=n(105);n.d(t,"FormulaCellVertex",(function(){return l.FormulaCellVertex}));var c=n(329);n.d(t,"EmptyCellVertex",(function(){return c.EmptyCellVertex}));var d=n(330);n.d(t,"ValueCellVertex",(function(){return d.ValueCellVertex}));var h=n(331);n.d(t,"ParsingErrorVertex",(function(){return h.ParsingErrorVertex}));var f=n(252);n.d(t,"RangeVertex",(function(){return f.RangeVertex}));var p=n(257);n.d(t,"SparseStrategy",(function(){return p.SparseStrategy}));var g=n(258);n.d(t,"DenseStrategy",(function(){return g.DenseStrategy})),n.d(t,"ArrayVertex",(function(){return l.ArrayVertex}))},function(e,t,n){"use strict";n.r(t);var r=n(327);n.d(t,"EmptyStatistics",(function(){return r.EmptyStatistics}));var o=n(248);n.d(t,"Statistics",(function(){return o.Statistics}));var i=n(249);n.d(t,"StatType",(function(){return i.StatType}))},function(e,t){e.exports=!1},function(e,t,n){var r=n(30);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(692);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){var r=n(55),o=n(66),i=n(215),a=n(175),s=n(88),u=n(213),l=n(54),c=n(385),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){"use strict";n(89),t.__esModule=!0;var r=n(615);t.registerRootComparator=r.registerRootComparator,t.getRootComparator=r.getRootComparator,t.getCompareFunctionFactory=r.getCompareFunctionFactory;var o=n(914);t.FIRST_AFTER_SECOND=o.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=o.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=o.DO_NOT_SWAP,t.sort=o.sort},function(e,t,n){"use strict";n.r(t),n.d(t,"GAstVisitor",(function(){return o}));var r=n(45),o=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case r.NonTerminal:return this.visitNonTerminal(t);case r.Flat:return this.visitFlat(t);case r.Option:return this.visitOption(t);case r.RepetitionMandatory:return this.visitRepetitionMandatory(t);case r.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(t);case r.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(t);case r.Repetition:return this.visitRepetition(t);case r.Alternation:return this.visitAlternation(t);case r.Terminal:return this.visitTerminal(t);case r.Rule:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultParserErrorProvider",(function(){return u})),n.d(t,"defaultGrammarResolverErrorProvider",(function(){return l})),n.d(t,"defaultGrammarValidatorErrorProvider",(function(){return c}));var r=n(87),o=n(38),i=n(45),a=n(158),s=n(201),u={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual;e.previous,e.ruleName;return"Expecting "+(Object(r.hasTokenLabel)(t)?"--\x3e "+Object(r.tokenLabel)(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+n.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=(e.previous,e.customUserDescription),a=(e.ruleName,"\nbut found: '"+Object(o.first)(n).image+"'");if(i)return"Expecting: "+i+a;var s=Object(o.reduce)(t,(function(e,t){return e.concat(t)}),[]),u=Object(o.map)(s,(function(e){return"["+Object(o.map)(e,(function(e){return Object(r.tokenLabel)(e)})).join(", ")+"]"}));return"Expecting: "+("one of these possible Token sequences:\n"+Object(o.map)(u,(function(e,t){return" "+(t+1)+". "+e})).join("\n"))+a},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,a=(e.ruleName,"\nbut found: '"+Object(o.first)(n).image+"'");return i?"Expecting: "+i+a:"Expecting: "+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+Object(o.map)(t,(function(e){return"["+Object(o.map)(e,(function(e){return Object(r.tokenLabel)(e)})).join(",")+"]"})).join(" ,")+">")+a}};Object.freeze(u);var l={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},c={buildDuplicateFoundError:function(e,t){var n,r=e.name,s=Object(o.first)(t),u=s.idx,l=Object(a.getProductionDslName)(s),c=(n=s)instanceof i.Terminal?n.terminalType.name:n instanceof i.NonTerminal?n.nonTerminalName:"",d="->"+l+(u>0?u:"")+"<- "+(c?"with argument: ->"+c+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+r+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return d=(d=d.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+s.validNestedRuleName.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+Object(o.first)(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=Object(o.map)(e.prefixPath,(function(e){return Object(r.tokenLabel)(e)})).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=Object(o.map)(e.prefixPath,(function(e){return Object(r.tokenLabel)(e)})).join(", "),n=0===e.alternation.idx?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return i+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=Object(a.getProductionDslName)(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+o.map(e.leftRecursionPath,(function(e){return e.name})).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof i.Rule?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Transformer",(function(){return i}));var r=n(17),o=n(61);
|
83
83
|
/**
|
84
84
|
* @license
|
85
85
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -92,12 +92,12 @@ class i{performEagerTransformations(e,t){for(const n of e.arrayFormulaNodes()){c
|
|
92
92
|
/**
|
93
93
|
* @license
|
94
94
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
95
|
-
*/const o=[31,28,31,30,31,30,31,31,30,31,30,31],i=[0,31,59,90,120,151,181,212,243,273,304,334];function a(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("year"in e&&"number"==typeof e.year&&"month"in e&&"number"==typeof e.month&&"day"in e&&"number"==typeof e.day)}function s(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("hours"in e&&"number"==typeof e.hours&&"minutes"in e&&"number"==typeof e.minutes&&"seconds"in e&&"number"==typeof e.seconds)}const u={year:9999,month:12,day:31};class l{constructor(e){this.config=e,this.minDateAbsoluteValue=this.dateToNumberFromZero(e.nullDate),this.maxDateValue=this.dateToNumber(u),this.leapYear1900=e.leapYear1900,!this.leapYear1900&&0<=this.dateToNumber({year:1900,month:2,day:28})?this.epochYearZero=this.numberToSimpleDate(2).year:this.epochYearZero=this.numberToSimpleDate(1).year,this.parseDateTime=e.parseDateTime}getWithinBounds(e){return e<=this.maxDateValue&&e>=0?e:void 0}dateStringToDateNumber(e){const{dateTime:t,dateFormat:n="",timeFormat:o=""}=this.parseDateTimeFromConfigFormats(e);if(void 0!==t)return s(t)?a(t)?new r.DateTimeNumber(p(t)+this.dateToNumber(t),n+" "+o):new r.TimeNumber(p(t),o):a(t)?new r.DateNumber(this.dateToNumber(t),n):0}parseDateTimeFromConfigFormats(e){return this.parseDateTimeFromFormats(e,this.config.dateFormats,this.config.timeFormats)}getNullYear(){return this.config.nullYear}getEpochYearZero(){return this.epochYearZero}isValidDate(e){return!(isNaN(e.year)||isNaN(e.month)||isNaN(e.day))&&(e.day===Math.round(e.day)&&e.month===Math.round(e.month)&&e.year===Math.round(e.year)&&(!(e.year<1582)&&(!(e.month<1||e.month>12)&&(!(e.day<1)&&(this.isLeapYear(e.year)&&2===e.month?e.day<=29:e.day<=o[e.month-1])))))}dateToNumber(e){return this.dateToNumberFromZero(e)-this.minDateAbsoluteValue}relativeNumberToAbsoluteNumber(e){return e+this.minDateAbsoluteValue-(this.leapYear1900?1:0)}numberToSimpleDate(e){const t=Math.floor(e)+this.minDateAbsoluteValue;let n=Math.floor(t/365.2425);this.dateToNumberFromZero({year:n+1,month:1,day:1})<=t?n++:this.dateToNumberFromZero({year:n-1,month:1,day:1})>t&&n--;const r=t-this.dateToNumberFromZero({year:n,month:1,day:1}),o=function(e){let t=0;i[t+6]<=e&&(t+=6);i[t+3]<=e&&(t+=3);i[t+2]<=e?t+=2:i[t+1]<=e&&(t+=1);return t}(r-(this.isLeapYear(n)&&r>=59?1:0));return{year:n,month:o+1,day:r-i[o]-(this.isLeapYear(n)&&o>1?1:0)+1}}numberToSimpleDateTime(e){const t=f(e%1),n=Math.floor(t.hours/24);t.hours=t.hours%24;const r=this.numberToSimpleDate(Math.floor(e)+n);return Object.assign(Object.assign({},r),t)}leapYearsCount(e){return Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400)+(this.config.leapYear1900&&e>=1900?1:0)}daysInMonth(e,t){return this.isLeapYear(e)&&2===t?29:o[t-1]}endOfMonth(e){return{year:e.year,month:e.month,day:this.daysInMonth(e.year,e.month)}}toBasisUS(e,t){return 31===e.day&&(e.day=30),30===e.day&&31===t.day&&(t.day=30),2===e.month&&e.day===this.daysInMonth(e.year,e.month)&&(e.day=30,2===t.month&&t.day===this.daysInMonth(t.year,t.month)&&(t.day=30)),[e,t]}yearLengthForBasis(e,t){return e.year!==t.year?e.year+1!==t.year||e.month<t.month||e.month===t.month&&e.day<t.day?(this.leapYearsCount(t.year)-this.leapYearsCount(e.year-1))/(t.year-e.year+1)+365:this.countLeapDays(t)!==this.countLeapDays({year:e.year,month:e.month,day:e.day-1})?366:365:this.isLeapYear(e.year)?366:365}parseSingleFormat(e,t,n){const r=this.parseDateTime(e,t,n);if(!a(r)||(r.year>=0&&r.year<100&&(r.year<this.getNullYear()?r.year+=2e3:r.year+=1900),this.isValidDate(r)))return r}parseDateTimeFromFormats(e,t,n){const r=0===t.length?[void 0]:t,o=0===n.length?[void 0]:n;for(const t of r)for(const n of o){const r=this.parseSingleFormat(e,t,n);if(void 0!==r)return{dateTime:r,timeFormat:n,dateFormat:t}}return{}}countLeapDays(e){return e.month>2||2===e.month&&e.day>=29?this.leapYearsCount(e.year):this.leapYearsCount(e.year-1)}dateToNumberFromZero(e){return 365*e.year+i[e.month-1]+e.day-1+(e.month<=2?this.leapYearsCount(e.year-1):this.leapYearsCount(e.year))}isLeapYear(e){return!(e%4)&&(!!(e%100)||(!(e%400)||1900===e&&this.config.leapYear1900))}}function c(e,t){const n=12*e.year+e.month-1+t;return{year:Math.floor(n/12),month:n%12+1,day:e.day}}function d(e){return{year:e.year,month:e.month,day:Math.min(e.day,o[e.month-1])}}function h(e){return Math.round(3600*e*24)/86400}function f(e){const t=24*e*60*60,n=function(e,t=1){return Math.round(e*t)/t}(t%60,1e5)%60,r=(t-n)/60,o=Math.round(r%60)%60,i=(r-o)/60;return{hours:Math.round(i),minutes:o,seconds:n}}function p(e){return((e.seconds/60+e.minutes)/60+e.hours)/24}function g(e){return{year:e.year,month:e.month,day:Math.min(30,e.day)}}},function(e,t,n){var r=n(114),o=n(264);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(169),o=n(28);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(387),o=n(267).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(213),o=n(84),i=n(175);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(102);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){var r=n(22),o=n(717),i=n(168);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){var r=n(55),o=n(45),i=n(30),a=n(217),s=n(280),u=n(127),l=n(143).f,c=n(115),d=n(287),h=n(56),f=n(424),p=n(283),g=n(730),m=n(97),v=n(28),y=n(54),E=n(107).enforce,T=n(410),C=n(48),R=n(418),w=n(419),S=C("match"),O=o.RegExp,b=O.prototype,A=o.SyntaxError,N=i(b.exec),M=i("".charAt),I=i("".replace),_=i("".indexOf),k=i("".slice),x=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,L=/a/g,D=new O(P)!==P,F=p.MISSED_STICKY,U=p.UNSUPPORTED_Y,H=r&&(!D||F||R||w||v((function(){return L[S]=!1,O(P)!=P||O(L)==L||"/a/i"!=O(P,"i")})));if(a("RegExp",H)){for(var V=function(e,t){var n,r,o,i,a,l,p=c(b,this),g=d(e),m=void 0===t,v=[],T=e;if(!p&&g&&m&&e.constructor===V)return e;if((g||c(b,e))&&(e=e.source,m&&(t=f(T))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),T=e,R&&"dotAll"in P&&(r=!!t&&_(t,"s")>-1)&&(t=I(t,/s/g,"")),n=t,F&&"sticky"in P&&(o=!!t&&_(t,"y")>-1)&&U&&(t=I(t,/y/g,"")),w&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,u=!1,l=0,c="";r<=n;r++){if("\\"===(t=M(e,r)))t+=M(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:N(x,k(e,r+1))&&(r+=2,u=!0),o+=t,l++;continue;case">"===t&&u:if(""===c||y(a,c))throw new A("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],u=!1,c="";continue}u?c+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=s(O(e,t),p?this:b,V),(r||o||v.length)&&(l=E(a),r&&(l.dotAll=!0,l.raw=V(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=M(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+M(e,++r);return o}(e),n)),o&&(l.sticky=!0),v.length&&(l.groups=v)),e!==T)try{u(a,"source",""===T?"(?:)":T)}catch(e){}return a},j=l(O),B=0;j.length>B;)g(V,O,j[B++]);b.constructor=V,V.prototype=b,m(o,"RegExp",V,{constructor:!0})}T("RegExp")},function(e,t,n){"use strict";var r=n(22),o=n(415).trim;r({target:"String",proto:!0,forced:n(731)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(569),o=n(753);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,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,n(81),n(47),n(5),n(31),n(1),n(21);var o=r(n(32)),i=r(n(24)),a=r(n(2)),s=r(n(3)),u=r(n(27)),l=n(15),c=n(58),d=r(n(756)),h=r(n(757)),f=n(571),p=r(n(768)),g=r(n(769)),m=n(132),v=function(){function e(t,n,r,o,i){var s=this;(0,a.default)(this,e),(0,u.default)(this,"wtSettings",null),(0,u.default)(this,"domBindings",void 0),(0,u.default)(this,"TBODY",null),(0,u.default)(this,"THEAD",null),(0,u.default)(this,"COLGROUP",null),(0,u.default)(this,"hasTableHeight",!0),(0,u.default)(this,"hasTableWidth",!0),(0,u.default)(this,"isTableVisible",!1),(0,u.default)(this,"tableOffset",0),(0,u.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=t,this.facadeGetter=n,this.wtSettings=o,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,l.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var c=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(function(){return s._modifyRowHeaderWidth(c)})),this.rowUtils=new g.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new p.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new f.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer")})}return(0,s.default)(e,[{key:"is",value:function(e){return this.name===e}},{key:"fixTableDomTree",value:function(){var e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable",t.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr")),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wtSettings,n=this.dataAccessObject,r=n.wtOverlays,o=n.wtViewport,i=t.getSetting("totalRows"),a=t.getSetting("totalColumns"),s=t.getSetting("rowHeaders"),u=s.length,c=t.getSetting("columnHeaders"),f=c.length,p=!1,g=e;if(this.isMaster&&(this.holderOffset=(0,l.offset)(this.holder),g=o.createRenderCalculators(g),u&&!t.getSetting("fixedColumnsStart"))){var v=r.inlineStartOverlay.getScrollPosition(),y=this.correctHeaderWidth;this.correctHeaderWidth=0!==v,y!==this.correctHeaderWidth&&(g=!1)}if(this.isMaster&&(p=r.updateStateOfRendering()),g)this.isMaster&&o.createVisibleCalculators(),r&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,l.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;var E=i>0?this.getFirstRenderedRow():0,T=a>0?this.getFirstRenderedColumn():0;this.rowFilter=new h.default(E,i,f),this.columnFilter=new d.default(T,a,u);var C,R=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var w={};this.wtSettings.getSetting("beforeDraw",!0,w),R=!0!==w.skipRender}if(R)if(this.tableRenderer.setHeaderContentRenderers(s,c),(this.is(m.CLONE_BOTTOM)||this.is(m.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(s,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(C=this.dataAccessObject.workspaceWidth,this.dataAccessObject.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(m.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.dataAccessObject.wtViewport.createVisibleCalculators(),this.dataAccessObject.wtOverlays.refresh(!1),this.dataAccessObject.wtOverlays.applyToDOM();var S=(0,l.outerWidth)(this.hider),O=(0,l.outerWidth)(this.TABLE);0!==S&&O!==S&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),C!==this.dataAccessObject.wtViewport.getWorkspaceWidth()&&(this.dataAccessObject.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wtSettings.getSetting("onDraw",!0)}else this.is(m.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize()}var b=!1;return this.isMaster&&(b=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(b=r.bottomOverlay.resetFixedPosition()||b),b=r.inlineStartOverlay.resetFixedPosition()||b,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),b?(r.refreshAll(),r.adjustElementsSize()):this.refreshSelections(g),p&&r.syncScrollWithMaster(),this.dataAccessObject.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.columnFilter.renderedToSource(e),i=this.wtSettings.getSetting("columnHeaders").length,a=this.wtSettings.getSetting("defaultRowHeight"),s=this.wtSettings.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.getColumnHeaderHeight(i),(n=this.getColumnHeader(o,i))&&(r=(0,l.innerHeight)(n),(!t&&a<r||t<r)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s),this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wtSettings,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders,r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height="".concat(n[r],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport;if((this.isMaster||this.is(m.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var n=this.getRenderedRowsCount(),r=0;r<n;r++){var o=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[o]&&(t.oversizedRows[o]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)(0,l.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wtSettings,n=this.dataAccessObject.selections;if(n){var r=Array.from(n),o=r.length;if(e){for(var i=[],a=0;a<o;a++){for(var s=r[a].settings,u=s.highlightHeaderClassName,l=s.highlightRowClassName,c=s.highlightColumnClassName,d=r[a].classNames,h=d.length,f=0;f<h;f++)i.includes(d[f])||i.push(d[f]);u&&!i.includes(u)&&i.push(u),l&&!i.includes(l)&&i.push(l),c&&!i.includes(c)&&i.push(c)}var p=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(p))for(var g=0;g<p.length;g++)i.push(p[g]);for(var m=i.length,v=0;v<m;v++)this.removeClassFromCells(i[v])}for(var y=0;y<o;y++)r[y].draw(this.facadeGetter(),e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n);if(r&&Array.isArray(r)){var o=(0,i.default)(r,2);t=o[0],n=o[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;var a=this.getRow(t);if(!a&&t>=0)throw new Error("TR was expected to be rendered but is not");var s=a.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!s&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getRow",value:function(e){var t,n,r=null,o=null;e<0?(r=null===(t=this.rowFilter)||void 0===t?void 0:t.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(r=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceToRendered(e),o=this.TBODY);return void 0!==r&&void 0!==o&&(!(o.childNodes.length<r+1)&&o.childNodes[r])}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getColumnHeaders",value:function(e){var t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((function(e){var r=e.childNodes[n];r&&t.push(r)})),t}},{key:"getRowHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0!==this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0)){var n=this.wtSettings.getSetting("rowHeaders").length;if(!(t>=n)){var r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return null==r?void 0:r.childNodes[t]}}}},{key:"getRowHeaders",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return[];for(var t=[],n=this.wtSettings.getSetting("rowHeaders").length,r=0;r<n;r++){var o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[r];i&&t.push(i)}return t}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,l.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=(0,l.index)(n),i=t.cellIndex;if((0,l.overlayContainsElement)(m.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(o-=r.childNodes.length);else if((0,l.overlayContainsElement)(m.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.getSetting("totalRows")-r.childNodes.length+o}else o=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o);return i=(0,l.overlayContainsElement)(m.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_INLINE_START,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),this.wot.createCellCoords(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wtSettings.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wtSettings.getSetting("defaultRowHeight")!==(0,l.innerHeight)(this.TBODY)-1||this.wtSettings.getSetting("fixedRowsBottom"))for(;i;)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),t=(o=(r=this.getTrForRow(n)).querySelector("th"))?(0,l.innerHeight)(o):(0,l.innerHeight)(r)-1,(!e&&this.wtSettings.getSetting("defaultRowHeight")<t||e<t)&&(t+=1,this.dataAccessObject.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"isColumnHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}},{key:"isRowAfterRenderedRows",value:function(e){return e>this.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}},{key:"isColumnAfterRenderedColumns",value:function(e){return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"getWidth",value:function(){return(0,l.outerWidth)(this.TABLE)}},{key:"getHeight",value:function(){return(0,l.outerHeight)(this.TABLE)}},{key:"getTotalWidth",value:function(){var e=(0,l.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}},{key:"getTotalHeight",value:function(){var e=(0,l.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}},{key:"isVisible",value:function(){return(0,l.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,c.isFunction)(e)?e():null;return Array.isArray(t)?(t=(0,o.default)(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}();t.default=v},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Overlay=void 0,n(23);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=n(12),l=n(13),c=n(72),d=n(133),h=r(n(770)),f=function(){function e(t,n,r,i,l){(0,o.default)(this,e),(0,a.default)(this,"wtSettings",null),(0,u.defineGetter)(this,"wot",t,{writable:!1}),this.domBindings=l,this.facadeGetter=n,this.wtSettings=i;var c=this.wot.wtTable,d=c.TABLE,h=c.hider,f=c.spreader,p=c.holder,g=c.wtRootElement;this.instance=this.wot,this.type=r,this.mainTableScrollableElement=null,this.TABLE=d,this.hider=h,this.spreader=f,this.holder=p,this.wtRootElement=g,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.updateStateOfRendering(),this.clone=this.makeClone()}return(0,i.default)(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.domBindings.rootWindow,o=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),a=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),s=this.clone.wtTable.spreader,u={start:this.getRelativeStartPosition(s),top:s.offsetTop},l={start:this.getRelativeStartPosition(e),top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,l,u):this.getRelativeCellPositionWithinHolder(i,a,o,l,u)}(0,c.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeStartPosition",value:function(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;if(t){var u=o.left;this.isRtl()&&(u=this.domBindings.rootWindow.innerWidth-(o.left+o.width+(0,s.getScrollbarWidth)())),i=u<=0?-1*u:0}else i=r.start;e?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:a=r.top;return{start:n.start+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),a=this.wot.wtOverlays.topOverlay.getScrollPosition(),s=0,u=0;if(n||(s=i-o.start),t){var l=this.wot.wtTable.wtRootElement.getBoundingClientRect();u=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+l.top}else e||(u=a-o.top);return{start:r.start-s,top:r.top-u}}},{key:"makeClone",value:function(){if(-1===d.CLONE_TYPES.indexOf(this.type))throw new Error('Clone type "'.concat(this.type,'" is not supported.'));var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=n.createElement("DIV"),i=n.createElement("TABLE"),a=e.wtRootElement.parentNode;o.className="".concat(d.CLONE_CLASS_NAMES.get(this.type)," handsontable"),o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,i.className=e.TABLE.className,o.appendChild(i),a.appendChild(o);var u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===d.CLONE_TOP||"vertical"===u&&this.type===d.CLONE_INLINE_START?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE),new h.default(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selections:this.wot.selections})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,r=t.style,o=e.parentNode.style;(0,l.arrayEach)([n,r,o],(function(e){e.width="",e.height=""}))}}},{key:"isRtl",value:function(){return this.wtSettings.getSetting("rtlMode")}},{key:"destroy",value:function(){this.clone.eventManager.destroy()}}]),e}();t.Overlay=f},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(19)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27));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,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,l.default)(this,n)}}var f=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,null),(0,d.default)((0,a.default)(i),"visualCellRange",null),i.visualCellRange=r||null,i.commit(),i}return(0,i.default)(n,[{key:"add",value:function(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}},{key:"clear",value:function(){return this.visualCellRange=null,(0,s.default)((0,c.default)(n.prototype),"clear",this).call(this)}},{key:"trimToVisibleCellsRangeOnly",value:function(e){var t=e.from,n=e.to,r=this.getNearestNotHiddenCoords(t,1),o=this.getNearestNotHiddenCoords(n,-1);if(null===r||null===o)return null;if(r.row>o.row||r.col>o.col){if(!("header"===this.settings.type||"active-header"===this.settings.type))return null;r=t,o=n}return this.settings.createCellRange(r,r,o)}},{key:"getNearestNotHiddenCoords",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper(),e.row,t);if(null===r)return null;var o=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper(),e.col,n);return null===o?null:this.settings.createCellCoords(r,o)}},{key:"getNearestNotHiddenIndex",value:function(e,t,n){if(t<0)return t;var r=e.getNearestNotHiddenIndex(t,n);return("header"===this.settings.type||"active-header"===this.settings.type)&&null===r?-1:r}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}},{key:"syncWith",value:function(e){var t="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,r=this.getNearestNotHiddenCoords(e.from.clone().normalize(),t,n);if(null!==r&&e.overlaps(r)){if(null===this.cellRange){var o=this.settings.visualToRenderableCoords(r);this.cellRange=this.settings.createCellRange(o)}return e.setHighlight(r),this}return e.setHighlight(e.from),this}},{key:"getCorners",value:function(){var e=this.cellRange,t=e.from,n=e.to,r=null===t.row||null===n.row,o=null===t.col||null===n.col,i=this.settings.createCellCoords(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=this.settings.createCellCoords(r?null:Math.max(t.row,n.row),o?null:Math.max(t.col,n.col));return[i.row,i.col,a.row,a.col]}},{key:"getVisualCorners",value:function(){var e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}},{key:"createRenderableCellRange",value:function(e,t){var n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return this.settings.createCellRange(n,n,r)}}]),n}(n(131).Selection);t.default=f},function(e,t,n){"use strict";var r,o=n(22),i=n(179),a=n(117).f,s=n(126),u=n(56),l=n(286),c=n(82),d=n(288),h=n(114),f=i("".startsWith),p=i("".slice),g=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(e){var t=u(c(this));l(e);var n=s(g(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return f?f(t,r,n):p(t,n,n+r.length)===r}})},function(e,t,n){"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){var n=!1;return(0,i.arrayEach)(e.getSelectedRange(),(function(o){o.forAll((function(o,i){if(!(o<0||i<0)){var a=e.getCellMeta(o,i).borders;if(a){if(!t)return n=!0,!1;if(!(0,r.hasOwnProperty)(a[t],"hide")||!1===a[t].hide)return n=!0,!1}}}))})),n},t.createDefaultCustomBorder=s,t.createDefaultHtBorder=l,t.createEmptyBorders=function(e,t){return{id:a(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=a,t.createSingleEmptyBorder=u,t.denormalizeBorder=function(e){(0,o.isDefined)(e.start)&&(e.left=e.start);(0,o.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,r.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,r.hasOwnProperty)(t,"top")&&(0,o.isDefined)(t.top)&&(t.top?((0,r.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,r.hasOwnProperty)(t,"bottom")&&(0,o.isDefined)(t.bottom)&&(t.bottom?((0,r.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,r.hasOwnProperty)(t,"start")&&(0,o.isDefined)(t.start)&&(t.start?((0,r.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,r.hasOwnProperty)(t,"end")&&(0,o.isDefined)(t.end)&&(t.end?((0,r.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.left)||(0,o.isDefined)(e.right)}))},t.hasStartEndTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.start)||(0,o.isDefined)(e.end)}))},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeBorder=function(e){var t,n;((0,o.isDefined)(e.start)||(0,o.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,o.isDefined)(e.end)||(0,o.isDefined)(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},n(20),n(1),n(4),n(41),n(5),n(6);var r=n(12),o=n(25),i=n(13);function a(e,t){return"border_row".concat(e,"col").concat(t)}function s(){return{width:1,color:"#000"}}function u(){return{hide:!0}}function l(){return{width:1,color:"#000",cornerVisible:!1}}var c=new Map([["left","start"],["right","end"]])},function(e,t,n){"use strict";n.r(t),n.d(t,"RANGE_OPERATOR",(function(){return r})),n.d(t,"ABSOLUTE_OPERATOR",(function(){return o})),n.d(t,"ALL_WHITESPACE_PATTERN",(function(){return i})),n.d(t,"ODFF_WHITESPACE_PATTERN",(function(){return a})),n.d(t,"UNICODE_LETTER_PATTERN",(function(){return s})),n.d(t,"NON_RESERVED_CHARACTER_PATTERN",(function(){return u})),n.d(t,"UNQUOTED_SHEET_NAME_PATTERN",(function(){return l})),n.d(t,"QUOTED_SHEET_NAME_PATTERN",(function(){return c})),n.d(t,"SHEET_NAME_PATTERN",(function(){return d})),n.d(t,"CELL_REFERENCE_PATTERN",(function(){return h})),n.d(t,"COLUMN_REFERENCE_PATTERN",(function(){return f})),n.d(t,"ROW_REFERENCE_PATTERN",(function(){return p})),n.d(t,"R1C1_CELL_REFERENCE_PATTERN",(function(){return g})),n.d(t,"CELL_REFERENCE_WITH_NEXT_CHARACTER_PATTERN",(function(){return m})),n.d(t,"NAMED_EXPRESSION_PATTERN",(function(){return v})),n.d(t,"ALL_DIGITS_ARRAY",(function(){return y})),n.d(t,"ALL_UNICODE_LETTERS_ARRAY",(function(){return E}));
|
95
|
+
*/const o=[31,28,31,30,31,30,31,31,30,31,30,31],i=[0,31,59,90,120,151,181,212,243,273,304,334];function a(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("year"in e&&"number"==typeof e.year&&"month"in e&&"number"==typeof e.month&&"day"in e&&"number"==typeof e.day)}function s(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("hours"in e&&"number"==typeof e.hours&&"minutes"in e&&"number"==typeof e.minutes&&"seconds"in e&&"number"==typeof e.seconds)}const u={year:9999,month:12,day:31};class l{constructor(e){this.config=e,this.minDateAbsoluteValue=this.dateToNumberFromZero(e.nullDate),this.maxDateValue=this.dateToNumber(u),this.leapYear1900=e.leapYear1900,!this.leapYear1900&&0<=this.dateToNumber({year:1900,month:2,day:28})?this.epochYearZero=this.numberToSimpleDate(2).year:this.epochYearZero=this.numberToSimpleDate(1).year,this.parseDateTime=e.parseDateTime}getWithinBounds(e){return e<=this.maxDateValue&&e>=0?e:void 0}dateStringToDateNumber(e){const{dateTime:t,dateFormat:n="",timeFormat:o=""}=this.parseDateTimeFromConfigFormats(e);if(void 0!==t)return s(t)?a(t)?new r.DateTimeNumber(p(t)+this.dateToNumber(t),n+" "+o):new r.TimeNumber(p(t),o):a(t)?new r.DateNumber(this.dateToNumber(t),n):0}parseDateTimeFromConfigFormats(e){return this.parseDateTimeFromFormats(e,this.config.dateFormats,this.config.timeFormats)}getNullYear(){return this.config.nullYear}getEpochYearZero(){return this.epochYearZero}isValidDate(e){return!(isNaN(e.year)||isNaN(e.month)||isNaN(e.day))&&(e.day===Math.round(e.day)&&e.month===Math.round(e.month)&&e.year===Math.round(e.year)&&(!(e.year<1582)&&(!(e.month<1||e.month>12)&&(!(e.day<1)&&(this.isLeapYear(e.year)&&2===e.month?e.day<=29:e.day<=o[e.month-1])))))}dateToNumber(e){return this.dateToNumberFromZero(e)-this.minDateAbsoluteValue}relativeNumberToAbsoluteNumber(e){return e+this.minDateAbsoluteValue-(this.leapYear1900?1:0)}numberToSimpleDate(e){const t=Math.floor(e)+this.minDateAbsoluteValue;let n=Math.floor(t/365.2425);this.dateToNumberFromZero({year:n+1,month:1,day:1})<=t?n++:this.dateToNumberFromZero({year:n-1,month:1,day:1})>t&&n--;const r=t-this.dateToNumberFromZero({year:n,month:1,day:1}),o=function(e){let t=0;i[t+6]<=e&&(t+=6);i[t+3]<=e&&(t+=3);i[t+2]<=e?t+=2:i[t+1]<=e&&(t+=1);return t}(r-(this.isLeapYear(n)&&r>=59?1:0));return{year:n,month:o+1,day:r-i[o]-(this.isLeapYear(n)&&o>1?1:0)+1}}numberToSimpleDateTime(e){const t=f(e%1),n=Math.floor(t.hours/24);t.hours=t.hours%24;const r=this.numberToSimpleDate(Math.floor(e)+n);return Object.assign(Object.assign({},r),t)}leapYearsCount(e){return Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400)+(this.config.leapYear1900&&e>=1900?1:0)}daysInMonth(e,t){return this.isLeapYear(e)&&2===t?29:o[t-1]}endOfMonth(e){return{year:e.year,month:e.month,day:this.daysInMonth(e.year,e.month)}}toBasisUS(e,t){return 31===e.day&&(e.day=30),30===e.day&&31===t.day&&(t.day=30),2===e.month&&e.day===this.daysInMonth(e.year,e.month)&&(e.day=30,2===t.month&&t.day===this.daysInMonth(t.year,t.month)&&(t.day=30)),[e,t]}yearLengthForBasis(e,t){return e.year!==t.year?e.year+1!==t.year||e.month<t.month||e.month===t.month&&e.day<t.day?(this.leapYearsCount(t.year)-this.leapYearsCount(e.year-1))/(t.year-e.year+1)+365:this.countLeapDays(t)!==this.countLeapDays({year:e.year,month:e.month,day:e.day-1})?366:365:this.isLeapYear(e.year)?366:365}parseSingleFormat(e,t,n){const r=this.parseDateTime(e,t,n);if(!a(r)||(r.year>=0&&r.year<100&&(r.year<this.getNullYear()?r.year+=2e3:r.year+=1900),this.isValidDate(r)))return r}parseDateTimeFromFormats(e,t,n){const r=0===t.length?[void 0]:t,o=0===n.length?[void 0]:n;for(const t of r)for(const n of o){const r=this.parseSingleFormat(e,t,n);if(void 0!==r)return{dateTime:r,timeFormat:n,dateFormat:t}}return{}}countLeapDays(e){return e.month>2||2===e.month&&e.day>=29?this.leapYearsCount(e.year):this.leapYearsCount(e.year-1)}dateToNumberFromZero(e){return 365*e.year+i[e.month-1]+e.day-1+(e.month<=2?this.leapYearsCount(e.year-1):this.leapYearsCount(e.year))}isLeapYear(e){return!(e%4)&&(!!(e%100)||(!(e%400)||1900===e&&this.config.leapYear1900))}}function c(e,t){const n=12*e.year+e.month-1+t;return{year:Math.floor(n/12),month:n%12+1,day:e.day}}function d(e){return{year:e.year,month:e.month,day:Math.min(e.day,o[e.month-1])}}function h(e){return Math.round(3600*e*24)/86400}function f(e){const t=24*e*60*60,n=function(e,t=1){return Math.round(e*t)/t}(t%60,1e5)%60,r=(t-n)/60,o=Math.round(r%60)%60,i=(r-o)/60;return{hours:Math.round(i),minutes:o,seconds:n}}function p(e){return((e.seconds/60+e.minutes)/60+e.hours)/24}function g(e){return{year:e.year,month:e.month,day:Math.min(30,e.day)}}},function(e,t,n){var r=n(114),o=n(264);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(169),o=n(28),i=n(44).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(387),o=n(267).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(213),o=n(84),i=n(175);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(102);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){var r=n(22),o=n(717),i=n(168);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){var r=n(55),o=n(44),i=n(30),a=n(217),s=n(280),u=n(127),l=n(143).f,c=n(115),d=n(287),h=n(56),f=n(424),p=n(283),g=n(730),m=n(97),v=n(28),y=n(54),E=n(107).enforce,T=n(410),C=n(48),R=n(418),w=n(419),S=C("match"),O=o.RegExp,b=O.prototype,A=o.SyntaxError,N=i(b.exec),M=i("".charAt),I=i("".replace),_=i("".indexOf),k=i("".slice),x=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,L=/a/g,D=new O(P)!==P,F=p.MISSED_STICKY,U=p.UNSUPPORTED_Y,H=r&&(!D||F||R||w||v((function(){return L[S]=!1,O(P)!=P||O(L)==L||"/a/i"!=O(P,"i")})));if(a("RegExp",H)){for(var V=function(e,t){var n,r,o,i,a,l,p=c(b,this),g=d(e),m=void 0===t,v=[],T=e;if(!p&&g&&m&&e.constructor===V)return e;if((g||c(b,e))&&(e=e.source,m&&(t=f(T))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),T=e,R&&"dotAll"in P&&(r=!!t&&_(t,"s")>-1)&&(t=I(t,/s/g,"")),n=t,F&&"sticky"in P&&(o=!!t&&_(t,"y")>-1)&&U&&(t=I(t,/y/g,"")),w&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,u=!1,l=0,c="";r<=n;r++){if("\\"===(t=M(e,r)))t+=M(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:N(x,k(e,r+1))&&(r+=2,u=!0),o+=t,l++;continue;case">"===t&&u:if(""===c||y(a,c))throw new A("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],u=!1,c="";continue}u?c+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=s(O(e,t),p?this:b,V),(r||o||v.length)&&(l=E(a),r&&(l.dotAll=!0,l.raw=V(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=M(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+M(e,++r);return o}(e),n)),o&&(l.sticky=!0),v.length&&(l.groups=v)),e!==T)try{u(a,"source",""===T?"(?:)":T)}catch(e){}return a},j=l(O),B=0;j.length>B;)g(V,O,j[B++]);b.constructor=V,V.prototype=b,m(o,"RegExp",V,{constructor:!0})}T("RegExp")},function(e,t,n){"use strict";var r=n(22),o=n(415).trim;r({target:"String",proto:!0,forced:n(731)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(569),o=n(753);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,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,n(81),n(47),n(5),n(31),n(1),n(21);var o=r(n(32)),i=r(n(24)),a=r(n(2)),s=r(n(3)),u=r(n(27)),l=n(15),c=n(58),d=r(n(756)),h=r(n(757)),f=n(571),p=r(n(768)),g=r(n(769)),m=n(132),v=function(){function e(t,n,r,o,i){var s=this;(0,a.default)(this,e),(0,u.default)(this,"wtSettings",null),(0,u.default)(this,"domBindings",void 0),(0,u.default)(this,"TBODY",null),(0,u.default)(this,"THEAD",null),(0,u.default)(this,"COLGROUP",null),(0,u.default)(this,"hasTableHeight",!0),(0,u.default)(this,"hasTableWidth",!0),(0,u.default)(this,"isTableVisible",!1),(0,u.default)(this,"tableOffset",0),(0,u.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=t,this.facadeGetter=n,this.wtSettings=o,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,l.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var c=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(function(){return s._modifyRowHeaderWidth(c)})),this.rowUtils=new g.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new p.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new f.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer")})}return(0,s.default)(e,[{key:"is",value:function(e){return this.name===e}},{key:"fixTableDomTree",value:function(){var e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable",t.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr")),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wtSettings,n=this.dataAccessObject,r=n.wtOverlays,o=n.wtViewport,i=t.getSetting("totalRows"),a=t.getSetting("totalColumns"),s=t.getSetting("rowHeaders"),u=s.length,c=t.getSetting("columnHeaders"),f=c.length,p=!1,g=e;if(this.isMaster&&(this.holderOffset=(0,l.offset)(this.holder),g=o.createRenderCalculators(g),u&&!t.getSetting("fixedColumnsStart"))){var v=r.inlineStartOverlay.getScrollPosition(),y=this.correctHeaderWidth;this.correctHeaderWidth=0!==v,y!==this.correctHeaderWidth&&(g=!1)}if(this.isMaster&&(p=r.updateStateOfRendering()),g)this.isMaster&&o.createVisibleCalculators(),r&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,l.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;var E=i>0?this.getFirstRenderedRow():0,T=a>0?this.getFirstRenderedColumn():0;this.rowFilter=new h.default(E,i,f),this.columnFilter=new d.default(T,a,u);var C,R=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var w={};this.wtSettings.getSetting("beforeDraw",!0,w),R=!0!==w.skipRender}if(R)if(this.tableRenderer.setHeaderContentRenderers(s,c),(this.is(m.CLONE_BOTTOM)||this.is(m.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(s,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(C=this.dataAccessObject.workspaceWidth,this.dataAccessObject.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(m.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.dataAccessObject.wtViewport.createVisibleCalculators(),this.dataAccessObject.wtOverlays.refresh(!1),this.dataAccessObject.wtOverlays.applyToDOM();var S=(0,l.outerWidth)(this.hider),O=(0,l.outerWidth)(this.TABLE);0!==S&&O!==S&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),C!==this.dataAccessObject.wtViewport.getWorkspaceWidth()&&(this.dataAccessObject.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wtSettings.getSetting("onDraw",!0)}else this.is(m.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize()}var b=!1;return this.isMaster&&(b=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(b=r.bottomOverlay.resetFixedPosition()||b),b=r.inlineStartOverlay.resetFixedPosition()||b,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),b?(r.refreshAll(),r.adjustElementsSize()):this.refreshSelections(g),p&&r.syncScrollWithMaster(),this.dataAccessObject.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.columnFilter.renderedToSource(e),i=this.wtSettings.getSetting("columnHeaders").length,a=this.wtSettings.getSetting("defaultRowHeight"),s=this.wtSettings.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.getColumnHeaderHeight(i),(n=this.getColumnHeader(o,i))&&(r=(0,l.innerHeight)(n),(!t&&a<r||t<r)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s),this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wtSettings,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders,r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height="".concat(n[r],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport;if((this.isMaster||this.is(m.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var n=this.getRenderedRowsCount(),r=0;r<n;r++){var o=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[o]&&(t.oversizedRows[o]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)(0,l.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wtSettings,n=this.dataAccessObject.selections;if(n){var r=Array.from(n),o=r.length;if(e){for(var i=[],a=0;a<o;a++){for(var s=r[a].settings,u=s.highlightHeaderClassName,l=s.highlightRowClassName,c=s.highlightColumnClassName,d=r[a].classNames,h=d.length,f=0;f<h;f++)i.includes(d[f])||i.push(d[f]);u&&!i.includes(u)&&i.push(u),l&&!i.includes(l)&&i.push(l),c&&!i.includes(c)&&i.push(c)}var p=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(p))for(var g=0;g<p.length;g++)i.push(p[g]);for(var m=i.length,v=0;v<m;v++)this.removeClassFromCells(i[v])}for(var y=0;y<o;y++)r[y].draw(this.facadeGetter(),e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n);if(r&&Array.isArray(r)){var o=(0,i.default)(r,2);t=o[0],n=o[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;var a=this.getRow(t);if(!a&&t>=0)throw new Error("TR was expected to be rendered but is not");var s=a.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!s&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getRow",value:function(e){var t,n,r=null,o=null;e<0?(r=null===(t=this.rowFilter)||void 0===t?void 0:t.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(r=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceToRendered(e),o=this.TBODY);return void 0!==r&&void 0!==o&&(!(o.childNodes.length<r+1)&&o.childNodes[r])}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getColumnHeaders",value:function(e){var t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((function(e){var r=e.childNodes[n];r&&t.push(r)})),t}},{key:"getRowHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0!==this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0)){var n=this.wtSettings.getSetting("rowHeaders").length;if(!(t>=n)){var r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return null==r?void 0:r.childNodes[t]}}}},{key:"getRowHeaders",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return[];for(var t=[],n=this.wtSettings.getSetting("rowHeaders").length,r=0;r<n;r++){var o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[r];i&&t.push(i)}return t}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,l.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=(0,l.index)(n),i=t.cellIndex;if((0,l.overlayContainsElement)(m.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(o-=r.childNodes.length);else if((0,l.overlayContainsElement)(m.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.getSetting("totalRows")-r.childNodes.length+o}else o=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o);return i=(0,l.overlayContainsElement)(m.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_INLINE_START,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),this.wot.createCellCoords(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wtSettings.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wtSettings.getSetting("defaultRowHeight")!==(0,l.innerHeight)(this.TBODY)-1||this.wtSettings.getSetting("fixedRowsBottom"))for(;i;)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),t=(o=(r=this.getTrForRow(n)).querySelector("th"))?(0,l.innerHeight)(o):(0,l.innerHeight)(r)-1,(!e&&this.wtSettings.getSetting("defaultRowHeight")<t||e<t)&&(t+=1,this.dataAccessObject.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"isColumnHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}},{key:"isRowAfterRenderedRows",value:function(e){return e>this.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}},{key:"isColumnAfterRenderedColumns",value:function(e){return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"getWidth",value:function(){return(0,l.outerWidth)(this.TABLE)}},{key:"getHeight",value:function(){return(0,l.outerHeight)(this.TABLE)}},{key:"getTotalWidth",value:function(){var e=(0,l.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}},{key:"getTotalHeight",value:function(){var e=(0,l.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}},{key:"isVisible",value:function(){return(0,l.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,c.isFunction)(e)?e():null;return Array.isArray(t)?(t=(0,o.default)(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}();t.default=v},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Overlay=void 0,n(23);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=n(12),l=n(13),c=n(72),d=n(133),h=r(n(770)),f=function(){function e(t,n,r,i,l){(0,o.default)(this,e),(0,a.default)(this,"wtSettings",null),(0,u.defineGetter)(this,"wot",t,{writable:!1}),this.domBindings=l,this.facadeGetter=n,this.wtSettings=i;var c=this.wot.wtTable,d=c.TABLE,h=c.hider,f=c.spreader,p=c.holder,g=c.wtRootElement;this.instance=this.wot,this.type=r,this.mainTableScrollableElement=null,this.TABLE=d,this.hider=h,this.spreader=f,this.holder=p,this.wtRootElement=g,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.updateStateOfRendering(),this.clone=this.makeClone()}return(0,i.default)(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.domBindings.rootWindow,o=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),a=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),s=this.clone.wtTable.spreader,u={start:this.getRelativeStartPosition(s),top:s.offsetTop},l={start:this.getRelativeStartPosition(e),top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,l,u):this.getRelativeCellPositionWithinHolder(i,a,o,l,u)}(0,c.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeStartPosition",value:function(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;if(t){var u=o.left;this.isRtl()&&(u=this.domBindings.rootWindow.innerWidth-(o.left+o.width+(0,s.getScrollbarWidth)())),i=u<=0?-1*u:0}else i=r.start;e?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:a=r.top;return{start:n.start+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),a=this.wot.wtOverlays.topOverlay.getScrollPosition(),s=0,u=0;if(n||(s=i-o.start),t){var l=this.wot.wtTable.wtRootElement.getBoundingClientRect();u=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+l.top}else e||(u=a-o.top);return{start:r.start-s,top:r.top-u}}},{key:"makeClone",value:function(){if(-1===d.CLONE_TYPES.indexOf(this.type))throw new Error('Clone type "'.concat(this.type,'" is not supported.'));var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=n.createElement("DIV"),i=n.createElement("TABLE"),a=e.wtRootElement.parentNode;o.className="".concat(d.CLONE_CLASS_NAMES.get(this.type)," handsontable"),o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,i.className=e.TABLE.className,o.appendChild(i),a.appendChild(o);var u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===d.CLONE_TOP||"vertical"===u&&this.type===d.CLONE_INLINE_START?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE),new h.default(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selections:this.wot.selections})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,r=t.style,o=e.parentNode.style;(0,l.arrayEach)([n,r,o],(function(e){e.width="",e.height=""}))}}},{key:"isRtl",value:function(){return this.wtSettings.getSetting("rtlMode")}},{key:"destroy",value:function(){this.clone.eventManager.destroy()}}]),e}();t.Overlay=f},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(19)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27));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,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,l.default)(this,n)}}var f=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,null),(0,d.default)((0,a.default)(i),"visualCellRange",null),i.visualCellRange=r||null,i.commit(),i}return(0,i.default)(n,[{key:"add",value:function(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}},{key:"clear",value:function(){return this.visualCellRange=null,(0,s.default)((0,c.default)(n.prototype),"clear",this).call(this)}},{key:"trimToVisibleCellsRangeOnly",value:function(e){var t=e.from,n=e.to,r=this.getNearestNotHiddenCoords(t,1),o=this.getNearestNotHiddenCoords(n,-1);if(null===r||null===o)return null;if(r.row>o.row||r.col>o.col){if(!("header"===this.settings.type||"active-header"===this.settings.type))return null;r=t,o=n}return this.settings.createCellRange(r,r,o)}},{key:"getNearestNotHiddenCoords",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper(),e.row,t);if(null===r)return null;var o=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper(),e.col,n);return null===o?null:this.settings.createCellCoords(r,o)}},{key:"getNearestNotHiddenIndex",value:function(e,t,n){if(t<0)return t;var r=e.getNearestNotHiddenIndex(t,n);return("header"===this.settings.type||"active-header"===this.settings.type)&&null===r?-1:r}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}},{key:"syncWith",value:function(e){var t="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,r=this.getNearestNotHiddenCoords(e.from.clone().normalize(),t,n);if(null!==r&&e.overlaps(r)){if(null===this.cellRange){var o=this.settings.visualToRenderableCoords(r);this.cellRange=this.settings.createCellRange(o)}return e.setHighlight(r),this}return e.setHighlight(e.from),this}},{key:"getCorners",value:function(){var e=this.cellRange,t=e.from,n=e.to,r=null===t.row||null===n.row,o=null===t.col||null===n.col,i=this.settings.createCellCoords(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=this.settings.createCellCoords(r?null:Math.max(t.row,n.row),o?null:Math.max(t.col,n.col));return[i.row,i.col,a.row,a.col]}},{key:"getVisualCorners",value:function(){var e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}},{key:"createRenderableCellRange",value:function(e,t){var n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return this.settings.createCellRange(n,n,r)}}]),n}(n(131).Selection);t.default=f},function(e,t,n){"use strict";var r,o=n(22),i=n(179),a=n(117).f,s=n(126),u=n(56),l=n(286),c=n(82),d=n(288),h=n(114),f=i("".startsWith),p=i("".slice),g=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(e){var t=u(c(this));l(e);var n=s(g(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return f?f(t,r,n):p(t,n,n+r.length)===r}})},function(e,t,n){"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){var n=!1;return(0,i.arrayEach)(e.getSelectedRange(),(function(o){o.forAll((function(o,i){if(!(o<0||i<0)){var a=e.getCellMeta(o,i).borders;if(a){if(!t)return n=!0,!1;if(!(0,r.hasOwnProperty)(a[t],"hide")||!1===a[t].hide)return n=!0,!1}}}))})),n},t.createDefaultCustomBorder=s,t.createDefaultHtBorder=l,t.createEmptyBorders=function(e,t){return{id:a(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=a,t.createSingleEmptyBorder=u,t.denormalizeBorder=function(e){(0,o.isDefined)(e.start)&&(e.left=e.start);(0,o.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,r.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,r.hasOwnProperty)(t,"top")&&(0,o.isDefined)(t.top)&&(t.top?((0,r.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,r.hasOwnProperty)(t,"bottom")&&(0,o.isDefined)(t.bottom)&&(t.bottom?((0,r.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,r.hasOwnProperty)(t,"start")&&(0,o.isDefined)(t.start)&&(t.start?((0,r.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,r.hasOwnProperty)(t,"end")&&(0,o.isDefined)(t.end)&&(t.end?((0,r.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.left)||(0,o.isDefined)(e.right)}))},t.hasStartEndTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.start)||(0,o.isDefined)(e.end)}))},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeBorder=function(e){var t,n;((0,o.isDefined)(e.start)||(0,o.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,o.isDefined)(e.end)||(0,o.isDefined)(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},n(20),n(1),n(4),n(41),n(5),n(6);var r=n(12),o=n(25),i=n(13);function a(e,t){return"border_row".concat(e,"col").concat(t)}function s(){return{width:1,color:"#000"}}function u(){return{hide:!0}}function l(){return{width:1,color:"#000",cornerVisible:!1}}var c=new Map([["left","start"],["right","end"]])},function(e,t,n){"use strict";n.r(t),n.d(t,"RANGE_OPERATOR",(function(){return r})),n.d(t,"ABSOLUTE_OPERATOR",(function(){return o})),n.d(t,"ALL_WHITESPACE_PATTERN",(function(){return i})),n.d(t,"ODFF_WHITESPACE_PATTERN",(function(){return a})),n.d(t,"UNICODE_LETTER_PATTERN",(function(){return s})),n.d(t,"NON_RESERVED_CHARACTER_PATTERN",(function(){return u})),n.d(t,"UNQUOTED_SHEET_NAME_PATTERN",(function(){return l})),n.d(t,"QUOTED_SHEET_NAME_PATTERN",(function(){return c})),n.d(t,"SHEET_NAME_PATTERN",(function(){return d})),n.d(t,"CELL_REFERENCE_PATTERN",(function(){return h})),n.d(t,"COLUMN_REFERENCE_PATTERN",(function(){return f})),n.d(t,"ROW_REFERENCE_PATTERN",(function(){return p})),n.d(t,"R1C1_CELL_REFERENCE_PATTERN",(function(){return g})),n.d(t,"CELL_REFERENCE_WITH_NEXT_CHARACTER_PATTERN",(function(){return m})),n.d(t,"NAMED_EXPRESSION_PATTERN",(function(){return v})),n.d(t,"ALL_DIGITS_ARRAY",(function(){return y})),n.d(t,"ALL_UNICODE_LETTERS_ARRAY",(function(){return E}));
|
96
96
|
/**
|
97
97
|
* @license
|
98
98
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
99
99
|
*/
|
100
|
-
const r=":",o="$",i="\\s+",a="[ \\t\\n\\r]+",s="A-Za-zÀ-ʯ",u=`${s}0-9_.`,l=`[${s}0-9_]+`,c="'(((?!').|'')*)'",d=`(${l}|${c})!`,h=`(${d})?\\${o}?[A-Za-z]+\\${o}?[0-9]+`,f=`(${d})?\\${o}?[A-Za-z]+`,p=`(${d})?\\${o}?[0-9]+`,g="[rR][0-9]*[cC][0-9]*",m=`(${h})[^${u}]`,v=`[${s}_][${u}]*`,y=["0","1","2","3","4","5","6","7","8","9"],E=[...Array.from(Array(26)).map((e,t)=>t+"A".charCodeAt(0)),...Array.from(Array(26)).map((e,t)=>t+"a".charCodeAt(0)),...Array.from(Array(496)).map((e,t)=>t+192)].map(e=>String.fromCharCode(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"tokenStructuredMatcher",(function(){return o})),n.d(t,"tokenStructuredMatcherNoCategories",(function(){return i})),n.d(t,"tokenShortNameIdx",(function(){return a})),n.d(t,"tokenIdxToClass",(function(){return s})),n.d(t,"augmentTokenTypes",(function(){return u})),n.d(t,"expandCategories",(function(){return l})),n.d(t,"assignTokenDefaultProps",(function(){return c})),n.d(t,"assignCategoriesTokensProp",(function(){return d})),n.d(t,"assignCategoriesMapProp",(function(){return h})),n.d(t,"singleAssignCategoriesToksMap",(function(){return f})),n.d(t,"hasShortKeyProperty",(function(){return p})),n.d(t,"hasCategoriesProperty",(function(){return g})),n.d(t,"hasExtendingTokensTypesProperty",(function(){return m})),n.d(t,"hasExtendingTokensTypesMapProperty",(function(){return v})),n.d(t,"isTokenType",(function(){return y}));var r=n(38);function o(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function i(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var a=1,s={};function u(e){var t=l(e);c(t),h(t),d(t),Object(r.forEach)(t,(function(e){e.isParent=e.categoryMatches.length>0}))}function l(e){for(var t=Object(r.cloneArr)(e),n=e,o=!0;o;){n=Object(r.compact)(Object(r.flatten)(Object(r.map)(n,(function(e){return e.CATEGORIES}))));var i=Object(r.difference)(n,t);t=t.concat(i),Object(r.isEmpty)(i)?o=!1:n=i}return t}function c(e){Object(r.forEach)(e,(function(e){p(e)||(s[a]=e,e.tokenTypeIdx=a++),g(e)&&!Object(r.isArray)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),g(e)||(e.CATEGORIES=[]),m(e)||(e.categoryMatches=[]),v(e)||(e.categoryMatchesMap={})}))}function d(e){Object(r.forEach)(e,(function(e){e.categoryMatches=[],Object(r.forEach)(e.categoryMatchesMap,(function(t,n){e.categoryMatches.push(s[n].tokenTypeIdx)}))}))}function h(e){Object(r.forEach)(e,(function(e){f([],e)}))}function f(e,t){Object(r.forEach)(e,(function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0})),Object(r.forEach)(t.CATEGORIES,(function(n){var o=e.concat(t);Object(r.contains)(o,n)||f(o,n)}))}function p(e){return Object(r.has)(e,"tokenTypeIdx")}function g(e){return Object(r.has)(e,"CATEGORIES")}function m(e){return Object(r.has)(e,"categoryMatches")}function v(e){return Object(r.has)(e,"categoryMatchesMap")}function y(e){return Object(r.has)(e,"tokenTypeIdx")}},function(e,t,n){"use strict";n.r(t),n.d(t,"isSequenceProd",(function(){return u})),n.d(t,"isOptionalProd",(function(){return l})),n.d(t,"isBranchingProd",(function(){return c})),n.d(t,"getProductionDslName",(function(){return d})),n.d(t,"DslMethodsCollectorVisitor",(function(){return h})),n.d(t,"collectMethods",(function(){return p}));var r,o=n(38),i=n(
|
100
|
+
const r=":",o="$",i="\\s+",a="[ \\t\\n\\r]+",s="A-Za-zÀ-ʯ",u=`${s}0-9_.`,l=`[${s}0-9_]+`,c="'(((?!').|'')*)'",d=`(${l}|${c})!`,h=`(${d})?\\${o}?[A-Za-z]+\\${o}?[0-9]+`,f=`(${d})?\\${o}?[A-Za-z]+`,p=`(${d})?\\${o}?[0-9]+`,g="[rR][0-9]*[cC][0-9]*",m=`(${h})[^${u}]`,v=`[${s}_][${u}]*`,y=["0","1","2","3","4","5","6","7","8","9"],E=[...Array.from(Array(26)).map((e,t)=>t+"A".charCodeAt(0)),...Array.from(Array(26)).map((e,t)=>t+"a".charCodeAt(0)),...Array.from(Array(496)).map((e,t)=>t+192)].map(e=>String.fromCharCode(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"tokenStructuredMatcher",(function(){return o})),n.d(t,"tokenStructuredMatcherNoCategories",(function(){return i})),n.d(t,"tokenShortNameIdx",(function(){return a})),n.d(t,"tokenIdxToClass",(function(){return s})),n.d(t,"augmentTokenTypes",(function(){return u})),n.d(t,"expandCategories",(function(){return l})),n.d(t,"assignTokenDefaultProps",(function(){return c})),n.d(t,"assignCategoriesTokensProp",(function(){return d})),n.d(t,"assignCategoriesMapProp",(function(){return h})),n.d(t,"singleAssignCategoriesToksMap",(function(){return f})),n.d(t,"hasShortKeyProperty",(function(){return p})),n.d(t,"hasCategoriesProperty",(function(){return g})),n.d(t,"hasExtendingTokensTypesProperty",(function(){return m})),n.d(t,"hasExtendingTokensTypesMapProperty",(function(){return v})),n.d(t,"isTokenType",(function(){return y}));var r=n(38);function o(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function i(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var a=1,s={};function u(e){var t=l(e);c(t),h(t),d(t),Object(r.forEach)(t,(function(e){e.isParent=e.categoryMatches.length>0}))}function l(e){for(var t=Object(r.cloneArr)(e),n=e,o=!0;o;){n=Object(r.compact)(Object(r.flatten)(Object(r.map)(n,(function(e){return e.CATEGORIES}))));var i=Object(r.difference)(n,t);t=t.concat(i),Object(r.isEmpty)(i)?o=!1:n=i}return t}function c(e){Object(r.forEach)(e,(function(e){p(e)||(s[a]=e,e.tokenTypeIdx=a++),g(e)&&!Object(r.isArray)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),g(e)||(e.CATEGORIES=[]),m(e)||(e.categoryMatches=[]),v(e)||(e.categoryMatchesMap={})}))}function d(e){Object(r.forEach)(e,(function(e){e.categoryMatches=[],Object(r.forEach)(e.categoryMatchesMap,(function(t,n){e.categoryMatches.push(s[n].tokenTypeIdx)}))}))}function h(e){Object(r.forEach)(e,(function(e){f([],e)}))}function f(e,t){Object(r.forEach)(e,(function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0})),Object(r.forEach)(t.CATEGORIES,(function(n){var o=e.concat(t);Object(r.contains)(o,n)||f(o,n)}))}function p(e){return Object(r.has)(e,"tokenTypeIdx")}function g(e){return Object(r.has)(e,"CATEGORIES")}function m(e){return Object(r.has)(e,"categoryMatches")}function v(e){return Object(r.has)(e,"categoryMatchesMap")}function y(e){return Object(r.has)(e,"tokenTypeIdx")}},function(e,t,n){"use strict";n.r(t),n.d(t,"isSequenceProd",(function(){return u})),n.d(t,"isOptionalProd",(function(){return l})),n.d(t,"isBranchingProd",(function(){return c})),n.d(t,"getProductionDslName",(function(){return d})),n.d(t,"DslMethodsCollectorVisitor",(function(){return h})),n.d(t,"collectMethods",(function(){return p}));var r,o=n(38),i=n(45),a=n(119),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 u(e){return e instanceof i.Flat||e instanceof i.Option||e instanceof i.Repetition||e instanceof i.RepetitionMandatory||e instanceof i.RepetitionMandatoryWithSeparator||e instanceof i.RepetitionWithSeparator||e instanceof i.Terminal||e instanceof i.Rule}function l(e,t){return void 0===t&&(t=[]),!!(e instanceof i.Option||e instanceof i.Repetition||e instanceof i.RepetitionWithSeparator)||(e instanceof i.Alternation?Object(o.some)(e.definition,(function(e){return l(e,t)})):!(e instanceof i.NonTerminal&&Object(o.contains)(t,e))&&(e instanceof i.AbstractProduction&&(e instanceof i.NonTerminal&&t.push(e),Object(o.every)(e.definition,(function(e){return l(e,t)})))))}function c(e){return e instanceof i.Alternation}function d(e){if(e instanceof i.NonTerminal)return"SUBRULE";if(e instanceof i.Option)return"OPTION";if(e instanceof i.Alternation)return"OR";if(e instanceof i.RepetitionMandatory)return"AT_LEAST_ONE";if(e instanceof i.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(e instanceof i.RepetitionWithSeparator)return"MANY_SEP";if(e instanceof i.Repetition)return"MANY";if(e instanceof i.Terminal)return"CONSUME";throw Error("non exhaustive match")}var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return s(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";Object(o.has)(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";Object(o.has)(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(a.GAstVisitor),f=new h;function p(e){f.reset(),e.accept(f);var t=f.dslMethods;return f.reset(),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"BITS_FOR_METHOD_TYPE",(function(){return r})),n.d(t,"BITS_FOR_OCCURRENCE_IDX",(function(){return o})),n.d(t,"BITS_FOR_RULE_IDX",(function(){return i})),n.d(t,"BITS_FOR_ALT_IDX",(function(){return a})),n.d(t,"OR_IDX",(function(){return s})),n.d(t,"OPTION_IDX",(function(){return u})),n.d(t,"MANY_IDX",(function(){return l})),n.d(t,"AT_LEAST_ONE_IDX",(function(){return c})),n.d(t,"MANY_SEP_IDX",(function(){return d})),n.d(t,"AT_LEAST_ONE_SEP_IDX",(function(){return h})),n.d(t,"getKeyForAutomaticLookahead",(function(){return f})),n.d(t,"getKeyForAltIndex",(function(){return g}));var r=4,o=8,i=12,a=8,s=1<<o,u=2<<o,l=3<<o,c=4<<o,d=5<<o,h=6<<o;function f(e,t,n){return n|t|e}var p=32-a;function g(e,t,n,r){var o=r+1<<p;return f(e,t,n)|o}},function(e,t,n){"use strict";n.r(t),n.d(t,"resolveGrammar",(function(){return u})),n.d(t,"validateGrammar",(function(){return l})),n.d(t,"assignOccurrenceIndices",(function(){return c}));var r=n(38),o=n(641),i=n(201),a=n(120),s=n(158);function u(e){e=Object(r.defaults)(e,{errMsgProvider:a.defaultGrammarResolverErrorProvider});var t={};return Object(r.forEach)(e.rules,(function(e){t[e.name]=e})),Object(o.resolveGrammar)(t,e.errMsgProvider)}function l(e){return e=Object(r.defaults)(e,{errMsgProvider:a.defaultGrammarValidatorErrorProvider,ignoredIssues:{}}),Object(i.validateGrammar)(e.rules,e.maxLookahead,e.tokenTypes,e.ignoredIssues,e.errMsgProvider,e.grammarName)}function c(e){Object(r.forEach)(e.rules,(function(e){var t=new s.DslMethodsCollectorVisitor;e.accept(t),Object(r.forEach)(t.dslMethods,(function(e){Object(r.forEach)(e,(function(e,t){e.idx=t+1}))}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"RowsSpan",(function(){return r})),n.d(t,"ColumnsSpan",(function(){return o}));
|
101
101
|
/**
|
102
102
|
* @license
|
103
103
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -117,7 +117,7 @@ class i{constructor(e){this.threshold=e}call(e){return e>this.threshold?r.DenseS
|
|
117
117
|
* @license
|
118
118
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
119
119
|
*/
|
120
|
-
class v{constructor(e,t,n,r,o,i,a,s,u,l,c,h,f,p){this._config=e,this._stats=t,this._dependencyGraph=n,this._columnSearch=r,this._parser=o,this._unparser=i,this._cellContentParser=a,this._evaluator=s,this._lazilyTransformingAstService=u,this._crudOperations=l,this._exporter=c,this._namedExpressions=h,this._serialization=f,this._functionRegistry=p,this._emitter=new d.Emitter,this._evaluationSuspended=!1}static get defaultConfig(){return Object(u.getDefaultConfig)()}get graph(){return this.dependencyGraph.graph}get rangeMapping(){return this.dependencyGraph.rangeMapping}get arrayMapping(){return this.dependencyGraph.arrayMapping}get sheetMapping(){return this.dependencyGraph.sheetMapping}get addressMapping(){return this.dependencyGraph.addressMapping}get dependencyGraph(){return this._dependencyGraph}get evaluator(){return this._evaluator}get columnSearch(){return this._columnSearch}get lazilyTransformingAstService(){return this._lazilyTransformingAstService}get licenseKeyValidityState(){return this._config.licenseKeyValidityState}static buildFromArray(e,t={},n=[]){return this.buildFromEngineState(i.BuildEngineFactory.buildFromSheet(e,t,n))}static buildFromSheets(e,t={},n=[]){return this.buildFromEngineState(i.BuildEngineFactory.buildFromSheets(e,t,n))}static buildEmpty(e={},t=[]){return this.buildFromEngineState(i.BuildEngineFactory.buildEmpty(e,t))}static getLanguage(e){Object(o.validateArgToType)(e,"string","languageCode");const t=this.registeredLanguages.get(e);if(void 0===t)throw new h.LanguageNotRegisteredError;return t}static registerLanguage(e,t){if(Object(o.validateArgToType)(e,"string","languageCode"),this.registeredLanguages.has(e))throw new h.LanguageAlreadyRegisteredError;this.registeredLanguages.set(e,Object(f.buildTranslationPackage)(t))}static unregisterLanguage(e){if(Object(o.validateArgToType)(e,"string","languageCode"),!this.registeredLanguages.has(e))throw new h.LanguageNotRegisteredError;this.registeredLanguages.delete(e)}static getRegisteredLanguagesCodes(){return Array.from(this.registeredLanguages.keys())}static registerFunctionPlugin(e,t){p.FunctionRegistry.registerFunctionPlugin(e,t)}static unregisterFunctionPlugin(e){p.FunctionRegistry.unregisterFunctionPlugin(e)}static registerFunction(e,t,n){Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.registerFunction(e,t,n)}static unregisterFunction(e){Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.unregisterFunction(e)}static unregisterAllFunctions(){p.FunctionRegistry.unregisterAll()}static getRegisteredFunctionNames(e){Object(o.validateArgToType)(e,"string","code");const t=p.FunctionRegistry.getRegisteredFunctionIds();return this.getLanguage(e).getFunctionTranslations(t)}static getFunctionPlugin(e){return Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.getFunctionPlugin(e)}static getAllFunctionPlugins(){return p.FunctionRegistry.getPlugins()}static buildFromEngineState(e){return new v(e.config,e.stats,e.dependencyGraph,e.columnSearch,e.parser,e.unparser,e.cellContentParser,e.evaluator,e.lazilyTransformingAstService,e.crudOperations,e.exporter,e.namedExpressions,e.serialization,e.functionRegistry)}getCellValue(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellValue(e)}getCellFormula(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this._serialization.getCellFormula(e)}getCellSerialized(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellSerialized(e)}getSheetValues(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetValues(e)}getSheetFormulas(e){return Object(o.validateArgToType)(e,"number","sheetId"),this._serialization.getSheetFormulas(e)}getSheetSerialized(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetSerialized(e)}getAllSheetsDimensions(){return this._serialization.genericAllSheetsGetter(e=>this.getSheetDimensions(e))}getSheetDimensions(e){return Object(o.validateArgToType)(e,"number","sheetId"),{width:this.dependencyGraph.getSheetWidth(e),height:this.dependencyGraph.getSheetHeight(e)}}getAllSheetsValues(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsValues()}getAllSheetsFormulas(){return this._serialization.getAllSheetsFormulas()}getAllSheetsSerialized(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsSerialized()}updateConfig(e){const t=this._config.mergeConfig(e),n=this._config.mergeConfig({language:e.language}),r=this._serialization.withNewConfig(n,this._namedExpressions).getAllSheetsSerialized(),o=this._serialization.getAllNamedExpressionsSerialized(),a=i.BuildEngineFactory.rebuildWithConfig(t,r,o,this._stats);this._config=a.config,this._stats=a.stats,this._dependencyGraph=a.dependencyGraph,this._columnSearch=a.columnSearch,this._parser=a.parser,this._unparser=a.unparser,this._cellContentParser=a.cellContentParser,this._evaluator=a.evaluator,this._lazilyTransformingAstService=a.lazilyTransformingAstService,this._crudOperations=a.crudOperations,this._exporter=a.exporter,this._namedExpressions=a.namedExpressions,this._serialization=a.serialization,this._functionRegistry=a.functionRegistry}getConfig(){return this._config.getConfig()}rebuildAndRecalculate(){this.updateConfig({})}getStats(){return this._stats.snapshot()}undo(){return this._crudOperations.undo(),this.recomputeIfDependencyGraphNeedsIt()}redo(){return this._crudOperations.redo(),this.recomputeIfDependencyGraphNeedsIt()}isThereSomethingToUndo(){return this._crudOperations.isThereSomethingToUndo()}isThereSomethingToRedo(){return this._crudOperations.isThereSomethingToRedo()}isItPossibleToSetCellContents(e){let t;if(Object(a.isSimpleCellAddress)(e))t=new r.AbsoluteCellRange(e,e);else{if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange","address");t=new r.AbsoluteCellRange(e.start,e.end)}try{this._crudOperations.ensureRangeInSizeLimits(t);for(const e of t.addresses(this._dependencyGraph))this._crudOperations.ensureItIsPossibleToChangeContent(e)}catch(e){return!1}return!0}setCellContents(e,t){return this._crudOperations.setCellContents(e,t),this.recomputeIfDependencyGraphNeedsIt()}swapRowIndexes(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setRowOrder(e,t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToSwapRowIndexes(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.validateSwapRowIndexes(e,t),this._crudOperations.testRowOrderForArrays(e,t),!0}catch(e){return!1}}setRowOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");const n=this._crudOperations.mappingFromOrder(e,t,"row");return this.swapRowIndexes(e,n)}isItPossibleToSetRowOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{const n=this._crudOperations.mappingFromOrder(e,t,"row");return this._crudOperations.validateSwapRowIndexes(e,n),this._crudOperations.testRowOrderForArrays(e,n),!0}catch(e){return!1}}swapColumnIndexes(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setColumnOrder(e,t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToSwapColumnIndexes(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.validateSwapColumnIndexes(e,t),this._crudOperations.testColumnOrderForArrays(e,t),!0}catch(e){return!1}}setColumnOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");const n=this._crudOperations.mappingFromOrder(e,t,"column");return this.swapColumnIndexes(e,n)}isItPossibleToSetColumnOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{const n=this._crudOperations.mappingFromOrder(e,t,"column");return this._crudOperations.validateSwapColumnIndexes(e,n),this._crudOperations.testColumnOrderForArrays(e,n),!0}catch(e){return!1}}isItPossibleToAddRows(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeAddedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToAddRows(e,...n),!0}catch(e){return!1}}addRows(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.addRows(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToRemoveRows(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeRemovedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToRemoveRows(e,...n),!0}catch(e){return!1}}removeRows(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.removeRows(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToAddColumns(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeAddedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToAddColumns(e,...n),!0}catch(e){return!1}}addColumns(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.addColumns(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToRemoveColumns(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeRemovedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToRemoveColumns(e,...n),!0}catch(e){return!1}}removeColumns(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.removeColumns(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToMoveCells(e,t){if(!Object(a.isSimpleCellAddress)(t))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");try{const n=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.operations.ensureItIsPossibleToMoveCells(n.start,n.width(),n.height(),t),!0}catch(e){return!1}}moveCells(e,t){if(!Object(a.isSimpleCellAddress)(t))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");const n=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.moveCells(n.start,n.width(),n.height(),t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToMoveRows(e,t,n,r){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startRow"),Object(o.validateArgToType)(n,"number","numberOfRows"),Object(o.validateArgToType)(r,"number","targetRow");try{return this._crudOperations.ensureItIsPossibleToMoveRows(e,t,n,r),!0}catch(e){return!1}}moveRows(e,t,n,r){return Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startRow"),Object(o.validateArgToType)(n,"number","numberOfRows"),Object(o.validateArgToType)(r,"number","targetRow"),this._crudOperations.moveRows(e,t,n,r),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToMoveColumns(e,t,n,r){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startColumn"),Object(o.validateArgToType)(n,"number","numberOfColumns"),Object(o.validateArgToType)(r,"number","targetColumn");try{return this._crudOperations.ensureItIsPossibleToMoveColumns(e,t,n,r),!0}catch(e){return!1}}moveColumns(e,t,n,r){return Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startColumn"),Object(o.validateArgToType)(n,"number","numberOfColumns"),Object(o.validateArgToType)(r,"number","targetColumn"),this._crudOperations.moveColumns(e,t,n,r),this.recomputeIfDependencyGraphNeedsIt()}copy(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");const t=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.copy(t.start,t.width(),t.height()),this.getRangeValues(e)}cut(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");const t=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.cut(t.start,t.width(),t.height()),this.getRangeValues(e)}paste(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","targetLeftCorner");return this.ensureEvaluationIsNotSuspended(),this._crudOperations.paste(e),this.recomputeIfDependencyGraphNeedsIt()}isClipboardEmpty(){return this._crudOperations.isClipboardEmpty()}clearClipboard(){this._crudOperations.clearClipboard()}clearRedoStack(){this._crudOperations.undoRedo.clearRedoStack()}clearUndoStack(){this._crudOperations.undoRedo.clearUndoStack()}getRangeValues(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map(e=>e.map(e=>this.getCellValue(e)))}getRangeFormulas(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map(e=>e.map(e=>this.getCellFormula(e)))}getRangeSerialized(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map(e=>e.map(e=>this.getCellSerialized(e)))}getFillRangeData(e,t,n=!1){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");if(!Object(r.isSimpleCellRange)(t))throw new h.ExpectedValueOfTypeError("SimpleCellRange","target");const o=new r.AbsoluteCellRange(e.start,e.end),i=new r.AbsoluteCellRange(t.start,t.end);return this.ensureEvaluationIsNotSuspended(),i.arrayOfAddressesInRange().map(r=>r.map(r=>{const i=((r.row-(n?t:e).start.row)%o.height()+o.height())%o.height()+e.start.row,a=((r.col-(n?t:e).start.col)%o.width()+o.width())%o.width()+e.start.col;return this._serialization.getCellSerialized({row:i,col:a,sheet:o.sheet},r)}))}isItPossibleToAddSheet(e){Object(o.validateArgToType)(e,"string","sheetName");try{return this._crudOperations.ensureItIsPossibleToAddSheet(e),!0}catch(e){return!1}}addSheet(e){void 0!==e&&Object(o.validateArgToType)(e,"string","sheetName");const t=this._crudOperations.addSheet(e);return this._emitter.emit(d.Events.SheetAdded,t),t}isItPossibleToRemoveSheet(e){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),!0}catch(e){return!1}}removeSheet(e){Object(o.validateArgToType)(e,"number","sheetId");const t=this.sheetMapping.getDisplayName(e);this._crudOperations.removeSheet(e);const n=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.SheetRemoved,t,n),n}isItPossibleToClearSheet(e){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),!0}catch(e){return!1}}clearSheet(e){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.clearSheet(e),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToReplaceSheetContent(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),this._crudOperations.ensureItIsPossibleToChangeSheetContents(e,t),!0}catch(e){return!1}}setSheetContent(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setSheetContent(e,t),this.recomputeIfDependencyGraphNeedsIt()}simpleCellAddressFromString(e,t){return Object(o.validateArgToType)(e,"string","cellAddress"),Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellAddressFromString)(this.sheetMapping.get,e,t)}simpleCellRangeFromString(e,t){return Object(o.validateArgToType)(e,"string","cellRange"),Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellRangeFromString)(this.sheetMapping.get,e,t)}simpleCellAddressToString(e,t){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellAddressToString)(this.sheetMapping.fetchDisplayName,e,t)}simpleCellRangeToString(e,t){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","cellRange");return Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellRangeToString)(this.sheetMapping.fetchDisplayName,e,t)}getCellDependents(e){let t;if(Object(a.isSimpleCellAddress)(e))t=this._dependencyGraph.addressMapping.getCell(e);else{if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",e);t=this._dependencyGraph.rangeMapping.getRange(e.start,e.end)}return void 0===t?[]:this._dependencyGraph.getAdjacentNodesAddresses(t)}getCellPrecedents(e){let t;if(Object(a.isSimpleCellAddress)(e))t=this._dependencyGraph.addressMapping.getCell(e);else{if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",e);t=this._dependencyGraph.rangeMapping.getRange(e.start,e.end)}return void 0===t?[]:this._dependencyGraph.dependencyQueryAddresses(t)}getSheetName(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.sheetMapping.getDisplayName(e)}getSheetNames(){return this.sheetMapping.sheetNames()}getSheetId(e){return Object(o.validateArgToType)(e,"string","sheetName"),this.sheetMapping.get(e)}doesSheetExist(e){return Object(o.validateArgToType)(e,"string","sheetName"),this.sheetMapping.hasSheetWithName(e)}getCellType(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");const t=this.dependencyGraph.getCell(e);return Object(a.getCellType)(t,e)}doesCellHaveSimpleValue(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(e)===a.CellType.VALUE}doesCellHaveFormula(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");const t=this.getCellType(e);return t===a.CellType.FORMULA||t===a.CellType.ARRAYFORMULA}isCellEmpty(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(e)===a.CellType.EMPTY}isCellPartOfArray(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");const t=this.getCellType(e);return t===a.CellType.ARRAY||t===a.CellType.ARRAYFORMULA}getCellValueType(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();const t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueType)(t)}getCellValueDetailedType(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();const t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueDetailedType)(t)}getCellValueFormat(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();const t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueFormat)(t)}countSheets(){return this.sheetMapping.numberOfSheets()}isItPossibleToRenameSheet(e,t){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"string","newName");try{return this._crudOperations.ensureItIsPossibleToRenameSheet(e,t),!0}catch(e){return!1}}renameSheet(e,t){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"string","newName");const n=this._crudOperations.renameSheet(e,t);void 0!==n&&this._emitter.emit(d.Events.SheetRenamed,n,t)}batch(e){this.suspendEvaluation(),this._crudOperations.beginUndoRedoBatchMode();try{e()}catch(e){throw this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation(),e}return this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation()}suspendEvaluation(){this._evaluationSuspended=!0,this._emitter.emit(d.Events.EvaluationSuspended)}resumeEvaluation(){this._evaluationSuspended=!1;const e=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.EvaluationResumed,e),e}isEvaluationSuspended(){return this._evaluationSuspended}isItPossibleToAddNamedExpression(e,t,n){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope");try{return this._crudOperations.ensureItIsPossibleToAddNamedExpression(e,t,n),!0}catch(e){return!1}}addNamedExpression(e,t,n,r){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope"),this._crudOperations.addNamedExpression(e,t,n,r);const i=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.NamedExpressionAdded,e,i),i}getNamedExpressionValue(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope"),this.ensureEvaluationIsNotSuspended(),this._crudOperations.ensureScopeIdIsValid(t);const n=this._namedExpressions.namedExpressionForScope(e,t);return n?this._serialization.getCellValue(n.address):void 0}getNamedExpressionFormula(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope"),this._crudOperations.ensureScopeIdIsValid(t);const n=this._namedExpressions.namedExpressionForScope(e,t);return void 0===n?void 0:this._serialization.getCellFormula(n.address)}getNamedExpression(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");const n=this._namedExpressions.namedExpressionForScope(e,t);if(void 0!==n)return{name:e,scope:t,expression:this._serialization.getCellFormula(n.address),options:n.options}}isItPossibleToChangeNamedExpression(e,t,n){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope");try{return this._crudOperations.ensureItIsPossibleToChangeNamedExpression(e,t,n),!0}catch(e){return!1}}changeNamedExpression(e,t,n,r){return Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope"),this._crudOperations.changeNamedExpressionExpression(e,n,t,r),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToRemoveNamedExpression(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");try{return this._crudOperations.isItPossibleToRemoveNamedExpression(e,t),!0}catch(e){return!1}}removeNamedExpression(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");const n=this._crudOperations.removeNamedExpression(e,t);if(n){const e=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.NamedExpressionRemoved,n.displayName,e),e}return[]}listNamedExpressions(e){return void 0!==e&&Object(o.validateArgToType)(e,"number","scope"),this._crudOperations.ensureScopeIdIsValid(e),this._namedExpressions.getAllNamedExpressionsNamesInScope(e)}getAllNamedExpressionsSerialized(){return this._serialization.getAllNamedExpressionsSerialized()}normalizeFormula(e){Object(o.validateArgToType)(e,"string","formulaString");const{ast:t,address:n}=this.extractTemporaryFormula(e);if(void 0===t)throw new h.NotAFormulaError;return this._unparser.unparse(t,n)}calculateFormula(e,t){Object(o.validateArgToType)(e,"string","formulaString"),Object(o.validateArgToType)(t,"number","sheetId"),this._crudOperations.ensureScopeIdIsValid(t);const{ast:n,address:r,dependencies:i}=this.extractTemporaryFormula(e,t);if(void 0===n)throw new h.NotAFormulaError;const a=this.evaluator.runAndForget(n,r,i);return this._exporter.exportScalarOrRange(a)}validateFormula(e){Object(o.validateArgToType)(e,"string","formulaString");const{ast:t}=this.extractTemporaryFormula(e);return void 0!==t&&!(t.type===m.AstNodeType.ERROR&&!t.error)}getRegisteredFunctionNames(){return v.getLanguage(this._config.language).getFunctionTranslations(this._functionRegistry.getRegisteredFunctionIds())}getFunctionPlugin(e){return Object(o.validateArgToType)(e,"string","functionId"),this._functionRegistry.getFunctionPlugin(e)}getAllFunctionPlugins(){return this._functionRegistry.getPlugins()}numberToDateTime(e){return Object(o.validateArgToType)(e,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDateTime(e)}numberToDate(e){return Object(o.validateArgToType)(e,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDate(e)}numberToTime(e){return Object(o.validateArgToType)(e,"number","val"),Object(l.numberToSimpleTime)(e)}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}destroy(){Object(c.objectDestroy)(this)}ensureEvaluationIsNotSuspended(){if(this._evaluationSuspended)throw new h.EvaluationSuspendedError}extractTemporaryFormula(e,t=1){const n=this._cellContentParser.parse(e),r={sheet:t,col:0,row:0};if(!(n instanceof s.CellContent.Formula))return{address:r,dependencies:[]};const{ast:o,errors:i,dependencies:a}=this._parser.parse(n.formula,r);return i.length>0?{address:r,dependencies:[]}:{ast:o,address:r,dependencies:a}}recomputeIfDependencyGraphNeedsIt(){if(this._evaluationSuspended)return[];{const e=this._crudOperations.getAndClearContentChanges(),t=Array.from(this.dependencyGraph.verticesToRecompute());this.dependencyGraph.clearRecentlyChangedVertices(),t.length>0&&e.addAll(this.evaluator.partialRun(t));const n=e.exportChanges(this._exporter);return e.isEmpty()||this._emitter.emit(d.Events.ValuesUpdated,n),n}}}v.version="2.4.0",v.buildDate="24/04/2023 09:54:50",v.releaseDate="24/04/2023",v.languages={},v.registeredLanguages=new Map},function(e,t,n){"use strict";n.r(t),n.d(t,"CellContent",(function(){return r})),n.d(t,"isFormula",(function(){return c})),n.d(t,"isBoolean",(function(){return d})),n.d(t,"isError",(function(){return h})),n.d(t,"CellContentParser",(function(){return f}));var r,o=n(17),i=n(139),a=n(34),s=n(29),u=n(101),l=n(42);function c(e){return e.startsWith("=")}function d(e){const t=e.toLowerCase();return"true"===t||"false"===t}function h(e,t){const n=e.toUpperCase();return/#[A-Za-z0-9\/]+[?!]?/.test(n)&&Object.prototype.hasOwnProperty.call(t,n)}!function(e){e.Number=class{constructor(e){this.value=e,this.value=Object(l.cloneNumber)(this.value,Object(u.fixNegativeZero)(Object(l.getRawValue)(this.value)))}};e.String=class{constructor(e){this.value=e}};e.Boolean=class{constructor(e){this.value=e}};class t{static getSingletonInstance(){return t.instance||(t.instance=new t),t.instance}}e.Empty=t;e.Formula=class{constructor(e){this.formula=e}};e.Error=class{constructor(e,t){this.value=new o.CellError(e,t)}}}(r||(r={}));class f{constructor(e,t,n){this.config=e,this.dateHelper=t,this.numberLiteralsHelper=n}parse(e){if(null==e)return r.Empty.getSingletonInstance();if("number"==typeof e)return Object(u.isNumberOverflow)(e)?new r.Error(o.ErrorType.NUM,a.ErrorMessage.ValueLarge):new r.Number(e);if("boolean"==typeof e)return new r.Boolean(e);if(e instanceof Date){const t=this.dateHelper.dateToNumber({day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear()})+Object(i.timeToNumber)({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()+e.getMilliseconds()/1e3});return t<0?new r.Error(o.ErrorType.NUM,a.ErrorMessage.DateBounds):t%1==0?new r.Number(new l.DateNumber(t,"Date()")):t<1?new r.Number(new l.TimeNumber(t,"Date()")):new r.Number(new l.DateTimeNumber(t,"Date()"))}if("string"==typeof e){if(d(e))return new r.Boolean("true"===e.toLowerCase());if(c(e))return new r.Formula(e);if(h(e,this.config.errorMapping))return new r.Error(this.config.errorMapping[e.toUpperCase()]);{let t,n=e.trim(),o=0;if(n.endsWith("%"))o=1,n=n.slice(0,n.length-1);else{const e=this.currencyMatcher(n);void 0!==e&&(o=2,[t,n]=e)}const i=this.numberLiteralsHelper.numericStringToMaybeNumber(n);if(void 0!==i){let e;return e=1===o?new l.PercentNumber(i/100):2===o?new l.CurrencyNumber(i,t):i,new r.Number(e)}const a=this.dateHelper.dateStringToDateNumber(n);return void 0!==a?new r.Number(a):new r.String(e.startsWith("'")?e.slice(1):e)}}throw new s.UnableToParseError(e)}currencyMatcher(e){for(const t of this.config.currencySymbol){if(e.startsWith(t))return[t,e.slice(t.length)];if(e.endsWith(t))return[t,e.slice(0,e.length-t.length)]}}}},function(e,t,n){var r=n(30),o=n(28),i=n(102),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},function(e,t,n){var r=n(28);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){var r=n(48),o=n(123),i=n(84).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r,o,i=n(45),a=n(122),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){var r=n(106),o=n(49),i=n(115),a=n(381),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},function(e,t,n){var r=n(387),o=n(267);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(116),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){e.exports={}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(55),o=n(54),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},function(e,t,n){var r=n(22),o=n(30),i=n(173),a=n(63),s=n(54),u=n(84).f,l=n(143),c=n(275),d=n(698),h=n(211),f=n(273),p=!1,g=h("meta"),m=0,v=function(e){u(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=l.f,t=o([].splice),n={};n[g]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===g){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return f&&p&&d(e)&&!s(e,g)&&v(e),e}};i[g]=!0},function(e,t,n){var r=n(179),o=n(125),i=n(167),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(102),o=n(30);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,t,n){var r=n(390),o=n(84);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},function(e,t,n){var r=n(28),o=n(48),i=n(169),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(30);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(22),o=n(30),i=n(145),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.SHORTCUTS_GROUP_NAVIGATION=t.SHORTCUTS_GROUP_EDITOR=void 0,n(31),n(40),n(4),n(1),n(5),n(7),n(6);var o=r(n(24)),i=r(n(2)),a=r(n(3)),s=n(109),u=n(73),l=n(15),c=n(130),d=r(n(51)),h=n(25);t.SHORTCUTS_GROUP_NAVIGATION="editorManager.navigation";t.SHORTCUTS_GROUP_EDITOR="editorManager.handlingEditor";var f=function(){function e(t,n,r){var o=this;(0,i.default)(this,e),this.instance=t,this.tableMeta=n,this.selection=r,this.eventManager=new d.default(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.instance.getShortcutManager().addContext("editor"),this.registerShortcuts(),this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",(function(e){!o.destroyed&&o.instance.isListening()&&o.openEditor("",e)})),this.instance.view._wt.update("onCellDblClick",(function(e,t,n){return o.onCellDblClick(e,t,n)}))}return(0,a.default)(e,[{key:"registerShortcuts",value:function(){var e=this,t=this.instance.getShortcutManager(),n=t.getContext("grid"),r={group:"editorManager.handlingEditor"};t.getContext("editor").addShortcuts([{keys:[["Enter"],["Enter","Shift"],["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],callback:function(n,r){e.closeEditorAndSaveChanges(t.isCtrlPressed()),e.moveSelectionAfterEnter(r.includes("shift"))}},{keys:[["Escape"],["Escape","Control/Meta"]],callback:function(){e.closeEditorAndRestoreOriginalValue(t.isCtrlPressed()),e.activeEditor.focus()}}],r),n.addShortcuts([{keys:[["F2"]],callback:function(t){e.openEditor(null,t,!0)}},{keys:[["Backspace"],["Delete"]],callback:function(){e.instance.emptySelectedCells(),e.prepareEditor()}},{keys:[["Enter"],["Enter","Shift"]],callback:function(t,n){e.instance.getSettings().enterBeginsEditing?e.cellProperties.readOnly?e.moveSelectionAfterEnter():e.openEditor(null,t,!0):e.moveSelectionAfterEnter(n.includes("shift")),(0,u.stopImmediatePropagation)(t)}}],r)}},{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var e=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,(function(t){t&&e.prepareEditor()}));else{var t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,i=this.instance.runHooks("modifyGetCellCoords",n,r),a=n,s=r;if(Array.isArray(i)){var u=(0,o.default)(i,2);a=u[0],s=u[1]}this.cellProperties=this.instance.getCellMeta(a,s);var d=this.instance.rootDocument.activeElement;if(d&&(0,l.isOutsideInput)(d)&&d.blur(),this.isCellEditable()){var h=this.instance.getCell(n,r,!0);if(h){var f=this.instance.getCellEditor(this.cellProperties),p=this.instance.colToProp(s),g=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(a),s);this.activeEditor=(0,c.getEditorInstance)(f,this.instance),this.activeEditor.prepare(n,r,p,h,g,this.cellProperties)}}else this.clearActiveEditor()}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isCellEditable()){if(!this.activeEditor){var r=this.instance.getSelectedRangeLast().highlight,o=r.row,i=r.col,a=this.instance.rowIndexMapper.getRenderableFromVisualIndex(o),s=this.instance.columnIndexMapper.getRenderableFromVisualIndex(i);this.instance.view.scrollViewport(this.instance._createCellCoords(a,s)),this.instance.view.render(),this.prepareEditor()}this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))}else this.clearActiveEditor()}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){this.closeEditor(!0,e)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"isCellEditable",value:function(){var e=this.instance.getCellEditor(this.cellProperties),t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,o=this.instance,i=o.rowIndexMapper,a=o.columnIndexMapper,s=i.isHidden(this.instance.toPhysicalRow(n))||a.isHidden(this.instance.toPhysicalColumn(r));return!(this.cellProperties.readOnly||!e||s)}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(event):this.tableMeta.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"onAfterDocumentKeyDown",value:function(e){var t=this;if(this.instance.isListening()){var n=e.keyCode;if(this.selection.isSelected()){var r=(e.ctrlKey||e.metaKey)&&!e.altKey;if((!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&!((0,s.isFunctionKey)(n)||(0,s.isCtrlMetaKey)(n)||r||this.isEditorOpened())){var o={runOnlyIf:function(){return(0,h.isDefined)(t.instance.getSelected())},group:"editorManager.navigation"};this.instance.getShortcutManager().getContext("editor").addShortcuts([{keys:[["ArrowUp"]],callback:function(){t.instance.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){t.instance.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){t.instance.selection.transformStart(0,-1*t.instance.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){t.instance.selection.transformStart(0,t.instance.getDirectionFactor())}}],o),this.openEditor("",e)}}}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&this.openEditor(null,e,!0)}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}]),e}(),p=new WeakMap;f.getInstance=function(e,t,n){var r=p.get(e);return r||(r=new f(e,t,n),p.set(e,r)),r};var g=f;t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return a(e)},t.hasRenderer=void 0,t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)};var o=(0,r(n(103)).default)("renderers"),i=o.register,a=o.getItem,s=o.hasItem,u=o.getNames,l=o.getValues;t.getRegisteredRenderers=l,t.getRegisteredRendererNames=u,t.hasRenderer=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.getValidator=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered validator found under "'.concat(e,'" name'));return a(e)},t.hasValidator=void 0,t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var o=(0,r(n(103)).default)("validators"),i=o.register,a=o.getItem,s=o.hasItem,u=o.getNames,l=o.getValues;t.getRegisteredValidators=l,t.getRegisteredValidatorNames=u,t.hasValidator=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=r(n(762)),s=function(){function e(t,n){(0,o.default)(this,e),this.nodesPool="string"==typeof t?new a.default(t):null,this.nodeType=t,this.rootNode=n,this.table=null,this.renderedNodes=0}return(0,i.default)(e,[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(22),o=n(55),i=n(45),a=n(30),s=n(54),u=n(49),l=n(115),c=n(56),d=n(180),h=n(392),f=i.Symbol,p=f&&f.prototype;if(o&&u(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var v="Symbol(test)"==String(f("test")),y=a(p.valueOf),E=a(p.toString),T=/^Symbol\((.*)\)[^)]+$/,C=a("".replace),R=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=E(e),n=v?R(t,7,-1):C(t,T,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},function(e,t,n){"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))},t.columnFactory=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,r.inherit)(n,e);for(var o=0;o<t.length;o++)n.prototype[t[o]]=void 0;return n},t.extendByMetaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a="string"==typeof t.type?(0,o.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,r.objectEach)(t,(function(t,n){e._automaticallyAssignedMetaProps.delete(n)}));if(!(0,r.isObject)(a))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);var s={};(0,r.objectEach)(a,(function(t,r){var o;i(r,n)&&(s[r]=t,null===(o=e._automaticallyAssignedMetaProps)||void 0===o||o.add(r))})),(0,r.extend)(e,s)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},n(4),n(1),n(52),n(5),n(6),n(70),n(71);var r=n(12),o=n(190);function i(e,t){var n;return"CELL_TYPE"!==e&&((null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!(0,r.hasOwnProperty)(t,e))}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCellType=function(e){if(!d(e))throw Error('You declared cell type "'.concat(e,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method'));return c(e)},t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=void 0,t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);var n=t,r=n.editor,o=n.renderer,u=n.validator;r&&(0,i.registerEditor)(e,r);o&&(0,a.registerRenderer)(e,o);u&&(0,s.registerValidator)(e,u);l(e,t)};var o=r(n(103)),i=n(130),a=n(185),s=n(186),u=(0,o.default)("cellTypes"),l=u.register,c=u.getItem,d=u.hasItem,h=u.getNames,f=u.getValues;t.getRegisteredCellTypes=f,t.getRegisteredCellTypeNames=h,t.hasCellType=d},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var r=n(595);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteRenderer=t.RENDERER_TYPE=void 0;var r=n(860);t.RENDERER_TYPE=r.RENDERER_TYPE,t.autocompleteRenderer=r.autocompleteRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.createArrayAssertion=l,t.intersectValues=function(e,t,n,r){var i,s=[],u=e===t;u||(i=l(t));return(0,o.arrayEach)(e,(function(e){var t=!1;(u||i(e))&&(t=!0);var o={checked:t,value:e,visualValue:a(e,n)};r&&r(o),s.push(o)})),s},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toEmptyString=function(e){return null==e?"":e},t.toVisualValue=a,t.unifyColumnValues=function(e){var t=e;t=u?Array.from(new Set(t)):(0,o.arrayUnique)(t);return t=t.sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))},n(4),n(1),n(52),n(5),n(6),n(47),n(23),n(89);var r=n(108),o=n(13),i=(0,r.getComparisonFunction)();function a(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var s=new Set([1]).has(1),u=s&&"function"==typeof Array.from;function l(e){var t=e;return s&&(t=new Set(t)),function(e){return s?t.has(e):!!~t.indexOf(e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!r[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=r[e].func;return function(e,n){return t(e,n)}},t.getOperationName=function(e){return r[e].name},t.operations=void 0,t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},n(81);var r={};t.operations=r},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(154);var i=r(n(2)),a=r(n(3)),s=n(12),u=r(n(86)),l=r(n(51)),c=n(15),d=n(13),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)}var p=["click","input","keydown","keypress","keyup","focus","blur","change"],g=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.eventManager=new l.default(this),this.options=(0,s.extend)(e.DEFAULTS,n),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=null}return(0,a.default)(e,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"element",get:function(){return"building"===this.buildState?this._element:"built"===this.buildState?(this.update(),this._element):(this.buildState="building",this.build(),this.buildState="built",this._element)}},{key:"isBuilt",value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(h.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){var e=this,t=function(t,n){e.eventManager.addEventListener(t,n,(function(t){return e.runLocalHooks(n,t,e)}))};if(this.buildState||(this.buildState="building"),this.options.className&&(0,c.addClass)(this._element,this.options.className),this.options.children.length)(0,d.arrayEach)(this.options.children,(function(t){return e._element.appendChild(t.element)}));else if(this.options.wrapIt){var n=this.hot.rootDocument.createElement(this.options.tagName);(0,s.objectEach)(this.options,(function(t,r){void 0!==n[r]&&"className"!==r&&"tagName"!==r&&"children"!==r&&(n[r]=e.translateIfPossible(t))})),this._element.appendChild(n),(0,d.arrayEach)(p,(function(e){return t(n,e)}))}else(0,d.arrayEach)(p,(function(n){return t(e._element,n)}))}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}],[{key:"DEFAULTS",get:function(){return(0,s.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),e}();(0,s.mixin)(g,u.default);var m=g;t.default=m},function(e,t,n){"use strict";n.r(t),n.d(t,"absolutizeDependencies",(function(){return a})),n.d(t,"filterDependenciesOutOfScope",(function(){return s}));var r=n(78),o=n(17),i=n(61);
|
120
|
+
class v{constructor(e,t,n,r,o,i,a,s,u,l,c,h,f,p){this._config=e,this._stats=t,this._dependencyGraph=n,this._columnSearch=r,this._parser=o,this._unparser=i,this._cellContentParser=a,this._evaluator=s,this._lazilyTransformingAstService=u,this._crudOperations=l,this._exporter=c,this._namedExpressions=h,this._serialization=f,this._functionRegistry=p,this._emitter=new d.Emitter,this._evaluationSuspended=!1}static get defaultConfig(){return Object(u.getDefaultConfig)()}get graph(){return this.dependencyGraph.graph}get rangeMapping(){return this.dependencyGraph.rangeMapping}get arrayMapping(){return this.dependencyGraph.arrayMapping}get sheetMapping(){return this.dependencyGraph.sheetMapping}get addressMapping(){return this.dependencyGraph.addressMapping}get dependencyGraph(){return this._dependencyGraph}get evaluator(){return this._evaluator}get columnSearch(){return this._columnSearch}get lazilyTransformingAstService(){return this._lazilyTransformingAstService}get licenseKeyValidityState(){return this._config.licenseKeyValidityState}static buildFromArray(e,t={},n=[]){return this.buildFromEngineState(i.BuildEngineFactory.buildFromSheet(e,t,n))}static buildFromSheets(e,t={},n=[]){return this.buildFromEngineState(i.BuildEngineFactory.buildFromSheets(e,t,n))}static buildEmpty(e={},t=[]){return this.buildFromEngineState(i.BuildEngineFactory.buildEmpty(e,t))}static getLanguage(e){Object(o.validateArgToType)(e,"string","languageCode");const t=this.registeredLanguages.get(e);if(void 0===t)throw new h.LanguageNotRegisteredError;return t}static registerLanguage(e,t){if(Object(o.validateArgToType)(e,"string","languageCode"),this.registeredLanguages.has(e))throw new h.LanguageAlreadyRegisteredError;this.registeredLanguages.set(e,Object(f.buildTranslationPackage)(t))}static unregisterLanguage(e){if(Object(o.validateArgToType)(e,"string","languageCode"),!this.registeredLanguages.has(e))throw new h.LanguageNotRegisteredError;this.registeredLanguages.delete(e)}static getRegisteredLanguagesCodes(){return Array.from(this.registeredLanguages.keys())}static registerFunctionPlugin(e,t){p.FunctionRegistry.registerFunctionPlugin(e,t)}static unregisterFunctionPlugin(e){p.FunctionRegistry.unregisterFunctionPlugin(e)}static registerFunction(e,t,n){Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.registerFunction(e,t,n)}static unregisterFunction(e){Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.unregisterFunction(e)}static unregisterAllFunctions(){p.FunctionRegistry.unregisterAll()}static getRegisteredFunctionNames(e){Object(o.validateArgToType)(e,"string","code");const t=p.FunctionRegistry.getRegisteredFunctionIds();return this.getLanguage(e).getFunctionTranslations(t)}static getFunctionPlugin(e){return Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.getFunctionPlugin(e)}static getAllFunctionPlugins(){return p.FunctionRegistry.getPlugins()}static buildFromEngineState(e){return new v(e.config,e.stats,e.dependencyGraph,e.columnSearch,e.parser,e.unparser,e.cellContentParser,e.evaluator,e.lazilyTransformingAstService,e.crudOperations,e.exporter,e.namedExpressions,e.serialization,e.functionRegistry)}getCellValue(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellValue(e)}getCellFormula(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this._serialization.getCellFormula(e)}getCellSerialized(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellSerialized(e)}getSheetValues(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetValues(e)}getSheetFormulas(e){return Object(o.validateArgToType)(e,"number","sheetId"),this._serialization.getSheetFormulas(e)}getSheetSerialized(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetSerialized(e)}getAllSheetsDimensions(){return this._serialization.genericAllSheetsGetter(e=>this.getSheetDimensions(e))}getSheetDimensions(e){return Object(o.validateArgToType)(e,"number","sheetId"),{width:this.dependencyGraph.getSheetWidth(e),height:this.dependencyGraph.getSheetHeight(e)}}getAllSheetsValues(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsValues()}getAllSheetsFormulas(){return this._serialization.getAllSheetsFormulas()}getAllSheetsSerialized(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsSerialized()}updateConfig(e){const t=this._config.mergeConfig(e),n=this._config.mergeConfig({language:e.language}),r=this._serialization.withNewConfig(n,this._namedExpressions).getAllSheetsSerialized(),o=this._serialization.getAllNamedExpressionsSerialized(),a=i.BuildEngineFactory.rebuildWithConfig(t,r,o,this._stats);this._config=a.config,this._stats=a.stats,this._dependencyGraph=a.dependencyGraph,this._columnSearch=a.columnSearch,this._parser=a.parser,this._unparser=a.unparser,this._cellContentParser=a.cellContentParser,this._evaluator=a.evaluator,this._lazilyTransformingAstService=a.lazilyTransformingAstService,this._crudOperations=a.crudOperations,this._exporter=a.exporter,this._namedExpressions=a.namedExpressions,this._serialization=a.serialization,this._functionRegistry=a.functionRegistry}getConfig(){return this._config.getConfig()}rebuildAndRecalculate(){this.updateConfig({})}getStats(){return this._stats.snapshot()}undo(){return this._crudOperations.undo(),this.recomputeIfDependencyGraphNeedsIt()}redo(){return this._crudOperations.redo(),this.recomputeIfDependencyGraphNeedsIt()}isThereSomethingToUndo(){return this._crudOperations.isThereSomethingToUndo()}isThereSomethingToRedo(){return this._crudOperations.isThereSomethingToRedo()}isItPossibleToSetCellContents(e){let t;if(Object(a.isSimpleCellAddress)(e))t=new r.AbsoluteCellRange(e,e);else{if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange","address");t=new r.AbsoluteCellRange(e.start,e.end)}try{this._crudOperations.ensureRangeInSizeLimits(t);for(const e of t.addresses(this._dependencyGraph))this._crudOperations.ensureItIsPossibleToChangeContent(e)}catch(e){return!1}return!0}setCellContents(e,t){return this._crudOperations.setCellContents(e,t),this.recomputeIfDependencyGraphNeedsIt()}swapRowIndexes(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setRowOrder(e,t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToSwapRowIndexes(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.validateSwapRowIndexes(e,t),this._crudOperations.testRowOrderForArrays(e,t),!0}catch(e){return!1}}setRowOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");const n=this._crudOperations.mappingFromOrder(e,t,"row");return this.swapRowIndexes(e,n)}isItPossibleToSetRowOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{const n=this._crudOperations.mappingFromOrder(e,t,"row");return this._crudOperations.validateSwapRowIndexes(e,n),this._crudOperations.testRowOrderForArrays(e,n),!0}catch(e){return!1}}swapColumnIndexes(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setColumnOrder(e,t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToSwapColumnIndexes(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.validateSwapColumnIndexes(e,t),this._crudOperations.testColumnOrderForArrays(e,t),!0}catch(e){return!1}}setColumnOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");const n=this._crudOperations.mappingFromOrder(e,t,"column");return this.swapColumnIndexes(e,n)}isItPossibleToSetColumnOrder(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{const n=this._crudOperations.mappingFromOrder(e,t,"column");return this._crudOperations.validateSwapColumnIndexes(e,n),this._crudOperations.testColumnOrderForArrays(e,n),!0}catch(e){return!1}}isItPossibleToAddRows(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeAddedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToAddRows(e,...n),!0}catch(e){return!1}}addRows(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.addRows(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToRemoveRows(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeRemovedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToRemoveRows(e,...n),!0}catch(e){return!1}}removeRows(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.removeRows(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToAddColumns(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeAddedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToAddColumns(e,...n),!0}catch(e){return!1}}addColumns(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.addColumns(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToRemoveColumns(e,...t){Object(o.validateArgToType)(e,"number","sheetId");const n=Object(g.normalizeRemovedIndexes)(t);try{return this._crudOperations.ensureItIsPossibleToRemoveColumns(e,...n),!0}catch(e){return!1}}removeColumns(e,...t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.removeColumns(e,...t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToMoveCells(e,t){if(!Object(a.isSimpleCellAddress)(t))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");try{const n=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.operations.ensureItIsPossibleToMoveCells(n.start,n.width(),n.height(),t),!0}catch(e){return!1}}moveCells(e,t){if(!Object(a.isSimpleCellAddress)(t))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");const n=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.moveCells(n.start,n.width(),n.height(),t),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToMoveRows(e,t,n,r){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startRow"),Object(o.validateArgToType)(n,"number","numberOfRows"),Object(o.validateArgToType)(r,"number","targetRow");try{return this._crudOperations.ensureItIsPossibleToMoveRows(e,t,n,r),!0}catch(e){return!1}}moveRows(e,t,n,r){return Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startRow"),Object(o.validateArgToType)(n,"number","numberOfRows"),Object(o.validateArgToType)(r,"number","targetRow"),this._crudOperations.moveRows(e,t,n,r),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToMoveColumns(e,t,n,r){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startColumn"),Object(o.validateArgToType)(n,"number","numberOfColumns"),Object(o.validateArgToType)(r,"number","targetColumn");try{return this._crudOperations.ensureItIsPossibleToMoveColumns(e,t,n,r),!0}catch(e){return!1}}moveColumns(e,t,n,r){return Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startColumn"),Object(o.validateArgToType)(n,"number","numberOfColumns"),Object(o.validateArgToType)(r,"number","targetColumn"),this._crudOperations.moveColumns(e,t,n,r),this.recomputeIfDependencyGraphNeedsIt()}copy(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");const t=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.copy(t.start,t.width(),t.height()),this.getRangeValues(e)}cut(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");const t=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.cut(t.start,t.width(),t.height()),this.getRangeValues(e)}paste(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","targetLeftCorner");return this.ensureEvaluationIsNotSuspended(),this._crudOperations.paste(e),this.recomputeIfDependencyGraphNeedsIt()}isClipboardEmpty(){return this._crudOperations.isClipboardEmpty()}clearClipboard(){this._crudOperations.clearClipboard()}clearRedoStack(){this._crudOperations.undoRedo.clearRedoStack()}clearUndoStack(){this._crudOperations.undoRedo.clearUndoStack()}getRangeValues(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map(e=>e.map(e=>this.getCellValue(e)))}getRangeFormulas(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map(e=>e.map(e=>this.getCellFormula(e)))}getRangeSerialized(e){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map(e=>e.map(e=>this.getCellSerialized(e)))}getFillRangeData(e,t,n=!1){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","source");if(!Object(r.isSimpleCellRange)(t))throw new h.ExpectedValueOfTypeError("SimpleCellRange","target");const o=new r.AbsoluteCellRange(e.start,e.end),i=new r.AbsoluteCellRange(t.start,t.end);return this.ensureEvaluationIsNotSuspended(),i.arrayOfAddressesInRange().map(r=>r.map(r=>{const i=((r.row-(n?t:e).start.row)%o.height()+o.height())%o.height()+e.start.row,a=((r.col-(n?t:e).start.col)%o.width()+o.width())%o.width()+e.start.col;return this._serialization.getCellSerialized({row:i,col:a,sheet:o.sheet},r)}))}isItPossibleToAddSheet(e){Object(o.validateArgToType)(e,"string","sheetName");try{return this._crudOperations.ensureItIsPossibleToAddSheet(e),!0}catch(e){return!1}}addSheet(e){void 0!==e&&Object(o.validateArgToType)(e,"string","sheetName");const t=this._crudOperations.addSheet(e);return this._emitter.emit(d.Events.SheetAdded,t),t}isItPossibleToRemoveSheet(e){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),!0}catch(e){return!1}}removeSheet(e){Object(o.validateArgToType)(e,"number","sheetId");const t=this.sheetMapping.getDisplayName(e);this._crudOperations.removeSheet(e);const n=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.SheetRemoved,t,n),n}isItPossibleToClearSheet(e){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),!0}catch(e){return!1}}clearSheet(e){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.clearSheet(e),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToReplaceSheetContent(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),this._crudOperations.ensureItIsPossibleToChangeSheetContents(e,t),!0}catch(e){return!1}}setSheetContent(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setSheetContent(e,t),this.recomputeIfDependencyGraphNeedsIt()}simpleCellAddressFromString(e,t){return Object(o.validateArgToType)(e,"string","cellAddress"),Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellAddressFromString)(this.sheetMapping.get,e,t)}simpleCellRangeFromString(e,t){return Object(o.validateArgToType)(e,"string","cellRange"),Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellRangeFromString)(this.sheetMapping.get,e,t)}simpleCellAddressToString(e,t){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellAddressToString)(this.sheetMapping.fetchDisplayName,e,t)}simpleCellRangeToString(e,t){if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellRange","cellRange");return Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellRangeToString)(this.sheetMapping.fetchDisplayName,e,t)}getCellDependents(e){let t;if(Object(a.isSimpleCellAddress)(e))t=this._dependencyGraph.addressMapping.getCell(e);else{if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",e);t=this._dependencyGraph.rangeMapping.getRange(e.start,e.end)}return void 0===t?[]:this._dependencyGraph.getAdjacentNodesAddresses(t)}getCellPrecedents(e){let t;if(Object(a.isSimpleCellAddress)(e))t=this._dependencyGraph.addressMapping.getCell(e);else{if(!Object(r.isSimpleCellRange)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",e);t=this._dependencyGraph.rangeMapping.getRange(e.start,e.end)}return void 0===t?[]:this._dependencyGraph.dependencyQueryAddresses(t)}getSheetName(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.sheetMapping.getDisplayName(e)}getSheetNames(){return this.sheetMapping.sheetNames()}getSheetId(e){return Object(o.validateArgToType)(e,"string","sheetName"),this.sheetMapping.get(e)}doesSheetExist(e){return Object(o.validateArgToType)(e,"string","sheetName"),this.sheetMapping.hasSheetWithName(e)}getCellType(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");const t=this.dependencyGraph.getCell(e);return Object(a.getCellType)(t,e)}doesCellHaveSimpleValue(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(e)===a.CellType.VALUE}doesCellHaveFormula(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");const t=this.getCellType(e);return t===a.CellType.FORMULA||t===a.CellType.ARRAYFORMULA}isCellEmpty(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(e)===a.CellType.EMPTY}isCellPartOfArray(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");const t=this.getCellType(e);return t===a.CellType.ARRAY||t===a.CellType.ARRAYFORMULA}getCellValueType(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();const t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueType)(t)}getCellValueDetailedType(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();const t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueDetailedType)(t)}getCellValueFormat(e){if(!Object(a.isSimpleCellAddress)(e))throw new h.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();const t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueFormat)(t)}countSheets(){return this.sheetMapping.numberOfSheets()}isItPossibleToRenameSheet(e,t){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"string","newName");try{return this._crudOperations.ensureItIsPossibleToRenameSheet(e,t),!0}catch(e){return!1}}renameSheet(e,t){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"string","newName");const n=this._crudOperations.renameSheet(e,t);void 0!==n&&this._emitter.emit(d.Events.SheetRenamed,n,t)}batch(e){this.suspendEvaluation(),this._crudOperations.beginUndoRedoBatchMode();try{e()}catch(e){throw this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation(),e}return this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation()}suspendEvaluation(){this._evaluationSuspended=!0,this._emitter.emit(d.Events.EvaluationSuspended)}resumeEvaluation(){this._evaluationSuspended=!1;const e=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.EvaluationResumed,e),e}isEvaluationSuspended(){return this._evaluationSuspended}isItPossibleToAddNamedExpression(e,t,n){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope");try{return this._crudOperations.ensureItIsPossibleToAddNamedExpression(e,t,n),!0}catch(e){return!1}}addNamedExpression(e,t,n,r){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope"),this._crudOperations.addNamedExpression(e,t,n,r);const i=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.NamedExpressionAdded,e,i),i}getNamedExpressionValue(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope"),this.ensureEvaluationIsNotSuspended(),this._crudOperations.ensureScopeIdIsValid(t);const n=this._namedExpressions.namedExpressionForScope(e,t);return n?this._serialization.getCellValue(n.address):void 0}getNamedExpressionFormula(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope"),this._crudOperations.ensureScopeIdIsValid(t);const n=this._namedExpressions.namedExpressionForScope(e,t);return void 0===n?void 0:this._serialization.getCellFormula(n.address)}getNamedExpression(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");const n=this._namedExpressions.namedExpressionForScope(e,t);if(void 0!==n)return{name:e,scope:t,expression:this._serialization.getCellFormula(n.address),options:n.options}}isItPossibleToChangeNamedExpression(e,t,n){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope");try{return this._crudOperations.ensureItIsPossibleToChangeNamedExpression(e,t,n),!0}catch(e){return!1}}changeNamedExpression(e,t,n,r){return Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope"),this._crudOperations.changeNamedExpressionExpression(e,n,t,r),this.recomputeIfDependencyGraphNeedsIt()}isItPossibleToRemoveNamedExpression(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");try{return this._crudOperations.isItPossibleToRemoveNamedExpression(e,t),!0}catch(e){return!1}}removeNamedExpression(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");const n=this._crudOperations.removeNamedExpression(e,t);if(n){const e=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(d.Events.NamedExpressionRemoved,n.displayName,e),e}return[]}listNamedExpressions(e){return void 0!==e&&Object(o.validateArgToType)(e,"number","scope"),this._crudOperations.ensureScopeIdIsValid(e),this._namedExpressions.getAllNamedExpressionsNamesInScope(e)}getAllNamedExpressionsSerialized(){return this._serialization.getAllNamedExpressionsSerialized()}normalizeFormula(e){Object(o.validateArgToType)(e,"string","formulaString");const{ast:t,address:n}=this.extractTemporaryFormula(e);if(void 0===t)throw new h.NotAFormulaError;return this._unparser.unparse(t,n)}calculateFormula(e,t){Object(o.validateArgToType)(e,"string","formulaString"),Object(o.validateArgToType)(t,"number","sheetId"),this._crudOperations.ensureScopeIdIsValid(t);const{ast:n,address:r,dependencies:i}=this.extractTemporaryFormula(e,t);if(void 0===n)throw new h.NotAFormulaError;const a=this.evaluator.runAndForget(n,r,i);return this._exporter.exportScalarOrRange(a)}validateFormula(e){Object(o.validateArgToType)(e,"string","formulaString");const{ast:t}=this.extractTemporaryFormula(e);return void 0!==t&&!(t.type===m.AstNodeType.ERROR&&!t.error)}getRegisteredFunctionNames(){return v.getLanguage(this._config.language).getFunctionTranslations(this._functionRegistry.getRegisteredFunctionIds())}getFunctionPlugin(e){return Object(o.validateArgToType)(e,"string","functionId"),this._functionRegistry.getFunctionPlugin(e)}getAllFunctionPlugins(){return this._functionRegistry.getPlugins()}numberToDateTime(e){return Object(o.validateArgToType)(e,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDateTime(e)}numberToDate(e){return Object(o.validateArgToType)(e,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDate(e)}numberToTime(e){return Object(o.validateArgToType)(e,"number","val"),Object(l.numberToSimpleTime)(e)}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}destroy(){Object(c.objectDestroy)(this)}ensureEvaluationIsNotSuspended(){if(this._evaluationSuspended)throw new h.EvaluationSuspendedError}extractTemporaryFormula(e,t=1){const n=this._cellContentParser.parse(e),r={sheet:t,col:0,row:0};if(!(n instanceof s.CellContent.Formula))return{address:r,dependencies:[]};const{ast:o,errors:i,dependencies:a}=this._parser.parse(n.formula,r);return i.length>0?{address:r,dependencies:[]}:{ast:o,address:r,dependencies:a}}recomputeIfDependencyGraphNeedsIt(){if(this._evaluationSuspended)return[];{const e=this._crudOperations.getAndClearContentChanges(),t=Array.from(this.dependencyGraph.verticesToRecompute());this.dependencyGraph.clearRecentlyChangedVertices(),t.length>0&&e.addAll(this.evaluator.partialRun(t));const n=e.exportChanges(this._exporter);return e.isEmpty()||this._emitter.emit(d.Events.ValuesUpdated,n),n}}}v.version="2.4.0",v.buildDate="24/04/2023 09:54:50",v.releaseDate="24/04/2023",v.languages={},v.registeredLanguages=new Map},function(e,t,n){"use strict";n.r(t),n.d(t,"CellContent",(function(){return r})),n.d(t,"isFormula",(function(){return c})),n.d(t,"isBoolean",(function(){return d})),n.d(t,"isError",(function(){return h})),n.d(t,"CellContentParser",(function(){return f}));var r,o=n(17),i=n(139),a=n(34),s=n(29),u=n(101),l=n(42);function c(e){return e.startsWith("=")}function d(e){const t=e.toLowerCase();return"true"===t||"false"===t}function h(e,t){const n=e.toUpperCase();return/#[A-Za-z0-9\/]+[?!]?/.test(n)&&Object.prototype.hasOwnProperty.call(t,n)}!function(e){e.Number=class{constructor(e){this.value=e,this.value=Object(l.cloneNumber)(this.value,Object(u.fixNegativeZero)(Object(l.getRawValue)(this.value)))}};e.String=class{constructor(e){this.value=e}};e.Boolean=class{constructor(e){this.value=e}};class t{static getSingletonInstance(){return t.instance||(t.instance=new t),t.instance}}e.Empty=t;e.Formula=class{constructor(e){this.formula=e}};e.Error=class{constructor(e,t){this.value=new o.CellError(e,t)}}}(r||(r={}));class f{constructor(e,t,n){this.config=e,this.dateHelper=t,this.numberLiteralsHelper=n}parse(e){if(null==e)return r.Empty.getSingletonInstance();if("number"==typeof e)return Object(u.isNumberOverflow)(e)?new r.Error(o.ErrorType.NUM,a.ErrorMessage.ValueLarge):new r.Number(e);if("boolean"==typeof e)return new r.Boolean(e);if(e instanceof Date){const t=this.dateHelper.dateToNumber({day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear()})+Object(i.timeToNumber)({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()+e.getMilliseconds()/1e3});return t<0?new r.Error(o.ErrorType.NUM,a.ErrorMessage.DateBounds):t%1==0?new r.Number(new l.DateNumber(t,"Date()")):t<1?new r.Number(new l.TimeNumber(t,"Date()")):new r.Number(new l.DateTimeNumber(t,"Date()"))}if("string"==typeof e){if(d(e))return new r.Boolean("true"===e.toLowerCase());if(c(e))return new r.Formula(e);if(h(e,this.config.errorMapping))return new r.Error(this.config.errorMapping[e.toUpperCase()]);{let t,n=e.trim(),o=0;if(n.endsWith("%"))o=1,n=n.slice(0,n.length-1);else{const e=this.currencyMatcher(n);void 0!==e&&(o=2,[t,n]=e)}const i=this.numberLiteralsHelper.numericStringToMaybeNumber(n);if(void 0!==i){let e;return e=1===o?new l.PercentNumber(i/100):2===o?new l.CurrencyNumber(i,t):i,new r.Number(e)}const a=this.dateHelper.dateStringToDateNumber(n);return void 0!==a?new r.Number(a):new r.String(e.startsWith("'")?e.slice(1):e)}}throw new s.UnableToParseError(e)}currencyMatcher(e){for(const t of this.config.currencySymbol){if(e.startsWith(t))return[t,e.slice(t.length)];if(e.endsWith(t))return[t,e.slice(0,e.length-t.length)]}}}},function(e,t,n){var r=n(30),o=n(28),i=n(102),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},function(e,t,n){var r=n(28);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){var r=n(48),o=n(123),i=n(84).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r,o,i=n(44),a=n(122),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){var r=n(106),o=n(49),i=n(115),a=n(381),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},function(e,t,n){var r=n(387),o=n(267);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(116),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){e.exports={}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(55),o=n(54),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},function(e,t,n){var r=n(22),o=n(30),i=n(173),a=n(63),s=n(54),u=n(84).f,l=n(143),c=n(275),d=n(698),h=n(211),f=n(273),p=!1,g=h("meta"),m=0,v=function(e){u(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=l.f,t=o([].splice),n={};n[g]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===g){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return f&&p&&d(e)&&!s(e,g)&&v(e),e}};i[g]=!0},function(e,t,n){var r=n(179),o=n(125),i=n(167),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(102),o=n(30);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,t,n){var r=n(390),o=n(84);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},function(e,t,n){var r=n(28),o=n(48),i=n(169),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(30);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(22),o=n(30),i=n(145),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.SHORTCUTS_GROUP_NAVIGATION=t.SHORTCUTS_GROUP_EDITOR=void 0,n(31),n(40),n(4),n(1),n(5),n(7),n(6);var o=r(n(24)),i=r(n(2)),a=r(n(3)),s=n(109),u=n(73),l=n(15),c=n(130),d=r(n(51)),h=n(25);t.SHORTCUTS_GROUP_NAVIGATION="editorManager.navigation";t.SHORTCUTS_GROUP_EDITOR="editorManager.handlingEditor";var f=function(){function e(t,n,r){var o=this;(0,i.default)(this,e),this.instance=t,this.tableMeta=n,this.selection=r,this.eventManager=new d.default(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.instance.getShortcutManager().addContext("editor"),this.registerShortcuts(),this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",(function(e){!o.destroyed&&o.instance.isListening()&&o.openEditor("",e)})),this.instance.view._wt.update("onCellDblClick",(function(e,t,n){return o.onCellDblClick(e,t,n)}))}return(0,a.default)(e,[{key:"registerShortcuts",value:function(){var e=this,t=this.instance.getShortcutManager(),n=t.getContext("grid"),r={group:"editorManager.handlingEditor"};t.getContext("editor").addShortcuts([{keys:[["Enter"],["Enter","Shift"],["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],callback:function(n,r){e.closeEditorAndSaveChanges(t.isCtrlPressed()),e.moveSelectionAfterEnter(r.includes("shift"))}},{keys:[["Escape"],["Escape","Control/Meta"]],callback:function(){e.closeEditorAndRestoreOriginalValue(t.isCtrlPressed()),e.activeEditor.focus()}}],r),n.addShortcuts([{keys:[["F2"]],callback:function(t){e.openEditor(null,t,!0)}},{keys:[["Backspace"],["Delete"]],callback:function(){e.instance.emptySelectedCells(),e.prepareEditor()}},{keys:[["Enter"],["Enter","Shift"]],callback:function(t,n){e.instance.getSettings().enterBeginsEditing?e.cellProperties.readOnly?e.moveSelectionAfterEnter():e.openEditor(null,t,!0):e.moveSelectionAfterEnter(n.includes("shift")),(0,u.stopImmediatePropagation)(t)}}],r)}},{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var e=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,(function(t){t&&e.prepareEditor()}));else{var t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,i=this.instance.runHooks("modifyGetCellCoords",n,r),a=n,s=r;if(Array.isArray(i)){var u=(0,o.default)(i,2);a=u[0],s=u[1]}this.cellProperties=this.instance.getCellMeta(a,s);var d=this.instance.rootDocument.activeElement;if(d&&(0,l.isOutsideInput)(d)&&d.blur(),this.isCellEditable()){var h=this.instance.getCell(n,r,!0);if(h){var f=this.instance.getCellEditor(this.cellProperties),p=this.instance.colToProp(s),g=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(a),s);this.activeEditor=(0,c.getEditorInstance)(f,this.instance),this.activeEditor.prepare(n,r,p,h,g,this.cellProperties)}}else this.clearActiveEditor()}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isCellEditable()){if(!this.activeEditor){var r=this.instance.getSelectedRangeLast().highlight,o=r.row,i=r.col,a=this.instance.rowIndexMapper.getRenderableFromVisualIndex(o),s=this.instance.columnIndexMapper.getRenderableFromVisualIndex(i);this.instance.view.scrollViewport(this.instance._createCellCoords(a,s)),this.instance.view.render(),this.prepareEditor()}this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))}else this.clearActiveEditor()}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){this.closeEditor(!0,e)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"isCellEditable",value:function(){var e=this.instance.getCellEditor(this.cellProperties),t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,o=this.instance,i=o.rowIndexMapper,a=o.columnIndexMapper,s=i.isHidden(this.instance.toPhysicalRow(n))||a.isHidden(this.instance.toPhysicalColumn(r));return!(this.cellProperties.readOnly||!e||s)}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(event):this.tableMeta.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"onAfterDocumentKeyDown",value:function(e){var t=this;if(this.instance.isListening()){var n=e.keyCode;if(this.selection.isSelected()){var r=(e.ctrlKey||e.metaKey)&&!e.altKey;if((!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&!((0,s.isFunctionKey)(n)||(0,s.isCtrlMetaKey)(n)||r||this.isEditorOpened())){var o={runOnlyIf:function(){return(0,h.isDefined)(t.instance.getSelected())},group:"editorManager.navigation"};this.instance.getShortcutManager().getContext("editor").addShortcuts([{keys:[["ArrowUp"]],callback:function(){t.instance.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){t.instance.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){t.instance.selection.transformStart(0,-1*t.instance.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){t.instance.selection.transformStart(0,t.instance.getDirectionFactor())}}],o),this.openEditor("",e)}}}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&this.openEditor(null,e,!0)}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}]),e}(),p=new WeakMap;f.getInstance=function(e,t,n){var r=p.get(e);return r||(r=new f(e,t,n),p.set(e,r)),r};var g=f;t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return a(e)},t.hasRenderer=void 0,t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)};var o=(0,r(n(103)).default)("renderers"),i=o.register,a=o.getItem,s=o.hasItem,u=o.getNames,l=o.getValues;t.getRegisteredRenderers=l,t.getRegisteredRendererNames=u,t.hasRenderer=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.getValidator=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered validator found under "'.concat(e,'" name'));return a(e)},t.hasValidator=void 0,t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var o=(0,r(n(103)).default)("validators"),i=o.register,a=o.getItem,s=o.hasItem,u=o.getNames,l=o.getValues;t.getRegisteredValidators=l,t.getRegisteredValidatorNames=u,t.hasValidator=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=r(n(762)),s=function(){function e(t,n){(0,o.default)(this,e),this.nodesPool="string"==typeof t?new a.default(t):null,this.nodeType=t,this.rootNode=n,this.table=null,this.renderedNodes=0}return(0,i.default)(e,[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(22),o=n(55),i=n(44),a=n(30),s=n(54),u=n(49),l=n(115),c=n(56),d=n(180),h=n(392),f=i.Symbol,p=f&&f.prototype;if(o&&u(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var v="Symbol(test)"==String(f("test")),y=a(p.valueOf),E=a(p.toString),T=/^Symbol\((.*)\)[^)]+$/,C=a("".replace),R=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=E(e),n=v?R(t,7,-1):C(t,T,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},function(e,t,n){"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))},t.columnFactory=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,r.inherit)(n,e);for(var o=0;o<t.length;o++)n.prototype[t[o]]=void 0;return n},t.extendByMetaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a="string"==typeof t.type?(0,o.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,r.objectEach)(t,(function(t,n){e._automaticallyAssignedMetaProps.delete(n)}));if(!(0,r.isObject)(a))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);var s={};(0,r.objectEach)(a,(function(t,r){var o;i(r,n)&&(s[r]=t,null===(o=e._automaticallyAssignedMetaProps)||void 0===o||o.add(r))})),(0,r.extend)(e,s)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},n(4),n(1),n(52),n(5),n(6),n(70),n(71);var r=n(12),o=n(190);function i(e,t){var n;return"CELL_TYPE"!==e&&((null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!(0,r.hasOwnProperty)(t,e))}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCellType=function(e){if(!d(e))throw Error('You declared cell type "'.concat(e,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method'));return c(e)},t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=void 0,t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);var n=t,r=n.editor,o=n.renderer,u=n.validator;r&&(0,i.registerEditor)(e,r);o&&(0,a.registerRenderer)(e,o);u&&(0,s.registerValidator)(e,u);l(e,t)};var o=r(n(103)),i=n(130),a=n(185),s=n(186),u=(0,o.default)("cellTypes"),l=u.register,c=u.getItem,d=u.hasItem,h=u.getNames,f=u.getValues;t.getRegisteredCellTypes=f,t.getRegisteredCellTypeNames=h,t.hasCellType=d},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var r=n(595);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteRenderer=t.RENDERER_TYPE=void 0;var r=n(860);t.RENDERER_TYPE=r.RENDERER_TYPE,t.autocompleteRenderer=r.autocompleteRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.createArrayAssertion=l,t.intersectValues=function(e,t,n,r){var i,s=[],u=e===t;u||(i=l(t));return(0,o.arrayEach)(e,(function(e){var t=!1;(u||i(e))&&(t=!0);var o={checked:t,value:e,visualValue:a(e,n)};r&&r(o),s.push(o)})),s},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toEmptyString=function(e){return null==e?"":e},t.toVisualValue=a,t.unifyColumnValues=function(e){var t=e;t=u?Array.from(new Set(t)):(0,o.arrayUnique)(t);return t=t.sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))},n(4),n(1),n(52),n(5),n(6),n(47),n(23),n(89);var r=n(108),o=n(13),i=(0,r.getComparisonFunction)();function a(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var s=new Set([1]).has(1),u=s&&"function"==typeof Array.from;function l(e){var t=e;return s&&(t=new Set(t)),function(e){return s?t.has(e):!!~t.indexOf(e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!r[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=r[e].func;return function(e,n){return t(e,n)}},t.getOperationName=function(e){return r[e].name},t.operations=void 0,t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},n(81);var r={};t.operations=r},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(154);var i=r(n(2)),a=r(n(3)),s=n(12),u=r(n(86)),l=r(n(51)),c=n(15),d=n(13),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)}var p=["click","input","keydown","keypress","keyup","focus","blur","change"],g=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.eventManager=new l.default(this),this.options=(0,s.extend)(e.DEFAULTS,n),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=null}return(0,a.default)(e,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"element",get:function(){return"building"===this.buildState?this._element:"built"===this.buildState?(this.update(),this._element):(this.buildState="building",this.build(),this.buildState="built",this._element)}},{key:"isBuilt",value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(h.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){var e=this,t=function(t,n){e.eventManager.addEventListener(t,n,(function(t){return e.runLocalHooks(n,t,e)}))};if(this.buildState||(this.buildState="building"),this.options.className&&(0,c.addClass)(this._element,this.options.className),this.options.children.length)(0,d.arrayEach)(this.options.children,(function(t){return e._element.appendChild(t.element)}));else if(this.options.wrapIt){var n=this.hot.rootDocument.createElement(this.options.tagName);(0,s.objectEach)(this.options,(function(t,r){void 0!==n[r]&&"className"!==r&&"tagName"!==r&&"children"!==r&&(n[r]=e.translateIfPossible(t))})),this._element.appendChild(n),(0,d.arrayEach)(p,(function(e){return t(n,e)}))}else(0,d.arrayEach)(p,(function(n){return t(e._element,n)}))}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}],[{key:"DEFAULTS",get:function(){return(0,s.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),e}();(0,s.mixin)(g,u.default);var m=g;t.default=m},function(e,t,n){"use strict";n.r(t),n.d(t,"absolutizeDependencies",(function(){return a})),n.d(t,"filterDependenciesOutOfScope",(function(){return s}));var r=n(78),o=n(17),i=n(61);
|
121
121
|
/**
|
122
122
|
* @license
|
123
123
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -127,7 +127,7 @@ const a=(e,t)=>e.map(e=>e.absolutize(t)),s=e=>e.filter(e=>e instanceof i.NamedEx
|
|
127
127
|
* @license
|
128
128
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
129
129
|
*/
|
130
|
-
class i{constructor(e,t,n){this.type=e,this.row=t,this.sheet=n}static absolute(e,t){return new i(o.ReferenceType.ABSOLUTE,e,t)}static relative(e,t){return new i(o.ReferenceType.RELATIVE,e,t)}static compareByAbsoluteAddress(e){return(t,n)=>t.toSimpleRowAddress(e).row-n.toSimpleRowAddress(e).row}isRowAbsolute(){return this.type===o.ReferenceType.ABSOLUTE}isRowRelative(){return this.type===o.ReferenceType.RELATIVE}isAbsolute(){return this.type===o.ReferenceType.ABSOLUTE&&void 0!==this.sheet}moved(e,t,n){const r=void 0===this.sheet?void 0:e;return new i(this.type,this.row+n,r)}shiftedByRows(e){return new i(this.type,this.row+e,this.sheet)}toSimpleRowAddress(e){const t=Object(r.absoluteSheetReference)(this,e);let n=this.row;return this.isRowRelative()&&(n=e.row+this.row),Object(r.simpleRowAddress)(t,n)}shiftRelativeDimensions(e,t){const n=this.isRowRelative()?this.row+t:this.row;return new i(this.type,n,this.sheet)}shiftAbsoluteDimensions(e,t){const n=this.isRowAbsolute()?this.row+t:this.row;return new i(this.type,n,this.sheet)}withSheet(e){return new i(this.type,this.row,e)}isInvalid(e){return this.toSimpleRowAddress(e).row<0}hash(e){const t=e&&void 0!==this.sheet?`#${this.sheet}`:"";switch(this.type){case o.ReferenceType.RELATIVE:return`${t}#ROWR${this.row}`;case o.ReferenceType.ABSOLUTE:return`${t}#ROWA${this.row}`}}unparse(e){const t=this.toSimpleRowAddress(e);if(!Object(r.invalidSimpleRowAddress)(t))return`${this.type===o.ReferenceType.ABSOLUTE?"$":""}${t.row+1}`}exceedsSheetSizeLimits(e){return this.row>=e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"clearCache",(function(){return g}));var r=n(238);n.d(t,"VERSION",(function(){return r.VERSION}));var o=n(68);n.d(t,"Parser",(function(){return o.Parser})),n.d(t,"CstParser",(function(){return o.CstParser})),n.d(t,"EmbeddedActionsParser",(function(){return o.EmbeddedActionsParser})),n.d(t,"ParserDefinitionErrorType",(function(){return o.ParserDefinitionErrorType})),n.d(t,"EMPTY_ALT",(function(){return o.EMPTY_ALT}));var i=n(137);n.d(t,"Lexer",(function(){return i.Lexer})),n.d(t,"LexerDefinitionErrorType",(function(){return i.LexerDefinitionErrorType}));var a=n(87);n.d(t,"createToken",(function(){return a.createToken})),n.d(t,"createTokenInstance",(function(){return a.createTokenInstance})),n.d(t,"EOF",(function(){return a.EOF})),n.d(t,"tokenLabel",(function(){return a.tokenLabel})),n.d(t,"tokenMatcher",(function(){return a.tokenMatcher})),n.d(t,"tokenName",(function(){return a.tokenName}));var s=n(120);n.d(t,"defaultGrammarResolverErrorProvider",(function(){return s.defaultGrammarResolverErrorProvider})),n.d(t,"defaultGrammarValidatorErrorProvider",(function(){return s.defaultGrammarValidatorErrorProvider})),n.d(t,"defaultParserErrorProvider",(function(){return s.defaultParserErrorProvider}));var u=n(100);n.d(t,"EarlyExitException",(function(){return u.EarlyExitException})),n.d(t,"isRecognitionException",(function(){return u.isRecognitionException})),n.d(t,"MismatchedTokenException",(function(){return u.MismatchedTokenException})),n.d(t,"NotAllInputParsedException",(function(){return u.NotAllInputParsedException})),n.d(t,"NoViableAltException",(function(){return u.NoViableAltException}));var l=n(242);n.d(t,"defaultLexerErrorProvider",(function(){return l.defaultLexerErrorProvider}));var c=n(44);n.d(t,"Alternation",(function(){return c.Alternation})),n.d(t,"Flat",(function(){return c.Flat})),n.d(t,"NonTerminal",(function(){return c.NonTerminal})),n.d(t,"Option",(function(){return c.Option})),n.d(t,"Repetition",(function(){return c.Repetition})),n.d(t,"RepetitionMandatory",(function(){return c.RepetitionMandatory})),n.d(t,"RepetitionMandatoryWithSeparator",(function(){return c.RepetitionMandatoryWithSeparator})),n.d(t,"RepetitionWithSeparator",(function(){return c.RepetitionWithSeparator})),n.d(t,"Rule",(function(){return c.Rule})),n.d(t,"Terminal",(function(){return c.Terminal})),n.d(t,"serializeGrammar",(function(){return c.serializeGrammar})),n.d(t,"serializeProduction",(function(){return c.serializeProduction}));var d=n(119);n.d(t,"GAstVisitor",(function(){return d.GAstVisitor}));var h=n(160);n.d(t,"assignOccurrenceIndices",(function(){return h.assignOccurrenceIndices})),n.d(t,"resolveGrammar",(function(){return h.resolveGrammar})),n.d(t,"validateGrammar",(function(){return h.validateGrammar}));var f=n(324);n.d(t,"createSyntaxDiagramsCode",(function(){return f.createSyntaxDiagramsCode}));var p=n(244);function g(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}n.d(t,"generateParserFactory",(function(){return p.generateParserFactory})),n.d(t,"generateParserModule",(function(){return p.generateParserModule}))},function(e,t,n){"use strict";n.r(t),n.d(t,"validateGrammar",(function(){return f})),n.d(t,"identifyProductionForDuplicates",(function(){return p})),n.d(t,"OccurrenceValidationCollector",(function(){return m})),n.d(t,"validTermsPattern",(function(){return v})),n.d(t,"validNestedRuleName",(function(){return y})),n.d(t,"validateRuleName",(function(){return E})),n.d(t,"validateNestedRuleName",(function(){return T})),n.d(t,"validateTokenName",(function(){return C})),n.d(t,"validateRuleDoesNotAlreadyExist",(function(){return R})),n.d(t,"validateRuleIsOverridden",(function(){return w})),n.d(t,"validateNoLeftRecursion",(function(){return S})),n.d(t,"getFirstNoneTerminal",(function(){return O})),n.d(t,"validateEmptyOrAlternative",(function(){return A})),n.d(t,"validateAmbiguousAlternationAlternatives",(function(){return N})),n.d(t,"RepetionCollector",(function(){return M})),n.d(t,"validateTooManyAlts",(function(){return I})),n.d(t,"validateSomeNonEmptyLookaheadPath",(function(){return _})),n.d(t,"checkPrefixAlternativesAmbiguities",(function(){return k}));var r,o=n(38),i=n(68),a=n(158),s=n(202),u=n(243),l=n(203),c=n(44),d=n(119),h=(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 f(e,t,n,r,s,l){var c=o.map(e,(function(e){return function(e,t){var n=new m;e.accept(n);var r=n.allProductions,s=o.groupBy(r,p),u=o.pick(s,(function(e){return e.length>1}));return o.map(o.values(u),(function(n){var r=o.first(n),s=t.buildDuplicateFoundError(e,n),u=Object(a.getProductionDslName)(r),l={message:s,type:i.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:u,occurrence:r.idx},c=g(r);return c&&(l.parameter=c),l}))}(e,s)})),d=o.map(e,(function(e){return S(e,e,s)})),h=[],f=[],v=[];Object(o.every)(d,o.isEmpty)&&(h=Object(o.map)(e,(function(e){return A(e,s)})),f=Object(o.map)(e,(function(e){return N(e,t,r,s)})),v=_(e,t,s));var y=function(e,t,n){var r=[],a=Object(o.map)(t,(function(e){return e.name}));return Object(o.forEach)(e,(function(e){var t=e.name;if(Object(o.contains)(a,t)){var s=n.buildNamespaceConflictError(e);r.push({message:s,type:i.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}})),r}(e,n,s),w=o.map(n,(function(e){return C(e,s)})),O=function(e,t){var n=[];return Object(o.forEach)(e,(function(e){var r=new u.NamedDSLMethodsCollectorVisitor("");e.accept(r);var i=Object(o.map)(r.result,(function(e){return e.orgProd}));n.push(Object(o.map)(i,(function(n){return T(e,n,t)})))})),Object(o.flatten)(n)}(e,s),b=function(e,t){var n=[];return Object(o.forEach)(e,(function(e){var r=new u.NamedDSLMethodsCollectorVisitor("");e.accept(r);var a=Object(o.groupBy)(r.result,(function(e){return e.name})),s=Object(o.pick)(a,(function(e){return e.length>1}));Object(o.forEach)(Object(o.values)(s),(function(r){var a=Object(o.map)(r,(function(e){return e.orgProd})),s=t.buildDuplicateNestedRuleNameError(e,a);n.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_NESTED_NAME,ruleName:e.name})}))})),n}(e,s),M=Object(o.map)(e,(function(e){return I(e,s)})),k=Object(o.map)(e,(function(e){return E(e,s)})),x=Object(o.map)(e,(function(t){return R(t,e,l,s)}));return o.flatten(c.concat(w,O,b,v,d,h,f,y,M,k,x))}function p(e){return Object(a.getProductionDslName)(e)+"_#_"+e.idx+"_#_"+g(e)}function g(e){return e instanceof c.Terminal?e.terminalType.name:e instanceof c.NonTerminal?e.nonTerminalName:""}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return h(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(d.GAstVisitor),v=/^[a-zA-Z_]\w*$/,y=new RegExp(v.source.replace("^","^\\$"));function E(e,t){var n=[],r=e.name;return r.match(v)||n.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:v}),type:i.ParserDefinitionErrorType.INVALID_RULE_NAME,ruleName:r}),n}function T(e,t,n){var r,o=[];return t.name.match(y)||(r=n.buildInvalidNestedRuleNameError(e,t),o.push({message:r,type:i.ParserDefinitionErrorType.INVALID_NESTED_RULE_NAME,ruleName:e.name})),o}function C(e,t){var n=[];return e.name.match(v)||n.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:v}),type:i.ParserDefinitionErrorType.INVALID_TOKEN_NAME}),n}function R(e,t,n,r){var a=[];if(Object(o.reduce)(t,(function(t,n){return n.name===e.name?t+1:t}),0)>1){var s=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});a.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}function w(e,t,n){var r,a=[];return o.contains(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",a.push({message:r,type:i.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:e})),a}function S(e,t,n,r){void 0===r&&(r=[]);var a=[],s=O(t.definition);if(o.isEmpty(s))return[];var u=e.name;o.contains(s,e)&&a.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:i.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:u});var l=o.difference(s,r.concat([e])),c=o.map(l,(function(t){var i=o.cloneArr(r);return i.push(t),S(e,t,n,i)}));return a.concat(o.flatten(c))}function O(e){var t=[];if(o.isEmpty(e))return t;var n=o.first(e);if(n instanceof c.NonTerminal)t.push(n.referencedRule);else if(n instanceof c.Flat||n instanceof c.Option||n instanceof c.RepetitionMandatory||n instanceof c.RepetitionMandatoryWithSeparator||n instanceof c.RepetitionWithSeparator||n instanceof c.Repetition)t=t.concat(O(n.definition));else if(n instanceof c.Alternation)t=o.flatten(o.map(n.definition,(function(e){return O(e.definition)})));else if(!(n instanceof c.Terminal))throw Error("non exhaustive match");var r=Object(a.isOptionalProd)(n),i=e.length>1;if(r&&i){var s=o.drop(e);return t.concat(O(s))}return t}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return h(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(d.GAstVisitor);function A(e,t){var n=new b;e.accept(n);var r=n.alternations;return o.reduce(r,(function(n,r){var a=o.dropRight(r.definition),s=o.map(a,(function(n,a){var s=Object(l.nextPossibleTokensAfter)([n],[],null,1);return o.isEmpty(s)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:a}),type:i.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:a+1}:null}));return n.concat(o.compact(s))}),[])}function N(e,t,n,r){var u=new b;e.accept(u);var l=u.alternations,c=n[e.name];return c&&(l=Object(o.reject)(l,(function(e){return c[Object(a.getProductionDslName)(e)+(0===e.idx?"":e.idx)]}))),l=Object(o.reject)(l,(function(e){return!0===e.ignoreAmbiguities})),o.reduce(l,(function(n,a){var u=a.idx,l=a.maxLookahead||t,c=Object(s.getLookaheadPathsForOr)(u,e,l,a),d=function(e,t,n,r){var a=[],u=Object(o.reduce)(e,(function(n,r,i){return!0===t.definition[i].ignoreAmbiguities||Object(o.forEach)(r,(function(r){var u=[i];Object(o.forEach)(e,(function(e,n){i!==n&&Object(s.containsPath)(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&u.push(n)})),u.length>1&&!Object(s.containsPath)(a,r)&&(a.push(r),n.push({alts:u,path:r}))})),n}),[]);return o.map(u,(function(e){var a=Object(o.map)(e.alts,(function(e){return e+1}));return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:a,prefixPath:e.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[e.alts]}}))}(c,a,e,r),h=k(c,a,e,r);return n.concat(d,h)}),[])}var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return h(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(d.GAstVisitor);function I(e,t){var n=new b;e.accept(n);var r=n.alternations;return o.reduce(r,(function(n,r){return r.definition.length>255&&n.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:i.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}),n}),[])}function _(e,t,n){var r=[];return Object(o.forEach)(e,(function(e){var a=new M;e.accept(a);var u=a.allProductions;Object(o.forEach)(u,(function(a){var u=Object(s.getProdType)(a),l=a.maxLookahead||t,c=a.idx,d=Object(s.getLookaheadPathsForOptionalProd)(c,e,u,l)[0];if(Object(o.isEmpty)(Object(o.flatten)(d))){var h=n.buildEmptyRepetitionError({topLevelRule:e,repetition:a});r.push({message:h,type:i.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}}))})),r}function k(e,t,n,r){var a=[],u=Object(o.reduce)(e,(function(e,t,n){var r=Object(o.map)(t,(function(e){return{idx:n,path:e}}));return e.concat(r)}),[]);return Object(o.forEach)(u,(function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var l=e.idx,c=e.path,d=Object(o.findAll)(u,(function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<l&&Object(s.isStrictPrefixOfPath)(e.path,c)})),h=Object(o.map)(d,(function(e){var o=[e.idx+1,l+1],a=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:a,alternatives:o}}));a=a.concat(h)}})),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"PROD_TYPE",(function(){return o})),n.d(t,"getProdType",(function(){return h})),n.d(t,"buildLookaheadFuncForOr",(function(){return f})),n.d(t,"buildLookaheadFuncForOptionalProd",(function(){return p})),n.d(t,"buildAlternativesLookAheadFunc",(function(){return g})),n.d(t,"buildSingleAlternativeLookaheadFunction",(function(){return m})),n.d(t,"lookAheadSequenceFromAlternatives",(function(){return R})),n.d(t,"getLookaheadPathsForOr",(function(){return w})),n.d(t,"getLookaheadPathsForOptionalProd",(function(){return S})),n.d(t,"containsPath",(function(){return O})),n.d(t,"isStrictPrefixOfPath",(function(){return b})),n.d(t,"areTokenCategoriesNotUsed",(function(){return A}));var r,o,i=n(38),a=n(203),s=n(239),u=n(157),l=n(44),c=n(119),d=(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 h(e){if(e instanceof l.Option)return o.OPTION;if(e instanceof l.Repetition)return o.REPETITION;if(e instanceof l.RepetitionMandatory)return o.REPETITION_MANDATORY;if(e instanceof l.RepetitionMandatoryWithSeparator)return o.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof l.RepetitionWithSeparator)return o.REPETITION_WITH_SEPARATOR;if(e instanceof l.Alternation)return o.ALTERNATION;throw Error("non exhaustive match")}function f(e,t,n,r,o,i){var a=w(e,t,n);return i(a,r,A(a)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher,o)}function p(e,t,n,r,o,i){var a=S(e,t,o,n),s=A(a)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher;return i(a[0],s,r)}function g(e,t,n,r){var o=e.length,a=Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return 1===e.length}))}));if(t)return function(t){for(var r=Object(i.map)(t,(function(e){return e.GATE})),a=0;a<o;a++){var s=e[a],u=s.length,l=r[a];if(void 0===l||!1!==l.call(this))e:for(var c=0;c<u;c++){for(var d=s[c],h=d.length,f=0;f<h;f++){var p=this.LA(f+1);if(!1===n(p,d[f]))continue e}return a}}};if(a&&!r){var s=Object(i.map)(e,(function(e){return Object(i.flatten)(e)})),u=Object(i.reduce)(s,(function(e,t,n){return Object(i.forEach)(t,(function(t){Object(i.has)(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),Object(i.forEach)(t.categoryMatches,(function(t){Object(i.has)(e,t)||(e[t]=n)}))})),e}),[]);return function(){var e=this.LA(1);return u[e.tokenTypeIdx]}}return function(){for(var t=0;t<o;t++){var r=e[t],i=r.length;e:for(var a=0;a<i;a++){for(var s=r[a],u=s.length,l=0;l<u;l++){var c=this.LA(l+1);if(!1===n(c,s[l]))continue e}return t}}}}function m(e,t,n){var r=Object(i.every)(e,(function(e){return 1===e.length})),o=e.length;if(r&&!n){var a=Object(i.flatten)(e);if(1===a.length&&Object(i.isEmpty)(a[0].categoryMatches)){var s=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===s}}var u=Object(i.reduce)(a,(function(e,t,n){return e[t.tokenTypeIdx]=!0,Object(i.forEach)(t.categoryMatches,(function(t){e[t]=!0})),e}),[]);return function(){var e=this.LA(1);return!0===u[e.tokenTypeIdx]}}return function(){e:for(var n=0;n<o;n++){for(var r=e[n],i=r.length,a=0;a<i;a++){var s=this.LA(a+1);if(!1===t(s,r[a]))continue e}return!0}return!1}}!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(o||(o={}));var v=function(e){function t(t,n,r){var o=e.call(this)||this;return o.topProd=t,o.targetOccurrence=n,o.targetProdType=r,o}return d(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)},t.prototype.walkOption=function(t,n,r){this.checkIsTarget(t,o.OPTION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOne=function(t,n,r){this.checkIsTarget(t,o.REPETITION_MANDATORY,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOneSep=function(t,n,r){this.checkIsTarget(t,o.REPETITION_MANDATORY_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkMany=function(t,n,r){this.checkIsTarget(t,o.REPETITION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkManySep=function(t,n,r){this.checkIsTarget(t,o.REPETITION_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t}(s.RestWalker),y=function(e){function t(t,n,r){var o=e.call(this)||this;return o.targetOccurrence=t,o.targetProdType=n,o.targetRef=r,o.result=[],o}return d(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,o.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,o.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,o.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,o.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,o.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,o.ALTERNATION)},t}(c.GAstVisitor);function E(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function T(e){for(var t=[""],n=0;n<e.length;n++){for(var r=e[n],o=[],i=0;i<t.length;i++){var a=t[i];o.push(a+"_"+r.tokenTypeIdx);for(var s=0;s<r.categoryMatches.length;s++){var u="_"+r.categoryMatches[s];o.push(a+u)}}t=o}return t}function C(e,t,n){for(var r=0;r<e.length;r++)if(r!==n)for(var o=e[r],i=0;i<t.length;i++){if(!0===o[t[i]])return!1}return!0}function R(e,t){for(var n=Object(i.map)(e,(function(e){return Object(a.possiblePathsFrom)([e],1)})),r=E(n.length),o=Object(i.map)(n,(function(e){var t={};return Object(i.forEach)(e,(function(e){var n=T(e.partialPath);Object(i.forEach)(n,(function(e){t[e]=!0}))})),t})),s=n,u=1;u<=t;u++){var l=s;s=E(l.length);for(var c=function(e){for(var n=l[e],c=0;c<n.length;c++){var d=n[c].partialPath,h=n[c].suffixDef,f=T(d);if(C(o,f,e)||Object(i.isEmpty)(h)||d.length===t){var p=r[e];if(!1===O(p,d)){p.push(d);for(var g=0;g<f.length;g++){var m=f[g];o[e][m]=!0}}}else{var v=Object(a.possiblePathsFrom)(h,u+1,d);s[e]=s[e].concat(v),Object(i.forEach)(v,(function(t){var n=T(t.partialPath);Object(i.forEach)(n,(function(t){o[e][t]=!0}))}))}}},d=0;d<l.length;d++)c(d)}return r}function w(e,t,n,r){var i=new y(e,o.ALTERNATION,r);return t.accept(i),R(i.result,n)}function S(e,t,n,r){var o=new y(e,n);t.accept(o);var i=o.result,a=new v(t,e,n).startWalking();return R([new l.Flat({definition:i}),new l.Flat({definition:a})],r)}function O(e,t){e:for(var n=0;n<e.length;n++){var r=e[n];if(r.length===t.length){for(var o=0;o<r.length;o++){var i=t[o],a=r[o];if(!1===(i===a||void 0!==a.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function b(e,t){return e.length<t.length&&Object(i.every)(e,(function(e,n){var r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}))}function A(e){return Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return Object(i.isEmpty)(e.categoryMatches)}))}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractNextPossibleTokensWalker",(function(){return l})),n.d(t,"NextAfterTokenWalker",(function(){return c})),n.d(t,"AbstractNextTerminalAfterProductionWalker",(function(){return d})),n.d(t,"NextTerminalAfterManyWalker",(function(){return h})),n.d(t,"NextTerminalAfterManySepWalker",(function(){return f})),n.d(t,"NextTerminalAfterAtLeastOneWalker",(function(){return p})),n.d(t,"NextTerminalAfterAtLeastOneSepWalker",(function(){return g})),n.d(t,"possiblePathsFrom",(function(){return m})),n.d(t,"nextPossibleTokensAfter",(function(){return v}));var r,o=n(239),i=n(38),a=n(320),s=n(44),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)}),l=function(e){function t(t,n){var r=e.call(this)||this;return r.topProd=t,r.path=n,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return u(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Object(i.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=Object(i.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,n){void 0===n&&(n=[]),this.found||e.prototype.walk.call(this,t,n)},t.prototype.walkProdRef=function(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}},t.prototype.updateExpectedNext=function(){Object(i.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(o.RestWalker),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.path=n,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return u(t,e),t.prototype.walkTerminal=function(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var r=t.concat(n),o=new s.Flat({definition:r});this.possibleTokTypes=Object(a.first)(o),this.found=!0}},t}(l),d=function(e){function t(t,n){var r=e.call(this)||this;return r.topRule=t,r.occurrence=n,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return u(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(o.RestWalker),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkMany=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,t,n,r)},t}(d),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkManySep=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,t,n,r)},t}(d),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkAtLeastOne=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,t,n,r)},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkAtLeastOneSep=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,n,r)},t}(d);function m(e,t,n){void 0===n&&(n=[]),n=Object(i.cloneArr)(n);var r=[],o=0;function a(a){var s=m(a.concat(Object(i.drop)(e,o+1)),t,n);return r.concat(s)}for(;n.length<t&&o<e.length;){var u=e[o];if(u instanceof s.Flat)return a(u.definition);if(u instanceof s.NonTerminal)return a(u.definition);if(u instanceof s.Option)r=a(u.definition);else{if(u instanceof s.RepetitionMandatory)return a(l=u.definition.concat([new s.Repetition({definition:u.definition})]));if(u instanceof s.RepetitionMandatoryWithSeparator)return a(l=[new s.Flat({definition:u.definition}),new s.Repetition({definition:[new s.Terminal({terminalType:u.separator})].concat(u.definition)})]);if(u instanceof s.RepetitionWithSeparator){var l=u.definition.concat([new s.Repetition({definition:[new s.Terminal({terminalType:u.separator})].concat(u.definition)})]);r=a(l)}else if(u instanceof s.Repetition){l=u.definition.concat([new s.Repetition({definition:u.definition})]);r=a(l)}else{if(u instanceof s.Alternation)return Object(i.forEach)(u.definition,(function(e){r=a(e.definition)})),r;if(!(u instanceof s.Terminal))throw Error("non exhaustive match");n.push(u.terminalType)}}o++}return r.push({partialPath:n,suffixDef:Object(i.drop)(e,o)}),r}function v(e,t,n,r){var o=["EXIT_NONE_TERMINAL"],a=!1,u=t.length,l=u-r-1,c=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Object(i.isEmpty)(d);){var h=d.pop();if("EXIT_ALTERNATIVE"!==h){var f=h.def,p=h.idx,g=h.ruleStack,m=h.occurrenceStack;if(!Object(i.isEmpty)(f)){var v=f[0];if("EXIT_NONE_TERMINAL"===v){var E={idx:p,def:Object(i.drop)(f),ruleStack:Object(i.dropRight)(g),occurrenceStack:Object(i.dropRight)(m)};d.push(E)}else if(v instanceof s.Terminal)if(p<u-1){var T=p+1;if(n(t[T],v.terminalType)){E={idx:T,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(E)}}else{if(p!==u-1)throw Error("non exhaustive match");c.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:g,occurrenceStack:m}),a=!0}else if(v instanceof s.NonTerminal){var C=Object(i.cloneArr)(g);C.push(v.nonTerminalName);var R=Object(i.cloneArr)(m);R.push(v.idx);E={idx:p,def:v.definition.concat(o,Object(i.drop)(f)),ruleStack:C,occurrenceStack:R};d.push(E)}else if(v instanceof s.Option){var w={idx:p,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(w),d.push("EXIT_ALTERNATIVE");var S={idx:p,def:v.definition.concat(Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(S)}else if(v instanceof s.RepetitionMandatory){var O=new s.Repetition({definition:v.definition,idx:v.idx});E={idx:p,def:v.definition.concat([O],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(E)}else if(v instanceof s.RepetitionMandatoryWithSeparator){var b=new s.Terminal({terminalType:v.separator});O=new s.Repetition({definition:[b].concat(v.definition),idx:v.idx}),E={idx:p,def:v.definition.concat([O],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(E)}else if(v instanceof s.RepetitionWithSeparator){w={idx:p,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(w),d.push("EXIT_ALTERNATIVE");b=new s.Terminal({terminalType:v.separator});var A=new s.Repetition({definition:[b].concat(v.definition),idx:v.idx});S={idx:p,def:v.definition.concat([A],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(S)}else if(v instanceof s.Repetition){w={idx:p,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(w),d.push("EXIT_ALTERNATIVE");A=new s.Repetition({definition:v.definition,idx:v.idx}),S={idx:p,def:v.definition.concat([A],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(S)}else if(v instanceof s.Alternation)for(var N=v.definition.length-1;N>=0;N--){var M={idx:p,def:v.definition[N].definition.concat(Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(M),d.push("EXIT_ALTERNATIVE")}else if(v instanceof s.Flat)d.push({idx:p,def:v.definition.concat(Object(i.drop)(f)),ruleStack:g,occurrenceStack:m});else{if(!(v instanceof s.Rule))throw Error("non exhaustive match");d.push(y(v,p,g,m))}}}else a&&Object(i.last)(d).idx<=l&&d.pop()}return c}function y(e,t,n,r){var o=Object(i.cloneArr)(n);o.push(e.name);var a=Object(i.cloneArr)(r);return a.push(1),{idx:t,def:e.definition,ruleStack:o,occurrenceStack:a}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AdditionOp",(function(){return s})),n.d(t,"PlusOp",(function(){return u})),n.d(t,"MinusOp",(function(){return l})),n.d(t,"MultiplicationOp",(function(){return c})),n.d(t,"TimesOp",(function(){return d})),n.d(t,"DivOp",(function(){return h})),n.d(t,"PowerOp",(function(){return f})),n.d(t,"PercentOp",(function(){return p})),n.d(t,"BooleanOp",(function(){return g})),n.d(t,"EqualsOp",(function(){return m})),n.d(t,"NotEqualOp",(function(){return v})),n.d(t,"GreaterThanOp",(function(){return y})),n.d(t,"LessThanOp",(function(){return E})),n.d(t,"GreaterThanOrEqualOp",(function(){return T})),n.d(t,"LessThanOrEqualOp",(function(){return C})),n.d(t,"ConcatenateOp",(function(){return R})),n.d(t,"LParen",(function(){return w})),n.d(t,"RParen",(function(){return S})),n.d(t,"ArrayLParen",(function(){return O})),n.d(t,"ArrayRParen",(function(){return b})),n.d(t,"StringLiteral",(function(){return A})),n.d(t,"ErrorLiteral",(function(){return N})),n.d(t,"RangeSeparator",(function(){return M})),n.d(t,"ColumnRange",(function(){return I})),n.d(t,"RowRange",(function(){return _})),n.d(t,"ProcedureName",(function(){return k})),n.d(t,"CellReference",(function(){return P})),n.d(t,"NamedExpression",(function(){return D})),n.d(t,"buildLexerConfig",(function(){return F}));var r=n(200),o=n(156),i=n(654),a=n(655);
|
130
|
+
class i{constructor(e,t,n){this.type=e,this.row=t,this.sheet=n}static absolute(e,t){return new i(o.ReferenceType.ABSOLUTE,e,t)}static relative(e,t){return new i(o.ReferenceType.RELATIVE,e,t)}static compareByAbsoluteAddress(e){return(t,n)=>t.toSimpleRowAddress(e).row-n.toSimpleRowAddress(e).row}isRowAbsolute(){return this.type===o.ReferenceType.ABSOLUTE}isRowRelative(){return this.type===o.ReferenceType.RELATIVE}isAbsolute(){return this.type===o.ReferenceType.ABSOLUTE&&void 0!==this.sheet}moved(e,t,n){const r=void 0===this.sheet?void 0:e;return new i(this.type,this.row+n,r)}shiftedByRows(e){return new i(this.type,this.row+e,this.sheet)}toSimpleRowAddress(e){const t=Object(r.absoluteSheetReference)(this,e);let n=this.row;return this.isRowRelative()&&(n=e.row+this.row),Object(r.simpleRowAddress)(t,n)}shiftRelativeDimensions(e,t){const n=this.isRowRelative()?this.row+t:this.row;return new i(this.type,n,this.sheet)}shiftAbsoluteDimensions(e,t){const n=this.isRowAbsolute()?this.row+t:this.row;return new i(this.type,n,this.sheet)}withSheet(e){return new i(this.type,this.row,e)}isInvalid(e){return this.toSimpleRowAddress(e).row<0}hash(e){const t=e&&void 0!==this.sheet?`#${this.sheet}`:"";switch(this.type){case o.ReferenceType.RELATIVE:return`${t}#ROWR${this.row}`;case o.ReferenceType.ABSOLUTE:return`${t}#ROWA${this.row}`}}unparse(e){const t=this.toSimpleRowAddress(e);if(!Object(r.invalidSimpleRowAddress)(t))return`${this.type===o.ReferenceType.ABSOLUTE?"$":""}${t.row+1}`}exceedsSheetSizeLimits(e){return this.row>=e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"clearCache",(function(){return g}));var r=n(238);n.d(t,"VERSION",(function(){return r.VERSION}));var o=n(68);n.d(t,"Parser",(function(){return o.Parser})),n.d(t,"CstParser",(function(){return o.CstParser})),n.d(t,"EmbeddedActionsParser",(function(){return o.EmbeddedActionsParser})),n.d(t,"ParserDefinitionErrorType",(function(){return o.ParserDefinitionErrorType})),n.d(t,"EMPTY_ALT",(function(){return o.EMPTY_ALT}));var i=n(137);n.d(t,"Lexer",(function(){return i.Lexer})),n.d(t,"LexerDefinitionErrorType",(function(){return i.LexerDefinitionErrorType}));var a=n(87);n.d(t,"createToken",(function(){return a.createToken})),n.d(t,"createTokenInstance",(function(){return a.createTokenInstance})),n.d(t,"EOF",(function(){return a.EOF})),n.d(t,"tokenLabel",(function(){return a.tokenLabel})),n.d(t,"tokenMatcher",(function(){return a.tokenMatcher})),n.d(t,"tokenName",(function(){return a.tokenName}));var s=n(120);n.d(t,"defaultGrammarResolverErrorProvider",(function(){return s.defaultGrammarResolverErrorProvider})),n.d(t,"defaultGrammarValidatorErrorProvider",(function(){return s.defaultGrammarValidatorErrorProvider})),n.d(t,"defaultParserErrorProvider",(function(){return s.defaultParserErrorProvider}));var u=n(100);n.d(t,"EarlyExitException",(function(){return u.EarlyExitException})),n.d(t,"isRecognitionException",(function(){return u.isRecognitionException})),n.d(t,"MismatchedTokenException",(function(){return u.MismatchedTokenException})),n.d(t,"NotAllInputParsedException",(function(){return u.NotAllInputParsedException})),n.d(t,"NoViableAltException",(function(){return u.NoViableAltException}));var l=n(242);n.d(t,"defaultLexerErrorProvider",(function(){return l.defaultLexerErrorProvider}));var c=n(45);n.d(t,"Alternation",(function(){return c.Alternation})),n.d(t,"Flat",(function(){return c.Flat})),n.d(t,"NonTerminal",(function(){return c.NonTerminal})),n.d(t,"Option",(function(){return c.Option})),n.d(t,"Repetition",(function(){return c.Repetition})),n.d(t,"RepetitionMandatory",(function(){return c.RepetitionMandatory})),n.d(t,"RepetitionMandatoryWithSeparator",(function(){return c.RepetitionMandatoryWithSeparator})),n.d(t,"RepetitionWithSeparator",(function(){return c.RepetitionWithSeparator})),n.d(t,"Rule",(function(){return c.Rule})),n.d(t,"Terminal",(function(){return c.Terminal})),n.d(t,"serializeGrammar",(function(){return c.serializeGrammar})),n.d(t,"serializeProduction",(function(){return c.serializeProduction}));var d=n(119);n.d(t,"GAstVisitor",(function(){return d.GAstVisitor}));var h=n(160);n.d(t,"assignOccurrenceIndices",(function(){return h.assignOccurrenceIndices})),n.d(t,"resolveGrammar",(function(){return h.resolveGrammar})),n.d(t,"validateGrammar",(function(){return h.validateGrammar}));var f=n(324);n.d(t,"createSyntaxDiagramsCode",(function(){return f.createSyntaxDiagramsCode}));var p=n(244);function g(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}n.d(t,"generateParserFactory",(function(){return p.generateParserFactory})),n.d(t,"generateParserModule",(function(){return p.generateParserModule}))},function(e,t,n){"use strict";n.r(t),n.d(t,"validateGrammar",(function(){return f})),n.d(t,"identifyProductionForDuplicates",(function(){return p})),n.d(t,"OccurrenceValidationCollector",(function(){return m})),n.d(t,"validTermsPattern",(function(){return v})),n.d(t,"validNestedRuleName",(function(){return y})),n.d(t,"validateRuleName",(function(){return E})),n.d(t,"validateNestedRuleName",(function(){return T})),n.d(t,"validateTokenName",(function(){return C})),n.d(t,"validateRuleDoesNotAlreadyExist",(function(){return R})),n.d(t,"validateRuleIsOverridden",(function(){return w})),n.d(t,"validateNoLeftRecursion",(function(){return S})),n.d(t,"getFirstNoneTerminal",(function(){return O})),n.d(t,"validateEmptyOrAlternative",(function(){return A})),n.d(t,"validateAmbiguousAlternationAlternatives",(function(){return N})),n.d(t,"RepetionCollector",(function(){return M})),n.d(t,"validateTooManyAlts",(function(){return I})),n.d(t,"validateSomeNonEmptyLookaheadPath",(function(){return _})),n.d(t,"checkPrefixAlternativesAmbiguities",(function(){return k}));var r,o=n(38),i=n(68),a=n(158),s=n(202),u=n(243),l=n(203),c=n(45),d=n(119),h=(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 f(e,t,n,r,s,l){var c=o.map(e,(function(e){return function(e,t){var n=new m;e.accept(n);var r=n.allProductions,s=o.groupBy(r,p),u=o.pick(s,(function(e){return e.length>1}));return o.map(o.values(u),(function(n){var r=o.first(n),s=t.buildDuplicateFoundError(e,n),u=Object(a.getProductionDslName)(r),l={message:s,type:i.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:u,occurrence:r.idx},c=g(r);return c&&(l.parameter=c),l}))}(e,s)})),d=o.map(e,(function(e){return S(e,e,s)})),h=[],f=[],v=[];Object(o.every)(d,o.isEmpty)&&(h=Object(o.map)(e,(function(e){return A(e,s)})),f=Object(o.map)(e,(function(e){return N(e,t,r,s)})),v=_(e,t,s));var y=function(e,t,n){var r=[],a=Object(o.map)(t,(function(e){return e.name}));return Object(o.forEach)(e,(function(e){var t=e.name;if(Object(o.contains)(a,t)){var s=n.buildNamespaceConflictError(e);r.push({message:s,type:i.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}})),r}(e,n,s),w=o.map(n,(function(e){return C(e,s)})),O=function(e,t){var n=[];return Object(o.forEach)(e,(function(e){var r=new u.NamedDSLMethodsCollectorVisitor("");e.accept(r);var i=Object(o.map)(r.result,(function(e){return e.orgProd}));n.push(Object(o.map)(i,(function(n){return T(e,n,t)})))})),Object(o.flatten)(n)}(e,s),b=function(e,t){var n=[];return Object(o.forEach)(e,(function(e){var r=new u.NamedDSLMethodsCollectorVisitor("");e.accept(r);var a=Object(o.groupBy)(r.result,(function(e){return e.name})),s=Object(o.pick)(a,(function(e){return e.length>1}));Object(o.forEach)(Object(o.values)(s),(function(r){var a=Object(o.map)(r,(function(e){return e.orgProd})),s=t.buildDuplicateNestedRuleNameError(e,a);n.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_NESTED_NAME,ruleName:e.name})}))})),n}(e,s),M=Object(o.map)(e,(function(e){return I(e,s)})),k=Object(o.map)(e,(function(e){return E(e,s)})),x=Object(o.map)(e,(function(t){return R(t,e,l,s)}));return o.flatten(c.concat(w,O,b,v,d,h,f,y,M,k,x))}function p(e){return Object(a.getProductionDslName)(e)+"_#_"+e.idx+"_#_"+g(e)}function g(e){return e instanceof c.Terminal?e.terminalType.name:e instanceof c.NonTerminal?e.nonTerminalName:""}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return h(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(d.GAstVisitor),v=/^[a-zA-Z_]\w*$/,y=new RegExp(v.source.replace("^","^\\$"));function E(e,t){var n=[],r=e.name;return r.match(v)||n.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:v}),type:i.ParserDefinitionErrorType.INVALID_RULE_NAME,ruleName:r}),n}function T(e,t,n){var r,o=[];return t.name.match(y)||(r=n.buildInvalidNestedRuleNameError(e,t),o.push({message:r,type:i.ParserDefinitionErrorType.INVALID_NESTED_RULE_NAME,ruleName:e.name})),o}function C(e,t){var n=[];return e.name.match(v)||n.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:v}),type:i.ParserDefinitionErrorType.INVALID_TOKEN_NAME}),n}function R(e,t,n,r){var a=[];if(Object(o.reduce)(t,(function(t,n){return n.name===e.name?t+1:t}),0)>1){var s=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});a.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}function w(e,t,n){var r,a=[];return o.contains(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",a.push({message:r,type:i.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:e})),a}function S(e,t,n,r){void 0===r&&(r=[]);var a=[],s=O(t.definition);if(o.isEmpty(s))return[];var u=e.name;o.contains(s,e)&&a.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:i.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:u});var l=o.difference(s,r.concat([e])),c=o.map(l,(function(t){var i=o.cloneArr(r);return i.push(t),S(e,t,n,i)}));return a.concat(o.flatten(c))}function O(e){var t=[];if(o.isEmpty(e))return t;var n=o.first(e);if(n instanceof c.NonTerminal)t.push(n.referencedRule);else if(n instanceof c.Flat||n instanceof c.Option||n instanceof c.RepetitionMandatory||n instanceof c.RepetitionMandatoryWithSeparator||n instanceof c.RepetitionWithSeparator||n instanceof c.Repetition)t=t.concat(O(n.definition));else if(n instanceof c.Alternation)t=o.flatten(o.map(n.definition,(function(e){return O(e.definition)})));else if(!(n instanceof c.Terminal))throw Error("non exhaustive match");var r=Object(a.isOptionalProd)(n),i=e.length>1;if(r&&i){var s=o.drop(e);return t.concat(O(s))}return t}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return h(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(d.GAstVisitor);function A(e,t){var n=new b;e.accept(n);var r=n.alternations;return o.reduce(r,(function(n,r){var a=o.dropRight(r.definition),s=o.map(a,(function(n,a){var s=Object(l.nextPossibleTokensAfter)([n],[],null,1);return o.isEmpty(s)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:a}),type:i.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:a+1}:null}));return n.concat(o.compact(s))}),[])}function N(e,t,n,r){var u=new b;e.accept(u);var l=u.alternations,c=n[e.name];return c&&(l=Object(o.reject)(l,(function(e){return c[Object(a.getProductionDslName)(e)+(0===e.idx?"":e.idx)]}))),l=Object(o.reject)(l,(function(e){return!0===e.ignoreAmbiguities})),o.reduce(l,(function(n,a){var u=a.idx,l=a.maxLookahead||t,c=Object(s.getLookaheadPathsForOr)(u,e,l,a),d=function(e,t,n,r){var a=[],u=Object(o.reduce)(e,(function(n,r,i){return!0===t.definition[i].ignoreAmbiguities||Object(o.forEach)(r,(function(r){var u=[i];Object(o.forEach)(e,(function(e,n){i!==n&&Object(s.containsPath)(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&u.push(n)})),u.length>1&&!Object(s.containsPath)(a,r)&&(a.push(r),n.push({alts:u,path:r}))})),n}),[]);return o.map(u,(function(e){var a=Object(o.map)(e.alts,(function(e){return e+1}));return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:a,prefixPath:e.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[e.alts]}}))}(c,a,e,r),h=k(c,a,e,r);return n.concat(d,h)}),[])}var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return h(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(d.GAstVisitor);function I(e,t){var n=new b;e.accept(n);var r=n.alternations;return o.reduce(r,(function(n,r){return r.definition.length>255&&n.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:i.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}),n}),[])}function _(e,t,n){var r=[];return Object(o.forEach)(e,(function(e){var a=new M;e.accept(a);var u=a.allProductions;Object(o.forEach)(u,(function(a){var u=Object(s.getProdType)(a),l=a.maxLookahead||t,c=a.idx,d=Object(s.getLookaheadPathsForOptionalProd)(c,e,u,l)[0];if(Object(o.isEmpty)(Object(o.flatten)(d))){var h=n.buildEmptyRepetitionError({topLevelRule:e,repetition:a});r.push({message:h,type:i.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}}))})),r}function k(e,t,n,r){var a=[],u=Object(o.reduce)(e,(function(e,t,n){var r=Object(o.map)(t,(function(e){return{idx:n,path:e}}));return e.concat(r)}),[]);return Object(o.forEach)(u,(function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var l=e.idx,c=e.path,d=Object(o.findAll)(u,(function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<l&&Object(s.isStrictPrefixOfPath)(e.path,c)})),h=Object(o.map)(d,(function(e){var o=[e.idx+1,l+1],a=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:a,alternatives:o}}));a=a.concat(h)}})),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"PROD_TYPE",(function(){return o})),n.d(t,"getProdType",(function(){return h})),n.d(t,"buildLookaheadFuncForOr",(function(){return f})),n.d(t,"buildLookaheadFuncForOptionalProd",(function(){return p})),n.d(t,"buildAlternativesLookAheadFunc",(function(){return g})),n.d(t,"buildSingleAlternativeLookaheadFunction",(function(){return m})),n.d(t,"lookAheadSequenceFromAlternatives",(function(){return R})),n.d(t,"getLookaheadPathsForOr",(function(){return w})),n.d(t,"getLookaheadPathsForOptionalProd",(function(){return S})),n.d(t,"containsPath",(function(){return O})),n.d(t,"isStrictPrefixOfPath",(function(){return b})),n.d(t,"areTokenCategoriesNotUsed",(function(){return A}));var r,o,i=n(38),a=n(203),s=n(239),u=n(157),l=n(45),c=n(119),d=(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 h(e){if(e instanceof l.Option)return o.OPTION;if(e instanceof l.Repetition)return o.REPETITION;if(e instanceof l.RepetitionMandatory)return o.REPETITION_MANDATORY;if(e instanceof l.RepetitionMandatoryWithSeparator)return o.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof l.RepetitionWithSeparator)return o.REPETITION_WITH_SEPARATOR;if(e instanceof l.Alternation)return o.ALTERNATION;throw Error("non exhaustive match")}function f(e,t,n,r,o,i){var a=w(e,t,n);return i(a,r,A(a)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher,o)}function p(e,t,n,r,o,i){var a=S(e,t,o,n),s=A(a)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher;return i(a[0],s,r)}function g(e,t,n,r){var o=e.length,a=Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return 1===e.length}))}));if(t)return function(t){for(var r=Object(i.map)(t,(function(e){return e.GATE})),a=0;a<o;a++){var s=e[a],u=s.length,l=r[a];if(void 0===l||!1!==l.call(this))e:for(var c=0;c<u;c++){for(var d=s[c],h=d.length,f=0;f<h;f++){var p=this.LA(f+1);if(!1===n(p,d[f]))continue e}return a}}};if(a&&!r){var s=Object(i.map)(e,(function(e){return Object(i.flatten)(e)})),u=Object(i.reduce)(s,(function(e,t,n){return Object(i.forEach)(t,(function(t){Object(i.has)(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),Object(i.forEach)(t.categoryMatches,(function(t){Object(i.has)(e,t)||(e[t]=n)}))})),e}),[]);return function(){var e=this.LA(1);return u[e.tokenTypeIdx]}}return function(){for(var t=0;t<o;t++){var r=e[t],i=r.length;e:for(var a=0;a<i;a++){for(var s=r[a],u=s.length,l=0;l<u;l++){var c=this.LA(l+1);if(!1===n(c,s[l]))continue e}return t}}}}function m(e,t,n){var r=Object(i.every)(e,(function(e){return 1===e.length})),o=e.length;if(r&&!n){var a=Object(i.flatten)(e);if(1===a.length&&Object(i.isEmpty)(a[0].categoryMatches)){var s=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===s}}var u=Object(i.reduce)(a,(function(e,t,n){return e[t.tokenTypeIdx]=!0,Object(i.forEach)(t.categoryMatches,(function(t){e[t]=!0})),e}),[]);return function(){var e=this.LA(1);return!0===u[e.tokenTypeIdx]}}return function(){e:for(var n=0;n<o;n++){for(var r=e[n],i=r.length,a=0;a<i;a++){var s=this.LA(a+1);if(!1===t(s,r[a]))continue e}return!0}return!1}}!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(o||(o={}));var v=function(e){function t(t,n,r){var o=e.call(this)||this;return o.topProd=t,o.targetOccurrence=n,o.targetProdType=r,o}return d(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)},t.prototype.walkOption=function(t,n,r){this.checkIsTarget(t,o.OPTION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOne=function(t,n,r){this.checkIsTarget(t,o.REPETITION_MANDATORY,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOneSep=function(t,n,r){this.checkIsTarget(t,o.REPETITION_MANDATORY_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkMany=function(t,n,r){this.checkIsTarget(t,o.REPETITION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkManySep=function(t,n,r){this.checkIsTarget(t,o.REPETITION_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t}(s.RestWalker),y=function(e){function t(t,n,r){var o=e.call(this)||this;return o.targetOccurrence=t,o.targetProdType=n,o.targetRef=r,o.result=[],o}return d(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,o.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,o.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,o.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,o.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,o.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,o.ALTERNATION)},t}(c.GAstVisitor);function E(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function T(e){for(var t=[""],n=0;n<e.length;n++){for(var r=e[n],o=[],i=0;i<t.length;i++){var a=t[i];o.push(a+"_"+r.tokenTypeIdx);for(var s=0;s<r.categoryMatches.length;s++){var u="_"+r.categoryMatches[s];o.push(a+u)}}t=o}return t}function C(e,t,n){for(var r=0;r<e.length;r++)if(r!==n)for(var o=e[r],i=0;i<t.length;i++){if(!0===o[t[i]])return!1}return!0}function R(e,t){for(var n=Object(i.map)(e,(function(e){return Object(a.possiblePathsFrom)([e],1)})),r=E(n.length),o=Object(i.map)(n,(function(e){var t={};return Object(i.forEach)(e,(function(e){var n=T(e.partialPath);Object(i.forEach)(n,(function(e){t[e]=!0}))})),t})),s=n,u=1;u<=t;u++){var l=s;s=E(l.length);for(var c=function(e){for(var n=l[e],c=0;c<n.length;c++){var d=n[c].partialPath,h=n[c].suffixDef,f=T(d);if(C(o,f,e)||Object(i.isEmpty)(h)||d.length===t){var p=r[e];if(!1===O(p,d)){p.push(d);for(var g=0;g<f.length;g++){var m=f[g];o[e][m]=!0}}}else{var v=Object(a.possiblePathsFrom)(h,u+1,d);s[e]=s[e].concat(v),Object(i.forEach)(v,(function(t){var n=T(t.partialPath);Object(i.forEach)(n,(function(t){o[e][t]=!0}))}))}}},d=0;d<l.length;d++)c(d)}return r}function w(e,t,n,r){var i=new y(e,o.ALTERNATION,r);return t.accept(i),R(i.result,n)}function S(e,t,n,r){var o=new y(e,n);t.accept(o);var i=o.result,a=new v(t,e,n).startWalking();return R([new l.Flat({definition:i}),new l.Flat({definition:a})],r)}function O(e,t){e:for(var n=0;n<e.length;n++){var r=e[n];if(r.length===t.length){for(var o=0;o<r.length;o++){var i=t[o],a=r[o];if(!1===(i===a||void 0!==a.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function b(e,t){return e.length<t.length&&Object(i.every)(e,(function(e,n){var r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}))}function A(e){return Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return Object(i.isEmpty)(e.categoryMatches)}))}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractNextPossibleTokensWalker",(function(){return l})),n.d(t,"NextAfterTokenWalker",(function(){return c})),n.d(t,"AbstractNextTerminalAfterProductionWalker",(function(){return d})),n.d(t,"NextTerminalAfterManyWalker",(function(){return h})),n.d(t,"NextTerminalAfterManySepWalker",(function(){return f})),n.d(t,"NextTerminalAfterAtLeastOneWalker",(function(){return p})),n.d(t,"NextTerminalAfterAtLeastOneSepWalker",(function(){return g})),n.d(t,"possiblePathsFrom",(function(){return m})),n.d(t,"nextPossibleTokensAfter",(function(){return v}));var r,o=n(239),i=n(38),a=n(320),s=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)}),l=function(e){function t(t,n){var r=e.call(this)||this;return r.topProd=t,r.path=n,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return u(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Object(i.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=Object(i.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,n){void 0===n&&(n=[]),this.found||e.prototype.walk.call(this,t,n)},t.prototype.walkProdRef=function(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}},t.prototype.updateExpectedNext=function(){Object(i.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(o.RestWalker),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.path=n,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return u(t,e),t.prototype.walkTerminal=function(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var r=t.concat(n),o=new s.Flat({definition:r});this.possibleTokTypes=Object(a.first)(o),this.found=!0}},t}(l),d=function(e){function t(t,n){var r=e.call(this)||this;return r.topRule=t,r.occurrence=n,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return u(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(o.RestWalker),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkMany=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,t,n,r)},t}(d),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkManySep=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,t,n,r)},t}(d),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkAtLeastOne=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,t,n,r)},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkAtLeastOneSep=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,n,r)},t}(d);function m(e,t,n){void 0===n&&(n=[]),n=Object(i.cloneArr)(n);var r=[],o=0;function a(a){var s=m(a.concat(Object(i.drop)(e,o+1)),t,n);return r.concat(s)}for(;n.length<t&&o<e.length;){var u=e[o];if(u instanceof s.Flat)return a(u.definition);if(u instanceof s.NonTerminal)return a(u.definition);if(u instanceof s.Option)r=a(u.definition);else{if(u instanceof s.RepetitionMandatory)return a(l=u.definition.concat([new s.Repetition({definition:u.definition})]));if(u instanceof s.RepetitionMandatoryWithSeparator)return a(l=[new s.Flat({definition:u.definition}),new s.Repetition({definition:[new s.Terminal({terminalType:u.separator})].concat(u.definition)})]);if(u instanceof s.RepetitionWithSeparator){var l=u.definition.concat([new s.Repetition({definition:[new s.Terminal({terminalType:u.separator})].concat(u.definition)})]);r=a(l)}else if(u instanceof s.Repetition){l=u.definition.concat([new s.Repetition({definition:u.definition})]);r=a(l)}else{if(u instanceof s.Alternation)return Object(i.forEach)(u.definition,(function(e){r=a(e.definition)})),r;if(!(u instanceof s.Terminal))throw Error("non exhaustive match");n.push(u.terminalType)}}o++}return r.push({partialPath:n,suffixDef:Object(i.drop)(e,o)}),r}function v(e,t,n,r){var o=["EXIT_NONE_TERMINAL"],a=!1,u=t.length,l=u-r-1,c=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Object(i.isEmpty)(d);){var h=d.pop();if("EXIT_ALTERNATIVE"!==h){var f=h.def,p=h.idx,g=h.ruleStack,m=h.occurrenceStack;if(!Object(i.isEmpty)(f)){var v=f[0];if("EXIT_NONE_TERMINAL"===v){var E={idx:p,def:Object(i.drop)(f),ruleStack:Object(i.dropRight)(g),occurrenceStack:Object(i.dropRight)(m)};d.push(E)}else if(v instanceof s.Terminal)if(p<u-1){var T=p+1;if(n(t[T],v.terminalType)){E={idx:T,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(E)}}else{if(p!==u-1)throw Error("non exhaustive match");c.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:g,occurrenceStack:m}),a=!0}else if(v instanceof s.NonTerminal){var C=Object(i.cloneArr)(g);C.push(v.nonTerminalName);var R=Object(i.cloneArr)(m);R.push(v.idx);E={idx:p,def:v.definition.concat(o,Object(i.drop)(f)),ruleStack:C,occurrenceStack:R};d.push(E)}else if(v instanceof s.Option){var w={idx:p,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(w),d.push("EXIT_ALTERNATIVE");var S={idx:p,def:v.definition.concat(Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(S)}else if(v instanceof s.RepetitionMandatory){var O=new s.Repetition({definition:v.definition,idx:v.idx});E={idx:p,def:v.definition.concat([O],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(E)}else if(v instanceof s.RepetitionMandatoryWithSeparator){var b=new s.Terminal({terminalType:v.separator});O=new s.Repetition({definition:[b].concat(v.definition),idx:v.idx}),E={idx:p,def:v.definition.concat([O],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(E)}else if(v instanceof s.RepetitionWithSeparator){w={idx:p,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(w),d.push("EXIT_ALTERNATIVE");b=new s.Terminal({terminalType:v.separator});var A=new s.Repetition({definition:[b].concat(v.definition),idx:v.idx});S={idx:p,def:v.definition.concat([A],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(S)}else if(v instanceof s.Repetition){w={idx:p,def:Object(i.drop)(f),ruleStack:g,occurrenceStack:m};d.push(w),d.push("EXIT_ALTERNATIVE");A=new s.Repetition({definition:v.definition,idx:v.idx}),S={idx:p,def:v.definition.concat([A],Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(S)}else if(v instanceof s.Alternation)for(var N=v.definition.length-1;N>=0;N--){var M={idx:p,def:v.definition[N].definition.concat(Object(i.drop)(f)),ruleStack:g,occurrenceStack:m};d.push(M),d.push("EXIT_ALTERNATIVE")}else if(v instanceof s.Flat)d.push({idx:p,def:v.definition.concat(Object(i.drop)(f)),ruleStack:g,occurrenceStack:m});else{if(!(v instanceof s.Rule))throw Error("non exhaustive match");d.push(y(v,p,g,m))}}}else a&&Object(i.last)(d).idx<=l&&d.pop()}return c}function y(e,t,n,r){var o=Object(i.cloneArr)(n);o.push(e.name);var a=Object(i.cloneArr)(r);return a.push(1),{idx:t,def:e.definition,ruleStack:o,occurrenceStack:a}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AdditionOp",(function(){return s})),n.d(t,"PlusOp",(function(){return u})),n.d(t,"MinusOp",(function(){return l})),n.d(t,"MultiplicationOp",(function(){return c})),n.d(t,"TimesOp",(function(){return d})),n.d(t,"DivOp",(function(){return h})),n.d(t,"PowerOp",(function(){return f})),n.d(t,"PercentOp",(function(){return p})),n.d(t,"BooleanOp",(function(){return g})),n.d(t,"EqualsOp",(function(){return m})),n.d(t,"NotEqualOp",(function(){return v})),n.d(t,"GreaterThanOp",(function(){return y})),n.d(t,"LessThanOp",(function(){return E})),n.d(t,"GreaterThanOrEqualOp",(function(){return T})),n.d(t,"LessThanOrEqualOp",(function(){return C})),n.d(t,"ConcatenateOp",(function(){return R})),n.d(t,"LParen",(function(){return w})),n.d(t,"RParen",(function(){return S})),n.d(t,"ArrayLParen",(function(){return O})),n.d(t,"ArrayRParen",(function(){return b})),n.d(t,"StringLiteral",(function(){return A})),n.d(t,"ErrorLiteral",(function(){return N})),n.d(t,"RangeSeparator",(function(){return M})),n.d(t,"ColumnRange",(function(){return I})),n.d(t,"RowRange",(function(){return _})),n.d(t,"ProcedureName",(function(){return k})),n.d(t,"CellReference",(function(){return P})),n.d(t,"NamedExpression",(function(){return D})),n.d(t,"buildLexerConfig",(function(){return F}));var r=n(200),o=n(156),i=n(654),a=n(655);
|
131
131
|
/**
|
132
132
|
* @license
|
133
133
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -152,12 +152,12 @@ class b{constructor(e,t){this.sheet=e,this.indexes=t}normalizedIndexes(){return
|
|
152
152
|
* @license
|
153
153
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
154
154
|
*/
|
155
|
-
class c{constructor(e,t){this.address=e,this.newValue=t}get col(){return this.address.col}get row(){return this.address.row}get sheet(){return this.address.sheet}get value(){return this.newValue}}class d{constructor(e,t){this.name=e,this.newValue=t}}class h{constructor(e,t,n,r){this.config=e,this.namedExpressions=t,this.sheetIndexMapping=n,this.lazilyTransformingService=r}exportChange(e){const t=e.value,n=e.address;if(n.sheet===u.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS){const e=this.namedExpressions.namedExpressionInAddress(n.row);if(!e)throw new Error("Missing named expression");return new d(e.displayName,this.exportScalarOrRange(t))}if(t instanceof s.SimpleRangeValue){const e=[];for(const[r,o]of t.entriesFromTopLeftCorner(n))e.push(new c(o,this.exportValue(r)));return e}return new c(n,this.exportValue(t))}exportValue(e){return e instanceof s.SimpleRangeValue?this.detailedError(new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.ScalarExpected)):this.config.smartRounding&&Object(a.isExtendedNumber)(e)?this.cellValueRounding(Object(a.getRawValue)(e)):e instanceof r.CellError?this.detailedError(e):e===a.EmptyValue?null:Object(a.getRawValue)(e)}exportScalarOrRange(e){return e instanceof s.SimpleRangeValue?e.rawData().map(e=>e.map(e=>this.exportValue(e))):this.exportValue(e)}detailedError(e){var t,n;let r=void 0;const i=null===(t=e.root)||void 0===t?void 0:t.getAddress(this.lazilyTransformingService);return void 0!==i&&(r=i.sheet===u.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS?null===(n=this.namedExpressions.namedExpressionInAddress(i.row))||void 0===n?void 0:n.displayName:Object(l.simpleCellAddressToString)(this.sheetIndexMapping,i,-1)),new o.DetailedCellError(e,this.config.translationPackage.getErrorTranslation(e.type),r)}cellValueRounding(e){if(0===e)return e;const t=Math.floor(Math.log10(Math.abs(e))),n=Math.pow(10,this.config.precisionRounding-t);return e<0?-Math.round(-e*n)/n:Math.round(e*n)/n}}},function(e,t,n){"use strict";n.r(t);var r=n(26);n.d(t,"FunctionPlugin",(function(){return r.FunctionPlugin})),n.d(t,"FunctionArgumentType",(function(){return r.FunctionArgumentType}))},function(e,t,n){var r=n(30),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,t,n){var r=n(45),o=n(63),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(386),o=n(170);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){var r=n(140),o=n(211),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(28),o=n(49),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==c||n!=l&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(84).f,o=n(54),i=n(48)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(271),o=n(49),i=n(102),a=n(48)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(22),o=n(45),i=n(30),a=n(217),s=n(97),u=n(177),l=n(277),c=n(279),d=n(49),h=n(96),f=n(63),p=n(28),g=n(400),m=n(218),v=n(280);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),T=y?"set":"add",C=o[e],R=C&&C.prototype,w=C,S={},O=function(e){var t=i(R[e]);s(R,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(E&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return E&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(E&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(C)||!(E||R.forEach&&!p((function(){(new C).entries().next()})))))w=n.getConstructor(t,e,y,T),u.enable();else if(a(e,!0)){var b=new w,A=b[T](E?{}:-0,1)!=b,N=p((function(){b.has(1)})),M=g((function(e){new C(e)})),I=!E&&p((function(){for(var e=new C,t=5;t--;)e[T](t,t);return!e.has(-0)}));M||((w=t((function(e,t){c(e,R);var n=v(new C,e,w);return h(t)||l(t,n[T],{that:n,AS_ENTRIES:y}),n}))).prototype=R,R.constructor=w),(N||I)&&(O("delete"),O("has"),y&&O("get")),(I||A)&&O(T),E&&R.clear&&delete R.clear}return S[e]=w,r({global:!0,constructor:!0,forced:w!=C},S),m(w,e),E||n.setStrong(w,e,y),w}},function(e,t,n){var r=n(30),o=n(28),i=n(49),a=n(219),s=n(106),u=n(391),l=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),p=!h.exec(l),g=function(e){if(!i(e))return!1;try{return d(l,c,e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,u(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},function(e,t,n){"use strict";var r,o,i=n(66),a=n(30),s=n(56),u=n(417),l=n(283),c=n(140),d=n(123),h=n(107).get,f=n(418),p=n(419),g=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=a("".charAt),E=a("".indexOf),T=a("".replace),C=a("".slice),R=(o=/b*/g,i(m,r=/a/,"a"),i(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(R||S||w||f||p)&&(v=function(e){var t,n,r,o,a,l,c,f=this,p=h(f),O=s(e),b=p.raw;if(b)return b.lastIndex=f.lastIndex,t=i(v,b,O),f.lastIndex=b.lastIndex,t;var A=p.groups,N=w&&f.sticky,M=i(u,f),I=f.source,_=0,k=O;if(N&&(M=T(M,"y",""),-1===E(M,"g")&&(M+="g"),k=C(O,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(O,f.lastIndex-1))&&(I="(?: "+I+")",k=" "+k,_++),n=new RegExp("^(?:"+I+")",M)),S&&(n=new RegExp("^"+I+"$(?!\\s)",M)),R&&(r=f.lastIndex),o=i(m,N?n:f,k),N?o?(o.input=C(o.input,_),o[0]=C(o[0],_),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:R&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(g,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&A)for(o.groups=l=d(null),a=0;a<A.length;a++)l[(c=A[a])[0]]=o[c[1]];return o}),e.exports=v},function(e,t,n){"use strict";n(50);var r=n(179),o=n(97),i=n(222),a=n(28),s=n(48),u=n(127),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=r(/./[h]),m=t(h,""[e],(function(e,t,n,o,a){var s=r(e),u=t.exec;return u===i||u===c.exec?f&&!a?{done:!0,value:g(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(c,h,m[1])}d&&u(c[h],"sham",!0)}},function(e,t,n){var r=n(66),o=n(62),i=n(49),a=n(102),s=n(222),u=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var l=r(n,e,t);return null!==l&&o(l),l}if("RegExp"===a(e))return r(s,e,t);throw u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(22),o=n(743).left,i=n(146),a=n(169);r({target:"Array",proto:!0,forced:!n(422)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(22),o=n(128).findIndex,i=n(168),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPlugin=p,t.getPluginsNames=function(){return[].concat((0,i.default)(d.getItems()),(0,i.default)(h.getItems()))},t.hasPlugin=function(e){return!!p(e)},t.registerPlugin=function(e,t,n){var r=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),i=(0,o.default)(r,3);e=i[0],t=i[1],n=i[2],void 0===p(e)&&function(e,t,n){var r=(0,a.toUpperCaseFirst)(e);if(f.hasItem(r))throw new Error(c(r));void 0===n?h.addItem(r):d.addItem(n,r);f.addItem(r,t)}(e,t,n)},n(20);var o=r(n(24)),i=r(n(32)),a=n(80),s=n(744),u=n(228),l=n(745),c=function(e){return'There is already registered "'.concat(e,'" plugin.')},d=(0,s.createPriorityMap)({errorPriorityExists:function(e){return'There is already registered plugin on priority "'.concat(e,'".')},errorPriorityNaN:function(e){return'The priority "'.concat(e,'" is not a number.')}}),h=(0,l.createUniqueSet)({errorItemExists:c}),f=(0,u.createUniqueMap)({errorIdExists:c});function p(e){var t=(0,a.toUpperCaseFirst)(e);return f.getItem(t)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorIdExists,n=new Map;function r(e,r){if(f(e))throw new Error(t(e));n.set(e,r)}function u(e){return n.delete(e)}function l(){n.clear()}function c(e){var t=h().find((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];return e===o&&r}))||[null];return(0,i.default)(t,1)[0]}function d(e){return n.get(e)}function h(){return(0,o.default)(n)}function f(e){return n.has(e)}return t=(0,a.isFunction)(t)?t:s,{addItem:r,clear:l,getId:c,getItem:d,getItems:h,hasItem:f,removeItem:u}};var o=r(n(32)),i=r(n(24));n(4),n(41),n(1),n(5),n(6),n(229);var a=n(58),s=function(e){return"The id '".concat(e,"' is already declared in a map.")}},function(e,t,n){"use strict";var r=n(22),o=n(128).find,i=n(168),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(572));t.OrderView=o.default;var i=r(n(761));t.SharedOrderView=i.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMap=void 0,n(37);var o=r(n(2)),i=r(n(3)),a=n(36),s=n(12),u=n(58),l=r(n(86)),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.indexedValues=[],this.initValueOrFn=t}return(0,i.default)(e,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(e){var t=this.indexedValues;if(e<t.length)return t[e]}},{key:"setValues",value:function(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}},{key:"setValueAtIndex",value:function(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}},{key:"clear",value:function(){this.setDefaultValues()}},{key:"getLength",value:function(){return this.getValues().length}},{key:"setDefaultValues",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,u.isFunction)(this.initValueOrFn)?(0,a.rangeEach)(t-1,(function(t){return e.indexedValues.push(e.initValueOrFn(t))})):(0,a.rangeEach)(t-1,(function(){return e.indexedValues.push(e.initValueOrFn)})),this.runLocalHooks("change")}},{key:"init",value:function(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}]),e}();t.IndexMap=c,(0,s.mixin)(c,l.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n){return[].concat((0,o.default)(e.slice(0,t)),(0,o.default)(n),(0,o.default)(e.slice(t)))},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(function(e){return!1===t.includes(e)}))},n(20),n(37),n(31),n(40);var o=r(n(32)),i=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.SELECTION_TYPE_UNRECOGNIZED=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPES=void 0,t.detectSelectionType=f,t.isValidCoord=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e<t},t.normalizeSelectionFactory=p,t.transformSelectionToColumnDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=p(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,4),a=i[1],u=i[3],l=Math.max(a,0),c=u-l+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return l+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])},t.transformSelectionToRowDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=p(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,3),a=i[0],u=i[2],l=Math.max(a,0),c=u-l+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return l+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])};var o=r(n(24)),i=r(n(14));n(60),n(188),n(1),n(31),n(40),n(4),n(52),n(5),n(6),n(47),n(89);var a=n(131),s=n(13),u=n(25);t.SELECTION_TYPE_UNRECOGNIZED=0;t.SELECTION_TYPE_EMPTY=1;t.SELECTION_TYPE_ARRAY=2;t.SELECTION_TYPE_OBJECT=3;var l=[3,2];t.SELECTION_TYPES=l;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),h=Symbol("child");function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==h)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===d,o=0;if(n){var s=e[0];if(0===e.length)o=1;else if(r&&s instanceof a.CellRange)o=3;else if(r&&Array.isArray(s))o=f(s,h);else if(e.length>=2&&e.length<=4){var u=!e.some((function(e,t){return!c[t].includes((0,i.default)(e))}));u&&(o=2)}}return o}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!l.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=3===e,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],l=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof l&&(l=o(l))),(0,u.isUndefined)(s)&&(s=i),(0,u.isUndefined)(l)&&(l=a),!r){var c=i,d=a,h=s,f=l;i=Math.min(c,h),a=Math.min(d,f),s=Math.max(c,h),l=Math.max(d,f)}return[i,a,s,l]}}},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=t.RENDERER_TYPE=void 0;var r=n(844);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},function(e,t,n){n(895)},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=n(12),u=r(n(86)),l=n(76),c=function(){function e(t,n){var r=n.id,i=n.stateless,a=void 0===i||i;(0,o.default)(this,e),this.hot=t,this.id=r,this.elements=[],this.hidden=!1,this.stateId="Filters.component.".concat(this.id),this.state=a?null:this.hot.columnIndexMapper.registerMap(this.stateId,new l.LinkedPhysicalIndexToValueMap)}return(0,i.default)(e,[{key:"reset",value:function(){(0,a.arrayEach)(this.elements,(function(e){return e.reset()}))}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return null===this.hot||this.hidden}},{key:"restoreState",value:function(e){this.state&&this.setState(this.state.getValueAtIndex(e))}},{key:"setState",value:function(){throw new Error("The state setting logic is not implemented")}},{key:"saveState",value:function(e){this.state&&this.state.setValueAtIndex(e,this.getState())}},{key:"getState",value:function(){throw new Error("The state gathering logic is not implemented")}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,a.arrayEach)(this.elements,(function(e){return e.destroy()})),this.state=null,this.elements=null,this.hot=null}}]),e}();(0,s.mixin)(c,u.default);var d=c;t.default=d},function(e,t,n){"use strict";n.r(t);var r=n(99);n.d(t,"ArraySize",(function(){return r.ArraySize}));var o=n(17);n.d(t,"CellType",(function(){return o.CellType})),n.d(t,"CellValueType",(function(){return o.CellValueType})),n.d(t,"CellValueDetailedType",(function(){return o.CellValueDetailedType})),n.d(t,"ErrorType",(function(){return o.ErrorType})),n.d(t,"CellError",(function(){return o.CellError}));var i=n(259);n.d(t,"DetailedCellError",(function(){return i.DetailedCellError}));var a=n(206),s=n(163);n.d(t,"AlwaysDense",(function(){return s.AlwaysDense})),n.d(t,"AlwaysSparse",(function(){return s.AlwaysSparse})),n.d(t,"DenseSparseChooseBasedOnThreshold",(function(){return s.DenseSparseChooseBasedOnThreshold}));var u=n(29);n.d(t,"ConfigValueTooBigError",(function(){return u.ConfigValueTooBigError})),n.d(t,"ConfigValueTooSmallError",(function(){return u.ConfigValueTooSmallError})),n.d(t,"EvaluationSuspendedError",(function(){return u.EvaluationSuspendedError})),n.d(t,"ExpectedOneOfValuesError",(function(){return u.ExpectedOneOfValuesError})),n.d(t,"ExpectedValueOfTypeError",(function(){return u.ExpectedValueOfTypeError})),n.d(t,"FunctionPluginValidationError",(function(){return u.FunctionPluginValidationError})),n.d(t,"InvalidAddressError",(function(){return u.InvalidAddressError})),n.d(t,"InvalidArgumentsError",(function(){return u.InvalidArgumentsError})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return u.LanguageAlreadyRegisteredError})),n.d(t,"LanguageNotRegisteredError",(function(){return u.LanguageNotRegisteredError})),n.d(t,"MissingTranslationError",(function(){return u.MissingTranslationError})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return u.NamedExpressionDoesNotExistError})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return u.NamedExpressionNameIsAlreadyTakenError})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return u.NamedExpressionNameIsInvalidError})),n.d(t,"NoOperationToRedoError",(function(){return u.NoOperationToRedoError})),n.d(t,"NoOperationToUndoError",(function(){return u.NoOperationToUndoError})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return u.NoRelativeAddressesAllowedError})),n.d(t,"NoSheetWithIdError",(function(){return u.NoSheetWithIdError})),n.d(t,"NoSheetWithNameError",(function(){return u.NoSheetWithNameError})),n.d(t,"NotAFormulaError",(function(){return u.NotAFormulaError})),n.d(t,"NothingToPasteError",(function(){return u.NothingToPasteError})),n.d(t,"ProtectedFunctionTranslationError",(function(){return u.ProtectedFunctionTranslationError})),n.d(t,"SheetNameAlreadyTakenError",(function(){return u.SheetNameAlreadyTakenError})),n.d(t,"SheetSizeLimitExceededError",(function(){return u.SheetSizeLimitExceededError})),n.d(t,"SourceLocationHasArrayError",(function(){return u.SourceLocationHasArrayError})),n.d(t,"TargetLocationHasArrayError",(function(){return u.TargetLocationHasArrayError})),n.d(t,"UnableToParseError",(function(){return u.UnableToParseError}));var l=n(209);n.d(t,"ExportedCellChange",(function(){return l.ExportedCellChange})),n.d(t,"ExportedNamedExpressionChange",(function(){return l.ExportedNamedExpressionChange}));var c=n(164);n.d(t,"HyperFormula",(function(){return c.HyperFormula}));var d=n(684),h=n(210);n.d(t,"FunctionPlugin",(function(){return h.FunctionPlugin})),n.d(t,"FunctionArgumentType",(function(){return h.FunctionArgumentType}));var f=n(685),p=n(69);n.d(t,"SimpleRangeValue",(function(){return p.SimpleRangeValue}));
|
155
|
+
class c{constructor(e,t){this.address=e,this.newValue=t}get col(){return this.address.col}get row(){return this.address.row}get sheet(){return this.address.sheet}get value(){return this.newValue}}class d{constructor(e,t){this.name=e,this.newValue=t}}class h{constructor(e,t,n,r){this.config=e,this.namedExpressions=t,this.sheetIndexMapping=n,this.lazilyTransformingService=r}exportChange(e){const t=e.value,n=e.address;if(n.sheet===u.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS){const e=this.namedExpressions.namedExpressionInAddress(n.row);if(!e)throw new Error("Missing named expression");return new d(e.displayName,this.exportScalarOrRange(t))}if(t instanceof s.SimpleRangeValue){const e=[];for(const[r,o]of t.entriesFromTopLeftCorner(n))e.push(new c(o,this.exportValue(r)));return e}return new c(n,this.exportValue(t))}exportValue(e){return e instanceof s.SimpleRangeValue?this.detailedError(new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.ScalarExpected)):this.config.smartRounding&&Object(a.isExtendedNumber)(e)?this.cellValueRounding(Object(a.getRawValue)(e)):e instanceof r.CellError?this.detailedError(e):e===a.EmptyValue?null:Object(a.getRawValue)(e)}exportScalarOrRange(e){return e instanceof s.SimpleRangeValue?e.rawData().map(e=>e.map(e=>this.exportValue(e))):this.exportValue(e)}detailedError(e){var t,n;let r=void 0;const i=null===(t=e.root)||void 0===t?void 0:t.getAddress(this.lazilyTransformingService);return void 0!==i&&(r=i.sheet===u.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS?null===(n=this.namedExpressions.namedExpressionInAddress(i.row))||void 0===n?void 0:n.displayName:Object(l.simpleCellAddressToString)(this.sheetIndexMapping,i,-1)),new o.DetailedCellError(e,this.config.translationPackage.getErrorTranslation(e.type),r)}cellValueRounding(e){if(0===e)return e;const t=Math.floor(Math.log10(Math.abs(e))),n=Math.pow(10,this.config.precisionRounding-t);return e<0?-Math.round(-e*n)/n:Math.round(e*n)/n}}},function(e,t,n){"use strict";n.r(t);var r=n(26);n.d(t,"FunctionPlugin",(function(){return r.FunctionPlugin})),n.d(t,"FunctionArgumentType",(function(){return r.FunctionArgumentType}))},function(e,t,n){var r=n(30),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,t,n){var r=n(44),o=n(63),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(386),o=n(170);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){var r=n(140),o=n(211),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(28),o=n(49),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==c||n!=l&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(84).f,o=n(54),i=n(48)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(271),o=n(49),i=n(102),a=n(48)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(22),o=n(44),i=n(30),a=n(217),s=n(97),u=n(177),l=n(277),c=n(279),d=n(49),h=n(96),f=n(63),p=n(28),g=n(400),m=n(218),v=n(280);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),T=y?"set":"add",C=o[e],R=C&&C.prototype,w=C,S={},O=function(e){var t=i(R[e]);s(R,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(E&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return E&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(E&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(C)||!(E||R.forEach&&!p((function(){(new C).entries().next()})))))w=n.getConstructor(t,e,y,T),u.enable();else if(a(e,!0)){var b=new w,A=b[T](E?{}:-0,1)!=b,N=p((function(){b.has(1)})),M=g((function(e){new C(e)})),I=!E&&p((function(){for(var e=new C,t=5;t--;)e[T](t,t);return!e.has(-0)}));M||((w=t((function(e,t){c(e,R);var n=v(new C,e,w);return h(t)||l(t,n[T],{that:n,AS_ENTRIES:y}),n}))).prototype=R,R.constructor=w),(N||I)&&(O("delete"),O("has"),y&&O("get")),(I||A)&&O(T),E&&R.clear&&delete R.clear}return S[e]=w,r({global:!0,constructor:!0,forced:w!=C},S),m(w,e),E||n.setStrong(w,e,y),w}},function(e,t,n){var r=n(30),o=n(28),i=n(49),a=n(219),s=n(106),u=n(391),l=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),p=!h.exec(l),g=function(e){if(!i(e))return!1;try{return d(l,c,e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,u(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},function(e,t,n){"use strict";var r,o,i=n(66),a=n(30),s=n(56),u=n(417),l=n(283),c=n(140),d=n(123),h=n(107).get,f=n(418),p=n(419),g=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=a("".charAt),E=a("".indexOf),T=a("".replace),C=a("".slice),R=(o=/b*/g,i(m,r=/a/,"a"),i(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(R||S||w||f||p)&&(v=function(e){var t,n,r,o,a,l,c,f=this,p=h(f),O=s(e),b=p.raw;if(b)return b.lastIndex=f.lastIndex,t=i(v,b,O),f.lastIndex=b.lastIndex,t;var A=p.groups,N=w&&f.sticky,M=i(u,f),I=f.source,_=0,k=O;if(N&&(M=T(M,"y",""),-1===E(M,"g")&&(M+="g"),k=C(O,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(O,f.lastIndex-1))&&(I="(?: "+I+")",k=" "+k,_++),n=new RegExp("^(?:"+I+")",M)),S&&(n=new RegExp("^"+I+"$(?!\\s)",M)),R&&(r=f.lastIndex),o=i(m,N?n:f,k),N?o?(o.input=C(o.input,_),o[0]=C(o[0],_),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:R&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(g,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&A)for(o.groups=l=d(null),a=0;a<A.length;a++)l[(c=A[a])[0]]=o[c[1]];return o}),e.exports=v},function(e,t,n){"use strict";n(50);var r=n(179),o=n(97),i=n(222),a=n(28),s=n(48),u=n(127),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=r(/./[h]),m=t(h,""[e],(function(e,t,n,o,a){var s=r(e),u=t.exec;return u===i||u===c.exec?f&&!a?{done:!0,value:g(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(c,h,m[1])}d&&u(c[h],"sham",!0)}},function(e,t,n){var r=n(66),o=n(62),i=n(49),a=n(102),s=n(222),u=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var l=r(n,e,t);return null!==l&&o(l),l}if("RegExp"===a(e))return r(s,e,t);throw u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(22),o=n(743).left,i=n(146),a=n(169);r({target:"Array",proto:!0,forced:!n(422)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(22),o=n(128).findIndex,i=n(168),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPlugin=p,t.getPluginsNames=function(){return[].concat((0,i.default)(d.getItems()),(0,i.default)(h.getItems()))},t.hasPlugin=function(e){return!!p(e)},t.registerPlugin=function(e,t,n){var r=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),i=(0,o.default)(r,3);e=i[0],t=i[1],n=i[2],void 0===p(e)&&function(e,t,n){var r=(0,a.toUpperCaseFirst)(e);if(f.hasItem(r))throw new Error(c(r));void 0===n?h.addItem(r):d.addItem(n,r);f.addItem(r,t)}(e,t,n)},n(20);var o=r(n(24)),i=r(n(32)),a=n(80),s=n(744),u=n(228),l=n(745),c=function(e){return'There is already registered "'.concat(e,'" plugin.')},d=(0,s.createPriorityMap)({errorPriorityExists:function(e){return'There is already registered plugin on priority "'.concat(e,'".')},errorPriorityNaN:function(e){return'The priority "'.concat(e,'" is not a number.')}}),h=(0,l.createUniqueSet)({errorItemExists:c}),f=(0,u.createUniqueMap)({errorIdExists:c});function p(e){var t=(0,a.toUpperCaseFirst)(e);return f.getItem(t)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorIdExists,n=new Map;function r(e,r){if(f(e))throw new Error(t(e));n.set(e,r)}function u(e){return n.delete(e)}function l(){n.clear()}function c(e){var t=h().find((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];return e===o&&r}))||[null];return(0,i.default)(t,1)[0]}function d(e){return n.get(e)}function h(){return(0,o.default)(n)}function f(e){return n.has(e)}return t=(0,a.isFunction)(t)?t:s,{addItem:r,clear:l,getId:c,getItem:d,getItems:h,hasItem:f,removeItem:u}};var o=r(n(32)),i=r(n(24));n(4),n(41),n(1),n(5),n(6),n(229);var a=n(58),s=function(e){return"The id '".concat(e,"' is already declared in a map.")}},function(e,t,n){"use strict";var r=n(22),o=n(128).find,i=n(168),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(572));t.OrderView=o.default;var i=r(n(761));t.SharedOrderView=i.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMap=void 0,n(37);var o=r(n(2)),i=r(n(3)),a=n(36),s=n(12),u=n(58),l=r(n(86)),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.indexedValues=[],this.initValueOrFn=t}return(0,i.default)(e,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(e){var t=this.indexedValues;if(e<t.length)return t[e]}},{key:"setValues",value:function(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}},{key:"setValueAtIndex",value:function(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}},{key:"clear",value:function(){this.setDefaultValues()}},{key:"getLength",value:function(){return this.getValues().length}},{key:"setDefaultValues",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,u.isFunction)(this.initValueOrFn)?(0,a.rangeEach)(t-1,(function(t){return e.indexedValues.push(e.initValueOrFn(t))})):(0,a.rangeEach)(t-1,(function(){return e.indexedValues.push(e.initValueOrFn)})),this.runLocalHooks("change")}},{key:"init",value:function(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}]),e}();t.IndexMap=c,(0,s.mixin)(c,l.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n){return[].concat((0,o.default)(e.slice(0,t)),(0,o.default)(n),(0,o.default)(e.slice(t)))},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(function(e){return!1===t.includes(e)}))},n(20),n(37),n(31),n(40);var o=r(n(32)),i=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.SELECTION_TYPE_UNRECOGNIZED=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPES=void 0,t.detectSelectionType=f,t.isValidCoord=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e<t},t.normalizeSelectionFactory=p,t.transformSelectionToColumnDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=p(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,4),a=i[1],u=i[3],l=Math.max(a,0),c=u-l+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return l+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])},t.transformSelectionToRowDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=p(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,3),a=i[0],u=i[2],l=Math.max(a,0),c=u-l+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return l+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])};var o=r(n(24)),i=r(n(14));n(60),n(188),n(1),n(31),n(40),n(4),n(52),n(5),n(6),n(47),n(89);var a=n(131),s=n(13),u=n(25);t.SELECTION_TYPE_UNRECOGNIZED=0;t.SELECTION_TYPE_EMPTY=1;t.SELECTION_TYPE_ARRAY=2;t.SELECTION_TYPE_OBJECT=3;var l=[3,2];t.SELECTION_TYPES=l;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),h=Symbol("child");function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==h)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===d,o=0;if(n){var s=e[0];if(0===e.length)o=1;else if(r&&s instanceof a.CellRange)o=3;else if(r&&Array.isArray(s))o=f(s,h);else if(e.length>=2&&e.length<=4){var u=!e.some((function(e,t){return!c[t].includes((0,i.default)(e))}));u&&(o=2)}}return o}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!l.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=3===e,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],l=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof l&&(l=o(l))),(0,u.isUndefined)(s)&&(s=i),(0,u.isUndefined)(l)&&(l=a),!r){var c=i,d=a,h=s,f=l;i=Math.min(c,h),a=Math.min(d,f),s=Math.max(c,h),l=Math.max(d,f)}return[i,a,s,l]}}},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=t.RENDERER_TYPE=void 0;var r=n(844);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},function(e,t,n){n(895)},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=n(12),u=r(n(86)),l=n(76),c=function(){function e(t,n){var r=n.id,i=n.stateless,a=void 0===i||i;(0,o.default)(this,e),this.hot=t,this.id=r,this.elements=[],this.hidden=!1,this.stateId="Filters.component.".concat(this.id),this.state=a?null:this.hot.columnIndexMapper.registerMap(this.stateId,new l.LinkedPhysicalIndexToValueMap)}return(0,i.default)(e,[{key:"reset",value:function(){(0,a.arrayEach)(this.elements,(function(e){return e.reset()}))}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return null===this.hot||this.hidden}},{key:"restoreState",value:function(e){this.state&&this.setState(this.state.getValueAtIndex(e))}},{key:"setState",value:function(){throw new Error("The state setting logic is not implemented")}},{key:"saveState",value:function(e){this.state&&this.state.setValueAtIndex(e,this.getState())}},{key:"getState",value:function(){throw new Error("The state gathering logic is not implemented")}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,a.arrayEach)(this.elements,(function(e){return e.destroy()})),this.state=null,this.elements=null,this.hot=null}}]),e}();(0,s.mixin)(c,u.default);var d=c;t.default=d},function(e,t,n){"use strict";n.r(t);var r=n(99);n.d(t,"ArraySize",(function(){return r.ArraySize}));var o=n(17);n.d(t,"CellType",(function(){return o.CellType})),n.d(t,"CellValueType",(function(){return o.CellValueType})),n.d(t,"CellValueDetailedType",(function(){return o.CellValueDetailedType})),n.d(t,"ErrorType",(function(){return o.ErrorType})),n.d(t,"CellError",(function(){return o.CellError}));var i=n(259);n.d(t,"DetailedCellError",(function(){return i.DetailedCellError}));var a=n(206),s=n(163);n.d(t,"AlwaysDense",(function(){return s.AlwaysDense})),n.d(t,"AlwaysSparse",(function(){return s.AlwaysSparse})),n.d(t,"DenseSparseChooseBasedOnThreshold",(function(){return s.DenseSparseChooseBasedOnThreshold}));var u=n(29);n.d(t,"ConfigValueTooBigError",(function(){return u.ConfigValueTooBigError})),n.d(t,"ConfigValueTooSmallError",(function(){return u.ConfigValueTooSmallError})),n.d(t,"EvaluationSuspendedError",(function(){return u.EvaluationSuspendedError})),n.d(t,"ExpectedOneOfValuesError",(function(){return u.ExpectedOneOfValuesError})),n.d(t,"ExpectedValueOfTypeError",(function(){return u.ExpectedValueOfTypeError})),n.d(t,"FunctionPluginValidationError",(function(){return u.FunctionPluginValidationError})),n.d(t,"InvalidAddressError",(function(){return u.InvalidAddressError})),n.d(t,"InvalidArgumentsError",(function(){return u.InvalidArgumentsError})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return u.LanguageAlreadyRegisteredError})),n.d(t,"LanguageNotRegisteredError",(function(){return u.LanguageNotRegisteredError})),n.d(t,"MissingTranslationError",(function(){return u.MissingTranslationError})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return u.NamedExpressionDoesNotExistError})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return u.NamedExpressionNameIsAlreadyTakenError})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return u.NamedExpressionNameIsInvalidError})),n.d(t,"NoOperationToRedoError",(function(){return u.NoOperationToRedoError})),n.d(t,"NoOperationToUndoError",(function(){return u.NoOperationToUndoError})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return u.NoRelativeAddressesAllowedError})),n.d(t,"NoSheetWithIdError",(function(){return u.NoSheetWithIdError})),n.d(t,"NoSheetWithNameError",(function(){return u.NoSheetWithNameError})),n.d(t,"NotAFormulaError",(function(){return u.NotAFormulaError})),n.d(t,"NothingToPasteError",(function(){return u.NothingToPasteError})),n.d(t,"ProtectedFunctionTranslationError",(function(){return u.ProtectedFunctionTranslationError})),n.d(t,"SheetNameAlreadyTakenError",(function(){return u.SheetNameAlreadyTakenError})),n.d(t,"SheetSizeLimitExceededError",(function(){return u.SheetSizeLimitExceededError})),n.d(t,"SourceLocationHasArrayError",(function(){return u.SourceLocationHasArrayError})),n.d(t,"TargetLocationHasArrayError",(function(){return u.TargetLocationHasArrayError})),n.d(t,"UnableToParseError",(function(){return u.UnableToParseError}));var l=n(209);n.d(t,"ExportedCellChange",(function(){return l.ExportedCellChange})),n.d(t,"ExportedNamedExpressionChange",(function(){return l.ExportedNamedExpressionChange}));var c=n(164);n.d(t,"HyperFormula",(function(){return c.HyperFormula}));var d=n(684),h=n(210);n.d(t,"FunctionPlugin",(function(){return h.FunctionPlugin})),n.d(t,"FunctionArgumentType",(function(){return h.FunctionArgumentType}));var f=n(685),p=n(69);n.d(t,"SimpleRangeValue",(function(){return p.SimpleRangeValue}));
|
156
156
|
/**
|
157
157
|
* @license
|
158
158
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
159
159
|
*/
|
160
|
-
class g extends c.HyperFormula{}g.HyperFormula=c.HyperFormula,g.ErrorType=o.ErrorType,g.CellError=o.CellError,g.CellType=o.CellType,g.CellValueType=o.CellValueType,g.CellValueDetailedType=o.CellValueDetailedType,g.DetailedCellError=i.DetailedCellError,g.ExportedCellChange=l.ExportedCellChange,g.ExportedNamedExpressionChange=l.ExportedNamedExpressionChange,g.ConfigValueTooBigError=u.ConfigValueTooBigError,g.ConfigValueTooSmallError=u.ConfigValueTooSmallError,g.EvaluationSuspendedError=u.EvaluationSuspendedError,g.ExpectedOneOfValuesError=u.ExpectedOneOfValuesError,g.ExpectedValueOfTypeError=u.ExpectedValueOfTypeError,g.ArraySize=r.ArraySize,g.SimpleRangeValue=p.SimpleRangeValue,g.FunctionPlugin=h.FunctionPlugin,g.FunctionArgumentType=h.FunctionArgumentType,g.FunctionPluginValidationError=u.FunctionPluginValidationError,g.InvalidAddressError=u.InvalidAddressError,g.InvalidArgumentsError=u.InvalidArgumentsError,g.LanguageNotRegisteredError=u.LanguageNotRegisteredError,g.LanguageAlreadyRegisteredError=u.LanguageAlreadyRegisteredError,g.MissingTranslationError=u.MissingTranslationError,g.NamedExpressionDoesNotExistError=u.NamedExpressionDoesNotExistError,g.NamedExpressionNameIsAlreadyTakenError=u.NamedExpressionNameIsAlreadyTakenError,g.NamedExpressionNameIsInvalidError=u.NamedExpressionNameIsInvalidError,g.NoOperationToRedoError=u.NoOperationToRedoError,g.NoOperationToUndoError=u.NoOperationToUndoError,g.NoRelativeAddressesAllowedError=u.NoRelativeAddressesAllowedError,g.NoSheetWithIdError=u.NoSheetWithIdError,g.NoSheetWithNameError=u.NoSheetWithNameError,g.NotAFormulaError=u.NotAFormulaError,g.NothingToPasteError=u.NothingToPasteError,g.ProtectedFunctionTranslationError=u.ProtectedFunctionTranslationError,g.SheetNameAlreadyTakenError=u.SheetNameAlreadyTakenError,g.SheetSizeLimitExceededError=u.SheetSizeLimitExceededError,g.SourceLocationHasArrayError=u.SourceLocationHasArrayError,g.TargetLocationHasArrayError=u.TargetLocationHasArrayError,g.UnableToParseError=u.UnableToParseError;const m=a.Config.defaultConfig.language;c.HyperFormula.registerLanguage(m,d.default),c.HyperFormula.languages[d.default.langCode]=d.default;for(const e of Object.getOwnPropertyNames(f))e.startsWith("_")||c.HyperFormula.registerFunctionPlugin(f[e]);t.default=g,window.HyperFormula=n(237).default},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return r}));var r="6.5.0"},function(e,t,n){"use strict";n.r(t),n.d(t,"RestWalker",(function(){return i}));var r=n(38),o=n(44),i=function(){function e(){}return e.prototype.walk=function(e,t){var n=this;void 0===t&&(t=[]),Object(r.forEach)(e.definition,(function(i,a){var s=Object(r.drop)(e.definition,a+1);if(i instanceof o.NonTerminal)n.walkProdRef(i,s,t);else if(i instanceof o.Terminal)n.walkTerminal(i,s,t);else if(i instanceof o.Flat)n.walkFlat(i,s,t);else if(i instanceof o.Option)n.walkOption(i,s,t);else if(i instanceof o.RepetitionMandatory)n.walkAtLeastOne(i,s,t);else if(i instanceof o.RepetitionMandatoryWithSeparator)n.walkAtLeastOneSep(i,s,t);else if(i instanceof o.RepetitionWithSeparator)n.walkManySep(i,s,t);else if(i instanceof o.Repetition)n.walkMany(i,s,t);else{if(!(i instanceof o.Alternation))throw Error("non exhaustive match");n.walkOr(i,s,t)}}))},e.prototype.walkTerminal=function(e,t,n){},e.prototype.walkProdRef=function(e,t,n){},e.prototype.walkFlat=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkOption=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkAtLeastOne=function(e,t,n){var r=[new o.Option({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkAtLeastOneSep=function(e,t,n){var r=a(e,t,n);this.walk(e,r)},e.prototype.walkMany=function(e,t,n){var r=[new o.Option({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkManySep=function(e,t,n){var r=a(e,t,n);this.walk(e,r)},e.prototype.walkOr=function(e,t,n){var i=this,a=t.concat(n);Object(r.forEach)(e.definition,(function(e){var t=new o.Flat({definition:[e]});i.walk(t,a)}))},e}();function a(e,t,n){return[new o.Option({definition:[new o.Terminal({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}},function(e,t,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var n={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(n,"global");break;case"i":s(n,"ignoreCase");break;case"m":s(n,"multiLine");break;case"u":s(n,"unicode");break;case"y":s(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}u(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}!function(){throw Error("Internal Error - Should never get here!")}()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;u(t)}if(!0!==e||void 0!==t)return u(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),u(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=l;break;case"D":e=l,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return u(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return u(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var n=this.classAtom();if("Character"===n.type&&this.isRangeDash()){this.consumeChar("-");var r=this.classAtom();if("Character"===r.type){if(r.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:r.value})}else a(n.value,e),e.push(i("-")),a(r.value,e)}else a(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++}var t=this.disjunction();this.consumeChar(")");var n={type:"Group",capturing:e,value:t};return e&&(n.idx=this.groupIdx),n},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===o.test(e))throw Error("Expecting a positive integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===r.test(e))throw Error("Expecting an integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return r.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",r=0;r<e;r++){var o=this.popChar();if(!1===n.test(o))throw Error("Expecting a HexDecimal digits");t+=o}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,n=/[0-9a-fA-F]/,r=/[0-9]/,o=/[1-9]/;function i(e){return e.charCodeAt(0)}function a(e,t){void 0!==e.length?e.forEach((function(e){t.push(e)})):t.push(e)}function s(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function u(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}var l=[];for(t=i("0");t<=i("9");t++)l.push(t);var c=[i("_")].concat(l);for(t=i("a");t<=i("z");t++)c.push(t);for(t=i("A");t<=i("Z");t++)c.push(t);var d=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function h(){}return h.prototype.visitChildren=function(e){for(var t in e){var n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach((function(e){this.visit(e)}),this))}},h.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},h.prototype.visitPattern=function(e){},h.prototype.visitFlags=function(e){},h.prototype.visitDisjunction=function(e){},h.prototype.visitAlternative=function(e){},h.prototype.visitStartAnchor=function(e){},h.prototype.visitEndAnchor=function(e){},h.prototype.visitWordBoundary=function(e){},h.prototype.visitNonWordBoundary=function(e){},h.prototype.visitLookahead=function(e){},h.prototype.visitNegativeLookahead=function(e){},h.prototype.visitCharacter=function(e){},h.prototype.visitSet=function(e){},h.prototype.visitGroup=function(e){},h.prototype.visitGroupBackReference=function(e){},h.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:h,VERSION:"0.4.0"}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";n.r(t),n.d(t,"getRegExpAst",(function(){return a})),n.d(t,"clearRegExpParserCache",(function(){return s}));var r=n(240),o={},i=new r.RegExpParser;function a(e){var t=e.toString();if(o.hasOwnProperty(t))return o[t];var n=i.pattern(t);return o[t]=n,n}function s(){o={}}},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultLexerErrorProvider",(function(){return r}));var r={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,r,o){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+n+" characters."}}},function(e,t,n){"use strict";n.r(t),n.d(t,"setNodeLocationOnlyOffset",(function(){return l})),n.d(t,"setNodeLocationFull",(function(){return c})),n.d(t,"addTerminalToCst",(function(){return d})),n.d(t,"addNoneTerminalToCst",(function(){return h})),n.d(t,"NamedDSLMethodsCollectorVisitor",(function(){return f})),n.d(t,"expandAllNestedRuleNames",(function(){return p}));var r,o=n(38),i=n(159),a=n(44),s=n(119),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)});function l(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function c(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function d(e,t,n){void 0===e.children[n]?e.children[n]=[t]:e.children[n].push(t)}function h(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}var f=function(e){function t(t){var n=e.call(this)||this;return n.result=[],n.ruleIdx=t,n}return u(t,e),t.prototype.collectNamedDSLMethod=function(e,t,n){if(!Object(o.isUndefined)(e.name)){var r=void 0;if(e instanceof a.Option||e instanceof a.Repetition||e instanceof a.RepetitionMandatory||e instanceof a.Alternation)r=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof a.RepetitionMandatoryWithSeparator||e instanceof a.RepetitionWithSeparator))throw Error("non exhaustive match");r=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var s=[r],u=Object(i.getKeyForAutomaticLookahead)(this.ruleIdx,n,e.idx);this.result.push({def:s,key:u,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,a.Option,i.OPTION_IDX)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,a.Repetition,i.MANY_IDX)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,a.RepetitionMandatory,i.AT_LEAST_ONE_IDX)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,a.RepetitionMandatoryWithSeparator,i.AT_LEAST_ONE_SEP_IDX)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,a.RepetitionWithSeparator,i.MANY_SEP_IDX)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,a.Alternation,i.OR_IDX);var n=e.definition.length>1;Object(o.forEach)(e.definition,(function(r,s){if(!Object(o.isUndefined)(r.name)){var u=r.definition;u=n?[new a.Option({definition:r.definition})]:r.definition;var l=Object(i.getKeyForAltIndex)(t.ruleIdx,i.OR_IDX,e.idx,s);t.result.push({def:u,key:l,name:r.name,orgProd:r})}}))},t}(s.GAstVisitor);function p(e,t){var n={allRuleNames:[]};return Object(o.forEach)(e,(function(e){var r=t[e.name];n.allRuleNames.push(e.name);var i=new f(r);e.accept(i),Object(o.forEach)(i.result,(function(t){t.def,t.key;var r=t.name;n.allRuleNames.push(e.name+r)}))})),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"generateParserFactory",(function(){return o})),n.d(t,"generateParserModule",(function(){return i}));var r=n(652);function o(e){var t=Object(r.genWrapperFunction)({name:e.name,rules:e.rules}),o=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return o(e.tokenVocabulary,t,n(200))}}function i(e){return Object(r.genUmdModule)({name:e.name,rules:e.rules})}},function(e,t,n){"use strict";n.r(t),n.d(t,"FormulaParser",(function(){return c})),n.d(t,"FormulaLexer",(function(){return d}));var r=n(200),o=n(17),i=n(34),a=n(92),s=n(93),u=n(197),l=n(204);
|
160
|
+
class g extends c.HyperFormula{}g.HyperFormula=c.HyperFormula,g.ErrorType=o.ErrorType,g.CellError=o.CellError,g.CellType=o.CellType,g.CellValueType=o.CellValueType,g.CellValueDetailedType=o.CellValueDetailedType,g.DetailedCellError=i.DetailedCellError,g.ExportedCellChange=l.ExportedCellChange,g.ExportedNamedExpressionChange=l.ExportedNamedExpressionChange,g.ConfigValueTooBigError=u.ConfigValueTooBigError,g.ConfigValueTooSmallError=u.ConfigValueTooSmallError,g.EvaluationSuspendedError=u.EvaluationSuspendedError,g.ExpectedOneOfValuesError=u.ExpectedOneOfValuesError,g.ExpectedValueOfTypeError=u.ExpectedValueOfTypeError,g.ArraySize=r.ArraySize,g.SimpleRangeValue=p.SimpleRangeValue,g.FunctionPlugin=h.FunctionPlugin,g.FunctionArgumentType=h.FunctionArgumentType,g.FunctionPluginValidationError=u.FunctionPluginValidationError,g.InvalidAddressError=u.InvalidAddressError,g.InvalidArgumentsError=u.InvalidArgumentsError,g.LanguageNotRegisteredError=u.LanguageNotRegisteredError,g.LanguageAlreadyRegisteredError=u.LanguageAlreadyRegisteredError,g.MissingTranslationError=u.MissingTranslationError,g.NamedExpressionDoesNotExistError=u.NamedExpressionDoesNotExistError,g.NamedExpressionNameIsAlreadyTakenError=u.NamedExpressionNameIsAlreadyTakenError,g.NamedExpressionNameIsInvalidError=u.NamedExpressionNameIsInvalidError,g.NoOperationToRedoError=u.NoOperationToRedoError,g.NoOperationToUndoError=u.NoOperationToUndoError,g.NoRelativeAddressesAllowedError=u.NoRelativeAddressesAllowedError,g.NoSheetWithIdError=u.NoSheetWithIdError,g.NoSheetWithNameError=u.NoSheetWithNameError,g.NotAFormulaError=u.NotAFormulaError,g.NothingToPasteError=u.NothingToPasteError,g.ProtectedFunctionTranslationError=u.ProtectedFunctionTranslationError,g.SheetNameAlreadyTakenError=u.SheetNameAlreadyTakenError,g.SheetSizeLimitExceededError=u.SheetSizeLimitExceededError,g.SourceLocationHasArrayError=u.SourceLocationHasArrayError,g.TargetLocationHasArrayError=u.TargetLocationHasArrayError,g.UnableToParseError=u.UnableToParseError;const m=a.Config.defaultConfig.language;c.HyperFormula.registerLanguage(m,d.default),c.HyperFormula.languages[d.default.langCode]=d.default;for(const e of Object.getOwnPropertyNames(f))e.startsWith("_")||c.HyperFormula.registerFunctionPlugin(f[e]);t.default=g,window.HyperFormula=n(237).default},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return r}));var r="6.5.0"},function(e,t,n){"use strict";n.r(t),n.d(t,"RestWalker",(function(){return i}));var r=n(38),o=n(45),i=function(){function e(){}return e.prototype.walk=function(e,t){var n=this;void 0===t&&(t=[]),Object(r.forEach)(e.definition,(function(i,a){var s=Object(r.drop)(e.definition,a+1);if(i instanceof o.NonTerminal)n.walkProdRef(i,s,t);else if(i instanceof o.Terminal)n.walkTerminal(i,s,t);else if(i instanceof o.Flat)n.walkFlat(i,s,t);else if(i instanceof o.Option)n.walkOption(i,s,t);else if(i instanceof o.RepetitionMandatory)n.walkAtLeastOne(i,s,t);else if(i instanceof o.RepetitionMandatoryWithSeparator)n.walkAtLeastOneSep(i,s,t);else if(i instanceof o.RepetitionWithSeparator)n.walkManySep(i,s,t);else if(i instanceof o.Repetition)n.walkMany(i,s,t);else{if(!(i instanceof o.Alternation))throw Error("non exhaustive match");n.walkOr(i,s,t)}}))},e.prototype.walkTerminal=function(e,t,n){},e.prototype.walkProdRef=function(e,t,n){},e.prototype.walkFlat=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkOption=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkAtLeastOne=function(e,t,n){var r=[new o.Option({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkAtLeastOneSep=function(e,t,n){var r=a(e,t,n);this.walk(e,r)},e.prototype.walkMany=function(e,t,n){var r=[new o.Option({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkManySep=function(e,t,n){var r=a(e,t,n);this.walk(e,r)},e.prototype.walkOr=function(e,t,n){var i=this,a=t.concat(n);Object(r.forEach)(e.definition,(function(e){var t=new o.Flat({definition:[e]});i.walk(t,a)}))},e}();function a(e,t,n){return[new o.Option({definition:[new o.Terminal({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}},function(e,t,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var n={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(n,"global");break;case"i":s(n,"ignoreCase");break;case"m":s(n,"multiLine");break;case"u":s(n,"unicode");break;case"y":s(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}u(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}!function(){throw Error("Internal Error - Should never get here!")}()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;u(t)}if(!0!==e||void 0!==t)return u(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),u(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=l;break;case"D":e=l,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return u(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return u(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var n=this.classAtom();if("Character"===n.type&&this.isRangeDash()){this.consumeChar("-");var r=this.classAtom();if("Character"===r.type){if(r.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:r.value})}else a(n.value,e),e.push(i("-")),a(r.value,e)}else a(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++}var t=this.disjunction();this.consumeChar(")");var n={type:"Group",capturing:e,value:t};return e&&(n.idx=this.groupIdx),n},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===o.test(e))throw Error("Expecting a positive integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===r.test(e))throw Error("Expecting an integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return r.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",r=0;r<e;r++){var o=this.popChar();if(!1===n.test(o))throw Error("Expecting a HexDecimal digits");t+=o}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,n=/[0-9a-fA-F]/,r=/[0-9]/,o=/[1-9]/;function i(e){return e.charCodeAt(0)}function a(e,t){void 0!==e.length?e.forEach((function(e){t.push(e)})):t.push(e)}function s(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function u(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}var l=[];for(t=i("0");t<=i("9");t++)l.push(t);var c=[i("_")].concat(l);for(t=i("a");t<=i("z");t++)c.push(t);for(t=i("A");t<=i("Z");t++)c.push(t);var d=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function h(){}return h.prototype.visitChildren=function(e){for(var t in e){var n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach((function(e){this.visit(e)}),this))}},h.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},h.prototype.visitPattern=function(e){},h.prototype.visitFlags=function(e){},h.prototype.visitDisjunction=function(e){},h.prototype.visitAlternative=function(e){},h.prototype.visitStartAnchor=function(e){},h.prototype.visitEndAnchor=function(e){},h.prototype.visitWordBoundary=function(e){},h.prototype.visitNonWordBoundary=function(e){},h.prototype.visitLookahead=function(e){},h.prototype.visitNegativeLookahead=function(e){},h.prototype.visitCharacter=function(e){},h.prototype.visitSet=function(e){},h.prototype.visitGroup=function(e){},h.prototype.visitGroupBackReference=function(e){},h.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:h,VERSION:"0.4.0"}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";n.r(t),n.d(t,"getRegExpAst",(function(){return a})),n.d(t,"clearRegExpParserCache",(function(){return s}));var r=n(240),o={},i=new r.RegExpParser;function a(e){var t=e.toString();if(o.hasOwnProperty(t))return o[t];var n=i.pattern(t);return o[t]=n,n}function s(){o={}}},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultLexerErrorProvider",(function(){return r}));var r={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,r,o){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+n+" characters."}}},function(e,t,n){"use strict";n.r(t),n.d(t,"setNodeLocationOnlyOffset",(function(){return l})),n.d(t,"setNodeLocationFull",(function(){return c})),n.d(t,"addTerminalToCst",(function(){return d})),n.d(t,"addNoneTerminalToCst",(function(){return h})),n.d(t,"NamedDSLMethodsCollectorVisitor",(function(){return f})),n.d(t,"expandAllNestedRuleNames",(function(){return p}));var r,o=n(38),i=n(159),a=n(45),s=n(119),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)});function l(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function c(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function d(e,t,n){void 0===e.children[n]?e.children[n]=[t]:e.children[n].push(t)}function h(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}var f=function(e){function t(t){var n=e.call(this)||this;return n.result=[],n.ruleIdx=t,n}return u(t,e),t.prototype.collectNamedDSLMethod=function(e,t,n){if(!Object(o.isUndefined)(e.name)){var r=void 0;if(e instanceof a.Option||e instanceof a.Repetition||e instanceof a.RepetitionMandatory||e instanceof a.Alternation)r=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof a.RepetitionMandatoryWithSeparator||e instanceof a.RepetitionWithSeparator))throw Error("non exhaustive match");r=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var s=[r],u=Object(i.getKeyForAutomaticLookahead)(this.ruleIdx,n,e.idx);this.result.push({def:s,key:u,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,a.Option,i.OPTION_IDX)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,a.Repetition,i.MANY_IDX)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,a.RepetitionMandatory,i.AT_LEAST_ONE_IDX)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,a.RepetitionMandatoryWithSeparator,i.AT_LEAST_ONE_SEP_IDX)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,a.RepetitionWithSeparator,i.MANY_SEP_IDX)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,a.Alternation,i.OR_IDX);var n=e.definition.length>1;Object(o.forEach)(e.definition,(function(r,s){if(!Object(o.isUndefined)(r.name)){var u=r.definition;u=n?[new a.Option({definition:r.definition})]:r.definition;var l=Object(i.getKeyForAltIndex)(t.ruleIdx,i.OR_IDX,e.idx,s);t.result.push({def:u,key:l,name:r.name,orgProd:r})}}))},t}(s.GAstVisitor);function p(e,t){var n={allRuleNames:[]};return Object(o.forEach)(e,(function(e){var r=t[e.name];n.allRuleNames.push(e.name);var i=new f(r);e.accept(i),Object(o.forEach)(i.result,(function(t){t.def,t.key;var r=t.name;n.allRuleNames.push(e.name+r)}))})),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"generateParserFactory",(function(){return o})),n.d(t,"generateParserModule",(function(){return i}));var r=n(652);function o(e){var t=Object(r.genWrapperFunction)({name:e.name,rules:e.rules}),o=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return o(e.tokenVocabulary,t,n(200))}}function i(e){return Object(r.genUmdModule)({name:e.name,rules:e.rules})}},function(e,t,n){"use strict";n.r(t),n.d(t,"FormulaParser",(function(){return c})),n.d(t,"FormulaLexer",(function(){return d}));var r=n(200),o=n(17),i=n(34),a=n(92),s=n(93),u=n(197),l=n(204);
|
161
161
|
/**
|
162
162
|
* @license
|
163
163
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -246,7 +246,7 @@ function a(e,t){var n;let o=t.implementedFunctions[e];const i=null===(n=t.aliase
|
|
246
246
|
/**
|
247
247
|
* @license
|
248
248
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
249
|
-
*/const o=parseFloat(Math.PI.toFixed(14));class i extends r.FunctionPlugin{pi(e,t){return this.runFunction(e.args,t,this.metadata("PI"),()=>o)}sqrtpi(e,t){return this.runFunction(e.args,t,this.metadata("SQRTPI"),e=>Math.sqrt(o*e))}}i.implementedFunctions={PI:{method:"pi",parameters:[]},SQRTPI:{method:"sqrtpi",parameters:[{argumentType:r.FunctionArgumentType.NUMBER,minValue:0}]}}},function(e,t,n){var r=n(45),o=n(265),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(45),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(88),o=n(172),i=n(94),a=function(e){return function(t,n,a){var s,u=r(t),l=i(u),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r=n(22),o=n(66),i=n(114),a=n(176),s=n(49),u=n(693),l=n(269),c=n(396),d=n(218),h=n(127),f=n(97),p=n(48),g=n(174),m=n(394),v=a.PROPER,y=a.CONFIGURABLE,E=m.IteratorPrototype,T=m.BUGGY_SAFARI_ITERATORS,C=p("iterator"),R=function(){return this};e.exports=function(e,t,n,a,p,m,w){u(n,t,a);var S,O,b,A=function(e){if(e===p&&k)return k;if(!T&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",M=!1,I=e.prototype,_=I[C]||I["@@iterator"]||p&&I[p],k=!T&&_||A(p),x="Array"==t&&I.entries||_;if(x&&(S=l(x.call(new e)))!==Object.prototype&&S.next&&(i||l(S)===E||(c?c(S,E):s(S[C])||f(S,C,R)),d(S,N,!0,!0),i&&(g[N]=R)),v&&"values"==p&&_&&"values"!==_.name&&(!i&&y?h(I,"name","values"):(M=!0,k=function(){return o(_,this)})),p)if(O={values:A("values"),keys:m?k:A("keys"),entries:A("entries")},w)for(b in O)(T||M||!(b in I))&&f(I,b,O[b]);else r({target:t,proto:!0,forced:T||M},O);return i&&!w||I[C]===k||f(I,C,k,{name:p}),g[t]=k,O}},function(e,t,n){var r=n(54),o=n(49),i=n(83),a=n(214),s=n(395),u=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},function(e,t){e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){var r={};r[n(48)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(30),o=n(116),i=n(56),a=n(82),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),h=o(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=u(d,h))<55296||r>56319||h+1===f||(c=u(d,h+1))<56320||c>57343?e?s(d,h):r:e?l(d,h,h+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){var r=n(28);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(97);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(102),o=n(88),i=n(143).f,a=n(276),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},function(e,t,n){var r=n(172),o=n(94),i=n(144),a=Array,s=Math.max;e.exports=function(e,t,n){for(var u=o(e),l=r(t,u),c=r(void 0===n?u:n,u),d=a(s(c-l,0)),h=0;l<c;l++,h++)i(d,h,e[l]);return d.length=h,d}},function(e,t,n){var r=n(178),o=n(66),i=n(62),a=n(142),s=n(397),u=n(94),l=n(115),c=n(398),d=n(278),h=n(399),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,E,T,C,R,w=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),b=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),N=r(t,w),M=function(e){return m&&h(m,"normal",e),new p(!0,e)},I=function(e){return S?(i(e),A?N(e[0],e[1],M):N(e[0],e[1])):A?N(e,M):N(e)};if(O)m=e.iterator;else if(b)m=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(y=0,E=u(e);E>y;y++)if((T=I(e[y]))&&l(g,T))return T;return new p(!1)}m=c(e,v)}for(C=O?e.next:m.next;!(R=o(C,m)).done;){try{T=I(R.value)}catch(e){h(m,"throw",e)}if("object"==typeof T&&T&&l(g,T))return T}return new p(!1)}},function(e,t,n){var r=n(219),o=n(124),i=n(96),a=n(174),s=n(48)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},function(e,t,n){var r=n(115),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},function(e,t,n){var r=n(49),o=n(63),i=n(396);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},function(e,t,n){var r=n(700);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(406);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(28),o=n(45).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){"use strict";var r=n(272).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r,o=n(45),i=n(129),a=n(49),s=n(723),u=n(122),l=n(182),c=n(420),d=o.Function,h=/MSIE .\./.test(u)||s&&((r=o.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return h?function(r,o){var s=c(arguments.length,1)>n,u=a(r)?r:d(r),h=s?l(arguments,n):[],f=s?function(){i(u,this,h)}:u;return t?e(f,o):e(f)}:e}},function(e,t,n){var r=n(287),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(63),o=n(102),i=n(48)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(48)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(116),o=n(56),i=n(82),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,n){"use strict";var r=n(0);t.__esModule=!0,t._dataToHTML=function(e){for(var t=e.length,n=["<table>"],r=0;r<t;r+=1){var o=e[r],a=o.length,s=[];0===r&&n.push("<tbody>");for(var u=0;u<a;u+=1){var l=o[u],c=(0,i.isEmpty)(l)?"":l.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(function(e){return'<span style="mso-spacerun: yes">'.concat(" ".repeat(e.length-1)," </span>")})).replace(/\t/gi,"	");s.push("<td>".concat(c,"</td>"))}n.push.apply(n,["<tr>"].concat(s,["</tr>"])),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),i=t.createElement("div");r.appendChild(i);var l=e;if("string"==typeof l){var c=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/<td\b[^>]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("</td>")}));i.insertAdjacentHTML("afterbegin","".concat(c)),l=i.querySelector("table")}if(!l||!u(l))return;var d=i.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),f=l.querySelector("tr"),p=f?Array.from(f.cells).reduce((function(e,t){return e+t.colSpan}),0)-(h?1:0):0,g=l.tFoot&&Array.from(l.tFoot.rows)||[],m=[],v=!1,y=0,E=0;if(l.tHead){var T=Array.from(l.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&m.push(e),!t}));y=T.length,v=y>0,y>1?n.nestedHeaders=Array.from(T).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(h&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):v&&(n.colHeaders=Array.from(T[0].children).reduce((function(e,t,n){return h&&0===n||e.push(t.innerHTML),e}),[]))}m.length&&(n.fixedRowsTop=m.length);g.length&&(n.fixedRowsBottom=g.length);var C=[].concat(m,(0,o.default)(Array.from(l.tBodies).reduce((function(e,t){return e.push.apply(e,(0,o.default)(Array.from(t.rows))),e}),[])),(0,o.default)(g));E=C.length;for(var R=new Array(E),w=0;w<E;w++)R[w]=new Array(p);for(var S=[],O=[],b=0;b<E;b++)for(var A=C[b],N=Array.from(A.cells),M=N.length,I=0;I<M;I++){var _=N[I],k=_.nodeName,x=_.innerHTML,P=_.rowSpan,L=_.colSpan,D=R[b].findIndex((function(e){return void 0===e}));if("TD"===k){if(P>1||L>1){for(var F=b;F<b+P;F++)if(F<E)for(var U=D;U<D+L;U++)R[F][U]=null;var H=_.getAttribute("style"),V=H&&H.includes("mso-ignore:colspan");V||S.push({col:D,row:b,rowspan:P,colspan:L})}var j="";j=d&&/excel/gi.test(d.content)?x.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):x.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),R[b][D]=j.replace(s,(function(e){return a[e]}))}else O.push(x)}S.length&&(n.mergeCells=S);O.length&&(n.rowHeaders=O);R.length&&(n.data=R);return n},t.instanceToHTML=function(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),a=o.length,s=a>0?o[0].length:0,u=["<table>","</table>"],l=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],d=n?1:0,h=t?1:0,f=0;f<a;f+=1){for(var p=t&&0===f,g=[],m=0;m<s;m+=1){var v=!p&&n&&0===m,y="";if(p)y="<th>".concat(e.getColHeader(m-d),"</th>");else if(v)y="<th>".concat(e.getRowHeader(f-h),"</th>");else{var E=o[f][m],T=e.getCellMeta(f-h,m-d),C=T.hidden,R=T.rowspan,w=T.colspan;if(!C){var S=[];if(R&&S.push('rowspan="'.concat(R,'"')),w&&S.push('colspan="'.concat(w,'"')),(0,i.isEmpty)(E))y="<td ".concat(S.join(" "),"></td>");else{var O=E.toString().replace("<","<").replace(">",">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");y="<td ".concat(S.join(" "),">").concat(O,"</td>")}}}g.push(y)}var b=["<tr>"].concat(g,["</tr>"]).join("");p?l.splice(1,0,b):c.splice(-1,0,b)}return u.splice(1,0,l.join(""),c.join("")),u.join("")};var o=r(n(32));n(148),n(50),n(98),n(85),n(57),n(43),n(79),n(1),n(20),n(53),n(740),n(564),n(741),n(225),n(47),n(5),n(35),n(226),n(31),n(40);var i=n(25),a={" ":" ","&":"&","<":"<",">":">"},s=new RegExp(Object.keys(a).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function u(e){return"TABLE"===(e&&e.nodeName||"")}},function(e,t,n){"use strict";t.__esModule=!0,t.RENDER_TYPE=t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){"use strict";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(27)),s=r(n(74)),u=r(n(75));function l(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 c=new WeakMap,d=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,e),(0,a.default)(this,"row",null),(0,a.default)(this,"col",null),l(this,c,{writable:!0,value:!1}),(0,u.default)(this,c,r),void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return(0,i.default)(e,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"normalize",value:function(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}},{key:"clone",value:function(){return new e(this.row,this.col,(0,s.default)(this,c))}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});var o=r;t.default=o},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(27)),s=n(15),u=n(80),l=r(n(51)),c=r(n(771)),d=r(n(292)),h=r(n(568)),f=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"wtTable",void 0),(0,a.default)(this,"wtScroll",void 0),(0,a.default)(this,"wtViewport",void 0),(0,a.default)(this,"wtOverlays",void 0),(0,a.default)(this,"selections",void 0),(0,a.default)(this,"wtEvent",void 0),(0,a.default)(this,"guid","wt_".concat((0,u.randomString)())),(0,a.default)(this,"drawInterrupted",!1),(0,a.default)(this,"drawn",!1),(0,a.default)(this,"domBindings",void 0),(0,a.default)(this,"wtSettings",void 0),this.domBindings={rootTable:t,rootDocument:t.ownerDocument,rootWindow:t.ownerDocument.defaultView},this.wtSettings=n,this.wtScroll=new c.default(this.createScrollDao())}return(0,i.default)(e,[{key:"eventManager",get:function(){return new l.default(this)}},{key:"findOriginalHeaders",value:function(){var e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,s.fastInnerText)(n,e[t])}])}}},{key:"createCellCoords",value:function(e,t){return new d.default(e,t,this.wtSettings.getSetting("rtlMode"))}},{key:"createCellRange",value:function(e,t,n){return new h.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<i)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=n-o){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>=n-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"scrollViewport",value:function(e,t,n,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{key:"createScrollDao",value:function(){var e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}},{key:"getTableDao",value:function(){var e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selections(){return e.selections},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count}}}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){var e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getRenderedColumnsCount:function(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount:function(){return this.dataAccessObject.countColumnsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===o},t.holder=void 0,t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)},t.rootInstanceSymbol=void 0,n(4),n(1),n(5),n(7),n(6),n(60),n(188);var r=new WeakMap;t.holder=r;var o=Symbol("rootInstance");t.rootInstanceSymbol=o},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PhysicalIndexToValueMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(231),d=n(298);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,u.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"insert",value:function(e,t){this.indexedValues=(0,d.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),(0,a.default)((0,l.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,d.getListWithRemovedItems)(this.indexedValues,e),(0,a.default)((0,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.PhysicalIndexToValueMap=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n,r){var a=n.length?n[0]:void 0;return[].concat((0,o.default)(e.slice(0,a)),(0,o.default)(n.map((function(e,t){return(0,i.isFunction)(r)?r(e,t):r}))),(0,o.default)(void 0===a?[]:e.slice(a)))},t.getListWithRemovedItems=function(e,t){return(0,a.arrayFilter)(e,(function(e,n){return!1===t.includes(n)}))},n(20),n(37),n(57),n(31),n(40);var o=r(n(32)),i=n(58),a=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.MapCollection=void 0,t.getRegisteredMapsCounter=function(){return l},n(4),n(41),n(1),n(5),n(6),n(21),n(47);var o=r(n(2)),i=r(n(3)),a=n(25),s=n(12),u=r(n(86)),l=0,c=function(){function e(){(0,o.default)(this,e),this.collection=new Map}return(0,i.default)(e,[{key:"register",value:function(e,t){var n=this;!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(function(){return n.runLocalHooks("change",t)})),l+=1)}},{key:"unregister",value:function(e){var t=this.collection.get(e);(0,a.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}},{key:"unregisterAll",value:function(){var e=this;this.collection.forEach((function(t,n){return e.unregister(n)})),this.collection.clear()}},{key:"get",value:function(e){return(0,a.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}},{key:"getLength",value:function(){return this.collection.size}},{key:"removeFromEvery",value:function(e){this.collection.forEach((function(t){t.remove(e)}))}},{key:"insertToEvery",value:function(e,t){this.collection.forEach((function(n){n.insert(e,t)}))}},{key:"initEvery",value:function(e){this.collection.forEach((function(t){t.init(e)}))}}]),e}();t.MapCollection=c,(0,s.mixin)(c,u.default)},function(e,t,n){"use strict";n(1),n(21),n(43);var r=n(0);t.__esModule=!0;var o={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},i=r(n(587));t.Highlight=i.default;var a=r(n(820));t.Selection=a.default;var s=n(578);t.handleMouseEvent=s.handleMouseEvent;var u=n(233);t.detectSelectionType=u.detectSelectionType,t.normalizeSelectionFactory=u.normalizeSelectionFactory;var l=n(104);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}))},function(e,t,n){n(580)("iterator")},function(e,t,n){var r=n(22),o=n(817);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var r=n(847);t.EDITOR_TYPE=r.EDITOR_TYPE,t.AutocompleteEditor=r.AutocompleteEditor},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var r=n(848);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var r=n(850);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DateEditor=r.DateEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteValidator=t.VALIDATOR_TYPE=void 0;var r=n(869);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(21),n(149);var o=r(n(24)),i=r(n(2)),a=r(n(3)),s=n(15),u=n(13),l=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return(0,a.default)(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){var t=this.hot.getColHeader(0);if(null!=t){var n={row:-1};this.rows.push(n),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,u.arrayEach)(this.rows,(function(t){e(t.row,(0,s.outerHeight)(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,u.arrayEach)(this.columns,(function(t){var n=t.table.getBoundingClientRect().width;e(t.col,Math.ceil(n))}))}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach((function(n){(0,u.arrayEach)(n.strings,(function(n){t.appendChild(e.createColElement(n.col))}))})),t}},{key:"createRow",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),r.appendChild(o)),this.samples.forEach((function(o){(0,u.arrayEach)(o.strings,(function(o){var i=o.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),u=n.createElement("td");u.setAttribute("ghost-table",1),s(t.hot,u,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(u)}))})),r}},{key:"appendColumnHeadersRow",value:function(){var e=this,t=this.hot.rootDocument,n=t.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){var i=t.createElement("th");r.push([-1,i]),n.appendChild(i)}this.samples.forEach((function(e){(0,u.arrayEach)(e.strings,(function(e){var o=e.col,i=t.createElement("th");r.push([o,i]),n.appendChild(i)}))})),this.table.tHead.appendChild(n),(0,u.arrayEach)(r,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];e.hot.view.appendColHeader(r,i)}))}},{key:"createCol",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment();return this.samples.forEach((function(o){(0,u.arrayEach)(o.strings,(function(o){var i=o.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),u=n.createElement("td"),l=n.createElement("tr");u.setAttribute("ghost-table",1),s(t.hot,u,i,e,t.hot.colToProp(e),o.value,a),l.appendChild(u),r.appendChild(l)}))})),r}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view._wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),u=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(u.appendChild(l),o.appendChild(u),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(u),r.appendChild(i),(0,s.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:u,th:l}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div"),o="htGhostTable htAutoSize ".concat(e.trim());return(0,s.addClass)(r,o),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0,t.areValidSortStates=function(e){if(e.some((function(e){return!1===function(e){if(!1===(0,r.isObject)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[i,a].includes(n)}(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat("colHeader"))},t.getNextSortOrder=function(e){if(e===a)return;if(e===i)return a;return i},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;if(Array.from(n).indexOf(t.parentNode)-n.length!=-1)return!1;return!0},t.wasHeaderClickedProperly=function(e,t,n){return-1===e&&t>=0&&!1===(0,o.isRightClick)(n)},n(70),n(71),n(31),n(1),n(57),n(4),n(52),n(5),n(6),n(23),n(47);var r=n(12),o=n(73),i="asc";t.ASC_SORT_STATE=i;var a="desc";t.DESC_SORT_STATE=a;t.HEADER_SPAN_CLASS="colHeader"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{name:"---------"}};t.KEY="---------"},function(e,t,n){"use strict";n(60),n(35),n(16),n(21),n(77);var r=n(0);t.__esModule=!0,t.default=void 0,n(81),n(67),n(43),n(50),n(148),n(98),n(1),n(79),n(20);var o=r(n(27)),i=r(n(2)),a=r(n(3)),s=r(n(939)),u=n(111),l=n(95),c=r(n(404)),d=r(n(51)),h=n(13),f=n(90),p=n(15),g=n(73),m=n(58),v=n(25),y=n(12),E=r(n(86));function T(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?T(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.eventManager=new d.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return(0,a.default)(e,[{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"mousedown",(function(t){return e.onDocumentMouseDown(t)})),this.eventManager.addEventListener(t.document,"contextmenu",(function(t){return e.onDocumentContextMenu(t)})),t=(0,p.getParentWindow)(t)}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"getSelectedItem",value:function(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.hotMenu.getSelectedLast())}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,m.debounce)((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||215,r=!1,o=(0,h.arrayFilter)(this.menuItems,(function(t){return t.key===u.NO_ITEMS&&(r=!0),(0,l.isItemHidden)(t,e.hot)}));if(o.length<1&&!r)o.push((0,u.predefinedItems)()[u.NO_ITEMS]);else if(0===o.length)return;o=(0,l.filterSeparators)(o,u.SEPARATOR);var i=!1,a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(e){return(0,v.isDefined)(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,maxCols:1,columns:[{data:"name",renderer:function(t,n,r,o,i,a){return e.menuItemRenderer(t,n,r,o,i,a)}}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===u.SEPARATOR?1:23},afterOnCellContextMenu:function(t){t.preventDefault(),(0,f.isWindowsOS)()&&i&&e.hasSelectedItem()&&e.close(!0)},beforeOnCellMouseUp:function(t){e.hasSelectedItem()&&(i=!e.isCommandPassive(e.getSelectedItem()),e.executeCommand(t))},afterOnCellMouseUp:function(t){(0,f.isWindowsOS)()&&(0,g.isRightClick)(t)||!i||!e.hasSelectedItem()||((0,f.isMobileBrowser)()||(0,f.isIpadOS)()?setTimeout((function(){return e.close(!0)}),325):e.close(!0))},afterUnlisten:function(){!e.hasSelectedItem()&&e.isOpened()&&e.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new c.default(this.container,a),this.hotMenu.addHook("afterInit",(function(){return e.onAfterInit()})),this.hotMenu.addHook("afterSelection",(function(){return e.onAfterSelection.apply(e,arguments)})),this.hotMenu.init(),this.hotMenu.listen();var s=this.hotMenu.getShortcutManager(),d=s.addContext("menu"),y=C(C({},{group:"menu"}),{},{runOnlyIf:function(t){return!1===(0,p.isInput)(t.target)||!1===e.container.contains(t.target)}});s.setActiveContextName("menu"),d.addShortcuts([{keys:[["Escape"]],callback:function(){e.keyEvent=!0,e.close(),e.keyEvent=!1}},{keys:[["ArrowDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectNextCell(t[0],t[1]):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["ArrowUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectPrevCell(t[0],t[1]):e.selectLastCell(),e.keyEvent=!1}},{keys:[["ArrowRight"]],callback:function(){var t=e.hotMenu.getSelectedLast();if(e.keyEvent=!0,t){var n=e.openSubMenu(t[0]);n&&n.selectFirstCell()}e.keyEvent=!1}},{keys:[["ArrowLeft"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t&&e.isSubMenu()&&(e.close(),e.parentMenu&&e.parentMenu.hotMenu.listen()),e.keyEvent=!1}},{keys:[["Enter"]],callback:function(t){var n=e.hotMenu.getSelectedLast();e.keyEvent=!0,e.hotMenu.getSourceDataAtRow(n[0]).submenu||(e.executeCommand(t),e.close(!0)),e.keyEvent=!1}},{keys:[["PageUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(-e.hotMenu.countVisibleRows(),0):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["PageDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(e.hotMenu.countVisibleRows(),0):e.selectLastCell(),e.keyEvent=!1}}],y),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,l.hasSubMenu)(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,h.arrayEach)(this.hotMenu.getData(),(function(t,n){return e.closeSubMenu(n)}))}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hasSelectedItem()){var t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),!this.isCommandPassive(t)){var n=this.hot.getSelectedRange(),r=n?(0,l.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}}}},{key:"isCommandPassive",value:function(e){var t=e.isCommand,n=e.name,r=e.disabled,o=e.submenu,i=!0===r||"function"==typeof r&&!0===r.call(this.hot);return!1===t||n===u.SEPARATOR||!0===i||o}},{key:"setPosition",value:function(e){var t=new s.default(e,this.container.ownerDocument.defaultView);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),this.hot.isLtr()?this.setHorizontalPositionForLtr(t):this.setHorizontalPositionForRtl(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setHorizontalPositionForRtl",value:function(e){e.fitsOnLeft(this.container)?this.setPositionOnLeftOfCursor(e):this.setPositionOnRightOfCursor(e)}},{key:"setHorizontalPositionForLtr",value:function(e){e.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(e):this.setPositionOnLeftOfCursor(e)}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top+1;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t=e.left;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().right;t+=e.cellWidth+n-(e.left+e.cellWidth)}else t+=this.offset.right;this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().left;t-=e.left-n}this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,l.isSeparator)(e)||(0,l.isDisabled)(e)||(0,l.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,l.isSeparator)(t)||(0,l.isDisabled)(t)||(0,l.isSelectionDisabled)(t)?this.selectPrevCell(e,0):(this.hotMenu.selectCell(e,0,void 0,void 0,!1),this.hotMenu.scrollViewportTo(e,0,!0,!1))}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;r&&((0,l.isSeparator)(r)||(0,l.isDisabled)(r)||(0,l.isSelectionDisabled)(r)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,r=n>=0?this.hotMenu.getCell(n,t):null;r&&((0,l.isSeparator)(r)||(0,l.isDisabled)(r)||(0,l.isSelectionDisabled)(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a,s=this,l=e.getSourceDataAtRow(n),c=this.hot.rootDocument.createElement("div"),d=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),(0,p.empty)(t),(0,p.addClass)(c,"htItemWrapper"),t.appendChild(c),a=l,new RegExp(u.SEPARATOR,"i").test(a.name)?(0,p.addClass)(t,"htSeparator"):"function"==typeof l.renderer?((0,p.addClass)(t,"htCustomMenuRenderer"),t.appendChild(l.renderer(e,c,n,r,o,h))):(0,p.fastInnerHTML)(c,h),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(l)?d(l)?((0,p.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):!function(e){return(0,y.hasOwnProperty)(e,"submenu")}(l)?((0,p.removeClass)(t,["htSubmenu","htDisabled"]),d(l)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,p.addClass)(t,"htSubmenu"),d(l)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,p.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.options.container.ownerDocument,r=t;return r&&((0,m.isFunction)(r)&&(r=null===(r=r.call(this.hot))||(0,v.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(e=n.createElement("div"),(0,p.addClass)(e,"htMenu ".concat(this.options.className)),r&&(0,p.addClass)(e,r),this.options.container.appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view._wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=(0,h.arrayReduce)(t,(function(e,t){return e+(t.name===u.SEPARATOR?1:26)}),0);r.width="".concat(o+3,"px"),r.height="".concat(i+3,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,p.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,p.isChildOf)(e.target,".htMenu")||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&(0,p.hasClass)(e.target,"htCore")&&(0,p.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();(0,y.mixin)(R,E.default);var w=R;t.default=w},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.TYPE_TEXT=t.TYPE_NUMERIC=t.TYPE_DATE=t.TYPES=void 0,t.default=function(e){var t=[],n=e;D[n]||(n="text");return(0,a.arrayEach)(D[n],(function(e){var n;n=e===s.SEPARATOR?{name:s.SEPARATOR}:(0,i.clone)((0,u.getConditionDescriptor)(e)),t.push(n)})),t};var o=r(n(27)),i=n(12),a=n(13),s=n(111),u=n(46),l=n(975);t.CONDITION_NONE=l.CONDITION_NAME;var c=n(619);t.CONDITION_EMPTY=c.CONDITION_NAME;var d=n(976);t.CONDITION_NOT_EMPTY=d.CONDITION_NAME;var h=n(620);t.CONDITION_EQUAL=h.CONDITION_NAME;var f=n(977);t.CONDITION_NOT_EQUAL=f.CONDITION_NAME;var p=n(978);t.CONDITION_GREATER_THAN=p.CONDITION_NAME;var g=n(979);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var m=n(980);t.CONDITION_LESS_THAN=m.CONDITION_NAME;var v=n(981);t.CONDITION_LESS_THAN_OR_EQUAL=v.CONDITION_NAME;var y=n(621);t.CONDITION_BETWEEN=y.CONDITION_NAME;var E=n(982);t.CONDITION_NOT_BETWEEN=E.CONDITION_NAME;var T=n(983);t.CONDITION_BEGINS_WITH=T.CONDITION_NAME;var C=n(984);t.CONDITION_ENDS_WITH=C.CONDITION_NAME;var R=n(624);t.CONDITION_CONTAINS=R.CONDITION_NAME;var w=n(986);t.CONDITION_NOT_CONTAINS=w.CONDITION_NAME;var S=n(623);t.CONDITION_DATE_BEFORE=S.CONDITION_NAME;var O=n(622);t.CONDITION_DATE_AFTER=O.CONDITION_NAME;var b=n(987);t.CONDITION_TOMORROW=b.CONDITION_NAME;var A=n(988);t.CONDITION_TODAY=A.CONDITION_NAME;var N=n(989);t.CONDITION_YESTERDAY=N.CONDITION_NAME;var M=n(990);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var I=n(991);t.CONDITION_TRUE=I.CONDITION_NAME;var _=n(992);t.CONDITION_FALSE=_.CONDITION_NAME;var k=n(312);t.OPERATION_AND=k.OPERATION_ID;var x=n(625);t.OPERATION_OR=x.OPERATION_ID;var P,L=n(626);t.OPERATION_OR_THEN_VARIABLE=L.OPERATION_ID;t.TYPE_NUMERIC="numeric";t.TYPE_TEXT="text";t.TYPE_DATE="date";var D=(P={},(0,o.default)(P,"numeric",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,p.CONDITION_NAME,g.CONDITION_NAME,m.CONDITION_NAME,v.CONDITION_NAME,y.CONDITION_NAME,E.CONDITION_NAME]),(0,o.default)(P,"text",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,T.CONDITION_NAME,C.CONDITION_NAME,s.SEPARATOR,R.CONDITION_NAME,w.CONDITION_NAME]),(0,o.default)(P,"date",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,S.CONDITION_NAME,O.CONDITION_NAME,y.CONDITION_NAME,s.SEPARATOR,b.CONDITION_NAME,A.CONDITION_NAME,N.CONDITION_NAME]),P);t.TYPES=D},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,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 u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(194);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="conjunction";var s=o.FILTERS_LABELS_CONJUNCTION;function u(e,t){return e.every((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("conjunction",s,u)},function(e,t,n){"use strict";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(19)),u=r(n(10)),l=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(15),h=n(12),f=r(n(195));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,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,l.default)(this,n)}}var g=new WeakMap,m=function(e){(0,u.default)(n,e);var t=p(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,h.extend)(n.DEFAULTS,r)),g.set((0,a.default)(i),{}),i.registerHooks(),i}return(0,i.default)(n,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()})),this.addLocalHook("keyup",(function(t){return e.onKeyup(t)}))}},{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=g.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,d.addClass)(this._element,"htUIInput"),(0,d.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=g.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&g.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}],[{key:"DEFAULTS",get:function(){return(0,h.clone)({placeholder:"",type:"text",tagName:"input"})}}]),n}(f.default);t.default=m},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.SETTING_KEYS=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0,n(20),n(1),n(21),n(4),n(52),n(5),n(6),n(57),n(154),n(37),n(31),n(40),n(183),n(89),n(7);var o=r(n(32)),i=r(n(14)),a=r(n(24)),s=r(n(2)),u=r(n(3)),l=r(n(33)),c=r(n(19)),d=r(n(10)),h=r(n(11)),f=r(n(8)),p=r(n(27)),g=r(n(75)),m=r(n(74)),v=n(39),y=r(n(103)),E=n(72),T=n(36),C=n(25),R=n(1006),w=n(1007),S=n(629),O=n(134),b=n(80),A=r(n(59)),N=r(n(1008));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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function I(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 _="formulas";t.PLUGIN_KEY=_;var k=["maxRows","maxColumns","language"];t.SETTING_KEYS=k;t.PLUGIN_PRIORITY=260,A.default.getSingleton().register("afterNamedExpressionAdded"),A.default.getSingleton().register("afterNamedExpressionRemoved"),A.default.getSingleton().register("afterSheetAdded"),A.default.getSingleton().register("afterSheetRemoved"),A.default.getSingleton().register("afterSheetRenamed"),A.default.getSingleton().register("afterFormulasValuesUpdate");var x=function(e){return"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e},P=new WeakMap,L=new WeakMap,D=new WeakMap,F=function(e){(0,d.default)(n,e);var t=M(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),I((0,l.default)(e),P,{writable:!0,value:!1}),I((0,l.default)(e),L,{writable:!0,value:!1}),I((0,l.default)(e),D,{writable:!0,value:[["valuesUpdated",function(){var t;return(t=e).onEngineValuesUpdated.apply(t,arguments)}],["namedExpressionAdded",function(){var t;return(t=e).onEngineNamedExpressionsAdded.apply(t,arguments)}],["namedExpressionRemoved",function(){var t;return(t=e).onEngineNamedExpressionsRemoved.apply(t,arguments)}],["sheetAdded",function(){var t;return(t=e).onEngineSheetAdded.apply(t,arguments)}],["sheetRenamed",function(){var t;return(t=e).onEngineSheetRenamed.apply(t,arguments)}],["sheetRemoved",function(){var t;return(t=e).onEngineSheetRemoved.apply(t,arguments)}]]}),(0,p.default)((0,l.default)(e),"staticRegister",(0,y.default)("formulas")),(0,p.default)((0,l.default)(e),"engine",null),(0,p.default)((0,l.default)(e),"sheetName",null),(0,p.default)((0,l.default)(e),"indexSyncer",null),(0,p.default)((0,l.default)(e),"rowAxisSyncer",null),(0,p.default)((0,l.default)(e),"columnAxisSyncer",null),e}return(0,u.default)(n,[{key:"sheetId",get:function(){return null===this.sheetName?null:this.engine.getSheetId(this.sheetName)}},{key:"isEnabled",value:function(){return!!this.hot.getSettings()[_]}},{key:"enablePlugin",value:function(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,R.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){var r=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==r&&(this.sheetName=r)}this.addHook("beforeLoadData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterLoadData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("beforeUpdateData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterUpdateData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("modifyData",(function(){return t.onModifyData.apply(t,arguments)})),this.addHook("modifySourceData",(function(){return t.onModifySourceData.apply(t,arguments)})),this.addHook("beforeValidate",(function(){return t.onBeforeValidate.apply(t,arguments)})),this.addHook("afterSetSourceDataAtCell",(function(){return t.onAfterSetSourceDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtCell",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtRowProp",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("beforeCreateRow",(function(){return t.onBeforeCreateRow.apply(t,arguments)})),this.addHook("beforeCreateCol",(function(){return t.onBeforeCreateCol.apply(t,arguments)})),this.addHook("afterCreateRow",(function(){return t.onAfterCreateRow.apply(t,arguments)})),this.addHook("afterCreateCol",(function(){return t.onAfterCreateCol.apply(t,arguments)})),this.addHook("beforeRemoveRow",(function(){return t.onBeforeRemoveRow.apply(t,arguments)})),this.addHook("beforeRemoveCol",(function(){return t.onBeforeRemoveCol.apply(t,arguments)})),this.addHook("afterRemoveRow",(function(){return t.onAfterRemoveRow.apply(t,arguments)})),this.addHook("afterRemoveCol",(function(){return t.onAfterRemoveCol.apply(t,arguments)})),this.indexSyncer=new N.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,(function(e){t.hot.addHookOnce("init",(function(){e()}))})),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(function(e,n,r,o){t.rowAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("beforeColumnMove",(function(e,n,r,o){t.columnAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("afterRowMove",(function(e,n,r,o,i){t.rowAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("afterColumnMove",(function(e,n,r,o,i){t.columnAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("beforeColumnFreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart,n)})),this.hot.addHook("afterColumnFreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.hot.addHook("beforeColumnUnfreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart-1,n)})),this.hot.addHook("afterColumnUnfreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.addHook("afterCellMetaReset",(function(){return t.onAfterCellMetaReset.apply(t,arguments)})),this.addHook("beforeUndo",(function(){t.indexSyncer.setPerformUndo(!0),t.engine.undo()})),this.addHook("beforeRedo",(function(){t.indexSyncer.setPerformRedo(!0),t.engine.redo()})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformUndo(!1)})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformRedo(!1)})),this.addHook("afterDetachChild",(function(){return t.onAfterDetachChild.apply(t,arguments)})),this.addHook("beforeAutofill",(function(){return t.onBeforeAutofill.apply(t,arguments)})),(0,m.default)(this,D).forEach((function(e){var n=(0,a.default)(e,2),r=n[0],o=n[1];return t.engine.on(r,o)})),(0,c.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this)}else(0,E.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}},{key:"disablePlugin",value:function(){var e=this;(0,m.default)(this,D).forEach((function(t){var n=(0,a.default)(t,2),r=n[0],o=n[1];return e.engine.off(r,o)})),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(e){var t=(0,S.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,S.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);var r=this.hot.getSettings()[_];if((0,C.isDefined)(r)&&(0,C.isDefined)(r.sheetName)&&r.sheetName!==this.sheetName&&this.switchSheet(r.sheetName),!e.data&&null===this.sheetName){var o=this.hot.getSettings()[_].sheetName;o&&this.engine.doesSheetExist(o)?this.switchSheet(this.sheetName):this.sheetName=this.addSheet(null!=o?o:void 0,this.hot.getSourceDataArray())}(0,c.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this,e)}},{key:"destroy",value:function(){var e=this;(0,m.default)(this,D).forEach((function(t){var n,r=(0,a.default)(t,2),o=r[0],i=r[1];return null===(n=e.engine)||void 0===n?void 0:n.off(o,i)})),(0,g.default)(this,D,null),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"addSheet",value:function(e,t){if((0,C.isDefined)(t)&&!(0,O.isArrayOfArrays)(t))return(0,E.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,E.warn)("Sheet with the provided name already exists."),!1;try{var n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,E.warn)(e.message),!1}}},{key:"switchSheet",value:function(e){if(this.engine.doesSheetExist(e)){this.sheetName=e;var t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,"".concat((0,b.toUpperCaseFirst)(_),".switchSheet"))}else(0,E.error)("The sheet named `".concat(e,"` does not exist, switch aborted."))}},{key:"getCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId,r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}},{key:"isFormulaCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}},{key:"renderDependentSheets",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Set;e.forEach((function(e){var t,n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))})),(0,R.getRegisteredHotInstances)(this.engine).forEach((function(e,o){var i;(n||o!==t.sheetId)&&r.has(o)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())}))}},{key:"validateDependentCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(e){var t,n=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{},r=n.row,o=n.col,i=n.sheet;return(0,C.isDefined)(i)?"".concat(i,":").concat(r,"x").concat(o):""},o=new Set(n.map((function(e){return r(e)})));e.forEach((function(e){var n,i,a=null!==(n=e.address)&&void 0!==n?n:{},s=a.row,u=a.col;if(!(!1===(0,C.isDefined)(s)||!1===(0,C.isDefined)(u)||s>=t.hot.countRows()||u>=t.hot.countCols())){var l=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,c=r(e);if(void 0!==l&&!o.has(c)){var d=(0,R.getRegisteredHotInstances)(t.engine).get(l);if(!d)return;d.validateCell(d.getDataAtCell(s,u),d.getCellMeta(s,u),(function(){}))}}}))}},{key:"syncChangeWithEngine",value:function(e,t,n){var r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(this.engine.isItPossibleToSetCellContents(r)){var o=this.hot.getCellMeta(e,t);return(0,w.isDate)(n,o.type)&&((0,w.isDateValid)(n,o.dateFormat)?n=(0,w.getDateInHfFormat)(n,o.dateFormat):!1===(0,w.isFormula)(n)&&(n="'".concat(n))),this.engine.setCellContents(r,n)}(0,E.warn)("Not possible to set cell data at ".concat(JSON.stringify(r)))}},{key:"onBeforeValidate",value:function(e,t,n){var r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){var o={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},a=this.hot.getCellMeta(t,r),s=this.engine.getCellValue(o);return"date"===a.type&&(0,T.isNumeric)(s)&&(s=(0,w.getDateFromExcelDate)(s,a.dateFormat)),"object"===(0,i.default)(s)&&null!==s?s.value:s}return e}},{key:"onBeforeAutofill",value:function(e,t,n){var r=t.getTopStartCorner(),o=r.row,i=r.col,a=t.getBottomEndCorner(),s=a.row,u=a.col,l=n.getTopStartCorner(),c=l.row,d=l.col,h=n.getBottomEndCorner(),f=h.row,p=h.col,g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:this.sheetId}},m={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(c),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(d),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(f),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(p),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(m))return!1;for(var v=this.engine.getFillRangeData(g,m),y=g.start,E=y.row,T=y.col,C=g.end,R=C.row-E+1,S=C.col-T+1,O=0;O<v.length;O+=1)for(var b=0;b<v[O].length;b+=1){var A=v[O][b],N=O%R,M=b%S,I=this.hot.getCellMeta(N,M);(0,w.isDate)(A,I.type)&&(A.startsWith("'")?v[O][b]=A.slice(1):!1===this.isFormulaCellType(N,M,this.sheetId)&&(v[O][b]=(0,w.getDateInHotFormat)(A,I.dateFormat)))}return v}},{key:"onBeforeLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";n.includes((0,b.toUpperCaseFirst)(_))||(0,g.default)(this,L,(0,C.isUndefined)(this.hot.getSettings().data))}},{key:"onAfterCellMetaReset",value:function(){var e=this,t=this.hot.getSourceDataArray(),n=!1;t.forEach((function(r,o){r.forEach((function(r,i){var a=e.hot.getCellMeta(o,i),s=a.dateFormat;(0,w.isDate)(r,a.type)&&(n=!0,(0,w.isDateValid)(r,s)?t[o][i]=(0,w.getDateInHfFormat)(r,s):!1===e.isFormulaCellType(o,i)&&(t[o][i]="'".concat(r)))}))})),!0===n&&((0,g.default)(this,P,!0),this.engine.setSheetContent(this.sheetId,t),(0,g.default)(this,P,!1))}},{key:"onAfterLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n.includes((0,b.toUpperCaseFirst)(_)))if(this.sheetName=(0,R.setupSheet)(this.engine,this.hot.getSettings()[_].sheetName),(0,m.default)(this,L))this.switchSheet(this.sheetName);else{var r=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,r)){(0,g.default)(this,P,!0);var o=this.engine.setSheetContent(this.sheetId,r);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(o),(0,g.default)(this,P,!1)}}}},{key:"onModifyData",value:function(e,t,n,r){if("get"===r&&!(0,m.default)(this,P)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e);if(null!==o&&null!==t){if(!this.isFormulaCellType(o,t))if("ARRAY"!==this.getCellType(o,t))return void((0,w.isEscapedFormulaExpression)(n.value)&&(n.value=(0,w.unescapeFormulaExpression)(n.value)));var a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId},s=this.engine.getCellValue(a),u=this.hot.getCellMeta(o,t);"date"===u.type&&(0,T.isNumeric)(s)&&(s=(0,w.getDateFromExcelDate)(s,u.dateFormat));var l="object"===(0,i.default)(s)&&null!==s?s.value:s;n.value=l}}}},{key:"onModifySourceData",value:function(e,t,n,r){if("get"===r&&!(0,m.default)(this,P)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null!==o&&null!==i){if(!this.isFormulaCellType(o,i))if("ARRAY"!==this.getCellType(o,i))return;var a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0!==a.width||0!==a.height){var s={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(s)}}}}},{key:"onAfterSetDataAtCell",value:function(e,t){var n=this;if(!x(t)){var r=[],o=[],i=this.engine.batch((function(){e.forEach((function(e){var t=(0,a.default)(e,4),i=t[0],s=t[1],u=t[3],l=n.hot.propToCol(s),c=n.hot.toPhysicalRow(i),d=n.hot.toPhysicalColumn(l),h={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:n.sheetId};null!==c&&null!==d?n.syncChangeWithEngine(i,l,u):r.push([i,l,u]),o.push({address:h})}))}));r.length&&this.hot.addHookOnce("afterChange",(function(){var e=n.engine.batch((function(){r.forEach((function(e){var t=(0,a.default)(e,3),r=t[0],o=t[1],i=t[2];n.syncChangeWithEngine(r,o,i)}))}));n.renderDependentSheets(e,!0)})),this.renderDependentSheets(i),this.validateDependentCells(i,o)}}},{key:"onAfterSetSourceDataAtCell",value:function(e,t){var n=this;if(!x(t)){var r=[],i=[];e.forEach((function(e){var t=(0,a.default)(e,4),s=t[0],u=t[1],l=t[3],c=n.hot.propToCol(u);if((0,T.isNumeric)(c)){var d={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:n.sheetId};n.engine.isItPossibleToSetCellContents(d)?(i.push({address:d}),r.push.apply(r,(0,o.default)(n.engine.setCellContents(d,l)))):(0,E.warn)("Not possible to set source cell data at ".concat(JSON.stringify(d)))}})),this.renderDependentSheets(r),this.validateDependentCells(r,i)}}},{key:"onBeforeCreateRow",value:function(e,t){var n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}},{key:"onBeforeCreateCol",value:function(e,t){var n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this;return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveRows(r.sheetId,[e,1])}))&&void 0}},{key:"onBeforeRemoveCol",value:function(e,t,n){var r=this;return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveColumns(r.sheetId,[e,1])}))&&void 0}},{key:"onAfterCreateRow",value:function(e,t,n){if(!x(n)){var r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterCreateCol",value:function(e,t,n){if(!x(n)){var r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(!x(r)){var i=this.rowAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeRows(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterRemoveCol",value:function(e,t,n,r){var o=this;if(!x(r)){var i=this.columnAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeColumns(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterDetachChild",value:function(e,t,n){var r,o=this;(0,g.default)(this,P,!0);var i=this.hot.getSourceDataArray(n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());(0,g.default)(this,P,!1),i.forEach((function(e,t){e.forEach((function(e,r){o.engine.setCellContents({col:r,row:n+t,sheet:o.sheetId},[[e]])}))}))}},{key:"onEngineValuesUpdated",value:function(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}},{key:"onEngineNamedExpressionsAdded",value:function(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}},{key:"onEngineNamedExpressionsRemoved",value:function(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}},{key:"onEngineSheetAdded",value:function(e){this.hot.runHooks("afterSheetAdded",e)}},{key:"onEngineSheetRenamed",value:function(e,t){this.hot.runHooks("afterSheetRenamed",e,t)}},{key:"onEngineSheetRemoved",value:function(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}}],[{key:"PLUGIN_KEY",get:function(){return _}},{key:"PLUGIN_PRIORITY",get:function(){return 260}},{key:"SETTING_KEYS",get:function(){return[_].concat(k)}}]),n}(v.BasePlugin);t.Formulas=F},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,i,a,s,u=r(n(64)),l=r(n(2)),c=r(n(3)),d=n(65),h=function(){function e(t,n,r,o,i,a){(0,l.default)(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1,this.cellCoordsFactory=i,this.cellRangeFactory=a}return(0,c.default)(e,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),u=this[i],l=this[i]+this[o]-1;if(u>=t&&(this[i]+=n),n>0)t<=l&&t>u&&(this[o]+=n);else if(n<0){if(a<=u&&s>=l)return this.removed=!0,!1;if(u>=a&&u<=s){var c=s-u+1,d=Math.abs(n)-c;this[i]-=d+n,this[o]-=c}else if(u<=a&&l>=s)this[o]+=n;else if(u<=a&&l>=a&&l<s){var h=l-a+1;this[o]-=h}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,d.toSingleLine)(o||(o=(0,u.default)(["The merged cell declared with {row: ",", col: ",", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."])),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,d.toSingleLine)(i||(i=(0,u.default)(["The merged cell declared at [",", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."])),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,d.toSingleLine)(a||(a=(0,u.default)(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'])),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,d.toSingleLine)(s||(s=(0,u.default)(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'])),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),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(3)),i=r(n(2)),a=(0,o.default)((function e(t,n){(0,i.default)(this,e),this.hot=n,this.plugin=t}));t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"DependencyGraph",(function(){return C}));var r=n(78),o=n(196),i=n(17),a=n(247),s=n(34),u=n(42),l=n(69),c=n(61),d=n(161),h=n(113),f=n(112),p=n(250),g=n(251),m=n(656),v=n(105),y=n(253),E=n(254),T=n(255);
|
249
|
+
*/const o=parseFloat(Math.PI.toFixed(14));class i extends r.FunctionPlugin{pi(e,t){return this.runFunction(e.args,t,this.metadata("PI"),()=>o)}sqrtpi(e,t){return this.runFunction(e.args,t,this.metadata("SQRTPI"),e=>Math.sqrt(o*e))}}i.implementedFunctions={PI:{method:"pi",parameters:[]},SQRTPI:{method:"sqrtpi",parameters:[{argumentType:r.FunctionArgumentType.NUMBER,minValue:0}]}}},function(e,t,n){var r=n(44),o=n(265),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(44),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(88),o=n(172),i=n(94),a=function(e){return function(t,n,a){var s,u=r(t),l=i(u),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r=n(22),o=n(66),i=n(114),a=n(176),s=n(49),u=n(693),l=n(269),c=n(396),d=n(218),h=n(127),f=n(97),p=n(48),g=n(174),m=n(394),v=a.PROPER,y=a.CONFIGURABLE,E=m.IteratorPrototype,T=m.BUGGY_SAFARI_ITERATORS,C=p("iterator"),R=function(){return this};e.exports=function(e,t,n,a,p,m,w){u(n,t,a);var S,O,b,A=function(e){if(e===p&&k)return k;if(!T&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",M=!1,I=e.prototype,_=I[C]||I["@@iterator"]||p&&I[p],k=!T&&_||A(p),x="Array"==t&&I.entries||_;if(x&&(S=l(x.call(new e)))!==Object.prototype&&S.next&&(i||l(S)===E||(c?c(S,E):s(S[C])||f(S,C,R)),d(S,N,!0,!0),i&&(g[N]=R)),v&&"values"==p&&_&&"values"!==_.name&&(!i&&y?h(I,"name","values"):(M=!0,k=function(){return o(_,this)})),p)if(O={values:A("values"),keys:m?k:A("keys"),entries:A("entries")},w)for(b in O)(T||M||!(b in I))&&f(I,b,O[b]);else r({target:t,proto:!0,forced:T||M},O);return i&&!w||I[C]===k||f(I,C,k,{name:p}),g[t]=k,O}},function(e,t,n){var r=n(54),o=n(49),i=n(83),a=n(214),s=n(395),u=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},function(e,t){e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){var r={};r[n(48)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(30),o=n(116),i=n(56),a=n(82),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),h=o(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=u(d,h))<55296||r>56319||h+1===f||(c=u(d,h+1))<56320||c>57343?e?s(d,h):r:e?l(d,h,h+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){var r=n(28);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(97);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(102),o=n(88),i=n(143).f,a=n(276),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},function(e,t,n){var r=n(172),o=n(94),i=n(144),a=Array,s=Math.max;e.exports=function(e,t,n){for(var u=o(e),l=r(t,u),c=r(void 0===n?u:n,u),d=a(s(c-l,0)),h=0;l<c;l++,h++)i(d,h,e[l]);return d.length=h,d}},function(e,t,n){var r=n(178),o=n(66),i=n(62),a=n(142),s=n(397),u=n(94),l=n(115),c=n(398),d=n(278),h=n(399),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,E,T,C,R,w=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),b=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),N=r(t,w),M=function(e){return m&&h(m,"normal",e),new p(!0,e)},I=function(e){return S?(i(e),A?N(e[0],e[1],M):N(e[0],e[1])):A?N(e,M):N(e)};if(O)m=e.iterator;else if(b)m=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(y=0,E=u(e);E>y;y++)if((T=I(e[y]))&&l(g,T))return T;return new p(!1)}m=c(e,v)}for(C=O?e.next:m.next;!(R=o(C,m)).done;){try{T=I(R.value)}catch(e){h(m,"throw",e)}if("object"==typeof T&&T&&l(g,T))return T}return new p(!1)}},function(e,t,n){var r=n(219),o=n(124),i=n(96),a=n(174),s=n(48)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},function(e,t,n){var r=n(115),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},function(e,t,n){var r=n(49),o=n(63),i=n(396);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},function(e,t,n){var r=n(700);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(406);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(28),o=n(44).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){"use strict";var r=n(272).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r,o=n(44),i=n(129),a=n(49),s=n(723),u=n(122),l=n(182),c=n(420),d=o.Function,h=/MSIE .\./.test(u)||s&&((r=o.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return h?function(r,o){var s=c(arguments.length,1)>n,u=a(r)?r:d(r),h=s?l(arguments,n):[],f=s?function(){i(u,this,h)}:u;return t?e(f,o):e(f)}:e}},function(e,t,n){var r=n(287),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(63),o=n(102),i=n(48)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(48)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(116),o=n(56),i=n(82),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,n){"use strict";var r=n(0);t.__esModule=!0,t._dataToHTML=function(e){for(var t=e.length,n=["<table>"],r=0;r<t;r+=1){var o=e[r],a=o.length,s=[];0===r&&n.push("<tbody>");for(var u=0;u<a;u+=1){var l=o[u],c=(0,i.isEmpty)(l)?"":l.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(function(e){return'<span style="mso-spacerun: yes">'.concat(" ".repeat(e.length-1)," </span>")})).replace(/\t/gi,"	");s.push("<td>".concat(c,"</td>"))}n.push.apply(n,["<tr>"].concat(s,["</tr>"])),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),i=t.createElement("div");r.appendChild(i);var l=e;if("string"==typeof l){var c=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/<td\b[^>]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("</td>")}));i.insertAdjacentHTML("afterbegin","".concat(c)),l=i.querySelector("table")}if(!l||!u(l))return;var d=i.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),f=l.querySelector("tr"),p=f?Array.from(f.cells).reduce((function(e,t){return e+t.colSpan}),0)-(h?1:0):0,g=l.tFoot&&Array.from(l.tFoot.rows)||[],m=[],v=!1,y=0,E=0;if(l.tHead){var T=Array.from(l.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&m.push(e),!t}));y=T.length,v=y>0,y>1?n.nestedHeaders=Array.from(T).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(h&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):v&&(n.colHeaders=Array.from(T[0].children).reduce((function(e,t,n){return h&&0===n||e.push(t.innerHTML),e}),[]))}m.length&&(n.fixedRowsTop=m.length);g.length&&(n.fixedRowsBottom=g.length);var C=[].concat(m,(0,o.default)(Array.from(l.tBodies).reduce((function(e,t){return e.push.apply(e,(0,o.default)(Array.from(t.rows))),e}),[])),(0,o.default)(g));E=C.length;for(var R=new Array(E),w=0;w<E;w++)R[w]=new Array(p);for(var S=[],O=[],b=0;b<E;b++)for(var A=C[b],N=Array.from(A.cells),M=N.length,I=0;I<M;I++){var _=N[I],k=_.nodeName,x=_.innerHTML,P=_.rowSpan,L=_.colSpan,D=R[b].findIndex((function(e){return void 0===e}));if("TD"===k){if(P>1||L>1){for(var F=b;F<b+P;F++)if(F<E)for(var U=D;U<D+L;U++)R[F][U]=null;var H=_.getAttribute("style"),V=H&&H.includes("mso-ignore:colspan");V||S.push({col:D,row:b,rowspan:P,colspan:L})}var j="";j=d&&/excel/gi.test(d.content)?x.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):x.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),R[b][D]=j.replace(s,(function(e){return a[e]}))}else O.push(x)}S.length&&(n.mergeCells=S);O.length&&(n.rowHeaders=O);R.length&&(n.data=R);return n},t.instanceToHTML=function(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),a=o.length,s=a>0?o[0].length:0,u=["<table>","</table>"],l=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],d=n?1:0,h=t?1:0,f=0;f<a;f+=1){for(var p=t&&0===f,g=[],m=0;m<s;m+=1){var v=!p&&n&&0===m,y="";if(p)y="<th>".concat(e.getColHeader(m-d),"</th>");else if(v)y="<th>".concat(e.getRowHeader(f-h),"</th>");else{var E=o[f][m],T=e.getCellMeta(f-h,m-d),C=T.hidden,R=T.rowspan,w=T.colspan;if(!C){var S=[];if(R&&S.push('rowspan="'.concat(R,'"')),w&&S.push('colspan="'.concat(w,'"')),(0,i.isEmpty)(E))y="<td ".concat(S.join(" "),"></td>");else{var O=E.toString().replace("<","<").replace(">",">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");y="<td ".concat(S.join(" "),">").concat(O,"</td>")}}}g.push(y)}var b=["<tr>"].concat(g,["</tr>"]).join("");p?l.splice(1,0,b):c.splice(-1,0,b)}return u.splice(1,0,l.join(""),c.join("")),u.join("")};var o=r(n(32));n(148),n(50),n(98),n(85),n(57),n(43),n(79),n(1),n(20),n(53),n(740),n(564),n(741),n(225),n(47),n(5),n(35),n(226),n(31),n(40);var i=n(25),a={" ":" ","&":"&","<":"<",">":">"},s=new RegExp(Object.keys(a).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function u(e){return"TABLE"===(e&&e.nodeName||"")}},function(e,t,n){"use strict";t.__esModule=!0,t.RENDER_TYPE=t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){"use strict";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(27)),s=r(n(74)),u=r(n(75));function l(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 c=new WeakMap,d=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,e),(0,a.default)(this,"row",null),(0,a.default)(this,"col",null),l(this,c,{writable:!0,value:!1}),(0,u.default)(this,c,r),void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return(0,i.default)(e,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"normalize",value:function(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}},{key:"clone",value:function(){return new e(this.row,this.col,(0,s.default)(this,c))}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});var o=r;t.default=o},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(27)),s=n(15),u=n(80),l=r(n(51)),c=r(n(771)),d=r(n(292)),h=r(n(568)),f=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"wtTable",void 0),(0,a.default)(this,"wtScroll",void 0),(0,a.default)(this,"wtViewport",void 0),(0,a.default)(this,"wtOverlays",void 0),(0,a.default)(this,"selections",void 0),(0,a.default)(this,"wtEvent",void 0),(0,a.default)(this,"guid","wt_".concat((0,u.randomString)())),(0,a.default)(this,"drawInterrupted",!1),(0,a.default)(this,"drawn",!1),(0,a.default)(this,"domBindings",void 0),(0,a.default)(this,"wtSettings",void 0),this.domBindings={rootTable:t,rootDocument:t.ownerDocument,rootWindow:t.ownerDocument.defaultView},this.wtSettings=n,this.wtScroll=new c.default(this.createScrollDao())}return(0,i.default)(e,[{key:"eventManager",get:function(){return new l.default(this)}},{key:"findOriginalHeaders",value:function(){var e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,s.fastInnerText)(n,e[t])}])}}},{key:"createCellCoords",value:function(e,t){return new d.default(e,t,this.wtSettings.getSetting("rtlMode"))}},{key:"createCellRange",value:function(e,t,n){return new h.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<i)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=n-o){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>=n-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"scrollViewport",value:function(e,t,n,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{key:"createScrollDao",value:function(){var e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}},{key:"getTableDao",value:function(){var e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selections(){return e.selections},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count}}}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){var e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getRenderedColumnsCount:function(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount:function(){return this.dataAccessObject.countColumnsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===o},t.holder=void 0,t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)},t.rootInstanceSymbol=void 0,n(4),n(1),n(5),n(7),n(6),n(60),n(188);var r=new WeakMap;t.holder=r;var o=Symbol("rootInstance");t.rootInstanceSymbol=o},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PhysicalIndexToValueMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(19)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(231),d=n(298);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,u.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"insert",value:function(e,t){this.indexedValues=(0,d.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),(0,a.default)((0,l.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,d.getListWithRemovedItems)(this.indexedValues,e),(0,a.default)((0,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.PhysicalIndexToValueMap=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n,r){var a=n.length?n[0]:void 0;return[].concat((0,o.default)(e.slice(0,a)),(0,o.default)(n.map((function(e,t){return(0,i.isFunction)(r)?r(e,t):r}))),(0,o.default)(void 0===a?[]:e.slice(a)))},t.getListWithRemovedItems=function(e,t){return(0,a.arrayFilter)(e,(function(e,n){return!1===t.includes(n)}))},n(20),n(37),n(57),n(31),n(40);var o=r(n(32)),i=n(58),a=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.MapCollection=void 0,t.getRegisteredMapsCounter=function(){return l},n(4),n(41),n(1),n(5),n(6),n(21),n(47);var o=r(n(2)),i=r(n(3)),a=n(25),s=n(12),u=r(n(86)),l=0,c=function(){function e(){(0,o.default)(this,e),this.collection=new Map}return(0,i.default)(e,[{key:"register",value:function(e,t){var n=this;!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(function(){return n.runLocalHooks("change",t)})),l+=1)}},{key:"unregister",value:function(e){var t=this.collection.get(e);(0,a.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}},{key:"unregisterAll",value:function(){var e=this;this.collection.forEach((function(t,n){return e.unregister(n)})),this.collection.clear()}},{key:"get",value:function(e){return(0,a.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}},{key:"getLength",value:function(){return this.collection.size}},{key:"removeFromEvery",value:function(e){this.collection.forEach((function(t){t.remove(e)}))}},{key:"insertToEvery",value:function(e,t){this.collection.forEach((function(n){n.insert(e,t)}))}},{key:"initEvery",value:function(e){this.collection.forEach((function(t){t.init(e)}))}}]),e}();t.MapCollection=c,(0,s.mixin)(c,u.default)},function(e,t,n){"use strict";n(1),n(21),n(43);var r=n(0);t.__esModule=!0;var o={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},i=r(n(587));t.Highlight=i.default;var a=r(n(820));t.Selection=a.default;var s=n(578);t.handleMouseEvent=s.handleMouseEvent;var u=n(233);t.detectSelectionType=u.detectSelectionType,t.normalizeSelectionFactory=u.normalizeSelectionFactory;var l=n(104);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}))},function(e,t,n){n(580)("iterator")},function(e,t,n){var r=n(22),o=n(817);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var r=n(847);t.EDITOR_TYPE=r.EDITOR_TYPE,t.AutocompleteEditor=r.AutocompleteEditor},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var r=n(848);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var r=n(850);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DateEditor=r.DateEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteValidator=t.VALIDATOR_TYPE=void 0;var r=n(869);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(21),n(149);var o=r(n(24)),i=r(n(2)),a=r(n(3)),s=n(15),u=n(13),l=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return(0,a.default)(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){var t=this.hot.getColHeader(0);if(null!=t){var n={row:-1};this.rows.push(n),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,u.arrayEach)(this.rows,(function(t){e(t.row,(0,s.outerHeight)(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,u.arrayEach)(this.columns,(function(t){var n=t.table.getBoundingClientRect().width;e(t.col,Math.ceil(n))}))}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach((function(n){(0,u.arrayEach)(n.strings,(function(n){t.appendChild(e.createColElement(n.col))}))})),t}},{key:"createRow",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),r.appendChild(o)),this.samples.forEach((function(o){(0,u.arrayEach)(o.strings,(function(o){var i=o.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),u=n.createElement("td");u.setAttribute("ghost-table",1),s(t.hot,u,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(u)}))})),r}},{key:"appendColumnHeadersRow",value:function(){var e=this,t=this.hot.rootDocument,n=t.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){var i=t.createElement("th");r.push([-1,i]),n.appendChild(i)}this.samples.forEach((function(e){(0,u.arrayEach)(e.strings,(function(e){var o=e.col,i=t.createElement("th");r.push([o,i]),n.appendChild(i)}))})),this.table.tHead.appendChild(n),(0,u.arrayEach)(r,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];e.hot.view.appendColHeader(r,i)}))}},{key:"createCol",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment();return this.samples.forEach((function(o){(0,u.arrayEach)(o.strings,(function(o){var i=o.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),u=n.createElement("td"),l=n.createElement("tr");u.setAttribute("ghost-table",1),s(t.hot,u,i,e,t.hot.colToProp(e),o.value,a),l.appendChild(u),r.appendChild(l)}))})),r}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view._wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),u=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(u.appendChild(l),o.appendChild(u),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(u),r.appendChild(i),(0,s.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:u,th:l}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div"),o="htGhostTable htAutoSize ".concat(e.trim());return(0,s.addClass)(r,o),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0,t.areValidSortStates=function(e){if(e.some((function(e){return!1===function(e){if(!1===(0,r.isObject)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[i,a].includes(n)}(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat("colHeader"))},t.getNextSortOrder=function(e){if(e===a)return;if(e===i)return a;return i},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;if(Array.from(n).indexOf(t.parentNode)-n.length!=-1)return!1;return!0},t.wasHeaderClickedProperly=function(e,t,n){return-1===e&&t>=0&&!1===(0,o.isRightClick)(n)},n(70),n(71),n(31),n(1),n(57),n(4),n(52),n(5),n(6),n(23),n(47);var r=n(12),o=n(73),i="asc";t.ASC_SORT_STATE=i;var a="desc";t.DESC_SORT_STATE=a;t.HEADER_SPAN_CLASS="colHeader"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{name:"---------"}};t.KEY="---------"},function(e,t,n){"use strict";n(60),n(35),n(16),n(21),n(77);var r=n(0);t.__esModule=!0,t.default=void 0,n(81),n(67),n(43),n(50),n(148),n(98),n(1),n(79),n(20);var o=r(n(27)),i=r(n(2)),a=r(n(3)),s=r(n(939)),u=n(111),l=n(95),c=r(n(404)),d=r(n(51)),h=n(13),f=n(90),p=n(15),g=n(73),m=n(58),v=n(25),y=n(12),E=r(n(86));function T(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?T(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.eventManager=new d.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return(0,a.default)(e,[{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"mousedown",(function(t){return e.onDocumentMouseDown(t)})),this.eventManager.addEventListener(t.document,"contextmenu",(function(t){return e.onDocumentContextMenu(t)})),t=(0,p.getParentWindow)(t)}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"getSelectedItem",value:function(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.hotMenu.getSelectedLast())}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,m.debounce)((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||215,r=!1,o=(0,h.arrayFilter)(this.menuItems,(function(t){return t.key===u.NO_ITEMS&&(r=!0),(0,l.isItemHidden)(t,e.hot)}));if(o.length<1&&!r)o.push((0,u.predefinedItems)()[u.NO_ITEMS]);else if(0===o.length)return;o=(0,l.filterSeparators)(o,u.SEPARATOR);var i=!1,a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(e){return(0,v.isDefined)(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,maxCols:1,columns:[{data:"name",renderer:function(t,n,r,o,i,a){return e.menuItemRenderer(t,n,r,o,i,a)}}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===u.SEPARATOR?1:23},afterOnCellContextMenu:function(t){t.preventDefault(),(0,f.isWindowsOS)()&&i&&e.hasSelectedItem()&&e.close(!0)},beforeOnCellMouseUp:function(t){e.hasSelectedItem()&&(i=!e.isCommandPassive(e.getSelectedItem()),e.executeCommand(t))},afterOnCellMouseUp:function(t){(0,f.isWindowsOS)()&&(0,g.isRightClick)(t)||!i||!e.hasSelectedItem()||((0,f.isMobileBrowser)()||(0,f.isIpadOS)()?setTimeout((function(){return e.close(!0)}),325):e.close(!0))},afterUnlisten:function(){!e.hasSelectedItem()&&e.isOpened()&&e.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new c.default(this.container,a),this.hotMenu.addHook("afterInit",(function(){return e.onAfterInit()})),this.hotMenu.addHook("afterSelection",(function(){return e.onAfterSelection.apply(e,arguments)})),this.hotMenu.init(),this.hotMenu.listen();var s=this.hotMenu.getShortcutManager(),d=s.addContext("menu"),y=C(C({},{group:"menu"}),{},{runOnlyIf:function(t){return!1===(0,p.isInput)(t.target)||!1===e.container.contains(t.target)}});s.setActiveContextName("menu"),d.addShortcuts([{keys:[["Escape"]],callback:function(){e.keyEvent=!0,e.close(),e.keyEvent=!1}},{keys:[["ArrowDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectNextCell(t[0],t[1]):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["ArrowUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectPrevCell(t[0],t[1]):e.selectLastCell(),e.keyEvent=!1}},{keys:[["ArrowRight"]],callback:function(){var t=e.hotMenu.getSelectedLast();if(e.keyEvent=!0,t){var n=e.openSubMenu(t[0]);n&&n.selectFirstCell()}e.keyEvent=!1}},{keys:[["ArrowLeft"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t&&e.isSubMenu()&&(e.close(),e.parentMenu&&e.parentMenu.hotMenu.listen()),e.keyEvent=!1}},{keys:[["Enter"]],callback:function(t){var n=e.hotMenu.getSelectedLast();e.keyEvent=!0,e.hotMenu.getSourceDataAtRow(n[0]).submenu||(e.executeCommand(t),e.close(!0)),e.keyEvent=!1}},{keys:[["PageUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(-e.hotMenu.countVisibleRows(),0):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["PageDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(e.hotMenu.countVisibleRows(),0):e.selectLastCell(),e.keyEvent=!1}}],y),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,l.hasSubMenu)(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,h.arrayEach)(this.hotMenu.getData(),(function(t,n){return e.closeSubMenu(n)}))}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hasSelectedItem()){var t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),!this.isCommandPassive(t)){var n=this.hot.getSelectedRange(),r=n?(0,l.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}}}},{key:"isCommandPassive",value:function(e){var t=e.isCommand,n=e.name,r=e.disabled,o=e.submenu,i=!0===r||"function"==typeof r&&!0===r.call(this.hot);return!1===t||n===u.SEPARATOR||!0===i||o}},{key:"setPosition",value:function(e){var t=new s.default(e,this.container.ownerDocument.defaultView);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),this.hot.isLtr()?this.setHorizontalPositionForLtr(t):this.setHorizontalPositionForRtl(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setHorizontalPositionForRtl",value:function(e){e.fitsOnLeft(this.container)?this.setPositionOnLeftOfCursor(e):this.setPositionOnRightOfCursor(e)}},{key:"setHorizontalPositionForLtr",value:function(e){e.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(e):this.setPositionOnLeftOfCursor(e)}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top+1;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t=e.left;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().right;t+=e.cellWidth+n-(e.left+e.cellWidth)}else t+=this.offset.right;this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().left;t-=e.left-n}this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,l.isSeparator)(e)||(0,l.isDisabled)(e)||(0,l.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,l.isSeparator)(t)||(0,l.isDisabled)(t)||(0,l.isSelectionDisabled)(t)?this.selectPrevCell(e,0):(this.hotMenu.selectCell(e,0,void 0,void 0,!1),this.hotMenu.scrollViewportTo(e,0,!0,!1))}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;r&&((0,l.isSeparator)(r)||(0,l.isDisabled)(r)||(0,l.isSelectionDisabled)(r)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,r=n>=0?this.hotMenu.getCell(n,t):null;r&&((0,l.isSeparator)(r)||(0,l.isDisabled)(r)||(0,l.isSelectionDisabled)(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a,s=this,l=e.getSourceDataAtRow(n),c=this.hot.rootDocument.createElement("div"),d=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),(0,p.empty)(t),(0,p.addClass)(c,"htItemWrapper"),t.appendChild(c),a=l,new RegExp(u.SEPARATOR,"i").test(a.name)?(0,p.addClass)(t,"htSeparator"):"function"==typeof l.renderer?((0,p.addClass)(t,"htCustomMenuRenderer"),t.appendChild(l.renderer(e,c,n,r,o,h))):(0,p.fastInnerHTML)(c,h),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(l)?d(l)?((0,p.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):!function(e){return(0,y.hasOwnProperty)(e,"submenu")}(l)?((0,p.removeClass)(t,["htSubmenu","htDisabled"]),d(l)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,p.addClass)(t,"htSubmenu"),d(l)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,p.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.options.container.ownerDocument,r=t;return r&&((0,m.isFunction)(r)&&(r=null===(r=r.call(this.hot))||(0,v.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(e=n.createElement("div"),(0,p.addClass)(e,"htMenu ".concat(this.options.className)),r&&(0,p.addClass)(e,r),this.options.container.appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view._wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=(0,h.arrayReduce)(t,(function(e,t){return e+(t.name===u.SEPARATOR?1:26)}),0);r.width="".concat(o+3,"px"),r.height="".concat(i+3,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,p.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,p.isChildOf)(e.target,".htMenu")||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&(0,p.hasClass)(e.target,"htCore")&&(0,p.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();(0,y.mixin)(R,E.default);var w=R;t.default=w},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.TYPE_TEXT=t.TYPE_NUMERIC=t.TYPE_DATE=t.TYPES=void 0,t.default=function(e){var t=[],n=e;D[n]||(n="text");return(0,a.arrayEach)(D[n],(function(e){var n;n=e===s.SEPARATOR?{name:s.SEPARATOR}:(0,i.clone)((0,u.getConditionDescriptor)(e)),t.push(n)})),t};var o=r(n(27)),i=n(12),a=n(13),s=n(111),u=n(46),l=n(975);t.CONDITION_NONE=l.CONDITION_NAME;var c=n(619);t.CONDITION_EMPTY=c.CONDITION_NAME;var d=n(976);t.CONDITION_NOT_EMPTY=d.CONDITION_NAME;var h=n(620);t.CONDITION_EQUAL=h.CONDITION_NAME;var f=n(977);t.CONDITION_NOT_EQUAL=f.CONDITION_NAME;var p=n(978);t.CONDITION_GREATER_THAN=p.CONDITION_NAME;var g=n(979);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var m=n(980);t.CONDITION_LESS_THAN=m.CONDITION_NAME;var v=n(981);t.CONDITION_LESS_THAN_OR_EQUAL=v.CONDITION_NAME;var y=n(621);t.CONDITION_BETWEEN=y.CONDITION_NAME;var E=n(982);t.CONDITION_NOT_BETWEEN=E.CONDITION_NAME;var T=n(983);t.CONDITION_BEGINS_WITH=T.CONDITION_NAME;var C=n(984);t.CONDITION_ENDS_WITH=C.CONDITION_NAME;var R=n(624);t.CONDITION_CONTAINS=R.CONDITION_NAME;var w=n(986);t.CONDITION_NOT_CONTAINS=w.CONDITION_NAME;var S=n(623);t.CONDITION_DATE_BEFORE=S.CONDITION_NAME;var O=n(622);t.CONDITION_DATE_AFTER=O.CONDITION_NAME;var b=n(987);t.CONDITION_TOMORROW=b.CONDITION_NAME;var A=n(988);t.CONDITION_TODAY=A.CONDITION_NAME;var N=n(989);t.CONDITION_YESTERDAY=N.CONDITION_NAME;var M=n(990);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var I=n(991);t.CONDITION_TRUE=I.CONDITION_NAME;var _=n(992);t.CONDITION_FALSE=_.CONDITION_NAME;var k=n(312);t.OPERATION_AND=k.OPERATION_ID;var x=n(625);t.OPERATION_OR=x.OPERATION_ID;var P,L=n(626);t.OPERATION_OR_THEN_VARIABLE=L.OPERATION_ID;t.TYPE_NUMERIC="numeric";t.TYPE_TEXT="text";t.TYPE_DATE="date";var D=(P={},(0,o.default)(P,"numeric",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,p.CONDITION_NAME,g.CONDITION_NAME,m.CONDITION_NAME,v.CONDITION_NAME,y.CONDITION_NAME,E.CONDITION_NAME]),(0,o.default)(P,"text",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,T.CONDITION_NAME,C.CONDITION_NAME,s.SEPARATOR,R.CONDITION_NAME,w.CONDITION_NAME]),(0,o.default)(P,"date",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,S.CONDITION_NAME,O.CONDITION_NAME,y.CONDITION_NAME,s.SEPARATOR,b.CONDITION_NAME,A.CONDITION_NAME,N.CONDITION_NAME]),P);t.TYPES=D},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,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 u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(194);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="conjunction";var s=o.FILTERS_LABELS_CONJUNCTION;function u(e,t){return e.every((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("conjunction",s,u)},function(e,t,n){"use strict";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(19)),u=r(n(10)),l=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(15),h=n(12),f=r(n(195));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,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,l.default)(this,n)}}var g=new WeakMap,m=function(e){(0,u.default)(n,e);var t=p(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,h.extend)(n.DEFAULTS,r)),g.set((0,a.default)(i),{}),i.registerHooks(),i}return(0,i.default)(n,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()})),this.addLocalHook("keyup",(function(t){return e.onKeyup(t)}))}},{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=g.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,d.addClass)(this._element,"htUIInput"),(0,d.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=g.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&g.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}],[{key:"DEFAULTS",get:function(){return(0,h.clone)({placeholder:"",type:"text",tagName:"input"})}}]),n}(f.default);t.default=m},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.SETTING_KEYS=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0,n(20),n(1),n(21),n(4),n(52),n(5),n(6),n(57),n(154),n(37),n(31),n(40),n(183),n(89),n(7);var o=r(n(32)),i=r(n(14)),a=r(n(24)),s=r(n(2)),u=r(n(3)),l=r(n(33)),c=r(n(19)),d=r(n(10)),h=r(n(11)),f=r(n(8)),p=r(n(27)),g=r(n(75)),m=r(n(74)),v=n(39),y=r(n(103)),E=n(72),T=n(36),C=n(25),R=n(1006),w=n(1007),S=n(629),O=n(134),b=n(80),A=r(n(59)),N=r(n(1008));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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function I(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 _="formulas";t.PLUGIN_KEY=_;var k=["maxRows","maxColumns","language"];t.SETTING_KEYS=k;t.PLUGIN_PRIORITY=260,A.default.getSingleton().register("afterNamedExpressionAdded"),A.default.getSingleton().register("afterNamedExpressionRemoved"),A.default.getSingleton().register("afterSheetAdded"),A.default.getSingleton().register("afterSheetRemoved"),A.default.getSingleton().register("afterSheetRenamed"),A.default.getSingleton().register("afterFormulasValuesUpdate");var x=function(e){return"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e},P=new WeakMap,L=new WeakMap,D=new WeakMap,F=function(e){(0,d.default)(n,e);var t=M(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),I((0,l.default)(e),P,{writable:!0,value:!1}),I((0,l.default)(e),L,{writable:!0,value:!1}),I((0,l.default)(e),D,{writable:!0,value:[["valuesUpdated",function(){var t;return(t=e).onEngineValuesUpdated.apply(t,arguments)}],["namedExpressionAdded",function(){var t;return(t=e).onEngineNamedExpressionsAdded.apply(t,arguments)}],["namedExpressionRemoved",function(){var t;return(t=e).onEngineNamedExpressionsRemoved.apply(t,arguments)}],["sheetAdded",function(){var t;return(t=e).onEngineSheetAdded.apply(t,arguments)}],["sheetRenamed",function(){var t;return(t=e).onEngineSheetRenamed.apply(t,arguments)}],["sheetRemoved",function(){var t;return(t=e).onEngineSheetRemoved.apply(t,arguments)}]]}),(0,p.default)((0,l.default)(e),"staticRegister",(0,y.default)("formulas")),(0,p.default)((0,l.default)(e),"engine",null),(0,p.default)((0,l.default)(e),"sheetName",null),(0,p.default)((0,l.default)(e),"indexSyncer",null),(0,p.default)((0,l.default)(e),"rowAxisSyncer",null),(0,p.default)((0,l.default)(e),"columnAxisSyncer",null),e}return(0,u.default)(n,[{key:"sheetId",get:function(){return null===this.sheetName?null:this.engine.getSheetId(this.sheetName)}},{key:"isEnabled",value:function(){return!!this.hot.getSettings()[_]}},{key:"enablePlugin",value:function(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,R.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){var r=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==r&&(this.sheetName=r)}this.addHook("beforeLoadData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterLoadData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("beforeUpdateData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterUpdateData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("modifyData",(function(){return t.onModifyData.apply(t,arguments)})),this.addHook("modifySourceData",(function(){return t.onModifySourceData.apply(t,arguments)})),this.addHook("beforeValidate",(function(){return t.onBeforeValidate.apply(t,arguments)})),this.addHook("afterSetSourceDataAtCell",(function(){return t.onAfterSetSourceDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtCell",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtRowProp",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("beforeCreateRow",(function(){return t.onBeforeCreateRow.apply(t,arguments)})),this.addHook("beforeCreateCol",(function(){return t.onBeforeCreateCol.apply(t,arguments)})),this.addHook("afterCreateRow",(function(){return t.onAfterCreateRow.apply(t,arguments)})),this.addHook("afterCreateCol",(function(){return t.onAfterCreateCol.apply(t,arguments)})),this.addHook("beforeRemoveRow",(function(){return t.onBeforeRemoveRow.apply(t,arguments)})),this.addHook("beforeRemoveCol",(function(){return t.onBeforeRemoveCol.apply(t,arguments)})),this.addHook("afterRemoveRow",(function(){return t.onAfterRemoveRow.apply(t,arguments)})),this.addHook("afterRemoveCol",(function(){return t.onAfterRemoveCol.apply(t,arguments)})),this.indexSyncer=new N.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,(function(e){t.hot.addHookOnce("init",(function(){e()}))})),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(function(e,n,r,o){t.rowAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("beforeColumnMove",(function(e,n,r,o){t.columnAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("afterRowMove",(function(e,n,r,o,i){t.rowAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("afterColumnMove",(function(e,n,r,o,i){t.columnAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("beforeColumnFreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart,n)})),this.hot.addHook("afterColumnFreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.hot.addHook("beforeColumnUnfreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart-1,n)})),this.hot.addHook("afterColumnUnfreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.addHook("afterCellMetaReset",(function(){return t.onAfterCellMetaReset.apply(t,arguments)})),this.addHook("beforeUndo",(function(){t.indexSyncer.setPerformUndo(!0),t.engine.undo()})),this.addHook("beforeRedo",(function(){t.indexSyncer.setPerformRedo(!0),t.engine.redo()})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformUndo(!1)})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformRedo(!1)})),this.addHook("afterDetachChild",(function(){return t.onAfterDetachChild.apply(t,arguments)})),this.addHook("beforeAutofill",(function(){return t.onBeforeAutofill.apply(t,arguments)})),(0,m.default)(this,D).forEach((function(e){var n=(0,a.default)(e,2),r=n[0],o=n[1];return t.engine.on(r,o)})),(0,c.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this)}else(0,E.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}},{key:"disablePlugin",value:function(){var e=this;(0,m.default)(this,D).forEach((function(t){var n=(0,a.default)(t,2),r=n[0],o=n[1];return e.engine.off(r,o)})),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(e){var t=(0,S.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,S.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);var r=this.hot.getSettings()[_];if((0,C.isDefined)(r)&&(0,C.isDefined)(r.sheetName)&&r.sheetName!==this.sheetName&&this.switchSheet(r.sheetName),!e.data&&null===this.sheetName){var o=this.hot.getSettings()[_].sheetName;o&&this.engine.doesSheetExist(o)?this.switchSheet(this.sheetName):this.sheetName=this.addSheet(null!=o?o:void 0,this.hot.getSourceDataArray())}(0,c.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this,e)}},{key:"destroy",value:function(){var e=this;(0,m.default)(this,D).forEach((function(t){var n,r=(0,a.default)(t,2),o=r[0],i=r[1];return null===(n=e.engine)||void 0===n?void 0:n.off(o,i)})),(0,g.default)(this,D,null),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"addSheet",value:function(e,t){if((0,C.isDefined)(t)&&!(0,O.isArrayOfArrays)(t))return(0,E.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,E.warn)("Sheet with the provided name already exists."),!1;try{var n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,E.warn)(e.message),!1}}},{key:"switchSheet",value:function(e){if(this.engine.doesSheetExist(e)){this.sheetName=e;var t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,"".concat((0,b.toUpperCaseFirst)(_),".switchSheet"))}else(0,E.error)("The sheet named `".concat(e,"` does not exist, switch aborted."))}},{key:"getCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId,r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}},{key:"isFormulaCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}},{key:"renderDependentSheets",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Set;e.forEach((function(e){var t,n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))})),(0,R.getRegisteredHotInstances)(this.engine).forEach((function(e,o){var i;(n||o!==t.sheetId)&&r.has(o)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())}))}},{key:"validateDependentCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(e){var t,n=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{},r=n.row,o=n.col,i=n.sheet;return(0,C.isDefined)(i)?"".concat(i,":").concat(r,"x").concat(o):""},o=new Set(n.map((function(e){return r(e)})));e.forEach((function(e){var n,i,a=null!==(n=e.address)&&void 0!==n?n:{},s=a.row,u=a.col;if(!(!1===(0,C.isDefined)(s)||!1===(0,C.isDefined)(u)||s>=t.hot.countRows()||u>=t.hot.countCols())){var l=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,c=r(e);if(void 0!==l&&!o.has(c)){var d=(0,R.getRegisteredHotInstances)(t.engine).get(l);if(!d)return;d.validateCell(d.getDataAtCell(s,u),d.getCellMeta(s,u),(function(){}))}}}))}},{key:"syncChangeWithEngine",value:function(e,t,n){var r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(this.engine.isItPossibleToSetCellContents(r)){var o=this.hot.getCellMeta(e,t);return(0,w.isDate)(n,o.type)&&((0,w.isDateValid)(n,o.dateFormat)?n=(0,w.getDateInHfFormat)(n,o.dateFormat):!1===(0,w.isFormula)(n)&&(n="'".concat(n))),this.engine.setCellContents(r,n)}(0,E.warn)("Not possible to set cell data at ".concat(JSON.stringify(r)))}},{key:"onBeforeValidate",value:function(e,t,n){var r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){var o={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},a=this.hot.getCellMeta(t,r),s=this.engine.getCellValue(o);return"date"===a.type&&(0,T.isNumeric)(s)&&(s=(0,w.getDateFromExcelDate)(s,a.dateFormat)),"object"===(0,i.default)(s)&&null!==s?s.value:s}return e}},{key:"onBeforeAutofill",value:function(e,t,n){var r=t.getTopStartCorner(),o=r.row,i=r.col,a=t.getBottomEndCorner(),s=a.row,u=a.col,l=n.getTopStartCorner(),c=l.row,d=l.col,h=n.getBottomEndCorner(),f=h.row,p=h.col,g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:this.sheetId}},m={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(c),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(d),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(f),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(p),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(m))return!1;for(var v=this.engine.getFillRangeData(g,m),y=g.start,E=y.row,T=y.col,C=g.end,R=C.row-E+1,S=C.col-T+1,O=0;O<v.length;O+=1)for(var b=0;b<v[O].length;b+=1){var A=v[O][b],N=O%R,M=b%S,I=this.hot.getCellMeta(N,M);(0,w.isDate)(A,I.type)&&(A.startsWith("'")?v[O][b]=A.slice(1):!1===this.isFormulaCellType(N,M,this.sheetId)&&(v[O][b]=(0,w.getDateInHotFormat)(A,I.dateFormat)))}return v}},{key:"onBeforeLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";n.includes((0,b.toUpperCaseFirst)(_))||(0,g.default)(this,L,(0,C.isUndefined)(this.hot.getSettings().data))}},{key:"onAfterCellMetaReset",value:function(){var e=this,t=this.hot.getSourceDataArray(),n=!1;t.forEach((function(r,o){r.forEach((function(r,i){var a=e.hot.getCellMeta(o,i),s=a.dateFormat;(0,w.isDate)(r,a.type)&&(n=!0,(0,w.isDateValid)(r,s)?t[o][i]=(0,w.getDateInHfFormat)(r,s):!1===e.isFormulaCellType(o,i)&&(t[o][i]="'".concat(r)))}))})),!0===n&&((0,g.default)(this,P,!0),this.engine.setSheetContent(this.sheetId,t),(0,g.default)(this,P,!1))}},{key:"onAfterLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n.includes((0,b.toUpperCaseFirst)(_)))if(this.sheetName=(0,R.setupSheet)(this.engine,this.hot.getSettings()[_].sheetName),(0,m.default)(this,L))this.switchSheet(this.sheetName);else{var r=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,r)){(0,g.default)(this,P,!0);var o=this.engine.setSheetContent(this.sheetId,r);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(o),(0,g.default)(this,P,!1)}}}},{key:"onModifyData",value:function(e,t,n,r){if("get"===r&&!(0,m.default)(this,P)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e);if(null!==o&&null!==t){if(!this.isFormulaCellType(o,t))if("ARRAY"!==this.getCellType(o,t))return void((0,w.isEscapedFormulaExpression)(n.value)&&(n.value=(0,w.unescapeFormulaExpression)(n.value)));var a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId},s=this.engine.getCellValue(a),u=this.hot.getCellMeta(o,t);"date"===u.type&&(0,T.isNumeric)(s)&&(s=(0,w.getDateFromExcelDate)(s,u.dateFormat));var l="object"===(0,i.default)(s)&&null!==s?s.value:s;n.value=l}}}},{key:"onModifySourceData",value:function(e,t,n,r){if("get"===r&&!(0,m.default)(this,P)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null!==o&&null!==i){if(!this.isFormulaCellType(o,i))if("ARRAY"!==this.getCellType(o,i))return;var a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0!==a.width||0!==a.height){var s={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(s)}}}}},{key:"onAfterSetDataAtCell",value:function(e,t){var n=this;if(!x(t)){var r=[],o=[],i=this.engine.batch((function(){e.forEach((function(e){var t=(0,a.default)(e,4),i=t[0],s=t[1],u=t[3],l=n.hot.propToCol(s),c=n.hot.toPhysicalRow(i),d=n.hot.toPhysicalColumn(l),h={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:n.sheetId};null!==c&&null!==d?n.syncChangeWithEngine(i,l,u):r.push([i,l,u]),o.push({address:h})}))}));r.length&&this.hot.addHookOnce("afterChange",(function(){var e=n.engine.batch((function(){r.forEach((function(e){var t=(0,a.default)(e,3),r=t[0],o=t[1],i=t[2];n.syncChangeWithEngine(r,o,i)}))}));n.renderDependentSheets(e,!0)})),this.renderDependentSheets(i),this.validateDependentCells(i,o)}}},{key:"onAfterSetSourceDataAtCell",value:function(e,t){var n=this;if(!x(t)){var r=[],i=[];e.forEach((function(e){var t=(0,a.default)(e,4),s=t[0],u=t[1],l=t[3],c=n.hot.propToCol(u);if((0,T.isNumeric)(c)){var d={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:n.sheetId};n.engine.isItPossibleToSetCellContents(d)?(i.push({address:d}),r.push.apply(r,(0,o.default)(n.engine.setCellContents(d,l)))):(0,E.warn)("Not possible to set source cell data at ".concat(JSON.stringify(d)))}})),this.renderDependentSheets(r),this.validateDependentCells(r,i)}}},{key:"onBeforeCreateRow",value:function(e,t){var n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}},{key:"onBeforeCreateCol",value:function(e,t){var n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this;return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveRows(r.sheetId,[e,1])}))&&void 0}},{key:"onBeforeRemoveCol",value:function(e,t,n){var r=this;return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveColumns(r.sheetId,[e,1])}))&&void 0}},{key:"onAfterCreateRow",value:function(e,t,n){if(!x(n)){var r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterCreateCol",value:function(e,t,n){if(!x(n)){var r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(!x(r)){var i=this.rowAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeRows(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterRemoveCol",value:function(e,t,n,r){var o=this;if(!x(r)){var i=this.columnAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeColumns(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterDetachChild",value:function(e,t,n){var r,o=this;(0,g.default)(this,P,!0);var i=this.hot.getSourceDataArray(n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());(0,g.default)(this,P,!1),i.forEach((function(e,t){e.forEach((function(e,r){o.engine.setCellContents({col:r,row:n+t,sheet:o.sheetId},[[e]])}))}))}},{key:"onEngineValuesUpdated",value:function(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}},{key:"onEngineNamedExpressionsAdded",value:function(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}},{key:"onEngineNamedExpressionsRemoved",value:function(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}},{key:"onEngineSheetAdded",value:function(e){this.hot.runHooks("afterSheetAdded",e)}},{key:"onEngineSheetRenamed",value:function(e,t){this.hot.runHooks("afterSheetRenamed",e,t)}},{key:"onEngineSheetRemoved",value:function(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}}],[{key:"PLUGIN_KEY",get:function(){return _}},{key:"PLUGIN_PRIORITY",get:function(){return 260}},{key:"SETTING_KEYS",get:function(){return[_].concat(k)}}]),n}(v.BasePlugin);t.Formulas=F},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,i,a,s,u=r(n(64)),l=r(n(2)),c=r(n(3)),d=n(65),h=function(){function e(t,n,r,o,i,a){(0,l.default)(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1,this.cellCoordsFactory=i,this.cellRangeFactory=a}return(0,c.default)(e,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),u=this[i],l=this[i]+this[o]-1;if(u>=t&&(this[i]+=n),n>0)t<=l&&t>u&&(this[o]+=n);else if(n<0){if(a<=u&&s>=l)return this.removed=!0,!1;if(u>=a&&u<=s){var c=s-u+1,d=Math.abs(n)-c;this[i]-=d+n,this[o]-=c}else if(u<=a&&l>=s)this[o]+=n;else if(u<=a&&l>=a&&l<s){var h=l-a+1;this[o]-=h}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,d.toSingleLine)(o||(o=(0,u.default)(["The merged cell declared with {row: ",", col: ",", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."])),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,d.toSingleLine)(i||(i=(0,u.default)(["The merged cell declared at [",", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."])),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,d.toSingleLine)(a||(a=(0,u.default)(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'])),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,d.toSingleLine)(s||(s=(0,u.default)(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'])),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),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(3)),i=r(n(2)),a=(0,o.default)((function e(t,n){(0,i.default)(this,e),this.hot=n,this.plugin=t}));t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"DependencyGraph",(function(){return C}));var r=n(78),o=n(196),i=n(17),a=n(247),s=n(34),u=n(42),l=n(69),c=n(61),d=n(161),h=n(113),f=n(112),p=n(250),g=n(251),m=n(656),v=n(105),y=n(253),E=n(254),T=n(255);
|
250
250
|
/**
|
251
251
|
* @license
|
252
252
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -256,7 +256,7 @@ class C{constructor(e,t,n,s,u,l,d,h){this.addressMapping=e,this.rangeMapping=t,t
|
|
256
256
|
* @license
|
257
257
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
258
258
|
*/
|
259
|
-
class g{constructor(e,t,n){this.config=e,this.functionRegistry=t,this.sheetMapping=n,this.statsCacheUsed=0,this.lexerConfig=Object(d.buildLexerConfig)(e),this.lexer=new c.FormulaLexer(this.lexerConfig),this.formulaParser=new c.FormulaParser(this.lexerConfig,this.sheetMapping),this.cache=new l.Cache(this.functionRegistry)}parse(e,t){this.formulaAddress=t;const n=this.tokenizeFormula(e);if(n.errors.length>0){const e=n.errors.map(e=>({type:s.ParsingErrorType.LexingError,message:e.message}));return{ast:Object(i.buildParsingErrorAst)(),errors:e,hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]}}const r=this.computeHashFromTokens(n.tokens,t);let o=this.cache.get(r);if(void 0!==o)++this.statsCacheUsed;else{const e=this.bindWhitespacesToTokens(n.tokens),i=this.formulaParser.parseFromTokens(e,t);if(i.errors.length>0)return Object.assign(Object.assign({},i),{hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]});o=this.cache.set(r,i.ast)}const{ast:a,hasVolatileFunction:u,hasStructuralChangeFunction:l}=o,c=this.convertReversedRangesToRegularRanges(a);return{ast:c,errors:[],hasVolatileFunction:u,hasStructuralChangeFunction:l,dependencies:Object(i.collectDependencies)(c,this.functionRegistry)}}convertReversedRangesToRegularRanges(e){switch(e.type){case i.AstNodeType.EMPTY:case i.AstNodeType.NUMBER:case i.AstNodeType.STRING:case i.AstNodeType.ERROR:case i.AstNodeType.ERROR_WITH_RAW_INPUT:case i.AstNodeType.CELL_REFERENCE:case i.AstNodeType.NAMED_EXPRESSION:return e;case i.AstNodeType.CELL_RANGE:{const{start:t,end:n}=e,r=this.orderCellRangeEnds(t,n);return Object.assign(Object.assign({},e),{start:r.start,end:r.end})}case i.AstNodeType.COLUMN_RANGE:{const{start:t,end:n}=e,r=this.orderColumnRangeEnds(t,n);return Object.assign(Object.assign({},e),{start:r.start,end:r.end})}case i.AstNodeType.ROW_RANGE:{const{start:t,end:n}=e,r=this.orderRowRangeEnds(t,n);return Object.assign(Object.assign({},e),{start:r.start,end:r.end})}case i.AstNodeType.PERCENT_OP:case i.AstNodeType.PLUS_UNARY_OP:case i.AstNodeType.MINUS_UNARY_OP:{const t=this.convertReversedRangesToRegularRanges(e.value);return Object.assign(Object.assign({},e),{value:t})}case i.AstNodeType.CONCATENATE_OP:case i.AstNodeType.EQUALS_OP:case i.AstNodeType.NOT_EQUAL_OP:case i.AstNodeType.LESS_THAN_OP:case i.AstNodeType.GREATER_THAN_OP:case i.AstNodeType.LESS_THAN_OR_EQUAL_OP:case i.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case i.AstNodeType.MINUS_OP:case i.AstNodeType.PLUS_OP:case i.AstNodeType.TIMES_OP:case i.AstNodeType.DIV_OP:case i.AstNodeType.POWER_OP:{const t=this.convertReversedRangesToRegularRanges(e.left),n=this.convertReversedRangesToRegularRanges(e.right);return Object.assign(Object.assign({},e),{left:t,right:n})}case i.AstNodeType.PARENTHESIS:{const t=this.convertReversedRangesToRegularRanges(e.expression);return Object.assign(Object.assign({},e),{expression:t})}case i.AstNodeType.FUNCTION_CALL:{const t=e.args.map(e=>this.convertReversedRangesToRegularRanges(e));return Object.assign(Object.assign({},e),{args:t})}case i.AstNodeType.ARRAY:{const t=e.args.map(e=>e.map(e=>this.convertReversedRangesToRegularRanges(e)));return Object.assign(Object.assign({},e),{args:t})}}}orderCellRangeEnds(e,t){const n=[e,t],[r,o]=n.map(e=>e.toColumnAddress()).sort(f.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),[a,s]=n.map(e=>e.toRowAddress()).sort(p.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),[u,l]=n.map(e=>e.sheet).sort(g.compareSheetIds.bind(this));return{start:i.CellAddress.fromColAndRow(r,a,u),end:i.CellAddress.fromColAndRow(o,s,l)}}orderColumnRangeEnds(e,t){const n=[e,t],[r,o]=n.sort(f.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),[i,a]=n.map(e=>e.sheet).sort(g.compareSheetIds.bind(this));return{start:new f.ColumnAddress(r.type,r.col,i),end:new f.ColumnAddress(o.type,o.col,a)}}orderRowRangeEnds(e,t){const n=[e,t],[r,o]=n.sort(p.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),[i,a]=n.map(e=>e.sheet).sort(g.compareSheetIds.bind(this));return{start:new p.RowAddress(r.type,r.row,i),end:new p.RowAddress(o.type,o.row,a)}}static compareSheetIds(e,t){return(e=null!=e?e:1/0)-(t=null!=t?t:1/0)}fetchCachedResultForAst(e){const t=this.computeHashFromAst(e);return this.fetchCachedResult(t)}fetchCachedResult(e){const t=this.cache.get(e);if(void 0===t)throw new Error("There is no AST with such key in the cache");{const{ast:e,hasVolatileFunction:n,hasStructuralChangeFunction:r,relativeDependencies:o}=t;return{ast:e,errors:[],hasVolatileFunction:n,hasStructuralChangeFunction:r,dependencies:o}}}computeHashFromTokens(e,t){var n;let o="",i=0;for(;i<e.length;){const s=e[i];if(Object(r.tokenMatcher)(s,d.CellReference)){const e=Object(a.cellAddressFromString)(this.sheetMapping,s.image,t);o=void 0===e?o.concat(s.image):o.concat(e.hash(!0))}else if(Object(r.tokenMatcher)(s,d.ProcedureName)){const e=s.image.toUpperCase().slice(0,-1),t=null!==(n=this.lexerConfig.functionMapping[e])&&void 0!==n?n:e;o=o.concat(t,"(")}else if(Object(r.tokenMatcher)(s,d.ColumnRange)){const[e,n]=s.image.split(":"),r=Object(a.columnAddressFromString)(this.sheetMapping,e,t),i=Object(a.columnAddressFromString)(this.sheetMapping,n,t);o=void 0===r||void 0===i?o.concat("!REF"):o.concat(r.hash(!0),":",i.hash(!0))}else if(Object(r.tokenMatcher)(s,d.RowRange)){const[e,n]=s.image.split(":"),r=Object(a.rowAddressFromString)(this.sheetMapping,e,t),i=Object(a.rowAddressFromString)(this.sheetMapping,n,t);o=void 0===r||void 0===i?o.concat("!REF"):o.concat(r.hash(!0),":",i.hash(!0))}else o=o.concat(s.image);i++}return o}rememberNewAst(e){const t=this.computeHashFromAst(e);return this.cache.maybeSetAndThenGet(t,e)}computeHashFromAst(e){return"="+this.computeHashOfAstNode(e)}computeHashOfAstNode(e){switch(e.type){case i.AstNodeType.EMPTY:return e.leadingWhitespace||"";case i.AstNodeType.NUMBER:return Object(s.imageWithWhitespace)(Object(h.formatNumber)(e.value,this.config.decimalSeparator),e.leadingWhitespace);case i.AstNodeType.STRING:return Object(s.imageWithWhitespace)('"'+e.value+'"',e.leadingWhitespace);case i.AstNodeType.NAMED_EXPRESSION:return Object(s.imageWithWhitespace)(e.expressionName,e.leadingWhitespace);case i.AstNodeType.FUNCTION_CALL:{const t=e.args.map(e=>this.computeHashOfAstNode(e)).join(this.config.functionArgSeparator),n=e.procedureName+"("+t+Object(s.imageWithWhitespace)(")",e.internalWhitespace);return Object(s.imageWithWhitespace)(n,e.leadingWhitespace)}case i.AstNodeType.CELL_REFERENCE:return Object(s.imageWithWhitespace)(e.reference.hash(!0),e.leadingWhitespace);case i.AstNodeType.COLUMN_RANGE:case i.AstNodeType.ROW_RANGE:case i.AstNodeType.CELL_RANGE:{const t=e.start.hash(e.sheetReferenceType!==s.RangeSheetReferenceType.RELATIVE),n=e.end.hash(e.sheetReferenceType===s.RangeSheetReferenceType.BOTH_ABSOLUTE);return Object(s.imageWithWhitespace)(t+":"+n,e.leadingWhitespace)}case i.AstNodeType.MINUS_UNARY_OP:return Object(s.imageWithWhitespace)("-"+this.computeHashOfAstNode(e.value),e.leadingWhitespace);case i.AstNodeType.PLUS_UNARY_OP:return Object(s.imageWithWhitespace)("+"+this.computeHashOfAstNode(e.value),e.leadingWhitespace);case i.AstNodeType.PERCENT_OP:return this.computeHashOfAstNode(e.value)+Object(s.imageWithWhitespace)("%",e.leadingWhitespace);case i.AstNodeType.ERROR:{const t=this.config.translationPackage.getErrorTranslation(e.error?e.error.type:o.ErrorType.ERROR);return Object(s.imageWithWhitespace)(t,e.leadingWhitespace)}case i.AstNodeType.ERROR_WITH_RAW_INPUT:return Object(s.imageWithWhitespace)(e.rawInput,e.leadingWhitespace);case i.AstNodeType.ARRAY:{const t=e.args.map(e=>e.map(e=>this.computeHashOfAstNode(e)).join(",")).join(";");return Object(s.imageWithWhitespace)("{"+t+Object(s.imageWithWhitespace)("}",e.internalWhitespace),e.leadingWhitespace)}case i.AstNodeType.PARENTHESIS:{const t="("+this.computeHashOfAstNode(e.expression)+Object(s.imageWithWhitespace)(")",e.internalWhitespace);return Object(s.imageWithWhitespace)(t,e.leadingWhitespace)}default:return this.computeHashOfAstNode(e.left)+Object(s.imageWithWhitespace)(u.binaryOpTokenMap[e.type],e.leadingWhitespace)+this.computeHashOfAstNode(e.right)}}bindWhitespacesToTokens(e){const t=[],n=e[0];Object(r.tokenMatcher)(n,this.lexerConfig.WhiteSpace)||t.push(n);for(let n=1;n<e.length;++n){const o=e[n];if(Object(r.tokenMatcher)(o,this.lexerConfig.WhiteSpace))continue;const i=e[n-1];Object(r.tokenMatcher)(i,this.lexerConfig.WhiteSpace)&&(o.leadingWhitespace=i),t.push(o)}return t}tokenizeFormula(e){return this.lexer.tokenizeFormula(e)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_MODE",(function(){return d})),n.d(t,"MODES",(function(){return h})),n.d(t,"SUPPORT_STICKY",(function(){return f})),n.d(t,"disableSticky",(function(){return p})),n.d(t,"enableSticky",(function(){return g})),n.d(t,"analyzeTokenTypes",(function(){return m})),n.d(t,"validatePatterns",(function(){return v})),n.d(t,"findMissingPatterns",(function(){return y})),n.d(t,"findInvalidPatterns",(function(){return E})),n.d(t,"findEndOfInputAnchor",(function(){return C})),n.d(t,"findEmptyMatchRegExps",(function(){return R})),n.d(t,"findStartOfInputAnchor",(function(){return S})),n.d(t,"findUnsupportedFlags",(function(){return O})),n.d(t,"findDuplicatePatterns",(function(){return b})),n.d(t,"findInvalidGroupType",(function(){return A})),n.d(t,"findModesThatDoNotExist",(function(){return N})),n.d(t,"findUnreachablePatterns",(function(){return M})),n.d(t,"addStartOfInput",(function(){return I})),n.d(t,"addStickyFlag",(function(){return _})),n.d(t,"performRuntimeChecks",(function(){return k})),n.d(t,"performWarningRuntimeChecks",(function(){return x})),n.d(t,"cloneEmptyGroups",(function(){return P})),n.d(t,"isCustomPattern",(function(){return L})),n.d(t,"isShortPattern",(function(){return D})),n.d(t,"LineTerminatorOptimizedTester",(function(){return F})),n.d(t,"buildLineBreakIssueMessage",(function(){return H})),n.d(t,"minOptimizationVal",(function(){return B})),n.d(t,"charCodeToOptimizedIndex",(function(){return W}));var r,o=n(240),i=n(137),a=n(38),s=n(640),u=n(241),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)}),c="PATTERN",d="defaultMode",h="modes",f="boolean"==typeof new RegExp("(?:)").sticky;function p(){f=!1}function g(){f=!0}function m(e,t){var n,r=(t=Object(a.defaults)(t,{useSticky:f,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;r("initCharCodeToOptimizedIndexMap",(function(){!function(){if(Object(a.isEmpty)(Y)){Y=new Array(65536);for(var e=0;e<65536;e++)Y[e]=e>255?255+~~(e/255):e}}()})),r("Reject Lexer.NA",(function(){n=Object(a.reject)(e,(function(e){return e[c]===i.Lexer.NA}))}));var o,u,l,d,h,p,g,m,v,y,E,T=!1;r("Transform Patterns",(function(){T=!1,o=Object(a.map)(n,(function(e){var n=e[c];if(Object(a.isRegExp)(n)){var r=n.source;return 1===r.length&&"^"!==r&&"$"!==r&&"."!==r?r:2!==r.length||"\\"!==r[0]||Object(a.contains)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],r[1])?t.useSticky?_(n):I(n):r[1]}if(Object(a.isFunction)(n))return T=!0,{exec:n};if(Object(a.has)(n,"exec"))return T=!0,n;if("string"==typeof n){if(1===n.length)return n;var o=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(o);return t.useSticky?_(i):I(i)}throw Error("non exhaustive match")}))})),r("misc mapping",(function(){u=Object(a.map)(n,(function(e){return e.tokenTypeIdx})),l=Object(a.map)(n,(function(e){var t=e.GROUP;if(t!==i.Lexer.SKIPPED){if(Object(a.isString)(t))return t;if(Object(a.isUndefined)(t))return!1;throw Error("non exhaustive match")}})),d=Object(a.map)(n,(function(e){var t=e.LONGER_ALT;if(t)return Object(a.indexOf)(n,t)})),h=Object(a.map)(n,(function(e){return e.PUSH_MODE})),p=Object(a.map)(n,(function(e){return Object(a.has)(e,"POP_MODE")}))})),r("Line Terminator Handling",(function(){var e=V(t.lineTerminatorCharacters);g=Object(a.map)(n,(function(e){return!1})),"onlyOffset"!==t.positionTracking&&(g=Object(a.map)(n,(function(t){return Object(a.has)(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===U(t,e)?Object(s.canMatchCharCode)(e,t.PATTERN):void 0})))})),r("Misc Mapping #2",(function(){m=Object(a.map)(n,L),v=Object(a.map)(o,D),y=Object(a.reduce)(n,(function(e,t){var n=t.GROUP;return Object(a.isString)(n)&&n!==i.Lexer.SKIPPED&&(e[n]=[]),e}),{}),E=Object(a.map)(o,(function(e,t){return{pattern:o[t],longerAlt:d[t],canLineTerminator:g[t],isCustom:m[t],short:v[t],group:l[t],push:h[t],pop:p[t],tokenTypeIdx:u[t],tokenType:n[t]}}))}));var C=!0,R=[];return t.safeMode||r("First Char Optimization",(function(){R=Object(a.reduce)(n,(function(e,n,r){if("string"==typeof n.PATTERN){var o=W(n.PATTERN.charCodeAt(0));j(e,o,E[r])}else if(Object(a.isArray)(n.START_CHARS_HINT)){var i;Object(a.forEach)(n.START_CHARS_HINT,(function(t){var n=W("string"==typeof t?t.charCodeAt(0):t);i!==n&&(i=n,j(e,n,E[r]))}))}else if(Object(a.isRegExp)(n.PATTERN))if(n.PATTERN.unicode)C=!1,t.ensureOptimizations&&Object(a.PRINT_ERROR)(s.failedOptimizationPrefixMsg+"\tUnable to analyze < "+n.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var u=Object(s.getOptimizedStartCodesIndices)(n.PATTERN,t.ensureOptimizations);Object(a.isEmpty)(u)&&(C=!1),Object(a.forEach)(u,(function(t){j(e,t,E[r])}))}else t.ensureOptimizations&&Object(a.PRINT_ERROR)(s.failedOptimizationPrefixMsg+"\tTokenType: <"+n.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),C=!1;return e}),[])})),r("ArrayPacking",(function(){R=Object(a.packArray)(R)})),{emptyGroups:y,patternIdxToConfig:E,charCodeToPatternIdxToConfig:R,hasCustom:T,canBeOptimized:C}}function v(e,t){var n=[],r=y(e);n=n.concat(r.errors);var o=E(r.valid),i=o.valid;return n=(n=(n=(n=(n=n.concat(o.errors)).concat(function(e){var t=[],n=Object(a.filter)(e,(function(e){return Object(a.isRegExp)(e[c])}));return t=(t=(t=(t=(t=t.concat(C(n))).concat(S(n))).concat(O(n))).concat(b(n))).concat(R(n))}(i))).concat(A(i))).concat(N(i,t))).concat(M(i))}function y(e){var t=Object(a.filter)(e,(function(e){return!Object(a.has)(e,c)}));return{errors:Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:i.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[e]}})),valid:Object(a.difference)(e,t)}}function E(e){var t=Object(a.filter)(e,(function(e){var t=e[c];return!(Object(a.isRegExp)(t)||Object(a.isFunction)(t)||Object(a.has)(t,"exec")||Object(a.isString)(t))}));return{errors:Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:i.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[e]}})),valid:Object(a.difference)(e,t)}}var T=/[^\\][\$]/;function C(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return l(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}(o.BaseRegExpVisitor),n=Object(a.filter)(e,(function(e){var n=e[c];try{var r=Object(u.getRegExpAst)(n),o=new t;return o.visit(r),o.found}catch(e){return T.test(n.source)}}));return Object(a.map)(n,(function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:i.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[e]}}))}function R(e){var t=Object(a.filter)(e,(function(e){return e[c].test("")}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:i.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[e]}}))}var w=/[^\\[][\^]|^\^/;function S(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return l(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}(o.BaseRegExpVisitor),n=Object(a.filter)(e,(function(e){var n=e[c];try{var r=Object(u.getRegExpAst)(n),o=new t;return o.visit(r),o.found}catch(e){return w.test(n.source)}}));return Object(a.map)(n,(function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:i.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[e]}}))}function O(e){var t=Object(a.filter)(e,(function(e){var t=e[c];return t instanceof RegExp&&(t.multiline||t.global)}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:i.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}}))}function b(e){var t=[],n=Object(a.map)(e,(function(n){return Object(a.reduce)(e,(function(e,r){return n.PATTERN.source!==r.PATTERN.source||Object(a.contains)(t,r)||r.PATTERN===i.Lexer.NA||(t.push(r),e.push(r)),e}),[])}));n=Object(a.compact)(n);var r=Object(a.filter)(n,(function(e){return e.length>1}));return Object(a.map)(r,(function(e){var t=Object(a.map)(e,(function(e){return e.name}));return{message:"The same RegExp pattern ->"+Object(a.first)(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:i.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}}))}function A(e){var t=Object(a.filter)(e,(function(e){if(!Object(a.has)(e,"GROUP"))return!1;var t=e.GROUP;return t!==i.Lexer.SKIPPED&&t!==i.Lexer.NA&&!Object(a.isString)(t)}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:i.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}}))}function N(e,t){var n=Object(a.filter)(e,(function(e){return void 0!==e.PUSH_MODE&&!Object(a.contains)(t,e.PUSH_MODE)}));return Object(a.map)(n,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:i.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}}))}function M(e){var t=[],n=Object(a.reduce)(e,(function(e,t,n){var r,o=t.PATTERN;return o===i.Lexer.NA||(Object(a.isString)(o)?e.push({str:o,idx:n,tokenType:t}):Object(a.isRegExp)(o)&&(r=o,void 0===Object(a.find)([".","\\","[","]","|","^","$","(",")","?","*","+","{"],(function(e){return-1!==r.source.indexOf(e)})))&&e.push({str:o.source,idx:n,tokenType:t})),e}),[]);return Object(a.forEach)(e,(function(e,r){Object(a.forEach)(n,(function(n){var o=n.str,s=n.idx,u=n.tokenType;if(r<s&&function(e,t){if(Object(a.isRegExp)(t)){var n=t.exec(e);return null!==n&&0===n.index}if(Object(a.isFunction)(t))return t(e,0,[],{});if(Object(a.has)(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(o,e.PATTERN)){var l="Token: ->"+u.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:l,type:i.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[e,u]})}}))})),t}function I(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function _(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function k(e,t,n){var r=[];return Object(a.has)(e,d)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+d+"> property in its definition\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object(a.has)(e,h)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+h+"> property in its definition\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object(a.has)(e,h)&&Object(a.has)(e,d)&&!Object(a.has)(e.modes,e.defaultMode)&&r.push({message:"A MultiMode Lexer cannot be initialized with a "+d+": <"+e.defaultMode+">which does not exist\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object(a.has)(e,h)&&Object(a.forEach)(e.modes,(function(e,t){Object(a.forEach)(e,(function(e,n){Object(a.isUndefined)(e)&&r.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+t+"> at index: <"+n+">\n",type:i.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),r}function x(e,t,n){var r=[],o=!1,u=Object(a.compact)(Object(a.flatten)(Object(a.mapValues)(e.modes,(function(e){return e})))),l=Object(a.reject)(u,(function(e){return e[c]===i.Lexer.NA})),d=V(n);return t&&Object(a.forEach)(l,(function(e){var t=U(e,d);if(!1!==t){var n={message:H(e,t),type:t.issue,tokenType:e};r.push(n)}else Object(a.has)(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(o=!0):Object(s.canMatchCharCode)(d,e.PATTERN)&&(o=!0)})),t&&!o&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:i.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),r}function P(e){var t={},n=Object(a.keys)(e);return Object(a.forEach)(n,(function(n){var r=e[n];if(!Object(a.isArray)(r))throw Error("non exhaustive match");t[n]=[]})),t}function L(e){var t=e.PATTERN;if(Object(a.isRegExp)(t))return!1;if(Object(a.isFunction)(t))return!0;if(Object(a.has)(t,"exec"))return!0;if(Object(a.isString)(t))return!1;throw Error("non exhaustive match")}function D(e){return!(!Object(a.isString)(e)||1!==e.length)&&e.charCodeAt(0)}var F={test:function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var r=e.charCodeAt(n);if(10===r)return this.lastIndex=n+1,!0;if(13===r)return 10===e.charCodeAt(n+1)?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};function U(e,t){if(Object(a.has)(e,"LINE_BREAKS"))return!1;if(Object(a.isRegExp)(e.PATTERN)){try{Object(s.canMatchCharCode)(t,e.PATTERN)}catch(e){return{issue:i.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(Object(a.isString)(e.PATTERN))return!1;if(L(e))return{issue:i.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function H(e,t){if(t.issue===i.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===i.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function V(e){return Object(a.map)(e,(function(e){return Object(a.isString)(e)&&e.length>0?e.charCodeAt(0):e}))}function j(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}var B=256;function W(e){return e<B?e:Y[e]}var Y=[]},function(e,t,n){"use strict";n.r(t),n.d(t,"first",(function(){return a})),n.d(t,"firstForSequence",(function(){return s})),n.d(t,"firstForBranching",(function(){return u})),n.d(t,"firstForTerminal",(function(){return l}));var r=n(38),o=n(44),i=n(158);function a(e){if(e instanceof o.NonTerminal)return a(e.referencedRule);if(e instanceof o.Terminal)return l(e);if(Object(i.isSequenceProd)(e))return s(e);if(Object(i.isBranchingProd)(e))return u(e);throw Error("non exhaustive match")}function s(e){for(var t,n=[],o=e.definition,s=0,u=o.length>s,l=!0;u&&l;)t=o[s],l=Object(i.isOptionalProd)(t),n=n.concat(a(t)),s+=1,u=o.length>s;return Object(r.uniq)(n)}function u(e){var t=Object(r.map)(e.definition,(function(e){return a(e)}));return Object(r.uniq)(Object(r.flatten)(t))}function l(e){return[e.terminalType]}},function(e,t,n){"use strict";n.r(t),n.d(t,"IN",(function(){return r}));var r="_~IN~_"},function(e,t,n){"use strict";n.r(t),n.d(t,"EOF_FOLLOW_KEY",(function(){return u})),n.d(t,"IN_RULE_RECOVERY_EXCEPTION",(function(){return l})),n.d(t,"InRuleRecoveryException",(function(){return c})),n.d(t,"Recoverable",(function(){return d})),n.d(t,"attemptInRepetitionRecovery",(function(){return h}));var r=n(87),o=n(38),i=n(100),a=n(321),s=n(68),u={},l="InRuleRecoveryException";function c(e){this.name=l,this.message=e}c.prototype=Error.prototype;var d=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Object(o.has)(e,"recoveryEnabled")?e.recoveryEnabled:s.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=h)},e.prototype.getTokenToInsert=function(e){var t=Object(r.createTokenInstance)(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,n,r){for(var a=this,s=this.findReSyncTokenType(),u=this.exportLexerState(),l=[],c=!1,d=this.LA(1),h=this.LA(1),f=function(){var e=a.LA(0),t=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:e,ruleName:a.getCurrRuleFullName()}),n=new i.MismatchedTokenException(t,d,a.LA(0));n.resyncedTokens=Object(o.dropRight)(l),a.SAVE_ERROR(n)};!c;){if(this.tokenMatcher(h,r))return void f();if(n.call(this))return f(),void e.apply(this,t);this.tokenMatcher(h,s)?c=!0:(h=this.SKIP_TOKEN(),this.addToResyncTokens(h,l))}this.importLexerState(u)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,n){return!1!==n&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new c("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var n=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(Object(o.isEmpty)(t))return!1;var r=this.LA(1);return void 0!==Object(o.find)(t,(function(e){return n.tokenMatcher(r,e)}))},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(t);return Object(o.contains)(n,e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),n=2;;){var r=t.tokenType;if(Object(o.contains)(e,r))return r;t=this.LA(n),n++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return u;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return Object(o.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)||(t=Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.RULE_STACK[t]})),n=Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.RULE_OCCURRENCE_STACK[t]}))),Object(o.map)(t,(function(r,o){return 0===o?u:{ruleName:e.shortRuleNameToFullName(r),idxInCallingRule:n[o],inRule:e.shortRuleNameToFullName(t[o-1])}}))},e.prototype.flattenFollowSet=function(){var e=this,t=Object(o.map)(this.buildFullFollowKeyStack(),(function(t){return e.getFollowSetFromFollowKey(t)}));return Object(o.flatten)(t)},e.prototype.getFollowSetFromFollowKey=function(e){if(e===u)return[r.EOF];var t=e.ruleName+e.idxInCallingRule+a.IN+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,r.EOF)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],n=this.LA(1);!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return Object(o.dropRight)(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,n,r,o,i,a){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Object(o.cloneArr)(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return Object(o.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)?Object(o.map)(this.RULE_STACK,(function(t){return e.shortRuleNameToFullName(t)})):Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])}))},e}();function h(e,t,n,o,i,a,s){var u=this.getKeyForAutomaticLookahead(o,i),l=this.firstAfterRepMap[u];if(void 0===l){var c=this.getCurrRuleFullName();l=new a(this.getGAstProductions()[c],i).startWalking(),this.firstAfterRepMap[u]=l}var d=l.token,h=l.occurrence,f=l.isEndOfRule;1===this.RULE_STACK.length&&f&&void 0===d&&(d=r.EOF,h=1),this.shouldInRepetitionRecoveryBeTried(d,h,s)&&this.tryInRepetitionRecovery(e,t,n,d)}},function(e,t,n){"use strict";n.r(t),n.d(t,"classNameFromInstance",(function(){return o})),n.d(t,"functionName",(function(){return a})),n.d(t,"defineNameProp",(function(){return s}));var r=n(38);function o(e){return a(e.constructor)}var i=/^\s*function\s*(\S*)\s*\(/;function a(e){var t=e.name;return t||e.toString().match(i)[1]}function s(e,t){var n=Object.getOwnPropertyDescriptor(e,"name");return!(!Object(r.isUndefined)(n)&&!n.configurable)&&(Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"createSyntaxDiagramsCode",(function(){return o}));var r=n(238);function o(e,t){var n=void 0===t?{}:t,o=n.resourceBase,i=void 0===o?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/":o,a=n.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===a?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/diagrams.css":a)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},function(e,t,n){"use strict";n.r(t),n.d(t,"binaryOpTokenMap",(function(){return o}));var r=n(93);
|
259
|
+
class g{constructor(e,t,n){this.config=e,this.functionRegistry=t,this.sheetMapping=n,this.statsCacheUsed=0,this.lexerConfig=Object(d.buildLexerConfig)(e),this.lexer=new c.FormulaLexer(this.lexerConfig),this.formulaParser=new c.FormulaParser(this.lexerConfig,this.sheetMapping),this.cache=new l.Cache(this.functionRegistry)}parse(e,t){this.formulaAddress=t;const n=this.tokenizeFormula(e);if(n.errors.length>0){const e=n.errors.map(e=>({type:s.ParsingErrorType.LexingError,message:e.message}));return{ast:Object(i.buildParsingErrorAst)(),errors:e,hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]}}const r=this.computeHashFromTokens(n.tokens,t);let o=this.cache.get(r);if(void 0!==o)++this.statsCacheUsed;else{const e=this.bindWhitespacesToTokens(n.tokens),i=this.formulaParser.parseFromTokens(e,t);if(i.errors.length>0)return Object.assign(Object.assign({},i),{hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]});o=this.cache.set(r,i.ast)}const{ast:a,hasVolatileFunction:u,hasStructuralChangeFunction:l}=o,c=this.convertReversedRangesToRegularRanges(a);return{ast:c,errors:[],hasVolatileFunction:u,hasStructuralChangeFunction:l,dependencies:Object(i.collectDependencies)(c,this.functionRegistry)}}convertReversedRangesToRegularRanges(e){switch(e.type){case i.AstNodeType.EMPTY:case i.AstNodeType.NUMBER:case i.AstNodeType.STRING:case i.AstNodeType.ERROR:case i.AstNodeType.ERROR_WITH_RAW_INPUT:case i.AstNodeType.CELL_REFERENCE:case i.AstNodeType.NAMED_EXPRESSION:return e;case i.AstNodeType.CELL_RANGE:{const{start:t,end:n}=e,r=this.orderCellRangeEnds(t,n);return Object.assign(Object.assign({},e),{start:r.start,end:r.end})}case i.AstNodeType.COLUMN_RANGE:{const{start:t,end:n}=e,r=this.orderColumnRangeEnds(t,n);return Object.assign(Object.assign({},e),{start:r.start,end:r.end})}case i.AstNodeType.ROW_RANGE:{const{start:t,end:n}=e,r=this.orderRowRangeEnds(t,n);return Object.assign(Object.assign({},e),{start:r.start,end:r.end})}case i.AstNodeType.PERCENT_OP:case i.AstNodeType.PLUS_UNARY_OP:case i.AstNodeType.MINUS_UNARY_OP:{const t=this.convertReversedRangesToRegularRanges(e.value);return Object.assign(Object.assign({},e),{value:t})}case i.AstNodeType.CONCATENATE_OP:case i.AstNodeType.EQUALS_OP:case i.AstNodeType.NOT_EQUAL_OP:case i.AstNodeType.LESS_THAN_OP:case i.AstNodeType.GREATER_THAN_OP:case i.AstNodeType.LESS_THAN_OR_EQUAL_OP:case i.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case i.AstNodeType.MINUS_OP:case i.AstNodeType.PLUS_OP:case i.AstNodeType.TIMES_OP:case i.AstNodeType.DIV_OP:case i.AstNodeType.POWER_OP:{const t=this.convertReversedRangesToRegularRanges(e.left),n=this.convertReversedRangesToRegularRanges(e.right);return Object.assign(Object.assign({},e),{left:t,right:n})}case i.AstNodeType.PARENTHESIS:{const t=this.convertReversedRangesToRegularRanges(e.expression);return Object.assign(Object.assign({},e),{expression:t})}case i.AstNodeType.FUNCTION_CALL:{const t=e.args.map(e=>this.convertReversedRangesToRegularRanges(e));return Object.assign(Object.assign({},e),{args:t})}case i.AstNodeType.ARRAY:{const t=e.args.map(e=>e.map(e=>this.convertReversedRangesToRegularRanges(e)));return Object.assign(Object.assign({},e),{args:t})}}}orderCellRangeEnds(e,t){const n=[e,t],[r,o]=n.map(e=>e.toColumnAddress()).sort(f.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),[a,s]=n.map(e=>e.toRowAddress()).sort(p.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),[u,l]=n.map(e=>e.sheet).sort(g.compareSheetIds.bind(this));return{start:i.CellAddress.fromColAndRow(r,a,u),end:i.CellAddress.fromColAndRow(o,s,l)}}orderColumnRangeEnds(e,t){const n=[e,t],[r,o]=n.sort(f.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),[i,a]=n.map(e=>e.sheet).sort(g.compareSheetIds.bind(this));return{start:new f.ColumnAddress(r.type,r.col,i),end:new f.ColumnAddress(o.type,o.col,a)}}orderRowRangeEnds(e,t){const n=[e,t],[r,o]=n.sort(p.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),[i,a]=n.map(e=>e.sheet).sort(g.compareSheetIds.bind(this));return{start:new p.RowAddress(r.type,r.row,i),end:new p.RowAddress(o.type,o.row,a)}}static compareSheetIds(e,t){return(e=null!=e?e:1/0)-(t=null!=t?t:1/0)}fetchCachedResultForAst(e){const t=this.computeHashFromAst(e);return this.fetchCachedResult(t)}fetchCachedResult(e){const t=this.cache.get(e);if(void 0===t)throw new Error("There is no AST with such key in the cache");{const{ast:e,hasVolatileFunction:n,hasStructuralChangeFunction:r,relativeDependencies:o}=t;return{ast:e,errors:[],hasVolatileFunction:n,hasStructuralChangeFunction:r,dependencies:o}}}computeHashFromTokens(e,t){var n;let o="",i=0;for(;i<e.length;){const s=e[i];if(Object(r.tokenMatcher)(s,d.CellReference)){const e=Object(a.cellAddressFromString)(this.sheetMapping,s.image,t);o=void 0===e?o.concat(s.image):o.concat(e.hash(!0))}else if(Object(r.tokenMatcher)(s,d.ProcedureName)){const e=s.image.toUpperCase().slice(0,-1),t=null!==(n=this.lexerConfig.functionMapping[e])&&void 0!==n?n:e;o=o.concat(t,"(")}else if(Object(r.tokenMatcher)(s,d.ColumnRange)){const[e,n]=s.image.split(":"),r=Object(a.columnAddressFromString)(this.sheetMapping,e,t),i=Object(a.columnAddressFromString)(this.sheetMapping,n,t);o=void 0===r||void 0===i?o.concat("!REF"):o.concat(r.hash(!0),":",i.hash(!0))}else if(Object(r.tokenMatcher)(s,d.RowRange)){const[e,n]=s.image.split(":"),r=Object(a.rowAddressFromString)(this.sheetMapping,e,t),i=Object(a.rowAddressFromString)(this.sheetMapping,n,t);o=void 0===r||void 0===i?o.concat("!REF"):o.concat(r.hash(!0),":",i.hash(!0))}else o=o.concat(s.image);i++}return o}rememberNewAst(e){const t=this.computeHashFromAst(e);return this.cache.maybeSetAndThenGet(t,e)}computeHashFromAst(e){return"="+this.computeHashOfAstNode(e)}computeHashOfAstNode(e){switch(e.type){case i.AstNodeType.EMPTY:return e.leadingWhitespace||"";case i.AstNodeType.NUMBER:return Object(s.imageWithWhitespace)(Object(h.formatNumber)(e.value,this.config.decimalSeparator),e.leadingWhitespace);case i.AstNodeType.STRING:return Object(s.imageWithWhitespace)('"'+e.value+'"',e.leadingWhitespace);case i.AstNodeType.NAMED_EXPRESSION:return Object(s.imageWithWhitespace)(e.expressionName,e.leadingWhitespace);case i.AstNodeType.FUNCTION_CALL:{const t=e.args.map(e=>this.computeHashOfAstNode(e)).join(this.config.functionArgSeparator),n=e.procedureName+"("+t+Object(s.imageWithWhitespace)(")",e.internalWhitespace);return Object(s.imageWithWhitespace)(n,e.leadingWhitespace)}case i.AstNodeType.CELL_REFERENCE:return Object(s.imageWithWhitespace)(e.reference.hash(!0),e.leadingWhitespace);case i.AstNodeType.COLUMN_RANGE:case i.AstNodeType.ROW_RANGE:case i.AstNodeType.CELL_RANGE:{const t=e.start.hash(e.sheetReferenceType!==s.RangeSheetReferenceType.RELATIVE),n=e.end.hash(e.sheetReferenceType===s.RangeSheetReferenceType.BOTH_ABSOLUTE);return Object(s.imageWithWhitespace)(t+":"+n,e.leadingWhitespace)}case i.AstNodeType.MINUS_UNARY_OP:return Object(s.imageWithWhitespace)("-"+this.computeHashOfAstNode(e.value),e.leadingWhitespace);case i.AstNodeType.PLUS_UNARY_OP:return Object(s.imageWithWhitespace)("+"+this.computeHashOfAstNode(e.value),e.leadingWhitespace);case i.AstNodeType.PERCENT_OP:return this.computeHashOfAstNode(e.value)+Object(s.imageWithWhitespace)("%",e.leadingWhitespace);case i.AstNodeType.ERROR:{const t=this.config.translationPackage.getErrorTranslation(e.error?e.error.type:o.ErrorType.ERROR);return Object(s.imageWithWhitespace)(t,e.leadingWhitespace)}case i.AstNodeType.ERROR_WITH_RAW_INPUT:return Object(s.imageWithWhitespace)(e.rawInput,e.leadingWhitespace);case i.AstNodeType.ARRAY:{const t=e.args.map(e=>e.map(e=>this.computeHashOfAstNode(e)).join(",")).join(";");return Object(s.imageWithWhitespace)("{"+t+Object(s.imageWithWhitespace)("}",e.internalWhitespace),e.leadingWhitespace)}case i.AstNodeType.PARENTHESIS:{const t="("+this.computeHashOfAstNode(e.expression)+Object(s.imageWithWhitespace)(")",e.internalWhitespace);return Object(s.imageWithWhitespace)(t,e.leadingWhitespace)}default:return this.computeHashOfAstNode(e.left)+Object(s.imageWithWhitespace)(u.binaryOpTokenMap[e.type],e.leadingWhitespace)+this.computeHashOfAstNode(e.right)}}bindWhitespacesToTokens(e){const t=[],n=e[0];Object(r.tokenMatcher)(n,this.lexerConfig.WhiteSpace)||t.push(n);for(let n=1;n<e.length;++n){const o=e[n];if(Object(r.tokenMatcher)(o,this.lexerConfig.WhiteSpace))continue;const i=e[n-1];Object(r.tokenMatcher)(i,this.lexerConfig.WhiteSpace)&&(o.leadingWhitespace=i),t.push(o)}return t}tokenizeFormula(e){return this.lexer.tokenizeFormula(e)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_MODE",(function(){return d})),n.d(t,"MODES",(function(){return h})),n.d(t,"SUPPORT_STICKY",(function(){return f})),n.d(t,"disableSticky",(function(){return p})),n.d(t,"enableSticky",(function(){return g})),n.d(t,"analyzeTokenTypes",(function(){return m})),n.d(t,"validatePatterns",(function(){return v})),n.d(t,"findMissingPatterns",(function(){return y})),n.d(t,"findInvalidPatterns",(function(){return E})),n.d(t,"findEndOfInputAnchor",(function(){return C})),n.d(t,"findEmptyMatchRegExps",(function(){return R})),n.d(t,"findStartOfInputAnchor",(function(){return S})),n.d(t,"findUnsupportedFlags",(function(){return O})),n.d(t,"findDuplicatePatterns",(function(){return b})),n.d(t,"findInvalidGroupType",(function(){return A})),n.d(t,"findModesThatDoNotExist",(function(){return N})),n.d(t,"findUnreachablePatterns",(function(){return M})),n.d(t,"addStartOfInput",(function(){return I})),n.d(t,"addStickyFlag",(function(){return _})),n.d(t,"performRuntimeChecks",(function(){return k})),n.d(t,"performWarningRuntimeChecks",(function(){return x})),n.d(t,"cloneEmptyGroups",(function(){return P})),n.d(t,"isCustomPattern",(function(){return L})),n.d(t,"isShortPattern",(function(){return D})),n.d(t,"LineTerminatorOptimizedTester",(function(){return F})),n.d(t,"buildLineBreakIssueMessage",(function(){return H})),n.d(t,"minOptimizationVal",(function(){return B})),n.d(t,"charCodeToOptimizedIndex",(function(){return W}));var r,o=n(240),i=n(137),a=n(38),s=n(640),u=n(241),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)}),c="PATTERN",d="defaultMode",h="modes",f="boolean"==typeof new RegExp("(?:)").sticky;function p(){f=!1}function g(){f=!0}function m(e,t){var n,r=(t=Object(a.defaults)(t,{useSticky:f,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;r("initCharCodeToOptimizedIndexMap",(function(){!function(){if(Object(a.isEmpty)(Y)){Y=new Array(65536);for(var e=0;e<65536;e++)Y[e]=e>255?255+~~(e/255):e}}()})),r("Reject Lexer.NA",(function(){n=Object(a.reject)(e,(function(e){return e[c]===i.Lexer.NA}))}));var o,u,l,d,h,p,g,m,v,y,E,T=!1;r("Transform Patterns",(function(){T=!1,o=Object(a.map)(n,(function(e){var n=e[c];if(Object(a.isRegExp)(n)){var r=n.source;return 1===r.length&&"^"!==r&&"$"!==r&&"."!==r?r:2!==r.length||"\\"!==r[0]||Object(a.contains)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],r[1])?t.useSticky?_(n):I(n):r[1]}if(Object(a.isFunction)(n))return T=!0,{exec:n};if(Object(a.has)(n,"exec"))return T=!0,n;if("string"==typeof n){if(1===n.length)return n;var o=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(o);return t.useSticky?_(i):I(i)}throw Error("non exhaustive match")}))})),r("misc mapping",(function(){u=Object(a.map)(n,(function(e){return e.tokenTypeIdx})),l=Object(a.map)(n,(function(e){var t=e.GROUP;if(t!==i.Lexer.SKIPPED){if(Object(a.isString)(t))return t;if(Object(a.isUndefined)(t))return!1;throw Error("non exhaustive match")}})),d=Object(a.map)(n,(function(e){var t=e.LONGER_ALT;if(t)return Object(a.indexOf)(n,t)})),h=Object(a.map)(n,(function(e){return e.PUSH_MODE})),p=Object(a.map)(n,(function(e){return Object(a.has)(e,"POP_MODE")}))})),r("Line Terminator Handling",(function(){var e=V(t.lineTerminatorCharacters);g=Object(a.map)(n,(function(e){return!1})),"onlyOffset"!==t.positionTracking&&(g=Object(a.map)(n,(function(t){return Object(a.has)(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===U(t,e)?Object(s.canMatchCharCode)(e,t.PATTERN):void 0})))})),r("Misc Mapping #2",(function(){m=Object(a.map)(n,L),v=Object(a.map)(o,D),y=Object(a.reduce)(n,(function(e,t){var n=t.GROUP;return Object(a.isString)(n)&&n!==i.Lexer.SKIPPED&&(e[n]=[]),e}),{}),E=Object(a.map)(o,(function(e,t){return{pattern:o[t],longerAlt:d[t],canLineTerminator:g[t],isCustom:m[t],short:v[t],group:l[t],push:h[t],pop:p[t],tokenTypeIdx:u[t],tokenType:n[t]}}))}));var C=!0,R=[];return t.safeMode||r("First Char Optimization",(function(){R=Object(a.reduce)(n,(function(e,n,r){if("string"==typeof n.PATTERN){var o=W(n.PATTERN.charCodeAt(0));j(e,o,E[r])}else if(Object(a.isArray)(n.START_CHARS_HINT)){var i;Object(a.forEach)(n.START_CHARS_HINT,(function(t){var n=W("string"==typeof t?t.charCodeAt(0):t);i!==n&&(i=n,j(e,n,E[r]))}))}else if(Object(a.isRegExp)(n.PATTERN))if(n.PATTERN.unicode)C=!1,t.ensureOptimizations&&Object(a.PRINT_ERROR)(s.failedOptimizationPrefixMsg+"\tUnable to analyze < "+n.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var u=Object(s.getOptimizedStartCodesIndices)(n.PATTERN,t.ensureOptimizations);Object(a.isEmpty)(u)&&(C=!1),Object(a.forEach)(u,(function(t){j(e,t,E[r])}))}else t.ensureOptimizations&&Object(a.PRINT_ERROR)(s.failedOptimizationPrefixMsg+"\tTokenType: <"+n.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),C=!1;return e}),[])})),r("ArrayPacking",(function(){R=Object(a.packArray)(R)})),{emptyGroups:y,patternIdxToConfig:E,charCodeToPatternIdxToConfig:R,hasCustom:T,canBeOptimized:C}}function v(e,t){var n=[],r=y(e);n=n.concat(r.errors);var o=E(r.valid),i=o.valid;return n=(n=(n=(n=(n=n.concat(o.errors)).concat(function(e){var t=[],n=Object(a.filter)(e,(function(e){return Object(a.isRegExp)(e[c])}));return t=(t=(t=(t=(t=t.concat(C(n))).concat(S(n))).concat(O(n))).concat(b(n))).concat(R(n))}(i))).concat(A(i))).concat(N(i,t))).concat(M(i))}function y(e){var t=Object(a.filter)(e,(function(e){return!Object(a.has)(e,c)}));return{errors:Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:i.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[e]}})),valid:Object(a.difference)(e,t)}}function E(e){var t=Object(a.filter)(e,(function(e){var t=e[c];return!(Object(a.isRegExp)(t)||Object(a.isFunction)(t)||Object(a.has)(t,"exec")||Object(a.isString)(t))}));return{errors:Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:i.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[e]}})),valid:Object(a.difference)(e,t)}}var T=/[^\\][\$]/;function C(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return l(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}(o.BaseRegExpVisitor),n=Object(a.filter)(e,(function(e){var n=e[c];try{var r=Object(u.getRegExpAst)(n),o=new t;return o.visit(r),o.found}catch(e){return T.test(n.source)}}));return Object(a.map)(n,(function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:i.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[e]}}))}function R(e){var t=Object(a.filter)(e,(function(e){return e[c].test("")}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:i.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[e]}}))}var w=/[^\\[][\^]|^\^/;function S(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return l(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}(o.BaseRegExpVisitor),n=Object(a.filter)(e,(function(e){var n=e[c];try{var r=Object(u.getRegExpAst)(n),o=new t;return o.visit(r),o.found}catch(e){return w.test(n.source)}}));return Object(a.map)(n,(function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:i.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[e]}}))}function O(e){var t=Object(a.filter)(e,(function(e){var t=e[c];return t instanceof RegExp&&(t.multiline||t.global)}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:i.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}}))}function b(e){var t=[],n=Object(a.map)(e,(function(n){return Object(a.reduce)(e,(function(e,r){return n.PATTERN.source!==r.PATTERN.source||Object(a.contains)(t,r)||r.PATTERN===i.Lexer.NA||(t.push(r),e.push(r)),e}),[])}));n=Object(a.compact)(n);var r=Object(a.filter)(n,(function(e){return e.length>1}));return Object(a.map)(r,(function(e){var t=Object(a.map)(e,(function(e){return e.name}));return{message:"The same RegExp pattern ->"+Object(a.first)(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:i.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}}))}function A(e){var t=Object(a.filter)(e,(function(e){if(!Object(a.has)(e,"GROUP"))return!1;var t=e.GROUP;return t!==i.Lexer.SKIPPED&&t!==i.Lexer.NA&&!Object(a.isString)(t)}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:i.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}}))}function N(e,t){var n=Object(a.filter)(e,(function(e){return void 0!==e.PUSH_MODE&&!Object(a.contains)(t,e.PUSH_MODE)}));return Object(a.map)(n,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:i.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}}))}function M(e){var t=[],n=Object(a.reduce)(e,(function(e,t,n){var r,o=t.PATTERN;return o===i.Lexer.NA||(Object(a.isString)(o)?e.push({str:o,idx:n,tokenType:t}):Object(a.isRegExp)(o)&&(r=o,void 0===Object(a.find)([".","\\","[","]","|","^","$","(",")","?","*","+","{"],(function(e){return-1!==r.source.indexOf(e)})))&&e.push({str:o.source,idx:n,tokenType:t})),e}),[]);return Object(a.forEach)(e,(function(e,r){Object(a.forEach)(n,(function(n){var o=n.str,s=n.idx,u=n.tokenType;if(r<s&&function(e,t){if(Object(a.isRegExp)(t)){var n=t.exec(e);return null!==n&&0===n.index}if(Object(a.isFunction)(t))return t(e,0,[],{});if(Object(a.has)(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(o,e.PATTERN)){var l="Token: ->"+u.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:l,type:i.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[e,u]})}}))})),t}function I(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function _(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function k(e,t,n){var r=[];return Object(a.has)(e,d)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+d+"> property in its definition\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object(a.has)(e,h)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+h+"> property in its definition\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object(a.has)(e,h)&&Object(a.has)(e,d)&&!Object(a.has)(e.modes,e.defaultMode)&&r.push({message:"A MultiMode Lexer cannot be initialized with a "+d+": <"+e.defaultMode+">which does not exist\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object(a.has)(e,h)&&Object(a.forEach)(e.modes,(function(e,t){Object(a.forEach)(e,(function(e,n){Object(a.isUndefined)(e)&&r.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+t+"> at index: <"+n+">\n",type:i.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),r}function x(e,t,n){var r=[],o=!1,u=Object(a.compact)(Object(a.flatten)(Object(a.mapValues)(e.modes,(function(e){return e})))),l=Object(a.reject)(u,(function(e){return e[c]===i.Lexer.NA})),d=V(n);return t&&Object(a.forEach)(l,(function(e){var t=U(e,d);if(!1!==t){var n={message:H(e,t),type:t.issue,tokenType:e};r.push(n)}else Object(a.has)(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(o=!0):Object(s.canMatchCharCode)(d,e.PATTERN)&&(o=!0)})),t&&!o&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:i.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),r}function P(e){var t={},n=Object(a.keys)(e);return Object(a.forEach)(n,(function(n){var r=e[n];if(!Object(a.isArray)(r))throw Error("non exhaustive match");t[n]=[]})),t}function L(e){var t=e.PATTERN;if(Object(a.isRegExp)(t))return!1;if(Object(a.isFunction)(t))return!0;if(Object(a.has)(t,"exec"))return!0;if(Object(a.isString)(t))return!1;throw Error("non exhaustive match")}function D(e){return!(!Object(a.isString)(e)||1!==e.length)&&e.charCodeAt(0)}var F={test:function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var r=e.charCodeAt(n);if(10===r)return this.lastIndex=n+1,!0;if(13===r)return 10===e.charCodeAt(n+1)?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};function U(e,t){if(Object(a.has)(e,"LINE_BREAKS"))return!1;if(Object(a.isRegExp)(e.PATTERN)){try{Object(s.canMatchCharCode)(t,e.PATTERN)}catch(e){return{issue:i.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(Object(a.isString)(e.PATTERN))return!1;if(L(e))return{issue:i.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function H(e,t){if(t.issue===i.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===i.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function V(e){return Object(a.map)(e,(function(e){return Object(a.isString)(e)&&e.length>0?e.charCodeAt(0):e}))}function j(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}var B=256;function W(e){return e<B?e:Y[e]}var Y=[]},function(e,t,n){"use strict";n.r(t),n.d(t,"first",(function(){return a})),n.d(t,"firstForSequence",(function(){return s})),n.d(t,"firstForBranching",(function(){return u})),n.d(t,"firstForTerminal",(function(){return l}));var r=n(38),o=n(45),i=n(158);function a(e){if(e instanceof o.NonTerminal)return a(e.referencedRule);if(e instanceof o.Terminal)return l(e);if(Object(i.isSequenceProd)(e))return s(e);if(Object(i.isBranchingProd)(e))return u(e);throw Error("non exhaustive match")}function s(e){for(var t,n=[],o=e.definition,s=0,u=o.length>s,l=!0;u&&l;)t=o[s],l=Object(i.isOptionalProd)(t),n=n.concat(a(t)),s+=1,u=o.length>s;return Object(r.uniq)(n)}function u(e){var t=Object(r.map)(e.definition,(function(e){return a(e)}));return Object(r.uniq)(Object(r.flatten)(t))}function l(e){return[e.terminalType]}},function(e,t,n){"use strict";n.r(t),n.d(t,"IN",(function(){return r}));var r="_~IN~_"},function(e,t,n){"use strict";n.r(t),n.d(t,"EOF_FOLLOW_KEY",(function(){return u})),n.d(t,"IN_RULE_RECOVERY_EXCEPTION",(function(){return l})),n.d(t,"InRuleRecoveryException",(function(){return c})),n.d(t,"Recoverable",(function(){return d})),n.d(t,"attemptInRepetitionRecovery",(function(){return h}));var r=n(87),o=n(38),i=n(100),a=n(321),s=n(68),u={},l="InRuleRecoveryException";function c(e){this.name=l,this.message=e}c.prototype=Error.prototype;var d=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Object(o.has)(e,"recoveryEnabled")?e.recoveryEnabled:s.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=h)},e.prototype.getTokenToInsert=function(e){var t=Object(r.createTokenInstance)(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,n,r){for(var a=this,s=this.findReSyncTokenType(),u=this.exportLexerState(),l=[],c=!1,d=this.LA(1),h=this.LA(1),f=function(){var e=a.LA(0),t=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:e,ruleName:a.getCurrRuleFullName()}),n=new i.MismatchedTokenException(t,d,a.LA(0));n.resyncedTokens=Object(o.dropRight)(l),a.SAVE_ERROR(n)};!c;){if(this.tokenMatcher(h,r))return void f();if(n.call(this))return f(),void e.apply(this,t);this.tokenMatcher(h,s)?c=!0:(h=this.SKIP_TOKEN(),this.addToResyncTokens(h,l))}this.importLexerState(u)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,n){return!1!==n&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new c("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var n=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(Object(o.isEmpty)(t))return!1;var r=this.LA(1);return void 0!==Object(o.find)(t,(function(e){return n.tokenMatcher(r,e)}))},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(t);return Object(o.contains)(n,e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),n=2;;){var r=t.tokenType;if(Object(o.contains)(e,r))return r;t=this.LA(n),n++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return u;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return Object(o.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)||(t=Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.RULE_STACK[t]})),n=Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.RULE_OCCURRENCE_STACK[t]}))),Object(o.map)(t,(function(r,o){return 0===o?u:{ruleName:e.shortRuleNameToFullName(r),idxInCallingRule:n[o],inRule:e.shortRuleNameToFullName(t[o-1])}}))},e.prototype.flattenFollowSet=function(){var e=this,t=Object(o.map)(this.buildFullFollowKeyStack(),(function(t){return e.getFollowSetFromFollowKey(t)}));return Object(o.flatten)(t)},e.prototype.getFollowSetFromFollowKey=function(e){if(e===u)return[r.EOF];var t=e.ruleName+e.idxInCallingRule+a.IN+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,r.EOF)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],n=this.LA(1);!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return Object(o.dropRight)(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,n,r,o,i,a){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Object(o.cloneArr)(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return Object(o.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)?Object(o.map)(this.RULE_STACK,(function(t){return e.shortRuleNameToFullName(t)})):Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])}))},e}();function h(e,t,n,o,i,a,s){var u=this.getKeyForAutomaticLookahead(o,i),l=this.firstAfterRepMap[u];if(void 0===l){var c=this.getCurrRuleFullName();l=new a(this.getGAstProductions()[c],i).startWalking(),this.firstAfterRepMap[u]=l}var d=l.token,h=l.occurrence,f=l.isEndOfRule;1===this.RULE_STACK.length&&f&&void 0===d&&(d=r.EOF,h=1),this.shouldInRepetitionRecoveryBeTried(d,h,s)&&this.tryInRepetitionRecovery(e,t,n,d)}},function(e,t,n){"use strict";n.r(t),n.d(t,"classNameFromInstance",(function(){return o})),n.d(t,"functionName",(function(){return a})),n.d(t,"defineNameProp",(function(){return s}));var r=n(38);function o(e){return a(e.constructor)}var i=/^\s*function\s*(\S*)\s*\(/;function a(e){var t=e.name;return t||e.toString().match(i)[1]}function s(e,t){var n=Object.getOwnPropertyDescriptor(e,"name");return!(!Object(r.isUndefined)(n)&&!n.configurable)&&(Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"createSyntaxDiagramsCode",(function(){return o}));var r=n(238);function o(e,t){var n=void 0===t?{}:t,o=n.resourceBase,i=void 0===o?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/":o,a=n.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===a?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/diagrams.css":a)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},function(e,t,n){"use strict";n.r(t),n.d(t,"binaryOpTokenMap",(function(){return o}));var r=n(93);
|
260
260
|
/**
|
261
261
|
* @license
|
262
262
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -521,7 +521,7 @@ class s extends a.FunctionPlugin{complex(e,t){return this.runFunction(e.args,t,t
|
|
521
521
|
* @license
|
522
522
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
523
523
|
*/
|
524
|
-
class u 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=l(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=l(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=l(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=l(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 u=i/s,l=a.centralF.cdf(u,n.length-1,o.length-1);return 2*Math.min(l,1-l)})}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=l(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=l(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=l(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 u=0;for(let e=0;e<s[0].length;e++){if(0===s[1][e])return new r.CellError(r.ErrorType.DIV_BY_ZERO);u+=Math.pow(s[0][e]-s[1][e],2)/s[1][e]}return u<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NaN):1-a.chisquare.cdf(u,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()),u=this.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(s instanceof r.CellError)return s;if(u instanceof r.CellError)return u;const l=s.length,c=u.length;if(1===i){if(c!==l)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);if(l<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=Array(l);for(let t=0;t<l;t++)e[t]=s[t]-u[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(l)*Object(a.mean)(e)/t);return n*(1-a.studentt.cdf(i,l-1))}if(2===i){if(l<=1||c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=(Object(a.sumsqerr)(s)+Object(a.sumsqerr)(u))/(l+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)(u))/Math.sqrt(e*(1/l+1/c)));return n*(1-a.studentt.cdf(t,l+c-2))}{if(l<=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)(u,!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)(u))/Math.sqrt(e/l+t/c)),d=Math.pow(e/l+t/c,2)/(Math.pow(e/l,2)/(l-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 l(e,t){const n=e.iterateValuesFromTopLeftCorner(),o=t.iterateValuesFromTopLeftCorner();let a,s;const u=[],l=[];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)&&(u.push(Object(i.getRawValue)(e)),l.push(Object(i.getRawValue)(t)))}return[u,l]}u.implementedFunctions={AVEDEV:{method:"avedev",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},DEVSQ:{method:"devsq",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},GEOMEAN:{method:"geomean",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},HARMEAN:{method:"harmean",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},CORREL:{method:"correl",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},RSQ:{method:"rsq",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"COVARIANCE.P":{method:"covariancep",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"COVARIANCE.S":{method:"covariances",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"Z.TEST":{method:"ztest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.NUMBER},{argumentType:s.FunctionArgumentType.NUMBER,optionalArg:!0}]},"F.TEST":{method:"ftest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},STEYX:{method:"steyx",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},SLOPE:{method:"slope",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"CHISQ.TEST":{method:"chisqtest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"T.TEST":{method:"ttest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.INTEGER,minValue:1,maxValue:2},{argumentType:s.FunctionArgumentType.INTEGER,minValue:1,maxValue:3}]},SKEW:{method:"skew",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},"SKEW.P":{method:"skewp",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1}},u.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,n){var r=n(141);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},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(55),o=n(384),i=n(84),a=n(62),s=n(88),u=n(171);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),l=o.length,c=0;l>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(55),o=n(28);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(55),o=n(28),i=n(212);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(66),o=n(63),i=n(170),a=n(124),s=n(691),u=n(48),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw l("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(54),i=n(88),a=n(266).indexOf,s=n(173),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},function(e,t,n){var r=n(106);e.exports=r("document","documentElement")},function(e,t,n){var r=n(45),o=n(49),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){var r=n(30),o=n(28),i=n(49),a=n(54),s=n(55),u=n(176).CONFIGURABLE,l=n(391),c=n(107),d=c.enforce,h=c.get,f=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),E=String(String).split("String"),T=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=v(E,"string"==typeof t?t:"")),e};Function.prototype.toString=T((function(){return i(this)&&h(this).source||l(this)}),"toString")},function(e,t,n){var r=n(30),o=n(49),i=n(264),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(54),o=n(393),i=n(117),a=n(84);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||u(e,d,l(t,d))}}},function(e,t,n){var r=n(106),o=n(30),i=n(143),a=n(216),s=n(62),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},function(e,t,n){"use strict";var r,o,i,a=n(28),s=n(49),u=n(63),l=n(123),c=n(269),d=n(97),h=n(48),f=n(114),p=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):g=!0),!u(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=l(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(28);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(694),o=n(62),i=n(695);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(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(48),o=n(174),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(66),o=n(125),i=n(62),a=n(142),s=n(278),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw u(a(e)+" is not iterable")}},function(e,t,n){var r=n(66),o=n(62),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(48)("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(274),i=n(177).getWeakData,a=n(279),s=n(62),u=n(96),l=n(63),c=n(277),d=n(128),h=n(54),f=n(107),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}),u(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(!l(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(!l(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(l(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(212)("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,P.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,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(function(e){X.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(function(e){X.runHooks("afterRowSequenceChange",e)})),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,P.hasLanguageDictionary)(t)?(X.runHooks("beforeLanguageChange",t),te.language=t,X.runHooks("afterLanguageChange",t)):(0,L.warnUserAboutLanguageRegistration)(e)}function ue(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 le(){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 u=new le;u.onQueueEmpty=function(e){o&&s&&o.cancelChanges(),n(e)};for(var l=e.length-1;l>=0;l--)if(null===e[l])e.splice(l,1);else{var d=(0,a.default)(e[l],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[l][3]=ce(p)),X.getCellValidator(m)&&(u.addValidatorToQueue(),X.validateCell(e[l][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)}u.removeValidatorFormQueue()}}(l,m),t))}u.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(),u=G.selection.selectedRange.current(),l=!0;K&&(l=!1),t.isTouched()&&(l=!t.value);var d=G.selection.isSelectedByRowHeader(),h=G.selection.isSelectedByColumnHeader();!1!==l&&(s?d?G.view.scrollViewportVertically(X.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&G.view.scrollViewportHorizontally(X.columnIndexMapper.getRenderableFromVisualIndex(e.col)):u&&!G.selection.isMultiple()?G.view.scrollViewport(re(u.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),u=s[0]+s[1];if(r<=u){var l=Math.max(o-(u-r),0);i[1]+=l}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)(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_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)(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_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:_}),x=k.delta,P=k.startPhysicalIndex;if(x){if(Array.isArray(ee.colHeaders)){var L=[X.toVisualColumn(P),0];L.length+=x,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(P);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+x),!0),ie.setRangeEnd(X._createCellCoords(B,Y+x))}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 u=X.countRows(),l=ee.fixedRowsTop;l>=s+1&&(ee.fixedRowsTop-=Math.min(i,l-s));var c=ee.fixedRowsBottom;c&&s>=u-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),u=X.toPhysicalColumn(s);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,i,d)){var l=ee.fixedColumnsStart;l>=s+1&&(ee.fixedColumnsStart-=Math.min(i,l-s)),Array.isArray(ee.colHeaders)&&(void 0===u&&(u=-1),ee.colHeaders.splice(u,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 u=n-s,l=Math.min(u,ee.maxRows-X.countSourceRows());r.createRow(X.countRows(),l,{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,u){var l,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(l=0,c=w[d].length;l<R-c;l+=1)w[d].push(w[d][l%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(l=0;l<M;l+=1)if(l<N){for(d=0,f=t[l].length;d<C-f;d+=1)t[l].push(t[l][d%f]);var _;if(l<I.length)for(var k=0;k<I[l].length;k+=1)t[l].push(I[l][k]);else(_=t[l]).push.apply(_,(0,s.default)(new Array(I[0].length).fill(null)))}else t.push(t[l%c].slice(0,M).concat(I[l]));X.populateFromArray(v,T,t);break;case"overwrite":default:g.row=e.row,g.col=e.col;var x,P={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),l=0;l<c&&!(n&&g.row>n.row&&V>H||!ee.allowInsertRow&&g.row>X.countRows()-1||g.row>=ee.maxRows);l++){var j=l-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,x=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!x.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(x=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!x.skipColumnOnPaste)if(x.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,u,{},P);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),u=X.columnIndexMapper.getRenderableFromVisualIndex(o);X.view._wt.getSetting("cellRenderer",s,u,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,u,l=fe(e,t,n),c=[],d=i;for(a=0,s=l.length;a<s;a++){if("object"!==(0,o.default)(l[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof l[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`");u=l[a][1]>=this.countCols()?l[a][1]:r.colToProp(l[a][1]),c.push([l[a][0],u,B.getAtCell(this.toPhysicalRow(l[a][0]),l[a][1]),l[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),u=[],l=r;for(i=0,a=s.length;i<a;i++)u.push([s[i][0],s[i][1],B.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);l||"object"!==(0,o.default)(e)||(l=t),X.runHooks("afterSetDataAtRowProp",u,l),de(u,l,(function(){he(u,l)}))},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,u,l){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,u,l)},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?ue("className",e.className):"tableClassName"===t&&X.table?(ue("tableClassName",e.tableClassName),X.view._wt.wtOverlays.syncOverlayTableClassNames()):x.default.getSingleton().isRegistered(t)||x.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(),u=ee.columns;if(u&&(0,d.isFunction)(u)&&(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(u){var l=a?u(t):u[n];l&&J.updateColumnMeta(n,l)}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){for(var t=[],n=r.getRange(X._createCellCoords(0,e),X._createCellCoords(ee.data.length-1,e),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},this.getDataAtProp=function(e){for(var t=[],n=r.getRange(X._createCellCoords(0,r.propToCol(e)),X._createCellCoords(ee.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},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 u=X.getActiveEditor();u&&(0,h.isDefined)(u.refreshValue)&&u.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],u=i[2],l=i[3],c=null,d=null;void 0===u&&(u=a),void 0===l&&(l=s);var h="mixed";return(0,b.rangeEach)(Math.max(Math.min(a,u),0),Math.max(a,u),(function(e){var t=!0;return(0,b.rangeEach)(Math.max(Math.min(s,l),0),Math.max(s,l),(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 le;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]},u=X.toPhysicalColumn(n),l=s(u);return!1===ee.colHeaders?a=null:ee.columns&&(0,d.isFunction)(ee.columns)&&ee.columns(l)&&ee.columns(l).title?a=ee.columns(l).title:ee.columns&&ee.columns[u]&&ee.columns[u].title?a=ee.columns[u].title:Array.isArray(ee.colHeaders)&&void 0!==ee.colHeaders[u]?a=ee.colHeaders[u]:(0,d.isFunction)(ee.colHeaders)?a=ee.colHeaders(u):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,u=t;if(o){var l=Number.isInteger(e),c=Number.isInteger(t),d=l?pe(this.rowIndexMapper,e):void 0,h=c?pe(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=l?X.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,u=c?X.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),p=Number.isInteger(u);return f&&p?X.view.scrollViewport(X._createCellCoords(s,u),i,r,n,a):f&&!1===p?X.view.scrollViewportVertically(s,i,n):!(!p||!1!==f)&&X.view.scrollViewportHorizontally(u,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),x.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(),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){x.default.getSingleton().add(e,t,X)},this.hasHook=function(e){return x.default.getSingleton().has(e,X)||x.default.getSingleton().has(e)},this.addHookOnce=function(e,t){x.default.getSingleton().once(e,t,X)},this.removeHook=function(e,t){x.default.getSingleton().remove(e,t,X)},this.runHooks=function(e,t,n,r,o,i,a){return x.default.getSingleton().run(X,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,P.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))})),x.default.getSingleton().run(X,"construct")};var o=r(n(14)),i=r(n(64)),a=r(n(24)),s=r(n(32));n(4),n(1),n(52),n(5),n(6),n(31),n(89),n(53),n(70),n(71),n(37),n(20),n(147),n(57),n(50),n(79),n(47),n(23),n(183),n(21),n(67),n(725),n(41);var u,l,c=n(15),d=n(58),h=n(25),f=n(90),p=n(72),g=n(65),m=r(n(184)),v=r(n(51)),y=n(12),E=n(13),T=n(290),C=n(227),R=n(185),w=n(130),S=n(186),O=n(80),b=n(36),A=r(n(746)),N=r(n(795)),M=n(134),I=n(76),_=n(296),k=n(131),x=r(n(59)),P=n(585),L=n(586),D=n(300),F=n(588),U=n(228),H=n(832),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(123),o=n(180),i=n(274),a=n(178),s=n(279),u=n(96),l=n(277),c=n(268),d=n(270),h=n(410),f=n(55),p=n(177).fastKey,g=n(107),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,o){s(e,h),m(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),u(o)||l(o,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&&o(h,"size",{configurable:!0,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(106),o=n(180),i=n(48),a=n(55),s=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&o(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(45);e.exports=r},function(e,t,n){var r=n(30);e.exports=r(1..valueOf)},function(e,t,n){var r=n(30),o=n(82),i=n(56),a=n(416),s=r("".replace),u=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(62);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(28),o=n(45).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(28),o=n(45).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){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(45),u=n(129),l=n(178),c=n(49),d=n(54),h=n(28),f=n(388),p=n(182),g=n(212),m=n(420),v=n(727),y=n(422),E=s.setImmediate,T=s.clearImmediate,C=s.process,R=s.Dispatch,w=s.Function,S=s.MessageChannel,O=s.String,b=0,A={};h((function(){r=s.location}));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(){u(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=l(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(102);e.exports="undefined"!=typeof process&&"process"==r(process)},function(e,t,n){var r=n(22),o=n(28),i=n(83),a=n(269),s=n(395);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(66),o=n(54),i=n(115),a=n(417),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(732);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(221),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,u=Object.isFrozen,l=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&&(u(t)||(t[r]=i),o=i)}e[o]=!0}return e}function _(e){var t,n=f(null);for(t in e)!0===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=l(e)}return function(e){return console.warn("fallback value for",e),null}}var x=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"]),P=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.5",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,u=n.HTMLTemplateElement,l=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 u){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=ee(v,i),se=ae?ae.createHTML(""):"",ue=a,le=ue.implementation,ce=ue.createNodeIterator,de=ue.createDocumentFragment,he=ue.getElementsByTagName,fe=i.importNode,pe={};try{pe=_(a).documentMode?a.documentMode:{}}catch(e){}var ge={};r.isSupported="function"==typeof oe&&le&&void 0!==le.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(x),o(P),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,xe=!0,Pe=!0,Le=!1,De=!0,Fe=!1,Ue=!1,He=!1,Ve=!1,je=!1,Be=!1,We=!1,Ye=!0,Ge=!1,ze="user-content-",Ke=!0,Xe=!1,qe={},$e=null,Qe=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"]),Ze=null,Je=I({},["audio","video","img","source","image","track"]),et=null,tt=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,at=!1,st=null,ut=I({},[nt,rt,ot],R),lt=["application/xhtml+xml","text/html"],ct="text/html",dt=null,ht=a.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=_(t),me=me=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct: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,st="ALLOWED_NAMESPACES"in t?I({},t.ALLOWED_NAMESPACES,R):ut,et="ADD_URI_SAFE_ATTR"in t?I(_(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Ze="ADD_DATA_URI_TAGS"in t?I(_(Je),t.ADD_DATA_URI_TAGS,ve):Je,$e="FORBID_CONTENTS"in t?I({},t.FORBID_CONTENTS,ve):Qe,_e="FORBID_TAGS"in t?I({},t.FORBID_TAGS,ve):{},ke="FORBID_ATTR"in t?I({},t.FORBID_ATTR,ve):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,xe=!1!==t.ALLOW_ARIA_ATTR,Pe=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,Ue=t.WHOLE_DOCUMENT||!1,je=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,We=t.RETURN_TRUSTED_TYPE||!1,Ve=t.FORCE_BODY||!1,Ye=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Xe=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,it=t.NAMESPACE||ot,Ie=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(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),Fe&&(Pe=!1),Be&&(je=!0),qe&&(be=I({},o(H)),Ne=[],!0===qe.html&&(I(be,x),I(Ne,V)),!0===qe.svg&&(I(be,P),I(Ne,j),I(Ne,W)),!0===qe.svgFilters&&(I(be,L),I(Ne,j),I(Ne,W)),!0===qe.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(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&($e===Qe&&($e=_($e)),I($e,t.FORBID_CONTENTS,ve)),Ke&&(be["#text"]=!0),Ue&&I(be,["html","head","body"]),be.table&&(I(be,["tbody"]),delete _e.tbody),d&&d(t),dt=t)},gt=I({},["mi","mo","mn","ms","mtext"]),mt=I({},["foreignobject","desc","title","annotation-xml"]),vt=I({},["title","style","font","a","script"]),yt=I({},P);I(yt,L),I(yt,D);var Et=I({},F);I(Et,U);var Tt=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||gt[r]):Boolean(yt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&mt[r]:Boolean(Et[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!mt[r])&&!(t.namespaceURI===nt&&!gt[r])&&!Et[n]&&(vt[n]||!yt[n]):!("application/xhtml+xml"!==me||!st[e.namespaceURI]))},Ct=function(e){T(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Rt=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(je||Be)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},wt=function(e){var t,n;if(Ve)e="<remove></remove>"+e;else{var r=w(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(it===ot)try{t=(new m).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),it===ot?he.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:i},St=function(e){return ce.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},Ot=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)},bt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},At=function(e,t,n){ge[e]&&y(ge[e],(function(e){e.call(r,t,n,dt)}))},Nt=function(e){var t;if(At("beforeSanitizeElements",e,null),Ot(e))return Ct(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return Ct(e),!0;var n=ve(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return Ct(e),!0;if("select"===n&&A(/<template/i,e.innerHTML))return Ct(e),!0;if(!be[n]||_e[n]){if(!_e[n]&&It(n)){if(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(Ke&&!$e[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 Ct(e),!0}return e instanceof c&&!Tt(e)?(Ct(e),!0):"noscript"!==n&&"noembed"!==n||!A(/<\/no(script|embed)/i,e.innerHTML)?(Fe&&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)),At("afterSanitizeElements",e,null),!1):(Ct(e),!0)},Mt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in a||n in ht))return!1;if(Pe&&!ke[t]&&A(Ce,t));else if(xe&&A(Re,t));else if(!Ne[t]||ke[t]){if(!(It(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(et[t]);else if(A(Oe,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Ze[e])if(Le&&!A(we,S(n,Se,"")));else if(n)return!1;return!0},It=function(e){return e.indexOf("-")>0},_t=function(t){var n,o,i,a;At("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(a=s.length;a--;){var l=n=s[a],c=l.name,d=l.namespaceURI;if(o="value"===c?n.value:b(n.value),i=ve(c),u.attrName=i,u.attrValue=o,u.keepAttr=!0,u.forceKeepAttr=void 0,At("uponSanitizeAttribute",t,u),o=u.attrValue,!u.forceKeepAttr&&(Rt(c,t),u.keepAttr))if(De||!A(/\/>/i,o)){Fe&&(o=S(o,ye," "),o=S(o,Ee," "),o=S(o,Te," "));var h=ve(t.nodeName);if(Mt(h,i,o)){if(!Ge||"id"!==i&&"name"!==i||(Rt(c,t),o=ze+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){}}}else Rt(c,t)}At("afterSanitizeAttributes",t,null)}},kt=function e(t){var n,r=St(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Nt(n)||(n.content instanceof s&&e(n.content),_t(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,a,u,c,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(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(bt(t))return n.toStaticHTML(t.outerHTML)}return t}if(He||pt(h),r.removed=[],"string"==typeof t&&(Xe=!1),Xe){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 l)1===(a=(o=wt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!je&&!Fe&&!Ue&&-1===t.indexOf("<"))return ae&&We?ae.createHTML(t):t;if(!(o=wt(t)))return je?null:We?se:""}o&&Ve&&Ct(o.firstChild);for(var p=St(Xe?t:o);u=p.nextNode();)3===u.nodeType&&u===c||Nt(u)||(u.content instanceof s&&kt(u.content),_t(u),c=u);if(c=null,Xe)return t;if(je){if(Be)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(Ne.shadowroot||Ne.shadowrootmod)&&(d=fe.call(i,d,!0)),d}var g=Ue?o.outerHTML:o.innerHTML;return Ue&&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),Fe&&(g=S(g,ye," "),g=S(g,Ee," "),g=S(g,Te," ")),ae&&We?ae.createHTML(g):g},r.setConfig=function(e){pt(e),He=!0},r.clearConfig=function(){dt=null,He=!1},r.isValidAttribute=function(e,t,n){dt||pt({});var r=ve(e),o=ve(t);return Mt(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(427)},function(e,t,n){"use strict";var r=n(22),o=n(736).start;r({target:"String",proto:!0,forced:n(737)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},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(66),o=n(223),i=n(62),a=n(96),s=n(126),u=n(56),l=n(82),c=n(124),d=n(284),h=n(224);o("match",(function(e,t,n){return[function(t){var n=l(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;if(!r.global)return h(r,o);var l=r.unicode;r.lastIndex=0;for(var c,f=[],p=0;null!==(c=h(r,o));){var g=u(c[0]);f[p]=g,""===g&&(r.lastIndex=d(o,s(r.lastIndex),l)),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(291),s=new WeakMap,u=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,u=t.overrideFn,l=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d,f=t.inlineStartOffset;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:u,calculationType:l,stretchingColumnWidthFn:h,inlineStartOffset:f}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,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=0,i=0,u=s.get(this),l=u.calculationType,c=u.overrideFn,d=u.scrollOffset,h=Math.max(u.scrollOffset,0),f=u.totalColumns,p=u.viewportWidth,g=h>0?p+1:p,m=0;m<f;m++)if(e=this._getColumnWidth(m),t<=h&&l!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=m,o=e),t>=h&&t+(l===a.FULLY_VISIBLE_TYPE?e:0)<=h+g&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=m,o=e),this.endColumn=m),r.push(t),t+=e,i=e,l!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=m),t>=h+p){n=!1;break}var v=d+p-g,y=l===a.FULLY_VISIBLE_TYPE?0:i,E=l===a.FULLY_VISIBLE_TYPE?o:0;if(v<-1*u.inlineStartOffset||d>r.at(-1)+y||-1*u.scrollOffset-u.viewportWidth>-1*E?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endColumn===f-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var T=r[this.endColumn]+e-r[this.startColumn-1];if((T<=p||l!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),T>p)break}l===a.RENDER_TYPE&&null!==this.startColumn&&c&&c(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),f<this.endColumn&&(this.endColumn=f-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),u=n.stretchingColumnWidthFn(void 0,i);"number"==typeof u?t-=u:o+=a}var l=t-o;if("all"===this.stretch&&l>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=l+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 u=0;u<this.stretchAllColumnsWidth.length;u++)n+=this.stretchAllColumnsWidth[u];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=u},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(291),s=new WeakMap,u=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,u=t.overrideFn,l=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:u,calculationType:l,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=s.get(this),r=n.calculationType,o=n.overrideFn,i=n.rowHeightFn,u=n.scrollOffset,l=Math.max(n.scrollOffset,0),c=n.totalRows,d=n.viewportHeight,h=n.horizontalScrollbarHeight||0,f=0,p=!0,g=[],m=0,v=0,y=0;y<c;y++)if(t=i(y),isNaN(t)&&(t=e.DEFAULT_HEIGHT),f<=l&&r!==a.FULLY_VISIBLE_TYPE&&(this.startRow=y,m=t),f>=l&&f+(r===a.FULLY_VISIBLE_TYPE?t:0)<=l+d-h&&(null===this.startRow&&(this.startRow=y,m=t),this.endRow=y),g.push(f),f+=t,v=t,r!==a.FULLY_VISIBLE_TYPE&&(this.endRow=y),f>=l+d-h){p=!1;break}var E=u+d-h,T=r===a.FULLY_VISIBLE_TYPE?m:0,C=r===a.FULLY_VISIBLE_TYPE?0:v;if(E<T||u>g.at(-1)+C?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endRow===c-1&&p)for(this.startRow=this.endRow;this.startRow>0;){var R=g[this.endRow]+t-g[this.startRow-1];if((R<=d-h||r!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),R>=d-h)break}r===a.RENDER_TYPE&&null!==this.startRow&&o&&o(this),this.startPosition=g[this.startRow],void 0===this.startPosition&&(this.startPosition=null),c<this.endRow&&(this.endRow=c-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(40),n(23),n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=r(n(74)),u=r(n(75)),l=r(n(292));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,u.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),u=Math.max(n.row,i.row),l=Math.max(n.col,i.col),c=this._createCellCoords(a,s),d=this._createCellCoords(u,l);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 l.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),u=Math.max(e.from.col,e.to.col),l=[];return t===i&&l.push("top"),o===u&&l.push("right"),n===a&&l.push("bottom"),r===s&&l.push("left"),l}},{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 l.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(15),s=n(58),u=n(108),l=n(90),c=n(25),d=new WeakMap,h=function(){function e(t,n,r,i,a,s){var u=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=u,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,l.isMobileBrowser)()?t():((0,u.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),o=this.parent||this;n&&n!==r&&(0,a.isChildOf)(n,t)&&(this.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n),null===r&&(o.lastMouseOver=null))}}},{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,l.isIOS)()&&((0,l.isChromeWebKit)()||(0,l.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(758));t.RowHeadersRenderer=a.default;var s=r(n(763));t.ColumnHeadersRenderer=s.default;var u=r(n(764));t.ColGroupRenderer=u.default;var l=r(n(765));t.RowsRenderer=l.default;var c=r(n(766));t.CellsRenderer=c.default;var d=r(n(767));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 u.default(i),rows:new l.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(573),s=r(n(759)),u=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=u},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(22),o=n(273),i=n(28),a=n(63),s=n(177).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(e){return u&&a(e)?u(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(41),n(1),n(5),n(6);var r=n(73);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,u=i.isSelected()?i.getSelectedRange().current():null,l=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&u)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(l||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):l&&o.row<0&&!a.column?i.setRangeEnd(s(u.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,u.to.col)):(!l&&!c&&o.col<0||l&&o.col<0)&&!a.row?i.selectRows(Math.max(u.from.row,0),o.row,o.col):(!l&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(u.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(),u=r.tableProps.countCols(),l=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(l-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,u-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){var r=n(48);t.f=r},function(e,t,n){var r=n(413),o=n(54),i=n(579),a=n(84).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(141);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";n(21),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(41),n(1),n(5),n(6);var o=n(797);t.HidingMap=o.HidingMap;var i=n(231);t.IndexMap=i.IndexMap;var a=n(799);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(297);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var u=n(800);t.TrimmingMap=u.TrimmingMap;var l=n(801);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}));var c=n(232);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",u.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(41),n(1),n(5),n(6);var r=n(583);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(232),i=n(298),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(16);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,u.normalizeLanguageCode)(e);R(t)||(t=p,(0,u.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=R,t.registerLanguageDictionary=T;var i=n(12),a=n(13),s=n(25),u=n(586),l=r(n(103)),c=n(807),d=r(n(809)),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,l.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,u.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,u.error)((0,l.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(50);var i,a=n(25),s=n(12),u=n(72),l=n(65)},function(e,t,n){"use strict";n(43),n(35),n(16),n(21),n(77);var r=n(0);t.__esModule=!0,t.default=void 0,n(147),n(4),n(41),n(1),n(5),n(6),n(31),n(40),n(20),n(301),n(60),n(188);var o=r(n(32)),i=r(n(27)),a=r(n(2)),s=r(n(3)),u=n(810),l=n(104),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,u.createHighlight)(l.CELL_TYPE,e),this.fill=(0,u.createHighlight)(l.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===l.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,u.createHighlight)(l.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,u.createHighlight)(l.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,u.createHighlight)(l.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,u.createHighlight)(l.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(589));t.DataMap=o.default;var i=r(n(824));t.MetaManager=i.default;var a=r(n(591));t.metaSchemaFactory=a.default;var s=n(829);t.replaceData=s.replaceData;var u=n(830);t.DynamicCellMetaMod=u.DynamicCellMetaMod;var l=n(831);t.ExtendMetaPropertiesMod=l.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(41),n(1),n(5),n(6),n(70),n(71),n(53),n(89),n(37),n(21),n(20),n(35),n(23);var o=r(n(32)),i=r(n(14)),a=r(n(2)),s=r(n(3)),u=n(590),l=n(134),c=n(12),d=n(13),h=n(36),f=n(25),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 u=i?n(t):n[t];if((0,c.isObject)(u)){if(void 0!==u.data){var l=i?o:t;this.colToPropCache[l]=u.data,this.propToColCache.set(u.data,l)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,l.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(),u=s,l=0,d=e;("number"!=typeof d||d>=s)&&(d=s),d<this.instance.countRows()&&(u=this.instance.toPhysicalRow(d));var f=this.instance.runHooks("beforeCreateRow",d,n,o);if(!1===f||null===u)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+l):(e={},(0,c.deepExtend)(e,t.getSchema())),m.push(e),l+=1};l<n&&s+l<p;)v();this.instance.rowIndexMapper.insertIndexes(d,l),"below"===a&&(u=Math.min(u+1,s)),this.spliceData(u,0,m);var y=this.instance.toVisualRow(u);return this.instance.countSourceRows()===m.length&&this.instance.columnIndexMapper.initToLength(this.instance.getInitialColumnCount()),l>0&&(null==e?this.metaManager.createRow(null,l):"auto"!==o&&this.metaManager.createRow(u,n)),this.instance.runHooks("afterCreateRow",y,l,o),this.instance.forceFullRender=!0,{delta:l,startPhysicalIndex:u}}},{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,u=this.instance.countSourceCols(),l=e;("number"!=typeof l||l>=u)&&(l=u);var c=this.instance.runHooks("beforeCreateCol",l,t,r);if(!1===c)return{delta:0};var d=u;l<this.instance.countCols()&&(d=this.instance.toPhysicalColumn(l));var h=this.instance.countSourceRows(),f=this.instance.countCols(),p=0,g=d;"end"===i&&(g=Math.min(g+1,u));for(var m=g;p<t&&f<s;){if("number"!=typeof l||l>=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(l,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 u=i.length;if(this.filterData(o,u,i),o<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(i);var l=(0,f.isDefined)(this.tableMeta.columns)||(0,f.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===l&&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,u,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,u=i.length,l=this.dataSource,c=0;c<u;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)l[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<u;g++)l[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),u=3;u<a;u++)s[u-3]=arguments[u];(0,d.extendArray)(s,i);for(var l=0;l<n;)s.push(null),l+=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),u=3;u<a;u++)s[u-3]=arguments[u];(0,d.extendArray)(s,i);for(var l=0;l<n;)s.push(null),l+=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 u=0,l=a.length;u<l;u++)if(void 0===(s=s[a[u]]))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 u,l=t.split("."),d=i,h=0;for(h=0,u=l.length-1;h<u;h++)void 0===d[l[h]]&&(d[l[h]]={}),d=d[l[h]];d[l[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=[],u=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===u||0===l)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(u-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(l-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,u.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,u.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(823);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(25),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(37),n(53),n(301),n(60),n(188),n(23);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(13),u=n(189),l=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,u.assert)((function(){return(0,u.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,u.assert)((function(){return(0,u.isUnsignedNumber)(e)||(0,u.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,u.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,u.assert)((function(){return(0,u.isUnsignedNumber)(e)||(0,u.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,u.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=l},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(4),n(41),n(1),n(5),n(6),n(85),n(89),n(57);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(837);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(24)),i=r(n(10)),a=r(n(11)),s=r(n(8)),u=r(n(2)),l=r(n(3));n(577),n(149),n(81),n(31);var c=n(25),d=n(12),h=n(184),f=r(n(839)),p=n(15);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,u.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,l.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,u.default)(this,n),t.apply(this,arguments)}return(0,l.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var u=this.hot.getSelectedLast();n=Math.max(Math.min(u[0],u[2]),0),r=Math.max(Math.min(u[1],u[3]),0),i=Math.max(u[0],u[2]),a=Math.max(u[1],u[3])}else{var l=[this.row,this.col,null,null];n=l[0],r=l[1],i=l[2],a=l[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),u=(0,p.offset)(this.hot.rootElement),l=(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-u.left-l,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===u.top?0:1,C=a.top-u.top-T-y,R=0;R=this.hot.isRtl()?i.innerWidth-a.left-s-g-1+E:a.left-u.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,x=0;if(this.hot.isRtl()){var P=t.offsetLeft;x=P>=0?m.getWidth()-t.offsetLeft:Math.abs(P),x+=N-M-s}else x=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(x)-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(849);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(853);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(854);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(855);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(858);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(861);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(863);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(865);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 u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.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: ",u=1e14,l=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=l-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,u=e.e,l=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=u==l,!o||!i)return r?0:!o^n?1:-1;if(!r)return l<u^n?1:-1;for(s=(u=o.length)<(l=i.length)?u:l,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return u==l?0:l<u^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/l)==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,x=4,P=-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,u,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(u=0,d=e;10<=d;d/=10,u++);return g.e=u,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<(u=p.indexOf("."))&&(p=p.replace(".","")),0<(d=p.search(/e/i))?(u<0&&(u=d),u+=+p.slice(d+1),p=p.substring(0,d)):u<0&&(u=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,x);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),u=d=0,f=p.length;d<f;d++)if(n.indexOf(o=p.charAt(d))<0){if("."==o){if(u<d){u=f;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,d=-1,u=0;continue}return R(g,String(e),h,t)}-1<(u=(p=C(p,t,10,g.s)).indexOf("."))?p=p.replace(".",""):u=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<(u=u-d-1))g.c=g.e=null;else if(u<D)g.c=[g.e=0];else{if(g.e=u,g.c=[],d=(u+1)%l,u<0&&(d+=l),d<f){for(d&&g.c.push(+p.slice(0,d)),f-=l;d<f;)g.c.push(+p.slice(d,d+=l));p=p.slice(d),d=l-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,u;if(null==n?n=x:v(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)u=g(e.c),u=1==r||2==r&&(a<=P||L<=a)?E(u,a):T(u,a,"0");else if(i=(e=K(new W(e),t,n)).e,s=(u=g(e.c)).length,1==r||2==r&&(t<=i||i<=P)){for(;s<t;u+="0",s++);u=E(u,i)}else if(t-=a,u=T(u,i,"0"),s<i+1){if(0<--t)for(u+=".";t--;u+="0");}else if(0<(t+=i-s))for(i+1==s&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}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*l-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+=l,c=t,g=(f=m[p=0])/v[a-c-1]%10|0;else if((p=o((s+1)/l))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));f=g=0,c=(s%=l)-l+(a=1)}else{for(f=h=m[p],a=1;10<=h;h/=10,a++);g=(c=(s%=l)-l+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[(l-t%l)%l],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[l-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]==u&&(m[0]=1));break}if(m[p]+=h,m[p]!=u)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<=P||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),x=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-f,0,t),v(n[1],0,f,t),P=n[0],L=n[1]):(v(n,-f,f,t),P=-(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:x,EXPONENTIAL_AT:[P,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,u,c=0,h=[],p=new W(_);if(null==e?e=k:v(e,0,f),s=o(e/l),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)9e15<=(u=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(u%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<=(u=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(u%1e14),c+=7);c=s/7}if(!U)for(;c<s;)(u=S())<9e15&&(h[c++]=u%1e14);for(s=h[--c],e%=l,s&&e&&(u=d[l-e],h[c]=i(s/u)*u);0===h[c];h.pop(),c--);if(c<0)h=[r=0];else{for(r=-1;0===h[0];h.splice(0,1),r-=l);for(c=1,u=h[0];10<=u;u/=10,c++);c<l&&(r-=l-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,u=e.length;s<u;){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 u,l,c,d,h,f,p,m,v=r.indexOf("."),y=k,E=x;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?(u=B,e):(u=e,B))).length;0==p[--d];p.pop());if(!p[0])return u.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[l=c+y+1],d=i/2,h=h||l<0||null!=p[l+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[l-1]||E==(f.s<0?8:7)),l<1||!p[0])r=h?T(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(p.length=l,h)for(--i;++p[--l]>i;)p[l]=0,l||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=u.charAt(p[v++]));r=T(r,c,u.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,u=e.length,l=t%h,c=t/h|0;for(e=e.slice();u--;)s=((o=l*(i=e[u]%h)+(r=c*i+(a=e[u]/h|0)*l)%h*h+s)/n|0)+(r/h|0)+c*a,e[u]=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=u,h=p(r.e/l)-p(o.e/l),M=M/l|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==u){for(f=1,M=T[0];10<=M;M/=10,f++);K(E,a+(E.e=f+h*l-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=x: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/l))*l,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,x)},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,u,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 u=p.s<0&&y(e)?-0:0,-1<p.e&&(u=1/u),new W(d?1/u:u);V&&(u=o(V/l+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;u?f.c.length>u&&(f.c.length=u):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),u?p.c&&p.c.length>u&&(p.c.length=u):r&&(p=p.mod(t))}return r?f:(d&&(f=_.div(f)),t?f.mod(t):u?K(f,V,x,void 0):f)},I.integerValue=function(e){var t=new W(this);return null==e?e=x: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/l)>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/l,d=e.e/l,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==x?-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=u-1;s<r;){if(h[--r]<f[r]){for(n=r;n&&!h[--n];h[n]=t);--h[n],h[r]+=u}h[r]-=f[r]}for(;0==h[0];h.splice(0,1),--d);return h[0]?z(e,h,d):(e.s=3==x?-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/l)+p(e.e/l),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=u,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/l,a=e.e/l,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)/u|0,s[t]=u===s[t]?0:s[t]%u;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=x:v(t,0,8),K(new W(this),e,t);if(!(n=this.c))return null;if(r=(o=n.length-1)*l+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,u=a.s,l=a.e,c=k+4,d=new W("0.5");if(1!==u||!s||!s[0])return new W(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(u=Math.sqrt(+X(a)))||u==1/0?(((t=g(s)).length+l)%2==0&&(t+="0"),u=Math.sqrt(+t),l=p((l+1)/2)-(l<0||l%2),new W(t=u==1/0?"1e"+l:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+l)):new W(u+"")).c[0])for((u=(l=r.e)+c)<3&&(u=0);;)if(i=r,r=d.times(i.plus(n(a,i,c,1))),g(i.c).slice(0,u)===(t=g(r.c)).slice(0,u)){if(r.e<l&&--u,"9999"!=(t=t.slice(u-3,u+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,u+=4,o=1}return K(r,r.e+k+1,x,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,u=+n.secondaryGroupSize,l=n.groupSeparator||"",c=i[0],d=i[1],h=this.s<0,f=h?c.slice(1):c,p=f.length;if(u&&(o=s,s=u,p-=u=o),0<s&&0<p){for(o=p%s||s,c=f.substr(0,o);o<p;o+=s)c+=l+f.substr(o,s);0<u&&(c+=l+f.slice(o)),h&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(e){var t,r,o,i,s,u,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[(u=s%l)<0?l+u:u],e=!e||0<c.comparedTo(t)?0<s?t:f:c,u=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,x).minus(y).abs().comparedTo(n(h,r,s,x).minus(y).abs())<1?[f,o]:[h,r],F=u,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<=P||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,x)).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"],u={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"}},l={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({},l,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,u=t.currencyPosition||r.position,c=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===u&&(i=a+c+a);var d=p({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===u&&(d=e._value<0&&"sign"===o.negative?"-".concat(a).concat(c).concat(d.slice(1)):c+a+d),u&&"postfix"!==u||(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({},l,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=u[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({},l,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),u=s[0],l=s[1],c=void 0===l?"":l;if(0<+a)n=u+c+h(a-c.length);else{var d=".";d=+u<0?"-0".concat(d):"0".concat(d);var f=(h(-a-1)+Math.abs(u)+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,u=e.defaults,c=void 0===u?a.currentDefaults():u,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({},l,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,x=C.forceSign,P=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,u="",l=Math.abs(t),c=-1;if(l>=Math.pow(10,12)&&!n||"trillion"===n?(u=r.trillion,t/=Math.pow(10,12)):l<Math.pow(10,12)&&l>=Math.pow(10,9)&&!n||"billion"===n?(u=r.billion,t/=Math.pow(10,9)):l<Math.pow(10,9)&&l>=Math.pow(10,6)&&!n||"million"===n?(u=r.million,t/=Math.pow(10,6)):(l<Math.pow(10,6)&&l>=Math.pow(10,3)&&!n||"thousand"===n)&&(u=r.thousand,t/=Math.pow(10,3)),u&&(u=(i?" ":"")+u),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:u,mantissaPrecision:c}}({value:d,forceAverage:O,abbreviations:a.currentAbbreviations(),spaceSeparated:_,totalLength:R});d=D.value,L+=D.abbreviation,R&&(A=D.mantissaPrecision)}if(P){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),u=s[0],l=s[1],c=void 0===l?"":l;if(c.match(/^0+$/)&&(n||i))return u;var d=c.match(/0+$/);return i&&d?"".concat(u,".").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,u=e.toString(),l=u.split(".")[0],c=u.split(".")[1];return n&&(t<0&&(l=l.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}(l.length,s).forEach((function(e,t){l=l.slice(0,e+t)+a+l.slice(e+t)})),t<0&&(l="-".concat(l))),c?l+o+c:l}(j=function(e,t,n,o){var i=e,a=r(i.toString().split("."),2),s=a[0],u=a[1];if(s.match(/^-?0$/)&&n)return u?"".concat(s.replace("0",""),".").concat(u):s.replace("0","");if(s.length<o)for(var l=o-s.length,c=0;c<l;c++)i="0".concat(i);return i.toString()}(j,0,S,w),d,I,a,s),(b||P)&&(j+=L),(x||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=u.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=u.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=u.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,u={},l=null,c={};function d(e){s=e}function h(){return u[s]}a.languages=function(){return Object.assign({},u)},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 l},a.setZeroFormat=function(e){return l="string"==typeof e?e:null},a.hasZeroFormat=function(){return null!==l},a.languageData=function(e){if(e){if(u[e])return u[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");u[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(!u[e]){var n=e.split("-")[0],o=Object.keys(u).find((function(e){return e.split("-")[0]===n}));return u[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),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.plus(u).toNumber(),o;var o,i,a,s,u},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return i=n,a=e,s=new r((o=t)._value),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.times(u).toNumber(),o;var o,i,a,s,u},divide:function(t,n){return i=n,a=e,s=new r((o=t)._value),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.dividedBy(u).toNumber(),o;var o,i,a,s,u},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"),u=e("./formatting")(f),l=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 u.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=c.parseFormat(e)),(e=u.formatOrDefault(e,o.currentCurrencyDefaultFormat())).output="currency",u.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",u.format(this,e)}},{key:"binaryByteUnits",value:function(){return u.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return u.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return u.getByteUnit(this)}},{key:"difference",value:function(e){return l.difference(this,e)}},{key:"add",value:function(e){return l.add(this,e)}},{key:"subtract",value:function(e){return l.subtract(this,e)}},{key:"multiply",value:function(e){return l.multiply(this,e)}},{key:"divide",value:function(e){return l.divide(this,e)}},{key:"set",value:function(e){return l.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,u,l,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,(u=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+u[0]),l=C,(c=e.split(".")[0].match(/0+/))&&(l.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,u=e("./globalState"),l=u.currentDelimiters(),c=u.currentCurrency().symbol,d=u.currentOrdinal(),h=u.getZeroFormat(),f=u.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,l)?(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,u=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,u=5<arguments.length?arguments[5]:void 0,l=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,u,l);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,u,l)*f.factor}if((c=t.replace("%",""))!==t)return e(c,n,i,a,s,u,l)/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,u,l);var m={};Object.keys(u).forEach((function(e){m[u[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,u,l)*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,u)}(t,l,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`"}},u={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 l(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 u=a.restrictions.length,l=0;l<u;l++){var d=a.restrictions[l],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=l(e),r=d(t);return n&&r},validateFormat:d,validateInput:l,validateLanguage:function(e){return c(e,u,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7),window.numbro=n(604)},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(866);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(867);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(870);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(66),o=n(223),i=n(62),a=n(96),s=n(82),u=n(871),l=n(56),c=n(124),d=n(224);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](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var c=d(r,o);return u(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(872);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(873);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(41),n(1),n(5),n(6),n(43),n(23);var o=r(n(27)),i=r(n(2)),a=r(n(3)),s=n(12),u=n(36),l=n(25),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,u.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,u.rangeEach)(t.from,t.to,(function(t){var u,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,p="string"==typeof f&&f.length>0;u=p?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,l.stringify)(h).length),i.has(u)||i.set(u,{needed:r.getSampleCount(),strings:[]});var g=i.get(u);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(907);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(405),o=n(408),i=n(282),a=n(407);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(616),i=n(911),a=n(912),s=n(913),u=r(n(103)),l=(0,u.default)("sorting.compareFunctionFactory"),c=l.register,d=l.getItem,h=l.hasItem,f=(0,u.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(25),o=n(118);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(85);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12);function u(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 l=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(":"),l=i[0],c=2===i.length?i[1]:null,d=this.commands[l];if(!d)throw new Error("Menu command '".concat(l,"' not exists."));if(c&&d.submenu&&(d=u(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=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(81),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(13),u=n(111);function l(){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&&u.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,u.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===u.SEPARATOR?(n[u.SEPARATOR]=e,o=u.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 l(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(16);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;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 u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(25);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 u(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",u,{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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(24)),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=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)),s=n(25),u=n(46);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)}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,u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=d;var i=r(n(24)),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),u=n(622),l=n(623);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)(l.CONDITION_NAME,[o]),h=(0,s.getCondition)(u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(24)),a=r(n(91)),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)),u=n(46);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)}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,u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(24)),a=r(n(91)),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)),u=n(46);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)}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,u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(23);var i=r(n(24)),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=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)),s=n(25),u=n(46);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)}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,u.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(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,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 u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(194);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 u(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,u)},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,n(1),n(37);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 u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(194);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 u(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,u)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(24)),i=r(n(64));n(81),n(57),n(23),n(1);var a,s,u=r(n(2)),l=r(n(3)),c=n(13),d=n(12),h=n(65),f=r(n(86)),p=n(46),g=n(312),m=n(194),v=n(25),y=n(76),E="ConditionCollection.filteringStates",T=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,u.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,l.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,u=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),l=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:l,args:u,func:(0,p.getCondition)(l,u)}]},r):f.push({name:l,args:u,func:(0,p.getCondition)(l,u)}),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(60),n(35),n(16),n(21),n(77);var r=n(0);t.__esModule=!0,t.DEFAULT_SETTINGS=t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=l,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=l(e);return s(s(s({},u),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=l(e);return s(s({},r),o)},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some((function(n){return void 0!==t[n]&&t[n]!==e[n]}))};var o=r(n(27));n(225),n(1),n(43);var i=n(314);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 u={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},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 l(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}),{})}t.DEFAULT_SETTINGS=u},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(80),u=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=u},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,u=void 0!==s&&s,l=e.crossHiddenColumns,c=void 0===l?[]:l,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:u,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 u=s.slice(1),l=new Set;if(u.length>0)(0,r.arrayEach)(u,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.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;l.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(l),colspanCompensation:p}},n(37),n(4),n(1),n(52),n(5),n(6),n(47);var r=n(13),o=n(635),i=n(636)},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),u=new Set,l=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;l+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;l=d-c;for(var f=1;f<d;f++)u.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=l,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(u),colspanCompensation:l}},n(37),n(4),n(1),n(52),n(5),n(6),n(47);var r=n(13),o=n(634),i=n(636)},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)),u=r(n(8)),l=n(13),c=n(36),d=n(15);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,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"),u=a.querySelectorAll('[class^="ht_nesting"]');if((0,l.arrayEach)(u,(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(316)).default);t.default=f},function(e,t,n){n(237),e.exports=n(690)},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(239),i=n(320),a=n(38),s=n(321),u=n(44),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)}),c=function(e){function t(t){var n=e.call(this)||this;return n.topProd=t,n.follows={},n}return l(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 u.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 l})),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(240),i=n(38),a=n(241),s=n(319),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)}),l='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)(l+"\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)(l+"\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 u=a;switch(u.type){case"Character":h(u.value,t,n);break;case"Set":if(!0===u.complement)throw Error("Complement Sets are not supported for first char optimization");Object(i.forEach)(u.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,u=Object(s.charCodeToOptimizedIndex)(i),l=Object(s.charCodeToOptimizedIndex)(a),c=u;c<=l;c++)t[c]=c}}}));break;case"Group":d(u.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==u.quantifier&&0===u.quantifier.atLeast;if("Group"===u.type&&!1===p(u)||"Group"!==u.type&&!1===l)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 u(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 u})),n.d(t,"GastRefResolverVisitor",(function(){return l}));var r,o=n(68),i=n(38),a=n(119),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 u(e,t){var n=new l(e,t);return n.resolveRefs(),n.errors}var l=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 u}));var r=n(202),o=n(38),i=n(68),a=n(159),s=n(158),u=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,u=n.repetition,l=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)(u,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_IDX,r.PROD_TYPE.REPETITION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(l,(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 u=this;this.TRACE_INIT(""+s+(0===t?"":t),(function(){var s=Object(r.buildLookaheadFuncForOptionalProd)(t,e,i||u.maxLookahead,u.dynamicTokensEnabled,o,u.lookAheadBuilderForOptional),l=Object(a.getKeyForAutomaticLookahead)(u.fullRuleNameToShort[e.name],n,t);u.setLaFuncCache(l,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 u}));var r=n(243),o=n(38),i=n(644),a=n(159),s=n(68),u=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 u})),n.d(t,"createBaseVisitorConstructorWithDefaults",(function(){return l})),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(38),i=n(323),a=n(201);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,u=0;u<s;u++){var l=a[u];void 0===l.tokenTypeIdx&&(void 0!==l.fullName?this[l.fullName](l.children,t):this[l.name](l.children,t))}}function u(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 l(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(68),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 l}));var r=n(38),o=n(100),i=n(68),a=n(120),s=n(201),u=n(44),l=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(u.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(38),o=n(159),i=n(100),a=n(202),s=n(203),u=n(68),l=n(322),c=n(87),d=n(157),h=n(323),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:u.DEFAULT_RULE_CONFIG.resyncEnabled,s=Object(r.has)(n,"recoveryValueFunc")?n.recoveryValueFunc:u.DEFAULT_RULE_CONFIG.recoveryValueFunc,l=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[l]=e,this.fullRuleNameToShort[e]=l;return(i=function(t,n){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(l,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,u=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(u))return a.resyncedTokens=this.reSyncTo(u),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,u=this,l=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var c=l;l=function(){return i.call(u)&&c.call(u)}}}else r=t;if(!0!==l.call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY,t.ERR_MSG);for(var d=this.doSingleRepetition(r);!0===l.call(this)&&!0===d;)d=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],l,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,u=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 l=function(){return r.tokenMatcher(r.LA(1),u)};!0===this.tokenMatcher(this.LA(1),u);)this.CONSUME(u),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,u,l,i,s.NextTerminalAfterAtLeastOneSepWalker],l,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,u=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var l=u;u=function(){return i.call(a)&&l.call(a)}}}else r=t;for(var c=!0;!0===u.call(this)&&!0===c;)c=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],u,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 u=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,u,i,s.NextTerminalAfterManySepWalker],u,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 u=a[s],l=this.nestedAltBeforeClause(u,t,o.OR_IDX,s);try{return u.ALT.call(this)}finally{void 0!==l&&this.nestedRuleFinallyClause(l.shortName,l.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===l.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(100),o=n(38),i=n(202),a=n(68),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],u=[],l=1;l<=this.maxLookahead;l++)u.push(this.LA(l));var c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:u,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=[],u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));var l=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:l,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new r.NoViableAltException(c,this.LA(1),l))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentAssist",(function(){return i}));var r=n(203),o=n(38),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(38),o=n(44),i=n(137),a=n(157),s=n(87),u=n(68),l=n(159),c={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(c);var d=Math.pow(2,l.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 u.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,u=new o.NonTerminal({idx:t,nonTerminalName:s,referencedRule:void 0});return a.definition.push(u),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),u=new o.Terminal({idx:t,terminalType:e});return s.definition.push(u),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,u=new o.Alternation({definition:[],idx:t,ignoreAmbiguities:a&&!0===e.IGNORE_AMBIGUITIES});Object(r.has)(e,"NAME")&&(u.name=e.NAME),Object(r.has)(e,"MAX_LOOKAHEAD")&&(u.maxLookahead=e.MAX_LOOKAHEAD);var l=Object(r.some)(s,(function(e){return Object(r.isFunction)(e.GATE)}));return u.hasPredicates=l,i.definition.push(u),Object(r.forEach)(s,(function(e){var t=new o.Flat({definition:[]});u.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(38),o=n(68),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 u})),n.d(t,"genAllRules",(function(){return l})),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(38),o=n(44),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"+u(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}function s(e){return" \n"+u(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}function u(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 "+l(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 l(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(61);
|
524
|
+
class u 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=l(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=l(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=l(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=l(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 u=i/s,l=a.centralF.cdf(u,n.length-1,o.length-1);return 2*Math.min(l,1-l)})}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=l(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=l(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=l(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 u=0;for(let e=0;e<s[0].length;e++){if(0===s[1][e])return new r.CellError(r.ErrorType.DIV_BY_ZERO);u+=Math.pow(s[0][e]-s[1][e],2)/s[1][e]}return u<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NaN):1-a.chisquare.cdf(u,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()),u=this.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(s instanceof r.CellError)return s;if(u instanceof r.CellError)return u;const l=s.length,c=u.length;if(1===i){if(c!==l)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);if(l<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=Array(l);for(let t=0;t<l;t++)e[t]=s[t]-u[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(l)*Object(a.mean)(e)/t);return n*(1-a.studentt.cdf(i,l-1))}if(2===i){if(l<=1||c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);const e=(Object(a.sumsqerr)(s)+Object(a.sumsqerr)(u))/(l+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)(u))/Math.sqrt(e*(1/l+1/c)));return n*(1-a.studentt.cdf(t,l+c-2))}{if(l<=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)(u,!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)(u))/Math.sqrt(e/l+t/c)),d=Math.pow(e/l+t/c,2)/(Math.pow(e/l,2)/(l-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 l(e,t){const n=e.iterateValuesFromTopLeftCorner(),o=t.iterateValuesFromTopLeftCorner();let a,s;const u=[],l=[];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)&&(u.push(Object(i.getRawValue)(e)),l.push(Object(i.getRawValue)(t)))}return[u,l]}u.implementedFunctions={AVEDEV:{method:"avedev",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},DEVSQ:{method:"devsq",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},GEOMEAN:{method:"geomean",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},HARMEAN:{method:"harmean",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},CORREL:{method:"correl",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},RSQ:{method:"rsq",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"COVARIANCE.P":{method:"covariancep",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"COVARIANCE.S":{method:"covariances",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"Z.TEST":{method:"ztest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.NUMBER},{argumentType:s.FunctionArgumentType.NUMBER,optionalArg:!0}]},"F.TEST":{method:"ftest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},STEYX:{method:"steyx",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},SLOPE:{method:"slope",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"CHISQ.TEST":{method:"chisqtest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE}]},"T.TEST":{method:"ttest",parameters:[{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.RANGE},{argumentType:s.FunctionArgumentType.INTEGER,minValue:1,maxValue:2},{argumentType:s.FunctionArgumentType.INTEGER,minValue:1,maxValue:3}]},SKEW:{method:"skew",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1},"SKEW.P":{method:"skewp",parameters:[{argumentType:s.FunctionArgumentType.ANY}],repeatLastArgs:1}},u.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,n){var r=n(141);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},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(55),o=n(384),i=n(84),a=n(62),s=n(88),u=n(171);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),l=o.length,c=0;l>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(55),o=n(28);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(55),o=n(28),i=n(212);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(66),o=n(63),i=n(170),a=n(124),s=n(691),u=n(48),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw l("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(54),i=n(88),a=n(266).indexOf,s=n(173),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},function(e,t,n){var r=n(106);e.exports=r("document","documentElement")},function(e,t,n){var r=n(44),o=n(49),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){var r=n(30),o=n(28),i=n(49),a=n(54),s=n(55),u=n(176).CONFIGURABLE,l=n(391),c=n(107),d=c.enforce,h=c.get,f=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),E=String(String).split("String"),T=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=v(E,"string"==typeof t?t:"")),e};Function.prototype.toString=T((function(){return i(this)&&h(this).source||l(this)}),"toString")},function(e,t,n){var r=n(30),o=n(49),i=n(264),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(54),o=n(393),i=n(117),a=n(84);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||u(e,d,l(t,d))}}},function(e,t,n){var r=n(106),o=n(30),i=n(143),a=n(216),s=n(62),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},function(e,t,n){"use strict";var r,o,i,a=n(28),s=n(49),u=n(63),l=n(123),c=n(269),d=n(97),h=n(48),f=n(114),p=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):g=!0),!u(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=l(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(28);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(694),o=n(62),i=n(695);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(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(48),o=n(174),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(66),o=n(125),i=n(62),a=n(142),s=n(278),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw u(a(e)+" is not iterable")}},function(e,t,n){var r=n(66),o=n(62),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(48)("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(274),i=n(177).getWeakData,a=n(279),s=n(62),u=n(96),l=n(63),c=n(277),d=n(128),h=n(54),f=n(107),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}),u(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(!l(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(!l(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(l(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(212)("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,P.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,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(function(e){X.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(function(e){X.runHooks("afterRowSequenceChange",e)})),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,P.hasLanguageDictionary)(t)?(X.runHooks("beforeLanguageChange",t),te.language=t,X.runHooks("afterLanguageChange",t)):(0,L.warnUserAboutLanguageRegistration)(e)}function ue(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 le(){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 u=new le;u.onQueueEmpty=function(e){o&&s&&o.cancelChanges(),n(e)};for(var l=e.length-1;l>=0;l--)if(null===e[l])e.splice(l,1);else{var d=(0,a.default)(e[l],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[l][3]=ce(p)),X.getCellValidator(m)&&(u.addValidatorToQueue(),X.validateCell(e[l][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)}u.removeValidatorFormQueue()}}(l,m),t))}u.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(),u=G.selection.selectedRange.current(),l=!0;K&&(l=!1),t.isTouched()&&(l=!t.value);var d=G.selection.isSelectedByRowHeader(),h=G.selection.isSelectedByColumnHeader();!1!==l&&(s?d?G.view.scrollViewportVertically(X.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&G.view.scrollViewportHorizontally(X.columnIndexMapper.getRenderableFromVisualIndex(e.col)):u&&!G.selection.isMultiple()?G.view.scrollViewport(re(u.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),u=s[0]+s[1];if(r<=u){var l=Math.max(o-(u-r),0);i[1]+=l}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)(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_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)(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_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:_}),x=k.delta,P=k.startPhysicalIndex;if(x){if(Array.isArray(ee.colHeaders)){var L=[X.toVisualColumn(P),0];L.length+=x,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(P);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+x),!0),ie.setRangeEnd(X._createCellCoords(B,Y+x))}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 u=X.countRows(),l=ee.fixedRowsTop;l>=s+1&&(ee.fixedRowsTop-=Math.min(i,l-s));var c=ee.fixedRowsBottom;c&&s>=u-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),u=X.toPhysicalColumn(s);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,i,d)){var l=ee.fixedColumnsStart;l>=s+1&&(ee.fixedColumnsStart-=Math.min(i,l-s)),Array.isArray(ee.colHeaders)&&(void 0===u&&(u=-1),ee.colHeaders.splice(u,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 u=n-s,l=Math.min(u,ee.maxRows-X.countSourceRows());r.createRow(X.countRows(),l,{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,u){var l,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(l=0,c=w[d].length;l<R-c;l+=1)w[d].push(w[d][l%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(l=0;l<M;l+=1)if(l<N){for(d=0,f=t[l].length;d<C-f;d+=1)t[l].push(t[l][d%f]);var _;if(l<I.length)for(var k=0;k<I[l].length;k+=1)t[l].push(I[l][k]);else(_=t[l]).push.apply(_,(0,s.default)(new Array(I[0].length).fill(null)))}else t.push(t[l%c].slice(0,M).concat(I[l]));X.populateFromArray(v,T,t);break;case"overwrite":default:g.row=e.row,g.col=e.col;var x,P={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),l=0;l<c&&!(n&&g.row>n.row&&V>H||!ee.allowInsertRow&&g.row>X.countRows()-1||g.row>=ee.maxRows);l++){var j=l-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,x=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!x.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(x=X.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!x.skipColumnOnPaste)if(x.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,u,{},P);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),u=X.columnIndexMapper.getRenderableFromVisualIndex(o);X.view._wt.getSetting("cellRenderer",s,u,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,u,l=fe(e,t,n),c=[],d=i;for(a=0,s=l.length;a<s;a++){if("object"!==(0,o.default)(l[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof l[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`");u=l[a][1]>=this.countCols()?l[a][1]:r.colToProp(l[a][1]),c.push([l[a][0],u,B.getAtCell(this.toPhysicalRow(l[a][0]),l[a][1]),l[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),u=[],l=r;for(i=0,a=s.length;i<a;i++)u.push([s[i][0],s[i][1],B.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);l||"object"!==(0,o.default)(e)||(l=t),X.runHooks("afterSetDataAtRowProp",u,l),de(u,l,(function(){he(u,l)}))},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,u,l){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,u,l)},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?ue("className",e.className):"tableClassName"===t&&X.table?(ue("tableClassName",e.tableClassName),X.view._wt.wtOverlays.syncOverlayTableClassNames()):x.default.getSingleton().isRegistered(t)||x.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(),u=ee.columns;if(u&&(0,d.isFunction)(u)&&(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(u){var l=a?u(t):u[n];l&&J.updateColumnMeta(n,l)}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){for(var t=[],n=r.getRange(X._createCellCoords(0,e),X._createCellCoords(ee.data.length-1,e),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},this.getDataAtProp=function(e){for(var t=[],n=r.getRange(X._createCellCoords(0,r.propToCol(e)),X._createCellCoords(ee.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},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 u=X.getActiveEditor();u&&(0,h.isDefined)(u.refreshValue)&&u.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],u=i[2],l=i[3],c=null,d=null;void 0===u&&(u=a),void 0===l&&(l=s);var h="mixed";return(0,b.rangeEach)(Math.max(Math.min(a,u),0),Math.max(a,u),(function(e){var t=!0;return(0,b.rangeEach)(Math.max(Math.min(s,l),0),Math.max(s,l),(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 le;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]},u=X.toPhysicalColumn(n),l=s(u);return!1===ee.colHeaders?a=null:ee.columns&&(0,d.isFunction)(ee.columns)&&ee.columns(l)&&ee.columns(l).title?a=ee.columns(l).title:ee.columns&&ee.columns[u]&&ee.columns[u].title?a=ee.columns[u].title:Array.isArray(ee.colHeaders)&&void 0!==ee.colHeaders[u]?a=ee.colHeaders[u]:(0,d.isFunction)(ee.colHeaders)?a=ee.colHeaders(u):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,u=t;if(o){var l=Number.isInteger(e),c=Number.isInteger(t),d=l?pe(this.rowIndexMapper,e):void 0,h=c?pe(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=l?X.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,u=c?X.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),p=Number.isInteger(u);return f&&p?X.view.scrollViewport(X._createCellCoords(s,u),i,r,n,a):f&&!1===p?X.view.scrollViewportVertically(s,i,n):!(!p||!1!==f)&&X.view.scrollViewportHorizontally(u,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),x.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(),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){x.default.getSingleton().add(e,t,X)},this.hasHook=function(e){return x.default.getSingleton().has(e,X)||x.default.getSingleton().has(e)},this.addHookOnce=function(e,t){x.default.getSingleton().once(e,t,X)},this.removeHook=function(e,t){x.default.getSingleton().remove(e,t,X)},this.runHooks=function(e,t,n,r,o,i,a){return x.default.getSingleton().run(X,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,P.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))})),x.default.getSingleton().run(X,"construct")};var o=r(n(14)),i=r(n(64)),a=r(n(24)),s=r(n(32));n(4),n(1),n(52),n(5),n(6),n(31),n(89),n(53),n(70),n(71),n(37),n(20),n(147),n(57),n(50),n(79),n(47),n(23),n(183),n(21),n(67),n(725),n(41);var u,l,c=n(15),d=n(58),h=n(25),f=n(90),p=n(72),g=n(65),m=r(n(184)),v=r(n(51)),y=n(12),E=n(13),T=n(290),C=n(227),R=n(185),w=n(130),S=n(186),O=n(80),b=n(36),A=r(n(746)),N=r(n(795)),M=n(134),I=n(76),_=n(296),k=n(131),x=r(n(59)),P=n(585),L=n(586),D=n(300),F=n(588),U=n(228),H=n(832),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(123),o=n(180),i=n(274),a=n(178),s=n(279),u=n(96),l=n(277),c=n(268),d=n(270),h=n(410),f=n(55),p=n(177).fastKey,g=n(107),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,o){s(e,h),m(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),u(o)||l(o,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&&o(h,"size",{configurable:!0,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(106),o=n(180),i=n(48),a=n(55),s=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&o(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(44);e.exports=r},function(e,t,n){var r=n(30);e.exports=r(1..valueOf)},function(e,t,n){var r=n(30),o=n(82),i=n(56),a=n(416),s=r("".replace),u=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(62);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(28),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(28),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){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),u=n(129),l=n(178),c=n(49),d=n(54),h=n(28),f=n(388),p=n(182),g=n(212),m=n(420),v=n(727),y=n(422),E=s.setImmediate,T=s.clearImmediate,C=s.process,R=s.Dispatch,w=s.Function,S=s.MessageChannel,O=s.String,b=0,A={};h((function(){r=s.location}));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(){u(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=l(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(102);e.exports="undefined"!=typeof process&&"process"==r(process)},function(e,t,n){var r=n(22),o=n(28),i=n(83),a=n(269),s=n(395);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(66),o=n(54),i=n(115),a=n(417),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(732);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(221),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,u=Object.isFrozen,l=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&&(u(t)||(t[r]=i),o=i)}e[o]=!0}return e}function _(e){var t,n=f(null);for(t in e)!0===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=l(e)}return function(e){return console.warn("fallback value for",e),null}}var x=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"]),P=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.5",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,u=n.HTMLTemplateElement,l=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 u){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=ee(v,i),se=ae?ae.createHTML(""):"",ue=a,le=ue.implementation,ce=ue.createNodeIterator,de=ue.createDocumentFragment,he=ue.getElementsByTagName,fe=i.importNode,pe={};try{pe=_(a).documentMode?a.documentMode:{}}catch(e){}var ge={};r.isSupported="function"==typeof oe&&le&&void 0!==le.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(x),o(P),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,xe=!0,Pe=!0,Le=!1,De=!0,Fe=!1,Ue=!1,He=!1,Ve=!1,je=!1,Be=!1,We=!1,Ye=!0,Ge=!1,ze="user-content-",Ke=!0,Xe=!1,qe={},$e=null,Qe=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"]),Ze=null,Je=I({},["audio","video","img","source","image","track"]),et=null,tt=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,at=!1,st=null,ut=I({},[nt,rt,ot],R),lt=["application/xhtml+xml","text/html"],ct="text/html",dt=null,ht=a.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=_(t),me=me=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct: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,st="ALLOWED_NAMESPACES"in t?I({},t.ALLOWED_NAMESPACES,R):ut,et="ADD_URI_SAFE_ATTR"in t?I(_(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Ze="ADD_DATA_URI_TAGS"in t?I(_(Je),t.ADD_DATA_URI_TAGS,ve):Je,$e="FORBID_CONTENTS"in t?I({},t.FORBID_CONTENTS,ve):Qe,_e="FORBID_TAGS"in t?I({},t.FORBID_TAGS,ve):{},ke="FORBID_ATTR"in t?I({},t.FORBID_ATTR,ve):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,xe=!1!==t.ALLOW_ARIA_ATTR,Pe=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,Ue=t.WHOLE_DOCUMENT||!1,je=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,We=t.RETURN_TRUSTED_TYPE||!1,Ve=t.FORCE_BODY||!1,Ye=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Xe=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,it=t.NAMESPACE||ot,Ie=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(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),Fe&&(Pe=!1),Be&&(je=!0),qe&&(be=I({},o(H)),Ne=[],!0===qe.html&&(I(be,x),I(Ne,V)),!0===qe.svg&&(I(be,P),I(Ne,j),I(Ne,W)),!0===qe.svgFilters&&(I(be,L),I(Ne,j),I(Ne,W)),!0===qe.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(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&($e===Qe&&($e=_($e)),I($e,t.FORBID_CONTENTS,ve)),Ke&&(be["#text"]=!0),Ue&&I(be,["html","head","body"]),be.table&&(I(be,["tbody"]),delete _e.tbody),d&&d(t),dt=t)},gt=I({},["mi","mo","mn","ms","mtext"]),mt=I({},["foreignobject","desc","title","annotation-xml"]),vt=I({},["title","style","font","a","script"]),yt=I({},P);I(yt,L),I(yt,D);var Et=I({},F);I(Et,U);var Tt=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||gt[r]):Boolean(yt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&mt[r]:Boolean(Et[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!mt[r])&&!(t.namespaceURI===nt&&!gt[r])&&!Et[n]&&(vt[n]||!yt[n]):!("application/xhtml+xml"!==me||!st[e.namespaceURI]))},Ct=function(e){T(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Rt=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(je||Be)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},wt=function(e){var t,n;if(Ve)e="<remove></remove>"+e;else{var r=w(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(it===ot)try{t=(new m).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),it===ot?he.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:i},St=function(e){return ce.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},Ot=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)},bt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},At=function(e,t,n){ge[e]&&y(ge[e],(function(e){e.call(r,t,n,dt)}))},Nt=function(e){var t;if(At("beforeSanitizeElements",e,null),Ot(e))return Ct(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return Ct(e),!0;var n=ve(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return Ct(e),!0;if("select"===n&&A(/<template/i,e.innerHTML))return Ct(e),!0;if(!be[n]||_e[n]){if(!_e[n]&&It(n)){if(Ie.tagNameCheck instanceof RegExp&&A(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(Ke&&!$e[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 Ct(e),!0}return e instanceof c&&!Tt(e)?(Ct(e),!0):"noscript"!==n&&"noembed"!==n||!A(/<\/no(script|embed)/i,e.innerHTML)?(Fe&&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)),At("afterSanitizeElements",e,null),!1):(Ct(e),!0)},Mt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in a||n in ht))return!1;if(Pe&&!ke[t]&&A(Ce,t));else if(xe&&A(Re,t));else if(!Ne[t]||ke[t]){if(!(It(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(et[t]);else if(A(Oe,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Ze[e])if(Le&&!A(we,S(n,Se,"")));else if(n)return!1;return!0},It=function(e){return e.indexOf("-")>0},_t=function(t){var n,o,i,a;At("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(a=s.length;a--;){var l=n=s[a],c=l.name,d=l.namespaceURI;if(o="value"===c?n.value:b(n.value),i=ve(c),u.attrName=i,u.attrValue=o,u.keepAttr=!0,u.forceKeepAttr=void 0,At("uponSanitizeAttribute",t,u),o=u.attrValue,!u.forceKeepAttr&&(Rt(c,t),u.keepAttr))if(De||!A(/\/>/i,o)){Fe&&(o=S(o,ye," "),o=S(o,Ee," "),o=S(o,Te," "));var h=ve(t.nodeName);if(Mt(h,i,o)){if(!Ge||"id"!==i&&"name"!==i||(Rt(c,t),o=ze+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){}}}else Rt(c,t)}At("afterSanitizeAttributes",t,null)}},kt=function e(t){var n,r=St(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Nt(n)||(n.content instanceof s&&e(n.content),_t(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,a,u,c,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(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(bt(t))return n.toStaticHTML(t.outerHTML)}return t}if(He||pt(h),r.removed=[],"string"==typeof t&&(Xe=!1),Xe){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 l)1===(a=(o=wt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!je&&!Fe&&!Ue&&-1===t.indexOf("<"))return ae&&We?ae.createHTML(t):t;if(!(o=wt(t)))return je?null:We?se:""}o&&Ve&&Ct(o.firstChild);for(var p=St(Xe?t:o);u=p.nextNode();)3===u.nodeType&&u===c||Nt(u)||(u.content instanceof s&&kt(u.content),_t(u),c=u);if(c=null,Xe)return t;if(je){if(Be)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(Ne.shadowroot||Ne.shadowrootmod)&&(d=fe.call(i,d,!0)),d}var g=Ue?o.outerHTML:o.innerHTML;return Ue&&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),Fe&&(g=S(g,ye," "),g=S(g,Ee," "),g=S(g,Te," ")),ae&&We?ae.createHTML(g):g},r.setConfig=function(e){pt(e),He=!0},r.clearConfig=function(){dt=null,He=!1},r.isValidAttribute=function(e,t,n){dt||pt({});var r=ve(e),o=ve(t);return Mt(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(427)},function(e,t,n){"use strict";var r=n(22),o=n(736).start;r({target:"String",proto:!0,forced:n(737)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},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(66),o=n(223),i=n(62),a=n(96),s=n(126),u=n(56),l=n(82),c=n(124),d=n(284),h=n(224);o("match",(function(e,t,n){return[function(t){var n=l(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;if(!r.global)return h(r,o);var l=r.unicode;r.lastIndex=0;for(var c,f=[],p=0;null!==(c=h(r,o));){var g=u(c[0]);f[p]=g,""===g&&(r.lastIndex=d(o,s(r.lastIndex),l)),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(291),s=new WeakMap,u=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,u=t.overrideFn,l=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d,f=t.inlineStartOffset;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:u,calculationType:l,stretchingColumnWidthFn:h,inlineStartOffset:f}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,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=0,i=0,u=s.get(this),l=u.calculationType,c=u.overrideFn,d=u.scrollOffset,h=Math.max(u.scrollOffset,0),f=u.totalColumns,p=u.viewportWidth,g=h>0?p+1:p,m=0;m<f;m++)if(e=this._getColumnWidth(m),t<=h&&l!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=m,o=e),t>=h&&t+(l===a.FULLY_VISIBLE_TYPE?e:0)<=h+g&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=m,o=e),this.endColumn=m),r.push(t),t+=e,i=e,l!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=m),t>=h+p){n=!1;break}var v=d+p-g,y=l===a.FULLY_VISIBLE_TYPE?0:i,E=l===a.FULLY_VISIBLE_TYPE?o:0;if(v<-1*u.inlineStartOffset||d>r.at(-1)+y||-1*u.scrollOffset-u.viewportWidth>-1*E?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endColumn===f-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var T=r[this.endColumn]+e-r[this.startColumn-1];if((T<=p||l!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),T>p)break}l===a.RENDER_TYPE&&null!==this.startColumn&&c&&c(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),f<this.endColumn&&(this.endColumn=f-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),u=n.stretchingColumnWidthFn(void 0,i);"number"==typeof u?t-=u:o+=a}var l=t-o;if("all"===this.stretch&&l>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=l+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 u=0;u<this.stretchAllColumnsWidth.length;u++)n+=this.stretchAllColumnsWidth[u];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=u},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(291),s=new WeakMap,u=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,u=t.overrideFn,l=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:u,calculationType:l,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=s.get(this),r=n.calculationType,o=n.overrideFn,i=n.rowHeightFn,u=n.scrollOffset,l=Math.max(n.scrollOffset,0),c=n.totalRows,d=n.viewportHeight,h=n.horizontalScrollbarHeight||0,f=0,p=!0,g=[],m=0,v=0,y=0;y<c;y++)if(t=i(y),isNaN(t)&&(t=e.DEFAULT_HEIGHT),f<=l&&r!==a.FULLY_VISIBLE_TYPE&&(this.startRow=y,m=t),f>=l&&f+(r===a.FULLY_VISIBLE_TYPE?t:0)<=l+d-h&&(null===this.startRow&&(this.startRow=y,m=t),this.endRow=y),g.push(f),f+=t,v=t,r!==a.FULLY_VISIBLE_TYPE&&(this.endRow=y),f>=l+d-h){p=!1;break}var E=u+d-h,T=r===a.FULLY_VISIBLE_TYPE?m:0,C=r===a.FULLY_VISIBLE_TYPE?0:v;if(E<T||u>g.at(-1)+C?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endRow===c-1&&p)for(this.startRow=this.endRow;this.startRow>0;){var R=g[this.endRow]+t-g[this.startRow-1];if((R<=d-h||r!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),R>=d-h)break}r===a.RENDER_TYPE&&null!==this.startRow&&o&&o(this),this.startPosition=g[this.startRow],void 0===this.startPosition&&(this.startPosition=null),c<this.endRow&&(this.endRow=c-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(31),n(40),n(23),n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=r(n(74)),u=r(n(75)),l=r(n(292));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,u.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),u=Math.max(n.row,i.row),l=Math.max(n.col,i.col),c=this._createCellCoords(a,s),d=this._createCellCoords(u,l);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 l.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),u=Math.max(e.from.col,e.to.col),l=[];return t===i&&l.push("top"),o===u&&l.push("right"),n===a&&l.push("bottom"),r===s&&l.push("left"),l}},{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 l.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(15),s=n(58),u=n(108),l=n(90),c=n(25),d=new WeakMap,h=function(){function e(t,n,r,i,a,s){var u=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=u,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,l.isMobileBrowser)()?t():((0,u.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),o=this.parent||this;n&&n!==r&&(0,a.isChildOf)(n,t)&&(this.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n),null===r&&(o.lastMouseOver=null))}}},{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,l.isIOS)()&&((0,l.isChromeWebKit)()||(0,l.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(758));t.RowHeadersRenderer=a.default;var s=r(n(763));t.ColumnHeadersRenderer=s.default;var u=r(n(764));t.ColGroupRenderer=u.default;var l=r(n(765));t.RowsRenderer=l.default;var c=r(n(766));t.CellsRenderer=c.default;var d=r(n(767));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 u.default(i),rows:new l.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(573),s=r(n(759)),u=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=u},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(22),o=n(273),i=n(28),a=n(63),s=n(177).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(e){return u&&a(e)?u(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(41),n(1),n(5),n(6);var r=n(73);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,u=i.isSelected()?i.getSelectedRange().current():null,l=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&u)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(l||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):l&&o.row<0&&!a.column?i.setRangeEnd(s(u.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,u.to.col)):(!l&&!c&&o.col<0||l&&o.col<0)&&!a.row?i.selectRows(Math.max(u.from.row,0),o.row,o.col):(!l&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(u.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(),u=r.tableProps.countCols(),l=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(l-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,u-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){var r=n(48);t.f=r},function(e,t,n){var r=n(413),o=n(54),i=n(579),a=n(84).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(141);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";n(21),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(41),n(1),n(5),n(6);var o=n(797);t.HidingMap=o.HidingMap;var i=n(231);t.IndexMap=i.IndexMap;var a=n(799);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(297);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var u=n(800);t.TrimmingMap=u.TrimmingMap;var l=n(801);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}));var c=n(232);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",u.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(41),n(1),n(5),n(6);var r=n(583);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(232),i=n(298),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(16);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,u.normalizeLanguageCode)(e);R(t)||(t=p,(0,u.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=R,t.registerLanguageDictionary=T;var i=n(12),a=n(13),s=n(25),u=n(586),l=r(n(103)),c=n(807),d=r(n(809)),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,l.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,u.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,u.error)((0,l.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(50);var i,a=n(25),s=n(12),u=n(72),l=n(65)},function(e,t,n){"use strict";n(43),n(35),n(16),n(21),n(77);var r=n(0);t.__esModule=!0,t.default=void 0,n(147),n(4),n(41),n(1),n(5),n(6),n(31),n(40),n(20),n(301),n(60),n(188);var o=r(n(32)),i=r(n(27)),a=r(n(2)),s=r(n(3)),u=n(810),l=n(104),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,u.createHighlight)(l.CELL_TYPE,e),this.fill=(0,u.createHighlight)(l.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===l.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,u.createHighlight)(l.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,u.createHighlight)(l.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,u.createHighlight)(l.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,u.createHighlight)(l.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(589));t.DataMap=o.default;var i=r(n(824));t.MetaManager=i.default;var a=r(n(591));t.metaSchemaFactory=a.default;var s=n(829);t.replaceData=s.replaceData;var u=n(830);t.DynamicCellMetaMod=u.DynamicCellMetaMod;var l=n(831);t.ExtendMetaPropertiesMod=l.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(41),n(1),n(5),n(6),n(70),n(71),n(53),n(89),n(37),n(21),n(20),n(35),n(23);var o=r(n(32)),i=r(n(14)),a=r(n(2)),s=r(n(3)),u=n(590),l=n(134),c=n(12),d=n(13),h=n(36),f=n(25),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 u=i?n(t):n[t];if((0,c.isObject)(u)){if(void 0!==u.data){var l=i?o:t;this.colToPropCache[l]=u.data,this.propToColCache.set(u.data,l)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,l.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(),u=s,l=0,d=e;("number"!=typeof d||d>=s)&&(d=s),d<this.instance.countRows()&&(u=this.instance.toPhysicalRow(d));var f=this.instance.runHooks("beforeCreateRow",d,n,o);if(!1===f||null===u)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+l):(e={},(0,c.deepExtend)(e,t.getSchema())),m.push(e),l+=1};l<n&&s+l<p;)v();this.instance.rowIndexMapper.insertIndexes(d,l),"below"===a&&(u=Math.min(u+1,s)),this.spliceData(u,0,m);var y=this.instance.toVisualRow(u);return this.instance.countSourceRows()===m.length&&this.instance.columnIndexMapper.initToLength(this.instance.getInitialColumnCount()),l>0&&(null==e?this.metaManager.createRow(null,l):"auto"!==o&&this.metaManager.createRow(u,n)),this.instance.runHooks("afterCreateRow",y,l,o),this.instance.forceFullRender=!0,{delta:l,startPhysicalIndex:u}}},{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,u=this.instance.countSourceCols(),l=e;("number"!=typeof l||l>=u)&&(l=u);var c=this.instance.runHooks("beforeCreateCol",l,t,r);if(!1===c)return{delta:0};var d=u;l<this.instance.countCols()&&(d=this.instance.toPhysicalColumn(l));var h=this.instance.countSourceRows(),f=this.instance.countCols(),p=0,g=d;"end"===i&&(g=Math.min(g+1,u));for(var m=g;p<t&&f<s;){if("number"!=typeof l||l>=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(l,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 u=i.length;if(this.filterData(o,u,i),o<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(i);var l=(0,f.isDefined)(this.tableMeta.columns)||(0,f.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===l&&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,u,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,u=i.length,l=this.dataSource,c=0;c<u;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)l[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<u;g++)l[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),u=3;u<a;u++)s[u-3]=arguments[u];(0,d.extendArray)(s,i);for(var l=0;l<n;)s.push(null),l+=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),u=3;u<a;u++)s[u-3]=arguments[u];(0,d.extendArray)(s,i);for(var l=0;l<n;)s.push(null),l+=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 u=0,l=a.length;u<l;u++)if(void 0===(s=s[a[u]]))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 u,l=t.split("."),d=i,h=0;for(h=0,u=l.length-1;h<u;h++)void 0===d[l[h]]&&(d[l[h]]={}),d=d[l[h]];d[l[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=[],u=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===u||0===l)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(u-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(l-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,u.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,u.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(823);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(25),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(37),n(53),n(301),n(60),n(188),n(23);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=n(13),u=n(189),l=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,u.assert)((function(){return(0,u.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,u.assert)((function(){return(0,u.isUnsignedNumber)(e)||(0,u.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,u.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,u.assert)((function(){return(0,u.isUnsignedNumber)(e)||(0,u.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,u.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=l},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(4),n(41),n(1),n(5),n(6),n(85),n(89),n(57);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(837);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(24)),i=r(n(10)),a=r(n(11)),s=r(n(8)),u=r(n(2)),l=r(n(3));n(577),n(149),n(81),n(31);var c=n(25),d=n(12),h=n(184),f=r(n(839)),p=n(15);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,u.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,l.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,u.default)(this,n),t.apply(this,arguments)}return(0,l.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var u=this.hot.getSelectedLast();n=Math.max(Math.min(u[0],u[2]),0),r=Math.max(Math.min(u[1],u[3]),0),i=Math.max(u[0],u[2]),a=Math.max(u[1],u[3])}else{var l=[this.row,this.col,null,null];n=l[0],r=l[1],i=l[2],a=l[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),u=(0,p.offset)(this.hot.rootElement),l=(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-u.left-l,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===u.top?0:1,C=a.top-u.top-T-y,R=0;R=this.hot.isRtl()?i.innerWidth-a.left-s-g-1+E:a.left-u.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,x=0;if(this.hot.isRtl()){var P=t.offsetLeft;x=P>=0?m.getWidth()-t.offsetLeft:Math.abs(P),x+=N-M-s}else x=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(x)-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(849);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(853);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(854);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(855);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(858);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(861);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(863);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(865);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 u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.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: ",u=1e14,l=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=l-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,u=e.e,l=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=u==l,!o||!i)return r?0:!o^n?1:-1;if(!r)return l<u^n?1:-1;for(s=(u=o.length)<(l=i.length)?u:l,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return u==l?0:l<u^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/l)==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,x=4,P=-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,u,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(u=0,d=e;10<=d;d/=10,u++);return g.e=u,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<(u=p.indexOf("."))&&(p=p.replace(".","")),0<(d=p.search(/e/i))?(u<0&&(u=d),u+=+p.slice(d+1),p=p.substring(0,d)):u<0&&(u=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,x);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),u=d=0,f=p.length;d<f;d++)if(n.indexOf(o=p.charAt(d))<0){if("."==o){if(u<d){u=f;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,d=-1,u=0;continue}return R(g,String(e),h,t)}-1<(u=(p=C(p,t,10,g.s)).indexOf("."))?p=p.replace(".",""):u=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<(u=u-d-1))g.c=g.e=null;else if(u<D)g.c=[g.e=0];else{if(g.e=u,g.c=[],d=(u+1)%l,u<0&&(d+=l),d<f){for(d&&g.c.push(+p.slice(0,d)),f-=l;d<f;)g.c.push(+p.slice(d,d+=l));p=p.slice(d),d=l-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,u;if(null==n?n=x:v(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)u=g(e.c),u=1==r||2==r&&(a<=P||L<=a)?E(u,a):T(u,a,"0");else if(i=(e=K(new W(e),t,n)).e,s=(u=g(e.c)).length,1==r||2==r&&(t<=i||i<=P)){for(;s<t;u+="0",s++);u=E(u,i)}else if(t-=a,u=T(u,i,"0"),s<i+1){if(0<--t)for(u+=".";t--;u+="0");}else if(0<(t+=i-s))for(i+1==s&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}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*l-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+=l,c=t,g=(f=m[p=0])/v[a-c-1]%10|0;else if((p=o((s+1)/l))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));f=g=0,c=(s%=l)-l+(a=1)}else{for(f=h=m[p],a=1;10<=h;h/=10,a++);g=(c=(s%=l)-l+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[(l-t%l)%l],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[l-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]==u&&(m[0]=1));break}if(m[p]+=h,m[p]!=u)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<=P||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),x=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-f,0,t),v(n[1],0,f,t),P=n[0],L=n[1]):(v(n,-f,f,t),P=-(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:x,EXPONENTIAL_AT:[P,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,u,c=0,h=[],p=new W(_);if(null==e?e=k:v(e,0,f),s=o(e/l),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)9e15<=(u=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(u%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<=(u=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(u%1e14),c+=7);c=s/7}if(!U)for(;c<s;)(u=S())<9e15&&(h[c++]=u%1e14);for(s=h[--c],e%=l,s&&e&&(u=d[l-e],h[c]=i(s/u)*u);0===h[c];h.pop(),c--);if(c<0)h=[r=0];else{for(r=-1;0===h[0];h.splice(0,1),r-=l);for(c=1,u=h[0];10<=u;u/=10,c++);c<l&&(r-=l-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,u=e.length;s<u;){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 u,l,c,d,h,f,p,m,v=r.indexOf("."),y=k,E=x;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?(u=B,e):(u=e,B))).length;0==p[--d];p.pop());if(!p[0])return u.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[l=c+y+1],d=i/2,h=h||l<0||null!=p[l+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[l-1]||E==(f.s<0?8:7)),l<1||!p[0])r=h?T(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(p.length=l,h)for(--i;++p[--l]>i;)p[l]=0,l||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=u.charAt(p[v++]));r=T(r,c,u.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,u=e.length,l=t%h,c=t/h|0;for(e=e.slice();u--;)s=((o=l*(i=e[u]%h)+(r=c*i+(a=e[u]/h|0)*l)%h*h+s)/n|0)+(r/h|0)+c*a,e[u]=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=u,h=p(r.e/l)-p(o.e/l),M=M/l|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==u){for(f=1,M=T[0];10<=M;M/=10,f++);K(E,a+(E.e=f+h*l-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=x: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/l))*l,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,x)},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,u,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 u=p.s<0&&y(e)?-0:0,-1<p.e&&(u=1/u),new W(d?1/u:u);V&&(u=o(V/l+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;u?f.c.length>u&&(f.c.length=u):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),u?p.c&&p.c.length>u&&(p.c.length=u):r&&(p=p.mod(t))}return r?f:(d&&(f=_.div(f)),t?f.mod(t):u?K(f,V,x,void 0):f)},I.integerValue=function(e){var t=new W(this);return null==e?e=x: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/l)>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/l,d=e.e/l,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==x?-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=u-1;s<r;){if(h[--r]<f[r]){for(n=r;n&&!h[--n];h[n]=t);--h[n],h[r]+=u}h[r]-=f[r]}for(;0==h[0];h.splice(0,1),--d);return h[0]?z(e,h,d):(e.s=3==x?-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/l)+p(e.e/l),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=u,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/l,a=e.e/l,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)/u|0,s[t]=u===s[t]?0:s[t]%u;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=x:v(t,0,8),K(new W(this),e,t);if(!(n=this.c))return null;if(r=(o=n.length-1)*l+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,u=a.s,l=a.e,c=k+4,d=new W("0.5");if(1!==u||!s||!s[0])return new W(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(u=Math.sqrt(+X(a)))||u==1/0?(((t=g(s)).length+l)%2==0&&(t+="0"),u=Math.sqrt(+t),l=p((l+1)/2)-(l<0||l%2),new W(t=u==1/0?"1e"+l:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+l)):new W(u+"")).c[0])for((u=(l=r.e)+c)<3&&(u=0);;)if(i=r,r=d.times(i.plus(n(a,i,c,1))),g(i.c).slice(0,u)===(t=g(r.c)).slice(0,u)){if(r.e<l&&--u,"9999"!=(t=t.slice(u-3,u+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,u+=4,o=1}return K(r,r.e+k+1,x,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,u=+n.secondaryGroupSize,l=n.groupSeparator||"",c=i[0],d=i[1],h=this.s<0,f=h?c.slice(1):c,p=f.length;if(u&&(o=s,s=u,p-=u=o),0<s&&0<p){for(o=p%s||s,c=f.substr(0,o);o<p;o+=s)c+=l+f.substr(o,s);0<u&&(c+=l+f.slice(o)),h&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(e){var t,r,o,i,s,u,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[(u=s%l)<0?l+u:u],e=!e||0<c.comparedTo(t)?0<s?t:f:c,u=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,x).minus(y).abs().comparedTo(n(h,r,s,x).minus(y).abs())<1?[f,o]:[h,r],F=u,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<=P||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,x)).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"],u={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"}},l={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({},l,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,u=t.currencyPosition||r.position,c=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===u&&(i=a+c+a);var d=p({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===u&&(d=e._value<0&&"sign"===o.negative?"-".concat(a).concat(c).concat(d.slice(1)):c+a+d),u&&"postfix"!==u||(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({},l,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=u[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({},l,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),u=s[0],l=s[1],c=void 0===l?"":l;if(0<+a)n=u+c+h(a-c.length);else{var d=".";d=+u<0?"-0".concat(d):"0".concat(d);var f=(h(-a-1)+Math.abs(u)+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,u=e.defaults,c=void 0===u?a.currentDefaults():u,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({},l,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,x=C.forceSign,P=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,u="",l=Math.abs(t),c=-1;if(l>=Math.pow(10,12)&&!n||"trillion"===n?(u=r.trillion,t/=Math.pow(10,12)):l<Math.pow(10,12)&&l>=Math.pow(10,9)&&!n||"billion"===n?(u=r.billion,t/=Math.pow(10,9)):l<Math.pow(10,9)&&l>=Math.pow(10,6)&&!n||"million"===n?(u=r.million,t/=Math.pow(10,6)):(l<Math.pow(10,6)&&l>=Math.pow(10,3)&&!n||"thousand"===n)&&(u=r.thousand,t/=Math.pow(10,3)),u&&(u=(i?" ":"")+u),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:u,mantissaPrecision:c}}({value:d,forceAverage:O,abbreviations:a.currentAbbreviations(),spaceSeparated:_,totalLength:R});d=D.value,L+=D.abbreviation,R&&(A=D.mantissaPrecision)}if(P){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),u=s[0],l=s[1],c=void 0===l?"":l;if(c.match(/^0+$/)&&(n||i))return u;var d=c.match(/0+$/);return i&&d?"".concat(u,".").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,u=e.toString(),l=u.split(".")[0],c=u.split(".")[1];return n&&(t<0&&(l=l.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}(l.length,s).forEach((function(e,t){l=l.slice(0,e+t)+a+l.slice(e+t)})),t<0&&(l="-".concat(l))),c?l+o+c:l}(j=function(e,t,n,o){var i=e,a=r(i.toString().split("."),2),s=a[0],u=a[1];if(s.match(/^-?0$/)&&n)return u?"".concat(s.replace("0",""),".").concat(u):s.replace("0","");if(s.length<o)for(var l=o-s.length,c=0;c<l;c++)i="0".concat(i);return i.toString()}(j,0,S,w),d,I,a,s),(b||P)&&(j+=L),(x||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=u.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=u.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=u.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,u={},l=null,c={};function d(e){s=e}function h(){return u[s]}a.languages=function(){return Object.assign({},u)},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 l},a.setZeroFormat=function(e){return l="string"==typeof e?e:null},a.hasZeroFormat=function(){return null!==l},a.languageData=function(e){if(e){if(u[e])return u[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");u[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(!u[e]){var n=e.split("-")[0],o=Object.keys(u).find((function(e){return e.split("-")[0]===n}));return u[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),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.plus(u).toNumber(),o;var o,i,a,s,u},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return i=n,a=e,s=new r((o=t)._value),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.times(u).toNumber(),o;var o,i,a,s,u},divide:function(t,n){return i=n,a=e,s=new r((o=t)._value),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.dividedBy(u).toNumber(),o;var o,i,a,s,u},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"),u=e("./formatting")(f),l=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 u.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=c.parseFormat(e)),(e=u.formatOrDefault(e,o.currentCurrencyDefaultFormat())).output="currency",u.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",u.format(this,e)}},{key:"binaryByteUnits",value:function(){return u.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return u.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return u.getByteUnit(this)}},{key:"difference",value:function(e){return l.difference(this,e)}},{key:"add",value:function(e){return l.add(this,e)}},{key:"subtract",value:function(e){return l.subtract(this,e)}},{key:"multiply",value:function(e){return l.multiply(this,e)}},{key:"divide",value:function(e){return l.divide(this,e)}},{key:"set",value:function(e){return l.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,u,l,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,(u=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+u[0]),l=C,(c=e.split(".")[0].match(/0+/))&&(l.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,u=e("./globalState"),l=u.currentDelimiters(),c=u.currentCurrency().symbol,d=u.currentOrdinal(),h=u.getZeroFormat(),f=u.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,l)?(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,u=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,u=5<arguments.length?arguments[5]:void 0,l=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,u,l);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,u,l)*f.factor}if((c=t.replace("%",""))!==t)return e(c,n,i,a,s,u,l)/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,u,l);var m={};Object.keys(u).forEach((function(e){m[u[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,u,l)*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,u)}(t,l,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`"}},u={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 l(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 u=a.restrictions.length,l=0;l<u;l++){var d=a.restrictions[l],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=l(e),r=d(t);return n&&r},validateFormat:d,validateInput:l,validateLanguage:function(e){return c(e,u,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7),window.numbro=n(604)},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(866);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(867);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(870);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(66),o=n(223),i=n(62),a=n(96),s=n(82),u=n(871),l=n(56),c=n(124),d=n(224);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](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var c=d(r,o);return u(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(872);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(873);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(41),n(1),n(5),n(6),n(43),n(23);var o=r(n(27)),i=r(n(2)),a=r(n(3)),s=n(12),u=n(36),l=n(25),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,u.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,u.rangeEach)(t.from,t.to,(function(t){var u,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,p="string"==typeof f&&f.length>0;u=p?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,l.stringify)(h).length),i.has(u)||i.set(u,{needed:r.getSampleCount(),strings:[]});var g=i.get(u);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(907);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(405),o=n(408),i=n(282),a=n(407);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(616),i=n(911),a=n(912),s=n(913),u=r(n(103)),l=(0,u.default)("sorting.compareFunctionFactory"),c=l.register,d=l.getItem,h=l.hasItem,f=(0,u.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(25),o=n(118);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(85);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12);function u(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 l=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(":"),l=i[0],c=2===i.length?i[1]:null,d=this.commands[l];if(!d)throw new Error("Menu command '".concat(l,"' not exists."));if(c&&d.submenu&&(d=u(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=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(81),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(13),u=n(111);function l(){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&&u.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,u.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===u.SEPARATOR?(n[u.SEPARATOR]=e,o=u.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 l(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(16);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;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 u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(46),a=n(25);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 u(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",u,{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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(24)),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=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)),s=n(25),u=n(46);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)}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,u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=d;var i=r(n(24)),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),u=n(622),l=n(623);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)(l.CONDITION_NAME,[o]),h=(0,s.getCondition)(u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(24)),a=r(n(91)),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)),u=n(46);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)}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,u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(24)),a=r(n(91)),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)),u=n(46);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)}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,u.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(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(23);var i=r(n(24)),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=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)),s=n(25),u=n(46);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)}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,u.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(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,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 u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(194);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 u(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,u)},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,n(1),n(37);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 u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(18)),i=n(194);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 u(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,u)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(24)),i=r(n(64));n(81),n(57),n(23),n(1);var a,s,u=r(n(2)),l=r(n(3)),c=n(13),d=n(12),h=n(65),f=r(n(86)),p=n(46),g=n(312),m=n(194),v=n(25),y=n(76),E="ConditionCollection.filteringStates",T=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,u.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,l.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,u=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),l=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:l,args:u,func:(0,p.getCondition)(l,u)}]},r):f.push({name:l,args:u,func:(0,p.getCondition)(l,u)}),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(60),n(35),n(16),n(21),n(77);var r=n(0);t.__esModule=!0,t.DEFAULT_SETTINGS=t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=l,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=l(e);return s(s(s({},u),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=l(e);return s(s({},r),o)},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some((function(n){return void 0!==t[n]&&t[n]!==e[n]}))};var o=r(n(27));n(225),n(1),n(43);var i=n(314);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 u={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},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 l(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}),{})}t.DEFAULT_SETTINGS=u},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(80),u=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=u},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,u=void 0!==s&&s,l=e.crossHiddenColumns,c=void 0===l?[]:l,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:u,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 u=s.slice(1),l=new Set;if(u.length>0)(0,r.arrayEach)(u,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.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;l.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(l),colspanCompensation:p}},n(37),n(4),n(1),n(52),n(5),n(6),n(47);var r=n(13),o=n(635),i=n(636)},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),u=new Set,l=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;l+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;l=d-c;for(var f=1;f<d;f++)u.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=l,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(u),colspanCompensation:l}},n(37),n(4),n(1),n(52),n(5),n(6),n(47);var r=n(13),o=n(634),i=n(636)},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)),u=r(n(8)),l=n(13),c=n(36),d=n(15);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,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"),u=a.querySelectorAll('[class^="ht_nesting"]');if((0,l.arrayEach)(u,(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(316)).default);t.default=f},function(e,t,n){n(237),e.exports=n(690)},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(239),i=n(320),a=n(38),s=n(321),u=n(45),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)}),c=function(e){function t(t){var n=e.call(this)||this;return n.topProd=t,n.follows={},n}return l(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 u.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 l})),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(240),i=n(38),a=n(241),s=n(319),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)}),l='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)(l+"\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)(l+"\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 u=a;switch(u.type){case"Character":h(u.value,t,n);break;case"Set":if(!0===u.complement)throw Error("Complement Sets are not supported for first char optimization");Object(i.forEach)(u.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,u=Object(s.charCodeToOptimizedIndex)(i),l=Object(s.charCodeToOptimizedIndex)(a),c=u;c<=l;c++)t[c]=c}}}));break;case"Group":d(u.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==u.quantifier&&0===u.quantifier.atLeast;if("Group"===u.type&&!1===p(u)||"Group"!==u.type&&!1===l)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 u(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 u})),n.d(t,"GastRefResolverVisitor",(function(){return l}));var r,o=n(68),i=n(38),a=n(119),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 u(e,t){var n=new l(e,t);return n.resolveRefs(),n.errors}var l=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 u}));var r=n(202),o=n(38),i=n(68),a=n(159),s=n(158),u=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,u=n.repetition,l=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)(u,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_IDX,r.PROD_TYPE.REPETITION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(l,(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 u=this;this.TRACE_INIT(""+s+(0===t?"":t),(function(){var s=Object(r.buildLookaheadFuncForOptionalProd)(t,e,i||u.maxLookahead,u.dynamicTokensEnabled,o,u.lookAheadBuilderForOptional),l=Object(a.getKeyForAutomaticLookahead)(u.fullRuleNameToShort[e.name],n,t);u.setLaFuncCache(l,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 u}));var r=n(243),o=n(38),i=n(644),a=n(159),s=n(68),u=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 u})),n.d(t,"createBaseVisitorConstructorWithDefaults",(function(){return l})),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(38),i=n(323),a=n(201);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,u=0;u<s;u++){var l=a[u];void 0===l.tokenTypeIdx&&(void 0!==l.fullName?this[l.fullName](l.children,t):this[l.name](l.children,t))}}function u(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 l(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(68),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 l}));var r=n(38),o=n(100),i=n(68),a=n(120),s=n(201),u=n(45),l=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(u.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(38),o=n(159),i=n(100),a=n(202),s=n(203),u=n(68),l=n(322),c=n(87),d=n(157),h=n(323),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:u.DEFAULT_RULE_CONFIG.resyncEnabled,s=Object(r.has)(n,"recoveryValueFunc")?n.recoveryValueFunc:u.DEFAULT_RULE_CONFIG.recoveryValueFunc,l=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[l]=e,this.fullRuleNameToShort[e]=l;return(i=function(t,n){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(l,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,u=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(u))return a.resyncedTokens=this.reSyncTo(u),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,u=this,l=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var c=l;l=function(){return i.call(u)&&c.call(u)}}}else r=t;if(!0!==l.call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY,t.ERR_MSG);for(var d=this.doSingleRepetition(r);!0===l.call(this)&&!0===d;)d=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],l,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,u=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 l=function(){return r.tokenMatcher(r.LA(1),u)};!0===this.tokenMatcher(this.LA(1),u);)this.CONSUME(u),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,u,l,i,s.NextTerminalAfterAtLeastOneSepWalker],l,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,u=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var l=u;u=function(){return i.call(a)&&l.call(a)}}}else r=t;for(var c=!0;!0===u.call(this)&&!0===c;)c=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],u,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 u=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,u,i,s.NextTerminalAfterManySepWalker],u,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 u=a[s],l=this.nestedAltBeforeClause(u,t,o.OR_IDX,s);try{return u.ALT.call(this)}finally{void 0!==l&&this.nestedRuleFinallyClause(l.shortName,l.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===l.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(100),o=n(38),i=n(202),a=n(68),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],u=[],l=1;l<=this.maxLookahead;l++)u.push(this.LA(l));var c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:u,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=[],u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));var l=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:l,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new r.NoViableAltException(c,this.LA(1),l))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentAssist",(function(){return i}));var r=n(203),o=n(38),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(38),o=n(45),i=n(137),a=n(157),s=n(87),u=n(68),l=n(159),c={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(c);var d=Math.pow(2,l.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 u.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,u=new o.NonTerminal({idx:t,nonTerminalName:s,referencedRule:void 0});return a.definition.push(u),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),u=new o.Terminal({idx:t,terminalType:e});return s.definition.push(u),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,u=new o.Alternation({definition:[],idx:t,ignoreAmbiguities:a&&!0===e.IGNORE_AMBIGUITIES});Object(r.has)(e,"NAME")&&(u.name=e.NAME),Object(r.has)(e,"MAX_LOOKAHEAD")&&(u.maxLookahead=e.MAX_LOOKAHEAD);var l=Object(r.some)(s,(function(e){return Object(r.isFunction)(e.GATE)}));return u.hasPredicates=l,i.definition.push(u),Object(r.forEach)(s,(function(e){var t=new o.Flat({definition:[]});u.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(38),o=n(68),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 u})),n.d(t,"genAllRules",(function(){return l})),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(38),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"+u(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}function s(e){return" \n"+u(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}function u(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 "+l(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 l(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(61);
|
525
525
|
/**
|
526
526
|
* @license
|
527
527
|
* Copyright (c) 2023 Handsoncode. All rights reserved.
|
@@ -868,7 +868,7 @@ function*r(){}function o(e){const t=e[Symbol.iterator](),{done:n,value:o}=t.next
|
|
868
868
|
limitations under the License.
|
869
869
|
|
870
870
|
*/
|
871
|
-
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,u,l,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 u(i){var u=0,l=0,c=0,d=i*i;if(i<8)u=(l=o(t,d))/(c=o(n,d));else{var h=i-.785398164;l=o(a,d=64/d),c=o(s,d),u=r.sqrt(e/i)*(r.cos(h)*l-r.sin(h)*c*8/i)}return u}var l=[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,u=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(l,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(u)*i-r.sin(u)*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 u(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,u(t),f(t),-1);else{for(var a=!1,s=0,l=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,l*=1e-10),a&&(l+=c),a=!a,p==n&&(o=s);o/=l=2*l-c}return o}}(),C=(s=.636619772,u=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),l=[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(u,a))/(i=o(l,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,u=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(u)*n+r.cos(u)*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),u=0,l=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*l+u,u=l,l=c,r.abs(l)>1e10&&(l*=1e-10,u*=1e-10,a*=1e-10),i==n&&(a=u);return a*=e(t,0)/l,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(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(701);var i=F(n(702));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,u,l,c,d=n(845),h=F(n(51)),f=n(76),p=r(n(1085)),g=r(n(307)),m=F(n(290)),v=F(n(13)),y=F(n(90)),E=F(n(134)),T=F(n(609)),C=F(n(108)),R=F(n(58)),w=F(n(25)),S=F(n(36)),O=F(n(12)),b=F(n(80)),A=F(n(109)),N=F(n(15)),M=F(n(73)),I=n(130),_=n(185),k=n(186),x=n(190),P=n(227),L=n(39);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,x.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,x.getCellType)(e)})),i.default.cellTypes.registerCellType=x.registerCellType,i.default.cellTypes.getCellType=x.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!==(u=i.default.renderers)&&void 0!==u?u:{},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!==(l=i.default.validators)&&void 0!==l?l:{},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,P.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,P.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=P.registerPlugin,i.default.plugins.getPlugin=P.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(66),o=n(49),i=n(63),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){"use strict";var r=n(394).IteratorPrototype,o=n(123),i=n(175),a=n(218),s=n(174),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){var r=n(30),o=n(125);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){var r=n(49),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(271),o=n(219);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(273),i=n(45),a=n(30),s=n(274),u=n(177),l=n(220),c=n(401),d=n(63),h=n(107).enforce,f=n(28),p=n(389),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,E=g.isSealed,T=g.freeze,C=g.seal,R={},w={},S=!i.ActiveXObject&&"ActiveXObject"in i,O=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=l("WeakMap",O,c),A=b.prototype,N=a(A.set);if(p)if(S){r=c.getConstructor(O,"WeakMap",!0),u.enable();var M=a(A.delete),I=a(A.has),_=a(A.get);s(A,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.delete(e)}return M(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)?_(this,e):t.frozen.get(e)}return _(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new r),I(this,e)?N(this,e,t):n.frozen.set(e,t)}else N(this,e,t);return this}})}else o&&f((function(){var e=T([]);return N(new b,e,1),!y(e)}))&&s(A,{set:function(e,t){var n;return m(e)&&(y(e)?n=R:E(e)&&(n=w)),N(this,e,t),n==R&&T(e),n==w&&C(e),this}})},function(e,t,n){var r=n(28),o=n(63),i=n(102),a=n(699),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(28);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(221),i=n(63),a=n(48)("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(22),o=n(28),i=n(275).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(703),n(704),n(705),n(706);var o=r(n(404)),i=n(296),a=n(588),s=r(n(59)),u=n(585),l=n(190),c=n(594),d=n(191),h=n(131);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,l.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="18/05/2023 06:44:08",f.version="0.0.0-next-8d3d78c-20230518",f.languages={dictionaryKeys:u.dictionaryKeys,getLanguageDictionary:u.getLanguageDictionary,getLanguagesDictionaries:u.getLanguagesDictionaries,registerLanguageDictionary:u.registerLanguageDictionary,getTranslatedPhrase:u.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=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(406);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(220)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(409))},function(e,t,n){var r=n(276),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,u),t),i(r(e,u),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(55),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(63),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(83),o=n(172),i=n(94);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(83),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\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=l),s(h,g,(function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,f);case"<":l=d[u(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}l=r[c-1]}return void 0===l?"":l}))}},function(e,t,n){"use strict";var r=n(178),o=n(66),i=n(83),a=n(720),s=n(397),u=n(221),l=n(94),c=n(144),d=n(398),h=n(278),f=Array;e.exports=function(e){var t=i(e),n=u(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=l(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(62),o=n(399);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(128).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(22),o=n(45),i=n(285)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){var r=n(22),o=n(45),i=n(285)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(726),n(728)},function(e,t,n){var r=n(22),o=n(45),i=n(421).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(22),o=n(45),i=n(421).set,a=n(285),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";n(220)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(409))},function(e,t,n){var r=n(84).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(176).PROPER,o=n(28),i=n(416);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(129),o=n(66),i=n(30),a=n(223),s=n(62),u=n(96),l=n(287),c=n(82),d=n(734),h=n(284),f=n(126),p=n(56),g=n(124),m=n(276),v=n(224),y=n(222),E=n(283),T=n(28),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(!l(e))return o(t,i,e,a);for(var s,u,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))&&!((u=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=u,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=u(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),u=n(i,o,a,r,i!==t);if(u.done)return u.value;var l=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new l(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(62),o=n(426),i=n(96),a=n(48)("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(22),o=n(272).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(126),i=n(56),a=n(289),s=n(82),u=r(a),l=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=u(g,c((a=f-p)/g.length))).length>a&&(d=l(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":429,"./af.js":429,"./ar":430,"./ar-dz":431,"./ar-dz.js":431,"./ar-kw":432,"./ar-kw.js":432,"./ar-ly":433,"./ar-ly.js":433,"./ar-ma":434,"./ar-ma.js":434,"./ar-sa":435,"./ar-sa.js":435,"./ar-tn":436,"./ar-tn.js":436,"./ar.js":430,"./az":437,"./az.js":437,"./be":438,"./be.js":438,"./bg":439,"./bg.js":439,"./bm":440,"./bm.js":440,"./bn":441,"./bn-bd":442,"./bn-bd.js":442,"./bn.js":441,"./bo":443,"./bo.js":443,"./br":444,"./br.js":444,"./bs":445,"./bs.js":445,"./ca":446,"./ca.js":446,"./cs":447,"./cs.js":447,"./cv":448,"./cv.js":448,"./cy":449,"./cy.js":449,"./da":450,"./da.js":450,"./de":451,"./de-at":452,"./de-at.js":452,"./de-ch":453,"./de-ch.js":453,"./de.js":451,"./dv":454,"./dv.js":454,"./el":455,"./el.js":455,"./en-au":456,"./en-au.js":456,"./en-ca":457,"./en-ca.js":457,"./en-gb":458,"./en-gb.js":458,"./en-ie":459,"./en-ie.js":459,"./en-il":460,"./en-il.js":460,"./en-in":461,"./en-in.js":461,"./en-nz":462,"./en-nz.js":462,"./en-sg":463,"./en-sg.js":463,"./eo":464,"./eo.js":464,"./es":465,"./es-do":466,"./es-do.js":466,"./es-mx":467,"./es-mx.js":467,"./es-us":468,"./es-us.js":468,"./es.js":465,"./et":469,"./et.js":469,"./eu":470,"./eu.js":470,"./fa":471,"./fa.js":471,"./fi":472,"./fi.js":472,"./fil":473,"./fil.js":473,"./fo":474,"./fo.js":474,"./fr":475,"./fr-ca":476,"./fr-ca.js":476,"./fr-ch":477,"./fr-ch.js":477,"./fr.js":475,"./fy":478,"./fy.js":478,"./ga":479,"./ga.js":479,"./gd":480,"./gd.js":480,"./gl":481,"./gl.js":481,"./gom-deva":482,"./gom-deva.js":482,"./gom-latn":483,"./gom-latn.js":483,"./gu":484,"./gu.js":484,"./he":485,"./he.js":485,"./hi":486,"./hi.js":486,"./hr":487,"./hr.js":487,"./hu":488,"./hu.js":488,"./hy-am":489,"./hy-am.js":489,"./id":490,"./id.js":490,"./is":491,"./is.js":491,"./it":492,"./it-ch":493,"./it-ch.js":493,"./it.js":492,"./ja":494,"./ja.js":494,"./jv":495,"./jv.js":495,"./ka":496,"./ka.js":496,"./kk":497,"./kk.js":497,"./km":498,"./km.js":498,"./kn":499,"./kn.js":499,"./ko":500,"./ko.js":500,"./ku":501,"./ku.js":501,"./ky":502,"./ky.js":502,"./lb":503,"./lb.js":503,"./lo":504,"./lo.js":504,"./lt":505,"./lt.js":505,"./lv":506,"./lv.js":506,"./me":507,"./me.js":507,"./mi":508,"./mi.js":508,"./mk":509,"./mk.js":509,"./ml":510,"./ml.js":510,"./mn":511,"./mn.js":511,"./mr":512,"./mr.js":512,"./ms":513,"./ms-my":514,"./ms-my.js":514,"./ms.js":513,"./mt":515,"./mt.js":515,"./my":516,"./my.js":516,"./nb":517,"./nb.js":517,"./ne":518,"./ne.js":518,"./nl":519,"./nl-be":520,"./nl-be.js":520,"./nl.js":519,"./nn":521,"./nn.js":521,"./oc-lnc":522,"./oc-lnc.js":522,"./pa-in":523,"./pa-in.js":523,"./pl":524,"./pl.js":524,"./pt":525,"./pt-br":526,"./pt-br.js":526,"./pt.js":525,"./ro":527,"./ro.js":527,"./ru":528,"./ru.js":528,"./sd":529,"./sd.js":529,"./se":530,"./se.js":530,"./si":531,"./si.js":531,"./sk":532,"./sk.js":532,"./sl":533,"./sl.js":533,"./sq":534,"./sq.js":534,"./sr":535,"./sr-cyrl":536,"./sr-cyrl.js":536,"./sr.js":535,"./ss":537,"./ss.js":537,"./sv":538,"./sv.js":538,"./sw":539,"./sw.js":539,"./ta":540,"./ta.js":540,"./te":541,"./te.js":541,"./tet":542,"./tet.js":542,"./tg":543,"./tg.js":543,"./th":544,"./th.js":544,"./tk":545,"./tk.js":545,"./tl-ph":546,"./tl-ph.js":546,"./tlh":547,"./tlh.js":547,"./tr":548,"./tr.js":548,"./tzl":549,"./tzl.js":549,"./tzm":550,"./tzm-latn":551,"./tzm-latn.js":551,"./tzm.js":550,"./ug-cn":552,"./ug-cn.js":552,"./uk":553,"./uk.js":553,"./ur":554,"./ur.js":554,"./uz":555,"./uz-latn":556,"./uz-latn.js":556,"./uz.js":555,"./vi":557,"./vi.js":557,"./x-pseudo":558,"./x-pseudo.js":558,"./yo":559,"./yo.js":559,"./zh-cn":560,"./zh-cn.js":560,"./zh-hk":561,"./zh-hk.js":561,"./zh-mo":562,"./zh-mo.js":562,"./zh-tw":563,"./zh-tw.js":563};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=739},function(e,t,n){n(22)({target:"String",proto:!0},{repeat:n(289)})},function(e,t,n){var r=n(22),o=n(742);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(129),o=n(88),i=n(116),a=n(94),s=n(146),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(l,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=u(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,n){var r=n(125),o=n(83),i=n(166),a=n(94),s=TypeError,u=function(e){return function(t,n,u,l){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(u<2)for(;;){if(f in d){l=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&&(l=n(l,d[f],f,c));return l}};e.exports={left:u(!1),right:u(!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]:u,t=l.get(e)||l.get(u),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(24));n(4),n(41),n(1),n(5),n(6),n(57),n(89);var a=n(36),s=n(58),u="asc";t.ASC=u;t.DESC="desc";var l=new Map([[u,[-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 u(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:u,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(24)),i=r(n(32)),a=r(n(2)),s=r(n(3)),u=r(n(27)),l=r(n(74)),c=r(n(75));n(4),n(1),n(5),n(7),n(6),n(70),n(71);var d=n(15),h=r(n(51)),f=n(73),p=r(n(131)),g=n(578),m=n(296);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,u.default)(this,"instance",void 0),(0,u.default)(this,"eventManager",void 0),(0,u.default)(this,"settings",void 0),(0,u.default)(this,"THEAD",void 0),(0,u.default)(this,"TBODY",void 0),(0,u.default)(this,"_wt",void 0),(0,u.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,u.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,u=n.y||n.clientY,l=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(l===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,u)!==c||o.elementFromPoint(s,u+h)!==c)return}else for(;l!==a;){if(null===l){if(n.isTargetWebComponent)break;return}if(l===r)return;l=l.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],u=a[1],l=e.instance.runHooks("modifyGetCellCoords",s,u),c=s,d=u;if(Array.isArray(l)){var h=(0,o.default)(l,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,u,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,u,p,g,f),e.instance.runHooks("afterRenderer",r,s,u,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),u=s[0],l=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",u,l,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],u=r[3],l=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(u)];return e.instance.runHooks("beforeDrawBorders",l,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,u=t>=0?i.getVisualFromRenderableIndex(t):t,l=e.instance.runHooks("modifyGetCellCoords",u,s,r);if(Array.isArray(l)){var c=(0,o.default)(l,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,u=a.height;this.setLastSize(s,u),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,l.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,l.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(750)),s=r(n(294)),u=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=u},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)),u=r(n(11)),l=r(n(8)),c=r(n(570)),d=r(n(752)),h=r(n(780)),f=r(n(781)),p=r(n(782)),g=r(n(294)),m=n(12),v=n(15);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,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,u.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(125),i=n(63),a=n(54),s=n(182),u=n(167),l=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]=l("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=u?l.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(21),n(67);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(27)),u=n(15),l=n(108),c=n(13),d=n(109),h=n(90),f=n(132),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,l.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,u.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,u.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:"getOverlays",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[this.topOverlay,this.topInlineStartCornerOverlay,this.inlineStartOverlay,this.bottomOverlay,this.bottomInlineStartCornerOverlay];return e&&t.push(this.wtTable),t}},{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,u=this.scrollableElement===r,l=this.wtSettings.getSetting("preventWheel"),c={passive:u};(l||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,l)}),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,l)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),u||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 u=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&u)&&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,u.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 u=n.wtRootElement,l=u.scrollHeight,c=u.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=l<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>l&&(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)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(755)),h=n(152),f=n(133);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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,u){var l;return(0,i.default)(this,n),(l=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,l.inlineStartOverlay=u,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)(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)),u=r(n(8)),l=r(n(151)),c=r(n(574)),d=r(n(293)),h=n(12),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,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)}(l.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)),u=r(n(8)),l=n(230);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,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,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 l.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),u=o.getRenderedNode(a);this.sourceRowIndex=s;var l=this.obtainOrderView(u),c=i.obtainOrderView(u);l.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){l.render();var h=l.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}l.end()}}}]),n}(r(n(187)).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(760)),s=n(573),u=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=u},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)),u=r(n(8));function l(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,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=l(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(572)).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)),u=r(n(8)),l=n(15);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,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,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 u=t;u<s;u++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,l.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 u=this.table.renderedColumnToSource(s),l=a.childNodes[s+i];l.className="",l.removeAttribute("style"),r[t](u,l,t)}}}]),n}(r(n(187)).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)),u=r(n(8)),l=r(n(187)),c=n(15);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,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,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),u=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(u,"px")}var l=this.rootNode.firstChild;l&&(0,c.addClass)(l,"rowHeader")}}]),n}(l.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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=n(72),h=n(65),f=n(230),p=r(n(187));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,l.default)(this,n)}}var m=!1,v=function(e){(0,u.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)),u=r(n(8)),l=n(15),c=n(230);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,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,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 u=this.obtainOrderView(s),c=o.obtainOrderView(s);u.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){u.render();var h=u.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,l.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}u.end()}}}]),n}(r(n(187)).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(41),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(15),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,u=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(u=e.getSetting("onModifyRowHeaderWidth",u)))for(var l=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<l;d++){var h=Array.isArray(u)?u[d]:u;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)),u=r(n(11)),l=r(n(8)),c=r(n(27)),d=r(n(570));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,u.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 u=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),u,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(u,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(294)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(71);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedColumnsStart,d=l.inlineStartOverlay;if(u&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,u?e>this.lastScrolledColumnPos:t):(u&&(e<a||e>s)||!u)&&(h=d.scrollTo(e,u?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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedRowsBottom,d=l.fixedRowsTop,h=l.topOverlay;if(u&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,u?e>this.lastScrolledRowPos:n):(u&&(e<a||e>s)||!u)&&(f=h.scrollTo(e,u?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,u=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(l.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),l.top+c-f<=h){u=p;break}}}return u}},{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 u=(0,s.offset)(n.wtRootElement),l=(0,s.getScrollTop)(i,i);if(u.top>l)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),u.top+d-l>=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 u=(0,s.offset)(n.wtRootElement),l=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(u.left+l-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),u.left+l-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.wtSettings,n=e.inlineStartOverlay,r=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=e.rootWindow,u=r.getLastVisibleColumn();if(n.mainTableScrollableElement===a){var l=null;if(t.getSetting("rtlMode")){var c=r.TABLE.getBoundingClientRect(),d=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(c.right-d)}else{l=(0,s.offset)(r.wtRootElement).left}var h=Math.abs((0,s.getScrollLeft)(a,a));if(l>h)for(var f=(0,s.innerWidth)(a),p=o.getRowHeaderWidth(),g=1;g<=i;g++)if(l+(p+=n.sumCellSizes(g-1,g))-h>=f){u=g-2;break}}return u}}]),e}();t.default=u},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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(773)),p=n(152),g=n(133);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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsBottom",-1),u.cachedFixedRowsBottom=u.wtSettings.getSetting("fixedRowsBottom"),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)(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,u=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===u){var l=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(l-=a),l=Math.min(l,t.wtRootElement.scrollWidth),s.width="".concat(l,"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)),u=r(n(8)),l=r(n(151)),c=r(n(574)),d=r(n(295)),h=n(12),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,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)}(l.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)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(775)),h=n(152),f=n(133);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,u.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 u=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(u,"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)),u=r(n(8)),l=r(n(151)),c=r(n(575)),d=r(n(293)),h=n(12),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,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)}(l.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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(777)),p=n(152),g=n(133);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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a,u,l){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=u,c.inlineStartOverlay=l,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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(293)),h=n(12),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,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)}(l.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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(779)),p=n(152),g=n(133);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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsTop",-1),u.cachedFixedRowsTop=u.wtSettings.getSetting("fixedRowsTop"),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)(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 u=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),i.height="".concat(u,"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"),u=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(u-s,u),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 u=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!u):((0,h.removeClass)(n,"innerBorderTop"),o=u)}}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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(295)),h=n(12),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,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)}(l.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(577);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=n(12),l=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,u.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,u.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=l},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)),u=r(n(8)),l=n(15),c=r(n(151)),d=r(n(575)),h=r(n(295)),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,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,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,l.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,l.getStyle)(e,"height",t),o=(0,l.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,u=e.getBoundingClientRect(),c=u.width,d=u.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,l.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,l.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(15),s=n(12),u=n(783),l=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,u=o.documentElement.offsetWidth,l=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=u-(d?h.right-u:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,u):Math.min(this.getContainerFillWidth(),f,u),s===i&&l>0&&this.sumColumnWidths(0,l-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]:u.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===u.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset,l=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return l&&s>=0&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,l),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 u.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]:u.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;var i=t.getSetting("fixedColumnsStart");if(i&&o>=0){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 u.ViewportColumnsCalculator({viewportSize:r,scrollOffset: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)},inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(u.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(u.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.rowsRenderCalculator,i=o.startRow,a=o.endRow;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.columnsRenderCalculator,i=o.startColumn,a=o.endColumn;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&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=l},function(e,t,n){"use strict";n(1),n(21),n(43);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(566));t.ViewportColumnsCalculator=i.default;var a=r(n(567));t.ViewportRowsCalculator=a.default;var s=n(291);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(40),n(20),n(1),n(21),n(785);var o=r(n(24)),i=r(n(14)),a=r(n(2)),s=r(n(3)),u=n(15),l=r(n(787)),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 l.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,u.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,u.hasClass)(r,s)){var l=i+1;a="".concat(e,"-").concat(l)}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],l=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,u.addClass)(O,S)}y+=1}}if(null!==a&&null!==l)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=l){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 x=[],P=I[k];h&&x.push(h),p&&x.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:l-a+1,classNames:x});L!==M&&(P=e.wtTable.getRowHeader(L,k)),(0,u.addClass)(P,x)}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<=l&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=l?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(22),o=n(786).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(55),o=n(30),i=n(171),a=n(88),s=o(n(215).f),u=o([].push),l=function(e){return function(t){for(var n,o=a(t),l=i(o),c=l.length,d=0,h=[];c>d;)n=l[d++],r&&!s(o,n)||u(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:l(!0),values:l(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(85);var o=r(n(24)),i=r(n(2)),a=r(n(3)),s=n(15),u=n(73),l=n(12),c=n(90),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){var n=e.main.childNodes[t];e.eventManager.addEventListener(n,"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,u.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,u=s.bordersHolder;u||((u=t.createElement("div")).className="htBorders",s.bordersHolder=u,s.spreader.appendChild(u)),u.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,l.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,l.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,u=s.top,l=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(u.borderWidth,10),f=parseInt(u.width,10),p=parseInt(l.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();u.top="".concat(parseInt(n-f-1,10),"px"),u[a]="".concat(parseInt(r-f-1,10),"px"),l.top="".concat(parseInt(n-p/4*3,10),"px"),l[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()?(u.display="block",l.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(u.display="none",c.display="none",l.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(u.zIndex="9999",l.zIndex="9999"):(u.zIndex="",l.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,u,l=this.wot,d=l.wtTable,h=l.rootDocument,f=l.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,u=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,x=this.wot.wtSettings.getSetting("rtlMode"),P=0,L=0;if(x){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,P=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,P=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],P=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,u,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[x?"borderRightWidth":"borderLeftWidth"],10)>0&&(P+=1,L=L>0?L-1:0);var K=x?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(P,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(P,"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(P,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(P+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(P+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;(x?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(P+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[x?"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,P,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,u=null,l=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":u=function(){return i.getRowHeader.apply(i,arguments)},l=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":u=function(){return i.getColumnHeader.apply(i,arguments)},l=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=u(t,m-r),g=u(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]+l(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(22),o=n(45),i=n(66),a=n(30),s=n(114),u=n(55),l=n(141),c=n(28),d=n(54),h=n(115),f=n(62),p=n(88),g=n(213),m=n(56),v=n(175),y=n(123),E=n(171),T=n(143),C=n(275),R=n(216),w=n(117),S=n(84),O=n(383),b=n(215),A=n(97),N=n(180),M=n(140),I=n(214),_=n(173),k=n(211),x=n(48),P=n(579),L=n(580),D=n(789),F=n(218),U=n(107),H=n(128).forEach,V=I("hidden"),j=U.set,B=U.getterFor("Symbol"),W=Object.prototype,Y=o.Symbol,G=Y&&Y.prototype,z=o.TypeError,K=o.QObject,X=w.f,q=S.f,$=C.f,Q=b.f,Z=a([].push),J=M("symbols"),ee=M("op-symbols"),te=M("wks"),ne=!K||!K.prototype||!K.prototype.findChild,re=u&&c((function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(W,t);r&&delete W[t],q(e,t,n),r&&e!==W&&q(W,t,r)}:q,oe=function(e,t){var n=J[e]=y(G);return j(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},ie=function(e,t,n){e===W&&ie(ee,t,n),f(e);var r=g(t);return f(n),d(J,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,V)||q(e,V,v(1,{})),e[V][r]=!0),re(e,r,n)):q(e,r,n)},ae=function(e,t){f(e);var n=p(t),r=E(n).concat(ce(n));return H(r,(function(t){u&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=g(e),n=i(Q,this,t);return!(this===W&&d(J,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,V)&&this[V][t])||n)},ue=function(e,t){var n=p(e),r=g(t);if(n!==W||!d(J,r)||d(ee,r)){var o=X(n,r);return!o||!d(J,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},le=function(e){var t=$(p(e)),n=[];return H(t,(function(e){d(J,e)||d(_,e)||Z(n,e)})),n},ce=function(e){var t=e===W,n=$(t?ee:p(e)),r=[];return H(n,(function(e){!d(J,e)||t&&!d(W,e)||Z(r,J[e])})),r};l||(A(G=(Y=function(){if(h(G,this))throw z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=k(e),n=function(e){this===W&&i(n,ee,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),re(this,t,v(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return B(this).tag})),A(Y,"withoutSetter",(function(e){return oe(k(e),e)})),b.f=se,S.f=ie,O.f=ae,w.f=ue,T.f=C.f=le,R.f=ce,P.f=function(e){return oe(x(e),e)},u&&(N(G,"description",{configurable:!0,get:function(){return B(this).description}}),s||A(W,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Y}),H(E(te),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:le}),D(),F(Y,"Symbol"),_[V]=!0},function(e,t,n){var r=n(66),o=n(106),i=n(48),a=n(97);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(22),o=n(106),i=n(54),a=n(56),s=n(140),u=n(581),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(22),o=n(54),i=n(170),a=n(142),s=n(140),u=n(581),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},function(e,t,n){var r=n(22),o=n(106),i=n(129),a=n(66),s=n(30),u=n(28),l=n(49),c=n(170),d=n(182),h=n(793),f=n(141),p=String,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=!f||u((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=d(arguments),r=h(t);if(l(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(l(r)&&(t=a(r,this,p(e),t)),!c(t))return 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=d(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(30),o=n(145),i=n(49),a=n(102),s=n(56),u=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?u(n,l):"number"!=typeof l&&"Number"!=a(l)&&"String"!=a(l)||u(n,s(l))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},function(e,t,n){var r=n(22),o=n(141),i=n(28),a=n(216),s=n(83);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(70),n(71),n(1),n(21);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(134),u=n(13),l=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,u.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,u=null;if(s=this.modifyRowData(e),Array.isArray(s))u=[],i?s.forEach((function(t,n){u[n]=r.getAtPhysicalCell(e,n,s)})):(0,l.rangeEach)(t,n,(function(n){u[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(u=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(d,h,(function(i){var l=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(l)){var c=r.getAtPhysicalCell(e,l,s);o?u.push(c):(0,a.setProperty)(u,l,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(u,n,r.getAtPhysicalCell(e,n,s))}));return u}},{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,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,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,u=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),u=Math.max(t.col,n.col));var c=[];return(0,l.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,u,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(41),n(47),n(226),n(183),n(57),n(35),n(23),n(31),n(40),n(147);var u,l=n(13),c=n(65),d=n(72),h=n(582),f=n(802),p=r(n(86)),g=n(12),m=n(25),v=n(804),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.indexesChangeSource=void 0,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("indexesSequenceChange",t.indexesChangeSource),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)(u||(u=(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.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,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){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}},{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,l.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 u=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];s=a.indexOf(u)}this.indexesChangeSource="move",this.setIndexesSequence((0,h.getListWithInsertedItems)(a,s,r)),this.indexesChangeSource=void 0}},{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,l.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(o,i),this.indexesChangeSource=void 0,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.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,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)),u=r(n(8)),l=n(297),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,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,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}(l.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(57),n(4),n(1),n(6),n(31),n(40),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),u=r(n(19)),l=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(27)),f=n(231),p=n(298),g=n(232),m=n(583),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,l.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,u.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,u.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,u.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,u.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,u.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,u.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)),u=r(n(8)),l=n(297),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,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,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}(l.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)),u=r(n(11)),l=r(n(8)),c=n(231),d=n(232),h=n(584);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,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,u.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,l.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,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(21),n(43),t.__esModule=!0;var r=n(803);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(299);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)),u=r(n(8)),l=n(299),c=n(13),d=n(25);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,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}(l.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(21),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(74)),s=r(n(75)),u=n(805),l=n(806);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 u.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,l.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,l.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(75)),s=r(n(74)),u=n(12),l=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,u.mixin)(h,l.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 u()},t.registerPhraseFormatter=t.register=l;var o=r(n(103)),i=r(n(808)),a=(0,o.default)("phraseFormatters"),s=a.register,u=a.getValues;function l(e,t){s(e,t)}l("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(70),n(71)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(27)),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));
|
871
|
+
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,u,l,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 u(i){var u=0,l=0,c=0,d=i*i;if(i<8)u=(l=o(t,d))/(c=o(n,d));else{var h=i-.785398164;l=o(a,d=64/d),c=o(s,d),u=r.sqrt(e/i)*(r.cos(h)*l-r.sin(h)*c*8/i)}return u}var l=[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,u=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(l,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(u)*i-r.sin(u)*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 u(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,u(t),f(t),-1);else{for(var a=!1,s=0,l=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,l*=1e-10),a&&(l+=c),a=!a,p==n&&(o=s);o/=l=2*l-c}return o}}(),C=(s=.636619772,u=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),l=[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(u,a))/(i=o(l,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,u=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(u)*n+r.cos(u)*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),u=0,l=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*l+u,u=l,l=c,r.abs(l)>1e10&&(l*=1e-10,u*=1e-10,a*=1e-10),i==n&&(a=u);return a*=e(t,0)/l,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(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(701);var i=F(n(702));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,u,l,c,d=n(845),h=F(n(51)),f=n(76),p=r(n(1085)),g=r(n(307)),m=F(n(290)),v=F(n(13)),y=F(n(90)),E=F(n(134)),T=F(n(609)),C=F(n(108)),R=F(n(58)),w=F(n(25)),S=F(n(36)),O=F(n(12)),b=F(n(80)),A=F(n(109)),N=F(n(15)),M=F(n(73)),I=n(130),_=n(185),k=n(186),x=n(190),P=n(227),L=n(39);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,x.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,x.getCellType)(e)})),i.default.cellTypes.registerCellType=x.registerCellType,i.default.cellTypes.getCellType=x.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!==(u=i.default.renderers)&&void 0!==u?u:{},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!==(l=i.default.validators)&&void 0!==l?l:{},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,P.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,P.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=P.registerPlugin,i.default.plugins.getPlugin=P.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(66),o=n(49),i=n(63),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){"use strict";var r=n(394).IteratorPrototype,o=n(123),i=n(175),a=n(218),s=n(174),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){var r=n(30),o=n(125);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){var r=n(49),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(271),o=n(219);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(273),i=n(44),a=n(30),s=n(274),u=n(177),l=n(220),c=n(401),d=n(63),h=n(107).enforce,f=n(28),p=n(389),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,E=g.isSealed,T=g.freeze,C=g.seal,R={},w={},S=!i.ActiveXObject&&"ActiveXObject"in i,O=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=l("WeakMap",O,c),A=b.prototype,N=a(A.set);if(p)if(S){r=c.getConstructor(O,"WeakMap",!0),u.enable();var M=a(A.delete),I=a(A.has),_=a(A.get);s(A,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.delete(e)}return M(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)?_(this,e):t.frozen.get(e)}return _(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new r),I(this,e)?N(this,e,t):n.frozen.set(e,t)}else N(this,e,t);return this}})}else o&&f((function(){var e=T([]);return N(new b,e,1),!y(e)}))&&s(A,{set:function(e,t){var n;return m(e)&&(y(e)?n=R:E(e)&&(n=w)),N(this,e,t),n==R&&T(e),n==w&&C(e),this}})},function(e,t,n){var r=n(28),o=n(63),i=n(102),a=n(699),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(28);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(221),i=n(63),a=n(48)("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(22),o=n(28),i=n(275).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(703),n(704),n(705),n(706);var o=r(n(404)),i=n(296),a=n(588),s=r(n(59)),u=n(585),l=n(190),c=n(594),d=n(191),h=n(131);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,l.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="23/05/2023 09:18:01",f.version="0.0.0-next-59715d3-20230523",f.languages={dictionaryKeys:u.dictionaryKeys,getLanguageDictionary:u.getLanguageDictionary,getLanguagesDictionaries:u.getLanguagesDictionaries,registerLanguageDictionary:u.registerLanguageDictionary,getTranslatedPhrase:u.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=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(406);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(220)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(409))},function(e,t,n){var r=n(276),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,u),t),i(r(e,u),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(55),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(63),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(83),o=n(172),i=n(94);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(83),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\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=l),s(h,g,(function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,f);case"<":l=d[u(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}l=r[c-1]}return void 0===l?"":l}))}},function(e,t,n){"use strict";var r=n(178),o=n(66),i=n(83),a=n(720),s=n(397),u=n(221),l=n(94),c=n(144),d=n(398),h=n(278),f=Array;e.exports=function(e){var t=i(e),n=u(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=l(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(62),o=n(399);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(128).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(22),o=n(44),i=n(285)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){var r=n(22),o=n(44),i=n(285)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(726),n(728)},function(e,t,n){var r=n(22),o=n(44),i=n(421).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(22),o=n(44),i=n(421).set,a=n(285),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";n(220)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(409))},function(e,t,n){var r=n(84).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(176).PROPER,o=n(28),i=n(416);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(129),o=n(66),i=n(30),a=n(223),s=n(62),u=n(96),l=n(287),c=n(82),d=n(734),h=n(284),f=n(126),p=n(56),g=n(124),m=n(276),v=n(224),y=n(222),E=n(283),T=n(28),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(!l(e))return o(t,i,e,a);for(var s,u,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))&&!((u=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=u,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=u(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),u=n(i,o,a,r,i!==t);if(u.done)return u.value;var l=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new l(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(62),o=n(426),i=n(96),a=n(48)("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(22),o=n(272).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(126),i=n(56),a=n(289),s=n(82),u=r(a),l=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=u(g,c((a=f-p)/g.length))).length>a&&(d=l(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":429,"./af.js":429,"./ar":430,"./ar-dz":431,"./ar-dz.js":431,"./ar-kw":432,"./ar-kw.js":432,"./ar-ly":433,"./ar-ly.js":433,"./ar-ma":434,"./ar-ma.js":434,"./ar-sa":435,"./ar-sa.js":435,"./ar-tn":436,"./ar-tn.js":436,"./ar.js":430,"./az":437,"./az.js":437,"./be":438,"./be.js":438,"./bg":439,"./bg.js":439,"./bm":440,"./bm.js":440,"./bn":441,"./bn-bd":442,"./bn-bd.js":442,"./bn.js":441,"./bo":443,"./bo.js":443,"./br":444,"./br.js":444,"./bs":445,"./bs.js":445,"./ca":446,"./ca.js":446,"./cs":447,"./cs.js":447,"./cv":448,"./cv.js":448,"./cy":449,"./cy.js":449,"./da":450,"./da.js":450,"./de":451,"./de-at":452,"./de-at.js":452,"./de-ch":453,"./de-ch.js":453,"./de.js":451,"./dv":454,"./dv.js":454,"./el":455,"./el.js":455,"./en-au":456,"./en-au.js":456,"./en-ca":457,"./en-ca.js":457,"./en-gb":458,"./en-gb.js":458,"./en-ie":459,"./en-ie.js":459,"./en-il":460,"./en-il.js":460,"./en-in":461,"./en-in.js":461,"./en-nz":462,"./en-nz.js":462,"./en-sg":463,"./en-sg.js":463,"./eo":464,"./eo.js":464,"./es":465,"./es-do":466,"./es-do.js":466,"./es-mx":467,"./es-mx.js":467,"./es-us":468,"./es-us.js":468,"./es.js":465,"./et":469,"./et.js":469,"./eu":470,"./eu.js":470,"./fa":471,"./fa.js":471,"./fi":472,"./fi.js":472,"./fil":473,"./fil.js":473,"./fo":474,"./fo.js":474,"./fr":475,"./fr-ca":476,"./fr-ca.js":476,"./fr-ch":477,"./fr-ch.js":477,"./fr.js":475,"./fy":478,"./fy.js":478,"./ga":479,"./ga.js":479,"./gd":480,"./gd.js":480,"./gl":481,"./gl.js":481,"./gom-deva":482,"./gom-deva.js":482,"./gom-latn":483,"./gom-latn.js":483,"./gu":484,"./gu.js":484,"./he":485,"./he.js":485,"./hi":486,"./hi.js":486,"./hr":487,"./hr.js":487,"./hu":488,"./hu.js":488,"./hy-am":489,"./hy-am.js":489,"./id":490,"./id.js":490,"./is":491,"./is.js":491,"./it":492,"./it-ch":493,"./it-ch.js":493,"./it.js":492,"./ja":494,"./ja.js":494,"./jv":495,"./jv.js":495,"./ka":496,"./ka.js":496,"./kk":497,"./kk.js":497,"./km":498,"./km.js":498,"./kn":499,"./kn.js":499,"./ko":500,"./ko.js":500,"./ku":501,"./ku.js":501,"./ky":502,"./ky.js":502,"./lb":503,"./lb.js":503,"./lo":504,"./lo.js":504,"./lt":505,"./lt.js":505,"./lv":506,"./lv.js":506,"./me":507,"./me.js":507,"./mi":508,"./mi.js":508,"./mk":509,"./mk.js":509,"./ml":510,"./ml.js":510,"./mn":511,"./mn.js":511,"./mr":512,"./mr.js":512,"./ms":513,"./ms-my":514,"./ms-my.js":514,"./ms.js":513,"./mt":515,"./mt.js":515,"./my":516,"./my.js":516,"./nb":517,"./nb.js":517,"./ne":518,"./ne.js":518,"./nl":519,"./nl-be":520,"./nl-be.js":520,"./nl.js":519,"./nn":521,"./nn.js":521,"./oc-lnc":522,"./oc-lnc.js":522,"./pa-in":523,"./pa-in.js":523,"./pl":524,"./pl.js":524,"./pt":525,"./pt-br":526,"./pt-br.js":526,"./pt.js":525,"./ro":527,"./ro.js":527,"./ru":528,"./ru.js":528,"./sd":529,"./sd.js":529,"./se":530,"./se.js":530,"./si":531,"./si.js":531,"./sk":532,"./sk.js":532,"./sl":533,"./sl.js":533,"./sq":534,"./sq.js":534,"./sr":535,"./sr-cyrl":536,"./sr-cyrl.js":536,"./sr.js":535,"./ss":537,"./ss.js":537,"./sv":538,"./sv.js":538,"./sw":539,"./sw.js":539,"./ta":540,"./ta.js":540,"./te":541,"./te.js":541,"./tet":542,"./tet.js":542,"./tg":543,"./tg.js":543,"./th":544,"./th.js":544,"./tk":545,"./tk.js":545,"./tl-ph":546,"./tl-ph.js":546,"./tlh":547,"./tlh.js":547,"./tr":548,"./tr.js":548,"./tzl":549,"./tzl.js":549,"./tzm":550,"./tzm-latn":551,"./tzm-latn.js":551,"./tzm.js":550,"./ug-cn":552,"./ug-cn.js":552,"./uk":553,"./uk.js":553,"./ur":554,"./ur.js":554,"./uz":555,"./uz-latn":556,"./uz-latn.js":556,"./uz.js":555,"./vi":557,"./vi.js":557,"./x-pseudo":558,"./x-pseudo.js":558,"./yo":559,"./yo.js":559,"./zh-cn":560,"./zh-cn.js":560,"./zh-hk":561,"./zh-hk.js":561,"./zh-mo":562,"./zh-mo.js":562,"./zh-tw":563,"./zh-tw.js":563};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=739},function(e,t,n){n(22)({target:"String",proto:!0},{repeat:n(289)})},function(e,t,n){var r=n(22),o=n(742);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(129),o=n(88),i=n(116),a=n(94),s=n(146),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(l,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=u(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,n){var r=n(125),o=n(83),i=n(166),a=n(94),s=TypeError,u=function(e){return function(t,n,u,l){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(u<2)for(;;){if(f in d){l=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&&(l=n(l,d[f],f,c));return l}};e.exports={left:u(!1),right:u(!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]:u,t=l.get(e)||l.get(u),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(24));n(4),n(41),n(1),n(5),n(6),n(57),n(89);var a=n(36),s=n(58),u="asc";t.ASC=u;t.DESC="desc";var l=new Map([[u,[-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 u(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:u,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(24)),i=r(n(32)),a=r(n(2)),s=r(n(3)),u=r(n(27)),l=r(n(74)),c=r(n(75));n(4),n(1),n(5),n(7),n(6),n(70),n(71);var d=n(15),h=r(n(51)),f=n(73),p=r(n(131)),g=n(578),m=n(296);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,u.default)(this,"instance",void 0),(0,u.default)(this,"eventManager",void 0),(0,u.default)(this,"settings",void 0),(0,u.default)(this,"THEAD",void 0),(0,u.default)(this,"TBODY",void 0),(0,u.default)(this,"_wt",void 0),(0,u.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,u.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,u=n.y||n.clientY,l=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(l===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,u)!==c||o.elementFromPoint(s,u+h)!==c)return}else for(;l!==a;){if(null===l){if(n.isTargetWebComponent)break;return}if(l===r)return;l=l.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],u=a[1],l=e.instance.runHooks("modifyGetCellCoords",s,u),c=s,d=u;if(Array.isArray(l)){var h=(0,o.default)(l,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,u,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,u,p,g,f),e.instance.runHooks("afterRenderer",r,s,u,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),u=s[0],l=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",u,l,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],u=r[3],l=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(u)];return e.instance.runHooks("beforeDrawBorders",l,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,u=t>=0?i.getVisualFromRenderableIndex(t):t,l=e.instance.runHooks("modifyGetCellCoords",u,s,r);if(Array.isArray(l)){var c=(0,o.default)(l,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,u=a.height;this.setLastSize(s,u),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,l.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,l.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(750)),s=r(n(294)),u=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=u},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)),u=r(n(11)),l=r(n(8)),c=r(n(570)),d=r(n(752)),h=r(n(780)),f=r(n(781)),p=r(n(782)),g=r(n(294)),m=n(12),v=n(15);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,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,u.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(125),i=n(63),a=n(54),s=n(182),u=n(167),l=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]=l("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=u?l.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(21),n(67);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(27)),u=n(15),l=n(108),c=n(13),d=n(109),h=n(90),f=n(132),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,l.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,u.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,u.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:"getOverlays",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[this.topOverlay,this.topInlineStartCornerOverlay,this.inlineStartOverlay,this.bottomOverlay,this.bottomInlineStartCornerOverlay];return e&&t.push(this.wtTable),t}},{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,u=this.scrollableElement===r,l=this.wtSettings.getSetting("preventWheel"),c={passive:u};(l||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,l)}),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,l)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),u||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 u=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&u)&&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,u.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 u=n.wtRootElement,l=u.scrollHeight,c=u.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=l<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>l&&(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)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(755)),h=n(152),f=n(133);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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,u){var l;return(0,i.default)(this,n),(l=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,l.inlineStartOverlay=u,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)(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)),u=r(n(8)),l=r(n(151)),c=r(n(574)),d=r(n(293)),h=n(12),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,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)}(l.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)),u=r(n(8)),l=n(230);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,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,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 l.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),u=o.getRenderedNode(a);this.sourceRowIndex=s;var l=this.obtainOrderView(u),c=i.obtainOrderView(u);l.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){l.render();var h=l.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}l.end()}}}]),n}(r(n(187)).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(760)),s=n(573),u=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=u},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)),u=r(n(8));function l(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,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=l(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(572)).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)),u=r(n(8)),l=n(15);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,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,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 u=t;u<s;u++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,l.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 u=this.table.renderedColumnToSource(s),l=a.childNodes[s+i];l.className="",l.removeAttribute("style"),r[t](u,l,t)}}}]),n}(r(n(187)).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)),u=r(n(8)),l=r(n(187)),c=n(15);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,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,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),u=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(u,"px")}var l=this.rootNode.firstChild;l&&(0,c.addClass)(l,"rowHeader")}}]),n}(l.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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=n(72),h=n(65),f=n(230),p=r(n(187));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,l.default)(this,n)}}var m=!1,v=function(e){(0,u.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)),u=r(n(8)),l=n(15),c=n(230);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,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,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 u=this.obtainOrderView(s),c=o.obtainOrderView(s);u.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){u.render();var h=u.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,l.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}u.end()}}}]),n}(r(n(187)).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(41),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(15),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,u=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(u=e.getSetting("onModifyRowHeaderWidth",u)))for(var l=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<l;d++){var h=Array.isArray(u)?u[d]:u;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)),u=r(n(11)),l=r(n(8)),c=r(n(27)),d=r(n(570));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,u.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 u=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),u,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(u,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(294)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(71);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedColumnsStart,d=l.inlineStartOverlay;if(u&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,u?e>this.lastScrolledColumnPos:t):(u&&(e<a||e>s)||!u)&&(h=d.scrollTo(e,u?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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedRowsBottom,d=l.fixedRowsTop,h=l.topOverlay;if(u&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,u?e>this.lastScrolledRowPos:n):(u&&(e<a||e>s)||!u)&&(f=h.scrollTo(e,u?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,u=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(l.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),l.top+c-f<=h){u=p;break}}}return u}},{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 u=(0,s.offset)(n.wtRootElement),l=(0,s.getScrollTop)(i,i);if(u.top>l)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),u.top+d-l>=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 u=(0,s.offset)(n.wtRootElement),l=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(u.left+l-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),u.left+l-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.wtSettings,n=e.inlineStartOverlay,r=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=e.rootWindow,u=r.getLastVisibleColumn();if(n.mainTableScrollableElement===a){var l=null;if(t.getSetting("rtlMode")){var c=r.TABLE.getBoundingClientRect(),d=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(c.right-d)}else{l=(0,s.offset)(r.wtRootElement).left}var h=Math.abs((0,s.getScrollLeft)(a,a));if(l>h)for(var f=(0,s.innerWidth)(a),p=o.getRowHeaderWidth(),g=1;g<=i;g++)if(l+(p+=n.sumCellSizes(g-1,g))-h>=f){u=g-2;break}}return u}}]),e}();t.default=u},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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(773)),p=n(152),g=n(133);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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsBottom",-1),u.cachedFixedRowsBottom=u.wtSettings.getSetting("fixedRowsBottom"),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)(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,u=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===u){var l=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(l-=a),l=Math.min(l,t.wtRootElement.scrollWidth),s.width="".concat(l,"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)),u=r(n(8)),l=r(n(151)),c=r(n(574)),d=r(n(295)),h=n(12),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,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)}(l.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)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(775)),h=n(152),f=n(133);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,u.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 u=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(u,"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)),u=r(n(8)),l=r(n(151)),c=r(n(575)),d=r(n(293)),h=n(12),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,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)}(l.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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(777)),p=n(152),g=n(133);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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a,u,l){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=u,c.inlineStartOverlay=l,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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(293)),h=n(12),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,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)}(l.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)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(779)),p=n(152),g=n(133);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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsTop",-1),u.cachedFixedRowsTop=u.wtSettings.getSetting("fixedRowsTop"),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)(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 u=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),i.height="".concat(u,"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"),u=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(u-s,u),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 u=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!u):((0,h.removeClass)(n,"innerBorderTop"),o=u)}}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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(295)),h=n(12),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,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)}(l.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(577);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=n(12),l=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,u.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,u.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=l},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)),u=r(n(8)),l=n(15),c=r(n(151)),d=r(n(575)),h=r(n(295)),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,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,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,l.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,l.getStyle)(e,"height",t),o=(0,l.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,u=e.getBoundingClientRect(),c=u.width,d=u.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,l.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,l.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(15),s=n(12),u=n(783),l=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,u=o.documentElement.offsetWidth,l=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=u-(d?h.right-u:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,u):Math.min(this.getContainerFillWidth(),f,u),s===i&&l>0&&this.sumColumnWidths(0,l-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]:u.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===u.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset,l=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return l&&s>=0&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,l),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 u.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]:u.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;var i=t.getSetting("fixedColumnsStart");if(i&&o>=0){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 u.ViewportColumnsCalculator({viewportSize:r,scrollOffset: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)},inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(u.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(u.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.rowsRenderCalculator,i=o.startRow,a=o.endRow;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.columnsRenderCalculator,i=o.startColumn,a=o.endColumn;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&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=l},function(e,t,n){"use strict";n(1),n(21),n(43);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(566));t.ViewportColumnsCalculator=i.default;var a=r(n(567));t.ViewportRowsCalculator=a.default;var s=n(291);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(40),n(20),n(1),n(21),n(785);var o=r(n(24)),i=r(n(14)),a=r(n(2)),s=r(n(3)),u=n(15),l=r(n(787)),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 l.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,u.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,u.hasClass)(r,s)){var l=i+1;a="".concat(e,"-").concat(l)}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],l=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,u.addClass)(O,S)}y+=1}}if(null!==a&&null!==l)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=l){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 x=[],P=I[k];h&&x.push(h),p&&x.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:l-a+1,classNames:x});L!==M&&(P=e.wtTable.getRowHeader(L,k)),(0,u.addClass)(P,x)}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<=l&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=l?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(22),o=n(786).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(55),o=n(30),i=n(171),a=n(88),s=o(n(215).f),u=o([].push),l=function(e){return function(t){for(var n,o=a(t),l=i(o),c=l.length,d=0,h=[];c>d;)n=l[d++],r&&!s(o,n)||u(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:l(!0),values:l(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(85);var o=r(n(24)),i=r(n(2)),a=r(n(3)),s=n(15),u=n(73),l=n(12),c=n(90),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){var n=e.main.childNodes[t];e.eventManager.addEventListener(n,"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,u.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,u=s.bordersHolder;u||((u=t.createElement("div")).className="htBorders",s.bordersHolder=u,s.spreader.appendChild(u)),u.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,l.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,l.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,u=s.top,l=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(u.borderWidth,10),f=parseInt(u.width,10),p=parseInt(l.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();u.top="".concat(parseInt(n-f-1,10),"px"),u[a]="".concat(parseInt(r-f-1,10),"px"),l.top="".concat(parseInt(n-p/4*3,10),"px"),l[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()?(u.display="block",l.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(u.display="none",c.display="none",l.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(u.zIndex="9999",l.zIndex="9999"):(u.zIndex="",l.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,u,l=this.wot,d=l.wtTable,h=l.rootDocument,f=l.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,u=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,x=this.wot.wtSettings.getSetting("rtlMode"),P=0,L=0;if(x){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,P=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,P=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],P=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,u,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[x?"borderRightWidth":"borderLeftWidth"],10)>0&&(P+=1,L=L>0?L-1:0);var K=x?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(P,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(P,"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(P,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(P+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(P+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;(x?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(P+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[x?"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,P,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,u=null,l=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":u=function(){return i.getRowHeader.apply(i,arguments)},l=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":u=function(){return i.getColumnHeader.apply(i,arguments)},l=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=u(t,m-r),g=u(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]+l(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(22),o=n(44),i=n(66),a=n(30),s=n(114),u=n(55),l=n(141),c=n(28),d=n(54),h=n(115),f=n(62),p=n(88),g=n(213),m=n(56),v=n(175),y=n(123),E=n(171),T=n(143),C=n(275),R=n(216),w=n(117),S=n(84),O=n(383),b=n(215),A=n(97),N=n(180),M=n(140),I=n(214),_=n(173),k=n(211),x=n(48),P=n(579),L=n(580),D=n(789),F=n(218),U=n(107),H=n(128).forEach,V=I("hidden"),j=U.set,B=U.getterFor("Symbol"),W=Object.prototype,Y=o.Symbol,G=Y&&Y.prototype,z=o.TypeError,K=o.QObject,X=w.f,q=S.f,$=C.f,Q=b.f,Z=a([].push),J=M("symbols"),ee=M("op-symbols"),te=M("wks"),ne=!K||!K.prototype||!K.prototype.findChild,re=u&&c((function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(W,t);r&&delete W[t],q(e,t,n),r&&e!==W&&q(W,t,r)}:q,oe=function(e,t){var n=J[e]=y(G);return j(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},ie=function(e,t,n){e===W&&ie(ee,t,n),f(e);var r=g(t);return f(n),d(J,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,V)||q(e,V,v(1,{})),e[V][r]=!0),re(e,r,n)):q(e,r,n)},ae=function(e,t){f(e);var n=p(t),r=E(n).concat(ce(n));return H(r,(function(t){u&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=g(e),n=i(Q,this,t);return!(this===W&&d(J,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,V)&&this[V][t])||n)},ue=function(e,t){var n=p(e),r=g(t);if(n!==W||!d(J,r)||d(ee,r)){var o=X(n,r);return!o||!d(J,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},le=function(e){var t=$(p(e)),n=[];return H(t,(function(e){d(J,e)||d(_,e)||Z(n,e)})),n},ce=function(e){var t=e===W,n=$(t?ee:p(e)),r=[];return H(n,(function(e){!d(J,e)||t&&!d(W,e)||Z(r,J[e])})),r};l||(A(G=(Y=function(){if(h(G,this))throw z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=k(e),n=function(e){this===W&&i(n,ee,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),re(this,t,v(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return B(this).tag})),A(Y,"withoutSetter",(function(e){return oe(k(e),e)})),b.f=se,S.f=ie,O.f=ae,w.f=ue,T.f=C.f=le,R.f=ce,P.f=function(e){return oe(x(e),e)},u&&(N(G,"description",{configurable:!0,get:function(){return B(this).description}}),s||A(W,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Y}),H(E(te),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:le}),D(),F(Y,"Symbol"),_[V]=!0},function(e,t,n){var r=n(66),o=n(106),i=n(48),a=n(97);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(22),o=n(106),i=n(54),a=n(56),s=n(140),u=n(581),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(22),o=n(54),i=n(170),a=n(142),s=n(140),u=n(581),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},function(e,t,n){var r=n(22),o=n(106),i=n(129),a=n(66),s=n(30),u=n(28),l=n(49),c=n(170),d=n(182),h=n(793),f=n(141),p=String,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=!f||u((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=d(arguments),r=h(t);if(l(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(l(r)&&(t=a(r,this,p(e),t)),!c(t))return 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=d(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(30),o=n(145),i=n(49),a=n(102),s=n(56),u=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?u(n,l):"number"!=typeof l&&"Number"!=a(l)&&"String"!=a(l)||u(n,s(l))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},function(e,t,n){var r=n(22),o=n(141),i=n(28),a=n(216),s=n(83);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(70),n(71),n(1),n(21);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(134),u=n(13),l=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,u.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,u=null;if(s=this.modifyRowData(e),Array.isArray(s))u=[],i?s.forEach((function(t,n){u[n]=r.getAtPhysicalCell(e,n,s)})):(0,l.rangeEach)(t,n,(function(n){u[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(u=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(d,h,(function(i){var l=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(l)){var c=r.getAtPhysicalCell(e,l,s);o?u.push(c):(0,a.setProperty)(u,l,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(u,n,r.getAtPhysicalCell(e,n,s))}));return u}},{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,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,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,u=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),u=Math.max(t.col,n.col));var c=[];return(0,l.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,u,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(41),n(47),n(226),n(183),n(57),n(35),n(23),n(31),n(40),n(147);var u,l=n(13),c=n(65),d=n(72),h=n(582),f=n(802),p=r(n(86)),g=n(12),m=n(25),v=n(804),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.indexesChangeSource=void 0,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("indexesSequenceChange",t.indexesChangeSource),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)(u||(u=(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.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,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){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}},{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,l.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 u=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];s=a.indexOf(u)}this.indexesChangeSource="move",this.setIndexesSequence((0,h.getListWithInsertedItems)(a,s,r)),this.indexesChangeSource=void 0}},{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,l.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(o,i),this.indexesChangeSource=void 0,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.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,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)),u=r(n(8)),l=n(297),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,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,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}(l.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(57),n(4),n(1),n(6),n(31),n(40),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(33)),u=r(n(19)),l=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(27)),f=n(231),p=n(298),g=n(232),m=n(583),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,l.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,u.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,u.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,u.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,u.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,u.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,u.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)),u=r(n(8)),l=n(297),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,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,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}(l.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)),u=r(n(11)),l=r(n(8)),c=n(231),d=n(232),h=n(584);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,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,u.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,l.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,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(21),n(43),t.__esModule=!0;var r=n(803);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(299);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)),u=r(n(8)),l=n(299),c=n(13),d=n(25);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,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}(l.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(21),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(74)),s=r(n(75)),u=n(805),l=n(806);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 u.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,l.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,l.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(75)),s=r(n(74)),u=n(12),l=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,u.mixin)(h,l.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 u()},t.registerPhraseFormatter=t.register=l;var o=r(n(103)),i=r(n(808)),a=(0,o.default)("phraseFormatters"),s=a.register,u=a.getValues;function l(e,t){s(e,t)}l("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(70),n(71)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(27)),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));
|
872
872
|
/**
|
873
873
|
* @preserve
|
874
874
|
* Authors: Handsoncode
|