text: /*!
   * (The MIT License)
   * 
   * Copyright (c) 2012-2014 Marcin Warpechowski
   * Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>
   * 
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * 'Software'), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   * 
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   * 
   * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * 
   * Version: 6.0.0
   * Release date: 27/09/2018 (built at 26/09/2018 12:57:26)
   */
  !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){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=452)}([function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null,r=e;null!==r;){if(n===t){o=r;break}r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r=r.host:(n+=1,r=r.parentNode)}return o}function i(e,t,n){for(var o=e;null!==o&&o!==n;){if(o.nodeType===Node.ELEMENT_NODE&&(t.indexOf(o.nodeName)>-1||t.indexOf(o)>-1))return o;o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode}return null}function a(e,t,n){for(var o=[],r=e;r&&(r=i(r,t,n))&&(!n||n.contains(r));)o.push(r),r=r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode;var a=o.length;return a?o[a-1]:null}function s(e,t){var n=e.parentNode,o=[];for("string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);null!==n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function l(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===n.toUpperCase()}for(var n="hot-table",o=!1,r=u(e);null!==r;){if(t(r)){o=!0;break}if(r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(o=t(r.host))break;r=r.host}r=r.parentNode}return o}function u(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function c(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function h(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t}function f(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null}function d(e){var t=[];if(!e||!e.length)return t;for(var n=0;e[n];)t.push(e[n]),n+=1;return t}function p(e,t){return Q(e,t)}function g(e,t){return ee(e,t)}function v(e,t){return te(e,t)}function m(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var n=e.childNodes,o=n.length-1;o>=0;o--)m(n[o],e)}function y(e){for(var t=void 0;t=e.lastChild;)e.removeChild(t)}function w(e,t){ie.test(t)?e.innerHTML=t:C(e,t)}function C(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?ae?n.textContent=t:n.data=t:(y(e),e.appendChild(document.createTextNode(t)))}function b(e){for(var t=e;c(t)!==document.documentElement;){if(null===t)return!1;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t.host){if(t.host.impl)return b(t.host.impl);if(t.host)return b(t.host);throw Error("Lost in Web Components world")}return!1}if("none"===t.style.display)return!1;t=t.parentNode}return!0}function _(e){var t=document.documentElement,n=e,o=void 0,r=void 0,i=void 0,a=void 0;if((0,$.hasCaptionProblem)()&&n.firstChild&&"CAPTION"===n.firstChild.nodeName)return a=n.getBoundingClientRect(),{top:a.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),left:a.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)};for(o=n.offsetLeft,r=n.offsetTop,i=n;(n=n.offsetParent)&&n!==document.body;)o+=n.offsetLeft,r+=n.offsetTop,i=n;return i&&"fixed"===i.style.position&&(o+=window.pageXOffset||t.scrollLeft,r+=window.pageYOffset||t.scrollTop),{left:o,top:r}}function S(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function E(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function O(e){return e===window?S():e.scrollTop}function T(e){return e===window?E():e.scrollLeft}function k(e){for(var t=["auto","scroll"],n=e.parentNode,o=void 0,r=void 0,i=void 0,a="",s="",l="",u="";n&&n.style&&document.body!==n;){if(o=n.style.overflow,r=n.style.overflowX,i=n.style.overflowY,"scroll"===o||"scroll"===r||"scroll"===i)return n;if(window.getComputedStyle&&(a=window.getComputedStyle(n),s=a.getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),u=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===u||"scroll"===l))return n;if(n.scrollHeight+1>=n.clientHeight&&(-1!==t.indexOf(i)||-1!==t.indexOf(o)||-1!==t.indexOf(s)||-1!==t.indexOf(l)))return n;if(n.scrollWidth+1>=n.clientWidth&&(-1!==t.indexOf(r)||-1!==t.indexOf(o)||-1!==t.indexOf(s)||-1!==t.indexOf(u)))return n;n=n.parentNode}return window}function R(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function M(e,t){if(e){if(e!==window){var n,o=e.style[t];return""!==o&&void 0!==o?o:(n=D(e),""!==n[t]&&void 0!==n[t]?n[t]:void 0)}if("width"===t)return window.innerWidth+"px";if("height"===t)return window.innerHeight+"px"}}function D(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function A(e){return e.offsetWidth}function N(e){return(0,$.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function P(e){return e.clientHeight||e.innerHeight}function H(e){return e.clientWidth||e.innerWidth}function L(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function x(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function I(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function j(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;return e.createTextRange().text.indexOf(t.text)+t.text.length}return 0}function F(){var e="";return window.getSelection?e=""+window.getSelection():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function W(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var o=e.parentNode,r=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=r}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}}function B(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n==o&&(o=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-o}function Y(){return void 0===re&&(re=B()),re}function V(e){return e.offsetWidth!==e.clientWidth}function U(e){return e.offsetHeight!==e.clientHeight}function z(e,t,n){(0,Z.isIE8)()||(0,Z.isIE9)()?(e.style.top=n,e.style.left=t):(0,Z.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"}function G(e){var t=void 0;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function K(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function X(e){var t=["INPUT","SELECT","TEXTAREA"];return e&&(t.indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function q(e){return X(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")}t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.getParent=r,t.closest=i,t.closestDown=a,t.isChildOf=s,t.isChildOfWebComponentTable=l,t.polymerWrap=u,t.polymerUnwrap=c,t.index=h,t.overlayContainsElement=f,t.hasClass=p,t.addClass=g,t.removeClass=v,t.removeTextNodes=m,t.empty=y,t.fastInnerHTML=w,t.fastInnerText=C,t.isVisible=b,t.offset=_,t.getWindowScrollTop=S,t.getWindowScrollLeft=E,t.getScrollTop=O,t.getScrollLeft=T,t.getScrollableElement=k,t.getTrimmingContainer=R,t.getStyle=M,t.getComputedStyle=D,t.outerWidth=A,t.outerHeight=N,t.innerHeight=P,t.innerWidth=H,t.addEvent=L,t.removeEvent=x,t.getCaretPosition=I,t.getSelectionEndPosition=j,t.getSelectionText=F,t.setCaretPosition=W,t.getScrollbarWidth=Y,t.hasVerticalScrollbar=V,t.hasHorizontalScrollbar=U,t.setOverlayPosition=z,t.getCssTransform=G,t.resetCssTransform=K,t.isInput=X,t.isOutsideInput=q;var Z=n(39),$=n(40),J=!!document.documentElement.classList,Q=void 0,ee=void 0,te=void 0;if(J){var ne=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();Q=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},ee=function(e,t){var n=t;if("string"==typeof n&&(n=n.split(" ")),n=d(n),n.length>0)if(ne){var r;(r=e.classList).add.apply(r,o(n))}else for(var i=0;n&&n[i];)e.classList.add(n[i]),i+=1},te=function(e,t){var n=t;if("string"==typeof n&&(n=n.split(" ")),n=d(n),n.length>0)if(ne){var r;(r=e.classList).remove.apply(r,o(n))}else for(var i=0;n&&n[i];)e.classList.remove(n[i]),i+=1}}else{var oe=function(e){return RegExp("(\\s|^)"+e+"(\\s|$)")};Q=function(e,t){return void 0!==e.className&&oe(t).test(e.className)},ee=function(e,t){var n=0,o=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),""===o)o=r.join(" ");else for(;r&&r[n];)oe(r[n]).test(o)||(o+=" "+r[n]),n+=1;e.className=o},te=function(e,t){var n=0,o=e.className,r=t;for("string"==typeof r&&(r=r.split(" "));r&&r[n];)o=o.replace(oe(r[n])," ").trim(),n+=1;e.className!==o&&(e.className=o)}}var re,ie=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,ae=!!document.createTextNode("test").textContent},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=void 0;return Array.isArray(e)?t=[]:(t={},p(e,function(e,n){"__children"!==n&&(t[n]=e&&"object"===(void 0===e?"undefined":w(e))&&!Array.isArray(e)?r(e):Array.isArray(e)?e.length&&"object"===w(e[0])&&!Array.isArray(e[0])?[r(e[0])]:[]:null)})),t}function i(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function a(e,t){return p(t,function(t,n){e[n]=t}),e}function s(e,t){p(t,function(n,o){t[o]&&"object"===w(t[o])?(e[o]||(e[o]=Array.isArray(t[o])?[]:"[object Date]"===Object.prototype.toString.call(t[o])?t[o]:{}),s(e[o],t[o])):e[o]=t[o]})}function l(e){return"object"===(void 0===e?"undefined":w(e))?JSON.parse(JSON.stringify(e)):e}function u(e){var t={};return p(e,function(e,n){t[n]=e}),t}function c(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,C.arrayEach)(n,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,n){if(void 0!==e.prototype[n])throw Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:function(e,t){var n="_"+e,o=function(e){var t=e;return(Array.isArray(t)||f(t))&&(t=l(t)),t};return function(){return void 0===this[n]&&(this[n]=o(t)),this[n]}}(n,t),set:function(e){var t="_"+e;return function(e){this[t]=e}}(n),configurable:!0})}})}),e}function h(e,t){return JSON.stringify(e)===JSON.stringify(t)}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function p(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 g(e,t){var n=t.split("."),o=e;return p(n,function(e){if(void 0===(o=o[e]))return o=void 0,!1}),o}function v(e){if(!f(e))return 0;return function e(t){var n=0;return f(t)?p(t,function(t){n+=e(t)}):n+=1,n}(e)}function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_"+n,i=(t={_touched:!1},o(t,r,e),o(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}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.__esModule=!0;var w="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.duckSchema=r,t.inherit=i,t.extend=a,t.deepExtend=s,t.deepClone=l,t.clone=u,t.mixin=c,t.isObjectEqual=h,t.isObject=f,t.defineGetter=d,t.objectEach=p,t.getProperty=g,t.deepObjectSize=v,t.createObjectPropListener=m,t.hasOwnProperty=y;var C=n(2)},function(e,t,n){"use strict";function o(e){for(var t=e.length,n=0;t>n;)e[n]=[e[n]],n+=1}function r(e,t){for(var n=t.length,o=0;n>o;)e.push(t[o]),o+=1}function i(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,r=0;n>r;r++)for(var i=0;o>i;i++)t[i]||(t[i]=[]),t[i][r]=e[r][i];return t}function a(e,t,n,o){var r=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(o&&s&&(r+=1,a=i[r]),r+=1;s>r;)a=t(a,i[r],r,i),r+=1;return a}function s(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));for(var r=o.length,i=[],a=-1;r>n;){var s=o[n];t(s,n,o)&&(a+=1,i[a]=s),n+=1}return i}function l(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));for(var r=o.length,i=[],a=-1;r>n;){var s=o[n];a+=1,i[a]=t(s,n,o),n+=1}return i}function u(e,t){var n=0,o=e;Array.isArray(e)||(o=Array.from(e));for(var r=o.length;r>n&&!1!==t(o[n],n,o);)n+=1;return e}function c(e){return a(e,function(e,t){return e+t},0)}function h(e){return a(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return a(e,function(e,t){return t>e?e:t},Array.isArray(e)?e[0]:void 0)}function d(e){return e.length?c(e)/e.length:0}function p(e){return a(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function g(e){var t=[];return u(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}t.__esModule=!0,t.to2dArray=o,t.extendArray=r,t.pivot=i,t.arrayReduce=a,t.arrayFilter=s,t.arrayMap=l,t.arrayEach=u,t.arraySum=c,t.arrayMax=h,t.arrayMin=f,t.arrayAvg=d,t.arrayFlatten=p,t.arrayUnique=g},function(e,t,n){var o=n(15),r=n(37),i=n(29),a=n(28),s=n(30),l=function(e,t,n){var u,c,h,f,d=e&l.F,p=e&l.G,g=e&l.S,v=e&l.P,m=e&l.B,y=p?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,w=p?r:r[t]||(r[t]={}),C=w.prototype||(w.prototype={});p&&(n=t);for(u in n)c=!d&&y&&void 0!==y[u],h=(c?y:n)[u],f=m&&c?s(h,o):v&&"function"==typeof h?s(Function.call,h):h,y&&a(y,u,h,e&l.U),w[u]!=h&&i(w,u,f),v&&C[u]!=h&&(C[u]=h)};o.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Viewport=t.TableRenderer=t.Table=t.Settings=t.Selection=t.Scroll=t.Overlays=t.Event=t.Core=t.default=t.Border=t.TopLeftCornerOverlay=t.TopOverlay=t.LeftOverlay=t.DebugOverlay=t.RowFilter=t.ColumnFilter=t.CellRange=t.CellCoords=t.ViewportRowsCalculator=t.ViewportColumnsCalculator=void 0,n(99),n(114),n(115),n(119),n(120),n(122),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(144),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(88),n(159),n(160),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(171),n(172),n(174),n(175),n(176);var r=n(177),i=o(r),a=n(178),s=o(a),l=n(58),u=o(l),c=n(179),h=o(c),f=n(180),d=o(f),p=n(181),g=o(p),v=n(474),m=o(v),y=n(476),w=o(y),C=n(477),b=o(C),_=n(478),S=o(_),E=n(310),O=o(E),T=n(182),k=o(T),R=n(303),M=o(R),D=n(304),A=o(D),N=n(305),P=o(N),H=n(479),L=o(H),x=n(306),I=o(x),j=n(307),F=o(j),W=n(308),B=o(W),Y=n(309),V=o(Y);t.ViewportColumnsCalculator=i.default,t.ViewportRowsCalculator=s.default,t.CellCoords=u.default,t.CellRange=h.default,t.ColumnFilter=d.default,t.RowFilter=g.default,t.DebugOverlay=m.default,t.LeftOverlay=w.default,t.TopOverlay=b.default,t.TopLeftCornerOverlay=S.default,t.Border=O.default,t.default=k.default,t.Core=k.default,t.Event=M.default,t.Overlays=A.default,t.Scroll=P.default,t.Selection=L.default,t.Settings=I.default,t.Table=F.default,t.TableRenderer=B.default,t.Viewport=V.default},function(e,t,n){"use strict";function o(e){var t=void 0===e?"undefined":s(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function r(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&!1!==n(o););}function i(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&!1!==n(o););}function a(e,t){return t=parseInt((""+t).replace("%",""),10),t=parseInt(e*t/100,10)}t.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isNumeric=o,t.rangeEach=r,t.rangeEachReverse=i,t.valueAccordingPercent=a},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var n=void 0,o=void 0,r=void 0,i=void 0,a=void 0;t.isTargetWebComponent=!1,t.realTarget=t.target;var h=t.stopImmediatePropagation;if(t.stopImmediatePropagation=function(){h.apply(this),(0,c.stopImmediatePropagation)(this)},!f.isHotTableEnv)return t;for(t=(0,s.polymerWrap)(t),a=t.path?t.path.length:0;a;){if(a-=1,"HOT-TABLE"===t.path[a].nodeName)n=!0;else if(n&&t.path[a].shadowRoot){i=t.path[a];break}0!==a||i||(i=t.path[a])}return i||(i=t.target),t.isTargetWebComponent=!0,(0,u.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:((0,l.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&((0,l.hasOwnProperty)(e,"hot")?o=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?o=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(o=e.wtTable.TABLE.parentNode.parentNode),r=(0,s.closest)(t.target,["HOT-TABLE"],o),t.realTarget=r?o.querySelector("HOT-TABLE")||t.target:t.target),Object.defineProperty(t,"target",{get:function(){return(0,s.polymerWrap)(i)},enumerable:!0,configurable:!0}),t}function i(){return h}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.getListenersCounter=i;var s=n(0),l=n(1),u=n(40),c=n(13),h=0,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return a(e,[{key:"addEventListener",value:function(e,t,n){function o(e){n.call(this,r(a,e))}var i=this,a=this.context;return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:o}),window.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o),h+=1,function(){i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var o=this.context.eventListeners.length,r=void 0;o;)if(o-=1,r=this.context.eventListeners[o],r.event===t&&r.element===e){if(n&&n!==r.callback)continue;this.context.eventListeners.splice(o,1),r.element.removeEventListener?r.element.removeEventListener(r.event,r.callbackProxy,!1):r.element.detachEvent("on"+r.event,r.callbackProxy),h-=1}}},{key:"clearEvents",value:function(){if(this.context)for(var e=this.context.eventListeners.length;e;){e-=1;var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(e,t){var n={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0},o=void 0;document.createEvent?(o=document.createEvent("MouseEvents"),o.initMouseEvent(t,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget||document.body.parentNode)):o=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on"+t,o)}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",r=(t.CONTEXTMENU_ITEMS_ROW_ABOVE=o+".insertRowAbove",t.CONTEXTMENU_ITEMS_ROW_BELOW=o+".insertRowBelow",t.CONTEXTMENU_ITEMS_INSERT_LEFT=o+".insertColumnOnTheLeft",t.CONTEXTMENU_ITEMS_INSERT_RIGHT=o+".insertColumnOnTheRight",t.CONTEXTMENU_ITEMS_REMOVE_ROW=o+".removeRow",t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=o+".removeColumn",t.CONTEXTMENU_ITEMS_UNDO=o+".undo",t.CONTEXTMENU_ITEMS_REDO=o+".redo",t.CONTEXTMENU_ITEMS_READ_ONLY=o+".readOnly",t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=o+".clearColumn",t.CONTEXTMENU_ITEMS_COPY=o+".copy",t.CONTEXTMENU_ITEMS_CUT=o+".cut",t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=o+".freezeColumn",t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=o+".unfreezeColumn",t.CONTEXTMENU_ITEMS_MERGE_CELLS=o+".mergeCells",t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=o+".unmergeCells",t.CONTEXTMENU_ITEMS_ADD_COMMENT=o+".addComment",t.CONTEXTMENU_ITEMS_EDIT_COMMENT=o+".editComment",t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=o+".removeComment",t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=o+".readOnlyComment",t.CONTEXTMENU_ITEMS_ALIGNMENT=o+".align",t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=o+".align.left",t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=o+".align.center",t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=o+".align.right",t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=o+".align.justify",t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=o+".align.top",t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=o+".align.middle",t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=o+".align.bottom",t.CONTEXTMENU_ITEMS_BORDERS=o+".borders",t.CONTEXTMENU_ITEMS_BORDERS_TOP=o+".borders.top",t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=o+".borders.right",t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=o+".borders.bottom",t.CONTEXTMENU_ITEMS_BORDERS_LEFT=o+".borders.left",t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=o+".borders.remove",t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=o+".nestedHeaders.insertChildRow",t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=o+".nestedHeaders.detachFromParent",t.CONTEXTMENU_ITEMS_HIDE_COLUMN=o+".hideColumn",t.CONTEXTMENU_ITEMS_SHOW_COLUMN=o+".showColumn",t.CONTEXTMENU_ITEMS_HIDE_ROW=o+".hideRow",t.CONTEXTMENU_ITEMS_SHOW_ROW=o+".showRow",t.FILTERS_NAMESPACE="Filters:"),i=t.FILTERS_CONDITIONS_NAMESPACE=r+"conditions";t.FILTERS_CONDITIONS_NONE=i+".none",t.FILTERS_CONDITIONS_EMPTY=i+".isEmpty",t.FILTERS_CONDITIONS_NOT_EMPTY=i+".isNotEmpty",t.FILTERS_CONDITIONS_EQUAL=i+".isEqualTo",t.FILTERS_CONDITIONS_NOT_EQUAL=i+".isNotEqualTo",t.FILTERS_CONDITIONS_BEGINS_WITH=i+".beginsWith",t.FILTERS_CONDITIONS_ENDS_WITH=i+".endsWith",t.FILTERS_CONDITIONS_CONTAINS=i+".contains",t.FILTERS_CONDITIONS_NOT_CONTAIN=i+".doesNotContain",t.FILTERS_CONDITIONS_BY_VALUE=i+".byValue",t.FILTERS_CONDITIONS_GREATER_THAN=i+".greaterThan",t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=i+".greaterThanOrEqualTo",t.FILTERS_CONDITIONS_LESS_THAN=i+".lessThan",t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=i+".lessThanOrEqualTo",t.FILTERS_CONDITIONS_BETWEEN=i+".isBetween",t.FILTERS_CONDITIONS_NOT_BETWEEN=i+".isNotBetween",t.FILTERS_CONDITIONS_AFTER=i+".after",t.FILTERS_CONDITIONS_BEFORE=i+".before",t.FILTERS_CONDITIONS_TODAY=i+".today",t.FILTERS_CONDITIONS_TOMORROW=i+".tomorrow",t.FILTERS_CONDITIONS_YESTERDAY=i+".yesterday",t.FILTERS_DIVS_FILTER_BY_CONDITION=r+"labels.filterByCondition",t.FILTERS_DIVS_FILTER_BY_VALUE=r+"labels.filterByValue",t.FILTERS_LABELS_CONJUNCTION=r+"labels.conjunction",t.FILTERS_LABELS_DISJUNCTION=r+"labels.disjunction",t.FILTERS_VALUES_BLANK_CELLS=r+"values.blankCells",t.FILTERS_BUTTONS_SELECT_ALL=r+"buttons.selectAll",t.FILTERS_BUTTONS_CLEAR=r+"buttons.clear",t.FILTERS_BUTTONS_OK=r+"buttons.ok",t.FILTERS_BUTTONS_CANCEL=r+"buttons.cancel",t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=r+"buttons.placeholder.search",t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=r+"buttons.placeholder.value",t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=r+"buttons.placeholder.secondValue"},function(e,t,n){"use strict";function o(e,t){var n=(0,c.toUpperCaseFirst)(e);l.default.getSingleton().add("construct",function(){h.has(this)||h.set(this,{});var e=h.get(this);e[n]||(e[n]=new t(this))}),l.default.getSingleton().add("afterDestroy",function(){if(h.has(this)){var e=h.get(this);(0,u.objectEach)(e,function(e){return e.destroy()}),h.delete(this)}})}function r(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,c.toUpperCaseFirst)(t);if(h.has(e)&&h.get(e)[n])return h.get(e)[n]}function i(e){return h.has(e)?Object.keys(h.get(e)):[]}function a(e,t){var n=null;return h.has(e)&&(0,u.objectEach)(h.get(e),function(e,o){e===t&&(n=o)}),n}t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var s=n(16),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=n(33),h=new WeakMap;t.registerPlugin=o,t.getPlugin=r,t.getRegistredPluginNames=i,t.getPluginName=a},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function o(e){var t=void 0;switch(void 0===e?"undefined":c(e)){case"string":case"number":t=""+e;break;case"object":t=null===e?"":""+e;break;case"undefined":t="";break;default:t=""+e}return t}function r(e){return void 0!==e}function i(e){return void 0===e}function a(e){return null===e||""===e||i(e)}function s(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){e=C(e||"");var n="",o=!0,r=u(e),i=_(),s=a(e)||"trial"===e;if(s||r)if(r){var l=Math.floor((0,d.default)("27/09/2018","DD/MM/YYYY").toDate().getTime()/864e5),c=b(e);(c>45e3||c!==parseInt(c,10))&&(n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly."),n||(l>c+1&&(n=(0,p.toSingleLine)(h)),o=l>c+15)}else n="Evaluation version of Handsontable Pro. Not licensed for use in a production environment.";else n="The license key provided to Handsontable Pro is invalid. Make sure you pass it correctly.";if(i&&(n=!1,o=!1),n&&!S&&(console[s?"info":"warn"](n),S=!0),o&&t.parentNode){var f=document.createElement("div");f.id="hot-display-license-info",f.appendChild(document.createTextNode("Evaluation version of Handsontable Pro.")),f.appendChild(document.createElement("br")),f.appendChild(document.createTextNode("Not licensed for production use.")),t.parentNode.insertBefore(f,t.nextSibling)}}function u(e){var t=[][g],n=t;if(e[g]!==w("Z"))return!1;for(var o="",r="B<H4P+".split(""),i=w(r.shift());i;i=w(r.shift()||"A"))--i<""[g]?n|=(m(""+m(v(o)+(v(y(e,Math.abs(i),2))+[]).padStart(2,"0")))%97||2)>>1:o=y(e,i,i?1===r[g]?9:8:6);return n===t}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n          Your license key of Handsontable Pro has expired.‌‌‌‌ \n          Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n          "],["\n          Your license key of Handsontable Pro has expired.‌‌‌‌ \n          Renew your maintenance plan at https://handsontable.com or downgrade to the previous version of the software.\n          "]);t.stringify=o,t.isDefined=r,t.isUndefined=i,t.isEmpty=a,t.isRegExp=s,t._injectProductInfo=l;var f=n(47),d=function(e){return e&&e.__esModule?e:{default:e}}(f),p=n(42),g="length",v=function(e){return parseInt(e,16)},m=function(e){return parseInt(e,10)},y=function(e,t,n){return e.substr(t,n)},w=function(e){return e.codePointAt(0)-65},C=function(e){return(""+e).replace(/\-/g,"")},b=function(e){return v(y(C(e),v("12"),w("F")))/(v(y(C(e),w("B"),~~![][g]))||9)},_=function(){return"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)},S=!1},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1),a=n(2),s=n(440),l=n(8),u=new WeakMap,c=null;t.default=function(){function e(t){var n=this;o(this,e),(0,i.defineGetter)(this,"hot",t,{writable:!1}),(0,i.defineGetter)(this,"t",(0,s.getTranslator)(t),{writable:!1}),u.set(this,{hooks:{}}),c=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return n.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(e){return n.onUpdateSettings(e)}),this.hot.addHook("beforeInit",function(){return n.init()})}return r(e,[{key:"init",value:function(){this.pluginName=(0,l.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),c||(c=(0,l.getRegistredPluginNames)(this.hot)),0>c.indexOf(this.pluginName)||c.splice(c.indexOf(this.pluginName),1),c.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){u.get(this).hooks[e]=u.get(this).hooks[e]||[];var n=u.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),u.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,a.arrayEach)(u.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=u.get(this).hooks;(0,i.objectEach)(t,function(t,n){return e.removeHooks(n)}),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,a.arrayEach)(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,i.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}()},function(e,t,n){var o=n(79)("wks"),r=n(52),i=n(15).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";function o(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function r(e){return!1===e.isImmediatePropagationEnabled}function i(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function a(e){return e.pageX?e.pageX:e.clientX+(0,c.getWindowScrollLeft)()}function s(e){return e.pageY?e.pageY:e.clientY+(0,c.getWindowScrollTop)()}function l(e){return 2===e.button}function u(e){return 0===e.button}t.__esModule=!0,t.stopImmediatePropagation=o,t.isImmediatePropagationStopped=r,t.stopPropagation=i,t.pageX=a,t.pageY=s,t.isRightClick=l,t.isLeftClick=u;var c=n(0)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if("function"==typeof e)return e;if(!E(e))throw Error('No registered renderer found under "'+e+'" name');return S(e)}t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var i=n(38),a=o(i),s=n(491),l=o(s),u=n(492),c=o(u),h=n(493),f=o(h),d=n(494),p=o(d),g=n(495),v=o(g),m=n(496),y=o(m),w=n(497),C=o(w),b=(0,a.default)("renderers"),_=b.register,S=b.getItem,E=b.hasItem,O=b.getNames,T=b.getValues;_("base",l.default),_("autocomplete",c.default),_("checkbox",f.default),_("html",p.default),_("numeric",v.default),_("password",y.default),_("text",C.default),t.registerRenderer=_,t.getRenderer=r,t.hasRenderer=E,t.getRegisteredRendererNames=O,t.getRegisteredRenderers=T},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(){return c}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(2),s=n(1),l=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","modifyGetCellCoords","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","skipLengthCache","afterTrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten"],u=function(){function e(){o(this,e),this.globalBucket=this.createEmptyBucket()}return i(e,null,[{key:"getSingleton",value:function(){return r()}}]),i(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,a.arrayEach)(l,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,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,a.arrayEach)(t,function(t){return n.add(e,t,o)});else{var r=this.getBucket(o);if(void 0===r[e]&&(this.register(e),r[e]=[]),t.skip=!1,-1===r[e].indexOf(t)){var i=!1;t.initialHook&&(0,a.arrayEach)(r[e],function(n,o){if(n.initialHook)return r[e][o]=t,i=!0,!1}),i||r[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,a.arrayEach)(t,function(t){return n.once(e,t,o)}):(t.runOnce=!0,this.add(e,t,o))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return void 0!==o[e]&&o[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,o,r,i,a,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;u>c;)if(l[c]&&!l[c].skip){var h=l[c].call(e,n,o,r,i,a,s);void 0!==h&&(n=h),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var f=this.getBucket(e)[t],d=f?f.length:0,p=0;if(d)for(;d>p;)if(f[p]&&!f[p].skip){var g=f[p].call(e,n,o,r,i,a,s);void 0!==g&&(n=g),f[p]&&f[p].runOnce&&this.remove(t,f[p],e),p+=1}else p+=1;return n}},{key:"destroy",value:function(){(0,s.objectEach)(this.getBucket(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||l.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&l.splice(l.indexOf(e),1)}},{key:"isRegistered",value:function(e){return l.indexOf(e)>=0}},{key:"getRegistered",value:function(){return l}}]),e}(),c=new u;t.default=u},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},h.default.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function i(e,t){var n=void 0;if("function"==typeof e)N.get(e)||s(null,e),n=N.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=L(e)}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function a(e){if(!x(e))throw Error('No registered editor found under "'+e+'" name');return L(e).getConstructor()}function s(e,t){var n=new r(t);"string"==typeof e&&H(e,n),N.set(t,n)}t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=r,t._getEditorInstance=i;var l=n(38),u=o(l),c=n(16),h=o(c),f=n(57),d=o(f),p=n(311),g=o(p),v=n(481),m=o(v),y=n(482),w=o(y),C=n(487),b=o(C),_=n(312),S=o(_),E=n(488),O=o(E),T=n(489),k=o(T),R=n(490),M=o(R),D=n(59),A=o(D),N=new WeakMap,P=(0,u.default)("editors"),H=P.register,L=P.getItem,x=P.hasItem,I=P.getNames,j=P.getValues;s("base",d.default),s("autocomplete",g.default),s("checkbox",m.default),s("date",w.default),s("dropdown",b.default),s("handsontable",S.default),s("numeric",O.default),s("password",k.default),s("select",M.default),s("text",A.default),t.registerEditor=s,t.getEditor=a,t.getEditorInstance=i,t.hasEditor=x,t.getRegisteredEditorNames=I,t.getRegisteredEditors=j},function(e,t,n){var o=n(9);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function o(e){return(0,b.arrayMap)(e,function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}})}function r(e){return(0,_.hasClass)(e,"htSeparator")}function i(e){return(0,_.hasClass)(e,"htSubmenu")}function a(e){return(0,_.hasClass)(e,"htDisabled")}function s(e){return(0,_.hasClass)(e,"htSelectionDisabled")}function l(e){var t=e.getSelected();return t?0>t[0]?null:t:null}function u(e,t){return-1!==e.indexOf(t)?e:e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace("  ","")+" "+t}function c(e,t){return-1!==e.indexOf(t)?e:e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace("  ","")+" "+t}function h(e,t){var n={};return(0,b.arrayEach)(e,function(e){for(var o=e.from,r=e.to,i=o.row;r.row>=i;i++)for(var a=o.col;r.col>=a;a++)n[i]||(n[i]=[]),n[i][a]=t(i,a)}),n}function f(e,t,n,o,r){(0,b.arrayEach)(e,function(e){var i=e.from,a=e.to;if(i.row===a.row&&i.col===a.col)d(i.row,i.col,t,n,o,r);else for(var s=i.row;a.row>=s;s++)for(var l=i.col;a.col>=l;l++)d(s,l,t,n,o,r)})}function d(e,t,n,o,r,i){var a=r(e,t),s=o;a.className&&(s="vertical"===n?u(a.className,o):c(a.className,o)),i(e,t,"className",s)}function p(e,t){var n=!1;return Array.isArray(e)&&(0,b.arrayEach)(e,function(e){return e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n}),n}function g(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}function v(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function m(e,t){for(var n=e.slice(0);n.length>0&&n[0].name===t;)n.shift();return n}function y(e,t){var n=e.slice(0);return n.reverse(),n=m(n,t),n.reverse(),n}function w(e){var t=[];return(0,b.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.KEY,n=e.slice(0);return n=m(n,t),n=y(n,t),n=w(n)}t.__esModule=!0,t.normalizeSelection=o,t.isSeparator=r,t.hasSubMenu=i,t.isDisabled=a,t.isSelectionDisabled=s,t.getValidSelection=l,t.prepareVerticalAlignClass=u,t.prepareHorizontalAlignClass=c,t.getAlignmentClasses=h,t.align=f,t.checkSelectionConsistency=p,t.markLabelAsSelected=g,t.isItemHidden=v,t.filterSeparators=C;var b=n(2),_=n(0),S=n(96)},function(e,t,n){var o=n(18),r=n(101),i=n(75),a=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function o(e){return 32===e||e>=48&&57>=e||e>=96&&111>=e||e>=186&&192>=e||e>=219&&222>=e||e>=226||e>=65&&90>=e}function r(e){return-1!==[u.ARROW_DOWN,u.ARROW_UP,u.ARROW_LEFT,u.ARROW_RIGHT,u.HOME,u.END,u.DELETE,u.BACKSPACE,u.F1,u.F2,u.F3,u.F4,u.F5,u.F6,u.F7,u.F8,u.F9,u.F10,u.F11,u.F12,u.TAB,u.PAGE_DOWN,u.PAGE_UP,u.ENTER,u.ESCAPE,u.SHIFT,u.CAPS_LOCK,u.ALT].indexOf(e)}function i(e){var t=[];return window.navigator.platform.includes("Mac")?t.push(u.COMMAND_LEFT,u.COMMAND_RIGHT,u.COMMAND_FIREFOX):t.push(u.CONTROL),t.includes(e)}function a(e){return[u.CONTROL,u.COMMAND_LEFT,u.COMMAND_RIGHT,u.COMMAND_FIREFOX].includes(e)}function s(e,t){var n=t.split("|"),o=!1;return(0,l.arrayEach)(n,function(t){if(e===u[t])return o=!0,!1}),o}t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=o,t.isMetaKey=r,t.isCtrlKey=i,t.isCtrlMetaKey=a,t.isKey=s;var l=n(2),u=t.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL:17,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},function(e,t,n){e.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(77),r=n(36);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(60),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(3),r=n(37),i=n(23);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(15),r=n(29),i=n(27),a=n(52)("src"),s=Function.toString,l=(""+s).split("toString");n(37).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||r(n,a,e[t]?""+e[t]:l.join(t+""))),e===o?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var o=n(20),r=n(53);e.exports=n(22)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(63);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(36);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(52)("meta"),r=n(9),i=n(27),a=n(20).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(23)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[o].i},f=function(e,t){if(!i(e,o)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[o].w},d=function(e){return u&&p.NEED&&l(e)&&!i(e,o)&&c(e),e},p=e.exports={KEY:o,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},function(e,t,n){"use strict";function o(e){return e[0].toUpperCase()+e.substr(1)}function r(){for(var e=[],t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];for(var r=n.length;r;){r-=1;var i=(0,u.stringify)(n[r]).toLowerCase();-1===e.indexOf(i)&&e.push(i)}return 1===e.length}function i(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function a(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(""+e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})}function l(e){return(""+e).replace(c,"")}t.__esModule=!0,t.toUpperCaseFirst=o,t.equalsIgnoreCase=r,t.randomString=i,t.isPercentValue=a,t.substitute=s,t.stripTags=l;var u=n(10),c=/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if("function"==typeof e)return e;if(!y(e))throw Error('No registered validator found under "'+e+'" name');return m(e)}t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.getValidator=t.registerValidator=void 0;var i=n(38),a=o(i),s=n(498),l=o(s),u=n(499),c=o(u),h=n(500),f=o(h),d=n(501),p=o(d),g=(0,a.default)("validators"),v=g.register,m=g.getItem,y=g.hasItem,w=g.getNames,C=g.getValues;v("autocomplete",l.default),v("date",c.default),v("numeric",f.default),v("time",p.default),t.registerValidator=v,t.getValidator=r,t.hasValidator=y,t.getRegisteredValidatorNames=w,t.getRegisteredValidators=C},function(e,t,n){var o=n(102),r=n(80);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(){function e(e,t){l.set(e,t)}function t(e){return l.get(e)}function n(e){return l.has(e)}function r(){return[].concat(o(l.keys()))}function a(){return[].concat(o(l.values()))}var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";i.has(s)||i.set(s,new Map);var l=i.get(s);return{register:e,getItem:t,hasItem:n,getNames:r,getValues:a}}t.__esModule=!0,t.default=r;var i=t.collection=new Map},function(e,t,n){"use strict";function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,o=e.vendor,r=void 0===o?navigator.vendor:o;(0,f.objectEach)(p,function(e){return void(0,e.test)(n,r)})}function r(){return p.chrome.value}function i(){return p.edge.value}function a(){return p.ie.value}function s(){return p.ie8.value}function l(){return p.ie9.value}function u(){return p.ie.value||p.edge.value}function c(){return p.mobile.value}function h(){return p.safari.value}t.__esModule=!0,t.setBrowserMeta=o,t.isChrome=r,t.isEdge=i,t.isIE=a,t.isIE8=s,t.isIE9=l,t.isMSBrowser=u,t.isMobileBrowser=c,t.isSafari=h;var f=n(1),d=function(e){var t={value:!1};return t.test=function(n,o){t.value=e(n,o)},t},p={chrome:d(function(e,t){return/Chrome/.test(e)&&/Google/.test(t)}),edge:d(function(e){return/Edge/.test(e)}),ie:d(function(e){return/Trident/.test(e)}),ie8:d(function(){return!document.createTextNode("test").textContent}),ie9:d(function(){return!!document.documentMode}),mobile:d(function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}),safari:d(function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)})};o()},function(e,t,n){"use strict";function o(e){return d.call(window,e)}function r(e){p.call(window,e)}function i(){return"ontouchstart"in window}function a(){var e=document.createElement("div");return!(!e.createShadowRoot||!(""+e.createShadowRoot).match(/\[native code\]/))}function s(){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),v=2*e.lastChild.offsetHeight>e.offsetHeight,document.body.removeChild(e)}function l(){return void 0===v&&s(),v}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m||(m="object"===("undefined"==typeof Intl?"undefined":c(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(""+e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.requestAnimationFrame=o,t.cancelAnimationFrame=r,t.isTouchSupported=i,t.isWebComponentSupportedNatively=a,t.hasCaptionProblem=l,t.getComparisonFunction=u;for(var h=0,f=["ms","moz","webkit","o"],d=window.requestAnimationFrame,p=window.cancelAnimationFrame,g=0;4>g&&!d;++g)d=window[f[g]+"RequestAnimationFrame"],p=window[f[g]+"CancelAnimationFrame"]||window[f[g]+"CancelRequestAnimationFrame"];d||(d=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),o=window.setTimeout(function(){e(t+n)},n);return h=t+n,o}),p||(p=function(e){clearTimeout(e)});var v=void 0,m=void 0},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),s=n(1),l=n(2),u=n(6),c=o(u),h=n(182),f=o(h),d={};t.default=function(){function e(t){r(this,e),(0,s.defineGetter)(this,"wot",t,{writable:!1}),this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=this.wot.wtTable.TABLE,this.hider=this.wot.wtTable.hider,this.spreader=this.wot.wtTable.spreader,this.holder=this.wot.wtTable.holder,this.wtRootElement=this.wot.wtTable.wtRootElement,this.trimmingContainer=(0,a.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return i(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw Error("Unsupported overlay ("+t+").");d[t]=n}},{key:"createOverlay",value:function(e,t){return new d[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==d[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!d[t])&&e instanceof d[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),i(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,a.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){this.mainTableScrollableElement=(0,a.getScrollableElement)(this.wot.wtTable.TABLE)}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw Error('Clone type "'+t+'" is not supported.');var n=document.createElement("DIV"),o=document.createElement("TABLE");n.className="ht_clone_"+t+" handsontable",n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.overflow="hidden",o.className=this.wot.wtTable.TABLE.className,n.appendChild(o),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(n);var r=this.wot.getSetting("preventOverflow");return this.mainTableScrollableElement=!0===r||"horizontal"===r&&this.type===e.CLONE_TOP||"vertical"===r&&this.type===e.CLONE_LEFT?window:(0,a.getScrollableElement)(this.wot.wtTable.TABLE),new f.default({cloneSource:this.wot,cloneOverlay:this,table:o})}},{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;(0,l.arrayEach)([e.style,this.clone.wtTable.hider.style,e.parentNode.style],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),e}()},function(e,t,n){"use strict";function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,r.arrayReduce)(e,function(e,t,o){return e+t.replace(/(?:\r?\n\s+)/g,"")+(n[o]?n[o]:"")},"").trim()}t.__esModule=!0,t.toSingleLine=o;var r=n(2)},function(e,t,n){"use strict";function o(e){return"function"==typeof e}function r(e){function t(){for(var t=this,a=arguments.length,s=Array(a),l=0;a>l;l++)s[l]=arguments[l];var u=Date.now(),c=!1;r.lastCallThrottled=!0,o||(o=u,c=!0);var h=n-(u-o);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(i&&clearTimeout(i),i=setTimeout(function(){r.lastCallThrottled=!1,e.apply(t,s),o=0,i=void 0},h)),r}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0,r={lastCallThrottled:!0},i=null;return t}function i(e){function t(){s=i}function n(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return s?(s-=1,e.apply(this,n)):a.apply(this,n)}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=r(e,o),s=i;return n.clearHits=t,n}function a(e){function t(){for(var t=this,i=arguments.length,a=Array(i),s=0;i>s;s++)a[s]=arguments[s];return o&&clearTimeout(o),o=setTimeout(function(){r=e.apply(t,a)},n),r}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null,r=void 0;return t}function s(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var o=t[0],r=t.slice(1);return function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return(0,h.arrayReduce)(r,function(e,t){return t(e)},o.apply(this,t))}}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;t>r;r++)o[r]=arguments[r];return e.apply(this,n.concat(o))}}function u(e){function t(o){return function(){for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];var s=o.concat(i);return n>s.length?t(s):e.apply(this,s)}}var n=e.length;return t([])}function c(e){function t(o){return function(){for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];var s=o.concat(i.reverse());return n>s.length?t(s):e.apply(this,s)}}var n=e.length;return t([])}t.__esModule=!0,t.isFunction=o,t.throttle=r,t.throttleAfterHits=i,t.debounce=a,t.pipe=s,t.partial=l,t.curry=u,t.curryRight=c;var h=n(2)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(9);e.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var o=n(12)("unscopables"),r=Array.prototype;void 0==r[o]&&n(29)(r,o,{}),e.exports=function(e){r[o][e]=!0}},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Mo.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,o=[];for(n=0;e.length>n;++n)o.push(t(e[n],n));return o}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,o){return Ot(e,t,n,o,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=d()),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=Do.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}function m(e,t){var n,o,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),Ao.length>0)for(n=0;Ao.length>n;n++)o=Ao[n],r=t[o],a(r)||(e[o]=r);return e}function y(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===No&&(No=!0,t.updateOffset(this),No=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function _(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(o=0;r>o;o++)(n&&e[o]!==t[o]||!n&&b(e[o])!==b(t[o]))&&a++;return a+i}function S(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,n){var o=!0;return h(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){for(var r,i=[],a=0;arguments.length>a;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var s in arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+Error().stack),o=!1}return n.apply(this,arguments)},n)}function O(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Po[e]||(S(n),Po[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){var t,n;for(n in e)t=e[n],T(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function R(e,t){var n,o=h({},e);for(n in t)c(t,n)&&(r(e[n])&&r(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)c(e,n)&&!c(t,n)&&r(e[n])&&(o[n]=h({},o[n]));return o}function M(e){null!=e&&this.set(e)}function D(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return T(o)?o.call(t,n):o}function A(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)})}function N(){return this._invalidDate}function P(e){return this._ordinal.replace("%d",e)}function H(e,t,n,o){var r=this._relativeTime[n];return T(r)?r(e,t,n,o):r.replace(/%d/i,e)}function L(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function x(e,t){var n=e.toLowerCase();Fo[n]=Fo[n+"s"]=Fo[t]=e}function I(e){return"string"==typeof e?Fo[e]||Fo[e.toLowerCase()]:void 0}function j(e){var t,n,o={};for(n in e)c(e,n)&&(t=I(n))&&(o[t]=e[n]);return o}function F(e,t){Wo[e]=t}function W(e){var t=[];for(var n in e)t.push({unit:n,priority:Wo[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(0>e?"-":n?"+":"")+(""+Math.pow(10,Math.max(0,r))).substr(1)+o}function Y(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Uo[e]=r),t&&(Uo[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),n&&(Uo[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,o=e.match(Bo);for(t=0,n=o.length;n>t;t++)o[t]=Uo[o[t]]?Uo[o[t]]:V(o[t]);return function(t){var r,i="";for(r=0;n>r;r++)i+=T(o[r])?o[r].call(t,e):o[r];return i}}function z(e,t){return e.isValid()?(t=G(t,e.localeData()),(Vo[t]=Vo[t]||U(t))(e)):e.localeData().invalidDate()}function G(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(Yo.lastIndex=0;o>=0&&Yo.test(e);)e=e.replace(Yo,n),Yo.lastIndex=0,o-=1;return e}function K(e,t,n){lr[e]=T(t)?t:function(e,o){return e&&n?n:t}}function X(e,t){return c(lr,e)?lr[e](t._strict,t._locale):RegExp(q(e))}function q(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),s(t)&&(o=function(e,n){n[t]=b(e)}),n=0;e.length>n;n++)ur[e[n]]=o}function J(e,t){$(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function Q(e,t,n){null!=t&&c(ur,e)&&ur[e](t,n._a,n,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(){return te(this.year())}function oe(e,n){return function(o){return null!=o?(ie(this,e,o),t.updateOffset(this,n),this):re(this,e)}}function re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ae(e){return e=I(e),T(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=j(e);for(var n=W(e),o=0;n.length>o;o++)this[n[o].unit](e[n[o].unit])}else if(e=I(e),T(this[e]))return this[e](t);return this}function le(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=le(t,12);return e+=(t-n)/12,1===n?te(e)?29:28:31-n%7%2}function ce(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||br).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function he(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[br.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;12>o;++o)i=f([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(r=wr.call(this._shortMonthsParse,a),-1!==r?r:null):(r=wr.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===t?-1!==(r=wr.call(this._shortMonthsParse,a))?r:(r=wr.call(this._longMonthsParse,a),-1!==r?r:null):-1!==(r=wr.call(this._longMonthsParse,a))?r:(r=wr.call(this._shortMonthsParse,a),-1!==r?r:null)}function de(e,t,n){var o,r,i;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(r=f([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ge(e){return null!=e?(pe(this,e),t.updateOffset(this,!0),this):re(this,"Month")}function ve(){return ue(this.year(),this.month())}function me(e){return this._monthsParseExact?(c(this,"_monthsRegex")||we.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Er),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ye(e){return this._monthsParseExact?(c(this,"_monthsRegex")||we.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Or),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function we(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;12>t;t++)n=f([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;12>t;t++)o[t]=Z(o[t]),r[t]=Z(r[t]);for(t=0;24>t;t++)i[t]=Z(i[t]);this._monthsRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function Ce(e,t,n,o,r,i,a){var s=new Date(e,t,n,o,r,i,a);return 100>e&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function _e(e,t,n){var o=7+t-n;return-(7+be(e,0,o).getUTCDay()-t)%7+o-1}function Se(e,t,n,o,r){var i,a,s=(7+n-o)%7,l=_e(e,o,r),u=1+7*(t-1)+s+l;return u>0?u>ee(e)?(i=e+1,a=u-ee(e)):(i=e,a=u):(i=e-1,a=ee(i)+u),{year:i,dayOfYear:a}}function Ee(e,t,n){var o,r,i=_e(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return 1>a?(r=e.year()-1,o=a+Oe(r,t,n)):a>Oe(e.year(),t,n)?(o=a-Oe(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Oe(e,t,n){var o=_e(e,t,n),r=_e(e+1,t,n);return(ee(e)-o+r)/7}function Te(e){return Ee(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function Re(){return this._week.doy}function Me(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function De(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ae(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pe(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone}function He(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Le(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function xe(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;7>o;++o)i=f([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(r=wr.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===t?(r=wr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===t?-1!==(r=wr.call(this._weekdaysParse,a))?r:-1!==(r=wr.call(this._shortWeekdaysParse,a))?r:(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):"ddd"===t?-1!==(r=wr.call(this._shortWeekdaysParse,a))?r:-1!==(r=wr.call(this._weekdaysParse,a))?r:(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=wr.call(this._minWeekdaysParse,a))?r:-1!==(r=wr.call(this._weekdaysParse,a))?r:(r=wr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Ie(e,t,n){var o,r,i;if(this._weekdaysParseExact)return xe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(r=f([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ae(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function We(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Dr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ye(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ar),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],l=[],u=[];for(t=0;7>t;t++)n=f([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),l.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;7>t;t++)s[t]=Z(s[t]),l[t]=Z(l[t]),u[t]=Z(u[t]);this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ze(){return this.hours()%12||12}function Ge(){return this.hours()||24}function Ke(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,o,r,i=0;e.length>i;){for(r=$e(e[i]).split("-"),t=r.length,n=$e(e[i+1]),n=n?n.split("-"):null;t>0;){if(o=Qe(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&_(r,n,!0)>=t-1)break;t--}i++}return null}function Qe(t){var o=null;if(!Ir[t]&&void 0!==e&&e&&e.exports)try{o=Pr._abbr;n(475)("./"+t),et(o)}catch(e){}return Ir[t]}function et(e,t){var n;return e&&(n=a(t)?ot(e):tt(e,t))&&(Pr=n),Pr._abbr}function tt(e,t){if(null!==t){var n=xr;if(t.abbr=e,null!=Ir[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ir[e]._config;else if(null!=t.parentLocale){if(null==Ir[t.parentLocale])return jr[t.parentLocale]||(jr[t.parentLocale]=[]),jr[t.parentLocale].push({name:e,config:t}),null;n=Ir[t.parentLocale]._config}return Ir[e]=new M(R(n,t)),jr[e]&&jr[e].forEach(function(e){tt(e.name,e.config)}),et(e),Ir[e]}return delete Ir[e],null}function nt(e,t){if(null!=t){var n,o,r=xr;o=Qe(e),null!=o&&(r=o._config),t=R(r,t),n=new M(t),n.parentLocale=Ir[e],Ir[e]=n,et(e)}else null!=Ir[e]&&(null!=Ir[e].parentLocale?Ir[e]=Ir[e].parentLocale:null!=Ir[e]&&delete Ir[e]);return Ir[e]}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Pr;if(!o(e)){if(t=Qe(e))return t;e=[e]}return Je(e)}function rt(){return Ho(Ir)}function it(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=0>n[hr]||n[hr]>11?hr:1>n[fr]||n[fr]>ue(n[cr],n[hr])?fr:0>n[dr]||n[dr]>24||24===n[dr]&&(0!==n[pr]||0!==n[gr]||0!==n[vr])?dr:0>n[pr]||n[pr]>59?pr:0>n[gr]||n[gr]>59?gr:0>n[vr]||n[vr]>999?vr:-1,p(e)._overflowDayOfYear&&(cr>t||t>fr)&&(t=fr),p(e)._overflowWeeks&&-1===t&&(t=mr),p(e)._overflowWeekday&&-1===t&&(t=yr),p(e).overflow=t),e}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,o,r,i,a=[];if(!e._d){for(o=st(e),e._w&&null==e._a[fr]&&null==e._a[hr]&&ut(e),null!=e._dayOfYear&&(i=at(e._a[cr],o[cr]),(e._dayOfYear>ee(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=be(i,0,e._dayOfYear),e._a[hr]=n.getUTCMonth(),e._a[fr]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[dr]&&0===e._a[pr]&&0===e._a[gr]&&0===e._a[vr]&&(e._nextDay=!0,e._a[dr]=0),e._d=(e._useUTC?be:Ce).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[dr]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function ut(e){var t,n,o,r,i,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,a=4,n=at(t.GG,e._a[cr],Ee(Tt(),1,4).year),o=at(t.W,1),(1>(r=at(t.E,1))||r>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ee(Tt(),i,a);n=at(t.gg,e._a[cr],u.year),o=at(t.w,u.week),null!=t.d?(0>(r=t.d)||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(0>t.e||t.e>6)&&(l=!0)):r=i}1>o||o>Oe(n,i,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Se(n,o,r,i,a),e._a[cr]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,o,r,i,a,s=e._i,l=Fr.exec(s)||Wr.exec(s);if(l){for(p(e).iso=!0,t=0,n=Yr.length;n>t;t++)if(Yr[t][1].exec(l[1])){r=Yr[t][0],o=!1!==Yr[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Vr.length;n>t;t++)if(Vr[t][1].exec(l[3])){i=(l[2]||" ")+Vr[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Br.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(i||"")+(a||""),yt(e)}else e._isValid=!1}function ht(e,t,n,o,r,i){var a=[ft(e),Sr.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function ft(e){var t=parseInt(e,10);return t>49?t>999?t:1900+t:2e3+t}function dt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function pt(e,t,n){if(e){if(Rr.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gt(e,t,n){if(e)return Gr[e];if(t)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}function vt(e){var t=zr.exec(dt(e._i));if(t){var n=ht(t[4],t[3],t[2],t[5],t[6],t[7]);if(!pt(t[1],n,e))return;e._a=n,e._tzm=gt(t[8],t[9],t[10]),e._d=be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function mt(e){var n=Ur.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));ct(e),!1===e._isValid&&(delete e._isValid,vt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function yt(e){if(e._f===t.ISO_8601)return void ct(e);if(e._f===t.RFC_2822)return void vt(e);e._a=[],p(e).empty=!0;var n,o,r,i,a,s=""+e._i,l=s.length,u=0;for(r=G(e._f,e._locale).match(Bo)||[],n=0;r.length>n;n++)i=r[n],o=(s.match(X(i,e))||[])[0],o&&(a=s.substr(0,s.indexOf(o)),a.length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(o)+o.length),u+=o.length),Uo[i]?(o?p(e).empty=!1:p(e).unusedTokens.push(i),Q(i,o,e)):e._strict&&!o&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),12>=e._a[dr]&&!0===p(e).bigHour&&e._a[dr]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[dr]=wt(e._locale,e._a[dr],e._meridiem),lt(e),it(e)}function wt(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&12>t&&(t+=12),o||12!==t||(t=0),t):t}function Ct(e){var t,n,o,r,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;e._f.length>r;r++)i=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],yt(t),g(t)&&(i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,(null==o||o>i)&&(o=i,n=t));h(e,n||t)}function bt(e){if(!e._d){var t=j(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function _t(e){var t=new y(it(St(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new y(it(t)):(l(t)?e._d=t:o(n)?Ct(e):n?yt(e):Et(e),g(e)||(e._d=null),e))}function Et(e){var n=e._i;a(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?mt(e):o(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),lt(e)):r(n)?bt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Ot(e,t,n,a,s){var l={};return!0!==n&&!1!==n||(a=n,n=void 0),(r(e)&&i(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=a,_t(l)}function Tt(e,t,n,o){return Ot(e,t,n,o,!1)}function kt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;t.length>r;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Rt(){return kt("isBefore",[].slice.call(arguments,0))}function Mt(){return kt("isAfter",[].slice.call(arguments,0))}function Dt(e){for(var t in e)if(-1===wr.call(Zr,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;Zr.length>o;++o)if(e[Zr[o]]){if(n)return!1;parseFloat(e[Zr[o]])!==b(e[Zr[o]])&&(n=!0)}return!0}function At(){return this._isValid}function Nt(){return $t(NaN)}function Pt(e){var t=j(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=Dt(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=ot(),this._bubble()}function Ht(e){return e instanceof Pt}function Lt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function xt(e,t){Y(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function It(e,t){var n=(t||"").match(e);if(null===n)return null;var o=n[n.length-1]||[],r=(o+"").match($r)||["-",0,0],i=60*r[1]+b(r[2]);return 0===i?0:"+"===r[0]?i:-i}function jt(e,n){var o,r;return n._isUTC?(o=n.clone(),r=(w(e)||l(e)?e.valueOf():Tt(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),t.updateOffset(o,!1),o):Tt(e).local()}function Ft(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(e,n,o){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(ir,e)))return this}else 16>Math.abs(e)&&!o&&(e*=60);return!this._isUTC&&n&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!n||this._changeInProgress?nn(this,$t(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ft(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Yt(e){return this.utcOffset(0,e)}function Vt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this}function Ut(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(rr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zt(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Gt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=St(e),e._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Xt(){return!!this.isValid()&&!this._isUTC}function qt(){return!!this.isValid()&&this._isUTC}function Zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $t(e,t){var n,o,r,i=e,a=null;return Ht(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=Jr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:b(a[fr])*n,h:b(a[dr])*n,m:b(a[pr])*n,s:b(a[gr])*n,ms:b(Lt(1e3*a[vr]))*n}):(a=Qr.exec(e))?(n="-"===a[1]?-1:1,i={y:Jt(a[2],n),M:Jt(a[3],n),w:Jt(a[4],n),d:Jt(a[5],n),h:Jt(a[6],n),m:Jt(a[7],n),s:Jt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=en(Tt(i.from),Tt(i.to)),i={},i.ms=r.milliseconds,i.M=r.months),o=new Pt(i),Ht(e)&&c(e,"_locale")&&(o._locale=e._locale),o}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=jt(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,o){var r,i;return null===o||isNaN(+o)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),n="string"==typeof n?+n:n,r=$t(n,o),nn(this,r,e),this}}function nn(e,n,o,r){var i=n._milliseconds,a=Lt(n._days),s=Lt(n._months);e.isValid()&&(r=null==r||r,s&&pe(e,re(e,"Month")+s*o),a&&ie(e,"Date",re(e,"Date")+a*o),i&&e._d.setTime(e._d.valueOf()+i*o),r&&t.updateOffset(e,a||s))}function on(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function rn(e,n){var o=e||Tt(),r=jt(o,this).startOf("day"),i=t.calendarFormat(this,r)||"sameElse";return this.format(n&&(T(n[i])?n[i].call(this,o):n[i])||this.localeData().calendar(i,this,Tt(o)))}function an(){return new y(this)}function sn(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=I(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function ln(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=I(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function cn(e,t){var n,o=w(e)?e:Tt(e);return!(!this.isValid()||!o.isValid())&&(t=I(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function hn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function dn(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=jt(e,this),!o.isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),t=I(t)){case"year":i=pn(this,o)/12;break;case"month":i=pn(this,o);break;case"quarter":i=pn(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:C(i)}function pn(e,t){var n,o,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return 0>t-i?(n=e.clone().add(r-1,"months"),o=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),o=(t-i)/(n-i)),-(r+o)||0}function gn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return 0>n.year()||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");return this.format("["+e+'("]'+(0>this.year()||this.year()>9999?"YYYYYY":"YYYY")+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')}function yn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=z(this,e);return this.localeData().postformat(n)}function wn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Cn(e){return this.from(Tt(),e)}function bn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _n(e){return this.to(Tt(),e)}function Sn(e){var t;return void 0===e?this._locale._abbr:(t=ot(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function On(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Tn(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function kn(){return this._d.valueOf()-6e4*(this._offset||0)}function Rn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function Dn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function An(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function Pn(){return g(this)}function Hn(){return h({},p(this))}function Ln(){return p(this).overflow}function xn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function In(e,t){Y(0,[e,e.length],0,t)}function jn(e){return Yn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fn(e){return Yn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wn(){return Oe(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function Yn(e,t,n,o,r){var i;return null==e?Ee(this,o,r).year:(i=Oe(e,o,r),t>i&&(t=i),Vn.call(this,e,t,n,o,r))}function Vn(e,t,n,o,r){var i=Se(e,t,n,o,r),a=be(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Un(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function zn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Gn(e,t){t[vr]=b(1e3*("0."+e))}function Kn(){return this._isUTC?"UTC":""}function Xn(){return this._isUTC?"Coordinated Universal Time":""}function qn(e){return Tt(1e3*e)}function Zn(){return Tt.apply(null,arguments).parseZone()}function $n(e){return e}function Jn(e,t,n,o){return ot()[n](f().set(o,t),e)}function Qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Jn(e,t,n,"month");var o,r=[];for(o=0;12>o;o++)r[o]=Jn(e,o,n,"month");return r}function eo(e,t,n,o){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var r=ot(),i=e?r._week.dow:0;if(null!=n)return Jn(t,(n+i)%7,o,"day");var a,l=[];for(a=0;7>a;a++)l[a]=Jn(t,(a+i)%7,o,"day");return l}function to(e,t){return Qn(e,t,"months")}function no(e,t){return Qn(e,t,"monthsShort")}function oo(e,t,n){return eo(e,t,n,"weekdays")}function ro(e,t,n){return eo(e,t,n,"weekdaysShort")}function io(e,t,n){return eo(e,t,n,"weekdaysMin")}function ao(){var e=this._data;return this._milliseconds=ci(this._milliseconds),this._days=ci(this._days),this._months=ci(this._months),e.milliseconds=ci(e.milliseconds),e.seconds=ci(e.seconds),e.minutes=ci(e.minutes),e.hours=ci(e.hours),e.months=ci(e.months),e.years=ci(e.years),this}function so(e,t,n,o){var r=$t(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function lo(e,t){return so(this,e,t,1)}function uo(e,t){return so(this,e,t,-1)}function co(e){return 0>e?Math.floor(e):Math.ceil(e)}function ho(){var e,t,n,o,r,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return(0>i||0>a||0>s)&&(i>0||a>0||s>0)&&(i+=864e5*co(po(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=C(i/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,a+=C(n/24),r=C(fo(a)),s+=r,a-=co(po(r)),o=C(s/12),s%=12,l.days=a,l.months=s,l.years=o,this}function fo(e){return 4800*e/146097}function po(e){return 146097*e/4800}function go(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+o/864e5,n=this._months+fo(t),"month"===e?n:n/12;switch(t=this._days+Math.round(po(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw Error("Unknown unit "+e)}}function vo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function mo(e){return function(){return this.as(e)}}function yo(){return $t(this)}function wo(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function Co(e){return function(){return this.isValid()?this._data[e]:NaN}}function bo(){return C(this.days()/7)}function _o(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function So(e,t,n){var o=$t(e).abs(),r=Ti(o.as("s")),i=Ti(o.as("m")),a=Ti(o.as("h")),s=Ti(o.as("d")),l=Ti(o.as("M")),u=Ti(o.as("y")),c=ki.ss>=r&&["s",r]||ki.s>r&&["ss",r]||1>=i&&["m"]||ki.m>i&&["mm",i]||1>=a&&["h"]||ki.h>a&&["hh",a]||1>=s&&["d"]||ki.d>s&&["dd",s]||1>=l&&["M"]||ki.M>l&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,_o.apply(null,c)}function Eo(e){return void 0===e?Ti:"function"==typeof e&&(Ti=e,!0)}function Oo(e,t){return void 0!==ki[e]&&(void 0===t?ki[e]:(ki[e]=t,"s"===e&&(ki.ss=t-1),!0))}function To(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=So(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function ko(e){return(e>0)-(0>e)||+e}function Ro(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o=Ri(this._milliseconds)/1e3,r=Ri(this._days),i=Ri(this._months);e=C(o/60),t=C(e/60),o%=60,e%=60,n=C(i/12),i%=12;var a=n,s=i,l=r,u=t,c=e,h=o?o.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=0>f?"-":"",p=ko(this._months)!==ko(f)?"-":"",g=ko(this._days)!==ko(f)?"-":"",v=ko(this._milliseconds)!==ko(f)?"-":"";return d+"P"+(a?p+a+"Y":"")+(s?p+s+"M":"")+(l?g+l+"D":"")+(u||c||h?"T":"")+(u?v+u+"H":"")+(c?v+c+"M":"")+(h?v+h+"S":"")}var Mo,Do;Do=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;n>o;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var Ao=t.momentProperties=[],No=!1,Po={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ho;Ho=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var Lo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},xo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Io=/\d{1,2}/,jo={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fo={},Wo={},Bo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Yo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vo={},Uo={},zo=/\d/,Go=/\d\d/,Ko=/\d{3}/,Xo=/\d{4}/,qo=/[+-]?\d{6}/,Zo=/\d\d?/,$o=/\d\d\d\d?/,Jo=/\d\d\d\d\d\d?/,Qo=/\d{1,3}/,er=/\d{1,4}/,tr=/[+-]?\d{1,6}/,nr=/\d+/,or=/[+-]?\d+/,rr=/Z|[+-]\d\d:?\d\d/gi,ir=/Z|[+-]\d\d(?::?\d\d)?/gi,ar=/[+-]?\d+(\.\d{1,3})?/,sr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lr={},ur={},cr=0,hr=1,fr=2,dr=3,pr=4,gr=5,vr=6,mr=7,yr=8;Y("Y",0,0,function(){var e=this.year();return e>9999?"+"+e:""+e}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),x("year","y"),F("year",1),K("Y",or),K("YY",Zo,Go),K("YYYY",er,Xo),K("YYYYY",tr,qo),K("YYYYYY",tr,qo),$(["YYYYY","YYYYYY"],cr),$("YYYY",function(e,n){n[cr]=2===e.length?t.parseTwoDigitYear(e):b(e)}),$("YY",function(e,n){n[cr]=t.parseTwoDigitYear(e)}),$("Y",function(e,t){t[cr]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var wr,Cr=oe("FullYear",!0);wr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;this.length>t;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Y("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("month","M"),F("month",8),K("M",Zo),K("MM",Zo,Go),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),$(["M","MM"],function(e,t){t[hr]=b(e)-1}),$(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[hr]=r:p(n).invalidMonth=e});var br=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_r="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Sr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Er=sr,Or=sr;Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),F("week",5),F("isoWeek",5),K("w",Zo),K("ww",Zo,Go),K("W",Zo),K("WW",Zo,Go),J(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=b(e)});var Tr={dow:0,doy:6};Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),K("d",Zo),K("e",Zo),K("E",Zo),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),J(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),J(["d","e","E"],function(e,t,n,o){t[o]=b(e)});var kr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Dr=sr,Ar=sr,Nr=sr;Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,ze),Y("k",["kk",2],0,Ge),Y("hmm",0,0,function(){return""+ze.apply(this)+B(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+ze.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),x("hour","h"),F("hour",13),K("a",Xe),K("A",Xe),K("H",Zo),K("h",Zo),K("k",Zo),K("HH",Zo,Go),K("hh",Zo,Go),K("kk",Zo,Go),K("hmm",$o),K("hmmss",Jo),K("Hmm",$o),K("Hmmss",Jo),$(["H","HH"],dr),$(["k","kk"],function(e,t,n){var o=b(e);t[dr]=24===o?0:o}),$(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),$(["h","hh"],function(e,t,n){t[dr]=b(e),p(n).bigHour=!0}),$("hmm",function(e,t,n){var o=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o)),p(n).bigHour=!0}),$("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o,2)),t[gr]=b(e.substr(r)),p(n).bigHour=!0}),$("Hmm",function(e,t,n){var o=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o))}),$("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o,2)),t[gr]=b(e.substr(r))});var Pr,Hr=/[ap]\.?m?\.?/i,Lr=oe("Hours",!0),xr={calendar:Lo,longDateFormat:xo,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Io,relativeTime:jo,months:_r,monthsShort:Sr,week:Tr,weekdays:kr,weekdaysMin:Mr,weekdaysShort:Rr,meridiemParse:Hr},Ir={},jr={},Fr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Br=/Z|[+-]\d\d(?::?\d\d)?/,Yr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Vr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ur=/^\/?Date\((\-?\d+)/i,zr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Gr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Kr=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:v()}),Xr=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),qr=function(){return Date.now?Date.now():+new Date},Zr=["year","quarter","month","week","day","hour","minute","second","millisecond"];xt("Z",":"),xt("ZZ",""),K("Z",ir),K("ZZ",ir),$(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(ir,e)});var $r=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Jr=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;$t.fn=Pt.prototype,$t.invalid=Nt;var ei=tn(1,"add"),ti=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ni=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),In("gggg","weekYear"),In("ggggg","weekYear"),In("GGGG","isoWeekYear"),In("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),K("G",or),K("g",or),K("GG",Zo,Go),K("gg",Zo,Go),K("GGGG",er,Xo),K("gggg",er,Xo),K("GGGGG",tr,qo),K("ggggg",tr,qo),J(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=b(e)}),J(["gg","GG"],function(e,n,o,r){n[r]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),x("quarter","Q"),F("quarter",7),K("Q",zo),$("Q",function(e,t){t[hr]=3*(b(e)-1)}),Y("D",["DD",2],"Do","date"),x("date","D"),F("date",9),K("D",Zo),K("DD",Zo,Go),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),$(["D","DD"],fr),$("Do",function(e,t){t[fr]=b(e.match(Zo)[0])});var oi=oe("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),F("dayOfYear",4),K("DDD",Qo),K("DDDD",Ko),$(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),Y("m",["mm",2],0,"minute"),x("minute","m"),F("minute",14),K("m",Zo),K("mm",Zo,Go),$(["m","mm"],pr);var ri=oe("Minutes",!1);Y("s",["ss",2],0,"second"),x("second","s"),F("second",15),K("s",Zo),K("ss",Zo,Go),$(["s","ss"],gr);var ii=oe("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x("millisecond","ms"),F("millisecond",16),K("S",Qo,zo),K("SS",Qo,Go),K("SSS",Qo,Ko);var ai;for(ai="SSSS";9>=ai.length;ai+="S")K(ai,nr);for(ai="S";9>=ai.length;ai+="S")$(ai,Gn);var si=oe("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var li=y.prototype;li.add=ei,li.calendar=rn,li.clone=an,li.diff=dn,li.endOf=Tn,li.format=yn,li.from=wn,li.fromNow=Cn,li.to=bn,li.toNow=_n,li.get=ae,li.invalidAt=Ln,li.isAfter=sn,li.isBefore=ln,li.isBetween=un,li.isSame=cn,li.isSameOrAfter=hn,li.isSameOrBefore=fn,li.isValid=Pn,li.lang=ni,li.locale=Sn,li.localeData=En,li.max=Xr,li.min=Kr,li.parsingFlags=Hn,li.set=se,li.startOf=On,li.subtract=ti,li.toArray=Dn,li.toObject=An,li.toDate=Mn,li.toISOString=vn,li.inspect=mn,li.toJSON=Nn,li.toString=gn,li.unix=Rn,li.valueOf=kn,li.creationData=xn,li.year=Cr,li.isLeapYear=ne,li.weekYear=jn,li.isoWeekYear=Fn,li.quarter=li.quarters=Un,li.month=ge,li.daysInMonth=ve,li.week=li.weeks=Me,li.isoWeek=li.isoWeeks=De,li.weeksInYear=Bn,li.isoWeeksInYear=Wn,li.date=oi,li.day=li.days=je,li.weekday=Fe,li.isoWeekday=We,li.dayOfYear=zn,li.hour=li.hours=Lr,li.minute=li.minutes=ri,li.second=li.seconds=ii,li.millisecond=li.milliseconds=si,li.utcOffset=Wt,li.utc=Yt,li.local=Vt,li.parseZone=Ut,li.hasAlignedHourOffset=zt,li.isDST=Gt,li.isLocal=Xt,li.isUtcOffset=qt,li.isUtc=Zt,li.isUTC=Zt,li.zoneAbbr=Kn,li.zoneName=Xn,li.dates=E("dates accessor is deprecated. Use date instead.",oi),li.months=E("months accessor is deprecated. Use month instead",ge),li.years=E("years accessor is deprecated. Use year instead",Cr),li.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),li.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kt);var ui=M.prototype;ui.calendar=D,ui.longDateFormat=A,ui.invalidDate=N,ui.ordinal=P,ui.preparse=$n,ui.postformat=$n,ui.relativeTime=H,ui.pastFuture=L,ui.set=k,ui.months=ce,ui.monthsShort=he,ui.monthsParse=de,ui.monthsRegex=ye,ui.monthsShortRegex=me,ui.week=Te,ui.firstDayOfYear=Re,ui.firstDayOfWeek=ke,ui.weekdays=Pe,ui.weekdaysMin=Le,ui.weekdaysShort=He,ui.weekdaysParse=Ie,ui.weekdaysRegex=Be,ui.weekdaysShortRegex=Ye,ui.weekdaysMinRegex=Ve,ui.isPM=qe,ui.meridiem=Ze,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=E("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=E("moment.langData is deprecated. Use moment.localeData instead.",ot);var ci=Math.abs,hi=mo("ms"),fi=mo("s"),di=mo("m"),pi=mo("h"),gi=mo("d"),vi=mo("w"),mi=mo("M"),yi=mo("y"),wi=Co("milliseconds"),Ci=Co("seconds"),bi=Co("minutes"),_i=Co("hours"),Si=Co("days"),Ei=Co("months"),Oi=Co("years"),Ti=Math.round,ki={ss:44,s:45,m:45,h:22,d:26,M:11},Ri=Math.abs,Mi=Pt.prototype;return Mi.isValid=At,Mi.abs=ao,Mi.add=lo,Mi.subtract=uo,Mi.as=go,Mi.asMilliseconds=hi,Mi.asSeconds=fi,Mi.asMinutes=di,Mi.asHours=pi,Mi.asDays=gi,Mi.asWeeks=vi,Mi.asMonths=mi,Mi.asYears=yi,Mi.valueOf=vo,Mi._bubble=ho,Mi.clone=yo,Mi.get=wo,Mi.milliseconds=wi,Mi.seconds=Ci,Mi.minutes=bi,Mi.hours=_i,Mi.days=Si,Mi.weeks=bo,Mi.months=Ei,Mi.years=Oi,Mi.humanize=To,Mi.toISOString=Ro,Mi.toString=Ro,Mi.toJSON=Ro,Mi.locale=Sn,Mi.localeData=En,Mi.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ro),Mi.lang=ni,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),K("x",or),K("X",ar),$("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),$("x",function(e,t,n){n._d=new Date(b(e))}),t.version="2.20.1",function(e){Mo=e}(Tt),t.fn=li,t.min=Rt,t.max=Mt,t.now=qr,t.utc=f,t.unix=qn,t.months=to,t.isDate=l,t.locale=et,t.invalid=v,t.duration=$t,t.isMoment=w,t.weekdays=oo,t.parseZone=Zn,t.localeData=ot,t.isDuration=Ht,t.monthsShort=no,t.weekdaysMin=io,t.defineLocale=tt,t.updateLocale=nt,t.locales=rt,t.weekdaysShort=ro,t.normalizeUnits=I,t.relativeTimeRounding=Eo,t.relativeTimeThreshold=Oo,t.calendarFormat=on,t.prototype=li,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t}),window.moment=n(47)}).call(t,n(183)(e))},function(e,t,n){"use strict";function o(){if((0,s.isDefined)(console)){var e;(e=console).log.apply(e,arguments)}}function r(){if((0,s.isDefined)(console)){var e;(e=console).warn.apply(e,arguments)}}function i(){if((0,s.isDefined)(console)){var e;(e=console).info.apply(e,arguments)}}function a(){if((0,s.isDefined)(console)){var e;(e=console).error.apply(e,arguments)}}t.__esModule=!0,t.log=o,t.warn=r,t.info=i,t.error=a;var s=n(10)},function(e,t,n){"use strict";t.__esModule=!0;var o=n(2),r=n(1),i={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];this._localHooks[e]&&(0,o.arrayEach)(this._localHooks[e],function(e){return e.apply(t,r)})},clearLocalHooks:function(){return this._localHooks={},this}};(0,r.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1}),t.default=i},function(e,t,n){"use strict";function o(e,t){return"border_row"+e+"col"+t}function r(){return{width:1,color:"#000"}}function i(){return{hide:!0}}function a(){return{width:1,color:"#000",cornerVisible:!1}}function s(e,t){return{id:o(e,t),border:a(),row:e,col:t,top:i(),right:i(),bottom:i(),left:i()}}function l(e,t){return(0,h.hasOwnProperty)(t,"border")&&(e.border=t.border),(0,h.hasOwnProperty)(t,"top")&&(t.top?((0,h.isObject)(t.top)||(t.top=r()),e.top=t.top):(t.top=i(),e.top=t.top)),(0,h.hasOwnProperty)(t,"right")&&(t.right?((0,h.isObject)(t.right)||(t.right=r()),e.right=t.right):(t.right=i(),e.right=t.right)),(0,h.hasOwnProperty)(t,"bottom")&&(t.bottom?((0,h.isObject)(t.bottom)||(t.bottom=r()),e.bottom=t.bottom):(t.bottom=i(),e.bottom=t.bottom)),(0,h.hasOwnProperty)(t,"left")&&(t.left?((0,h.isObject)(t.left)||(t.left=r()),e.left=t.left):(t.left=i(),e.left=t.left)),e}function u(e,t){var n=!1;return(0,f.arrayEach)(e.getSelectedRange(),function(o){o.forAll(function(o,r){var i=e.getCellMeta(o,r).borders;if(i){if(!t)return n=!0,!1;if(!(0,h.hasOwnProperty)(i[t],"hide")||!1===i[t].hide)return n=!0,!1}})}),n}function c(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}t.__esModule=!0,t.createId=o,t.createDefaultCustomBorder=r,t.createSingleEmptyBorder=i,t.createDefaultHtBorder=a,t.createEmptyBorders=s,t.extendDefaultBorder=l,t.checkSelectionBorders=u,t.markSelected=c;var h=n(1),f=n(2)},function(e,t){e.exports=!1},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,n){var o=n(20).f,r=n(27),i=n(12)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function o(e){this.instance=e,this.state=a.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}t.__esModule=!0,t.EditorState=void 0;var r=n(4),i=n(10),a=t.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};o.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented")},o.prototype.prepare=function(e,t,n,o,r,i){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=r,this.cellProperties=i,this.state=a.VIRGIN},o.prototype.extend=function(){function e(){for(var e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];t.apply(this,n)}var t=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}(e,t)},o.prototype.saveValue=function(e,t){var n=void 0,o=void 0;t?(n=this.instance.getSelectedLast(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},o.prototype.beginEditing=function(e,t){if(this.state===a.VIRGIN){if(this.instance.view.scrollViewport(new r.CellCoords(this.row,this.col)),this.state=a.EDITING,this.isInFullEditMode()){this.setValue("string"==typeof e?e:(0,i.stringify)(this.originalValue))}this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col)}},o.prototype.finishEditing=function(e,t,n){var o=this,r=void 0;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.instance.view.render()}}if(!this.isWaiting()){if(this.state===a.VIRGIN)return void this.instance._registerTimeout(function(){o._fireCallbacks(!0)});if(this.state===a.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();r=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=a.WAITING,this.saveValue(r,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){o.state=a.FINISHED,o.discardEditor(e)}):(this.state=a.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=a.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(e){this.state===a.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=a.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=a.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===a.WAITING},o.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t},t.default=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n){o(this,e),this.row=null,this.col=null,void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return r(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&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return e.row>=this.row&&e.col>=this.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&e.col>=this.col}},{key:"isNorthEastOf",value:function(e){return e.row>=this.row&&this.col>=e.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(0),i=n(480),a=o(i),s=n(57),l=o(s),u=n(6),c=o(u),h=n(21),f=n(13),d=l.default.prototype.extend();d.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new c.default(this),this.bindEvents(),this.autoResize=(0,a.default)(),this.holderZIndex=-1,this.instance.addHook("afterDestroy",function(){e.destroy()})},d.prototype.prepare=function(e,t,n,o,r,i){for(var a=this,u=this.state,c=arguments.length,h=Array(c>6?c-6:0),f=6;c>f;f++)h[f-6]=arguments[f];if(l.default.prototype.prepare.apply(this,[e,t,n,o,r,i].concat(h)),!i.readOnly){this.refreshDimensions(!0);var d=i.allowInvalid,p=i.fragmentSelection;d&&(this.TEXTAREA.value=""),u!==s.EditorState.FINISHED&&this.hideEditableElement();!p&&this.instance._registerImmediate(function(){return a.focus()})}},d.prototype.hideEditableElement=function(){this.textareaParentStyle.top="-9999px",this.textareaParentStyle.left="-9999px",this.textareaParentStyle.zIndex="-1",this.textareaParentStyle.position="fixed"},d.prototype.showEditableElement=function(){this.textareaParentStyle.zIndex=0>this.holderZIndex?"":this.holderZIndex,this.textareaParentStyle.position=""},d.prototype.getValue=function(){return this.TEXTAREA.value},d.prototype.setValue=function(e){this.TEXTAREA.value=e},d.prototype.beginEditing=function(){if(this.state===s.EditorState.VIRGIN){this.TEXTAREA.value="";for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];l.default.prototype.beginEditing.apply(this,t)}};var p=function(e){var t=this,n=t.getActiveEditor(),o=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===n.TEXTAREA&&!(0,f.isImmediatePropagationStopped)(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void(0,f.stopImmediatePropagation)(e);switch(e.keyCode){case h.KEY_CODES.ARROW_RIGHT:case h.KEY_CODES.ARROW_LEFT:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,f.stopImmediatePropagation)(e);break;case h.KEY_CODES.ARROW_UP:case h.KEY_CODES.ARROW_DOWN:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,f.stopImmediatePropagation)(e);break;case h.KEY_CODES.ENTER:var i=this.selection.isMultiple();if(o&&!i||e.altKey){if(n.isOpened()){var a=(0,r.getCaretPosition)(n.TEXTAREA),s=n.getValue();n.setValue(s.slice(0,a)+"\n"+s.slice(a)),(0,r.setCaretPosition)(n.TEXTAREA,a+1)}else n.beginEditing(n.originalValue+"\n");(0,f.stopImmediatePropagation)(e)}e.preventDefault();break;case h.KEY_CODES.A:case h.KEY_CODES.X:case h.KEY_CODES.C:case h.KEY_CODES.V:o&&(0,f.stopImmediatePropagation)(e);break;case h.KEY_CODES.BACKSPACE:case h.KEY_CODES.DELETE:case h.KEY_CODES.HOME:case h.KEY_CODES.END:(0,f.stopImmediatePropagation)(e)}-1===[h.KEY_CODES.ARROW_UP,h.KEY_CODES.ARROW_RIGHT,h.KEY_CODES.ARROW_DOWN,h.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&n.autoResize.resize(String.fromCharCode(e.keyCode))}};d.prototype.open=function(){this.refreshDimensions(),this.showEditableElement(),this.instance.addHook("beforeKeyDown",p)},d.prototype.close=function(){this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.hideEditableElement(),this.instance.removeHook("beforeKeyDown",p)},d.prototype.focus=function(){this.TEXTAREA.select(),(0,r.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},d.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),this.TEXTAREA.tabIndex=-1,(0,r.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,r.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.zIndex="-1",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT)},d.prototype.getEditedCell=function(){var e=this.checkEditorSection(),t=void 0;switch(e){case"top":t=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=101;break;case"top-left-corner":t=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=103;break;case"bottom-left-corner":t=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=103;break;case"left":t=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=102;break;case"bottom":t=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.holderZIndex=102;break;default:t=this.instance.getCell(this.row,this.col),this.holderZIndex=-1}return-1!==t&&-2!==t?t:void 0},d.prototype.refreshValue=function(){var e=this.instance.toPhysicalRow(this.row),t=this.instance.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()},d.prototype.refreshDimensions=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===s.EditorState.EDITING||e){if(!(this.TD=this.getEditedCell()))return void(e||this.close(!0));var t=(0,r.offset)(this.TD),n=(0,r.offset)(this.instance.rootElement),o=this.instance.view.wt.wtOverlays.topOverlay.mainTableScrollableElement,i=this.instance.countRows(),a=o!==window?o.scrollTop:0,l=o!==window?o.scrollLeft:0,u=this.checkEditorSection(),c=["","left"].includes(u)?a:0,h=["","top","bottom"].includes(u)?l:0,f=t.top===n.top?0:1,d=this.instance.getSettings(),p=this.instance.hasColHeaders(),g=this.TD.style.backgroundColor,v=t.top-n.top-f-c,m=t.left-n.left-1-h,y=void 0;switch(u){case"top":y=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":y=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":y=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":y=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":y=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(p&&0===this.instance.getSelectedLast()[0]||d.fixedRowsBottom&&this.instance.getSelectedLast()[0]===i-d.fixedRowsBottom)&&(v+=1),0===this.instance.getSelectedLast()[1]&&(m+=1),y&&-1!==y?this.textareaParentStyle[y[0]]=y[1]:(0,r.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=v+"px",this.textareaParentStyle.left=m+"px",this.showEditableElement();var w=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,C=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,b=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),_=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),S=(0,r.getScrollbarWidth)(),E=this.TD.offsetTop+w-_,O=this.TD.offsetLeft+C-b,T=(0,r.innerWidth)(this.TD)-8,k=(0,r.hasVerticalScrollbar)(o)?S:0,R=(0,r.hasHorizontalScrollbar)(o)?S:0,M=this.instance.view.maximumVisibleElementWidth(O)-9-k,D=this.TD.scrollHeight+1,A=Math.max(this.instance.view.maximumVisibleElementHeight(E)-R,23),N=(0,r.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=N.fontSize,this.TEXTAREA.style.fontFamily=N.fontFamily,this.TEXTAREA.style.backgroundColor=g||(0,r.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(D,A),maxHeight:A,minWidth:Math.min(T,M),maxWidth:M},!0)}},d.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,f.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,f.stopPropagation)(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},d.prototype.destroy=function(){this.eventManager.destroy()},t.default=d},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(60),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),0>e?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(28);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(30),r=n(105),i=n(106),a=n(18),s=n(25),l=n(107),u={},c={},t=e.exports=function(e,t,n,h,f){var d,p,g,v,m=f?function(){return e}:l(e),y=o(n,h,t?2:1),w=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(i(m)){for(d=s(e.length);d>w;w++)if((v=t?y(a(p=e[w])[0],p[1]):y(e[w]))===u||v===c)return v}else for(g=m.call(e);!(p=g.next()).done;)if((v=r(g,y,p.value,t))===u||v===c)return v};t.BREAK=u,t.RETURN=c},function(e,t,n){"use strict";var o=n(15),r=n(3),i=n(28),a=n(62),s=n(32),l=n(65),u=n(64),c=n(9),h=n(23),f=n(81),d=n(55),p=n(455);e.exports=function(e,t,n,g,v,m){var y=o[e],w=y,C=v?"set":"add",b=w&&w.prototype,_={},S=function(e){var t=b[e];i(b,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof w&&(m||b.forEach&&!h(function(){(new w).entries().next()}))){var E=new w,O=E[C](m?{}:-0,1)!=E,T=h(function(){E.has(1)}),k=f(function(e){new w(e)}),R=!m&&h(function(){for(var e=new w,t=5;t--;)e[C](t,t);return!e.has(-0)});k||(w=t(function(t,n){u(t,w,e);var o=p(new y,t,w);return void 0!=n&&l(n,v,o[C],o),o}),w.prototype=b,b.constructor=w),(T||R)&&(S("delete"),S("has"),v&&S("get")),(R||O)&&S(C),m&&b.clear&&delete b.clear}else w=g.getConstructor(t,e,v,C),a(w.prototype,n),s.NEED=!0;return d(w,e),_[e]=w,r(r.G+r.W+r.F*(w!=y),_),m||g.setStrong(w,e,v),w}},function(e,t,n){var o=n(56),r=n(53),i=n(24),a=n(75),s=n(27),l=n(101),u=Object.getOwnPropertyDescriptor;t.f=n(22)?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(30),r=n(77),i=n(31),a=n(25),s=n(456);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,h=6==e,f=5==e||h,d=t||s;return function(t,s,p){for(var g,v,m=i(t),y=r(m),w=o(s,p,3),C=a(y.length),b=0,_=n?d(t,C):l?d(t,0):void 0;C>b;b++)if((f||b in y)&&(g=y[b],v=w(g,b,m),e))if(n)_[b]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return b;case 2:_.push(g)}else if(c)return!1;return h?-1:u||c?c:_}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(29),r=n(28),i=n(23),a=n(36),s=n(12);e.exports=function(e,t,n){var l=s(e),u=n(a,l,""[e]),c=u[0],h=u[1];i(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,c),o(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e,o=t;return(0,c.isObject)(e)&&(o=e,n=o.languageCode),l(n,o),y(n,(0,c.deepClone)(o)),(0,c.deepClone)(o)}function i(e){return a(e)?(0,c.deepClone)(w(e)):null}function a(e){return C(e)}function s(){return g.default}function l(e,t){e!==v&&(0,h.extendNotExistingKeys)(t,w(v))}function u(){return b()}t.__esModule=!0,t.DEFAULT_LANGUAGE_CODE=t.getLanguagesDictionaries=t.getDefaultLanguageDictionary=t.hasLanguageDictionary=t.getLanguageDictionary=t.registerLanguageDictionary=void 0;var c=n(1),h=n(444),f=n(38),d=o(f),p=n(517),g=o(p),v=g.default.languageCode,m=(0,d.default)("languagesDictionaries"),y=m.register,w=m.getItem,C=m.hasItem,b=m.getValues;t.registerLanguageDictionary=r,t.getLanguageDictionary=i,t.hasLanguageDictionary=a,t.getDefaultLanguageDictionary=s,t.getLanguagesDictionaries=u,t.DEFAULT_LANGUAGE_CODE=v,r(g.default)},function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(t!==w&&t!==C)throw Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===w,i=d;if(n){var a=e[0];if(0===e.length)i=p;else if(r&&a instanceof c.CellRange)i=v;else if(r&&Array.isArray(a))i=o(a,C);else if(e.length>=2&&4>=e.length){var s=!e.some(function(e,t){return!y[t].includes(void 0===e?"undefined":u(e))});s&&(i=g)}}return i}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,o=void 0!==n&&n,r=t.propToCol;if(!m.includes(e))throw Error("Unsupported selection ranges schema type was provided.");return function(t){var n=e===v,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 r&&("string"==typeof a&&(a=r(a)),"string"==typeof l&&(l=r(l))),(0,f.isUndefined)(s)&&(s=i),(0,f.isUndefined)(l)&&(l=a),!o){var u=i,c=a,h=s,d=l;i=Math.min(u,h),a=Math.min(c,d),s=Math.max(u,h),l=Math.max(c,d)}return[i,a,s,l]}}function i(e){var t=o(e);if(t===d||t===p)return[];var n=r(t),i=new Set;(0,h.arrayEach)(e,function(e){var t=n(e),o=l(t,4),r=o[1],a=o[3],s=a-r+1;(0,h.arrayEach)(Array.from(Array(s),function(e,t){return r+t}),function(e){i.has(e)||i.add(e)})});var a=Array.from(i).sort(function(e,t){return e-t});return(0,h.arrayReduce)(a,function(e,t,n,o){return 0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e},[])}function a(e){var t=o(e);if(t===d||t===p)return[];var n=r(t),i=new Set;(0,h.arrayEach)(e,function(e){var t=n(e),o=l(t,3),r=o[0],a=o[2],s=a-r+1;(0,h.arrayEach)(Array.from(Array(s),function(e,t){return r+t}),function(e){i.has(e)||i.add(e)})});var a=Array.from(i).sort(function(e,t){return e-t});return(0,h.arrayReduce)(a,function(e,t,n,o){return 0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e},[])}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&t>e}t.__esModule=!0,t.SELECTION_TYPES=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_UNRECOGNIZED=void 0;var l=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.detectSelectionType=o,t.normalizeSelectionFactory=r,t.transformSelectionToColumnDistance=i,t.transformSelectionToRowDistance=a,t.isValidCoord=s;var c=n(4),h=n(2),f=n(10),d=t.SELECTION_TYPE_UNRECOGNIZED=0,p=t.SELECTION_TYPE_EMPTY=1,g=t.SELECTION_TYPE_ARRAY=2,v=t.SELECTION_TYPE_OBJECT=3,m=t.SELECTION_TYPES=[v,g],y=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],w=Symbol("root"),C=Symbol("child")},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return Array.isArray(e)?e:Array.from(e)}function i(e){var t=e.columnSorting;return t.compareFunctionFactory?t.compareFunctionFactory:"date"===e.type?l.default:"numeric"===e.type?f.default:c.default}function a(e,t){return function(n,o){var a=r(n),s=a.slice(1),l=r(o),u=l.slice(1);return function(n){var o=e[n],r=t[n],a=s[n],l=u[n];return i(r)(o,r)(a,l)}(0)}}t.__esModule=!0,t.FIRST_AFTER_SECOND=t.FIRST_BEFORE_SECOND=t.DO_NOT_SWAP=void 0,t.mainSortComparator=a;var s=n(541),l=o(s),u=n(542),c=o(u),h=n(543),f=o(h);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},function(e,t,n){var o=n(9),r=n(15).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(9);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(18),r=n(453),i=n(80),a=n(78)("IE_PROTO"),s=function(){},l=function(){var e,t=n(74)("iframe"),o=i.length;for(t.style.display="none",n(104).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;o--;)delete l.prototype[i[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(79)("keys"),r=n(52);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(37),r=n(15),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(51)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(12)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){var o,r,i,a=n(30),s=n(459),l=n(104),u=n(74),c=n(15),h=c.process,f=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,v=0,m={},y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},w=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++v]=function(){s("function"==typeof e?e:Function(e),t)},o(v),v},d=function(e){delete m[e]},"process"==n(44)(h)?o=function(e){h.nextTick(a(y,e,1))}:g&&g.now?o=function(e){g.now(a(y,e,1))}:p?(r=new p,i=r.port2,r.port1.onmessage=w,o=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):o="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,n){var o=n(15),r=o.navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var o=n(102),r=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(145),r=n(36);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return r(e)+""}},function(e,t,n){var o=n(12)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var o=n(20),r=n(53);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){"use strict";var o=n(46),r=n(111),i=n(54),a=n(24);e.exports=n(109)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]]):(this._t=void 0,r(1))},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(!N(e))throw Error('You declared cell type "'+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 "Handsontable.cellTypes.registerCellType" method');return A(e)}function i(e,t){var n=t.editor,o=t.renderer,r=t.validator;n&&(0,l.registerEditor)(e,n),o&&(0,u.registerRenderer)(e,o),r&&(0,c.registerValidator)(e,r),D(e,t)}t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var a=n(38),s=o(a),l=n(17),u=n(14),c=n(34),h=n(502),f=o(h),d=n(503),p=o(d),g=n(504),v=o(g),m=n(505),y=o(m),w=n(506),C=o(w),b=n(507),_=o(b),S=n(508),E=o(S),O=n(509),T=o(O),k=n(510),R=o(k),M=(0,s.default)("cellTypes"),D=M.register,A=M.getItem,N=M.hasItem,P=M.getNames,H=M.getValues;i("autocomplete",f.default),i("checkbox",p.default),i("date",v.default),i("dropdown",y.default),i("handsontable",C.default),i("numeric",_.default),i("password",E.default),i("text",T.default),i("time",R.default),t.registerCellType=i,t.getCellType=r,t.hasCellType=N,t.getRegisteredCellTypeNames=P,t.getRegisteredCellTypes=H},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){function n(e){var t=(0,U.normalizeLanguageCode)(e);(0,V.hasLanguageDictionary)(t)?(q.runHooks("beforeLanguageChange",t),Z.prototype.language=t,q.runHooks("afterLanguageChange",t)):(0,U.warnUserAboutLanguageRegistration)(e)}function o(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=0>this.validatorsInQueue-1?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function i(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function g(e,t,n){function r(){var o=void 0;e.length&&(o=q.runHooks("beforeChange",e,t||"edit"),(0,h.isFunction)(o)?(0,f.warn)("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed)."):!1===o&&e.splice(0,e.length)),n()}var a=new o;a.onQueueEmpty=r;for(var l=e.length-1;l>=0;l--)if(null===e[l])e.splice(l,1);else{var c=s(e[l],4),d=c[0],p=c[1],g=c[3],v=Q.propToCol(p),m=q.getCellMeta(d,v);"numeric"===m.type&&"string"==typeof g&&function(e){return e.length>0&&/^-?[\d\s]*(\.|,)?\d*$/.test(e)}(g)&&(e[l][3]=i(g)),q.getCellValidator(m)&&(a.addValidatorToQueue(),q.validateCell(e[l][3],m,function(t,n){return function(o){if("boolean"!=typeof o)throw Error("Validation error: result is not boolean");if(!1===o&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var r=q.getCell(n.visualRow,n.visualCol);(0,u.removeClass)(r,q.getSettings().invalidCellClassName)}a.removeValidatorFormQueue()}}(l,m),t))}a.checkIfQueueIsEmpty()}function m(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(J.settings.allowInsertRow)for(;e[n][0]>q.countRows()-1;){var r=Q.createRow(void 0,void 0,t);if(0===r){o=!0;break}}if(!o){if("array"===q.dataType&&(!J.settings.columns||0===J.settings.columns.length)&&J.settings.allowInsertColumn)for(;Q.propToCol(e[n][1])>q.countCols()-1;)Q.createCol(void 0,void 0,t);Q.set(e[n][0],e[n][1],e[n][3])}}}else e.splice(n,1)}q.forceFullRender=!0,te.adjustRowsAndCols(),q.runHooks("beforeChangeRender",e,t),ne.lockEditor(),q._refreshBorders(null),ne.unlockEditor(),q.view.wt.wtOverlays.adjustElementsSize(),q.runHooks("afterChange",e,t||"edit");var i=q.getActiveEditor();i&&(0,d.isDefined)(i.refreshValue)&&i.refreshValue()}}function w(e,t,n){return"object"===(void 0===e?"undefined":a(e))?e:[[e,t,n]]}function M(e){if((0,b.hasOwnProperty)(e,"type")){var t={},n=void 0;"object"===a(e.type)?n=e.type:"string"==typeof e.type&&(n=(0,B.getCellType)(e.type));for(var o in n)(0,b.hasOwnProperty)(n,o)&&!(0,b.hasOwnProperty)(e,o)&&(t[o]=n[o]);return t}}function A(e){return function(){throw Error('The "'+e+'" method cannot be called because this Handsontable instance has been destroyed')}}var I=this,F=arguments.length>2&&void 0!==arguments[2]&&arguments[2],X=!1,q=this,Z=function(){},$=new C.default(q),J=void 0,Q=void 0,ee=void 0,te=void 0,ne=void 0;(0,b.extend)(Z.prototype,W.default.prototype),(0,b.extend)(Z.prototype,t),(0,b.extend)(Z.prototype,M(t)),(0,U.applyLanguageSetting)(Z.prototype,t.language),(0,L.hasValidParameter)(F)&&(0,L.registerAsRootInstance)(this),(0,z.startObserving)(),this.isDestroyed=!1,this.rootElement=e,this.isHotTableEnv=(0,u.isChildOfWebComponentTable)(this.rootElement),C.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+(0,k.randomString)();var oe=(0,H.getTranslator)(q);ee=new N.default(q),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),J={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width","language"],settings:new Z,selRange:null,isPopulated:null,scrollable:null,firstRun:!0};var re=new G.Selection(J.settings,{countCols:function(){return q.countCols()},countRows:function(){return q.countRows()},propToCol:function(e){return Q.propToCol(e)},isEditorOpened:function(){return!!q.getActiveEditor()&&q.getActiveEditor().isOpened()}});this.selection=re,this.selection.addLocalHook("beforeSetRangeStart",function(e){I.runHooks("beforeSetRangeStart",e)}),this.selection.addLocalHook("beforeSetRangeStartOnly",function(e){I.runHooks("beforeSetRangeStartOnly",e)}),this.selection.addLocalHook("beforeSetRangeEnd",function(e){I.runHooks("beforeSetRangeEnd",e),0>e.row&&(e.row=I.view.wt.wtTable.getFirstVisibleRow()),0>e.col&&(e.col=I.view.wt.wtTable.getFirstVisibleColumn())}),this.selection.addLocalHook("afterSetRangeEnd",function(e){var t=(0,b.createObjectPropListener)(!1),n=I.selection.getSelectedRange(),o=n.current(),r=o.from,i=o.to,a=n.size()-1;I.runHooks("afterSelection",r.row,r.col,i.row,i.col,t,a),I.runHooks("afterSelectionByProp",r.row,q.colToProp(r.col),i.row,q.colToProp(i.col),t,a);var s=I.selection.isSelectedByAnyHeader(),l=I.selection.selectedRange.current(),c=!0;X&&(c=!1),t.isTouched()&&(c=!t.value);var h=I.selection.isSelectedByRowHeader(),f=I.selection.isSelectedByColumnHeader();!1!==c&&(s?h?I.view.scrollViewportVertically(e.row):f&&I.view.scrollViewportHorizontally(e.col):I.view.scrollViewport(l&&!I.selection.isMultiple()?l.from:e)),h&&f?(0,u.addClass)(I.rootElement,["ht__selection--rows","ht__selection--columns"]):h?((0,u.removeClass)(I.rootElement,"ht__selection--columns"),(0,u.addClass)(I.rootElement,"ht__selection--rows")):f?((0,u.removeClass)(I.rootElement,"ht__selection--rows"),(0,u.addClass)(I.rootElement,"ht__selection--columns")):(0,u.removeClass)(I.rootElement,["ht__selection--rows","ht__selection--columns"]),I._refreshBorders(null)}),this.selection.addLocalHook("afterSelectionFinished",function(e){var t=e.length-1,n=e[t],o=n.from,r=n.to;I.runHooks("afterSelectionEnd",o.row,o.col,r.row,r.col,t),I.runHooks("afterSelectionEndByProp",o.row,q.colToProp(o.col),r.row,q.colToProp(r.col),t)}),this.selection.addLocalHook("afterIsMultipleSelection",function(e){var t=I.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("beforeModifyTransformStart",function(e){I.runHooks("modifyTransformStart",e)}),this.selection.addLocalHook("afterModifyTransformStart",function(e,t,n){I.runHooks("afterModifyTransformStart",e,t,n)}),this.selection.addLocalHook("beforeModifyTransformEnd",function(e){I.runHooks("modifyTransformEnd",e)}),this.selection.addLocalHook("afterModifyTransformEnd",function(e,t,n){I.runHooks("afterModifyTransformEnd",e,t,n)}),this.selection.addLocalHook("afterDeselect",function(){ne.destroyEditor(),I._refreshBorders(),(0,u.removeClass)(I.rootElement,["ht__selection--rows","ht__selection--columns"]),I.runHooks("afterDeselect")}),this.selection.addLocalHook("insertRowRequire",function(e){I.alter("insert_row",e,1,"auto")}),this.selection.addLocalHook("insertColRequire",function(e){I.alter("insert_col",e,1,"auto")}),te={alter:function(e,t){function n(e,t,n,o){var i=function(){var e=void 0;return"array"===o?e=[]:"object"===o&&(e={}),e},a=(0,_.arrayMap)(Array(n),function(){return i()});a.unshift(t,0),e.splice.apply(e,r(a))}var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments[3],a=arguments[4],l=void 0,u=function(e){if(0===e.length)return[];var t=[].concat(r(e));return t.sort(function(e,t){var n=s(e,1),o=n[0],r=s(t,1),i=r[0];return o===i?0:o>i?1:-1}),(0,_.arrayReduce)(t,function(e,t){var n=s(t,2),o=n[0],r=n[1],i=e[e.length-1],a=s(i,2),l=a[0],u=a[1],c=l+u;if(c<o)e.push([o,r]);else{i[1]+=Math.max(r-(c-o),0)}return e},[t[0]])};switch(e){case"insert_row":var c=q.countSourceRows();if(q.getSettings().maxRows===c)return;t=(0,d.isDefined)(t)?t:c,l=Q.createRow(t,o,i),n(J.cellSettings,t,o,"array"),l&&(re.isSelected()&&re.selectedRange.current().from.row>=t?(re.selectedRange.current().from.row+=l,re.transformEnd(l,0)):q._refreshBorders());break;case"insert_col":l=Q.createCol(t,o,i);for(var h=0,f=q.countSourceRows();f>h;h++)J.cellSettings[h]&&n(J.cellSettings[h],t,o);if(l){if(Array.isArray(q.getSettings().colHeaders)){var p=[t,0];p.length+=l,Array.prototype.splice.apply(q.getSettings().colHeaders,p)}re.isSelected()&&re.selectedRange.current().from.col>=t?(re.selectedRange.current().from.col+=l,re.transformEnd(0,l)):q._refreshBorders()}break;case"remove_row":var g=function(e){var t=0;(0,_.arrayEach)(e,function(e){var n=s(e,2),r=n[0],a=n[1],l=(0,d.isEmpty)(r)?q.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0)),Q.removeRow(r,a,i),J.cellSettings.splice(l,o);var u=q.countRows(),c=q.getSettings().fixedRowsTop;l+1>c||(q.getSettings().fixedRowsTop-=Math.min(a,c-l));var h=q.getSettings().fixedRowsBottom;h&&l>=u-h&&(q.getSettings().fixedRowsBottom-=Math.min(a,h)),t+=a})};g(Array.isArray(t)?u(t):[[t,o]]),te.adjustRowsAndCols(),q._refreshBorders();break;case"remove_col":var v=function(e){var t=0;(0,_.arrayEach)(e,function(e){var n=s(e,2),o=n[0],r=n[1],a=(0,d.isEmpty)(o)?q.countCols()-1:Math.max(o-t,0),l=oe.toPhysicalColumn(a);Number.isInteger(o)&&(o=Math.max(o-t,0)),Q.removeCol(o,r,i);for(var u=0,c=q.countSourceRows();c>u;u++)J.cellSettings[u]&&J.cellSettings[u].splice(l,r);var h=q.getSettings().fixedColumnsLeft;a+1>h||(q.getSettings().fixedColumnsLeft-=Math.min(r,h-a)),Array.isArray(q.getSettings().colHeaders)&&(void 0===l&&(l=-1),q.getSettings().colHeaders.splice(l,r)),t+=r})};v(Array.isArray(t)?u(t):[[t,o]]),te.adjustRowsAndCols(),q._refreshBorders();break;default:throw Error('There is no such action "'+e+'"')}a||te.adjustRowsAndCols()},adjustRowsAndCols:function(){if(J.settings.minRows){var e=q.countRows();if(J.settings.minRows>e)for(var t=0,n=J.settings.minRows;n-e>t;t++)Q.createRow(q.countRows(),1,"auto")}if(J.settings.minSpareRows){var o=q.countEmptyRows(!0);if(J.settings.minSpareRows>o)for(;J.settings.minSpareRows>o&&q.countSourceRows()<J.settings.maxRows;o++)Q.createRow(q.countRows(),1,"auto")}var r=void 0;if((J.settings.minCols||J.settings.minSpareCols)&&(r=q.countEmptyCols(!0)),J.settings.minCols&&!J.settings.columns&&q.countCols()<J.settings.minCols)for(;q.countCols()<J.settings.minCols;r++)Q.createCol(q.countCols(),1,"auto");if(J.settings.minSpareCols&&!J.settings.columns&&"array"===q.dataType&&J.settings.minSpareCols>r)for(;J.settings.minSpareCols>r&&q.countCols()<J.settings.maxCols;r++)Q.createCol(q.countCols(),1,"auto");var i=q.countRows(),a=q.countCols();0!==i&&0!==a||re.deselect(),re.isSelected()&&(0,_.arrayEach)(re.selectedRange,function(e){var t=!1,n=e.from.row,o=e.from.col,r=e.to.row,s=e.to.col;n>i-1?(n=i-1,t=!0,r>n&&(r=n)):r>i-1&&(r=i-1,t=!0,n>r&&(n=r)),o>a-1?(o=a-1,t=!0,s>o&&(s=o)):s>a-1&&(s=a-1,t=!0,o>s&&(o=s)),t&&q.selectCell(n,o,r,s)}),q.view&&q.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,o,i,s,l){var u=void 0,c=void 0,h=void 0,f=void 0,p=[],g={};if(0===(c=t.length))return!1;var v=void 0,m=void 0,y=void 0,w=void 0;switch(i){case"shift_down":for(v=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,t=(0,P.translateRowsToColumns)(t),h=0,f=t.length,y=Math.max(f,v);y>h;h++)if(f>h){var C;for(u=0,c=t[h].length;m-c>u;u++)t[h].push(t[h][u%c]);t[h].unshift(e.col+h,e.row,0),(C=q).spliceCol.apply(C,r(t[h]))}else{var _;t[h%f][0]=e.col+h,(_=q).spliceCol.apply(_,r(t[h%f]))}break;case"shift_right":for(v=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,u=0,c=t.length,w=Math.max(c,m);w>u;u++)if(c>u){var S;for(h=0,f=t[u].length;v-f>h;h++)t[u].push(t[u][h%f]);t[u].unshift(e.row+u,e.col,0),(S=q).spliceRow.apply(S,r(t[u]))}else{var E;t[u%c][0]=e.row+u,(E=q).spliceRow.apply(E,r(t[u%c]))}break;case"overwrite":default:g.row=e.row,g.col=e.col;var O={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},T=0,k=0,R=!0,M=void 0,D=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},A=t.length,N=n?n.row-e.row+1:0;for(c=n?N:Math.max(A,N),u=0;c>u&&(!(n&&g.row>n.row&&N>A||!J.settings.allowInsertRow&&g.row>q.countRows()-1)&&g.row<J.settings.maxRows);u++){var H=u-T,L=D(H).length,x=n?n.col-e.col+1:0;if(f=n?x:Math.max(L,x),g.col=e.col,M=q.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.autofill"!==o||!M.skipRowOnPaste){for(k=0,h=0;f>h&&(!(n&&g.col>n.col&&x>L||!J.settings.allowInsertColumn&&g.col>q.countCols()-1)&&g.col<J.settings.maxCols);h++)if(M=q.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!M.skipColumnOnPaste)if(M.readOnly)g.col+=1;else{var I=h-k,j=D(H,I),F=q.getDataAtCell(g.row,g.col),W={row:H,col:I};if("Autofill.fill"===o){var B=q.runHooks("beforeAutofillInsidePopulate",W,s,t,l,{},O);B&&(j=(0,d.isUndefined)(B.value)?j:B.value)}if(null!==j&&"object"===(void 0===j?"undefined":a(j)))if(null===F||"object"!==(void 0===F?"undefined":a(F)))R=!1;else{var Y=(0,b.duckSchema)(F[0]||F),V=(0,b.duckSchema)(j[0]||j);(0,b.isObjectEqual)(Y,V)?j=(0,b.deepClone)(j):R=!1}else null!==F&&"object"===(void 0===F?"undefined":a(F))&&(R=!1);R&&p.push([g.row,g.col,j]),R=!0,g.col+=1}else k+=1,g.col+=1,f+=1;g.row+=1}else T+=1,g.row+=1,c+=1}q.setDataAtCell(p,null,null,o||"populateFromArray")}}},this.init=function(){ee.setData(J.settings.data),q.runHooks("beforeInit"),(0,p.isMobileBrowser)()&&(0,u.addClass)(q.rootElement,"mobile"),this.updateSettings(J.settings,!0),this.view=new D.default(this),ne=y.default.getInstance(q,J,re,Q),this.forceFullRender=!0,q.runHooks("init"),this.view.render(),"object"===a(J.firstRun)&&(q.runHooks("afterChange",J.firstRun[0],J.firstRun[1]),J.firstRun=!1),q.runHooks("afterInit")},this.validateCell=function(e,t,n,o){function r(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!0===t.hidden)return void n(e);var o=t.visualCol,r=t.visualRow,i=q.getCell(r,o,!0);i&&"TH"!==i.nodeName&&q.view.wt.wtSettings.settings.cellRenderer(r,o,i),n(e)}var i=q.getCellValidator(t);(0,d.isRegExp)(i)&&(i=function(e){return function(t,n){n(e.test(t))}}(i)),(0,h.isFunction)(i)?(e=q.runHooks("beforeValidate",e,t.visualRow,t.prop,o),q._registerTimeout(setTimeout(function(){i.call(t,e,function(n){n=q.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,r(n),q.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):q._registerTimeout(setTimeout(function(){t.valid=!0,r(t.valid,!1)},0))},this.setDataAtCell=function(e,t,n,o){var r=w(e,t,n),i=[],s=o,l=void 0,u=void 0,c=void 0;for(l=0,u=r.length;u>l;l++){if("object"!==a(r[l]))throw Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof r[l][1])throw Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");c=Q.colToProp(r[l][1]),i.push([r[l][0],c,ee.getAtCell(oe.toPhysicalRow(r[l][0]),r[l][1]),r[l][2]])}s||"object"!==(void 0===e?"undefined":a(e))||(s=t),q.runHooks("afterSetDataAtCell",i,s),g(i,s,function(){m(i,s)})},this.setDataAtRowProp=function(e,t,n,o){var r=w(e,t,n),i=[],s=o,l=void 0,u=void 0;for(l=0,u=r.length;u>l;l++)i.push([r[l][0],r[l][1],ee.getAtCell(oe.toPhysicalRow(r[l][0]),r[l][1]),r[l][2]]);s||"object"!==(void 0===e?"undefined":a(e))||(s=t),q.runHooks("afterSetDataAtRowProp",i,s),g(i,s,function(){m(i,s)})},this.listen=function(){if(0>=arguments.length||void 0===arguments[0]||arguments[0]){var e=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;document.activeElement&&document.activeElement!==document.body&&!e?document.activeElement.blur():e&&document.body.focus()}q&&!q.isListening()&&(K=q.guid,q.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(K=null,q.runHooks("afterUnlisten"))},this.isListening=function(){return K===q.guid},this.destroyEditor=function(){q._refreshBorders(arguments.length>0&&void 0!==arguments[0]&&arguments[0],1>=arguments.length||void 0===arguments[1]||arguments[1])},this.populateFromArray=function(e,t,n,o,r,i,s,l,u){if("object"!==(void 0===n?"undefined":a(n))||"object"!==a(n[0]))throw Error("populateFromArray parameter `input` must be an array of arrays");var c="number"==typeof o?new x.CellCoords(o,r):null;return te.populateFromArray(new x.CellCoords(e,t),n,c,i,s,l,u)},this.spliceCol=function(e,t,n){for(var o,r=arguments.length,i=Array(r>3?r-3:0),a=3;r>a;a++)i[a-3]=arguments[a];return(o=Q).spliceCol.apply(o,[e,t,n].concat(i))},this.spliceRow=function(e,t,n){for(var o,r=arguments.length,i=Array(r>3?r-3:0),a=3;r>a;a++)i[a-3]=arguments[a];return(o=Q).spliceRow.apply(o,[e,t,n].concat(i))},this.getSelected=function(){if(re.isSelected())return(0,_.arrayMap)(re.getSelectedRange(),function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]})},this.getSelectedLast=function(){var e=this.getSelected(),t=void 0;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(re.isSelected())return Array.from(re.getSelectedRange())},this.getSelectedRangeLast=function(){var e=this.getSelectedRange(),t=void 0;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(){var e=this;if(re.isSelected()){var t=[];(0,_.arrayEach)(re.getSelectedRange(),function(n){var o=n.getTopLeftCorner(),r=n.getBottomRightCorner();(0,R.rangeEach)(o.row,r.row,function(n){(0,R.rangeEach)(o.col,r.col,function(o){e.getCellMeta(n,o).readOnly||t.push([n,o,""])})})}),t.length>0&&this.setDataAtCell(t)}},this.render=function(){q.view&&(q.renderCall=!0,q.forceFullRender=!0,ne.lockEditor(),q._refreshBorders(null),ne.unlockEditor())},this.loadData=function(e){if(q.dataType=Array.isArray(J.settings.dataSchema)?"array":(0,h.isFunction)(J.settings.dataSchema)?"function":"object",Q&&Q.destroy(),Q=new v.default(q,J,Z),"object"===(void 0===e?"undefined":a(e))&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw Error("loadData only accepts array of objects or array of arrays ("+(void 0===e?"undefined":a(e))+" given)");var t=Q.getSchema();e=[];var n=void 0,o=0,r=0;for(o=0,r=J.settings.startRows;r>o;o++)if("object"!==q.dataType&&"function"!==q.dataType||!J.settings.dataSchema)if("array"===q.dataType)n=(0,b.deepClone)(t[0]),e.push(n);else{n=[];for(var i=0,s=J.settings.startCols;s>i;i++)n.push(null);e.push(n)}else n=(0,b.deepClone)(t),e.push(n)}J.isPopulated=!1,Z.prototype.data=e,Array.isArray(e[0])&&(q.dataType="array"),Q.dataSource=e,ee.data=e,ee.dataType=q.dataType,ee.colToProp=Q.colToProp.bind(Q),ee.propToCol=Q.propToCol.bind(Q),function(){J.cellSettings.length=0}(),te.adjustRowsAndCols(),q.runHooks("afterLoadData",J.firstRun),J.firstRun?J.firstRun=[null,"loadData"]:(q.runHooks("afterChange",null,"loadData"),q.render()),J.isPopulated=!0},this.getData=function(e,t,n,o){return(0,d.isUndefined)(e)?Q.getAll():Q.getRange(new x.CellCoords(e,t),new x.CellCoords(n,o),Q.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return Q.getCopyableText(new x.CellCoords(e,t),new x.CellCoords(n,o))},this.getCopyableData=function(e,t){return Q.getCopyable(e,Q.colToProp(t))},this.getSchema=function(){return Q.getSchema()},this.updateSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=!1,r=void 0,i=void 0,a=void 0;if((0,d.isDefined)(e.rows))throw Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,d.isDefined)(e.cols))throw Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(r in e)"data"!==r&&("language"!==r?j.default.getSingleton().getRegistered().indexOf(r)>-1?((0,h.isFunction)(e[r])||Array.isArray(e[r]))&&(e[r].initialHook=!0,q.addHook(r,e[r])):!t&&(0,b.hasOwnProperty)(e,r)&&(Z.prototype[r]=e[r]):n(e.language));void 0===e.data&&void 0===J.settings.data?q.loadData(null):void 0!==e.data?q.loadData(e.data):void 0!==e.columns&&Q.createMap(),a=q.countCols();var s=e.columns||Z.prototype.columns;if(s&&(0,h.isFunction)(s)&&(a=q.countSourceCols(),o=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(J.cellSettings.length=0),a>0){var l=void 0,f=void 0;for(r=0,i=0;a>r;r++)o&&!s(r)||(J.columnSettings[i]=(0,c.columnFactory)(Z,J.columnsSettingConflicts),l=J.columnSettings[i].prototype,s&&(f=o?s(r):s[i])&&((0,b.extend)(l,f),(0,b.extend)(l,M(f))),i+=1)}(0,d.isDefined)(e.cell)&&(0,b.objectEach)(e.cell,function(e){q.setCellMetaObject(e.row,e.col,e)}),q.runHooks("afterCellMetaReset"),(0,d.isDefined)(e.className)&&(Z.prototype.className&&(0,u.removeClass)(q.rootElement,Z.prototype.className),e.className&&(0,u.addClass)(q.rootElement,e.className));var p=q.rootElement.style.height;""!==p&&(p=parseInt(q.rootElement.style.height,10));var g=e.height;if((0,h.isFunction)(g)&&(g=g()),t){q.rootElement.getAttribute("style")&&q.rootElement.setAttribute("data-initialstyle",q.rootElement.getAttribute("style"))}if(null===g){var v=q.rootElement.getAttribute("data-initialstyle");v&&(v.indexOf("height")>-1||v.indexOf("overflow")>-1)?q.rootElement.setAttribute("style",v):(q.rootElement.style.height="",q.rootElement.style.overflow="")}else void 0!==g&&(q.rootElement.style.height=g+"px",q.rootElement.style.overflow="hidden");if(void 0!==e.width){var m=e.width;(0,h.isFunction)(m)&&(m=m()),q.rootElement.style.width=m+"px"}t||(Q.clearLengthCache(),q.view&&q.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),q.runHooks("afterUpdateSettings",e)),te.adjustRowsAndCols(),q.view&&!J.firstRun&&(q.forceFullRender=!0,ne.lockEditor(),q._refreshBorders(null),ne.unlockEditor()),t||!q.view||""!==p&&""!==g&&void 0!==g||p===g||q.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=q.getSelectedLast();if(Z.prototype.getValue){if((0,h.isFunction)(Z.prototype.getValue))return Z.prototype.getValue.call(q);if(e)return q.getData()[e[0][0]][Z.prototype.getValue]}else if(e)return q.getDataAtCell(e[0],e[1])},this.getSettings=function(){return J.settings},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,o,r){te.alter(e,t,n,o,r)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return q.view.getCellAtCoords(new x.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return Q.colToProp(e)},this.propToCol=function(e){return Q.propToCol(e)},this.toVisualRow=function(e){return oe.toVisualRow(e)},this.toVisualColumn=function(e){return oe.toVisualColumn(e)},this.toPhysicalRow=function(e){return oe.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return oe.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return Q.get(e,Q.colToProp(t))},this.getDataAtRowProp=function(e,t){return Q.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,r(Q.getRange(new x.CellCoords(0,e),new x.CellCoords(J.settings.data.length-1,e),Q.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=Q.getRange(new x.CellCoords(0,Q.propToCol(e)),new x.CellCoords(J.settings.data.length-1,Q.propToCol(e)),Q.DESTINATION_RENDERER);return(t=[]).concat.apply(t,r(n))},this.getSourceData=function(e,t,n,o){return void 0===e?ee.getData():ee.getByRange(new x.CellCoords(e,t),new x.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?ee.getData(!0):ee.getByRange(new x.CellCoords(e,t),new x.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return ee.getAtColumn(e)},this.getSourceDataAtRow=function(e){return ee.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return ee.getAtCell(e,t)},this.getDataAtRow=function(e){return Q.getRange(new x.CellCoords(e,0),new x.CellCoords(e,this.countCols()-1),Q.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){var r=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,o],a=i[0],s=i[1],l=i[2],u=i[3],c=null,h=null;void 0===l&&(l=a),void 0===u&&(u=s);var f="mixed";return(0,R.rangeEach)(Math.min(a,l),Math.max(a,l),function(e){var t=!0;return(0,R.rangeEach)(Math.min(s,u),Math.max(s,u),function(n){var o=r.getCellMeta(e,n);return h=o.type,c?t=c===h:c=h,t}),f=t?h:"mixed",t}),f},this.removeCellMeta=function(e,t,n){var o=oe.toPhysical(e,t),r=s(o,2),i=r[0],a=r[1],l=J.cellSettings[i][a][n];!1!==q.runHooks("beforeRemoveCellMeta",e,t,n,l)&&(delete J.cellSettings[i][a][n],q.runHooks("afterRemoveCellMeta",e,t,n,l)),l=null},this.spliceCellsMeta=function(e,t){for(var n,o=arguments.length,r=Array(o>2?o-2:0),i=2;o>i;i++)r[i-2]=arguments[i];(n=J.cellSettings).splice.apply(n,[e,t].concat(r))},this.setCellMetaObject=function(e,t,n){var o=this;"object"===(void 0===n?"undefined":a(n))&&(0,b.objectEach)(n,function(n,r){o.setCellMeta(e,t,r,n)})},this.setCellMeta=function(e,t,n,o){var r=oe.toPhysical(e,t),i=s(r,2),a=i[0],l=i[1];J.columnSettings[l]||(J.columnSettings[l]=(0,c.columnFactory)(Z,J.columnsSettingConflicts)),J.cellSettings[a]||(J.cellSettings[a]=[]),J.cellSettings[a][l]||(J.cellSettings[a][l]=new J.columnSettings[l]),J.cellSettings[a][l][n]=o,q.runHooks("afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return(0,_.arrayFlatten)(J.cellSettings)},this.getCellMeta=function(e,t){var n=Q.colToProp(t),o=oe.toPhysical(e,t),r=s(o,2),i=r[0],a=r[1],l=i;null===l&&(l=e),J.columnSettings[a]||(J.columnSettings[a]=(0,c.columnFactory)(Z,J.columnsSettingConflicts)),J.cellSettings[l]||(J.cellSettings[l]=[]),J.cellSettings[l][a]||(J.cellSettings[l][a]=new J.columnSettings[a]);var u=J.cellSettings[l][a];if(u.row=l,u.col=a,u.visualRow=e,u.visualCol=t,u.prop=n,u.instance=q,q.runHooks("beforeGetCellMeta",e,t,u),(0,b.extend)(u,M(u)),u.cells){var h=u.cells.call(u,l,a,n);h&&((0,b.extend)(u,h),(0,b.extend)(u,M(h)))}return q.runHooks("afterGetCellMeta",e,t,u),u},this.getCellMetaAtRow=function(e){return J.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===q.dataType||q.getSettings().columns)};var ie=(0,P.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,O.getRenderer)(ie.call(this,e,t))},this.getCellEditor=(0,P.cellMethodLookupFactory)("editor");var ae=(0,P.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=ae.call(this,e,t);return"string"==typeof n&&(n=(0,T.getValidator)(n)),n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var r=new o;e&&(r.onQueueEmpty=e);for(var i=q.countRows()-1;i>=0;)if(void 0===t||-1!==t.indexOf(i)){for(var a=q.countCols()-1;a>=0;)void 0===n||-1!==n.indexOf(a)?(r.addValidatorToQueue(),q.validateCell(q.getDataAtCell(i,a),q.getCellMeta(i,a),function(e){if("boolean"!=typeof e)throw Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()},"validateCells"),a-=1):a-=1;i-=1}else i-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=J.settings.rowHeaders,n=e;return void 0!==n&&(n=q.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,R.rangeEach)(q.countRows()-1,function(e){t.push(q.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,h.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!J.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==J.settings.colHeaders&&null!==J.settings.colHeaders)return!!J.settings.colHeaders;for(var e=0,t=q.countCols();t>e;e++)if(q.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=J.settings.columns&&(0,h.isFunction)(J.settings.columns),n=q.runHooks("modifyColHeader",e),o=J.settings.colHeaders;if(void 0===n){for(var r=[],i=t?q.countSourceCols():q.countCols(),a=0;i>a;a++)r.push(q.getColHeader(a));o=r}else{var s=n,l=q.runHooks("modifyCol",s),u=function(e){for(var t=[],n=q.countSourceCols(),o=0;n>o;o++)(0,h.isFunction)(q.getSettings().columns)&&q.getSettings().columns(o)&&t.push(o);return t[e]}(l);!1===J.settings.colHeaders?o=null:J.settings.columns&&(0,h.isFunction)(J.settings.columns)&&J.settings.columns(u)&&J.settings.columns(u).title?o=J.settings.columns(u).title:J.settings.columns&&J.settings.columns[l]&&J.settings.columns[l].title?o=J.settings.columns[l].title:Array.isArray(J.settings.colHeaders)&&void 0!==J.settings.colHeaders[l]?o=J.settings.colHeaders[l]:(0,h.isFunction)(J.settings.colHeaders)?o=J.settings.colHeaders(l):J.settings.colHeaders&&"string"!=typeof J.settings.colHeaders&&"number"!=typeof J.settings.colHeaders&&(o=(0,P.spreadsheetColumnLabel)(s))}return o},this._getColWidthFromSettings=function(e){var t=q.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==J.settings.width||(n=t.colWidths),void 0!==n&&null!==n){switch(void 0===n?"undefined":a(n)){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(e){var t=q._getColWidthFromSettings(e);return t=q.runHooks("modifyColWidth",t,e),void 0===t&&(t=x.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=J.settings.rowHeights;if(void 0!==t&&null!==t){switch(void 0===t?"undefined":a(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=q._getRowHeightFromSettings(e);return t=q.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return q.runHooks("modifySourceLength")||(q.getSourceData()?q.getSourceData().length:0)},this.countSourceCols=function(){var e=q.getSourceData()&&q.getSourceData()[0]?q.getSourceData()[0]:[];return(0,b.isObject)(e)?(0,b.deepObjectSize)(e):e.length||0},this.countRows=function(){return Q.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,n=0;if("array"===q.dataType&&(t=J.settings.data&&J.settings.data[0]&&J.settings.data[0].length),t&&(n=J.settings.data[0].length),J.settings.columns){if((0,h.isFunction)(J.settings.columns))if("array"===q.dataType){for(var o=0,r=0;n>r;r++)J.settings.columns(r)&&(o+=1);n=o}else"object"!==q.dataType&&"function"!==q.dataType||(n=Q.colToPropCache.length);else n=J.settings.columns.length}else"object"!==q.dataType&&"function"!==q.dataType||(n=Q.colToPropCache.length);return Math.min(e,n)},this.rowOffset=function(){return q.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return q.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return q.view.wt.drawn?q.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return q.view.wt.drawn?q.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return q.view.wt.drawn?q.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return q.view.wt.drawn?q.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,R.rangeEachReverse)(q.countRows()-1,function(n){if(q.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];if(1>q.countRows())return 0;var t=0;return(0,R.rangeEachReverse)(q.countCols()-1,function(n){if(q.isEmptyCol(n))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return J.settings.isEmptyRow.call(q,e)},this.isEmptyCol=function(e){return J.settings.isEmptyCol.call(q,e)},this.selectCell=function(e,t,n,o){var r=4>=arguments.length||void 0===arguments[4]||arguments[4],i=5>=arguments.length||void 0===arguments[5]||arguments[5];return!(0,d.isUndefined)(e)&&!(0,d.isUndefined)(t)&&this.selectCells([[e,t,n,o]],r,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=1>=arguments.length||void 0===arguments[1]||arguments[1],n=2>=arguments.length||void 0===arguments[2]||arguments[2];!1===t&&(X=!0);var o=re.selectCells(e);return o&&n&&q.listen(),X=!1,o},this.selectCellByProp=function(e,t,n,o){var r=4>=arguments.length||void 0===arguments[4]||arguments[4],i=5>=arguments.length||void 0===arguments[5]||arguments[5];return(0,f.warn)((0,S.toSingleLine)(l)),this.selectCells([[e,t,n,o]],r,i)},this.selectColumns=function(e){return re.selectColumns(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e)},this.selectRows=function(e){return re.selectRows(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e)},this.deselectCell=function(){re.deselect()},this.selectAll=function(){X=!0,re.selectAll(),X=!1},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=!n,i=!o,a=!1;return void 0!==e&&void 0!==t&&(a=q.view.scrollViewport(new x.CellCoords(e,t),r,o,n,i)),"number"==typeof e&&"number"!=typeof t&&(a=q.view.scrollViewportVertically(e,r,n)),"number"==typeof t&&"number"!=typeof e&&(a=q.view.scrollViewportHorizontally(t,o,i)),a},this.destroy=function(){q._clearTimeouts(),q._clearImmediates(),q.view&&q.view.destroy(),ee&&ee.destroy(),ee=null,(0,z.stopObserving)();(0,u.empty)(q.rootElement),$.destroy(),ne&&ne.destroy(),q.runHooks("afterDestroy"),j.default.getSingleton().destroy(q),(0,b.objectEach)(q,function(e,t,n){(0,h.isFunction)(e)?n[t]=A(t):"guid"!==t&&(n[t]=null)}),q.isDestroyed=!0,Q&&Q.destroy(),Q=null,J=null,te=null,re=null,ne=null,q=null,Z=null},this.getActiveEditor=function(){return ne.getActiveEditor()},this.getPlugin=function(e){return(0,E.getPlugin)(this,e)},this.getInstance=function(){return q},this.addHook=function(e,t){j.default.getSingleton().add(e,t,q)},this.hasHook=function(e){return j.default.getSingleton().has(e,q)},this.addHookOnce=function(e,t){j.default.getSingleton().once(e,t,q)},this.removeHook=function(e,t){j.default.getSingleton().remove(e,t,q)},this.runHooks=function(e,t,n,o,r,i,a){return j.default.getSingleton().run(q,e,t,n,o,r,i,a)},this.getTranslatedPhrase=function(e,t){return(0,Y.getTranslatedPhrase)(J.settings.language,e,t)},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,_.arrayEach)(this.timeouts,function(e){clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,_.arrayEach)(this.immediates,function(e){clearImmediate(e)})},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=1>=arguments.length||void 0===arguments[1]||arguments[1];ne.destroyEditor(e),q.view.render(),t&&re.isSelected()&&ne.prepareEditor()},j.default.getSingleton().run(q,"construct")}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["Deprecation warning: This method is going to be removed in the next release.\n      If you want to select a cell using props, please use the `selectCell` method."],["Deprecation warning: This method is going to be removed in the next release.\n      If you want to select a cell using props, please use the \\`selectCell\\` method."]);t.default=i;var u=n(0),c=n(91),h=n(43),f=n(48),d=n(10),p=n(39),g=n(511),v=o(g),m=n(514),y=o(m),w=n(6),C=o(w),b=n(1),_=n(2),S=n(42),E=n(8),O=n(14),T=n(34),k=n(33),R=n(5),M=n(515),D=o(M),A=n(516),N=o(A),P=n(92),H=n(440),L=n(441),x=n(4),I=n(16),j=o(I),F=n(442),W=o(F),B=n(89),Y=n(443),V=n(71),U=n(444),z=n(93),G=n(445),K=null},function(e,t,n){"use strict";function o(e,t){function n(){}(0,r.inherit)(n,e);for(var o=0,i=t.length;i>o;o++)n.prototype[t[o]]=void 0;return n}t.__esModule=!0,t.columnFactory=o;var r=n(1)},function(e,t,n){"use strict";function o(e){for(var t=e+1,n="",o=void 0;t>0;)o=(t-1)%d,n=String.fromCharCode(65+o)+n,t=parseInt((t-o)/d,10);return n}function r(e){var t=0;if(e)for(var n=0,o=e.length-1;e.length>n;n+=1,o-=1)t+=Math.pow(d,o)*(f.indexOf(e[n])+1);return t-=1}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=[],r=void 0,i=void 0;for(r=0;e>r;r++){var a=[];for(i=0;t>i;i++)a.push(o(i)+(r+1));n.push(a)}return n}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=[],r=void 0,i=void 0;for(r=0;e>r;r++){var a={};for(i=0;t>i;i++)a["prop"+i]=o(i)+(r+1);n.push(a)}return n}function s(e,t){for(var n=[],o=void 0,r=0;e>r;r++){o=[];for(var i=0;t>i;i++)o.push("");n.push(o)}return n}function l(e){var t=[],n=void 0,o=void 0,r=void 0,i=void 0,a=0;for(n=0,o=e.length;o>n;n++)for(r=0,i=e[n].length;i>r;r++)r===a&&(t.push([]),a+=1),t[r].push(e[n][r]);return t}function u(e,t){var n=void 0===t||t;return function(t,o){return function t(o){if(o){if((0,h.hasOwnProperty)(o,e)&&void 0!==o[e])return o[e];if((0,h.hasOwnProperty)(o,"type")&&o.type){if("string"!=typeof o.type)throw Error("Cell type must be a string ");var r=(0,c.getCellType)(o.type);if((0,h.hasOwnProperty)(r,e))return r[e];if(n)return}return t(Object.getPrototypeOf(o))}}("number"==typeof t?this.getCellMeta(t,o):t)}}t.__esModule=!0,t.spreadsheetColumnLabel=o,t.spreadsheetColumnIndex=r,t.createSpreadsheetData=i,t.createSpreadsheetObjectData=a,t.createEmptySpreadsheetData=s,t.translateRowsToColumns=l,t.cellMethodLookupFactory=u;var c=n(89),h=n(1),f="ABCDEFGHIJKLMNOPQRSTUVWXYZ",d=f.length},function(e,t,n){"use strict";function o(){0===p&&(f.addEventListener(document,"keydown",function(e){d.has(e.keyCode)||d.add(e.keyCode)}),f.addEventListener(document,"keyup",function(e){d.has(e.keyCode)&&d.delete(e.keyCode)}),f.addEventListener(document,"visibilitychange",function(){document.hidden&&d.clear()})),p+=1}function r(){p>0&&(p-=1),0===p&&i()}function i(){f.clearEvents(),d.clear(),p=0}function a(e){return Array.from(d.values()).some(function(t){return(0,h.isKey)(t,e)})}function s(){var e=Array.from(d.values());return e.some(function(e){return(0,h.isCtrlMetaKey)(e)})&&e.every(function(e){return!(0,h.isPrintableChar)(e)})}function l(){return p}t.__esModule=!0,t.stopObserving=t.startObserving=t.isPressedCtrlKey=t.isPressed=t._resetState=t._getRefCount=void 0;var u=n(6),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=n(21),f=new c.default,d=new Set,p=0;t._getRefCount=l,t._resetState=i,t.isPressed=a,t.isPressedCtrlKey=s,t.startObserving=o,t.stopObserving=r},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=n(2);t.default=function(){function e(t){o(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return r(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw 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&&void 0!==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.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw 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,a.arrayEach)(this.rows,function(t){e(t.row,(0,i.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,a.arrayEach)(this.columns,function(t){e(t.col,(0,i.outerWidth)(t.table))})}},{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=document,n=t.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){(0,a.arrayEach)(t.strings,function(t){n.appendChild(e.createColElement(t.col))})}),n}},{key:"createRow",value:function(e){var t=this,n=document,o=n.createDocumentFragment(),r=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),o.appendChild(r)),this.samples.forEach(function(r){(0,a.arrayEach)(r.strings,function(r){var i=r.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");s(t.hot,l,e,i,t.hot.colToProp(i),r.value,a),o.appendChild(l)})}),o}},{key:"createColumnHeadersRow",value:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var o=t.createElement("th");this.hot.view.appendColHeader(-1,o),n.appendChild(o)}return this.samples.forEach(function(o){(0,a.arrayEach)(o.strings,function(o){var r=o.col,i=t.createElement("th");e.hot.view.appendColHeader(r,i),n.appendChild(i)})}),n}},{key:"createCol",value:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(r){(0,a.arrayEach)(r.strings,function(r){var i=r.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),l=n.createElement("td"),u=n.createElement("tr");s(t.hot,l,i,e,t.hot.colToProp(e),r.value,a),u.appendChild(l),o.appendChild(u)})}),o}},{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=document,n=t.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",n}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),r=t.createElement("thead"),a=t.createElement("tbody"),s=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&o.appendChild(s),this.isHorizontal()&&(l.appendChild(u),r.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(r),this.isVertical()&&a.appendChild(l),o.appendChild(a),(0,i.addClass)(o,e),n.appendChild(o),{fragment:n,table:o,tHead:r,tBody:a,colGroup:s,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div"),r="htGhostTable htAutoSize "+e.trim();return(0,i.addClass)(o,r),n.appendChild(o),{fragment:n,container:o}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}()},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}t.__esModule=!0;var r=n(2),i=n(1),a=n(5),s={_arrayMap:[],getValueByIndex:function(e){var t=this._arrayMap.length,n=null;return t>e&&(n=this._arrayMap[e]),n},getIndexByValue:function(e){var t=void 0;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=(0,r.arrayMax)(this._arrayMap)+1,i=[];return(0,a.rangeEach)(n-1,function(n){i.push(t._arrayMap.splice(e+n,0,o+n))}),i},removeItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=[];if(Array.isArray(e)){var i=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),o=(0,r.arrayReduce)(e,function(e,n){return t._arrayMap.splice(n,1),e.concat(i.slice(n,n+1))},[])}else o=this._arrayMap.splice(e,n);return o},unshiftItems:function(e){function t(e){return(0,r.arrayReduce)(o,function(t,n){var o=t;return e>n&&(o+=1),o},0)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=this.removeItems(e,n);this._arrayMap=(0,r.arrayMap)(this._arrayMap,function(e){var n=e,o=t(n);return o&&(n-=o),n})},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=(0,r.arrayMap)(this._arrayMap,function(t){var o=t;return e>o||(o+=n),o}),(0,a.rangeEach)(n-1,function(n){t._arrayMap.splice(e+n,0,e+n)})},swapIndexes:function(e,t){var n;(n=this._arrayMap).splice.apply(n,[t,0].concat(o(this._arrayMap.splice(e,1))))},clearMap:function(){this._arrayMap.length=0}};(0,i.defineGetter)(s,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1}),t.default=s},function(e,t,n){"use strict";function o(){return{name:r}}t.__esModule=!0,t.default=o;var r=t.KEY="---------"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e={};return(0,C.objectEach)(H,function(t,n){e[n]=t()}),e}function a(e,t){-1===P.indexOf(e)&&(H[e]=t)}t.__esModule=!0,t.ITEMS=t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var s,l=n(554);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return l.KEY}});var u=n(555);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=n(556);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var h=n(557);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return h.KEY}});var f=n(558);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return f.KEY}});var d=n(559);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return d.KEY}});var p=n(560);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return p.KEY}});var g=n(561);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var v=n(562);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return v.KEY}});var m=n(563);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return m.KEY}});var y=n(96);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var w=n(564);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return w.KEY}}),t.predefinedItems=i,t.addItem=a;var C=n(1),b=o(l),_=o(u),S=o(c),E=o(h),O=o(f),T=o(d),k=o(p),R=o(g),M=o(v),D=o(m),A=o(y),N=o(w),P=t.ITEMS=[v.KEY,m.KEY,c.KEY,h.KEY,u.KEY,g.KEY,p.KEY,w.KEY,d.KEY,f.KEY,l.KEY,y.KEY],H=(s={},r(s,y.KEY,A.default),r(s,v.KEY,M.default),r(s,m.KEY,D.default),r(s,c.KEY,S.default),r(s,h.KEY,E.default),r(s,u.KEY,_.default),r(s,g.KEY,R.default),r(s,p.KEY,k.default),r(s,w.KEY,N.default),r(s,d.KEY,T.default),r(s,f.KEY,O.default),r(s,l.KEY,b.default),s)},function(e,t,n){"use strict";function o(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=o(["The merged cell declared with {row: ",", col: ",", rowspan: \n    ",", colspan: ","} contains negative values, which is not supported. It \n    will not be added to the collection."],["The merged cell declared with {row: ",", col: ",", rowspan: \n    ",", colspan: ","} contains negative values, which is not supported. It \n    will not be added to the collection."]),s=o(["The merged cell declared at [",", ","] is positioned (or positioned partially) \n       outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned (or positioned partially) \n       outside of the table range. It was not added to the table, please fix your setup."]),l=o(["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" \n     and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.']),u=o(["The merged cell declared at [",", ",'] has "rowspan" or "colspan" declared as \n      "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan" or "colspan" declared as \n      "0", which is not supported. It cannot be added to the collection.']),c=n(4),h=n(42);t.default=function(){function e(t,n,o,i){r(this,e),this.row=t,this.col=n,this.rowspan=o,this.colspan=i,this.removed=!1}return i(e,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();0>this.row?this.row=0:this.row>t-1&&(this.row=t-1),0>this.col?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||e>this.row+this.rowspan-1||t>this.col+this.colspan-1)}},{key:"includesHorizontally",value:function(e){return e>=this.col&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return e>=this.row&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],o=t+Math.abs(e[0]||e[1])-1,r=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,o),s=Math.max(t,o),l=this[i],u=this[i]+this[r]-1;if(t>l||(this[i]+=n),n>0)u>=t&&t>l&&(this[r]+=n);else if(0>n){if(l>=a&&s>=u)return this.removed=!0,!1;if(l<a||s<l)if(a<l||u<s){if(a>=l&&u>=a&&s>u){var c=u-a+1;this[r]-=c}}else this[r]+=n;else{var h=s-l+1,f=Math.abs(n)-h;this[i]-=f+n,this[r]-=h}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?this.row+this.rowspan-1>e.row+e.rowspan-1:"up"===t?e.row>this.row:"right"===t?this.col+this.colspan-1>e.col+e.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 new c.CellRange(new c.CellCoords(this.row,this.col),new c.CellCoords(this.row,this.col),new c.CellCoords(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,h.toSingleLine)(a,e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,h.toSingleLine)(s,e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,h.toSingleLine)(l,e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,h.toSingleLine)(u,e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return 0>e.row||0>e.col||0>e.rowspan||0>e.colspan}},{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 0>e.row||0>e.col||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),e}()},function(e,t,n){"use strict";var o=n(100),r=n(45);e.exports=n(66)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=o.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return o.def(r(this,"Map"),0===e?0:e,t)}},o,!0)},function(e,t,n){"use strict";var o=n(20).f,r=n(76),i=n(62),a=n(30),s=n(64),l=n(65),u=n(109),c=n(111),h=n(112),f=n(22),d=n(32).fastKey,p=n(45),g=f?"_s":"size",v=function(e,t){var n,o=d(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,o){s(e,c,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=o&&l(o,n,e[u],e)});return i(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,o=e._f;o;o=o.n)o.r=!0,o.p&&(o.p=o.p.n=void 0),delete n[o.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),o=v(n,e);if(o){var r=o.n,i=o.p;delete n._i[o.i],o.r=!0,i&&(i.n=r),r&&(r.p=i),n._f==o&&(n._f=r),n._l==o&&(n._l=i),n[g]--}return!!o},forEach:function(e){p(this,t);for(var n,o=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(o(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(p(this,t),e)}}),f&&o(c.prototype,"size",{get:function(){return p(this,t)[g]}}),c},def:function(e,t,n){var o,r,i=v(e,t);return i?i.v=n:(e._l=i={i:r=d(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=i),o&&(o.n=i),e[g]++,"F"!==r&&(e._i[r]=i)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?c(0,n.k):"values"==t?c(0,n.v):c(0,[n.k,n.v]):(e._t=void 0,c(1))},n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){e.exports=!n(22)&&!n(23)(function(){return 7!=Object.defineProperty(n(74)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(27),r=n(24),i=n(103)(!1),a=n(78)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)n!=a&&o(s,n)&&u.push(n);for(;t.length>l;)o(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var o=n(24),r=n(25),i=n(61);e.exports=function(e){return function(t,n,a){var s,l=o(t),u=r(l.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(15).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(18);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(54),r=n(12)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){var o=n(108),r=n(12)("iterator"),i=n(54);e.exports=n(37).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(44),r=n(12)("toStringTag"),i="Arguments"==o(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:i?o(t):"Object"==(s=o(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var o=n(51),r=n(3),i=n(28),a=n(29),s=n(54),l=n(454),u=n(55),c=n(110),h=n(12)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,p,g,v,m){l(n,t,p);var y,w,C,b=function(e){if(!f&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",S="values"==g,E=!1,O=e.prototype,T=O[h]||O["@@iterator"]||g&&O[g],k=T||b(g),R=g?S?b("entries"):k:void 0,M="Array"==t?O.entries||T:T;if(M&&(C=c(M.call(new e)))!==Object.prototype&&C.next&&(u(C,_,!0),o||"function"==typeof C[h]||a(C,h,d)),S&&T&&"values"!==T.name&&(E=!0,k=function(){return T.call(this)}),o&&!m||!f&&!E&&O[h]||a(O,h,k),s[t]=k,s[_]=d,g)if(y={values:S?k:b("values"),keys:v?k:b("keys"),entries:R},m)for(w in y)w in O||i(O,w,y[w]);else r(r.P+r.F*(f||E),t,y);return y}},function(e,t,n){var o=n(27),r=n(31),i=n(78)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o=n(15),r=n(20),i=n(22),a=n(12)("species");e.exports=function(e){var t=o[e];i&&t&&!t[a]&&r.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(9),r=n(18),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(30)(Function.call,n(67).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){"use strict";var o=n(100),r=n(45);e.exports=n(66)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"Set"),e=0===e?0:e,e)}},o)},function(e,t,n){"use strict";var o,r=n(68)(0),i=n(28),a=n(32),s=n(117),l=n(118),u=n(9),c=n(23),h=n(45),f=a.getWeak,d=Object.isExtensible,p=l.ufstore,g={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(e){if(u(e)){var t=f(e);return!0===t?p(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(h(this,"WeakMap"),e,t)}},y=e.exports=n(66)("WeakMap",v,m,l,!0,!0);c(function(){return 7!=(new y).set((Object.freeze||Object)(g),7).get(g)})&&(o=l.getConstructor(v,"WeakMap"),s(o.prototype,m),a.NEED=!0,r(["delete","has","get","set"],function(e){var t=y.prototype,n=t[e];i(t,e,function(t,r){if(u(t)&&!d(t)){this._f||(this._f=new o);var i=this._f[e](t,r);return"set"==e?this:i}return n.call(this,t,r)})}))},function(e,t,n){var o=n(44);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(35),r=n(69),i=n(56),a=n(31),s=n(77),l=Object.assign;e.exports=!l||n(23)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=r.f,h=i.f;l>u;)for(var f,d=s(arguments[u++]),p=c?o(d).concat(c(d)):o(d),g=p.length,v=0;g>v;)h.call(d,f=p[v++])&&(n[f]=d[f]);return n}:l},function(e,t,n){"use strict";var o=n(62),r=n(32).getWeak,i=n(18),a=n(9),s=n(64),l=n(65),u=n(68),c=n(27),h=n(45),f=u(5),d=u(6),p=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},m=function(e,t){return f(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var u=e(function(e,o){s(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=o&&l(o,n,e[i],e)});return o(u.prototype,{delete:function(e){if(!a(e))return!1;var n=r(e);return!0===n?g(h(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=r(e);return!0===n?g(h(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var o=r(i(t),!0);return!0===o?g(e).set(t,n):o[e._i]=n,e},ufstore:g}},function(e,t,n){"use strict";var o=n(118),r=n(45);n(66)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"WeakSet"),e,!0)}},o,!1,!0)},function(e,t,n){"use strict";var o,r,i,a,s=n(51),l=n(15),u=n(30),c=n(108),h=n(3),f=n(9),d=n(63),p=n(64),g=n(65),v=n(458),m=n(82).set,y=n(460)(),w=n(121),C=n(461),b=n(83),_=n(462),S=l.TypeError,E=l.process,O=E&&E.versions,T=O&&O.v8||"",k=l.Promise,R="process"==c(E),M=function(){},D=r=w.f,A=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(12)("species")]=function(e){e(M,M)};return(R||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==T.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var o=e._v,r=1==e._s,i=0;n.length>i;)!function(t){var n,i,a,s=r?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(r||(2==e._h&&x(e),e._h=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),a=!0)),n===t.promise?u(S("Promise-chain cycle")):(i=N(n))?i.call(n,l,u):l(n)):u(o)}catch(e){c&&!a&&c.exit(),u(e)}}(n[i++]);e._c=[],e._n=!1,t&&!e._h&&H(e)})}},H=function(e){m.call(l,function(){var t,n,o,r=e._v,i=L(e);if(i&&(t=C(function(){R?E.emit("unhandledRejection",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(o=l.console)&&o.error&&o.error("Unhandled promise rejection",r)}),e._h=R||L(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},x=function(e){m.call(l,function(){var t;R?E.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},I=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=N(e))?y(function(){var o={_w:n,_d:!1};try{t.call(e,u(j,o,1),u(I,o,1))}catch(e){I.call(o,e)}}):(n._v=e,n._s=1,P(n,!1))}catch(e){I.call({_w:n,_d:!1},e)}}};A||(k=function(e){p(this,k,"Promise","_h"),d(e),o.call(this);try{e(u(j,this,1),u(I,this,1))}catch(e){I.call(this,e)}},o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n(62)(k.prototype,{then:function(e,t){var n=D(v(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new o;this.promise=e,this.resolve=u(j,e,1),this.reject=u(I,e,1)},w.f=D=function(e){return e===k||e===a?new i(e):r(e)}),h(h.G+h.W+h.F*!A,{Promise:k}),n(55)(k,"Promise"),n(112)("Promise"),a=n(37).Promise,h(h.S+h.F*!A,"Promise",{reject:function(e){var t=D(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!A),"Promise",{resolve:function(e){return _(s&&this===a?k:this,e)}}),h(h.S+h.F*!(A&&n(81)(function(e){k.all(e).catch(M)})),"Promise",{all:function(e){var t=this,n=D(t),o=n.resolve,r=n.reject,i=C(function(){var n=[],i=0,a=1;g(e,!1,function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||o(n))},r)}),--a||o(n)});return i.e&&r(i.v),n.promise},race:function(e){var t=this,n=D(t),o=n.reject,r=C(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},function(e,t,n){"use strict";function o(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=r(t),this.reject=r(n)}var r=n(63);e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var o=n(15),r=n(27),i=n(22),a=n(3),s=n(28),l=n(32).KEY,u=n(23),c=n(79),h=n(55),f=n(52),d=n(12),p=n(123),g=n(463),v=n(464),m=n(116),y=n(18),w=n(9),C=n(24),b=n(75),_=n(53),S=n(76),E=n(124),O=n(67),T=n(20),k=n(35),R=O.f,M=T.f,D=E.f,A=o.Symbol,N=o.JSON,P=N&&N.stringify,H=d("_hidden"),L=d("toPrimitive"),x={}.propertyIsEnumerable,I=c("symbol-registry"),j=c("symbols"),F=c("op-symbols"),W=Object.prototype,B="function"==typeof A,Y=o.QObject,V=!Y||!Y.prototype||!Y.prototype.findChild,U=i&&u(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=R(W,t);o&&delete W[t],M(e,t,n),o&&e!==W&&M(W,t,o)}:M,z=function(e){var t=j[e]=S(A.prototype);return t._k=e,t},G=B&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},K=function(e,t,n){return e===W&&K(F,t,n),y(e),t=b(t,!0),y(n),r(j,t)?(n.enumerable?(r(e,H)&&e[H][t]&&(e[H][t]=!1),n=S(n,{enumerable:_(0,!1)})):(r(e,H)||M(e,H,_(1,{})),e[H][t]=!0),U(e,t,n)):M(e,t,n)},X=function(e,t){y(e);for(var n,o=v(t=C(t)),r=0,i=o.length;i>r;)K(e,n=o[r++],t[n]);return e},q=function(e,t){return void 0===t?S(e):X(S(e),t)},Z=function(e){var t=x.call(this,e=b(e,!0));return!(this===W&&r(j,e)&&!r(F,e))&&(!(t||!r(this,e)||!r(j,e)||r(this,H)&&this[H][e])||t)},$=function(e,t){if(e=C(e),t=b(t,!0),e!==W||!r(j,t)||r(F,t)){var n=R(e,t);return!n||!r(j,t)||r(e,H)&&e[H][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=D(C(e)),o=[],i=0;n.length>i;)r(j,t=n[i++])||t==H||t==l||o.push(t);return o},Q=function(e){for(var t,n=e===W,o=D(n?F:C(e)),i=[],a=0;o.length>a;)!r(j,t=o[a++])||n&&!r(W,t)||i.push(j[t]);return i};B||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(F,n),r(this,H)&&r(this[H],e)&&(this[H][e]=!1),U(this,e,_(1,n))};return i&&V&&U(W,e,{configurable:!0,set:t}),z(e)},s(A.prototype,"toString",function(){return this._k}),O.f=$,T.f=K,n(84).f=E.f=J,n(56).f=Z,n(69).f=Q,i&&!n(51)&&s(W,"propertyIsEnumerable",Z,!0),p.f=function(e){return z(d(e))}),a(a.G+a.W+a.F*!B,{Symbol:A});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var ne=k(d.store),oe=0;ne.length>oe;)g(ne[oe++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return r(I,e+="")?I[e]:I[e]=A(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!B,"Object",{create:q,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),N&&a(a.S+a.F*(!B||u(function(){var e=A();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(w(t)||void 0!==e)&&!G(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),o[1]=t,P.apply(N,o)}}),A.prototype[L]||n(29)(A.prototype,L,A.prototype.valueOf),h(A,"Symbol"),h(Math,"Math",!0),h(o.JSON,"JSON",!0)},function(e,t,n){t.f=n(12)},function(e,t,n){var o=n(24),r=n(84).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):r(o(e))}},function(e,t,n){var o=n(9),r=n(32).onFreeze;n(26)("freeze",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(9),r=n(32).onFreeze;n(26)("seal",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(9),r=n(32).onFreeze;n(26)("preventExtensions",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(9);n(26)("isFrozen",function(e){return function(t){return!o(t)||!!e&&e(t)}})},function(e,t,n){var o=n(9);n(26)("isSealed",function(e){return function(t){return!o(t)||!!e&&e(t)}})},function(e,t,n){var o=n(9);n(26)("isExtensible",function(e){return function(t){return!!o(t)&&(!e||e(t))}})},function(e,t,n){var o=n(24),r=n(67).f;n(26)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(31),r=n(110);n(26)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(31),r=n(35);n(26)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){n(26)("getOwnPropertyNames",function(){return n(124).f})},function(e,t,n){var o=n(3);o(o.S+o.F,"Object",{assign:n(117)})},function(e,t,n){var o=n(3);o(o.S,"Object",{is:n(465)})},function(e,t,n){var o=n(3);o(o.S,"Object",{setPrototypeOf:n(113).set})},function(e,t,n){var o=n(20).f,r=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in r||n(22)&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){var o=n(3),r=n(24),i=n(25);o(o.S,"String",{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],s=0;n>s;)a.push(t[s++]+""),o>s&&a.push(arguments[s]+"");return a.join("")}})},function(e,t,n){var o=n(3),r=n(61),i=String.fromCharCode,a=String.fromCodePoint;o(o.S+o.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(65536>t?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(3),r=n(466)(!1);o(o.P,"String",{codePointAt:function(e){return r(this,e)}})},function(e,t,n){var o=n(3);o(o.P,"String",{repeat:n(143)})},function(e,t,n){"use strict";var o=n(60),r=n(36);e.exports=function(e){var t=r(this)+"",n="",i=o(e);if(0>i||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";var o=n(3),r=n(25),i=n(85),a="".startsWith;o(o.P+o.F*n(86)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=e+"";return a?a.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){var o=n(9),r=n(44),i=n(12)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";var o=n(3),r=n(25),i=n(85),a="".endsWith;o(o.P+o.F*n(86)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,o=r(t.length),s=void 0===n?o:Math.min(r(n),o),l=e+"";return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){"use strict";var o=n(3),r=n(85);o(o.P+o.F*n(86)("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(22)&&"g"!=/./g.flags&&n(20).f(RegExp.prototype,"flags",{configurable:!0,get:n(467)})},function(e,t,n){n(70)("match",1,function(e,t,n){return[function(n){"use strict";var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o):RegExp(n)[t](o+"")},n]})},function(e,t,n){n(70)("replace",2,function(e,t,n){return[function(o,r){"use strict";var i=e(this),a=void 0==o?void 0:o[t];return void 0!==a?a.call(o,i,r):n.call(i+"",o,r)},n]})},function(e,t,n){n(70)("split",2,function(e,t,o){"use strict";var r=n(145),i=o,a=[].push,s="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[s]||2!="ab".split(/(?:ab)*/)[s]||4!=".".split(/(.?)(.?)/)[s]||".".split(/()()/)[s]>1||"".split(/.?/)[s]){var l=void 0===/()??/.exec("")[1];o=function(e,t){var n=this+"";if(void 0===e&&0===t)return[];if(!r(e))return i.call(n,e,t);var o,u,c,h,f,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=void 0===t?4294967295:t>>>0,m=RegExp(e.source,p+"g");for(l||(o=RegExp("^"+m.source+"$(?!\\s)",p));(u=m.exec(n))&&((c=u.index+u[0][s])<=g||(d.push(n.slice(g,u.index)),!l&&u[s]>1&&u[0].replace(o,function(){for(f=1;arguments[s]-2>f;f++)void 0===arguments[f]&&(u[f]=void 0)}),u[s]>1&&n[s]>u.index&&a.apply(d,u.slice(1)),h=u[0][s],g=c,v>d[s]));)m.lastIndex===u.index&&m.lastIndex++;return g===n[s]?!h&&m.test("")||d.push(""):d.push(n.slice(g)),d[s]>v?d.slice(0,v):d}}else"0".split(void 0,0)[s]&&(o=function(e,t){return void 0===e&&0===t?[]:i.call(this,e,t)});return[function(n,r){var i=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,i,r):o.call(i+"",n,r)},o]})},function(e,t,n){n(70)("search",1,function(e,t,n){return[function(n){"use strict";var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o):RegExp(n)[t](o+"")},n]})},function(e,t,n){"use strict";var o=n(30),r=n(3),i=n(31),a=n(105),s=n(106),l=n(25),u=n(87),c=n(107);r(r.S+r.F*!n(81)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,h,f=i(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=c(f);if(v&&(g=o(g,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(t=l(f.length),n=new d(t);t>m;m++)u(n,m,v?g(f[m],m):f[m]);else for(h=y.call(f),n=new d;!(r=h.next()).done;m++)u(n,m,v?a(h,g,[r.value,m],!0):r.value);return n.length=m,n}})},function(e,t,n){"use strict";var o=n(3),r=n(87);o(o.S+o.F*n(23)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var o=n(3);o(o.P,"Array",{copyWithin:n(468)}),n(46)("copyWithin")},function(e,t,n){"use strict";var o=n(3),r=n(68)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(46)("find")},function(e,t,n){"use strict";var o=n(3),r=n(68)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),o(o.P+o.F*a,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(46)(i)},function(e,t,n){var o=n(3);o(o.P,"Array",{fill:n(469)}),n(46)("fill")},function(e,t,n){var o=n(3),r=n(15).isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},function(e,t,n){var o=n(3);o(o.S,"Number",{isInteger:n(161)})},function(e,t,n){var o=n(9),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){var o=n(3),r=n(161),i=Math.abs;o(o.S,"Number",{isSafeInteger:function(e){return r(e)&&9007199254740991>=i(e)}})},function(e,t,n){var o=n(3);o(o.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var o=n(3);o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var o=n(3);o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var o=n(3);o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";var o=n(3),r=n(103)(!0);o(o.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(46)("includes")},function(e,t,n){var o=n(3),r=n(169)(!1);o(o.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){var o=n(35),r=n(24),i=n(56).f;e.exports=function(e){return function(t){for(var n,a=r(t),s=o(a),l=s.length,u=0,c=[];l>u;)i.call(a,n=s[u++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){var o=n(3),r=n(169)(!0);o(o.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){var o=n(3),r=n(470),i=n(24),a=n(67),s=n(87);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,o=i(e),l=a.f,u=r(o),c={},h=0;u.length>h;)void 0!==(n=l(o,t=u[h++]))&&s(c,t,n);return c}})},function(e,t,n){"use strict";var o=n(3),r=n(173);o(o.P+o.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(n(83)),"String",{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var o=n(25),r=n(143),i=n(36);e.exports=function(e,t,n,a){var s=i(e)+"",l=s.length,u=void 0===n?" ":n+"",c=o(t);if(l>=c||""==u)return s;var h=c-l,f=r.call(u,Math.ceil(h/u.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},function(e,t,n){"use strict";var o=n(3),r=n(173);o(o.P+o.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(n(83)),"String",{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){var o=n(3),r=n(82);o(o.G+o.B,{setImmediate:r.set,clearImmediate:r.clear})},function(e,t,n){for(var o=n(88),r=n(35),i=n(28),a=n(15),s=n(29),l=n(54),u=n(12),c=u("iterator"),h=u("toStringTag"),f=l.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(d),g=0;p.length>g;g++){var v,m=p[g],y=d[m],w=a[m],C=w&&w.prototype;if(C&&(C[c]||s(C,c,f),C[h]||s(C,h,m),l[m]=f,y))for(v in o)C[v]||i(C,v,o[v],!0)}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=new WeakMap;t.default=function(){function e(t,n,r,a,s,l,u){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:function(e){return e};o(this,e),i.set(this,{viewportWidth:t,scrollOffset:n,totalColumns:r,columnWidthFn:a,overrideFn:s,onlyFullyVisible:l,stretchingColumnWidthFn:c}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=u,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return r(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),r(e,[{key:"calculate",value:function(){for(var e=0,t=!0,n=[],o=void 0,r=i.get(this),a=r.onlyFullyVisible,s=r.overrideFn,l=r.scrollOffset,u=r.totalColumns,c=r.viewportWidth,h=0;u>h;h++){o=this._getColumnWidth(h),e>l||a||(this.startColumn=h);var f=l>0?c+1:c;if(l>e||e+o>l+f||(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=h),this.endColumn=h),n.push(e),e+=o,a||(this.endColumn=h),e>=l+c){t=!1;break}}if(this.endColumn===u-1&&t)for(this.startColumn=this.endColumn;this.startColumn>0;){var d=n[this.endColumn]+o-n[this.startColumn-1];if(d>c&&a||(this.startColumn-=1),d>c)break}null!==this.startColumn&&s&&s(this),this.startPosition=n[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),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=i.get(this),o=n.totalColumns,r=0,a=0;o>a;a++){var s=this._getColumnWidth(a),l=n.stretchingColumnWidthFn(void 0,a);"number"==typeof l?t-=l:r+=s}var u=t-r;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/r,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(o-1),h=u+c;this.stretchLastWidth=0>h?c:h}}}},{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,o=i.get(this),r=o.totalColumns;if(!this.stretchAllColumnsWidth[e]){var a=Math.round(t*this.stretchAllRatio),s=o.stretchingColumnWidthFn(a,e);this.stretchAllColumnsWidth[e]=void 0===s?a:isNaN(s)?this._getColumnWidth(e):s}if(this.stretchAllColumnsWidth.length===r&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;this.stretchAllColumnsWidth.length>l;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===i.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=i.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=new WeakMap;t.default=function(){function e(t,n,r,a,s,l,u){o(this,e),i.set(this,{viewportHeight:t,scrollOffset:n,totalRows:r,rowHeightFn:a,overrideFn:s,onlyFullyVisible:l,horizontalScrollbarHeight:u}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return r(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),r(e,[{key:"calculate",value:function(){for(var t=0,n=!0,o=[],r=i.get(this),a=r.onlyFullyVisible,s=r.overrideFn,l=r.rowHeightFn,u=r.scrollOffset,c=r.totalRows,h=r.viewportHeight,f=r.horizontalScrollbarHeight||0,d=void 0,p=0;c>p;p++)if(d=l(p),isNaN(d)&&(d=e.DEFAULT_HEIGHT),t>u||a||(this.startRow=p),u>t||t+d>u+h-f||(null===this.startRow&&(this.startRow=p),this.endRow=p),o.push(t),t+=d,a||(this.endRow=p),t>=u+h-f){n=!1;break}if(this.endRow===c-1&&n)for(this.startRow=this.endRow;this.startRow>0;){var g=o[this.endRow]+d-o[this.startRow-1];if(g>h-f&&a||(this.startRow-=1),g>=h-f)break}null!==this.startRow&&s&&s(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(58),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=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;o(this,e),this.highlight=t,this.from=n,this.to=r}return r(e,[{key:"setHighlight",value:function(e){return this.highlight=e,this}},{key:"setFrom",value:function(e){return this.from=e,this}},{key:"setTo",value:function(e){return this.to=e,this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,o=this.getTopLeftCorner(),r=this.getBottomRightCorner();return!(o.row>t||t>r.row||o.col>n||n>r.col)}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{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.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getTopRightCorner().col>=e.getTopLeftCorner().col&&this.getTopRightCorner().col<=e.getTopRightCorner().col||this.getTopLeftCorner().col<=e.getTopRightCorner().col&&this.getTopLeftCorner().col>=e.getTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getBottomRightCorner().row>=e.getTopRightCorner().row&&this.getBottomRightCorner().row<=e.getBottomRightCorner().row||this.getTopRightCorner().row<=e.getBottomRightCorner().row&&this.getTopRightCorner().row>=e.getTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.row>e.row||t.col>e.col||e.row>n.row||e.col>n.col)&&(this.from=new a.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new a.default(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.getTopLeftCorner(),n=this.getBottomRightCorner(),o=this.getDirection(),r=e.getTopLeftCorner(),i=e.getBottomRightCorner(),s=Math.min(t.row,r.row),l=Math.min(t.col,r.col),u=Math.max(n.row,i.row),c=Math.max(n.col,i.col),h=new a.default(s,l),f=new a.default(u,c);return this.from=h,this.to=f,this.setDirection(o),this.highlight.row===this.getBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getTopRightCorner().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.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var r=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=r[0],this.to=r[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:"getTopLeftCorner",value:function(){return new a.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new a.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new a.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new a.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new a.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new a.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new a.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new a.default(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof a.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new a.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new a.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new a.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new a.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},n={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},o=[];return t.top===n.top&&o.push("top"),t.right===n.right&&o.push("right"),t.bottom===n.bottom&&o.push("bottom"),t.left===n.left&&o.push("left"),o}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var r=e.col;t.col>=r;r++)this.from.row===o&&this.from.col===r||this.to.row===o&&this.to.col===r||n.push(new a.default(o,r));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var r=e.col;t.col>=r;r++)n.push(e.row===o&&e.col===r?e:t.row===o&&t.col===r?t:new a.default(o,r));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;n.row>=o;o++)for(var r=t.col;n.col>=r;r++){var i=e(o,r);if(!1===i)return}}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n,r){o(this,e),this.offset=t,this.total=n,this.countTH=r}return r(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}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n,r){o(this,e),this.offset=t,this.total=n,this.countTH=r}return r(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}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),s=n(1),l=n(33),u=n(303),c=o(u),h=n(304),f=o(h),d=n(305),p=o(d),g=n(306),v=o(g),m=n(307),y=o(m),w=n(309),C=o(w);t.default=function(){function e(t){r(this,e);var n=[];if(this.guid="wt_"+(0,l.randomString)(),t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=new y.default(this,t.table,t.wtRootElement),this.wtScroll=new p.default(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new c.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new v.default(this,t),this.wtTable=new y.default(this,t.table),this.wtScroll=new p.default(this),this.wtViewport=new C.default(this),this.wtEvent=new c.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new f.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var o=0,i=this.wtTable.THEAD.childNodes[0].childNodes.length;i>o;o++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[o].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,a.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return i(e,[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||(0,a.isVisible)(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){if(1>=arguments.length||void 0===arguments[1]||!arguments[1])return this.wtTable.getCell(e);var t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),r=this.wtSettings.getSetting("fixedColumnsLeft");if(n>e.row&&r>e.col)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(n>e.row)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(r>e.col&&e.row>=t-o){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(r>e.col)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(t>e.row&&e.row>t-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollViewport",value:function(e,t,n,o,r){return this.wtScroll.scrollViewport(e,t,n,o,r)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isOverlayName",value:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t={rowHeaders:["array"],columnHeaders:["array"]},n=[],o=[];(0,s.objectEach)(t,function(t,r){t.indexOf("array")>-1&&e.getSetting(r).length&&o.push("ht"+(0,l.toUpperCaseFirst)(r)),n.push("ht"+(0,l.toUpperCaseFirst)(r))}),(0,a.removeClass)(this.wtTable.wtRootElement.parentNode,n),(0,a.addClass)(this.wtTable.wtRootElement.parentNode,o)}},{key:"getSetting",value:function(e,t,n,o,r){return this.wtSettings.getSetting(e,t,n,o,r)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),e}()},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){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},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";function o(e){var t=this,n=new l.default(e),o=void 0;this.instance=e;var s=[null,null];this.dblClickTimeout=[null,null];var u=function(e){var n=document.activeElement,o=(0,i.partial)(r.getParent,e.realTarget),a=e.realTarget;if(a!==n&&o(0)!==n&&o(1)!==n){var l=t.parentCell(a);(0,r.hasClass)(a,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,a):l.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,l.coords,l.TD,t.instance),2!==e.button&&l.TD&&(s[0]=l.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){s[0]=null},1e3))}},c=function(e){if(t.instance.hasSetting("onCellContextMenu")){var n=t.parentCell(e.realTarget);n.TD&&t.instance.getSetting("onCellContextMenu",e,n.coords,n.TD,t.instance)}},h=function(){t.instance.touchMoving=!0},f=function(e){n.addEventListener(this,"touchmove",h),t.checkIfTouchMove=setTimeout(function(){!0===t.instance.touchMoving&&(t.instance.touchMoving=void 0,n.removeEventListener("touchmove",h,!1)),u(e)},30)},d=function(e){var n=void 0,o=void 0,i=void 0;t.instance.hasSetting("onCellMouseOver")&&(n=t.instance.wtTable.TABLE,o=(0,r.closestDown)(e.realTarget,["TD","TH"],n),i=t.instance.cloneSource||t.instance,o&&o!==i.lastMouseOver&&(0,r.isChildOf)(o,n)&&(i.lastMouseOver=o,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(o),o,t.instance)))},p=function(e){var n=void 0,o=void 0,i=void 0;t.instance.hasSetting("onCellMouseOut")&&(n=t.instance.wtTable.TABLE,o=(0,r.closestDown)(e.realTarget,["TD","TH"],n),i=(0,r.closestDown)(e.relatedTarget,["TD","TH"],n),o&&o!==i&&(0,r.isChildOf)(o,n)&&t.instance.getSetting("onCellMouseOut",e,t.instance.wtTable.getCoords(o),o,t.instance))},g=function(e){if(2!==e.button){var n=t.parentCell(e.realTarget);n.TD===s[0]&&n.TD===s[1]?((0,r.hasClass)(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,t.instance):t.instance.getSetting("onCellDblClick",e,n.coords,n.TD,t.instance),s[0]=null,s[1]=null):n.TD===s[0]?(t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance),s[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){s[1]=null},500)):n.TD&&t.instance.hasSetting("onCellMouseUp")&&t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance)}},v=function(e){var n=t.parentCell(e),r=n.coords;if(o&&r){var i=[r.row,o.from.row],a=i[0],s=i[1],l=[r.col,o.from.col],u=l[0],c=l[1];return a===s&&u===c}return!1},m=function(e){var t=["A","BUTTON","INPUT"],n=e.target;!1!==v(n)&&!1!==t.includes(n.tagName)||(e.preventDefault(),g(e))};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",u),n.addEventListener(this.instance.wtTable.holder,"contextmenu",c),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",d),n.addEventListener(this.instance.wtTable.TABLE,"mouseout",p),n.addEventListener(this.instance.wtTable.holder,"mouseup",g),this.instance.wtTable.holder.parentNode.parentNode&&(0,a.isMobileBrowser)()&&!t.instance.wtTable.isWorkingOnClone()){var y="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(n){o=e.selections.getCell().cellRange,t.instance.touchApplied=!0,(0,r.isChildOf)(n.target,y)&&f.call(n.target,n)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,(0,r.isChildOf)(e.target,y)&&m.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),n.addEventListener(this.instance.wtTable.holder,"scroll",function(){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}n.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}t.__esModule=!0;var r=n(0),i=n(43),a=n(39),s=n(6),l=function(e){return e&&e.__esModule?e:{default:e}}(s);o.prototype.parentCell=function(e){var t={},n=this.instance.wtTable.TABLE,o=(0,r.closestDown)(e,["TD","TH"],n);return o?(t.coords=this.instance.wtTable.getCoords(o),t.TD=o):(0,r.hasClass)(e,"wtBorder")&&(0,r.hasClass)(e,"current")?(t.coords=this.instance.selections.getCell().cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,r.hasClass)(e,"wtBorder")&&(0,r.hasClass)(e,"area")&&this.instance.selections.createOrGetArea().cellRange&&(t.coords=this.instance.selections.createOrGetArea().cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t},t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),s=n(2),l=n(21),u=n(39),c=n(6),h=o(c),f=n(41),d=o(f);t.default=function(){function e(t){r(this,e);var n=parseInt(getComputedStyle(document.body).lineHeight,10),o=1.2*parseInt(getComputedStyle(document.body).fontSize,10);this.wot=t,this.instance=this.wot,this.eventManager=new h.default(this.wot),this.wot.update("scrollbarWidth",(0,a.getScrollbarWidth)()),this.wot.update("scrollbarHeight",(0,a.getScrollbarWidth)()),this.scrollableElement=(0,a.getScrollableElement)(this.wot.wtTable.TABLE),this.prepareOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.browserLineHeight=n||o,this.registerListeners()}return i(e,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=d.default.createOverlay(d.default.CLONE_TOP,this.wot),d.default.hasOverlay(d.default.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),d.default.hasOverlay(d.default.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=d.default.createOverlay(d.default.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=d.default.createOverlay(d.default.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=d.default.createOverlay(d.default.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=d.default.createOverlay(d.default.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=d.default.createOverlay(d.default.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){if(this.wot.drawn){if(!this.wot.wtTable.holder.parentNode)return void this.destroy();this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1}}},{key:"registerListeners",value:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,n=this.leftOverlay.mainTableScrollableElement,o=[];o.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),o.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),o.push([document,"visibilitychange",function(){return e.onKeyUp()}]),o.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&o.push([n,"scroll",function(t){return e.onTableScroll(t)}]);var r=window.devicePixelRatio&&window.devicePixelRatio>1;for(r||!(0,u.isChrome)()?o.push([this.instance.wtTable.wtRootElement.parentNode,"wheel",function(t){return e.onCloneWheel(t)}]):(this.topOverlay.needFullRender&&o.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.bottomOverlay.needFullRender&&o.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.leftOverlay.needFullRender&&o.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.needFullRender&&o.push([this.topLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}]),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.needFullRender&&o.push([this.bottomLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onCloneWheel(t)}])),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&o.push([window,"wheel",function(t){var n=void 0,o=t.wheelDeltaY||t.deltaY,r=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)?n="left":e.topLeftCornerOverlay&&e.topLeftCornerOverlay.clone&&e.topLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)?n="topLeft":e.bottomLeftCornerOverlay&&e.bottomLeftCornerOverlay.clone&&e.bottomLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="bottomLeft"),("top"===n&&0!==o||"left"===n&&0!==r||"bottom"===n&&0!==o||("topLeft"===n||"bottomLeft"===n)&&(0!==o||0!==r))&&t.preventDefault()}]);o.length;){var i=o.pop();this.eventManager.addEventListener(i[0],i[1],i[2]),this.registeredListeners.push(i)}}},{key:"deregisterListeners",value:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}}},{key:"onTableScroll",value:function(e){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==window&&o!==window&&!e.target.contains(n)||t!==window&&o!==window&&!e.target.contains(t))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e){this.scrollableElement!==window&&e.preventDefault();var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target,r=n!==window&&o!==window&&!e.target.contains(n),i=t!==window&&o!==window&&!e.target.contains(t);this.keyPressed&&(r||i)||this.translateMouseWheelToScroll(e)}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,l.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;return 1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight),this.scrollVertically(t),this.scrollHorizontally(n),!1}},{key:"scrollVertically",value:function(e){if(0===e)return 0;this.scrollableElement.scrollTop+=e}},{key:"scrollHorizontally",value:function(e){if(0===e)return 0;this.scrollableElement.scrollLeft+=e}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.topOverlay.clone.wtTable.holder,t=this.leftOverlay.clone.wtTable.holder,n=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=n[0],r=n[1];if(this.horizontalScrolling=e.scrollLeft!==o,this.verticalScrolling=t.scrollTop!==r,this.horizontalScrolling){e.scrollLeft=o;var i=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;i&&(i.scrollLeft=o)}this.verticalScrolling&&(t.scrollTop=r),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.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=(0,a.getScrollableElement)(this.wot.wtTable.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,o=t.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),r=this.wot.wtViewport.getColumnHeaderHeight(),i=this.wot.wtTable.hider.style;i.width=o+this.leftOverlay.sumCellSizes(0,t)+"px",i.height=r+this.topOverlay.sumCellSizes(0,n)+1+"px",this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,s.arrayEach)(t,function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=n(5);t.default=function(){function e(t){o(this,e),this.wot=t,this.instance=t}return r(e,[{key:"scrollViewport",value:function(e,t,n,o,r){var i=this.scrollViewportHorizontally(e.col,n,r),a=this.scrollViewportVertically(e.row,t,o);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){if(!this.wot.drawn)return!1;var o=this._getVariables(),r=o.fixedColumnsLeft,i=o.leftOverlay,a=o.totalColumns,s=!1;return 0>e||e>Math.max(a-1,0)||(r>e||e>=this.getFirstVisibleColumn()&&!n?(e>this.getLastVisibleColumn()||t)&&(s=i.scrollTo(e,!0)):s=i.scrollTo(e)),s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.wot.drawn)return!1;var o=this._getVariables(),r=o.fixedRowsBottom,i=o.fixedRowsTop,a=o.topOverlay,s=o.totalRows,l=!1;return 0>e||e>Math.max(s-1,0)||(i>e||e>=this.getFirstVisibleRow()&&!t?(e>this.getLastVisibleRow()&&s-r>e||n)&&(l=a.scrollTo(e,!0)):l=a.scrollTo(e)),l}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalRows,s=e.fixedRowsTop,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var u=(0,i.offset)(n.wtRootElement),c=(0,i.innerHeight)(n.hider),h=(0,i.innerHeight)(window),f=(0,i.getScrollTop)(window);if(f>=u.top+c-h){var d=o.getColumnHeaderHeight();d+=t.sumCellSizes(0,s),(0,a.rangeEachReverse)(r,1,function(e){if(d+=t.sumCellSizes(e-1,e),f>=u.top+c-d)return l=e,!1})}}return l}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalRows,s=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var l=(0,i.offset)(n.wtRootElement),u=(0,i.innerHeight)(window),c=(0,i.getScrollTop)(window);if(l.top>c){var h=o.getColumnHeaderHeight();(0,a.rangeEach)(1,r,function(e){if(h+=t.sumCellSizes(e-1,e),l.top+h-c>=u)return s=e-2,!1})}}return s}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalColumns,s=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,i.offset)(n.wtRootElement),u=(0,i.innerWidth)(n.hider),c=(0,i.innerWidth)(window),h=(0,i.getScrollLeft)(window);if(h>=l.left+u-c){var f=o.getRowHeaderWidth();(0,a.rangeEachReverse)(r,1,function(e){if(f+=t.sumCellSizes(e-1,e),h>=l.left+u-f)return s=e,!1})}}return s}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalColumns,s=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,i.offset)(n.wtRootElement),u=(0,i.innerWidth)(window),c=(0,i.getScrollLeft)(window);if(l.left>c){var h=o.getRowHeaderWidth();(0,a.rangeEach)(1,r,function(e){if(h+=t.sumCellSizes(e-1,e),l.left+h-c>=u)return s=e-2,!1})}}return s}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=n(1);t.default=function(){function e(t,n){var r=this;o(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=r.getSetting("data",e,t);(0,i.fastInnerText)(n,void 0===o||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,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},(0,a.objectEach)(this.defaults,function(e,t){if(void 0!==n[t])r.settings[t]=n[t];else{if(void 0===e)throw Error('A required setting "'+t+'" was not provided');r.settings[t]=e}})}return r(e,[{key:"update",value:function(e,t){var n=this;return void 0===t?(0,a.objectEach)(e,function(e,t){n.settings[t]=e}):this.settings[e]=t,this.wot}},{key:"getSetting",value:function(e,t,n,o,r){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,r):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),c=n(43),h=n(58),f=o(h),d=n(180),p=o(d),g=n(181),v=o(g),m=n(308),y=o(m),w=n(41),C=o(w);t.default=function(){function e(t,n){var o=this;i(this,e),this.wot=t,this.instance=this.wot,this.TABLE=n,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,(0,u.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.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var r=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return o._modifyRowHeaderWidth(r)}}return l(e,[{key:"fixTableDomTree",value:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))}},{key:"createSpreader",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,u.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",n}},{key:"createHider",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,u.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),n}},{key:"createHolder",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,u.hasClass)(t,"wtHolder")||(n=document.createElement("div"),n.style.position="relative",n.className="wtHolder",t&&t.insertBefore(n,e),this.isWorkingOnClone()||(n.parentNode.className+="ht_master handsontable"),n.appendChild(e)),n}},{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement);if(!this.isWorkingOnClone())if(this.holder.parentNode.style.position="relative",e===window){var t=this.wot.getSetting("preventOverflow");t||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else this.holder.style.width=(0,u.getStyle)(e,"width"),this.holder.style.height=(0,u.getStyle)(e,"height"),this.holder.style.overflow=""}},{key:"isWorkingOnClone",value:function(){return!!this.wot.cloneSource}},{key:"draw",value:function(e){var t=this.wot,n=t.wtOverlays,o=t.wtViewport,r=this.instance.getSetting("totalRows"),i=this.wot.getSetting("rowHeaders").length,a=this.wot.getSetting("columnHeaders").length,s=!1,l=e;if(!this.isWorkingOnClone()&&(this.holderOffset=(0,u.offset)(this.holder),l=o.createRenderCalculators(l),i&&!this.wot.getSetting("fixedColumnsLeft"))){var c=n.leftOverlay.getScrollPosition(),h=this.correctHeaderWidth;this.correctHeaderWidth=c>0,h!==this.correctHeaderWidth&&(l=!1)}if(this.isWorkingOnClone()||(s=n.prepareOverlays()),l)this.isWorkingOnClone()||o.createVisibleCalculators(),n&&n.refresh(!0);else{this.tableOffset=this.isWorkingOnClone()?this.wot.cloneSource.wtTable.tableOffset:(0,u.offset)(this.TABLE);var f=void 0;f=C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_DEBUG)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP_LEFT_CORNER)?0:C.default.isOverlayTypeOf(this.instance.cloneOverlay,C.default.CLONE_BOTTOM)||C.default.isOverlayTypeOf(this.instance.cloneOverlay,C.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(r-this.wot.getSetting("fixedRowsBottom"),0):o.rowsRenderCalculator.startRow;var d=void 0;d=C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_DEBUG)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_LEFT)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_TOP_LEFT_CORNER)||C.default.isOverlayTypeOf(this.wot.cloneOverlay,C.default.CLONE_BOTTOM_LEFT_CORNER)?0:o.columnsRenderCalculator.startColumn,this.rowFilter=new v.default(f,r,a),this.columnFilter=new p.default(d,this.wot.getSetting("totalColumns"),i),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(l),this.isWorkingOnClone()||(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),s&&n.syncScrollWithMaster(),this.wot.drawn=!0,this}},{key:"_doDraw",value:function(){new y.default(this).render()}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll("."+e),n=0,o=t.length;o>n;n++)(0,u.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){if(this.wot.selections){var t=Array.from(this.wot.selections),n=t.length;if(e){for(var o=[],r=0;n>r;r++){for(var i=t[r].settings,a=i.highlightHeaderClassName,s=i.highlightRowClassName,l=i.highlightColumnClassName,u=t[r].classNames,c=u.length,h=0;c>h;h++)o.includes(u[h])||o.push(u[h]);a&&!o.includes(a)&&o.push(a),s&&!o.includes(s)&&o.push(s),l&&!o.includes(l)&&o.push(l)}var f=this.wot.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(f))for(var d=0;f.length>d;d++)o.push(f[d]);for(var p=o.length,g=0;p>g;g++)this.removeClassFromCells(o[g])}for(var v=0;n>v;v++)t[v].draw(this.wot,e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,o=this.wot.getSetting("onModifyGetCellCoords",t,n);if(o&&Array.isArray(o)){var r=s(o,2);t=r[0],n=r[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;var i=this.TBODY.childNodes[this.rowFilter.sourceToRendered(t)];return i?i.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)]:void 0}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,u.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,o=n.parentNode,r=(0,u.index)(n),i=t.cellIndex;return(0,u.overlayContainsElement)(C.default.CLONE_TOP_LEFT_CORNER,t)||(0,u.overlayContainsElement)(C.default.CLONE_TOP,t)?"THEAD"===o.nodeName&&(r-=o.childNodes.length):r=o===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(r):this.rowFilter.renderedToSource(r),i=(0,u.overlayContainsElement)(C.default.CLONE_TOP_LEFT_CORNER,t)||(0,u.overlayContainsElement)(C.default.CLONE_LEFT,t)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new f.default(r,i)}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(e){return this.rowFilter&&0>this.rowFilter.sourceToRendered(e)&&e>=0}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&0>this.columnFilter.sourceToRendered(e)&&e>=0}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(C.default.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(C.default.CLONE_LEFT)||this.wot.isOverlayName(C.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(C.default.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e}},{key:"getRenderedRowsCount",value:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(C.default.CLONE_DEBUG)?e=t:this.wot.isOverlayName(C.default.CLONE_TOP)||this.wot.isOverlayName(C.default.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(C.default.CLONE_BOTTOM)||this.wot.isOverlayName(C.default.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"getRowHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}},{key:"getColumnHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getColumnWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===(void 0===t?"undefined":a(t))&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getColumnWidth(e),n=null===t||void 0===t?this.instance.wtSettings.settings.defaultColumnWidth:t,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var r=o.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,c.isFunction)(e)?e():null;return Array.isArray(t)?(t=[].concat(r(t)),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.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function i(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number \n          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 the number \n          of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']),l=n(0),u=n(48),c=n(42),h=n(41),f=function(e){return e&&e.__esModule?e:{default:e}}(h),d=!1;t.default=function(){function e(t){o(this,e),this.wtTable=t,this.wot=t.instance,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0}return a(e,[{key:"render",value:function(){if(!this.wtTable.isWorkingOnClone()){var e={};if(this.wot.getSetting("beforeDraw",!0,e),!0===e.skipRender)return}this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var t=this.wtTable.getRenderedColumnsCount(),n=this.wtTable.getRenderedRowsCount(),o=this.wot.getSetting("totalColumns"),r=this.wot.getSetting("totalRows"),i=void 0,a=!1;if((f.default.isOverlayTypeOf(this.wot.cloneOverlay,f.default.CLONE_BOTTOM)||f.default.isOverlayTypeOf(this.wot.cloneOverlay,f.default.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),0>o||(this.adjustAvailableNodes(),a=!0,this.renderColumnHeaders(),this.renderRows(r,n,t),this.wtTable.isWorkingOnClone()||(i=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(t),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),a||this.adjustAvailableNodes(),this.removeRedundantRows(n),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(f.default.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(f.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var s=(0,l.outerWidth)(this.wtTable.hider),u=(0,l.outerWidth)(this.wtTable.TABLE);if(0!==s&&u!==s&&this.adjustColumnWidths(t),i!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var c=this.wtTable.getFirstRenderedColumn(),h=this.wtTable.getLastRenderedColumn(),d=this.wot.getSetting("defaultColumnWidth"),p=this.wot.getSetting("rowHeaderWidth");if(null!==(p=this.instance.getSetting("onModifyRowHeaderWidth",p))&&void 0!==p)for(var g=0;this.rowHeaderCount>g;g++){var v=Array.isArray(p)?p[g]:p;v=null===v||void 0===v?d:v,this.COLGROUP.childNodes[g].style.width=v+"px"}for(var m=c;h>m;m++){var y=this.wtTable.getStretchedColumnWidth(m);this.COLGROUP.childNodes[this.columnFilter.sourceToRendered(m)+this.rowHeaderCount].style.width=y+"px"}}this.wot.getSetting("onDraw",!0)}}},{key:"removeRedundantRows",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength-=1}},{key:"renderRows",value:function(e,t,n){for(var o=void 0,r=0,i=this.rowFilter.renderedToSource(r),a=this.wtTable.isWorkingOnClone();e>i&&i>=0&&(!d&&r>1e3&&(d=!0,(0,u.warn)((0,c.toSingleLine)(s))),void 0===t||r!==t);){if(o=this.getOrCreateTrForRow(r,o),this.renderRowHeaders(i,o),this.adjustColumns(o,n+this.rowHeaderCount),this.renderCells(i,o,n),a&&!this.wot.isOverlayName(f.default.CLONE_BOTTOM)||this.resetOversizedRow(i),o.firstChild){var l=this.wot.wtTable.getRowHeight(i);l?(l-=1,o.firstChild.style.height=l+"px"):o.firstChild.style.height=""}r+=1,i=this.rowFilter.renderedToSource(r)}}},{key:"resetOversizedRow",value:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e=this.instance.wtTable.TBODY.childNodes.length,t=e*this.instance.wtSettings.settings.defaultRowHeight,n=(0,l.innerHeight)(this.instance.wtTable.TBODY)-1,o=void 0,r=void 0,i=void 0,a=void 0,s=void 0;if(t!==n||this.instance.getSetting("fixedRowsBottom"))for(;e;)e-=1,i=this.instance.wtTable.rowFilter.renderedToSource(e),o=this.instance.wtTable.getRowHeight(i),a=this.instance.wtTable.getTrForRow(i),s=a.querySelector("th"),r=s?(0,l.innerHeight)(s):(0,l.innerHeight)(a)-1,(!o&&r>this.instance.wtSettings.settings.defaultRowHeight||r>o)&&(r+=1,this.instance.wtViewport.oversizedRows[i]=r)}}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),n=0;this.columnHeaderCount>n;n++)for(var o=-1*this.rowHeaderCount;t>o;o++)this.markIfOversizedColumnHeader(o);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,o=0,r=e.length;r>o;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height=n[o]+"px"}}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t=this.wot.wtTable.columnFilter.renderedToSource(e),n=this.columnHeaderCount,o=this.wot.wtSettings.settings.defaultRowHeight,r=void 0,i=void 0,a=void 0,s=this.wot.getSetting("columnHeaderHeight")||[];n;)n-=1,r=this.wot.wtTable.getColumnHeaderHeight(n),(i=this.wot.wtTable.getColumnHeader(t,n))&&(a=(0,l.innerHeight)(i),(!r&&a>o||a>r)&&(this.wot.wtViewport.oversizedColumnHeaders[n]=a),Array.isArray(s)?null!==s[n]&&void 0!==s[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=s[n]):isNaN(s)||(this.wot.wtViewport.oversizedColumnHeaders[n]=s),(s[n]||s)>this.wot.wtViewport.oversizedColumnHeaders[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=s[n]||s))}},{key:"renderCells",value:function(e,t,n){for(var o=void 0,r=void 0,a=0;n>a;a++)r=this.columnFilter.renderedToSource(a),o=0===a?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)]:o.nextSibling,"TH"===o.nodeName&&(o=i(o,t)),(0,l.hasClass)(o,"hide")||(o.className=""),o.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,r,o);return o}},{key:"adjustColumnWidths",value:function(e){var t=0,n=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=n.wtTable.holder,r=this.wot.getSetting("defaultColumnWidth"),i=this.wot.getSetting("rowHeaderWidth");if(o.scrollHeight>o.offsetHeight&&(t=(0,l.getScrollbarWidth)()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t),null!==(i=this.instance.getSetting("onModifyRowHeaderWidth",i))&&void 0!==i)for(var a=0;this.rowHeaderCount>a;a++){var s=Array.isArray(i)?i[a]:i;s=null===s||void 0===s?r:s,this.COLGROUP.childNodes[a].style.width=s+"px"}for(var u=0;e>u;u++){this.COLGROUP.childNodes[u+this.rowHeaderCount].style.width=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(u))+"px"}}},{key:"appendToTbody",value:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength+=1}},{key:"getOrCreateTrForRow",value:function(e,t){var n=void 0;return this.wtTable.tbodyChildrenLength>e?n=0===e?this.TBODY.firstChild:t.nextSibling:(n=this.createRow(),this.appendToTbody(n)),n.className&&n.removeAttribute("class"),n}},{key:"createRow",value:function(){for(var e=document.createElement("TR"),t=0;this.rowHeaderCount>t;t++)e.appendChild(document.createElement("TH"));return e}},{key:"renderRowHeader",value:function(e,t,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)}},{key:"renderRowHeaders",value:function(e,t){for(var n=t.firstChild,o=0;this.rowHeaderCount>o;o++)n?"TD"===n.nodeName&&(n=r(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,o,n),n=n.nextSibling}},{key:"adjustAvailableNodes",value:function(){this.adjustColGroups(),this.adjustThead()}},{key:"renderColumnHeaders",value:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;this.columnHeaderCount>t;t++)for(var n=this.getTrForColumnHeaders(t),o=-1*this.rowHeaderCount;e>o;o++){var r=this.columnFilter.renderedToSource(o);this.renderColumnHeader(t,r,n.childNodes[o+this.rowHeaderCount])}}},{key:"adjustColGroups",value:function(){for(var e=this.wtTable.getRenderedColumnsCount();e+this.rowHeaderCount>this.wtTable.colgroupChildrenLength;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength+=1;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength-=1;this.rowHeaderCount&&(0,l.addClass)(this.COLGROUP.childNodes[0],"rowHeader")}},{key:"adjustThead",value:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,o=this.columnHeaders.length;o>n;n++){for(t=this.THEAD.childNodes[n],t||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;e+this.rowHeaderCount>this.theadChildrenLength;)t.appendChild(document.createElement("TH")),this.theadChildrenLength+=1;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength-=1}var r=this.THEAD.childNodes.length;if(r>this.columnHeaders.length)for(var i=this.columnHeaders.length;r>i;i++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&(0,l.empty)(t)}},{key:"getTrForColumnHeaders",value:function(e){return this.THEAD.childNodes[e]}},{key:"renderColumnHeader",value:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)}},{key:"adjustColumns",value:function(e,t){for(var n=e.childNodes.length;t>n;){e.appendChild(document.createElement("TD")),n+=1}for(;n>t;)e.removeChild(e.lastChild),n-=1}},{key:"removeRedundantColumns",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength-=1}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),s=n(1),l=n(6),u=o(l),c=n(177),h=o(c),f=n(178),d=o(f);t.default=function(){function e(t){var n=this;r(this,e),this.wot=t,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new u.default(this.wot),this.eventManager.addEventListener(window,"resize",function(){n.clientHeight=n.getWorkspaceHeight()})}return i(e,[{key:"getWorkspaceHeight",value:function(){var e=this.instance.wtOverlays.topOverlay.trimmingContainer,t=void 0,n=0;return e===window?n=document.documentElement.clientHeight:(t=(0,a.outerHeight)(e),n=t>0&&e.clientHeight>0?e.clientHeight:1/0),n}},{key:"getWorkspaceWidth",value:function(){var e=void 0,t=this.wot.getSetting("totalColumns"),n=this.instance.wtOverlays.leftOverlay.trimmingContainer,o=void 0,r=this.wot.getSetting("stretchH"),i=document.documentElement.offsetWidth;return this.wot.getSetting("preventOverflow")?(0,a.outerWidth)(this.instance.wtTable.wtRootElement):(e=this.wot.getSetting("freezeOverlays")?Math.min(i-this.getWorkspaceOffset().left,i):Math.min(this.getContainerFillWidth(),i-this.getWorkspaceOffset().left,i),n===window&&t>0&&this.sumColumnWidths(0,t-1)>e?document.documentElement.clientWidth:n===window||"scroll"!==(o=(0,a.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"))&&"hidden"!==o&&"auto"!==o?"none"!==r&&r?e:Math.max(e,(0,a.outerWidth)(this.instance.wtTable.TABLE)):Math.max(e,n.clientWidth))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=this.wot.wtTable,o=0,r=e;t>r;)o+=n.getColumnWidth(r),r+=1;return o}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=document.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.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,a.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){return(0,a.outerWidth)(this.wot.wtTable.TABLE)||(0,a.outerWidth)(this.wot.wtTable.TBODY)||(0,a.outerWidth)(this.wot.wtTable.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.wot.wtTable.THEAD)),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.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,o=t.length;o>n;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var r=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;s>i;i++)r?(this.rowHeaderWidth+=(0,a.outerWidth)(r),r=r.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",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=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=void 0,o=void 0,r=void 0;this.rowHeaderWidth=NaN,n=this.wot.wtSettings.settings.renderAllRows&&!t?1/0:this.getViewportHeight();var i=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset();0>i&&(i=0);var s=this.wot.getSetting("fixedRowsTop"),l=this.wot.getSetting("fixedRowsBottom"),u=this.wot.getSetting("totalRows");return s&&(r=this.wot.wtOverlays.topOverlay.sumCellSizes(0,s),i+=r,n-=r),l&&this.wot.wtOverlays.bottomOverlay.clone&&(r=this.wot.wtOverlays.bottomOverlay.sumCellSizes(u-l,u),n-=r),o=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:(0,a.getScrollbarWidth)(),new d.default(n,i,this.wot.getSetting("totalRows"),function(t){return e.wot.wtTable.getRowHeight(t)},t?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,t,o)}},{key:"createColumnsCalculator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getViewportWidth(),o=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset();this.columnHeaderHeight=NaN,0>o&&(o=0);var r=this.wot.getSetting("fixedColumnsLeft");if(r){var i=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,r);o+=i,n-=i}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(n-=(0,a.getScrollbarWidth)()),new h.default(n,o,this.wot.getSetting("totalColumns"),function(t){return e.wot.wtTable.getColumnWidth(t)},t?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,t,this.wot.getSetting("stretchH"),function(t,n){return e.wot.getSetting("onBeforeStretchingColumnWidth",t,n)})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(!0),o=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(o)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){return!!this.rowsVisibleCalculator&&(!(this.rowsRenderCalculator.startRow>e.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0)&&!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1))}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){return!!this.columnsVisibleCalculator&&(!(this.columnsRenderCalculator.startColumn>e.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0)&&!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1))}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),l=n(13),u=n(1),c=n(39),h=n(6),f=o(h),d=n(58),p=o(d);t.default=function(){function e(t,n){r(this,e),n&&(this.eventManager=new f.default(t),this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return a(e,[{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=0,n=this.main.childNodes.length;n>t;t++)!function(t,n){e.eventManager.addEventListener(e.main.childNodes[t],"mouseenter",function(n){return e.onMouseEnter(n,e.main.childNodes[t])})}(t)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){function n(e){return e.clientY<Math.floor(i.top)||(e.clientY>Math.ceil(i.top+i.height)||(e.clientX<Math.floor(i.left)||(e.clientX>Math.ceil(i.left+i.width)||void 0)))}function o(e){n(e)&&(r.eventManager.removeEventListener(document.body,"mousemove",o),t.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var r=this,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",o)}}},{key:"createBorders",value:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;5>o;o++){var r=t[o],i=document.createElement("div");i.className="wtBorder "+(this.settings.className||""),this.settings[r]&&this.settings[r].hide&&(i.className+=" hidden"),n=i.style,n.backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,n.height=this.settings[r]&&this.settings[r].width?this.settings[r].width+"px":e.border.width+"px",n.width=this.settings[r]&&this.settings[r].width?this.settings[r].width+"px":e.border.width+"px",this.main.appendChild(i)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.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 a=this.wot.wtTable.bordersHolder;a||(a=document.createElement("div"),a.className="htBorders",this.wot.wtTable.bordersHolder=a,this.wot.wtTable.spreader.appendChild(a)),a.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this;this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var t={position:"absolute",height:"40px",width:"40px","border-radius":parseInt(40/1.5,10)+"px"};(0,u.objectEach)(t,function(t,n){e.selectionHandles.styles.bottomRightHitArea[n]=t,e.selectionHandles.styles.topLeftHitArea[n]=t});var n={position:"absolute",height:"10px",width:"10px","border-radius":parseInt(10/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};(0,u.objectEach)(n,function(t,n){e.selectionHandles.styles.bottomRight[n]=t,e.selectionHandles.styles.topLeft[n]=t}),this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{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,o,r,i){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-a,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(o-a,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-s/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(o-s/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+i,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(o+r,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+i-s/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(o+r-s/4,10)+"px",this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t=void 0,n=void 0,o=void 0,r=void 0,a=this.wot.wtTable.getRenderedRowsCount(),l=0;a>l;l+=1){var u=this.wot.wtTable.rowFilter.renderedToSource(l);if(u>=e[0]&&e[2]>=u){t=u;break}}for(var h=a-1;h>=0;h-=1){var f=this.wot.wtTable.rowFilter.renderedToSource(h);if(f>=e[0]&&e[2]>=f){n=f;break}}for(var d=this.wot.wtTable.getRenderedColumnsCount(),g=0;d>g;g+=1){var v=this.wot.wtTable.columnFilter.renderedToSource(g);if(v>=e[1]&&e[3]>=v){o=v;break}}for(var m=d-1;m>=0;m-=1){var y=this.wot.wtTable.columnFilter.renderedToSource(m);if(y>=e[1]&&e[3]>=y){r=y;break}}if(void 0===t||void 0===o)return void this.disappear();var w=this.wot.wtTable.getCell(new p.default(t,o)),C=t!==n||o!==r,b=C?this.wot.wtTable.getCell(new p.default(n,r)):w,_=(0,s.offset)(w),S=C?(0,s.offset)(b):_,E=(0,s.offset)(this.wot.wtTable.TABLE),O=_.top,T=_.left,k=T-E.left-1,R=S.left+(0,s.outerWidth)(b)-T;if(this.isEntireColumnSelected(t,n)){var M=this.getDimensionsFromHeader("columns",o,r,E),D=null;if(M){var A=i(M,3);D=A[0],k=A[1],R=A[2]}D&&(w=D)}var N=O-E.top-1,P=S.top+(0,s.outerHeight)(b)-O;if(this.isEntireRowSelected(o,r)){var H=this.getDimensionsFromHeader("rows",t,n,E),L=null;if(H){var x=i(H,3);L=x[0],N=x[1],P=x[2]}L&&(w=L)}var I=(0,s.getComputedStyle)(w);parseInt(I.borderTopWidth,10)>0&&(N+=1,P=P>0?P-1:0),parseInt(I.borderLeftWidth,10)>0&&(k+=1,R=R>0?R-1:0),this.topStyle.top=N+"px",this.topStyle.left=k+"px",this.topStyle.width=R+"px",this.topStyle.display="block",this.leftStyle.top=N+"px",this.leftStyle.left=k+"px",this.leftStyle.height=P+"px",this.leftStyle.display="block";var j=Math.floor(this.settings.border.width/2);this.bottomStyle.top=N+P-j+"px",this.bottomStyle.left=k+"px",this.bottomStyle.width=R+"px",this.bottomStyle.display="block",this.rightStyle.top=N+"px",this.rightStyle.left=k+R-j+"px",this.rightStyle.height=P+1+"px",this.rightStyle.display="block";var F=this.settings.border.cornerVisible;F="function"==typeof F?F(this.settings.layerLevel):F;var W=this.wot.getSetting("onModifyGetCellCoords",n,r),B=n,Y=r;if(W&&Array.isArray(W)){var V=i(W,4);B=V[2],Y=V[3]}if((0,c.isMobileBrowser)()||!F||this.isPartRange(B,Y))this.cornerStyle.display="none";else{this.cornerStyle.top=N+P-4+"px",this.cornerStyle.left=k+R-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var U=(0,s.getTrimmingContainer)(this.wot.wtTable.TABLE),z=U===window;if(z&&(U=document.documentElement),r===this.wot.getSetting("totalColumns")-1){(z?b.getBoundingClientRect().left:b.offsetLeft)+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(U)&&(this.cornerStyle.left=Math.floor(k+R-3-parseInt(this.cornerDefaultStyle.width,10)/2)+"px",this.cornerStyle.borderRightWidth=0)}if(n===this.wot.getSetting("totalRows")-1){(z?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(U)&&(this.cornerStyle.top=Math.floor(N+P-3-parseInt(this.cornerDefaultStyle.height,10)/2)+"px",this.cornerStyle.borderBottomWidth=0)}this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,r,N,k,R,P)}}},{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,o){var r=this,i=this.wot.wtTable.wtRootElement.parentNode,a=null,l=null,u=null,c=null,h=null,f=null,d=null,p=null;switch(e){case"rows":a=function(){var e;return(e=r.wot.wtTable).getRowHeader.apply(e,arguments)},l=function(){return s.outerHeight.apply(void 0,arguments)},u="ht__selection--rows",f="top";break;case"columns":a=function(){var e;return(e=r.wot.wtTable).getColumnHeader.apply(e,arguments)},l=function(){return s.outerWidth.apply(void 0,arguments)},u="ht__selection--columns",f="left"}if(i.className.includes(u)){var g=this.wot.getSetting("columnHeaders").length;if(d=a(t,g-1),p=a(n,g-1),!d||!p)return!1;var v=(0,s.offset)(d),m=(0,s.offset)(p);return d&&p&&(c=v[f]-o[f]-1,h=m[f]+l(p)-v[f]),[d,c,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,o=t[e];!o||o.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=o.color,"top"!==e&&"bottom"!==e||(n.height=o.width+"px"),"right"!==e&&"left"!==e||(n.width=o.width+"px"))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=this[e].style;t.backgroundColor="#000",t.width="1px",t.height="1px"}},{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.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}}]),e}()},function(e,t,n){"use strict";function o(e){f=!1;var t=this.getActiveEditor();if((0,r.isPrintableChar)(e.keyCode)||e.keyCode===r.KEY_CODES.BACKSPACE||e.keyCode===r.KEY_CODES.DELETE||e.keyCode===r.KEY_CODES.INSERT){var n=0;if(e.keyCode===r.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(function(){t.queryChoices(t.TEXTAREA.value),f=!0},n)}}t.__esModule=!0;var r=n(21),i=n(10),a=n(33),s=n(2),l=n(0),u=n(312),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=c.default.prototype.extend();h.prototype.init=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];c.default.prototype.init.apply(this,t),this.query=null,this.strippedChoices=[],this.rawChoices=[]},h.prototype.getValue=function(){var e=this,t=this.rawChoices.find(function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value});return(0,i.isDefined)(t)?t:this.TEXTAREA.value},h.prototype.createElements=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];c.default.prototype.createElements.apply(this,t),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var f=!1;h.prototype.prepare=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];c.default.prototype.prepare.apply(this,t)},h.prototype.open=function(){this.instance.addHook("beforeKeyDown",o),this.TEXTAREA_PARENT.style.overflow="auto";for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];c.default.prototype.open.apply(this,t),this.TEXTAREA_PARENT.style.overflow="";var r=this.htEditor.getInstance(),a=this,s=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus(),r.updateSettings({colWidths:s?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,width:s?(0,l.outerWidth)(this.TEXTAREA)+(0,l.getScrollbarWidth)()+2:void 0,afterRenderer:function(e,t,n,o,r){var s=a.cellProperties,l=s.filteringCaseSensitive,u=s.allowHtml,c=(0,i.stringify)(r),h=void 0,f=void 0;c&&!u&&-1!==(h=!0===l?c.indexOf(this.query):c.toLowerCase().indexOf(a.query.toLowerCase()))&&(f=c.substr(h,a.query.length),c=c.replace(f,"<strong>"+f+"</strong>")),e.innerHTML=c},autoColumnSize:!0,modifyColWidth:function(e,t){var n=this.getPlugin("autoColumnSize").widths,o=e;return n[t]&&(o=n[t]),s?o:o+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=(0,l.getScrollbarWidth)()+2+"px",f&&(f=!1),a.instance._registerTimeout(function(){a.queryChoices(a.TEXTAREA.value)})},h.prototype.queryChoices=function(e){var t=this;this.query=e;var n=this.cellProperties.source;"function"==typeof n?n.call(this.cellProperties,e,function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))}):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])},h.prototype.updateChoicesList=function(e){var t=(0,l.getCaretPosition)(this.TEXTAREA),n=(0,l.getSelectionEndPosition)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,r=this.cellProperties.filter,i=null,a=null,u=e;o&&(i=h.sortByRelevance(this.stripValueIfNeeded(this.getValue()),u,this.cellProperties.filteringCaseSensitive));var c=Array.isArray(i)?i.length:0;if(!1===r)c&&(a=i[0]);else{for(var f=[],d=0,p=u.length;p>d&&(!o||d<c);d++)f.push(c?u[i[d]]:u[d]);a=0,u=f}this.strippedChoices=u,this.htEditor.loadData((0,s.pivot)([u])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.instance.listen(!1),(0,l.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)},h.prototype.flipDropdownIfNeeded=function(){var e=(0,l.offset)(this.TEXTAREA),t=(0,l.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),o=(0,l.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE),r=o.scrollTop,i=(0,l.outerHeight)(this.instance.view.wt.wtTable.THEAD),a={row:0,col:0};o!==window&&(a=(0,l.offset)(o));var s=e.top-a.top-i+r,u=o.scrollHeight-s-i-t,c=n>u&&s>u;return c?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(c?s:u,n),c},h.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n=0,o=0,r=0,i=null;do{r=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,n+=r,o+=1}while(e>n);i=n-r,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-i+"px"),this.setDropdownHeight(n-r)}},h.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},h.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},h.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+(0,l.getScrollbarWidth)()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},h.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},h.prototype.finishEditing=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];c.default.prototype.finishEditing.apply(this,[e].concat(n))},h.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()},h.sortByRelevance=function(e,t,n){var o=[],r=void 0,s=e.length,l=void 0,u=void 0,c=[],h=void 0,f=t.length;if(0===s){for(h=0;f>h;h++)c.push(h);return c}for(h=0;f>h;h++)r=(0,a.stripTags)((0,i.stringify)(t[h])),-1!==(l=n?r.indexOf(e):r.toLowerCase().indexOf(e.toLowerCase()))&&(u=r.length-l-s,o.push({baseIndex:h,index:l,charsLeft:u,value:r}));for(o.sort(function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(t.index>e.index)return-1;if(e.index>t.index)return 1;if(e.index===t.index){if(t.charsLeft>e.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),h=0,f=o.length;f>h;h++)c.push(o[h].baseIndex);return c},h.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return t>this.strippedChoices.length?this.strippedChoices.length*e+8:t*e},h.prototype.stripValueIfNeeded=function(e){return this.stripValuesIfNeeded([e])[0]},h.prototype.stripValuesIfNeeded=function(e){var t=this.cellProperties.allowHtml,n=(0,s.arrayMap)(e,function(e){return(0,i.stringify)(e)});return(0,s.arrayMap)(n,function(e){return t?e:(0,a.stripTags)(e)})},h.prototype.allowKeyEventPropagation=function(e){var t=this.htEditor.getSelectedRangeLast(),n={row:t?t.from.row:-1},o=!1;return e===r.KEY_CODES.ARROW_DOWN&&n.row>0&&n.row<this.htEditor.countRows()-1&&(o=!0),e===r.KEY_CODES.ARROW_UP&&n.row>-1&&(o=!0),o},h.prototype.close=function(){this.instance.removeHook("beforeKeyDown",o);for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];c.default.prototype.close.apply(this,t)},h.prototype.discardEditor=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];c.default.prototype.discardEditor.apply(this,t),this.instance.view.render()},t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var o=n(21),r=n(1),i=n(0),a=n(13),s=n(59),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=l.default.prototype.extend();u.prototype.createElements=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];l.default.prototype.createElements.apply(this,t);var o=document.createElement("DIV");o.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(o),this.htContainer=o,this.assignHooks()},u.prototype.prepare=function(e,t,n,o,i,a){for(var s=arguments.length,u=Array(s>6?s-6:0),c=6;s>c;c++)u[c-6]=arguments[c];l.default.prototype.prepare.apply(this,[e,t,n,o,i,a].concat(u));var h=this,f={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&h.setValue(n),h.instance.destroyEditor()}};this.cellProperties.handsontable&&(0,r.extend)(f,a.handsontable),this.htOptions=f};var c=function(e){if(!(0,a.isImmediatePropagationStopped)(e)){var t=this.getActiveEditor(),n=t.htEditor.getInstance(),r=void 0,i=void 0;if(e.keyCode===o.KEY_CODES.ARROW_DOWN)if(n.getSelectedLast()||n.flipped){if(n.getSelectedLast())if(n.flipped)r=n.getSelectedLast()[0]+1;else if(!n.flipped){var s=n.countRows()-1;i=n.getSelectedLast()[0],r=Math.min(s,i+1)}}else r=0;else e.keyCode===o.KEY_CODES.ARROW_UP&&(!n.getSelectedLast()&&n.flipped?r=n.countRows()-1:n.getSelectedLast()&&(n.flipped?(i=n.getSelectedLast()[0],r=Math.max(0,i-1)):(i=n.getSelectedLast()[0],r=i-1)));void 0!==r&&(0>r||n.flipped&&r>n.countRows()-1?n.deselectCell():n.selectCell(r,0),n.getData().length&&(e.preventDefault(),(0,a.stopImmediatePropagation)(e),t.instance.listen(),t.TEXTAREA.focus()))}};u.prototype.open=function(){this.instance.addHook("beforeKeyDown",c);for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];l.default.prototype.open.apply(this,t),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.instance.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,i.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)},u.prototype.close=function(){this.htEditor.rootElement.style.display="none",this.instance.removeHook("beforeKeyDown",c);for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];l.default.prototype.close.apply(this,t)},u.prototype.focus=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];l.default.prototype.focus.apply(this,t)},u.prototype.beginEditing=function(){var e=this.instance.getSettings().onBeginEditing;if(!e||!1!==e()){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];l.default.prototype.beginEditing.apply(this,n)}},u.prototype.finishEditing=function(){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var e=this.htEditor.getInstance().getValue();void 0!==e&&this.setValue(e)}for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return l.default.prototype.finishEditing.apply(this,n)},u.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})},t.default=u},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},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){var o,o;!function(t){e.exports=t()}(function(){return function e(t,n,r){function i(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof o&&o;if(!l&&u)return o(s,!0);if(a)return a(s,!0);var c=Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){return i(t[s][1][e]||e)},h,h.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;r.length>s;s++)i(r[s]);return i}({1:[function(e,t,n){!function(e){"use strict";function n(e){function t(e,n){var o,r,i,a,s,l,u=this;if(!(u instanceof t))return V&&D(26,"constructor call without new",e),new t(e,n);if(null!=n&&U(n,2,64,H,"base")){if(n|=0,l=e+"",10==n)return u=new t(e instanceof t?e:l),A(u,I+u.e+1,j);if((a="number"==typeof e)&&0*e!=0||!RegExp("^-?"+(o="["+w.slice(0,n)+"]+")+"(?:\\."+o+")?$",37>n?"i":"").test(l))return P(u,l,a,n);a?(u.s=0>1/e?(l=l.slice(1),-1):1,V&&l.replace(/^0\.0*|\./,"").length>15&&D(H,y,e),a=!1):u.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1,l=f(l,10,n,u.s)}else{if(e instanceof t)return u.s=e.s,u.e=e.e,u.c=(e=e.c)?e.slice():e,void(H=0);if((a="number"==typeof e)&&0*e==0){if(u.s=0>1/e?(e=-e,-1):1,e===~~e){for(r=0,i=e;i>=10;i/=10,r++);return u.e=r,u.c=[e],void(H=0)}l=e+""}else{if(!d.test(l=e+""))return P(u,l,a);u.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1}}for((r=l.indexOf("."))>-1&&(l=l.replace(".","")),(i=l.search(/e/i))>0?(0>r&&(r=i),r+=+l.slice(i+1),l=l.substring(0,i)):0>r&&(r=l.length),i=0;48===l.charCodeAt(i);i++);for(s=l.length;48===l.charCodeAt(--s););if(l=l.slice(i,s+1))if(s=l.length,a&&V&&s>15&&(e>_||e!==g(e))&&D(H,y,u.s*e),(r=r-i-1)>Y)u.c=u.e=null;else if(B>r)u.c=[u.e=0];else{if(u.e=r,u.c=[],i=(r+1)%b,0>r&&(i+=b),s>i){for(i&&u.c.push(+l.slice(0,i)),s-=b;s>i;)u.c.push(+l.slice(i,i+=b));l=l.slice(i),i=b-l.length}else i-=s;for(;i--;l+="0");u.c.push(+l)}else u.c=[u.e=0];H=0}function f(e,n,o,i){var a,s,u,h,f,d,p,g=e.indexOf("."),v=I,m=j;for(37>o&&(e=e.toLowerCase()),g>=0&&(u=K,K=0,e=e.replace(".",""),f=(p=new t(o)).pow(e.length-g),K=u,p.c=l(c(r(f.c),f.e),10,n),p.e=p.c.length),s=u=(d=l(e,o,n)).length;0==d[--u];d.pop());if(!d[0])return"0";if(0>g?--s:(f.c=d,f.e=s,f.s=i,d=(f=N(f,p,v,m,n)).c,h=f.r,s=f.e),a=s+v+1,g=d[a],u=n/2,h=h||0>a||null!=d[a+1],h=4>m?(null!=g||h)&&(0==m||m==(0>f.s?3:2)):g>u||g==u&&(4==m||h||6==m&&1&d[a-1]||m==(0>f.s?8:7)),1>a||!d[0])e=h?c("1",-v):"0";else{if(d.length=a,h)for(--n;++d[--a]>n;)d[a]=0,a||(++s,d=[1].concat(d));for(u=d.length;!d[--u];);for(g=0,e="";u>=g;e+=w.charAt(d[g++]));e=c(e,s)}return e}function T(e,n,o,i){var a,s,l,h,f;if(o=null!=o&&U(o,0,8,i,m)?0|o:j,!e.c)return""+e;if(a=e.c[0],l=e.e,null==n)f=r(e.c),f=19==i||24==i&&F>=l?u(f,l):c(f,l);else if(e=A(new t(e),n,o),s=e.e,f=r(e.c),h=f.length,19!=i&&(24!=i||s<n&&F<s)){if(n-=l,f=c(f,s),s+1>h){if(--n>0)for(f+=".";n--;f+="0");}else if((n+=s-h)>0)for(s+1==h&&(f+=".");n--;f+="0");}else{for(;n>h;f+="0",h++);f=u(f,s)}return 0>e.s&&a?"-"+f:f}function k(e,n){var o,r,i=0;for(s(e[0])&&(e=e[0]),o=new t(e[0]);++i<e.length;){if(!(r=new t(e[i])).s){o=r;break}n.call(o,r)&&(o=r)}return o}function R(e,t,n,o,r){return(t>e||e>n||e!=h(e))&&D(o,(r||"decimal places")+(t>e||e>n?" out of range":" not an integer"),e),!0}function M(e,t,n){for(var o=1,r=t.length;!t[--r];t.pop());for(r=t[0];r>=10;r/=10,o++);return(n=o+n*b-1)>Y?e.c=e.e=null:B>n?e.c=[e.e=0]:(e.e=n,e.c=t),e}function D(e,t,n){var o=Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+n);throw o.name="BigNumber Error",H=0,o}function A(e,t,n,o){var r,i,a,s,l,u,c,h=e.c,f=S;if(h){e:{for(r=1,s=h[0];s>=10;s/=10,r++);if(0>(i=t-r))i+=b,a=t,c=(l=h[u=0])/f[r-a-1]%10|0;else if((u=p((i+1)/b))<h.length){for(l=s=h[u],r=1;s>=10;s/=10,r++);c=0>(a=(i%=b)-b+r)?0:l/f[r-a-1]%10|0}else{if(!o)break e;for(;u>=h.length;h.push(0));l=c=0,r=1,a=(i%=b)-b+1}if(o=o||0>t||null!=h[u+1]||(0>a?l:l%f[r-a-1]),o=4>n?(c||o)&&(0==n||n==(0>e.s?3:2)):c>5||5==c&&(4==n||o||6==n&&(i>0?a>0?l/f[r-a]:0:h[u-1])%10&1||n==(0>e.s?8:7)),1>t||!h[0])return h.length=0,o?(t-=e.e+1,h[0]=f[(b-t%b)%b],e.e=-t||0):h[0]=e.e=0,e;if(0==i?(h.length=u,s=1,u--):(h.length=u+1,s=f[b-i],h[u]=a>0?g(l/f[r-a]%f[a])*s:0),o)for(;;){if(0==u){for(i=1,a=h[0];a>=10;a/=10,i++);for(a=h[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,h[0]==C&&(h[0]=1));break}if((h[u]+=s)!=C)break;h[u--]=0,s=1}for(i=h.length;0===h[--i];h.pop());}e.e>Y?e.c=e.e=null:B>e.e&&(e.c=[e.e=0])}return e}var N,P,H=0,L=t.prototype,x=new t(1),I=20,j=4,F=-7,W=21,B=-1e7,Y=1e7,V=!0,U=R,z=!1,G=1,K=0,X={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};return t.another=n,t.ROUND_UP=0,t.ROUND_DOWN=1,t.ROUND_CEIL=2,t.ROUND_FLOOR=3,t.ROUND_HALF_UP=4,t.ROUND_HALF_DOWN=5,t.ROUND_HALF_EVEN=6,t.ROUND_HALF_CEIL=7,t.ROUND_HALF_FLOOR=8,t.EUCLID=9,t.config=t.set=function(){var e,t,n=0,o={},r=arguments,i=r[0],l=i&&"object"==typeof i?function(){if(i.hasOwnProperty(t))return null!=(e=i[t])}:function(){if(r.length>n)return null!=(e=r[n++])};return l(t="DECIMAL_PLACES")&&U(e,0,O,2,t)&&(I=0|e),o[t]=I,l(t="ROUNDING_MODE")&&U(e,0,8,2,t)&&(j=0|e),o[t]=j,l(t="EXPONENTIAL_AT")&&(s(e)?U(e[0],-O,0,2,t)&&U(e[1],0,O,2,t)&&(F=0|e[0],W=0|e[1]):U(e,-O,O,2,t)&&(F=-(W=0|(0>e?-e:e)))),o[t]=[F,W],l(t="RANGE")&&(s(e)?U(e[0],-O,-1,2,t)&&U(e[1],1,O,2,t)&&(B=0|e[0],Y=0|e[1]):U(e,-O,O,2,t)&&(0|e?B=-(Y=0|(0>e?-e:e)):V&&D(2,t+" cannot be zero",e))),o[t]=[B,Y],l(t="ERRORS")&&(e===!!e||1===e||0===e?(H=0,U=(V=!!e)?R:a):V&&D(2,t+v,e)),o[t]=V,l(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?z=!0:V?D(2,"crypto unavailable",e?void 0:crypto):z=!1:z=!1:V&&D(2,t+v,e)),o[t]=z,l(t="MODULO_MODE")&&U(e,0,9,2,t)&&(G=0|e),o[t]=G,l(t="POW_PRECISION")&&U(e,0,O,2,t)&&(K=0|e),o[t]=K,l(t="FORMAT")&&("object"==typeof e?X=e:V&&D(2,t+" not an object",e)),o[t]=X,o},t.max=function(){return k(arguments,L.lt)},t.min=function(){return k(arguments,L.gt)},t.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return g(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(n){var o,r,i,a,s,l=0,u=[],c=new t(x);if(n=null!=n&&U(n,0,O,14)?0|n:I,a=p(n/b),z)if(crypto.getRandomValues){for(o=crypto.getRandomValues(new Uint32Array(a*=2));a>l;)9e15>(s=131072*o[l]+(o[l+1]>>>11))?(u.push(s%1e14),l+=2):(r=crypto.getRandomValues(new Uint32Array(2)),o[l]=r[0],o[l+1]=r[1]);l=a/2}else if(crypto.randomBytes){for(o=crypto.randomBytes(a*=7);a>l;)9e15>(s=281474976710656*(31&o[l])+1099511627776*o[l+1]+4294967296*o[l+2]+16777216*o[l+3]+(o[l+4]<<16)+(o[l+5]<<8)+o[l+6])?(u.push(s%1e14),l+=7):crypto.randomBytes(7).copy(o,l);l=a/7}else z=!1,V&&D(14,"crypto unavailable",crypto);if(!z)for(;a>l;)9e15>(s=e())&&(u[l++]=s%1e14);for(a=u[--l],n%=b,a&&n&&(s=S[b-n],u[l]=g(a/s)*s);0===u[l];u.pop(),l--);if(0>l)u=[i=0];else{for(i=-1;0===u[0];u.splice(0,1),i-=b);for(l=1,s=u[0];s>=10;s/=10,l++);b>l&&(i-=b-l)}return c.e=i,c.c=u,c}}(),N=function(){function e(e,t,n){var o,r,i,a,s=0,l=e.length,u=t%E,c=t/E|0;for(e=e.slice();l--;)s=((r=u*(i=e[l]%E)+(o=c*i+(a=e[l]/E|0)*u)%E*E+s)/n|0)+(o/E|0)+c*a,e[l]=r%n;return s&&(e=[s].concat(e)),e}function n(e,t,n,o){var r,i;if(n!=o)i=n>o?1:-1;else for(r=i=0;n>r;r++)if(e[r]!=t[r]){i=e[r]>t[r]?1:-1;break}return i}function r(e,t,n,o){for(var r=0;n--;)e[n]-=r,r=t[n]>e[n]?1:0,e[n]=r*o+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,a,s,l,u){var c,h,f,d,p,v,m,y,w,_,S,E,O,T,k,R,M,D=i.s==a.s?1:-1,N=i.c,P=a.c;if(!(N&&N[0]&&P&&P[0]))return new t(i.s&&a.s&&(N?!P||N[0]!=P[0]:P)?N&&0==N[0]||!P?0*D:D/0:NaN);for(w=(y=new t(D)).c=[],D=s+(h=i.e-a.e)+1,u||(u=C,h=o(i.e/b)-o(a.e/b),D=D/b|0),f=0;P[f]==(N[f]||0);f++);if(P[f]>(N[f]||0)&&h--,0>D)w.push(1),d=!0;else{for(T=N.length,R=P.length,f=0,D+=2,(p=g(u/(P[0]+1)))>1&&(P=e(P,p,u),N=e(N,p,u),R=P.length,T=N.length),O=R,S=(_=N.slice(0,R)).length;R>S;_[S++]=0);M=P.slice(),M=[0].concat(M),k=P[0],P[1]>=u/2&&k++;do{if(p=0,0>(c=n(P,_,R,S))){if(E=_[0],R!=S&&(E=E*u+(_[1]||0)),(p=g(E/k))>1)for(p>=u&&(p=u-1),m=(v=e(P,p,u)).length,S=_.length;1==n(v,_,m,S);)p--,r(v,m>R?M:P,m,u),m=v.length,c=1;else 0==p&&(c=p=1),m=(v=P.slice()).length;if(S>m&&(v=[0].concat(v)),r(_,v,S,u),S=_.length,-1==c)for(;1>n(P,_,R,S);)p++,r(_,S>R?M:P,S,u),S=_.length}else 0===c&&(p++,_=[0]);w[f++]=p,_[0]?_[S++]=N[O]||0:(_=[N[O]],S=1)}while((O++<T||null!=_[0])&&D--);d=null!=_[0],w[0]||w.splice(0,1)}if(u==C){for(f=1,D=w[0];D>=10;D/=10,f++);A(y,s+(y.e=f+h*b-1)+1,l,d)}else y.e=h,y.r=+d;return y}}(),P=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,o=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,l,u){var c,h=l?s:s.replace(i,"");if(r.test(h))a.s=isNaN(h)?null:0>h?-1:1;else{if(!l&&(h=h.replace(e,function(e,t,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?e:t}),u&&(c=u,h=h.replace(n,"$1").replace(o,"0.$1")),s!=h))return new t(h,c);V&&D(H,"not a"+(u?" base "+u:"")+" number",s),a.s=null}a.c=a.e=null,H=0}}(),L.absoluteValue=L.abs=function(){var e=new t(this);return 0>e.s&&(e.s=1),e},L.ceil=function(){return A(new t(this),this.e+1,2)},L.comparedTo=L.cmp=function(e,n){return H=1,i(this,new t(e,n))},L.decimalPlaces=L.dp=function(){var e,t,n=this.c;if(!n)return null;if(e=((t=n.length-1)-o(this.e/b))*b,t=n[t])for(;t%10==0;t/=10,e--);return 0>e&&(e=0),e},L.dividedBy=L.div=function(e,n){return H=3,N(this,new t(e,n),I,j)},L.dividedToIntegerBy=L.divToInt=function(e,n){return H=4,N(this,new t(e,n),0,1)},L.equals=L.eq=function(e,n){return H=5,0===i(this,new t(e,n))},L.floor=function(){return A(new t(this),this.e+1,3)},L.greaterThan=L.gt=function(e,n){return H=6,i(this,new t(e,n))>0},L.greaterThanOrEqualTo=L.gte=function(e,n){return H=7,1===(n=i(this,new t(e,n)))||0===n},L.isFinite=function(){return!!this.c},L.isInteger=L.isInt=function(){return!!this.c&&o(this.e/b)>this.c.length-2},L.isNaN=function(){return!this.s},L.isNegative=L.isNeg=function(){return 0>this.s},L.isZero=function(){return!!this.c&&0==this.c[0]},L.lessThan=L.lt=function(e,n){return H=8,0>i(this,new t(e,n))},L.lessThanOrEqualTo=L.lte=function(e,n){return H=9,-1===(n=i(this,new t(e,n)))||0===n},L.minus=L.sub=function(e,n){var r,i,a,s,l=this,u=l.s;if(H=10,e=new t(e,n),n=e.s,!u||!n)return new t(NaN);if(u!=n)return e.s=-n,l.plus(e);var c=l.e/b,h=e.e/b,f=l.c,d=e.c;if(!c||!h){if(!f||!d)return f?(e.s=-n,e):new t(d?l:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-n,e):new t(f[0]?l:3==j?-0:0)}if(c=o(c),h=o(h),f=f.slice(),u=c-h){for((s=0>u)?(u=-u,a=f):(h=c,a=d),a.reverse(),n=u;n--;a.push(0));a.reverse()}else for(i=(s=(u=f.length)<(n=d.length))?u:n,u=n=0;i>n;n++)if(f[n]!=d[n]){s=d[n]>f[n];break}if(s&&(a=f,f=d,d=a,e.s=-e.s),(n=(i=d.length)-(r=f.length))>0)for(;n--;f[r++]=0);for(n=C-1;i>u;){if(f[--i]<d[i]){for(r=i;r&&!f[--r];f[r]=n);--f[r],f[i]+=C}f[i]-=d[i]}for(;0==f[0];f.splice(0,1),--h);return f[0]?M(e,f,h):(e.s=3==j?-1:1,e.c=[e.e=0],e)},L.modulo=L.mod=function(e,n){var o,r,i=this;return H=11,e=new t(e,n),!i.c||!e.s||e.c&&!e.c[0]?new t(NaN):!e.c||i.c&&!i.c[0]?new t(i):(9==G?(r=e.s,e.s=1,o=N(i,e,0,3),e.s=r,o.s*=r):o=N(i,e,0,G),i.minus(o.times(e)))},L.negated=L.neg=function(){var e=new t(this);return e.s=-e.s||null,e},L.plus=L.add=function(e,n){var r,i=this,a=i.s;if(H=12,e=new t(e,n),n=e.s,!a||!n)return new t(NaN);if(a!=n)return e.s=-n,i.minus(e);var s=i.e/b,l=e.e/b,u=i.c,c=e.c;if(!s||!l){if(!u||!c)return new t(a/0);if(!u[0]||!c[0])return c[0]?e:new t(u[0]?i:0*a)}if(s=o(s),l=o(l),u=u.slice(),a=s-l){for(a>0?(l=s,r=c):(a=-a,r=u),r.reverse();a--;r.push(0));r.reverse()}for(0>(a=u.length)-(n=c.length)&&(r=c,c=u,u=r,n=a),a=0;n;)a=(u[--n]=u[n]+c[n]+a)/C|0,u[n]=C===u[n]?0:u[n]%C;return a&&(u=[a].concat(u),++l),M(e,u,l)},L.precision=L.sd=function(e){var t,n,o=this,r=o.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(V&&D(13,"argument"+v,e),e!=!!e&&(e=null)),!r)return null;if(n=r.length-1,t=n*b+1,n=r[n]){for(;n%10==0;n/=10,t--);for(n=r[0];n>=10;n/=10,t++);}return e&&o.e+1>t&&(t=o.e+1),t},L.round=function(e,n){var o=new t(this);return(null==e||U(e,0,O,15))&&A(o,~~e+this.e+1,null!=n&&U(n,0,8,15,m)?0|n:j),o},L.shift=function(e){var n=this;return U(e,-_,_,16,"argument")?n.times("1e"+h(e)):new t(n.c&&n.c[0]&&(-_>e||e>_)?n.s*(0>e?0:1/0):n)},L.squareRoot=L.sqrt=function(){var e,n,i,a,s,l=this,u=l.c,c=l.s,h=l.e,f=I+4,d=new t("0.5");if(1!==c||!u||!u[0])return new t(!c||0>c&&(!u||u[0])?NaN:u?l:1/0);if(0==(c=Math.sqrt(+l))||c==1/0?(((n=r(u)).length+h)%2==0&&(n+="0"),c=Math.sqrt(n),h=o((h+1)/2)-(0>h||h%2),i=new t(n=c==1/0?"1e"+h:(n=c.toExponential()).slice(0,n.indexOf("e")+1)+h)):i=new t(c+""),i.c[0])for(3>(c=(h=i.e)+f)&&(c=0);;)if(s=i,i=d.times(s.plus(N(l,s,f,1))),r(s.c).slice(0,c)===(n=r(i.c)).slice(0,c)){if(h>i.e&&--c,"9999"!=(n=n.slice(c-3,c+1))&&(a||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(A(i,i.e+I+2,1),e=!i.times(i).eq(l));break}if(!a&&(A(s,s.e+I+2,0),s.times(s).eq(l))){i=s;break}f+=4,c+=4,a=1}return A(i,i.e+I+1,j,e)},L.times=L.mul=function(e,n){var r,i,a,s,l,u,c,h,f,d,p,g,v,m,y,w=this,_=w.c,S=(H=17,e=new t(e,n)).c;if(!(_&&S&&_[0]&&S[0]))return!w.s||!e.s||_&&!_[0]&&!S||S&&!S[0]&&!_?e.c=e.e=e.s=null:(e.s*=w.s,_&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=o(w.e/b)+o(e.e/b),e.s*=w.s,(c=_.length)<(d=S.length)&&(v=_,_=S,S=v,a=c,c=d,d=a),a=c+d,v=[];a--;v.push(0));for(m=C,y=E,a=d;--a>=0;){for(r=0,p=S[a]%y,g=S[a]/y|0,s=a+(l=c);s>a;)r=((h=p*(h=_[--l]%y)+(u=g*h+(f=_[l]/y|0)*p)%y*y+v[s]+r)/m|0)+(u/y|0)+g*f,v[s--]=h%m;v[s]=r}return r?++i:v.splice(0,1),M(e,v,i)},L.toDigits=function(e,n){var o=new t(this);return e=null!=e&&U(e,1,O,18,"precision")?0|e:null,n=null!=n&&U(n,0,8,18,m)?0|n:j,e?A(o,e,n):o},L.toExponential=function(e,t){return T(this,null!=e&&U(e,0,O,19)?1+~~e:null,t,19)},L.toFixed=function(e,t){return T(this,null!=e&&U(e,0,O,20)?~~e+this.e+1:null,t,20)},L.toFormat=function(e,t){var n=T(this,null!=e&&U(e,0,O,21)?~~e+this.e+1:null,t,21);if(this.c){var o,r=n.split("."),i=+X.groupSize,a=+X.secondaryGroupSize,s=X.groupSeparator,l=r[0],u=r[1],c=0>this.s,h=c?l.slice(1):l,f=h.length;if(a&&(o=i,i=a,a=o,f-=o),i>0&&f>0){for(o=f%i||i,l=h.substr(0,o);f>o;o+=i)l+=s+h.substr(o,i);a>0&&(l+=s+h.slice(o)),c&&(l="-"+l)}n=u?l+X.decimalSeparator+((a=+X.fractionGroupSize)?u.replace(RegExp("\\d{"+a+"}\\B","g"),"$&"+X.fractionGroupSeparator):u):l}return n},L.toFraction=function(e){var n,o,i,a,s,l,u,c,h,f=V,d=this,p=d.c,g=new t(x),v=o=new t(x),m=u=new t(x);if(null!=e&&(V=!1,l=new t(e),V=f,(f=l.isInt())&&!l.lt(x)||(V&&D(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&l.c&&A(l,l.e+1,1).gte(x)?l:null)),!p)return""+d;for(h=r(p),a=g.e=h.length-d.e-1,g.c[0]=S[0>(s=a%b)?b+s:s],e=!e||l.cmp(g)>0?a>0?g:v:l,s=Y,Y=1/0,l=new t(h),u.c[0]=0;c=N(l,g,0,1),1!=(i=o.plus(c.times(m))).cmp(e);)o=m,m=i,v=u.plus(c.times(i=v)),u=i,g=l.minus(c.times(i=g)),l=i;return i=N(e.minus(o),m,0,1),u=u.plus(i.times(v)),o=o.plus(i.times(m)),u.s=v.s=d.s,a*=2,n=1>N(v,m,a,j).minus(d).abs().cmp(N(u,o,a,j).minus(d).abs())?[""+v,""+m]:[""+u,""+o],Y=s,n},L.toNumber=function(){return+this},L.toPower=L.pow=function(e,n){var o,r,i,a=g(0>e?-e:+e),s=this;if(null!=n&&(H=23,n=new t(n)),!U(e,-_,_,23,"exponent")&&(!isFinite(e)||a>_&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return o=Math.pow(+s,e),new t(n?o%n:o);for(n?e>1&&s.gt(x)&&s.isInt()&&n.gt(x)&&n.isInt()?s=s.mod(n):(i=n,n=null):K&&(o=p(K/b+2)),r=new t(x);;){if(a%2){if(!(r=r.times(s)).c)break;o?r.c.length>o&&(r.c.length=o):n&&(r=r.mod(n))}if(!(a=g(a/2)))break;s=s.times(s),o?s.c&&s.c.length>o&&(s.c.length=o):n&&(s=s.mod(n))}return n?r:(0>e&&(r=x.div(r)),i?r.mod(i):o?A(r,K,j):r)},L.toPrecision=function(e,t){return T(this,null!=e&&U(e,1,O,24,"precision")?0|e:null,t,24)},L.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",0>o&&(t="-"+t)):t="NaN":(t=r(n.c),t=null!=e&&U(e,2,64,25,"base")?f(c(t,i),0|e,10,o):i>F&&W>i?c(t,i):u(t,i),0>o&&n.c[0]&&(t="-"+t)),t},L.truncated=L.trunc=function(){return A(new t(this),this.e+1,1)},L.valueOf=L.toJSON=function(){var e,t=this,n=t.e;return null===n?""+t:(e=r(t.c),e=n>F&&W>n?c(e,n):u(e,n),0>t.s?"-"+e:e)},L.isBigNumber=!0,null!=e&&t.config(e),t}function o(e){var t=0|e;return e>0||e===t?t:t-1}function r(e){for(var t,n,o=1,r=e.length,i=e[0]+"";r>o;){for(t=e[o++]+"",n=b-t.length;n--;t="0"+t);i+=t}for(r=i.length;48===i.charCodeAt(--r););return i.slice(0,r+1||1)}function i(e,t){var n,o,r=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=r&&!r[0],o=i&&!i[0],n||o)return n?o?0:-s:a;if(a!=s)return a;if(n=0>a,o=l==u,!r||!i)return o?0:!r^n?1:-1;if(!o)return l>u^n?1:-1;for(s=(l=r.length)<(u=i.length)?l:u,a=0;s>a;a++)if(r[a]!=i[a])return r[a]>i[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function a(e,t,n){return(e=h(e))>=t&&n>=e}function s(e){return"[object Array]"==Object.prototype.toString.call(e)}function l(e,t,n){for(var o,r,i=[0],a=0,s=e.length;s>a;){for(r=i.length;r--;i[r]*=t);for(i[o=0]+=w.indexOf(e.charAt(a++));i.length>o;o++)i[o]>n-1&&(null==i[o+1]&&(i[o+1]=0),i[o+1]+=i[o]/n|0,i[o]%=n)}return i.reverse()}function u(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(0>t?"e":"e+")+t}function c(e,t){var n,o;if(0>t){for(o="0.";++t;o+="0");e=o+e}else if(n=e.length,++t>n){for(o="0",t-=n;--t;o+="0");e+=o}else n>t&&(e=e.slice(0,t)+"."+e.slice(t));return e}function h(e){return 0>(e=parseFloat(e))?p(e):g(e)}var f,d=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=Math.ceil,g=Math.floor,v=" not a boolean or binary digit",m="rounding mode",y="number type has more than 15 significant digits",w="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",C=1e14,b=14,_=9007199254740991,S=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,O=1e9;(f=n()).default=f.BigNumber=f,void 0!==t&&t.exports?t.exports=f:(e||(e="undefined"!=typeof self?self:Function("return this")()),e.BigNumber=f)}(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 o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("string"==typeof t&&(t=N.parseFormat(t)),!A.validateFormat(t))return"ERROR: invalid format";var o=t.prefix||"",i=t.postfix||"",a=r(e,t,n);return a=O(a,o),a=T(a,i)}function r(e,t,n){switch(t.output){case"currency":return t=R(t,D.currentCurrencyDefaultFormat()),d(e,t,D);case"percent":return t=R(t,D.currentPercentageDefaultFormat()),f(e,t,D,n);case"byte":return t=R(t,D.currentByteDefaultFormat()),u(e,t,D,n);case"time":return t=R(t,D.currentTimeDefaultFormat()),h(e);case"ordinal":return t=R(t,D.currentOrdinalDefaultFormat()),c(e,t,D);case"number":default:return k({instance:e,providedFormat:t,numbro:n})}}function i(e){var t=H.decimal;return l(e._value,t.suffixes,t.scale).suffix}function a(e){var t=H.binary;return l(e._value,t.suffixes,t.scale).suffix}function s(e){var t=H.general;return l(e._value,t.suffixes,t.scale).suffix}function l(e,t,n){var o=t[0],r=Math.abs(e);if(r>=n){for(var i=1;t.length>i;++i){var a=Math.pow(n,i),s=Math.pow(n,i+1);if(r>=a&&s>r){o=t[i],e/=a;break}}o===t[0]&&(e/=Math.pow(n,t.length-1),o=t[t.length-1])}return{value:e,suffix:o}}function u(e,t,n,o){var r=t.base||"binary",i=H[r],a=l(e._value,i.suffixes,i.scale),s=a.value,u=a.suffix;return k({instance:o(s),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()})+(n.currentAbbreviations().spaced?" ":"")+u}function c(e,t,n){var o=n.currentOrdinal(),r=Object.assign({},L,t),i=k({instance:e,providedFormat:t,state:n}),a=o(e._value);return i+(r.spaceSeparated?" ":"")+a}function h(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return t+":"+(10>n?"0":"")+n+":"+(10>o?"0":"")+o}function f(e,t,n,o){var r=t.prefixSymbol,i=k({instance:o(100*e._value),providedFormat:t,state:n}),a=Object.assign({},L,t);return r?"%"+(a.spaceSeparated?" ":"")+i:i+(a.spaceSeparated?" ":"")+"%"}function d(e,t,n){var o=n.currentCurrency(),r=Object.assign({},L,t),i=void 0,a="",s=!!r.totalLength||!!r.forceAverage||r.average,l=t.currencyPosition||o.position,u=t.currencySymbol||o.symbol;r.spaceSeparated&&(a=" "),"infix"===l&&(i=a+u+a);var c=k({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===l&&(c=0>e._value&&"sign"===r.negative?"-"+a+u+c.slice(1):u+a+c),l&&"postfix"!==l||(c=c+(a=s?"":a)+u),c}function p(e){var t=e.value,n=e.forceAverage,o=e.abbreviations,r=e.spaceSeparated,i=void 0!==r&&r,a=e.totalLength,s=void 0===a?0:a,l="",u=Math.abs(t),c=-1;u>=Math.pow(10,12)&&!n||"trillion"===n?(l=o.trillion,t/=Math.pow(10,12)):u<Math.pow(10,12)&&u>=Math.pow(10,9)&&!n||"billion"===n?(l=o.billion,t/=Math.pow(10,9)):u<Math.pow(10,9)&&u>=Math.pow(10,6)&&!n||"million"===n?(l=o.million,t/=Math.pow(10,6)):(u<Math.pow(10,6)&&u>=Math.pow(10,3)&&!n||"thousand"===n)&&(l=o.thousand,t/=Math.pow(10,3));var h=i?" ":"";if(l&&(l=h+l),s){var f=(""+t).split(".")[0];c=Math.max(s-f.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}function g(e){var t=e.value,n=e.characteristicPrecision,o=void 0===n?0:n,r=t.toExponential().split("e"),i=M(r,2),a=i[0],s=i[1],l=+a;return o?(o>1&&(l*=Math.pow(10,o-1),s=0>(s=+s-(o-1))?s:"+"+s),{value:l,abbreviation:"e"+s}):{value:l,abbreviation:"e"+s}}function v(e){for(var t="",n=0;e>n;n++)t+="0";return t}function m(e,t){var n=""+e,o=n.split("e"),r=M(o,2),i=r[0],a=r[1],s=i.split("."),l=M(s,2),u=l[0],c=l[1],h=void 0===c?"":c;if(+a>0)n=u+h+v(a-h.length);else{var f=".";f=0>+u?"-0"+f:"0"+f;var d=(v(-a-1)+Math.abs(u)+h).substr(0,t);t>d.length&&(d+=v(t-d.length)),n=f+d}return+a>0&&t>0&&(n+="."+v(t)),n}function y(e,t){return-1!==(""+e).indexOf("e")?m(e,t):(Math.round(+(e+"e+"+t))/Math.pow(10,t)).toFixed(t)}function w(e,t,n,o,r){if(-1===o)return e;var i=y(t,o),a=(""+i).split("."),s=M(a,2),l=s[0],u=s[1];if((void 0===u?"":u).match(/^0+$/)&&(n||r))return l;var c=i.match(/0+$/);return r&&c?(""+i).slice(0,c.index):""+i}function C(e,t,n,o){var r=e,i=(""+r).split("."),a=M(i,2),s=a[0],l=a[1];if(s.match(/^-?0$/)&&n)return l?s.replace("0","")+"."+l:s.replace("0","");if(o>s.length)for(var u=o-s.length,c=0;u>c;c++)r="0"+r;return""+r}function b(e,t){for(var n=[],o=0,r=e;r>0;r--)o===t&&(n.unshift(r),o=0),o++;return n}function _(e,t,n,o,r){var i=o.currentDelimiters(),a=i.thousands;r=r||i.decimal;var s=i.thousandsSize||3,l=""+e,u=l.split(".")[0],c=l.split(".")[1];return n&&(0>t&&(u=u.slice(1)),b(u.length,s).forEach(function(e,t){u=u.slice(0,e+t)+a+u.slice(e+t)}),0>t&&(u="-"+u)),l=c?u+r+c:u}function S(e,t){return e+t}function E(e,t,n){return 0===t?e:0==+e?e.replace("-",""):t>0?"+"+e:"sign"===n?e:"("+e.replace("-","")+")"}function O(e,t){return t+e}function T(e,t){return e+t}function k(e){var t=e.instance,n=e.providedFormat,o=e.state,r=void 0===o?D:o,i=e.decimalSeparator,a=e.defaults,s=void 0===a?r.currentDefaults():a,l=t._value;if(0===l&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(l))return""+l;var u=Object.assign({},L,s,n),c=u.totalLength,h=c?0:u.characteristic,f=u.optionalCharacteristic,d=u.forceAverage,v=!!c||!!d||u.average,m=c?-1:v&&void 0===n.mantissa?0:u.mantissa,y=!c&&(void 0===n.optionalMantissa?-1===m:u.optionalMantissa),b=u.trimMantissa,O=u.thousandSeparated,T=u.spaceSeparated,k=u.negative,R=u.forceSign,M=u.exponential,A="";if(v){var N=p({value:l,forceAverage:d,abbreviations:r.currentAbbreviations(),spaceSeparated:T,totalLength:c});l=N.value,A+=N.abbreviation,c&&(m=N.mantissaPrecision)}if(M){var P=g({value:l,characteristicPrecision:h});l=P.value,A=P.abbreviation+A}var H=w(""+l,l,y,m,b);return H=C(H,l,f,h),H=_(H,l,O,r,i),(v||M)&&(H=S(H,A)),(R||0>l)&&(H=E(H,l,k)),H}function R(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}var M=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=e("./globalState"),A=e("./validating"),N=e("./parsing"),P=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],H={general:{scale:1024,suffixes:P,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:P,marker:"d"}},L={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};t.exports=function(e){return{format:function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return o.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return s.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return a.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return i.apply(void 0,n.concat([e]))},formatOrDefault:R}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,n){"use strict";function o(e){u=e}function r(){return c[u]}var i=e("./en-US"),a=e("./validating"),s=e("./parsing"),l={},u=void 0,c={},h=null,f={};l.languages=function(){return Object.assign({},c)},l.currentLanguage=function(){return u},l.currentCurrency=function(){return r().currency},l.currentAbbreviations=function(){return r().abbreviations},l.currentDelimiters=function(){return r().delimiters},l.currentOrdinal=function(){return r().ordinal},l.currentDefaults=function(){return Object.assign({},r().defaults,f)},l.currentOrdinalDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().ordinalFormat)},l.currentByteDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().byteFormat)},l.currentPercentageDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().percentageFormat)},l.currentCurrencyDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().currencyFormat)},l.currentTimeDefaultFormat=function(){return Object.assign({},l.currentDefaults(),r().timeFormat)},l.setDefaults=function(e){e=s.parseFormat(e),a.validateFormat(e)&&(f=e)},l.getZeroFormat=function(){return h},l.setZeroFormat=function(e){return h="string"==typeof e?e:null},l.hasZeroFormat=function(){return null!==h},l.languageData=function(e){if(e){if(c[e])return c[e];throw Error('Unknown tag "'+e+'"')}return r()},l.registerLanguage=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a.validateLanguage(e))throw Error("Invalid language data");c[e.languageTag]=e,t&&o(e.languageTag)},l.setLanguage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.languageTag;if(!c[e]){var n=e.split("-")[0],r=Object.keys(c).find(function(e){return e.split("-")[0]===n});if(!c[r])return void o(t);o(r)}o(e)},l.registerLanguage(i),u=i.languageTag,t.exports=l},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";function o(t,n){t.forEach(function(t){var o=void 0;try{o=e("../languages/"+t)}catch(e){console.error('Unable to load "'+t+'". No matching language file found.')}o&&n.registerLanguage(o)})}t.exports=function(e){return{loadLanguagesInNode:function(t){return o(t,e)}}}},{}],6:[function(e,t,n){"use strict";function o(e,t,n){var o=new u(e._value),r=t;return n.isNumbro(t)&&(r=t._value),r=new u(r),e._value=o.add(r).toNumber(),e}function r(e,t,n){var o=new u(e._value),r=t;return n.isNumbro(t)&&(r=t._value),r=new u(r),e._value=o.minus(r).toNumber(),e}function i(e,t,n){var o=new u(e._value),r=t;return n.isNumbro(t)&&(r=t._value),r=new u(r),e._value=o.times(r).toNumber(),e}function a(e,t,n){var o=new u(e._value),r=t;return n.isNumbro(t)&&(r=t._value),r=new u(r),e._value=o.dividedBy(r).toNumber(),e}function s(e,t,n){var o=t;return n.isNumbro(t)&&(o=t._value),e._value=o,e}function l(e,t,n){var o=n(e._value);return r(o,t,n),Math.abs(o._value)}var u=e("bignumber.js");t.exports=function(e){return{add:function(t,n){return o(t,n,e)},subtract:function(t,n){return r(t,n,e)},multiply:function(t,n){return i(t,n,e)},divide:function(t,n){return a(t,n,e)},set:function(t,n){return s(t,n,e)},difference:function(t,n){return l(t,n,e)}}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){var t=e;return i.isNumbro(e)?t=e._value:"string"==typeof e?t=i.unformat(e):isNaN(e)&&(t=NaN),t}function i(e){return new p(r(e))}var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=e("./globalState"),l=e("./validating"),u=e("./loading")(i),c=e("./unformatting"),h=e("./formatting")(i),f=e("./manipulating")(i),d=e("./parsing"),p=function(){function e(t){o(this,e),this._value=t}return a(e,[{key:"clone",value:function(){return i(this._value)}},{key:"format",value:function(){return h.format(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=d.parseFormat(e)),e=h.formatOrDefault(e,s.currentCurrencyDefaultFormat()),e.output="currency",h.format(this,e)}},{key:"formatTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",h.format(this,e)}},{key:"binaryByteUnits",value:function(){return h.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return h.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return h.getByteUnit(this)}},{key:"difference",value:function(e){return f.difference(this,e)}},{key:"add",value:function(e){return f.add(this,e)}},{key:"subtract",value:function(e){return f.subtract(this,e)}},{key:"multiply",value:function(e){return f.multiply(this,e)}},{key:"divide",value:function(e){return f.divide(this,e)}},{key:"set",value:function(e){return f.set(this,r(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}]),e}();i.version="2.1.0",i.isNumbro=function(e){return e instanceof p},i.language=s.currentLanguage,i.registerLanguage=s.registerLanguage,i.setLanguage=s.setLanguage,i.languages=s.languages,i.languageData=s.languageData,i.zeroFormat=s.setZeroFormat,i.defaultFormat=s.currentDefaults,i.setDefaults=s.setDefaults,i.defaultCurrencyFormat=s.currentCurrencyDefaultFormat,i.validate=l.validate,i.loadLanguagesInNode=u.loadLanguagesInNode,i.unformat=c.unformat,t.exports=i},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,n){"use strict";function o(e,t){var n=e.match(/^{([^}]*)}/);return n?(t.prefix=n[1],e.slice(n[0].length)):e}function r(e,t){var n=e.match(/{([^}]*)}$/);return n?(t.postfix=n[1],e.slice(0,-n[0].length)):e}function i(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",void(t.base="general")):-1!==e.indexOf("b")?(t.output="byte",void(t.base="binary")):-1!==e.indexOf("d")?(t.output="byte",void(t.base="decimal")):void(-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time");t.output="percent"}else t.output="currency"}function a(e,t){-1!==e.indexOf(",")&&(t.thousandSeparated=!0)}function s(e,t){-1!==e.indexOf(" ")&&(t.spaceSeparated=!0)}function l(e,t){var n=e.match(/[1-9]+[0-9]*/);n&&(t.totalLength=+n[0])}function u(e,t){var n=e.split(".")[0].match(/0+/);n&&(t.characteristic=n[0].length)}function c(e,t){var n=e.split(".")[1];if(n){var o=n.match(/0+/);o&&(t.mantissa=o[0].length)}}function h(e,t){-1!==e.indexOf("a")&&(t.average=!0)}function f(e,t){-1!==e.indexOf("K")?t.forceAverage="thousand":-1!==e.indexOf("M")?t.forceAverage="million":-1!==e.indexOf("B")?t.forceAverage="billion":-1!==e.indexOf("T")&&(t.forceAverage="trillion")}function d(e,t){e.match(/\[\.]/)?t.optionalMantissa=!0:e.match(/\./)&&(t.optionalMantissa=!1)}function p(e,t){if(-1!==e.indexOf(".")){t.optionalCharacteristic=-1===e.split(".")[0].indexOf("0")}}function g(e,t){e.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),e.match(/^\+?-/)&&(t.negative="sign")}function v(e,t){e.match(/^\+/)&&(t.forceSign=!0)}t.exports={parseFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(e=o(e,t),e=r(e,t),i(e,t),l(e,t),u(e,t),p(e,t),h(e,t),f(e,t),c(e,t),d(e,t),a(e,t),s(e,t),g(e,t),v(e,t),t)}}},{}],9:[function(e,t,n){"use strict";function o(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6];if(!isNaN(+e))return+e;var c="",h=e.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(h!==e)return-1*r(h,t,n,i,a,s,l);for(var f=0;u.length>f;f++){var d=u[f];if((c=e.replace(d.key,""))!==e)return r(c,t,n,i,a,s,l)*d.factor}if((c=e.replace("%",""))!==e)return r(c,t,n,i,a,s,l)/100;var p=parseFloat(e);if(!isNaN(p)){var g=i(p);if(g&&"."!==g&&(c=e.replace(RegExp(o(g)+"$"),""))!==e)return r(c,t,n,i,a,s,l);var v={};Object.keys(s).forEach(function(e){v[s[e]]=e});for(var m=Object.keys(v).sort().reverse(),y=m.length,w=0;y>w;w++){var C=m[w],b=v[C];if((c=e.replace(C,""))!==e){var _=void 0;switch(b){case"thousand":_=Math.pow(10,3);break;case"million":_=Math.pow(10,6);break;case"billion":_=Math.pow(10,9);break;case"trillion":_=Math.pow(10,12)}return r(c,t,n,i,a,s,l)*_}}}}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=e.replace(n,"");return r=r.replace(RegExp("([0-9])"+o(t.thousands)+"([0-9])","g"),"$1$2"),r=r.replace(t.decimal,".")}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6];if(""!==e)return isNaN(+e)?e===a?0:r(i(e,t,n),t,n,o,a,s,l):+e}function s(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var n=e.split(":");if(3!==n.length)return!1;var o=+n[0],r=+n[1],i=+n[2];return!isNaN(o)&&!isNaN(r)&&!isNaN(i)}function l(e){var t=e.split(":");return+t[2]+60*+t[1]+3600*+t[0]}var u=[{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}];t.exports={unformat:function(t,n){var o=e("./globalState"),r=o.currentDelimiters(),i=o.currentCurrency().symbol,u=o.currentOrdinal(),c=o.getZeroFormat(),h=o.currentAbbreviations(),f=void 0;if("string"==typeof t)f=s(t,r)?l(t):a(t,r,i,u,c,h,n);else{if("number"!=typeof t)return;f=t}if(void 0!==f)return f}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e){return!!l.unformat(e)}function i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object.keys(e).map(function(o){if(!t[o])return console.error(n+" Invalid key: "+o),!1;var r=e[o],a=t[o];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!i(r,c,"[Validate "+o+"]",!0))return!1}else if((void 0===r?"undefined":s(r))!==a.type)return console.error(n+" "+o+' type mismatched: "'+a.type+'" expected, "'+(void 0===r?"undefined":s(r))+'" provided'),!1;if(a.restrictions&&a.restrictions.length)for(var l=a.restrictions.length,u=0;l>u;u++){var h=a.restrictions[u],f=h.restriction,d=h.message;if(!f(r,e))return console.error(n+" "+o+" invalid value: "+d),!1}return a.restriction&&!a.restriction(r,e)?(console.error(n+" "+o+" invalid value: "+a.message),!1):a.validValues&&-1===a.validValues.indexOf(r)?(console.error(n+" "+o+" invalid value: must be among "+JSON.stringify(a.validValues)+', "'+r+'" provided'),!1):!(a.children&&!i(r,a.children,"[Validate "+o+"]"))});return r||a.push.apply(a,o(Object.keys(t).map(function(o){var r=t[o];if("string"==typeof r&&(r={type:r}),r.mandatory){var i=r.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[o])return console.error(n+' Missing mandatory key "'+o+'"'),!1}return!0}))),a.reduce(function(e,t){return e&&t},!0)}function a(e){return i(e,c,"[Validate format]")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=e("./unformatting"),u=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,c={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 e>=0},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 e>=0},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 e>=0},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`"}},h={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(u)},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}}}};t.exports={validate:function(e,t){var n=r(e),o=a(t);return n&&o},validateFormat:a,validateInput:r,validateLanguage:function(e){return i(e,h,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7)}),window.numbro=n(436)},function(e,t,n){"use strict";function o(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}t.__esModule=!0,t.getNormalizedDate=o},function(e,t,n){"use strict";!function(e){function n(e){return e.split('"').length-1}var o={parse:function(e){var t,o,r,i,a,s,l,u=[],c=0;for(r=e.split("\n"),r.length>1&&""===r[r.length-1]&&r.pop(),t=0,o=r.length;o>t;t+=1){for(r[t]=r[t].split("\t"),i=0,a=r[t].length;a>i;i+=1)u[c]||(u[c]=[]),s&&0===i?(l=u[c].length-1,u[c][l]=u[c][l]+"\n"+r[t][0],s&&1&n(r[t][0])&&(s=!1,u[c][l]=u[c][l].substring(0,u[c][l].length-1).replace(/""/g,'"'))):i===a-1&&0===r[t][i].indexOf('"')&&1&n(r[t][i])?(u[c].push(r[t][i].substring(1).replace(/""/g,'"')),s=!0):(u[c].push(r[t][i].replace(/""/g,'"')),s=!1);s||(c+=1)}return u},stringify:function(e){var t,n,o,r,i,a="";for(t=0,n=e.length;n>t;t+=1){for(r=e[t].length,o=0;r>o;o+=1)o>0&&(a+="\t"),i=e[t][o],"string"==typeof i?i.indexOf("\n")>-1?a+='"'+i.replace(/"/g,'""')+'"':a+=i:a+=null===i||void 0===i?"":i;t!==n-1&&(a+="\n")}return a}};t.parse=o.parse,t.stringify=o.stringify}(window)},function(e,t,n){"use strict";function o(e){var t=e.isShiftKey,n=e.isLeftClick,o=e.isRightClick,r=e.coords,i=e.selection,a=e.controller,l=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&l)0>r.row||0>r.col||a.cells?!u&&!c||0>r.row||0>r.col||a.cells?u&&0>r.row&&!a.column?i.setRangeEnd(new s.CellCoords(l.to.row,r.col)):c&&0>r.col&&!a.row?i.setRangeEnd(new s.CellCoords(r.row,l.to.col)):(!u&&!c&&0>r.col||u&&0>r.col)&&!a.row?i.selectRows(l.from.row,r.row):(!u&&!c&&0>r.row||c&&0>r.row)&&!a.column&&i.selectColumns(l.from.col,r.col):i.setRangeEnd(new s.CellCoords(r.row,r.col)):i.setRangeEnd(r);else{var h=new s.CellCoords(r.row,r.col);0>h.row&&(h.row=0),0>h.col&&(h.col=0);var f=!i.inInSelection(h),d=n||o&&f;r.row>=0||0>r.col||a.column?r.col>=0||0>r.row||a.row?0>r.col||0>r.row||a.cells?0>r.col&&0>r.row&&i.setRangeStart(r):d&&i.setRangeStart(r):d&&i.selectRows(r.row):d&&i.selectColumns(r.col)}}function r(e){var t=e.isLeftClick,n=e.coords,o=e.selection,r=e.controller;if(t){var i=o.isSelectedByRowHeader(),a=o.isSelectedByColumnHeader(),l=o.tableProps.countCols(),u=o.tableProps.countRows();a&&!r.column?o.setRangeEnd(new s.CellCoords(u-1,n.col)):i&&!r.row?o.setRangeEnd(new s.CellCoords(n.row,l-1)):r.cell||o.setRangeEnd(n)}}function i(e,t){var n=t.coords,o=t.selection,r=t.controller;l.get(e.type)({coords:n,selection:o,controller:r,isShiftKey:e.shiftKey,isLeftClick:(0,a.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,a.isRightClick)(e)})}t.__esModule=!0,t.mouseDown=o,t.mouseOver=r,t.handleMouseEvent=i;var a=n(13),s=n(4),l=new Map([["mousedown",o],["mouseover",r],["touchstart",o]])},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){f.set(e,t)}function i(e){var t=e instanceof u.default?e:a(e),n=void 0;return d.has(t)?n=d.get(t):(n=new h(t),d.set(t,n)),n}function a(e){if(!f.has(e))throw Error("Record translator was not registered for this object identity");return f.get(e)}t.__esModule=!0,t.RecordTranslator=void 0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.registerIdentity=r,t.getTranslator=i,t.getIdentity=a;var l=n(90),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(1),h=t.RecordTranslator=function(){function e(t){o(this,e),this.hot=t}return s(e,[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return(0,c.isObject)(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return(0,c.isObject)(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}]),e}(),f=new WeakMap,d=new WeakMap},function(e,t,n){"use strict";function o(e){a.set(e,!0)}function r(e){return e===s}function i(e){return a.has(e)}t.__esModule=!0,t.registerAsRootInstance=o,t.hasValidParameter=r,t.isRootInstance=i;var a=t.holder=new WeakMap,s=t.rootInstanceSymbol=Symbol("rootInstance")},function(e,t,n){"use strict";function o(){}t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(10),a=n(1);o.prototype={licenseKey:"trial",data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,selectionMode:"multiple",fillHandle:{autoInsertRow:!1},fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!0,autoWrapCol:!0,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",activeHeaderClassName:"ht__active_highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t=void 0,n=void 0,o=void 0,s=void 0;for(t=0,n=this.countCols();n>t;t++)if(""!==(o=this.getDataAtCell(e,t))&&null!==o&&(0,i.isDefined)(o))return"object"===(void 0===o?"undefined":r(o))&&(s=this.getCellMeta(e,t),(0,a.isObjectEqual)(this.getSchema()[s.prop],o));return!0},isEmptyCol:function(e){var t=void 0,n=void 0,o=void 0;for(t=0,n=this.countRows();n>t;t++)if(""!==(o=this.getDataAtCell(t,e))&&null!==o&&(0,i.isDefined)(o))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:void 0,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,copyPaste:!0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,multiColumnSorting:void 0,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,manualColumnFreeze:void 0,trimWhitespace:!0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,numericFormat:void 0,language:"en-US",selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:"DD/MM/YYYY",correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1,dragToScroll:!0,nestedRows:void 0},t.default=o},function(e,t,n){"use strict";function o(e,t,n){var o=(0,a.getLanguageDictionary)(e);if(null===o)return null;var i=o[t];if((0,l.isUndefined)(i))return null;var s=r(i,n);return Array.isArray(s)?s[0]:s}function r(e,t){var n=e;return(0,i.arrayEach)((0,s.getPhraseFormatters)(),function(o){n=o(e,t)}),n}t.__esModule=!0,t.getTranslatedPhrase=o;var i=n(2),a=n(71),s=n(518),l=n(10)},function(e,t,n){"use strict";function o(e,t){return(0,c.objectEach)(t,function(t,n){(0,u.isUndefined)(e[n])&&(e[n]=t)}),e}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=n,i=o;if(e>t){var a=[i,r];r=a[0],i=a[1]}return r+"-"+i}function i(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/,n=t.exec(e);return n?n[1].toLowerCase()+"-"+n[2].toUpperCase():e}function a(e,t){var n=i(t);(0,d.hasLanguageDictionary)(n)?e.language=n:(e.language=d.DEFAULT_LANGUAGE_CODE,s(t))}function s(e){(0,u.isDefined)(e)&&(0,h.error)((0,f.toSingleLine)(l,e))}t.__esModule=!0;var l=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['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 \n    before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.']);t.extendNotExistingKeys=o,t.createCellHeadersRange=r,t.normalizeLanguageCode=i,t.applyLanguageSetting=a,t.warnUserAboutLanguageRegistration=s;var u=n(10),c=n(1),h=n(48),f=n(42),d=n(71)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.normalizeSelectionFactory=t.detectSelectionType=t.Selection=t.Highlight=t.handleMouseEvent=void 0;var r=n(446),i=o(r),a=n(527),s=o(a),l=n(439),u=n(72);t.handleMouseEvent=l.handleMouseEvent,t.Highlight=i.default,t.Selection=s.default,t.detectSelectionType=u.detectSelectionType,t.normalizeSelectionFactory=u.normalizeSelectionFactory},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.CUSTOM_SELECTION=t.HEADER_TYPE=t.FILL_TYPE=t.CELL_TYPE=t.AREA_TYPE=t.ACTIVE_HEADER_TYPE=void 0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(520),s=n(2),l=t.ACTIVE_HEADER_TYPE="active-header",u=t.AREA_TYPE="area",c=t.CELL_TYPE="cell",h=t.FILL_TYPE="fill",f=t.HEADER_TYPE="header",d=t.CUSTOM_SELECTION="custom-selection";t.default=function(){function e(t){r(this,e),this.options=t,this.layerLevel=0,this.cell=(0,a.createHighlight)(c,t),this.fill=(0,a.createHighlight)(h,t),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return i(e,[{key:"isEnabledFor",value:function(e){var t="current"===e?c:e,n=this.options.disableHighlight;return"string"==typeof n&&(n=[n]),!1===n||Array.isArray(n)&&!n.includes(t)}},{key:"useLayerLevel",value:function(){return this.layerLevel=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e=this.layerLevel,t=void 0;return this.areas.has(e)?t=this.areas.get(e):(t=(0,a.createHighlight)(u,Object.assign({layerLevel:e},this.options)),this.areas.set(e,t)),t}},{key:"getAreas",value:function(){return[].concat(o(this.areas.values()))}},{key:"createOrGetHeader",value:function(){var e=this.layerLevel,t=void 0;return this.headers.has(e)?t=this.headers.get(e):(t=(0,a.createHighlight)(f,Object.assign({},this.options)),this.headers.set(e,t)),t}},{key:"getHeaders",value:function(){return[].concat(o(this.headers.values()))}},{key:"createOrGetActiveHeader",value:function(){var e=this.layerLevel,t=void 0;return this.activeHeaders.has(e)?t=this.activeHeaders.get(e):(t=(0,a.createHighlight)(l,Object.assign({},this.options)),this.activeHeaders.set(e,t)),t}},{key:"getActiveHeaders",value:function(){return[].concat(o(this.activeHeaders.values()))}},{key:"getCustomSelections",value:function(){return[].concat(o(this.customSelections.values()))}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,a.createHighlight)(d,Object.assign({},e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,s.arrayEach)(this.areas.values(),function(e){return void e.clear()}),(0,s.arrayEach)(this.headers.values(),function(e){return void e.clear()}),(0,s.arrayEach)(this.activeHeaders.values(),function(e){return void e.clear()})}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat(o(this.areas.values()),o(this.headers.values()),o(this.activeHeaders.values()),o(this.customSelections))[Symbol.iterator]()}}]),e}()},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(1),s=n(5),l=n(10);t.default=function(){function e(t){r(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return i(e,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),i(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 o=this,r=new Map,i="number"==typeof n?{from:n,to:n}:n;return(0,s.rangeEach)(i.from,i.to,function(n){var i=o.generateSample(e,t,n);r.set(n,i)}),r}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw Error("Unsupported sample type");var i=new Map,u="row"===e?"col":"row",c=[];return(0,s.rangeEach)(t.from,t.to,function(t){var s="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=s.value,f=s.bundleCountSeed,d=f>0,p=void 0;p=(0,a.isObject)(h)?Object.keys(h).length:Array.isArray(h)?h.length:(0,l.stringify)(h).length,d&&(p+=f),i.has(p)||i.set(p,{needed:r.getSampleCount(),strings:[]});var g=i.get(p);if(g.needed){(!(c.indexOf(h)>-1)||r.allowDuplicates||d)&&(g.strings.push(o({value:h},u,t)),c.push(h),g.needed-=1)}}),i}}]),e}()},function(e,t,n){"use strict";function o(e){if((0,h.isUndefined)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[p,g].includes(n)}function r(e){if(!1===Array.isArray(e)||!1===e.every(function(e){return(0,f.isObject)(e)}))return!1;var t=e.map(function(e){return e.column});return new Set(t).size===t.length&&e.every(o)}function i(e){if(e!==g)return e===p?g:p}function a(e){return(0,h.isUndefined)(e)?[]:Array.isArray(e)?e:[e]}function s(e){}function l(){(0,d.warn)("Sort configuration failed to validate properly.")}function u(e){return e.querySelector("."+v)}function c(e,t){if(0>e||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;return-1==Array.from(n).indexOf(t.parentNode)-n.length}t.__esModule=!0,t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0,t.areValidSortStates=r,t.getNextSortOrder=i,t.getFullSortConfiguration=a,t.warnIfPluginsHaveConflict=s,t.warnAboutNotValidatedConfig=l,t.getHeaderSpanElement=u,t.isFirstLevelColumnHeader=c;var h=n(10),f=n(1),d=n(48),p=t.ASC_SORT_STATE="asc",g=t.DESC_SORT_STATE="desc",v=t.HEADER_SPAN_CLASS="colHeader"},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(5),a=0;t.default=function(){function e(t){o(this,e),this.hot=t,this._element=null,this.state=a}return r(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=a}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,i.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,i.isNumeric)(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){(0,i.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,i.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,i.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,i.isNumeric)(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}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=0;t.default=function(){function e(t){o(this,e),this.hot=t,this._element=null,this.state=i}return r(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=i}},{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}()},function(e,t,n){"use strict";function o(e,t,n,o){t?t.row===n&&t.col===o?(e.setAttribute("rowspan",""+t.rowspan),e.setAttribute("colspan",""+t.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")}t.__esModule=!0,t.applySpanProperties=o},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=new h.default(e,t||{},Q.rootInstanceSymbol);return n.init(),n}t.__esModule=!0,n(99),n(114),n(115),n(119),n(120),n(122),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(144),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(88),n(159),n(160),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(171),n(172),n(174),n(175),n(176),n(471),n(472),n(473);var a=n(17),s=n(14),l=n(34),u=n(89),c=n(90),h=r(c),f=n(530),d=r(f),p=n(6),g=r(p),v=n(16),m=r(v),y=n(94),w=r(y),C=n(2),b=o(C),_=n(39),S=o(_),E=n(92),O=o(E),T=n(437),k=o(T),R=n(40),M=o(R),D=n(43),A=o(D),N=n(10),P=o(N),H=n(5),L=o(H),x=n(1),I=o(x),j=n(91),F=o(j),W=n(33),B=o(W),Y=n(21),V=o(Y),U=n(0),z=o(U),G=n(13),K=o(G),X=n(531),q=o(X),Z=n(8),$=n(442),J=r($),Q=n(441),ee=n(443),te=n(7),ne=o(te),oe=n(71);(0,d.default)(i),i.Core=h.default,i.DefaultSettings=J.default,i.EventManager=g.default,i._getListenersCounter=p.getListenersCounter,i.buildDate="26/09/2018 12:57:26",i.packageName="handsontable",i.version="6.0.0";i.hooks=m.default.getSingleton(),i.__GhostTable=w.default;var re=[b,S,O,k,M,A,P,L,I,F,B,V],ie=[z,K];i.helper={},i.dom={},b.arrayEach(re,function(e){b.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(i.helper[t]=e[t])})}),b.arrayEach(ie,function(e){b.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(i.dom[t]=e[t])})}),i.cellTypes={},b.arrayEach((0,u.getRegisteredCellTypeNames)(),function(e){i.cellTypes[e]=(0,u.getCellType)(e)}),i.cellTypes.registerCellType=u.registerCellType,i.cellTypes.getCellType=u.getCellType,i.editors={},b.arrayEach((0,a.getRegisteredEditorNames)(),function(e){i.editors[B.toUpperCaseFirst(e)+"Editor"]=(0,a.getEditor)(e)}),i.editors.registerEditor=a.registerEditor,i.editors.getEditor=a.getEditor,i.renderers={},b.arrayEach((0,s.getRegisteredRendererNames)(),function(e){var t=(0,s.getRenderer)(e);"base"===e&&(i.renderers.cellDecorator=t),i.renderers[B.toUpperCaseFirst(e)+"Renderer"]=t}),i.renderers.registerRenderer=s.registerRenderer,i.renderers.getRenderer=s.getRenderer,i.validators={},b.arrayEach((0,l.getRegisteredValidatorNames)(),function(e){i.validators[B.toUpperCaseFirst(e)+"Validator"]=(0,l.getValidator)(e)}),i.validators.registerValidator=l.registerValidator,i.validators.getValidator=l.getValidator,i.plugins={},b.arrayEach(Object.getOwnPropertyNames(q),function(e){var t=q[e];"Base"===e?i.plugins[e+"Plugin"]=t:i.plugins[e]=t}),i.plugins.registerPlugin=Z.registerPlugin,i.languages={},i.languages.dictionaryKeys=ne,i.languages.getLanguageDictionary=oe.getLanguageDictionary,i.languages.getLanguagesDictionaries=oe.getLanguagesDictionaries,i.languages.registerLanguageDictionary=oe.registerLanguageDictionary,i.languages.getTranslatedPhrase=function(){return ee.getTranslatedPhrase.apply(void 0,arguments)},t.default=i},function(e,t,n){var o=n(20),r=n(18),i=n(35);e.exports=n(22)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),s=a.length,l=0;s>l;)o.f(e,n=a[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(76),r=n(53),i=n(55),a={};n(29)(a,n(12)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(9),r=n(113).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&o(i)&&r&&r(e,i),e}},function(e,t,n){var o=n(457);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,n){var o=n(9),r=n(116),i=n(12)("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),o(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var o=n(18),r=n(63),i=n(12)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||void 0==(n=o(a)[i])?t:r(n)}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(15),r=n(82).set,i=o.MutationObserver||o.WebKitMutationObserver,a=o.process,s=o.Promise,l="process"==n(44)(a);e.exports=function(){var e,t,n,u=function(){var o,r;for(l&&(o=a.domain)&&o.exit();e;){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(l)n=function(){a.nextTick(u)};else if(!i||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(o,u)};else{var h=!0,f=document.createTextNode("");new i(u).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(o){var r={fn:o,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var o=n(18),r=n(9),i=n(121);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var o=n(15),r=n(37),i=n(51),a=n(123),s=n(20).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var o=n(35),r=n(69),i=n(56);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,s=n(e),l=i.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var o=n(60),r=n(36);e.exports=function(e){return function(t,n){var i,a,s=r(t)+"",l=o(n),u=s.length;return 0>l||l>=u?e?"":void 0:(i=s.charCodeAt(l),55296>i||i>56319||l+1===u||56320>(a=s.charCodeAt(l+1))||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var o=n(18);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o=n(31),r=n(61),i=n(25);e.exports=[].copyWithin||function(e,t){var n=o(this),a=i(n.length),s=r(e,a),l=r(t,a),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?a:r(u,a))-l,a-s),h=1;for(s>l&&l+c>s&&(h=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},function(e,t,n){"use strict";var o=n(31),r=n(61),i=n(25);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var o=n(84),r=n(69),i=n(18),a=n(15).Reflect;e.exports=a&&a.ownKeys||function(e){var t=o.f(i(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=n(0),s=n(41),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(l.default.CLONE_DEBUG),n.clone.wtTable.holder.style.opacity=.4,n.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",(0,a.addClass)(n.clone.wtTable.holder.parentNode,"wtDebugVisible"),n}return i(t,e),t}(l.default);l.default.registerOverlay(l.default.CLONE_DEBUG,u),t.default=u},function(e,t,n){function o(e){return n(r(e))}function r(e){var t=i[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var i={"./af":184,"./af.js":184,"./ar":185,"./ar-dz":186,"./ar-dz.js":186,"./ar-kw":187,"./ar-kw.js":187,"./ar-ly":188,"./ar-ly.js":188,"./ar-ma":189,"./ar-ma.js":189,"./ar-sa":190,"./ar-sa.js":190,"./ar-tn":191,"./ar-tn.js":191,"./ar.js":185,"./az":192,"./az.js":192,"./be":193,"./be.js":193,"./bg":194,"./bg.js":194,"./bm":195,"./bm.js":195,"./bn":196,"./bn.js":196,"./bo":197,"./bo.js":197,"./br":198,"./br.js":198,"./bs":199,"./bs.js":199,"./ca":200,"./ca.js":200,"./cs":201,"./cs.js":201,"./cv":202,"./cv.js":202,"./cy":203,"./cy.js":203,"./da":204,"./da.js":204,"./de":205,"./de-at":206,"./de-at.js":206,"./de-ch":207,"./de-ch.js":207,"./de.js":205,"./dv":208,"./dv.js":208,"./el":209,"./el.js":209,"./en-au":210,"./en-au.js":210,"./en-ca":211,"./en-ca.js":211,"./en-gb":212,"./en-gb.js":212,"./en-ie":213,"./en-ie.js":213,"./en-nz":214,"./en-nz.js":214,"./eo":215,"./eo.js":215,"./es":216,"./es-do":217,"./es-do.js":217,"./es-us":218,"./es-us.js":218,"./es.js":216,"./et":219,"./et.js":219,"./eu":220,"./eu.js":220,"./fa":221,"./fa.js":221,"./fi":222,"./fi.js":222,"./fo":223,"./fo.js":223,"./fr":224,"./fr-ca":225,"./fr-ca.js":225,"./fr-ch":226,"./fr-ch.js":226,"./fr.js":224,"./fy":227,"./fy.js":227,"./gd":228,"./gd.js":228,"./gl":229,"./gl.js":229,"./gom-latn":230,"./gom-latn.js":230,"./gu":231,"./gu.js":231,"./he":232,"./he.js":232,"./hi":233,"./hi.js":233,"./hr":234,"./hr.js":234,"./hu":235,"./hu.js":235,"./hy-am":236,"./hy-am.js":236,"./id":237,"./id.js":237,"./is":238,"./is.js":238,"./it":239,"./it.js":239,"./ja":240,"./ja.js":240,"./jv":241,"./jv.js":241,"./ka":242,"./ka.js":242,"./kk":243,"./kk.js":243,"./km":244,"./km.js":244,"./kn":245,"./kn.js":245,"./ko":246,"./ko.js":246,"./ky":247,"./ky.js":247,"./lb":248,"./lb.js":248,"./lo":249,"./lo.js":249,"./lt":250,"./lt.js":250,"./lv":251,"./lv.js":251,"./me":252,"./me.js":252,"./mi":253,"./mi.js":253,"./mk":254,"./mk.js":254,"./ml":255,"./ml.js":255,"./mr":256,"./mr.js":256,"./ms":257,"./ms-my":258,"./ms-my.js":258,"./ms.js":257,"./mt":259,"./mt.js":259,"./my":260,"./my.js":260,"./nb":261,"./nb.js":261,"./ne":262,"./ne.js":262,"./nl":263,"./nl-be":264,"./nl-be.js":264,"./nl.js":263,"./nn":265,"./nn.js":265,"./pa-in":266,"./pa-in.js":266,"./pl":267,"./pl.js":267,"./pt":268,"./pt-br":269,"./pt-br.js":269,"./pt.js":268,"./ro":270,"./ro.js":270,"./ru":271,"./ru.js":271,"./sd":272,"./sd.js":272,"./se":273,"./se.js":273,"./si":274,"./si.js":274,"./sk":275,"./sk.js":275,"./sl":276,"./sl.js":276,"./sq":277,"./sq.js":277,"./sr":278,"./sr-cyrl":279,"./sr-cyrl.js":279,"./sr.js":278,"./ss":280,"./ss.js":280,"./sv":281,"./sv.js":281,"./sw":282,"./sw.js":282,"./ta":283,"./ta.js":283,"./te":284,"./te.js":284,"./tet":285,"./tet.js":285,"./th":286,"./th.js":286,"./tl-ph":287,"./tl-ph.js":287,"./tlh":288,"./tlh.js":288,"./tr":289,"./tr.js":289,"./tzl":290,"./tzl.js":290,"./tzm":291,"./tzm-latn":292,"./tzm-latn.js":292,"./tzm.js":291,"./uk":293,"./uk.js":293,"./ur":294,"./ur.js":294,"./uz":295,"./uz-latn":296,"./uz-latn.js":296,"./uz.js":295,"./vi":297,"./vi.js":297,"./x-pseudo":298,"./x-pseudo.js":298,"./yo":299,"./yo.js":299,"./zh-cn":300,"./zh-cn.js":300,"./zh-hk":301,"./zh-hk.js":301,"./zh-tw":302,"./zh-tw.js":302};o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=475},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),l=n(41),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_LEFT),n}return i(t,e),a(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),(0,s.resetCssTransform)(e);else{var o=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(o.left),i=Math.ceil(o.right),a=void 0,l=void 0;l=this.wot.wtTable.hider.style.top,l=""===l?0:l,a=0>r&&i-e.offsetWidth>0?-r:0,t=a,a+="px",(0,s.setOverlayPosition)(e,a,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=!1;return this.mainTableScrollableElement===window&&window.scrollX!==e?(window.scrollTo(e,(0,s.getWindowScrollTop)()),t=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,t=!0),t}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.defaultColumnWidth,o=e,r=0;t>o;)r+=this.wot.wtTable.getStretchedColumnWidth(o)||n,o+=1;return r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientHeight===e.offsetHeight?0:(0,s.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode,o=n.style,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===r){var i=this.wot.wtViewport.getWorkspaceHeight()-t;i=Math.min(i,(0,s.innerHeight)(this.wot.wtTable.wtRootElement)),o.height=i+"px"}else o.height="";this.clone.wtTable.holder.style.height=o.height;var a=(0,s.outerWidth)(this.clone.wtTable.TABLE);o.width=(0===a?a:a+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,s.getScrollbarWidth)();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px";else{if(0!==e)throw Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){this.clone.wtTable.spreader.style.top="number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=o.wtTable.holder,i=0;return t&&r.offsetWidth!==r.clientWidth&&(i=(0,s.getScrollbarWidth)()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=this.wot.getSetting("preventOverflow"),t=0;return e||this.trimmingContainer!==window||(t=this.wot.wtTable.holderOffset.left),t}},{key:"getScrollPosition",value:function(){return(0,s.getScrollLeft)(this.mainTableScrollableElement)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),o=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?(0,s.removeClass)(t,"emptyRows"):(0,s.addClass)(t,"emptyRows"),o&&!n.length)(0,s.addClass)(t,"innerBorderLeft");else if(!o&&n.length){var r=(0,s.hasClass)(t,"innerBorderLeft");e?(0,s.addClass)(t,"innerBorderLeft"):(0,s.removeClass)(t,"innerBorderLeft"),(!r&&e||r&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_LEFT,c),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),l=n(2),u=n(41),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(c.default.CLONE_TOP),n}return i(t,e),a(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),(0,s.resetCssTransform)(e);else{var o=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(o.top),i=Math.ceil(o.bottom),a=void 0,l=void 0;a=this.wot.wtTable.hider.style.left,a=""===a?0:a,l=0>r&&i-e.offsetHeight>0?-r:0,t=l,l+="px",(0,s.setOverlayPosition)(e,a,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=!1;return this.mainTableScrollableElement===window&&window.scrollY!==e?(window.scrollTo((0,s.getWindowScrollLeft)(),e),t=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,t=!0),t}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.settings.defaultRowHeight,o=e,r=0;t>o;){var i=this.wot.wtTable.getRowHeight(o);r+=void 0===i?n:i,o+=1}return r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable.holder,t=e.clientWidth===e.offsetWidth?0:(0,s.getScrollbarWidth)(),n=this.clone.wtTable.holder.parentNode,o=n.style,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===r){var i=this.wot.wtViewport.getWorkspaceWidth()-t;i=Math.min(i,(0,s.innerWidth)(this.wot.wtTable.wtRootElement)),o.width=i+"px"}else o.width="";this.clone.wtTable.holder.style.width=o.width;var a=(0,s.outerHeight)(this.clone.wtTable.TABLE);o.height=(0===a?a:a+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,s.getScrollbarWidth)();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){this.clone.wtTable.spreader.style.left="number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=o.wtTable.holder,i=0;if(t&&r.offsetHeight!==r.clientHeight&&(i=(0,s.getScrollbarWidth)()),t){var a=this.wot.getSetting("fixedRowsBottom"),l=this.wot.getSetting("totalRows");n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(l-a,l),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);return n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,s.getScrollTop)(this.mainTableScrollableElement)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot),n=e.getCorners();t.disappear(),t.appear(n)}}},{key:"redrawAllSelectionsBorders",value:function(){var e=this,t=this.wot.selections;this.redrawSelectionBorders(t.getCell()),(0,l.arrayEach)(t.getAreas(),function(t){e.redrawSelectionBorders(t)}),this.redrawSelectionBorders(t.getFill()),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?(0,s.removeClass)(t,"emptyColumns"):(0,s.addClass)(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var n=(0,s.hasClass)(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?(0,s.addClass)(t,"innerBorderTop"):(0,s.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var o=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(o)for(var r=0;o.length>r;r++)o[r].style["border-left-width"]=0}}}]),t}(c.default);c.default.registerOverlay(c.default.CLONE_TOP,h),t.default=h},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),l=n(41),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(u.default.CLONE_TOP_LEFT_CORNER),n}return i(t,e),a(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=(0,s.outerHeight)(this.clone.wtTable.TABLE),n=(0,s.outerWidth)(this.clone.wtTable.TABLE),o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var r=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(r.top),a=Math.ceil(r.left),l=Math.ceil(r.bottom),u=Math.ceil(r.right),c="0",h="0";o&&"vertical"!==o||0>a&&u-e.offsetWidth>0&&(c=-a+"px"),o&&"horizontal"!==o||0>i&&l-e.offsetHeight>0&&(h=-i+"px"),(0,s.setOverlayPosition)(e,c,h)}else(0,s.resetCssTransform)(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===n?n:n+4)+"px"}}}]),t}(u.default);u.default.registerOverlay(u.default.CLONE_TOP_LEFT_CORNER,c),t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),u=n(310),c=o(u),h=n(58),f=o(h),d=n(179),p=o(d);t.default=function(){function e(t,n){r(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 s(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new c.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=new p.default(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.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e.wtTable.getCell(new f.default(t,n));if("object"===(void 0===i?"undefined":a(i))){var s=o;r&&(s=this.classNameGenerator(i),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(i,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===r)return e;var i=0>r?t:r,a=e;(i-=1,(0,l.hasClass)(o,0===i?e:e+"-"+i))?a=e+"-"+(i+1):a=n(o,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())return void(this.settings.border&&this.getBorder(e).disappear());for(var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),o=this.getCorners(),r=i(o,4),a=r[0],s=r[1],u=r[2],c=r[3],h=0;n>h;h+=1){var f=e.wtTable.columnFilter.renderedToSource(h);if(f>=s&&c>=f){var d=e.wtTable.getColumnHeader(f);if(d){var p=[];this.settings.highlightHeaderClassName&&p.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&p.push(this.settings.highlightColumnClassName),(0,l.addClass)(d,p)}}}for(var g=0;t>g;g+=1){var v=e.wtTable.rowFilter.renderedToSource(g);if(v>=a&&u>=v){var m=e.wtTable.getRowHeader(v);if(m){var y=[];this.settings.highlightHeaderClassName&&y.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&y.push(this.settings.highlightRowClassName),(0,l.addClass)(m,y)}}for(var w=0;n>w;w+=1){var C=e.wtTable.columnFilter.renderedToSource(w);a>v||v>u||s>C||C>c?a>v||v>u?s>C||C>c||this.settings.highlightColumnClassName&&this.addClassAtCoords(e,v,C,this.settings.highlightColumnClassName):this.settings.highlightRowClassName&&this.addClassAtCoords(e,v,C,this.settings.highlightRowClassName):this.settings.className&&this.addClassAtCoords(e,v,C,this.settings.className,this.settings.markIntersections);var b=e.getSetting("onAfterDrawSelection",v,C,o,this.settings.layerLevel);"string"==typeof b&&this.addClassAtCoords(e,v,C,b)}}e.getSetting("onBeforeDrawBorders",o,this.settings.className),this.settings.border&&this.getBorder(e).appear(o)}}]),e}()},function(e,t,n){"use strict";function o(){function e(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}var t,n={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},o=document.body,r=document.createTextNode(""),i=document.createElement("SPAN"),a=function(e,t,n){e.addEventListener(t,n,!1)},s=function(e,t,n){e.removeEventListener(t,n,!1)},l=function(a){var s,l;a?/^[a-zA-Z \.,\\\/\|0-9]$/.test(a)||(a="."):a="",void 0!==r.textContent?r.textContent=t.value+a:r.data=t.value+a,i.style.fontSize=e(t).fontSize,i.style.fontFamily=e(t).fontFamily,i.style.whiteSpace="pre",o.appendChild(i),s=i.clientWidth+2,o.removeChild(i),t.style.height=n.minHeight+"px",t.style.width=n.minWidth>s?n.minWidth+"px":s>n.maxWidth?n.maxWidth+"px":s+"px",l=t.scrollHeight?t.scrollHeight-1:0,n.minHeight>l?t.style.height=n.minHeight+"px":l>n.maxHeight?(t.style.height=n.maxHeight+"px",t.style.overflowY="visible"):t.style.height=l+"px"},u=function(){window.setTimeout(l,0)},c=function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)n.minHeight=t.clientHeight;else{var o=parseInt(e.minHeight);isNaN(o)||(n.minHeight=o)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)n.maxHeight=t.clientHeight;else{var a=parseInt(e.maxHeight);isNaN(a)||(n.maxHeight=a)}if(e&&e.minWidth)if("inherit"==e.minWidth)n.minWidth=t.clientWidth;else{var s=parseInt(e.minWidth);isNaN(s)||(n.minWidth=s)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)n.maxWidth=t.clientWidth;else{var l=parseInt(e.maxWidth);isNaN(l)||(n.maxWidth=l)}i.firstChild||(i.className="autoResize",i.style.display="inline-block",i.appendChild(r))},h=function(e,o,r){t=e,c(o),"TEXTAREA"==t.nodeName&&(t.style.resize="none",t.style.overflowY="",t.style.height=n.minHeight+"px",t.style.minWidth=n.minWidth+"px",t.style.maxWidth=n.maxWidth+"px",t.style.overflowY="hidden"),r&&(a(t,"change",l),a(t,"cut",u),a(t,"paste",u),a(t,"drop",u),a(t,"keydown",u),a(t,"focus",l),a(t,"compositionstart",u),a(t,"compositionupdate",u),a(t,"compositionend",u)),l()};return{init:function(e,t,n){h(e,t,n)},unObserve:function(){s(t,"change",l),s(t,"cut",u),s(t,"paste",u),s(t,"drop",u),s(t,"keydown",u),s(t,"focus",l),s(t,"compositionstart",u),s(t,"compositionupdate",u),s(t,"compositionend",u)},resize:l}}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(57),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(0);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');(0,u.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}]),t}(l.default)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(47),c=o(u),h=n(483),f=o(h);n(486);var d=n(0),p=n(1),g=n(6),v=o(g),m=n(21),y=n(13),w=n(59),C=o(w);t.default=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.defaultDateFormat="DD/MM/YYYY",n.isCellEdited=!1,n.parentDestroyed=!1,n}return a(t,e),s(t,[{key:"init",value:function(){var e=this;if("function"!=typeof c.default)throw Error("You need to include moment.js to your project.");if("function"!=typeof f.default)throw Error("You need to include Pikaday to your project.");l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})}},{key:"createElements",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,d.addClass)(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new f.default(this.getDatePickerConfig()),new v.default(this).addEventListener(this.datePicker,"mousedown",function(e){return(0,y.stopPropagation)(e)}),this.hideDatepicker()}},{key:"destroyElements",value:function(){this.$datePicker.destroy()}},{key:"prepare",value:function(e,n,o,r,i,a){this._opened=!1,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,o,r,i,a)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout(function(){e.instance._refreshBorders()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var o=this.originalValue;void 0!==o&&this.setValue(o)}this.hideDatepicker(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"finishEditing",this).call(this,e,n)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t=this.TD.getBoundingClientRect(),n=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.$datePicker.config(),r=void 0,i=this.instance.view.isMouseDown(),a=!!e&&(0,m.isMetaKey)(e.keyCode);this.datePickerStyle.top=window.pageYOffset+t.top+(0,d.outerHeight)(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+t.left+"px",this.$datePicker._onInputFocus=function(){},o.format=n,this.originalValue?(r=this.originalValue,(0,c.default)(r,n,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(r,n),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),a||i||this.setValue("")):this.cellProperties.defaultDate?(r=this.cellProperties.defaultDate,o.defaultDate=r,(0,c.default)(r,n,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(r,n),!0),a||i||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,p.deepExtend)(n,this.cellProperties.datePickerConfig);var o=n.onSelect,r=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,c.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),o&&o()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),r&&r()},n}}]),t}(C.default)},function(e,t,n){/*!
   * Pikaday
   *
   * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
   */
  !function(t,o){"use strict";var r;try{r=n(484)}catch(e){}e.exports=o(r)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,o=window.document,r=window.setTimeout,i=function(e,t,o,r){n?e.addEventListener(t,o,!!r):e.attachEvent("on"+t,o)},a=function(e,t,o,r){n?e.removeEventListener(t,o,!!r):e.detachEvent("on"+t,o)},s=function(e,t,n){var r;o.createEvent?(r=o.createEvent("HTMLEvents"),r.initEvent(t,!0,!1),r=w(r,n),e.dispatchEvent(r)):o.createEventObject&&(r=o.createEventObject(),r=w(r,n),e.fireEvent("on"+t,r))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},h=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},f=function(e){return/Array/.test(Object.prototype.toString.call(e))},d=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},g=function(e){return e%4==0&&e%100!=0||e%400==0},v=function(e,t){return[31,g(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},m=function(e){d(e)&&e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},w=function(e,t,n){var o,r;for(o in t)r=void 0!==e[o],r&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?d(t[o])?n&&(e[o]=new Date(t[o].getTime())):f(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=w({},t[o],n):!n&&r||(e[o]=t[o]);return e},C=function(e){return 0>e.month&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},b={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},S=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},E=function(e,t,n){var o=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-o)/864e5+o.getDay()+1)/7)+"</td>"},O=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},T=function(e){return"<tbody>"+e.join("")+"</tbody>"},k=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;7>t;t++)n.push('<th scope="col"><abbr title="'+_(e,t)+'">'+_(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},R=function(e,t,n,o,r,i){var a,s,l,u,c,h=e._o,d=n===h.minYear,p=n===h.maxYear,g='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',v=!0,m=!0;for(l=[],a=0;12>a;a++)l.push('<option value="'+(n===r?a-t:12+a-t)+'"'+(a===o?' selected="selected"':"")+(d&&h.minMonth>a||p&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",f(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),l=[];s>a&&h.maxYear>=a;a++)h.minYear>a||l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",g+=h.showMonthAfterYear?c+u:u+c,!d||0!==o&&o>h.minMonth||(v=!1),!p||11!==o&&h.maxMonth>o||(m=!1),0===t&&(g+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+="</div>"},M=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+k(e)+T(t)+"</table>"},D=function(a){var s=this,l=s.config(a);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?s.prevMonth():u(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&r(function(){s.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?s.gotoMonth(t.value):u(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var o;n.firedBy!==s&&(t?(o=e(l.field.value,l.format,l.formatStrict),o=o&&o.isValid()?o.toDate():null):o=new Date(Date.parse(l.field.value)),d(o)&&s.setDate(o),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=o.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=r(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,o=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",s._onChange)));do{if(u(o,"pika-single")||o===l.trigger)return}while(o=o.parentNode);s._v&&t!==l.trigger&&o!==l.trigger&&s.hide()}},s.el=o.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),i(s.el,"mousedown",s._onMouseDown,!0),i(s.el,"touchend",s._onMouseDown,!0),i(s.el,"change",s._onChange),i(o,"keydown",s._onKeyChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?o.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),i(l.field,"change",s._onInputChange),l.defaultDate||(l.defaultDate=t&&l.field.value?e(l.field.value,l.format).toDate():new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;d(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",i(l.trigger,"click",s._onInputClick),i(l.trigger,"focus",s._onInputFocus),i(l.trigger,"blur",s._onInputBlur)):this.show()};return D.prototype={config:function(e){this._o||(this._o=w({},b,!0));var t=w(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,d(t.minDate)||(t.minDate=!1),d(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.minDate>t.maxDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),f(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else(t.yearRange=Math.abs(parseInt(t.yearRange,10))||b.yearRange)>100&&(t.yearRange=100);return t},toString:function(n){return d(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,o){t&&e.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),d(e)){var n=this._o.minDate,o=this._o.maxDate;d(n)&&n>e?e=n:d(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=""+this,s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(d(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=r<n.getTime()||o.getTime()<r}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,o){var r,i=this.getDate(),a=24*parseInt(o)*60*60*1e3;"add"===n?r=new Date(i.valueOf()+a):"subtract"===n&&(r=new Date(i.valueOf()-a)),t&&("add"===n?r=e(i).add(o,"days").toDate():"subtract"===n&&(r=e(i).subtract(o,"days").toDate())),this.setDate(r)},adjustCalendars:function(){this.calendars[0]=C(this.calendars[0]);for(var e=1;this._o.numberOfMonths>e;e++)this.calendars[e]=C({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(m(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=b.minDate,this._o.minYear=b.minYear,this._o.minMonth=b.minMonth,this._o.startRange=b.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(m(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=b.maxDate,this._o.maxYear=b.maxYear,this._o.maxMonth=b.maxMonth,this._o.endRange=b.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,o=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y>o||(this._y=o,!isNaN(a)&&a>this._m&&(this._m=a)),i>this._y||(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;n.numberOfMonths>u;u++)l+='<div class="pika-lendar">'+R(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,r,i,a,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,r=this.el.offsetHeight,i=window.innerWidth||o.documentElement.clientWidth,a=window.innerHeight||o.documentElement.clientHeight,s=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>i||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+r>a+s||this._o.position.indexOf("top")>-1&&u-r-e.offsetHeight>0)&&(u=u-r-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var o=this._o,r=new Date,i=v(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];m(r),o.firstDay>0&&0>(a-=o.firstDay)&&(a+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,h=0===t?e-1:e,f=11===t?e+1:e,g=v(h,u),w=i+a,C=w;C>7;)C-=7;w+=7-C;for(var b=0,_=0;w>b;b++){var T=new Date(e,t,b-a+1),k=!!d(this._d)&&y(T,this._d),R=y(T,r),D=a>b||b>=i+a,A=b-a+1,N=t,P=e,H=o.startRange&&y(o.startRange,T),L=o.endRange&&y(o.endRange,T),x=o.startRange&&o.endRange&&T>o.startRange&&o.endRange>T,I=o.minDate&&o.minDate>T||o.maxDate&&T>o.maxDate||o.disableWeekends&&p(T)||o.disableDayFn&&o.disableDayFn(T);D&&(a>b?(A=g+A,N=u,P=h):(A-=i,N=c,P=f));l.push(S({day:A,month:N,year:P,isSelected:k,isToday:R,isDisabled:I,isEmpty:D,isStartRange:H,isEndRange:L,isInRange:x,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths})),7==++_&&(o.showWeekNumber&&l.unshift(E(b-a,t,e)),s.push(O(l,o.isRTL)),l=[],_=0)}return M(o,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(h(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(i(o,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D})},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Mo.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,o=[];for(n=0;e.length>n;++n)o.push(t(e[n],n));return o}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,o){return Ot(e,t,n,o,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=d()),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=Do.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}function m(e,t){var n,o,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),Ao.length>0)for(n=0;Ao.length>n;n++)o=Ao[n],r=t[o],a(r)||(e[o]=r);return e}function y(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===No&&(No=!0,t.updateOffset(this),No=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function _(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(o=0;r>o;o++)(n&&e[o]!==t[o]||!n&&b(e[o])!==b(t[o]))&&a++;return a+i}function S(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,n){var o=!0;return h(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){for(var r,i=[],a=0;arguments.length>a;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var s in arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+Error().stack),o=!1}return n.apply(this,arguments)},n)}function O(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Po[e]||(S(n),Po[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){var t,n;for(n in e)t=e[n],T(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function R(e,t){var n,o=h({},e);for(n in t)c(t,n)&&(r(e[n])&&r(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)c(e,n)&&!c(t,n)&&r(e[n])&&(o[n]=h({},o[n]));return o}function M(e){null!=e&&this.set(e)}function D(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return T(o)?o.call(t,n):o}function A(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)})}function N(){return this._invalidDate}function P(e){return this._ordinal.replace("%d",e)}function H(e,t,n,o){var r=this._relativeTime[n];return T(r)?r(e,t,n,o):r.replace(/%d/i,e)}function L(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function x(e,t){var n=e.toLowerCase();Fo[n]=Fo[n+"s"]=Fo[t]=e}function I(e){return"string"==typeof e?Fo[e]||Fo[e.toLowerCase()]:void 0}function j(e){var t,n,o={};for(n in e)c(e,n)&&(t=I(n))&&(o[t]=e[n]);return o}function F(e,t){Wo[e]=t}function W(e){var t=[];for(var n in e)t.push({unit:n,priority:Wo[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(0>e?"-":n?"+":"")+(""+Math.pow(10,Math.max(0,r))).substr(1)+o}function Y(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Uo[e]=r),t&&(Uo[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),n&&(Uo[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,o=e.match(Bo);for(t=0,n=o.length;n>t;t++)o[t]=Uo[o[t]]?Uo[o[t]]:V(o[t]);return function(t){var r,i="";for(r=0;n>r;r++)i+=T(o[r])?o[r].call(t,e):o[r];return i}}function z(e,t){return e.isValid()?(t=G(t,e.localeData()),(Vo[t]=Vo[t]||U(t))(e)):e.localeData().invalidDate()}function G(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(Yo.lastIndex=0;o>=0&&Yo.test(e);)e=e.replace(Yo,n),Yo.lastIndex=0,o-=1;return e}function K(e,t,n){lr[e]=T(t)?t:function(e,o){return e&&n?n:t}}function X(e,t){return c(lr,e)?lr[e](t._strict,t._locale):RegExp(q(e))}function q(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),s(t)&&(o=function(e,n){n[t]=b(e)}),n=0;e.length>n;n++)ur[e[n]]=o}function J(e,t){$(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function Q(e,t,n){null!=t&&c(ur,e)&&ur[e](t,n._a,n,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(){return te(this.year())}function oe(e,n){return function(o){return null!=o?(ie(this,e,o),t.updateOffset(this,n),this):re(this,e)}}function re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ae(e){return e=I(e),T(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=j(e);for(var n=W(e),o=0;n.length>o;o++)this[n[o].unit](e[n[o].unit])}else if(e=I(e),T(this[e]))return this[e](t);return this}function le(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=le(t,12);return e+=(t-n)/12,1===n?te(e)?29:28:31-n%7%2}function ce(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||br).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function he(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[br.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;12>o;++o)i=f([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(r=wr.call(this._shortMonthsParse,a),-1!==r?r:null):(r=wr.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===t?-1!==(r=wr.call(this._shortMonthsParse,a))?r:(r=wr.call(this._longMonthsParse,a),-1!==r?r:null):-1!==(r=wr.call(this._longMonthsParse,a))?r:(r=wr.call(this._shortMonthsParse,a),-1!==r?r:null)}function de(e,t,n){var o,r,i;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(r=f([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ge(e){return null!=e?(pe(this,e),t.updateOffset(this,!0),this):re(this,"Month")}function ve(){return ue(this.year(),this.month())}function me(e){return this._monthsParseExact?(c(this,"_monthsRegex")||we.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Er),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ye(e){return this._monthsParseExact?(c(this,"_monthsRegex")||we.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Or),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function we(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;12>t;t++)n=f([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;12>t;t++)o[t]=Z(o[t]),r[t]=Z(r[t]);for(t=0;24>t;t++)i[t]=Z(i[t]);this._monthsRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function Ce(e,t,n,o,r,i,a){var s=new Date(e,t,n,o,r,i,a);return 100>e&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function _e(e,t,n){var o=7+t-n;return-(7+be(e,0,o).getUTCDay()-t)%7+o-1}function Se(e,t,n,o,r){var i,a,s=(7+n-o)%7,l=_e(e,o,r),u=1+7*(t-1)+s+l;return u>0?u>ee(e)?(i=e+1,a=u-ee(e)):(i=e,a=u):(i=e-1,a=ee(i)+u),{year:i,dayOfYear:a}}function Ee(e,t,n){var o,r,i=_e(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return 1>a?(r=e.year()-1,o=a+Oe(r,t,n)):a>Oe(e.year(),t,n)?(o=a-Oe(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Oe(e,t,n){var o=_e(e,t,n),r=_e(e+1,t,n);return(ee(e)-o+r)/7}function Te(e){return Ee(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function Re(){return this._week.doy}function Me(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function De(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ae(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pe(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone}function He(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Le(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function xe(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;7>o;++o)i=f([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(r=wr.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===t?(r=wr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===t?-1!==(r=wr.call(this._weekdaysParse,a))?r:-1!==(r=wr.call(this._shortWeekdaysParse,a))?r:(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):"ddd"===t?-1!==(r=wr.call(this._shortWeekdaysParse,a))?r:-1!==(r=wr.call(this._weekdaysParse,a))?r:(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=wr.call(this._minWeekdaysParse,a))?r:-1!==(r=wr.call(this._weekdaysParse,a))?r:(r=wr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Ie(e,t,n){var o,r,i;if(this._weekdaysParseExact)return xe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(r=f([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ae(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function We(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Dr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ye(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ar),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],l=[],u=[];for(t=0;7>t;t++)n=f([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),l.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;7>t;t++)s[t]=Z(s[t]),l[t]=Z(l[t]),u[t]=Z(u[t]);this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ze(){return this.hours()%12||12}function Ge(){return this.hours()||24}function Ke(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,o,r,i=0;e.length>i;){for(r=$e(e[i]).split("-"),t=r.length,n=$e(e[i+1]),n=n?n.split("-"):null;t>0;){if(o=Qe(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&_(r,n,!0)>=t-1)break;t--}i++}return Pr}function Qe(t){var o=null;if(!Ir[t]&&void 0!==e&&e&&e.exports)try{o=Pr._abbr;n(485)("./"+t),et(o)}catch(e){}return Ir[t]}function et(e,t){var n;return e&&(n=a(t)?ot(e):tt(e,t),n?Pr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Pr._abbr}function tt(e,t){if(null!==t){var n,o=xr;if(t.abbr=e,null!=Ir[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Ir[e]._config;else if(null!=t.parentLocale)if(null!=Ir[t.parentLocale])o=Ir[t.parentLocale]._config;else{if(null==(n=Qe(t.parentLocale)))return jr[t.parentLocale]||(jr[t.parentLocale]=[]),jr[t.parentLocale].push({name:e,config:t}),null;o=n._config}return Ir[e]=new M(R(o,t)),jr[e]&&jr[e].forEach(function(e){tt(e.name,e.config)}),et(e),Ir[e]}return delete Ir[e],null}function nt(e,t){if(null!=t){var n,o,r=xr;o=Qe(e),null!=o&&(r=o._config),t=R(r,t),n=new M(t),n.parentLocale=Ir[e],Ir[e]=n,et(e)}else null!=Ir[e]&&(null!=Ir[e].parentLocale?Ir[e]=Ir[e].parentLocale:null!=Ir[e]&&delete Ir[e]);return Ir[e]}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Pr;if(!o(e)){if(t=Qe(e))return t;e=[e]}return Je(e)}function rt(){return Ho(Ir)}function it(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=0>n[hr]||n[hr]>11?hr:1>n[fr]||n[fr]>ue(n[cr],n[hr])?fr:0>n[dr]||n[dr]>24||24===n[dr]&&(0!==n[pr]||0!==n[gr]||0!==n[vr])?dr:0>n[pr]||n[pr]>59?pr:0>n[gr]||n[gr]>59?gr:0>n[vr]||n[vr]>999?vr:-1,p(e)._overflowDayOfYear&&(cr>t||t>fr)&&(t=fr),p(e)._overflowWeeks&&-1===t&&(t=mr),p(e)._overflowWeekday&&-1===t&&(t=yr),p(e).overflow=t),e}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,o,r,i,a=[];if(!e._d){for(o=st(e),e._w&&null==e._a[fr]&&null==e._a[hr]&&ut(e),null!=e._dayOfYear&&(i=at(e._a[cr],o[cr]),(e._dayOfYear>ee(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=be(i,0,e._dayOfYear),e._a[hr]=n.getUTCMonth(),e._a[fr]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[dr]&&0===e._a[pr]&&0===e._a[gr]&&0===e._a[vr]&&(e._nextDay=!0,e._a[dr]=0),e._d=(e._useUTC?be:Ce).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[dr]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function ut(e){var t,n,o,r,i,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,a=4,n=at(t.GG,e._a[cr],Ee(Tt(),1,4).year),o=at(t.W,1),(1>(r=at(t.E,1))||r>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ee(Tt(),i,a);n=at(t.gg,e._a[cr],u.year),o=at(t.w,u.week),null!=t.d?(0>(r=t.d)||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(0>t.e||t.e>6)&&(l=!0)):r=i}1>o||o>Oe(n,i,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Se(n,o,r,i,a),e._a[cr]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,o,r,i,a,s=e._i,l=Fr.exec(s)||Wr.exec(s);if(l){for(p(e).iso=!0,t=0,n=Yr.length;n>t;t++)if(Yr[t][1].exec(l[1])){r=Yr[t][0],o=!1!==Yr[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Vr.length;n>t;t++)if(Vr[t][1].exec(l[3])){i=(l[2]||" ")+Vr[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Br.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(i||"")+(a||""),yt(e)}else e._isValid=!1}function ht(e,t,n,o,r,i){var a=[ft(e),Sr.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function ft(e){var t=parseInt(e,10);return t>49?t>999?t:1900+t:2e3+t}function dt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pt(e,t,n){if(e){if(Rr.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gt(e,t,n){if(e)return Gr[e];if(t)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}function vt(e){var t=zr.exec(dt(e._i));if(t){var n=ht(t[4],t[3],t[2],t[5],t[6],t[7]);if(!pt(t[1],n,e))return;e._a=n,e._tzm=gt(t[8],t[9],t[10]),e._d=be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function mt(e){var n=Ur.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));ct(e),!1===e._isValid&&(delete e._isValid,vt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function yt(e){if(e._f===t.ISO_8601)return void ct(e);if(e._f===t.RFC_2822)return void vt(e);e._a=[],p(e).empty=!0;var n,o,r,i,a,s=""+e._i,l=s.length,u=0;for(r=G(e._f,e._locale).match(Bo)||[],n=0;r.length>n;n++)i=r[n],o=(s.match(X(i,e))||[])[0],o&&(a=s.substr(0,s.indexOf(o)),a.length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(o)+o.length),u+=o.length),Uo[i]?(o?p(e).empty=!1:p(e).unusedTokens.push(i),Q(i,o,e)):e._strict&&!o&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),12>=e._a[dr]&&!0===p(e).bigHour&&e._a[dr]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[dr]=wt(e._locale,e._a[dr],e._meridiem),lt(e),it(e)}function wt(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&12>t&&(t+=12),o||12!==t||(t=0),t):t}function Ct(e){var t,n,o,r,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;e._f.length>r;r++)i=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],yt(t),g(t)&&(i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,(null==o||o>i)&&(o=i,n=t));h(e,n||t)}function bt(e){if(!e._d){var t=j(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function _t(e){var t=new y(it(St(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new y(it(t)):(l(t)?e._d=t:o(n)?Ct(e):n?yt(e):Et(e),g(e)||(e._d=null),e))}function Et(e){var n=e._i;a(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?mt(e):o(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),lt(e)):r(n)?bt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Ot(e,t,n,a,s){var l={};return!0!==n&&!1!==n||(a=n,n=void 0),(r(e)&&i(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=a,_t(l)}function Tt(e,t,n,o){return Ot(e,t,n,o,!1)}function kt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;t.length>r;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Rt(){return kt("isBefore",[].slice.call(arguments,0))}function Mt(){return kt("isAfter",[].slice.call(arguments,0))}function Dt(e){for(var t in e)if(-1===wr.call(Zr,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;Zr.length>o;++o)if(e[Zr[o]]){if(n)return!1;parseFloat(e[Zr[o]])!==b(e[Zr[o]])&&(n=!0)}return!0}function At(){return this._isValid}function Nt(){return $t(NaN)}function Pt(e){var t=j(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=Dt(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=ot(),this._bubble()}function Ht(e){return e instanceof Pt}function Lt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function xt(e,t){Y(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function It(e,t){var n=(t||"").match(e);if(null===n)return null;var o=n[n.length-1]||[],r=(o+"").match($r)||["-",0,0],i=60*r[1]+b(r[2]);return 0===i?0:"+"===r[0]?i:-i}function jt(e,n){var o,r;return n._isUTC?(o=n.clone(),r=(w(e)||l(e)?e.valueOf():Tt(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),t.updateOffset(o,!1),o):Tt(e).local()}function Ft(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(e,n,o){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(ir,e)))return this}else 16>Math.abs(e)&&!o&&(e*=60);return!this._isUTC&&n&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!n||this._changeInProgress?nn(this,$t(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ft(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Yt(e){return this.utcOffset(0,e)}function Vt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this}function Ut(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(rr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zt(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Gt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=St(e),e._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Xt(){return!!this.isValid()&&!this._isUTC}function qt(){return!!this.isValid()&&this._isUTC}function Zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $t(e,t){var n,o,r,i=e,a=null;return Ht(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=Jr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:b(a[fr])*n,h:b(a[dr])*n,m:b(a[pr])*n,s:b(a[gr])*n,ms:b(Lt(1e3*a[vr]))*n}):(a=Qr.exec(e))?(n="-"===a[1]?-1:1,i={y:Jt(a[2],n),M:Jt(a[3],n),w:Jt(a[4],n),d:Jt(a[5],n),h:Jt(a[6],n),m:Jt(a[7],n),s:Jt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=en(Tt(i.from),Tt(i.to)),i={},i.ms=r.milliseconds,i.M=r.months),o=new Pt(i),Ht(e)&&c(e,"_locale")&&(o._locale=e._locale),o}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=jt(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,o){var r,i;return null===o||isNaN(+o)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),n="string"==typeof n?+n:n,r=$t(n,o),nn(this,r,e),this}}function nn(e,n,o,r){var i=n._milliseconds,a=Lt(n._days),s=Lt(n._months);e.isValid()&&(r=null==r||r,s&&pe(e,re(e,"Month")+s*o),a&&ie(e,"Date",re(e,"Date")+a*o),i&&e._d.setTime(e._d.valueOf()+i*o),r&&t.updateOffset(e,a||s))}function on(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function rn(e,n){var o=e||Tt(),r=jt(o,this).startOf("day"),i=t.calendarFormat(this,r)||"sameElse";return this.format(n&&(T(n[i])?n[i].call(this,o):n[i])||this.localeData().calendar(i,this,Tt(o)))}function an(){return new y(this)}function sn(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=I(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function ln(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=I(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function cn(e,t){var n,o=w(e)?e:Tt(e);return!(!this.isValid()||!o.isValid())&&(t=I(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function hn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function dn(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=jt(e,this),!o.isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),t=I(t)){case"year":i=pn(this,o)/12;break;case"month":i=pn(this,o);break;case"quarter":i=pn(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:C(i)}function pn(e,t){var n,o,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return 0>t-i?(n=e.clone().add(r-1,"months"),o=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),o=(t-i)/(n-i)),-(r+o)||0}function gn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return 0>n.year()||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");return this.format("["+e+'("]'+(0>this.year()||this.year()>9999?"YYYYYY":"YYYY")+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')}function yn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=z(this,e);return this.localeData().postformat(n)}function wn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Cn(e){return this.from(Tt(),e)}function bn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _n(e){return this.to(Tt(),e)}function Sn(e){var t;return void 0===e?this._locale._abbr:(t=ot(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function On(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Tn(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function kn(){return this._d.valueOf()-6e4*(this._offset||0)}function Rn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function Dn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function An(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function Pn(){return g(this)}function Hn(){return h({},p(this))}function Ln(){return p(this).overflow}function xn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function In(e,t){Y(0,[e,e.length],0,t)}function jn(e){return Yn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fn(e){return Yn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wn(){return Oe(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function Yn(e,t,n,o,r){var i;return null==e?Ee(this,o,r).year:(i=Oe(e,o,r),t>i&&(t=i),Vn.call(this,e,t,n,o,r))}function Vn(e,t,n,o,r){var i=Se(e,t,n,o,r),a=be(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Un(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function zn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Gn(e,t){t[vr]=b(1e3*("0."+e))}function Kn(){return this._isUTC?"UTC":""}function Xn(){return this._isUTC?"Coordinated Universal Time":""}function qn(e){return Tt(1e3*e)}function Zn(){return Tt.apply(null,arguments).parseZone()}function $n(e){return e}function Jn(e,t,n,o){return ot()[n](f().set(o,t),e)}function Qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Jn(e,t,n,"month");var o,r=[];for(o=0;12>o;o++)r[o]=Jn(e,o,n,"month");return r}function eo(e,t,n,o){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var r=ot(),i=e?r._week.dow:0;if(null!=n)return Jn(t,(n+i)%7,o,"day");var a,l=[];for(a=0;7>a;a++)l[a]=Jn(t,(a+i)%7,o,"day");return l}function to(e,t){return Qn(e,t,"months")}function no(e,t){return Qn(e,t,"monthsShort")}function oo(e,t,n){return eo(e,t,n,"weekdays")}function ro(e,t,n){return eo(e,t,n,"weekdaysShort")}function io(e,t,n){return eo(e,t,n,"weekdaysMin")}function ao(){var e=this._data;return this._milliseconds=ci(this._milliseconds),this._days=ci(this._days),this._months=ci(this._months),e.milliseconds=ci(e.milliseconds),e.seconds=ci(e.seconds),e.minutes=ci(e.minutes),e.hours=ci(e.hours),e.months=ci(e.months),e.years=ci(e.years),this}function so(e,t,n,o){var r=$t(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function lo(e,t){return so(this,e,t,1)}function uo(e,t){return so(this,e,t,-1)}function co(e){return 0>e?Math.floor(e):Math.ceil(e)}function ho(){var e,t,n,o,r,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return(0>i||0>a||0>s)&&(i>0||a>0||s>0)&&(i+=864e5*co(po(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=C(i/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,a+=C(n/24),r=C(fo(a)),s+=r,a-=co(po(r)),o=C(s/12),s%=12,l.days=a,l.months=s,l.years=o,this}function fo(e){return 4800*e/146097}function po(e){return 146097*e/4800}function go(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+o/864e5,n=this._months+fo(t),"month"===e?n:n/12;switch(t=this._days+Math.round(po(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw Error("Unknown unit "+e)}}function vo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function mo(e){return function(){return this.as(e)}}function yo(){return $t(this)}function wo(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function Co(e){return function(){return this.isValid()?this._data[e]:NaN}}function bo(){return C(this.days()/7)}function _o(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function So(e,t,n){var o=$t(e).abs(),r=Ti(o.as("s")),i=Ti(o.as("m")),a=Ti(o.as("h")),s=Ti(o.as("d")),l=Ti(o.as("M")),u=Ti(o.as("y")),c=ki.ss>=r&&["s",r]||ki.s>r&&["ss",r]||1>=i&&["m"]||ki.m>i&&["mm",i]||1>=a&&["h"]||ki.h>a&&["hh",a]||1>=s&&["d"]||ki.d>s&&["dd",s]||1>=l&&["M"]||ki.M>l&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,_o.apply(null,c)}function Eo(e){return void 0===e?Ti:"function"==typeof e&&(Ti=e,!0)}function Oo(e,t){return void 0!==ki[e]&&(void 0===t?ki[e]:(ki[e]=t,"s"===e&&(ki.ss=t-1),!0))}function To(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=So(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function ko(e){return(e>0)-(0>e)||+e}function Ro(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o=Ri(this._milliseconds)/1e3,r=Ri(this._days),i=Ri(this._months);e=C(o/60),t=C(e/60),o%=60,e%=60,n=C(i/12),i%=12;var a=n,s=i,l=r,u=t,c=e,h=o?o.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=0>f?"-":"",p=ko(this._months)!==ko(f)?"-":"",g=ko(this._days)!==ko(f)?"-":"",v=ko(this._milliseconds)!==ko(f)?"-":"";return d+"P"+(a?p+a+"Y":"")+(s?p+s+"M":"")+(l?g+l+"D":"")+(u||c||h?"T":"")+(u?v+u+"H":"")+(c?v+c+"M":"")+(h?v+h+"S":"")}var Mo,Do;Do=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;n>o;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var Ao=t.momentProperties=[],No=!1,Po={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ho;Ho=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var Lo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},xo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Io=/\d{1,2}/,jo={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fo={},Wo={},Bo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Yo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vo={},Uo={},zo=/\d/,Go=/\d\d/,Ko=/\d{3}/,Xo=/\d{4}/,qo=/[+-]?\d{6}/,Zo=/\d\d?/,$o=/\d\d\d\d?/,Jo=/\d\d\d\d\d\d?/,Qo=/\d{1,3}/,er=/\d{1,4}/,tr=/[+-]?\d{1,6}/,nr=/\d+/,or=/[+-]?\d+/,rr=/Z|[+-]\d\d:?\d\d/gi,ir=/Z|[+-]\d\d(?::?\d\d)?/gi,ar=/[+-]?\d+(\.\d{1,3})?/,sr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lr={},ur={},cr=0,hr=1,fr=2,dr=3,pr=4,gr=5,vr=6,mr=7,yr=8;Y("Y",0,0,function(){var e=this.year();return e>9999?"+"+e:""+e}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),x("year","y"),F("year",1),K("Y",or),K("YY",Zo,Go),K("YYYY",er,Xo),K("YYYYY",tr,qo),K("YYYYYY",tr,qo),$(["YYYYY","YYYYYY"],cr),$("YYYY",function(e,n){n[cr]=2===e.length?t.parseTwoDigitYear(e):b(e)}),$("YY",function(e,n){n[cr]=t.parseTwoDigitYear(e)}),$("Y",function(e,t){t[cr]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var wr,Cr=oe("FullYear",!0);wr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;this.length>t;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Y("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("month","M"),F("month",8),K("M",Zo),K("MM",Zo,Go),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),$(["M","MM"],function(e,t){t[hr]=b(e)-1}),$(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[hr]=r:p(n).invalidMonth=e});var br=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_r="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Sr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Er=sr,Or=sr;Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),F("week",5),F("isoWeek",5),K("w",Zo),K("ww",Zo,Go),K("W",Zo),K("WW",Zo,Go),J(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=b(e)});var Tr={dow:0,doy:6};Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),K("d",Zo),K("e",Zo),K("E",Zo),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),J(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),J(["d","e","E"],function(e,t,n,o){t[o]=b(e)});var kr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Dr=sr,Ar=sr,Nr=sr;Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,ze),Y("k",["kk",2],0,Ge),Y("hmm",0,0,function(){return""+ze.apply(this)+B(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+ze.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),x("hour","h"),F("hour",13),K("a",Xe),K("A",Xe),K("H",Zo),K("h",Zo),K("k",Zo),K("HH",Zo,Go),K("hh",Zo,Go),K("kk",Zo,Go),K("hmm",$o),K("hmmss",Jo),K("Hmm",$o),K("Hmmss",Jo),$(["H","HH"],dr),$(["k","kk"],function(e,t,n){var o=b(e);t[dr]=24===o?0:o}),$(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),$(["h","hh"],function(e,t,n){t[dr]=b(e),p(n).bigHour=!0}),$("hmm",function(e,t,n){var o=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o)),p(n).bigHour=!0}),$("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o,2)),t[gr]=b(e.substr(r)),p(n).bigHour=!0}),$("Hmm",function(e,t,n){var o=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o))}),$("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[dr]=b(e.substr(0,o)),t[pr]=b(e.substr(o,2)),t[gr]=b(e.substr(r))});var Pr,Hr=/[ap]\.?m?\.?/i,Lr=oe("Hours",!0),xr={calendar:Lo,longDateFormat:xo,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Io,relativeTime:jo,months:_r,monthsShort:Sr,week:Tr,weekdays:kr,weekdaysMin:Mr,weekdaysShort:Rr,meridiemParse:Hr},Ir={},jr={},Fr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Br=/Z|[+-]\d\d(?::?\d\d)?/,Yr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Vr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ur=/^\/?Date\((\-?\d+)/i,zr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Gr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Kr=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:v()}),Xr=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),qr=function(){return Date.now?Date.now():+new Date},Zr=["year","quarter","month","week","day","hour","minute","second","millisecond"];xt("Z",":"),xt("ZZ",""),K("Z",ir),K("ZZ",ir),$(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(ir,e)});var $r=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Jr=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;$t.fn=Pt.prototype,$t.invalid=Nt;var ei=tn(1,"add"),ti=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ni=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),In("gggg","weekYear"),In("ggggg","weekYear"),In("GGGG","isoWeekYear"),In("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),K("G",or),K("g",or),K("GG",Zo,Go),K("gg",Zo,Go),K("GGGG",er,Xo),K("gggg",er,Xo),K("GGGGG",tr,qo),K("ggggg",tr,qo),J(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=b(e)}),J(["gg","GG"],function(e,n,o,r){n[r]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),x("quarter","Q"),F("quarter",7),K("Q",zo),$("Q",function(e,t){t[hr]=3*(b(e)-1)}),Y("D",["DD",2],"Do","date"),x("date","D"),F("date",9),K("D",Zo),K("DD",Zo,Go),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),$(["D","DD"],fr),$("Do",function(e,t){t[fr]=b(e.match(Zo)[0])});var oi=oe("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),F("dayOfYear",4),K("DDD",Qo),K("DDDD",Ko),$(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),Y("m",["mm",2],0,"minute"),x("minute","m"),F("minute",14),K("m",Zo),K("mm",Zo,Go),$(["m","mm"],pr);var ri=oe("Minutes",!1);Y("s",["ss",2],0,"second"),x("second","s"),F("second",15),K("s",Zo),K("ss",Zo,Go),$(["s","ss"],gr);var ii=oe("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x("millisecond","ms"),F("millisecond",16),K("S",Qo,zo),K("SS",Qo,Go),K("SSS",Qo,Ko);var ai;for(ai="SSSS";9>=ai.length;ai+="S")K(ai,nr);for(ai="S";9>=ai.length;ai+="S")$(ai,Gn);var si=oe("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var li=y.prototype;li.add=ei,li.calendar=rn,li.clone=an,li.diff=dn,li.endOf=Tn,li.format=yn,li.from=wn,li.fromNow=Cn,li.to=bn,li.toNow=_n,li.get=ae,li.invalidAt=Ln,li.isAfter=sn,li.isBefore=ln,li.isBetween=un,li.isSame=cn,li.isSameOrAfter=hn,li.isSameOrBefore=fn,li.isValid=Pn,li.lang=ni,li.locale=Sn,li.localeData=En,li.max=Xr,li.min=Kr,li.parsingFlags=Hn,li.set=se,li.startOf=On,li.subtract=ti,li.toArray=Dn,li.toObject=An,li.toDate=Mn,li.toISOString=vn,li.inspect=mn,li.toJSON=Nn,li.toString=gn,li.unix=Rn,li.valueOf=kn,li.creationData=xn,li.year=Cr,li.isLeapYear=ne,li.weekYear=jn,li.isoWeekYear=Fn,li.quarter=li.quarters=Un,li.month=ge,li.daysInMonth=ve,li.week=li.weeks=Me,li.isoWeek=li.isoWeeks=De,li.weeksInYear=Bn,li.isoWeeksInYear=Wn,li.date=oi,li.day=li.days=je,li.weekday=Fe,li.isoWeekday=We,li.dayOfYear=zn,li.hour=li.hours=Lr,li.minute=li.minutes=ri,li.second=li.seconds=ii,li.millisecond=li.milliseconds=si,li.utcOffset=Wt,li.utc=Yt,li.local=Vt,li.parseZone=Ut,li.hasAlignedHourOffset=zt,li.isDST=Gt,li.isLocal=Xt,li.isUtcOffset=qt,li.isUtc=Zt,li.isUTC=Zt,li.zoneAbbr=Kn,li.zoneName=Xn,li.dates=E("dates accessor is deprecated. Use date instead.",oi),li.months=E("months accessor is deprecated. Use month instead",ge),li.years=E("years accessor is deprecated. Use year instead",Cr),li.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),li.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kt);var ui=M.prototype;ui.calendar=D,ui.longDateFormat=A,ui.invalidDate=N,ui.ordinal=P,ui.preparse=$n,ui.postformat=$n,ui.relativeTime=H,ui.pastFuture=L,ui.set=k,ui.months=ce,ui.monthsShort=he,ui.monthsParse=de,ui.monthsRegex=ye,ui.monthsShortRegex=me,ui.week=Te,ui.firstDayOfYear=Re,ui.firstDayOfWeek=ke,ui.weekdays=Pe,ui.weekdaysMin=Le,ui.weekdaysShort=He,ui.weekdaysParse=Ie,ui.weekdaysRegex=Be,ui.weekdaysShortRegex=Ye,ui.weekdaysMinRegex=Ve,ui.isPM=qe,ui.meridiem=Ze,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=E("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=E("moment.langData is deprecated. Use moment.localeData instead.",ot);var ci=Math.abs,hi=mo("ms"),fi=mo("s"),di=mo("m"),pi=mo("h"),gi=mo("d"),vi=mo("w"),mi=mo("M"),yi=mo("y"),wi=Co("milliseconds"),Ci=Co("seconds"),bi=Co("minutes"),_i=Co("hours"),Si=Co("days"),Ei=Co("months"),Oi=Co("years"),Ti=Math.round,ki={ss:44,s:45,m:45,h:22,d:26,M:11},Ri=Math.abs,Mi=Pt.prototype;return Mi.isValid=At,Mi.abs=ao,Mi.add=lo,Mi.subtract=uo,Mi.as=go,Mi.asMilliseconds=hi,Mi.asSeconds=fi,Mi.asMinutes=di,Mi.asHours=pi,Mi.asDays=gi,Mi.asWeeks=vi,Mi.asMonths=mi,Mi.asYears=yi,Mi.valueOf=vo,Mi._bubble=ho,Mi.clone=yo,Mi.get=wo,Mi.milliseconds=wi,Mi.seconds=Ci,Mi.minutes=bi,Mi.hours=_i,Mi.days=Si,Mi.weeks=bo,Mi.months=Ei,Mi.years=Oi,Mi.humanize=To,Mi.toISOString=Ro,Mi.toString=Ro,Mi.toJSON=Ro,Mi.locale=Sn,Mi.localeData=En,Mi.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ro),Mi.lang=ni,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),K("x",or),K("X",ar),$("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),$("x",function(e,t,n){n._d=new Date(b(e))}),t.version="2.22.2",function(e){Mo=e}(Tt),t.fn=li,t.min=Rt,t.max=Mt,t.now=qr,t.utc=f,t.unix=qn,t.months=to,t.isDate=l,t.locale=et,t.invalid=v,t.duration=$t,t.isMoment=w,t.weekdays=oo,t.parseZone=Zn,t.localeData=ot,t.isDuration=Ht,t.monthsShort=no,t.weekdaysMin=io,t.defineLocale=tt,t.updateLocale=nt,t.locales=rt,t.weekdaysShort=ro,t.normalizeUnits=I,t.relativeTimeRounding=Eo,t.relativeTimeThreshold=Oo,t.calendarFormat=on,t.prototype=li,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(183)(e))},function(e,t,n){function o(e){return n(r(e))}function r(e){var t=i[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var i={"./af":313,"./af.js":313,"./ar":314,"./ar-dz":315,"./ar-dz.js":315,"./ar-kw":316,"./ar-kw.js":316,"./ar-ly":317,"./ar-ly.js":317,"./ar-ma":318,"./ar-ma.js":318,"./ar-sa":319,"./ar-sa.js":319,"./ar-tn":320,"./ar-tn.js":320,"./ar.js":314,"./az":321,"./az.js":321,"./be":322,"./be.js":322,"./bg":323,"./bg.js":323,"./bm":324,"./bm.js":324,"./bn":325,"./bn.js":325,"./bo":326,"./bo.js":326,"./br":327,"./br.js":327,"./bs":328,"./bs.js":328,"./ca":329,"./ca.js":329,"./cs":330,"./cs.js":330,"./cv":331,"./cv.js":331,"./cy":332,"./cy.js":332,"./da":333,"./da.js":333,"./de":334,"./de-at":335,"./de-at.js":335,"./de-ch":336,"./de-ch.js":336,"./de.js":334,"./dv":337,"./dv.js":337,"./el":338,"./el.js":338,"./en-au":339,"./en-au.js":339,"./en-ca":340,"./en-ca.js":340,"./en-gb":341,"./en-gb.js":341,"./en-ie":342,"./en-ie.js":342,"./en-il":343,"./en-il.js":343,"./en-nz":344,"./en-nz.js":344,"./eo":345,"./eo.js":345,"./es":346,"./es-do":347,"./es-do.js":347,"./es-us":348,"./es-us.js":348,"./es.js":346,"./et":349,"./et.js":349,"./eu":350,"./eu.js":350,"./fa":351,"./fa.js":351,"./fi":352,"./fi.js":352,"./fo":353,"./fo.js":353,"./fr":354,"./fr-ca":355,"./fr-ca.js":355,"./fr-ch":356,"./fr-ch.js":356,"./fr.js":354,"./fy":357,"./fy.js":357,"./gd":358,"./gd.js":358,"./gl":359,"./gl.js":359,"./gom-latn":360,"./gom-latn.js":360,"./gu":361,"./gu.js":361,"./he":362,"./he.js":362,"./hi":363,"./hi.js":363,"./hr":364,"./hr.js":364,"./hu":365,"./hu.js":365,"./hy-am":366,"./hy-am.js":366,"./id":367,"./id.js":367,"./is":368,"./is.js":368,"./it":369,"./it.js":369,"./ja":370,"./ja.js":370,"./jv":371,"./jv.js":371,"./ka":372,"./ka.js":372,"./kk":373,"./kk.js":373,"./km":374,"./km.js":374,"./kn":375,"./kn.js":375,"./ko":376,"./ko.js":376,"./ky":377,"./ky.js":377,"./lb":378,"./lb.js":378,"./lo":379,"./lo.js":379,"./lt":380,"./lt.js":380,"./lv":381,"./lv.js":381,"./me":382,"./me.js":382,"./mi":383,"./mi.js":383,"./mk":384,"./mk.js":384,"./ml":385,"./ml.js":385,"./mn":386,"./mn.js":386,"./mr":387,"./mr.js":387,"./ms":388,"./ms-my":389,"./ms-my.js":389,"./ms.js":388,"./mt":390,"./mt.js":390,"./my":391,"./my.js":391,"./nb":392,"./nb.js":392,"./ne":393,"./ne.js":393,"./nl":394,"./nl-be":395,"./nl-be.js":395,"./nl.js":394,"./nn":396,"./nn.js":396,"./pa-in":397,"./pa-in.js":397,"./pl":398,"./pl.js":398,"./pt":399,"./pt-br":400,"./pt-br.js":400,"./pt.js":399,"./ro":401,"./ro.js":401,"./ru":402,"./ru.js":402,"./sd":403,"./sd.js":403,"./se":404,"./se.js":404,"./si":405,"./si.js":405,"./sk":406,"./sk.js":406,"./sl":407,"./sl.js":407,"./sq":408,"./sq.js":408,"./sr":409,"./sr-cyrl":410,"./sr-cyrl.js":410,"./sr.js":409,"./ss":411,"./ss.js":411,"./sv":412,"./sv.js":412,"./sw":413,"./sw.js":413,"./ta":414,"./ta.js":414,"./te":415,"./te.js":415,"./tet":416,"./tet.js":416,"./tg":417,"./tg.js":417,"./th":418,"./th.js":418,"./tl-ph":419,"./tl-ph.js":419,"./tlh":420,"./tlh.js":420,"./tr":421,"./tr.js":421,"./tzl":422,"./tzl.js":422,"./tzm":423,"./tzm-latn":424,"./tzm-latn.js":424,"./tzm.js":423,"./ug-cn":425,"./ug-cn.js":425,"./uk":426,"./uk.js":426,"./ur":427,"./ur.js":427,"./uz":428,"./uz-latn":429,"./uz-latn.js":429,"./uz.js":428,"./vi":430,"./vi.js":430,"./x-pseudo":431,"./x-pseudo.js":431,"./yo":432,"./yo.js":432,"./zh-cn":433,"./zh-cn.js":433,"./zh-hk":434,"./zh-hk.js":434,"./zh-tw":435,"./zh-tw.js":435};o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=485},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(311),c=o(u),h=n(16),f=o(h),d=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"prepare",value:function(e,n,o,r,i,a){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,o,r,i,a),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}]),t}(c.default);f.default.getSingleton().add("beforeValidate",function(e,t,n){var o=this.getCellMeta(t,this.propToCol(n));o.editor===d&&void 0===o.strict&&(o.filter=!1,o.strict=!0)}),t.default=d},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=n(59),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(s.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=n(0),u=n(59),c=function(e){return e&&e.__esModule?e:{default:e}}(u);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"createElements",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}]),t}(c.default)},function(e,t,n){"use strict";t.__esModule=!0;var 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},r=n(0),i=n(13),a=n(21),s=n(57),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=l.default.prototype.extend();c.prototype.init=function(){this.select=document.createElement("SELECT"),(0,r.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},c.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},c.prototype.prepare=function(){for(var e=this,t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];l.default.prototype.prepare.apply(this,n);var i=this.cellProperties.selectOptions,a=void 0;a=this.prepareOptions("function"==typeof i?i(this.row,this.col,this.prop):i),(0,r.empty)(this.select),(0,u.objectEach)(a,function(t,n){var o=document.createElement("OPTION");o.value=n,(0,r.fastInnerHTML)(o,t),e.select.appendChild(o)})},c.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,r=e.length;r>n;n++)t[e[n]]=e[n];else"object"===(void 0===e?"undefined":o(e))&&(t=e);return t},c.prototype.getValue=function(){return this.select.value},c.prototype.setValue=function(e){this.select.value=e};var h=function(e){var t=this,n=t.getActiveEditor(),o=n.select.selectedIndex-1,r=n.select.selectedIndex+1;switch(e.keyCode){case a.KEY_CODES.ARROW_UP:0>o||(n.select[o].selected=!0),(0,i.stopImmediatePropagation)(e),e.preventDefault();break;case a.KEY_CODES.ARROW_DOWN:r>n.select.length-1||(n.select[r].selected=!0),(0,i.stopImmediatePropagation)(e),e.preventDefault()}};c.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",h)},c.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",h)},c.prototype.focus=function(){this.select.focus()},c.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},c.prototype.refreshDimensions=function(){if(this.state===s.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close();var e=(0,r.offset)(this.TD),t=(0,r.offset)(this.instance.rootElement),n=(0,r.getScrollableElement)(this.TD),o=this.checkEditorSection(),i=(0,r.outerWidth)(this.TD)+1,a=(0,r.outerHeight)(this.TD)+1,l=e.top-t.top-1-(n.scrollTop||0),u=e.left-t.left-1-(n.scrollLeft||0),c=void 0;switch(o){case"top":c=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":c=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":c=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":c=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":c=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelectedLast()[0]&&(l+=1),0===this.instance.getSelectedLast()[1]&&(u+=1);var h=this.select.style;c&&-1!==c?h[c[0]]=c[1]:(0,r.resetCssTransform)(this.select);var f=(0,r.getComputedStyle)(this.TD);parseInt(f.borderTopWidth,10)>0&&(a-=1),parseInt(f.borderLeftWidth,10)>0&&(i-=1),h.height=a+"px",h.minWidth=i+"px",h.top=l+"px",h.left=u+"px",h.margin="0px"}},c.prototype.getEditedCell=function(){var e=this.checkEditorSection(),t=void 0;switch(e){case"top":t=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":t=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":t=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:t=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!==t&&-2!==t?t:void 0},t.default=c},function(e,t,n){"use strict";function o(e,t,n,o,i,a,s){var l=[],u=[];s.className&&(t.className=t.className?t.className+" "+s.className:s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,r.removeClass)(t,u),(0,r.addClass)(t,l)}t.__esModule=!0;var r=n(0);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,i,c,h){for(var f=h.allowHtml?"html":"text",d=u.cloneNode(!0),p=arguments.length,g=Array(p>7?p-7:0),v=7;p>v;v++)g[v-7]=arguments[v];if((0,l.getRenderer)(f).apply(this,[e,t,n,o,i,c,h].concat(g)),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),t.insertBefore(d,t.firstChild),(0,r.addClass)(t,"htAutocomplete"),!e.acArrowListener){var m=new a.default(e);e.acArrowListener=function(i){(0,r.hasClass)(i.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new s.CellCoords(n,o),t)},m.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){m.destroy()})}}t.__esModule=!0;var r=n(0),i=n(6),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(4),l=n(14);document.createElement("DIV").className="htAutocompleteWrapper";var u=document.createElement("DIV");u.className="htAutocompleteArrow",u.appendChild(document.createTextNode(String.fromCharCode(9660))),t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,s,l,u){function c(e){var t=(0,v.partial)(g.isKey,e.keyCode);t("SPACE|ENTER|DELETE|BACKSPACE")&&!(0,m.isImmediatePropagationStopped)(e)&&p(function(){(0,m.stopImmediatePropagation)(e),e.preventDefault()}),t("SPACE|ENTER")&&d(),t("DELETE|BACKSPACE")&&d(!0)}function d(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRangeLast();if(n){for(var o=n.getTopLeftCorner(),r=o.row,i=o.col,a=n.getBottomRightCorner(),s=a.row,l=a.col,u=[],c=r;s>=c;c+=1)for(var h=i;l>=h;h+=1){var f=e.getCellMeta(c,h);if("checkbox"!==f.type)return;if(!0!==f.readOnly){void 0===f.checkedTemplate&&(f.checkedTemplate=!0),void 0===f.uncheckedTemplate&&(f.uncheckedTemplate=!1);var d=e.getDataAtCell(c,h);!1===t?[f.checkedTemplate,""+f.checkedTemplate].includes(d)?u.push([c,h,f.uncheckedTemplate]):[f.uncheckedTemplate,""+f.uncheckedTemplate,null,void 0].includes(d)&&u.push([c,h,f.checkedTemplate]):u.push([c,h,f.uncheckedTemplate])}}u.length>0&&e.setDataAtCell(u)}}function p(t){var n=e.getSelectedRangeLast();if(n)for(var o=n.getTopLeftCorner(),r=n.getBottomRightCorner(),i=o.row;r.row>=i;i++)for(var a=o.col;r.col>=a;a++){var s=e.getCellMeta(i,a);if("checkbox"!==s.type)return;var l=e.getCell(i,a);if(null===l||void 0===l)t(i,a,s);else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!s.readOnly&&t(u)}}}for(var C=arguments.length,_=Array(C>7?C-7:0),S=7;C>S;S++)_[S-7]=arguments[S];(0,y.getRenderer)("base").apply(this,[e,t,n,o,s,l,u].concat(_)),r(e);var E=i(),O=u.label,T=!1;if(void 0===u.checkedTemplate&&(u.checkedTemplate=!0),void 0===u.uncheckedTemplate&&(u.uncheckedTemplate=!1),(0,h.empty)(t),l===u.checkedTemplate||(0,f.equalsIgnoreCase)(l,u.checkedTemplate)?E.checked=!0:l===u.uncheckedTemplate||(0,f.equalsIgnoreCase)(l,u.uncheckedTemplate)?E.checked=!1:null===l?(0,h.addClass)(E,"noValue"):(E.style.display="none",(0,h.addClass)(E,b),T=!0),E.setAttribute("data-row",n),E.setAttribute("data-col",o),!T&&O){var k="";O.value?k="function"==typeof O.value?O.value.call(this,n,o,s,l):O.value:O.property&&(k=e.getDataAtRowProp(n,O.property));var R=a(k);"before"===O.position?R.appendChild(E):R.insertBefore(E,R.firstChild),E=R}t.appendChild(E),T&&t.appendChild(document.createTextNode("#bad-value#")),w.has(e)||(w.set(e,!0),e.addHook("beforeKeyDown",c))}function r(e){var t=C.get(e);return t||(t=new p.default(e),t.addEventListener(e.rootElement,"click",function(t){return l(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return s(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return u(t,e)}),C.set(e,t)),t}function i(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}function a(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}function s(e,t){c(e.target)&&setTimeout(t.listen,10)}function l(e,t){if(!c(e.target))return!1;t.getCellMeta(parseInt(e.target.getAttribute("data-row"),10),parseInt(e.target.getAttribute("data-col"),10)).readOnly&&e.preventDefault()}function u(e,t){if(!c(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),r=t.getCellMeta(n,o);if(!r.readOnly){var i=null;i=e.target.checked?void 0===r.uncheckedTemplate||r.checkedTemplate:void 0!==r.uncheckedTemplate&&r.uncheckedTemplate,t.setDataAtCell(n,o,i)}}function c(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.__esModule=!0;var h=n(0),f=n(33),d=n(6),p=function(e){return e&&e.__esModule?e:{default:e}}(d),g=n(21),v=n(43),m=n(13),y=n(14),w=new WeakMap,C=new WeakMap,b="htBadValue";t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,a,s){for(var l=arguments.length,u=Array(l>6?l-6:0),c=6;l>c;c++)u[c-6]=arguments[c];(0,i.getRenderer)("base").apply(this,[e,t,n,o,a,s].concat(u)),(0,r.fastInnerHTML)(t,null===s||void 0===s?"":s)}t.__esModule=!0;var r=n(0),i=n(14);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,r,l,u){var c=l;if((0,s.isNumeric)(c)){var h=u.numericFormat,f=h&&h.culture||"-",d=h&&h.pattern,p=u.className||"",g=p.length?p.split(" "):[];if(void 0!==f&&!i.default.languages()[f]){var v=f.replace("-",""),m=i.default.allLanguages?i.default.allLanguages[f]:i.default[v];m&&i.default.registerLanguage(m)}i.default.setLanguage(f),c=(0,i.default)(c).format(d||"0"),0>g.indexOf("htLeft")&&0>g.indexOf("htCenter")&&0>g.indexOf("htRight")&&0>g.indexOf("htJustify")&&g.push("htRight"),0>g.indexOf("htNumeric")&&g.push("htNumeric"),u.className=g.join(" ")}(0,a.getRenderer)("text")(e,t,n,o,r,c,u)}t.__esModule=!0;var r=n(436),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(14),s=n(5);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,s,l,u){for(var c=arguments.length,h=Array(c>7?c-7:0),f=7;c>f;f++)h[f-7]=arguments[f];(0,i.getRenderer)("text").apply(this,[e,t,n,o,s,l,u].concat(h));var d=u.hashLength||t.innerHTML.length,p=u.hashSymbol||"*",g="";(0,a.rangeEach)(d-1,function(){g+=p}),(0,r.fastInnerHTML)(t,g)}t.__esModule=!0;var r=n(0),i=n(14),a=n(5);t.default=o},function(e,t,n){"use strict";function o(e,t,n,o,s,l,u){for(var c=arguments.length,h=Array(c>7?c-7:0),f=7;c>f;f++)h[f-7]=arguments[f];(0,a.getRenderer)("base").apply(this,[e,t,n,o,s,l,u].concat(h));var d=l;if(!d&&u.placeholder&&(d=u.placeholder),d=(0,i.stringify)(d),e.getSettings().trimWhitespace||(d=d.replace(/ /g,String.fromCharCode(160))),u.rendererTemplate){(0,r.empty)(t);var p=document.createElement("TEMPLATE");p.setAttribute("bind","{{}}"),p.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(p),p.model=e.getSourceDataAtRow(n),t.appendChild(p)}else(0,r.fastInnerText)(t,d)}t.__esModule=!0;var r=n(0),i=n(10),a=n(14);t.default=o},function(e,t,n){"use strict";function o(e,t){var n=e;if(null!==n&&void 0!==n||(n=""),this.allowEmpty&&""===n)return void t(!0);this.strict&&this.source?"function"==typeof this.source?this.source(n,r(n,t)):r(n,t)(this.source):t(!0)}function r(e,t){var n=e;return function(e){for(var o=!1,r=0,i=e.length;i>r;r++)if(n===e[r]){o=!0;break}t(o)}}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){var n=(0,l.getEditorInstance)("date",this.instance),o=e,i=!0;null!==o&&void 0!==o||(o="");var s=(0,a.default)(new Date(o)).isValid()||(0,a.default)(o,n.defaultDateFormat).isValid(),u=(0,a.default)(o,this.dateFormat||n.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===o&&(s=!0,u=!0),s||(i=!1),!s&&u&&(i=!0),s&&!u)if(!0===this.correctFormat){var c=r(o,this.dateFormat),h=this.instance.runHooks("unmodifyRow",this.row),f=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(h,f,c,"dateValidator"),i=!0}else i=!1;t(i)}function r(e,t){var n=(0,a.default)((0,s.getNormalizedDate)(e)),o=(0,a.default)(e,t),r=e.search(/[A-z]/g)>-1,i=void 0;return i=n.isValid()&&n.format("x")===o.format("x")||!o.isValid()||r?n:o,i.format(t)}t.__esModule=!0,t.default=o,t.correctFormat=r;var i=n(47),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(437),l=n(17)},function(e,t,n){"use strict";function o(e,t){var n=e;null!==n&&void 0!==n||(n=""),t(this.allowEmpty&&""===n?!0:""===n?!1:/^-?\d*(\.|,)?\d*$/.test(n))}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e,t){var n=this.timeFormat||"h:mm:ss a",o=!0,r=e;null===r&&(r=""),r=/^\d{3,}$/.test(r)?parseInt(r,10):r;var s=/^\d{1,2}$/.test(r);s&&(r+=":00");var l=(0,i.default)(r,a,!0).isValid()?(0,i.default)(r):(0,i.default)(r,n),u=l.isValid(),c=(0,i.default)(r,n,!0).isValid()&&!s;if(this.allowEmpty&&""===r&&(u=!0,c=!0),u||(o=!1),!u&&c&&(o=!0),u&&!c)if(!0===this.correctFormat){var h=l.format(n),f=this.instance.runHooks("unmodifyRow",this.row),d=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(f,d,h,"timeValidator"),o=!0}else o=!1;t(o)}t.__esModule=!0,t.default=o;var r=n(47),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"]},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14),i=n(34);t.default={editor:(0,o.getEditor)("autocomplete"),renderer:(0,r.getRenderer)("autocomplete"),validator:(0,i.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14);t.default={editor:(0,o.getEditor)("checkbox"),renderer:(0,r.getRenderer)("checkbox")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14),i=n(34);t.default={editor:(0,o.getEditor)("date"),renderer:(0,r.getRenderer)("autocomplete"),validator:(0,i.getValidator)("date")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14),i=n(34);t.default={editor:(0,o.getEditor)("dropdown"),renderer:(0,r.getRenderer)("autocomplete"),validator:(0,i.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14);t.default={editor:(0,o.getEditor)("handsontable"),renderer:(0,r.getRenderer)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14),i=n(34);t.default={editor:(0,o.getEditor)("numeric"),renderer:(0,r.getRenderer)("numeric"),validator:(0,i.getValidator)("numeric"),dataType:"number"}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14);t.default={editor:(0,o.getEditor)("password"),renderer:(0,r.getRenderer)("password"),copyable:!1}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14);t.default={editor:(0,o.getEditor)("text"),renderer:(0,r.getRenderer)("text")}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(17),r=n(14),i=n(34);t.default={editor:(0,o.getEditor)("text"),renderer:(0,r.getRenderer)("text"),validator:(0,i.getValidator)("time")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=this;this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.duckSchema=this.dataSource&&this.dataSource[0]?this.recursiveDuckSchema(this.dataSource[0]):{},this.createMap(),this.interval=d.default.create(function(){return o.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return o.onSkipLengthCache(e)}),this.onSkipLengthCache(500)}t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(438),s=o(a),l=n(92),u=n(91),c=n(1),h=n(2),f=n(512),d=o(f),p=n(5),g=n(513),v=o(g);r.prototype.DESTINATION_RENDERER=1,r.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,r.prototype.recursiveDuckSchema=function(e){return(0,c.duckSchema)(e)},r.prototype.recursiveDuckColumns=function(e,t,n){var o=this,r=t,a=n,s=void 0;return void 0===r&&(r=0,a=""),"object"!==(void 0===e?"undefined":i(e))||Array.isArray(e)||(0,c.objectEach)(e,function(e,t){null===e?(s=a+t,o.colToPropCache.push(s),o.propToColCache.set(s,r),r+=1):r=o.recursiveDuckColumns(e,r,t+".")}),r},r.prototype.createMap=function(){var e=void 0,t=this.getSchema();if(void 0===t)throw Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new v.default;var n=this.instance.getSettings().columns;if(n){var o=this.instance.getSettings().maxCols,r=Math.min(o,n.length),i=0,a=!1,s=(0,c.deepObjectSize)(t);for("function"==typeof n&&(r=s>0?s:this.instance.countSourceCols(),a=!0),e=0;r>e;e++){var l=a?n(e):n[e];if((0,c.isObject)(l)){if(void 0!==l.data){var u=a?i:e;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}i+=1}}}else this.recursiveDuckColumns(t)},r.prototype.colToProp=function(e){var t=this.instance.runHooks("modifyCol",e);return!isNaN(t)&&this.colToPropCache&&void 0!==this.colToPropCache[t]?this.colToPropCache[t]:t},r.prototype.propToCol=function(e){var t=void 0;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),t=this.instance.runHooks("unmodifyCol",t)},r.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},r.prototype.createRow=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments[2],r=0,i=e;if("number"==typeof i&&i<this.instance.countSourceRows()||(i=this.instance.countSourceRows()),!1===this.instance.runHooks("beforeCreateRow",i,n,o))return 0;for(var a=this.instance.getSettings().maxRows,s=this.instance.countCols();n>r&&this.instance.countSourceRows()<a;)!function(){var e=null;"array"===t.instance.dataType?t.instance.getSettings().dataSchema?e=(0,c.deepClone)(t.getSchema()):(e=[],(0,p.rangeEach)(s-1,function(){return e.push(null)})):"function"===t.instance.dataType?e=t.instance.getSettings().dataSchema(i):(e={},(0,c.deepExtend)(e,t.getSchema())),i===t.instance.countSourceRows()?t.dataSource.push(e):t.spliceData(i,0,e),r+=1}();return this.instance.runHooks("afterCreateRow",i,r,o),this.instance.forceFullRender=!0,r},r.prototype.createCol=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];if(!this.instance.isColumnModificationAllowed())throw 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 o=this.instance.countSourceRows(),r=this.dataSource,i=this.instance.countCols(),a="number"==typeof e&&i>e?e:i,s=void 0,l=0,c=void 0;this.instance.runHooks("beforeCreateCol",a,t,n),c=a;for(var h=this.instance.getSettings().maxCols;t>l&&this.instance.countCols()<h;){if(s=(0,u.columnFactory)(this.GridSettings,this.priv.columnsSettingConflicts),"number"==typeof a&&a<this.instance.countCols()){for(var f=0;o>f;f++)r[f].splice(c,0,null);this.priv.columnSettings.splice(c,0,s)}else{if(o>0)for(var d=0;o>d;d++)void 0===r[d]&&(r[d]=[]),r[d].push(null);else r.push([null]);this.priv.columnSettings.push(s)}l+=1,c+=1}return this.instance.runHooks("afterCreateCol",a,l,n),this.instance.forceFullRender=!0,l},r.prototype.removeRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2],o="number"!=typeof e?-t:e,r=this.instance.runHooks("modifyRemovedAmount",t,o);o=(this.instance.countSourceRows()+o)%this.instance.countSourceRows();var i=this.visualRowsToPhysical(o,r);if(!1!==this.instance.runHooks("beforeRemoveRow",o,r,i,n)){var a=this.dataSource,s=this.filterData(o,r);s&&(a.length=0,Array.prototype.push.apply(a,s)),this.instance.runHooks("afterRemoveRow",o,r,i,n),this.instance.forceFullRender=!0}},r.prototype.removeCol=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];if("object"===this.instance.dataType||this.instance.getSettings().columns)throw Error("cannot remove column with object data source or columns option specified");var o="number"!=typeof e?-t:e;o=(this.instance.countCols()+o)%this.instance.countCols();var r=this.visualColumnsToPhysical(o,t),i=r.slice(0).sort(function(e,t){return t-e});if(!1!==this.instance.runHooks("beforeRemoveCol",o,t,r,n)){for(var a=!0,s=i.length,l=this.dataSource,u=0;s>u;u++)a&&r[0]!==r[u]-u&&(a=!1);if(a)for(var c=0,h=this.instance.countSourceRows();h>c;c++)l[c].splice(r[0],t);else{for(var f=0,d=this.instance.countSourceRows();d>f;f++)for(var p=0;s>p;p++)l[f].splice(i[p],1);for(var g=0;s>g;g++)this.priv.columnSettings.splice(r[g],1)}this.instance.runHooks("afterRemoveCol",o,t,r,n),this.instance.forceFullRender=!0}},r.prototype.spliceCol=function(e,t,n){for(var o=this.instance.getDataAtCol(e),r=o.slice(t,t+n),i=o.slice(t+n),a=arguments.length,s=Array(a>3?a-3:0),l=3;a>l;l++)s[l-3]=arguments[l];(0,h.extendArray)(s,i);for(var u=0;n>u;)s.push(null),u+=1;return(0,h.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),r},r.prototype.spliceRow=function(e,t,n){for(var o=this.instance.getSourceDataAtRow(e),r=o.slice(t,t+n),i=o.slice(t+n),a=arguments.length,s=Array(a>3?a-3:0),l=3;a>l;l++)s[l-3]=arguments[l];(0,h.extendArray)(s,i);for(var u=0;n>u;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),r},r.prototype.spliceData=function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)},r.prototype.filterData=function(e,t){var n=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter(function(e,t){return-1===n.indexOf(t)})},r.prototype.get=function(e,t){var n=this.instance.runHooks("modifyRow",e),o=this.dataSource[n],r=this.instance.runHooks("modifyRowData",n);o=isNaN(r)?r:o;var i=null;if(o&&o.hasOwnProperty&&(0,c.hasOwnProperty)(o,t))i=o[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=o;if(!s)return null;for(var l=0,u=a.length;u>l;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var h=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),h,"get"),h.isTouched()&&(i=h.value)}return i};var m=(0,l.cellMethodLookupFactory)("copyable",!1);r.prototype.getCopyable=function(e,t){return m.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},r.prototype.set=function(e,t,n,o){var r=this.instance.runHooks("modifyRow",e,o||"datamapGet"),i=n,a=this.dataSource[r],s=this.instance.runHooks("modifyRowData",r);if(a=isNaN(s)?s:a,this.instance.hasHook("modifyData")){var l=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",r,this.propToCol(t),l,"set"),l.isTouched()&&(i=l.value)}if(a&&a.hasOwnProperty&&(0,c.hasOwnProperty)(a,t))a[t]=i;else if("string"==typeof t&&t.indexOf(".")>-1){var u=t.split("."),h=a,f=0,d=void 0;for(f=0,d=u.length-1;d>f;f++)void 0===h[u[f]]&&(h[u[f]]={}),h=h[u[f]];h[u[f]]=i}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],i):a[t]=i},r.prototype.visualRowsToPhysical=function(e,t){for(var n=this.instance.countSourceRows(),o=[],r=(n+e)%n,i=t,a=void 0;n>r&&i;)a=this.instance.runHooks("modifyRow",r),o.push(a),i-=1,r+=1;return o},r.prototype.visualColumnsToPhysical=function(e,t){for(var n=this.instance.countCols(),o=(n+e)%n,r=[],i=t;n>o&&i;){r.push(this.instance.runHooks("modifyCol",o)),i-=1,o+=1}return r},r.prototype.clear=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),"")},r.prototype.clearLengthCache=function(){this.cachedLength=null},r.prototype.getLength=function(){var e=this,t=this.instance.getSettings().maxRows,n=void 0;n=0>t||0===t?0:t||1/0;var o=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var r=this.skipCache;this.interval.start(),o!==this.latestSourceRowsCount&&(r=!0),this.latestSourceRowsCount=o,null===this.cachedLength||r?((0,p.rangeEach)(o-1,function(t){null===e.instance.runHooks("modifyRow",t)&&(o-=1)}),this.cachedLength=o):o=this.cachedLength}else this.interval.stop();return Math.min(o,n)},r.prototype.getAll=function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!=0||this.instance.countSourceRows()?this.getRange(e,t,r.prototype.DESTINATION_RENDERER):[]},r.prototype.getRange=function(e,t,n){var o=[],r=void 0,i=void 0,a=void 0,s=this.instance.getSettings().maxRows,l=this.instance.getSettings().maxCols;if(0===s||0===l)return[];var u=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(s-1,0),Math.max(e.row,t.row)),h=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(r=Math.min(e.row,t.row);c>=r;r++){a=[];var f=this.instance.runHooks("modifyRow",r);for(i=Math.min(e.col,t.col);h>=i&&null!==f;i++)a.push(u.call(this,r,this.colToProp(i)));null!==f&&o.push(a)}return o},r.prototype.getText=function(e,t){return s.default.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},r.prototype.getCopyableText=function(e,t){return s.default.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},r.prototype.onSkipLengthCache=function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)},r.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null},t.default=r},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){var t=e;return"string"==typeof t&&/fps$/.test(t)&&(t=1e3/parseInt(t.replace("fps","")||0,10)),t}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.parseDelay=r;var a=n(40);t.default=function(){function e(t,n){var i=this;o(this,e),this.timer=null,this.func=t,this.delay=r(n),this.stopped=!0,this._then=null,this._callback=function(){return i.__callback()}}return i(e,null,[{key:"create",value:function(t,n){return new e(t,n)}}]),i(e,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=(0,a.requestAnimationFrame)(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,(0,a.cancelAnimationFrame)(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=(0,a.requestAnimationFrame)(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),e}()},function(e,t,n){"use strict";function o(){function e(e){return null!==e&&!n(e)&&("string"==typeof e||"number"==typeof e)}function t(e){return null!==e&&("object"===(void 0===e?"undefined":r(e))||"function"==typeof e)}function n(e){return e!==e}var o={arrayMap:[],weakMap:new WeakMap};return{get:function(n){return e(n)?o.arrayMap[n]:t(n)?o.weakMap.get(n):void 0},set:function(n,r){if(e(n))o.arrayMap[n]=r;else{if(!t(n))throw Error("Invalid key type");o.weakMap.set(n,r)}},delete:function(n){e(n)?delete o.arrayMap[n]:t(n)&&o.weakMap.delete(n)}}}t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o},function(e,t,n){"use strict";function o(e,t,n){function o(e){var o="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-o.row,-o.col):n.transformStart(o.row,o.col,!0)}function l(e){e?n.transformEnd(-1,0):n.transformStart(-1,0)}function h(e){e?n.transformEnd(1,0):n.transformStart(1,0)}function f(e){e?n.transformEnd(0,1):n.transformStart(0,1)}function d(e){e?n.transformEnd(0,-1):n.transformStart(0,-1)}function p(s){if(e.isListening()&&(e.runHooks("beforeKeyDown",s),!m&&229!==s.keyCode&&!(0,a.isImmediatePropagationStopped)(s)&&(t.lastKeyCode=s.keyCode,n.isSelected()))){var u=(s.ctrlKey||s.metaKey)&&!s.altKey;if(w&&!w.isWaiting()&&!((0,i.isMetaKey)(s.keyCode)||(0,i.isCtrlMetaKey)(s.keyCode)||u||g.isEditorOpened()))return void g.openEditor("",s);var p=s.shiftKey?n.setRangeEnd:n.setRangeStart,v=void 0;switch(s.keyCode){case i.KEY_CODES.A:!g.isEditorOpened()&&u&&(e.selectAll(),s.preventDefault(),(0,a.stopPropagation)(s));break;case i.KEY_CODES.ARROW_UP:g.isEditorOpened()&&!w.isWaiting()&&g.closeEditorAndSaveChanges(u),l(s.shiftKey),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.ARROW_DOWN:g.isEditorOpened()&&!w.isWaiting()&&g.closeEditorAndSaveChanges(u),h(s.shiftKey),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.ARROW_RIGHT:g.isEditorOpened()&&!w.isWaiting()&&g.closeEditorAndSaveChanges(u),f(s.shiftKey),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.ARROW_LEFT:g.isEditorOpened()&&!w.isWaiting()&&g.closeEditorAndSaveChanges(u),d(s.shiftKey),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.TAB:v="function"==typeof t.settings.tabMoves?t.settings.tabMoves(s):t.settings.tabMoves,s.shiftKey?n.transformStart(-v.row,-v.col):n.transformStart(v.row,v.col,!0),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.BACKSPACE:case i.KEY_CODES.DELETE:e.emptySelectedCells(),g.prepareEditor(),s.preventDefault();break;case i.KEY_CODES.F2:w&&w.enableFullEditMode(),g.openEditor(null,s),s.preventDefault();break;case i.KEY_CODES.ENTER:g.isEditorOpened()?(w&&w.state!==c.EditorState.WAITING&&g.closeEditorAndSaveChanges(u),o(s.shiftKey)):e.getSettings().enterBeginsEditing?(w&&w.enableFullEditMode(),g.openEditor(null,s)):o(s.shiftKey),s.preventDefault(),(0,a.stopImmediatePropagation)(s);break;case i.KEY_CODES.ESCAPE:g.isEditorOpened()&&(g.closeEditorAndRestoreOriginalValue(u),w.focus()),s.preventDefault();break;case i.KEY_CODES.HOME:s.ctrlKey||s.metaKey?p.call(n,new r.CellCoords(0,n.selectedRange.current().from.col)):p.call(n,new r.CellCoords(n.selectedRange.current().from.row,0)),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.END:s.ctrlKey||s.metaKey?p.call(n,new r.CellCoords(e.countRows()-1,n.selectedRange.current().from.col)):p.call(n,new r.CellCoords(n.selectedRange.current().from.row,e.countCols()-1)),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.PAGE_UP:n.transformStart(-e.countVisibleRows(),0),s.preventDefault(),(0,a.stopPropagation)(s);break;case i.KEY_CODES.PAGE_DOWN:n.transformStart(e.countVisibleRows(),0),s.preventDefault(),(0,a.stopPropagation)(s)}}}var g=this,v=new u.default(e),m=!1,y=!1,w=void 0;this.lockEditor=function(){y=!0},this.unlockEditor=function(){y=!1},this.destroyEditor=function(e){y||this.closeEditor(e)},this.getActiveEditor=function(){return w},this.prepareEditor=function(){if(!y){if(w&&w.isWaiting())return void this.closeEditor(!1,!1,function(e){e&&g.prepareEditor()});var t=e.selection.selectedRange.current().highlight.row,n=e.selection.selectedRange.current().highlight.col,o=e.colToProp(n),r=e.getCell(t,n),i=e.getSourceDataAtCell(e.runHooks("modifyRow",t),n),a=e.getCellMeta(t,n),l=e.getCellEditor(a);l?(w=(0,s.getEditorInstance)(l,e),w.prepare(t,n,o,r,i,a)):w=void 0}},this.isEditorOpened=function(){return w&&w.isOpened()},this.openEditor=function(e,t){if(w){w.cellProperties.readOnly?t&&t.keyCode===i.KEY_CODES.ENTER&&o():w.beginEditing(e,t)}},this.closeEditor=function(e,t,n){w?w.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},this.destroy=function(){m=!0},function(){function t(e,t,n){"TD"===n.nodeName&&(w&&w.enableFullEditMode(),g.openEditor(null,e))}e.addHook("afterDocumentKeyDown",p),v.addEventListener(document.documentElement,"keydown",function(t){m||e.runHooks("afterDocumentKeyDown",t)}),v.addEventListener(document.documentElement,"compositionstart",function(t){!m&&w&&!w.isOpened()&&e.isListening()&&g.openEditor("",t)}),e.view.wt.update("onCellDblClick",t)}()}t.__esModule=!0;var r=n(4),i=n(21),a=n(13),s=n(17),l=n(6),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(57),h=new WeakMap;o.getInstance=function(e,t,n,r){var i=h.get(e);return i||(i=new o(e,t,n,r),h.set(e,i)),i},t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=this,n=this;this.eventManager=new l.default(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var o=e.rootElement.getAttribute("style");o&&e.rootElement.setAttribute("data-originalstyle",o),(0,a.addClass)(e.rootElement,"handsontable");var r=document.createElement("TABLE");(0,a.addClass)(r,"htCore"),e.getSettings().tableClassName&&(0,a.addClass)(r,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),r.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),r.appendChild(this.TBODY),e.table=r,e.container.insertBefore(r,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){t.selectionMouseDown=!0,n.isTextSelectionAllowed(e.target)||(d(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(){t.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){t.selectionMouseDown&&!n.isTextSelectionAllowed(e.target)&&(t.settings.fragmentSelection&&d(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var i=void 0;this.isMouseDown=function(){return i},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&(0,u.isLeftClick)(t)&&e.selection.finish(),i=!1,((0,a.isOutsideInput)(document.activeElement)||!e.selection.isSelected()&&!(0,u.isRightClick)(t))&&e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"contextmenu",function(t){e.selection.isInProgress()&&(0,u.isRightClick)(t)&&(e.selection.finish(),i=!1)}),this.eventManager.addEventListener(document.documentElement,"touchend",function(){e.selection.isInProgress()&&e.selection.finish()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var o=t.target,r=t.x||t.clientX,s=t.y||t.clientY,l=t.target;if(!i&&e.rootElement){if(l===e.view.wt.wtTable.holder){var u=(0,a.getScrollbarWidth)();if(document.elementFromPoint(r+u,s)!==e.view.wt.wtTable.holder||document.elementFromPoint(r,s+u)!==e.view.wt.wtTable.holder)return}else for(;l!==document.documentElement;){if(null===l){if(t.isTargetWebComponent)break;return}if(l===e.rootElement)return;l=l.parentNode}("function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(o):n.settings.outsideClickDeselects)?e.deselectCell():e.destroyEditor(!1,!1)}}),this.eventManager.addEventListener(r,"selectstart",function(e){n.settings.fragmentSelection||(0,a.isInput)(e.target)||e.preventDefault()});var s={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:r,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){return n.appendRowHeader(e,t)}),e.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),e.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,o){var r=n.instance.getCellMeta(e,t),i=n.instance.colToProp(t),a=n.instance.getDataAtRowProp(e,i);n.instance.hasHook("beforeValueRender")&&(a=n.instance.runHooks("beforeValueRender",a,r)),n.instance.runHooks("beforeRenderer",o,e,t,i,a,r),n.instance.getCellRenderer(r)(n.instance,o,e,t,i,a,r),n.instance.runHooks("afterRenderer",o,e,t,i,a,r)},selections:n.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,o,r,a){var s={row:!1,column:!1,cell:!1};e.listen(),n.activeWt=a,i=!0,e.runHooks("beforeOnCellMouseDown",t,o,r,s),(0,u.isImmediatePropagationStopped)(t)||((0,f.handleMouseEvent)(t,{coords:o,selection:e.selection,controller:s}),e.runHooks("afterOnCellMouseDown",t,o,r),n.activeWt=n.wt)},onCellContextMenu:function(t,o,r,a){n.activeWt=a,i=!1,e.selection.isInProgress()&&e.selection.finish(),e.runHooks("beforeOnCellContextMenu",t,o,r),(0,u.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellContextMenu",t,o,r),n.activeWt=n.wt)},onCellMouseOut:function(t,o,r,i){n.activeWt=i,e.runHooks("beforeOnCellMouseOut",t,o,r),(0,u.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellMouseOut",t,o,r),n.activeWt=n.wt)},onCellMouseOver:function(t,o,r,a){var s={row:!1,column:!1,cell:!1};n.activeWt=a,e.runHooks("beforeOnCellMouseOver",t,o,r,s),(0,u.isImmediatePropagationStopped)(t)||(i&&(0,f.handleMouseEvent)(t,{coords:o,selection:e.selection,controller:s}),e.runHooks("afterOnCellMouseOver",t,o,r),n.activeWt=n.wt)},onCellMouseUp:function(t,o,r,i){n.activeWt=i,e.runHooks("beforeOnCellMouseUp",t,o,r),e.runHooks("afterOnCellMouseUp",t,o,r),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(e,t){n.beforeRender(e,t)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.runHooks("beforeRemoveCellClassNames")},onAfterDrawSelection:function(t,n,o,r){return e.runHooks("afterDrawSelection",t,n,o,r)},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,o){return e.runHooks("modifyGetCellCoords",t,n,o)},viewportRowCalculatorOverride:function(t){var o=e.countRows(),r=n.settings.viewportRowRenderingOffset;if("auto"===r&&n.settings.fixedRowsTop&&(r=10),"number"==typeof r&&(t.startRow=Math.max(t.startRow-r,0),t.endRow=Math.min(t.endRow+r,o-1)),"auto"===r){var i=t.startRow+t.endRow-t.startRow,a=Math.ceil(i/o*12);t.startRow=Math.max(t.startRow-a,0),t.endRow=Math.min(t.endRow+a,o-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var o=e.countCols(),r=n.settings.viewportColumnRenderingOffset;if("auto"===r&&n.settings.fixedColumnsLeft&&(r=10),"number"==typeof r&&(t.startColumn=Math.max(t.startColumn-r,0),t.endColumn=Math.min(t.endColumn+r,o-1)),"auto"===r){var i=t.startColumn+t.endColumn-t.startColumn,a=Math.ceil(i/o*12);t.startRow=Math.max(t.startColumn-a,0),t.endColumn=Math.min(t.endColumn+a,o-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};e.runHooks("beforeInitWalkontable",s),this.wt=new h.default(s),this.activeWt=this.wt,this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,u.stopPropagation)(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,u.stopPropagation)(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}t.__esModule=!0;var i=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),s=n(6),l=o(s),u=n(13),c=n(4),h=o(c),f=n(439),d=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()};r.prototype.isTextSelectionAllowed=function(e){if((0,a.isInput)(e))return!0;var t=(0,a.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()))},r.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelectedLast()||[],t=i(e,4),n=t[0],o=t[1],r=t[2],a=t[3];return void 0!==n&&n===r&&o===a},r.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},r.prototype.beforeRender=function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)},r.prototype.onDraw=function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)},r.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},r.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return 0>n?null:n},r.prototype.scrollViewport=function(e,t,n,o,r){return this.wt.scrollViewport(e,t,n,o,r)},r.prototype.scrollViewportHorizontally=function(e,t,n){return this.wt.scrollViewportHorizontally(e,t,n)},r.prototype.scrollViewportVertically=function(e,t,n){return this.wt.scrollViewportVertically(e,t,n)},r.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,a.hasClass)(n,"relative"))return(0,a.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var o=document.createElement("div"),r=document.createElement("span");o.className="relative",r.className="rowHeader",this.updateCellHeader(r,e,this.instance.getRowHeader),o.appendChild(r),t.appendChild(o)}this.instance.runHooks("afterGetRowHeader",e,t)},r.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;(0,a.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,a.empty)(t),this.appendColHeader(e,t))}else{var o=document.createElement("div"),r=document.createElement("span");o.className="relative",r.className="colHeader",this.updateCellHeader(r,e,this.instance.getColHeader),o.appendChild(r),t.appendChild(o)}this.instance.runHooks("afterGetColHeader",e,t)},r.prototype.updateCellHeader=function(e,t,n){var o=t,r=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,a.hasClass)(e,"colHeader")?o=r.wtTable.columnFilter.sourceToRendered(t):(0,a.hasClass)(e,"rowHeader")&&(o=r.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,a.fastInnerHTML)(e,n(t)):((0,a.fastInnerText)(e,String.fromCharCode(160)),(0,a.addClass)(e,"cornerHeader"))},r.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),n=t-e;return n>0?n:0},r.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),n=t-e;return n>0?n:0},r.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},r.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()},t.default=r},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1),a=n(2),s=n(5);t.default=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return r(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,a.arrayEach)(this.data,function(o){var r=t.colToProp(e),a=void 0;a="string"==typeof r?(0,i.getProperty)(o,r):"function"==typeof r?r(o):o[r],n.push(a)}),n}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,o=this.hot.runHooks("modifyRowData",e),r=isNaN(o)?o:this.data[e];if(r){var a=this.colToProp(t);n="string"==typeof a?(0,i.getProperty)(r,a):"function"==typeof a?a(this.data.slice(e,e+1)[0]):r[a]}return n}},{key:"getByRange",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Math.min(e.row,t.row),i=Math.min(e.col,t.col),a=Math.max(e.row,t.row),l=Math.max(e.col,t.col),u=[];return(0,s.rangeEach)(r,a,function(e){var t=n.getAtRow(e),r=void 0;"array"===n.dataType?r=t.slice(i,l+1):"object"===n.dataType&&(r=o?[]:{},(0,s.rangeEach)(i,l,function(e){var i=n.colToProp(e);o?r.push(t[i]):r[i]=t[i]})),u.push(r)}),u}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}()},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.__esModule=!0;var r,i=n(7),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i);t.default=(r={languageCode:"en-US"},o(r,a.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),o(r,a.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),o(r,a.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),o(r,a.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),o(r,a.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),o(r,a.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),o(r,a.CONTEXTMENU_ITEMS_UNDO,"Undo"),o(r,a.CONTEXTMENU_ITEMS_REDO,"Redo"),o(r,a.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),o(r,a.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),o(r,a.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),o(r,a.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),o(r,a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),o(r,a.CONTEXTMENU_ITEMS_BORDERS,"Borders"),o(r,a.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),o(r,a.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),o(r,a.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),o(r,a.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),o(r,a.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),o(r,a.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),o(r,a.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),o(r,a.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),o(r,a.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),o(r,a.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),o(r,a.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),o(r,a.CONTEXTMENU_ITEMS_COPY,"Copy"),o(r,a.CONTEXTMENU_ITEMS_CUT,"Cut"),o(r,a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),o(r,a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),o(r,a.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),o(r,a.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),o(r,a.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),o(r,a.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),o(r,a.FILTERS_CONDITIONS_NONE,"None"),o(r,a.FILTERS_CONDITIONS_EMPTY,"Is empty"),o(r,a.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),o(r,a.FILTERS_CONDITIONS_EQUAL,"Is equal to"),o(r,a.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),o(r,a.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),o(r,a.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),o(r,a.FILTERS_CONDITIONS_CONTAINS,"Contains"),o(r,a.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),o(r,a.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),o(r,a.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),o(r,a.FILTERS_CONDITIONS_LESS_THAN,"Less than"),o(r,a.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),o(r,a.FILTERS_CONDITIONS_BETWEEN,"Is between"),o(r,a.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),o(r,a.FILTERS_CONDITIONS_AFTER,"After"),o(r,a.FILTERS_CONDITIONS_BEFORE,"Before"),o(r,a.FILTERS_CONDITIONS_TODAY,"Today"),o(r,a.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),o(r,a.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),o(r,a.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),o(r,a.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),o(r,a.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),o(r,a.FILTERS_LABELS_CONJUNCTION,"And"),o(r,a.FILTERS_LABELS_DISJUNCTION,"Or"),o(r,a.FILTERS_BUTTONS_SELECT_ALL,"Select all"),o(r,a.FILTERS_BUTTONS_CLEAR,"Clear"),o(r,a.FILTERS_BUTTONS_OK,"OK"),o(r,a.FILTERS_BUTTONS_CANCEL,"Cancel"),o(r,a.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),o(r,a.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),o(r,a.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),r)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){h(e,t)}function i(){return f()}t.__esModule=!0,t.getPhraseFormatters=t.registerPhraseFormatter=void 0,t.register=r,t.getAll=i;var a=n(38),s=o(a),l=n(519),u=o(l),c=(0,s.default)("phraseFormatters"),h=c.register,f=c.getValues;t.registerPhraseFormatter=r,t.getPhraseFormatters=i,r("pluralize",u.default)},function(e,t,n){"use strict";function o(e,t){return Array.isArray(e)&&Number.isInteger(t)?e[t]:e}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return b(e)(t)}t.__esModule=!0,t.createHighlight=void 0;var i=n(38),a=o(i),s=n(521),l=o(s),u=n(522),c=o(u),h=n(523),f=o(h),d=n(524),p=o(d),g=n(525),v=o(g),m=n(526),y=o(m),w=(0,a.default)("highlight/types"),C=w.register,b=w.getItem;C("active-header",l.default),C("area",c.default),C("cell",f.default),C("custom-selection",p.default),C("fill",v.default),C("header",y.default),t.createHighlight=r},function(e,t,n){"use strict";function o(e){return new r.Selection({highlightHeaderClassName:e.activeHeaderClassName})}t.__esModule=!0;var r=n(4);t.default=o},function(e,t,n){"use strict";function o(e){var t=e.layerLevel,n=e.areaCornerVisible;return new r.Selection({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}})}t.__esModule=!0;var r=n(4);t.default=o},function(e,t,n){"use strict";function o(e){return new r.Selection({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:e.cellCornerVisible}})}t.__esModule=!0;var r=n(4);t.default=o},function(e,t,n){"use strict";function o(e){return new r.Selection(e.border,e.cellRange)}t.__esModule=!0;var r=n(4);t.default=o},function(e,t,n){"use strict";function o(){return new r.Selection({className:"fill",border:{width:1,color:"#ff0000"}})}t.__esModule=!0;var r=n(4);t.default=o},function(e,t,n){"use strict";function o(e){return new r.Selection({className:"highlight",highlightHeaderClassName:e.headerClassName,highlightRowClassName:e.rowClassName,highlightColumnClassName:e.columnClassName})}t.__esModule=!0;var r=n(4);t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["Unsupported format of the selection ranges was passed. To select cells pass \n        the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, columnEnd/columnPropEnd]]) \n        or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass \n        the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, columnEnd/columnPropEnd]]) \n        or as an array of CellRange objects."]),l=n(446),u=o(l),c=n(528),h=o(c),f=n(4),d=n(93),p=n(1),g=n(10),v=n(2),m=n(49),y=o(m),w=n(529),C=o(w),b=n(72),_=n(42),S=function(){function e(t,n){var o=this;r(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new h.default,this.highlight=new u.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disableHighlight:this.settings.disableVisualSelection,cellCornerVisible:function(){return o.isCellCornerVisible.apply(o,arguments)},areaCornerVisible:function(){return o.isAreaCornerVisible.apply(o,arguments)}}),this.transformation=new C.default(this.selectedRange,{countRows:function(){return o.tableProps.countRows()},countCols:function(){return o.tableProps.countCols()},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["beforeModifyTransformStart"].concat(t))}),this.transformation.addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["afterModifyTransformStart"].concat(t))}),this.transformation.addLocalHook("beforeTransformEnd",function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["beforeModifyTransformEnd"].concat(t))}),this.transformation.addLocalHook("afterTransformEnd",function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["afterModifyTransformEnd"].concat(t))}),this.transformation.addLocalHook("insertRowRequire",function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["insertRowRequire"].concat(t))}),this.transformation.addLocalHook("insertColRequire",function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return o.runLocalHooks.apply(o,["insertColRequire"].concat(t))})}return a(e,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="multiple"===this.settings.selectionMode,r=(0,g.isUndefined)(t)?(0,d.isPressedCtrlKey)():t,i=0>e.row,a=0>e.col,s=i&&a;i&&(e.row=0),a&&(e.col=0),this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart"+(n?"Only":""),e),(!o||o&&!r&&(0,g.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(e),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){this.runLocalHooks("beforeSetRangeEnd",e),this.begin();var t=this.selectedRange.current();"single"!==this.settings.selectionMode&&t.setTo(new f.CellCoords(e.row,e.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(l.CELL_TYPE)&&this.highlight.getCell().add(this.selectedRange.current().highlight);var n=this.getLayerLevel();this.highlight.layerLevel>n&&((0,v.arrayEach)(this.highlight.getAreas(),function(e){return void e.clear()}),(0,v.arrayEach)(this.highlight.getHeaders(),function(e){return void e.clear()}),(0,v.arrayEach)(this.highlight.getActiveHeaders(),function(e){return void e.clear()})),this.highlight.useLayerLevel(n);var o=this.highlight.createOrGetArea(),r=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();if(o.clear(),r.clear(),i.clear(),!this.highlight.isEnabledFor(l.AREA_TYPE)||!this.isMultiple()&&1>n||(o.add(t.from).add(t.to),1===n&&(this.highlight.useLayerLevel(n-1).createOrGetArea().add(this.selectedRange.previous().from),this.highlight.useLayerLevel(n))),this.highlight.isEnabledFor(l.HEADER_TYPE)&&("single"===this.settings.selectionMode?r.add(t.highlight):r.add(t.from).add(t.to)),this.isSelectedByRowHeader()){this.tableProps.countCols()===t.getWidth()&&i.add(new f.CellCoords(t.from.row,-1)).add(new f.CellCoords(t.to.row,-1))}if(this.isSelectedByColumnHeader()){this.tableProps.countRows()===t.getHeight()&&i.add(new f.CellCoords(-1,t.from.col)).add(new f.CellCoords(-1,t.to.col))}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,p.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t,n){this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){this.clear(),this.setRangeStart(new f.CellCoords(-1,-1)),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(new f.CellCoords(this.tableProps.countRows()-1,this.tableProps.countCols()-1))}},{key:"selectCells",value:function(e){var t=this,n=(0,b.detectSelectionType)(e);if(n===b.SELECTION_TYPE_EMPTY)return!1;if(n===b.SELECTION_TYPE_UNRECOGNIZED)throw Error((0,_.toSingleLine)(s));var o=(0,b.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),r=this.tableProps.countRows(),a=this.tableProps.countCols(),l=!e.some(function(e){var t=o(e),n=i(t,4),s=n[0],l=n[1],u=n[2],c=n[3];return!((0,b.isValidCoord)(s,r)&&(0,b.isValidCoord)(l,a)&&(0,b.isValidCoord)(u,r)&&(0,b.isValidCoord)(c,a))});return l&&(this.clear(),(0,v.arrayEach)(e,function(e){var n=o(e),r=i(n,4),a=r[0],s=r[1],l=r[2],u=r[3];t.setRangeStartOnly(new f.CellCoords(a,s),!1),t.setRangeEnd(new f.CellCoords(l,u)),t.finish()})),l}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,r=this.tableProps.countCols(),i=(0,b.isValidCoord)(n,r)&&(0,b.isValidCoord)(o,r);return i&&(this.setRangeStartOnly(new f.CellCoords(-1,n)),this.setRangeEnd(new f.CellCoords(this.tableProps.countRows()-1,o)),this.finish()),i}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.tableProps.countRows(),o=(0,b.isValidCoord)(e,n)&&(0,b.isValidCoord)(t,n);return o&&(this.setRangeStartOnly(new f.CellCoords(e,-1)),this.setRangeEnd(new f.CellCoords(t,this.tableProps.countCols()-1)),this.finish()),o}}]),e}();(0,p.mixin)(S,y.default),t.default=S},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(4);t.default=function(){function e(){o(this,e),this.ranges=[]}return r(e,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(new i.CellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(new i.CellRange(e)),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some(function(t){return t.includes(e)})}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.size()+e-1,n=void 0;return 0>t||(n=this.ranges[t]),n}},{key:Symbol.iterator,value:function(){return this.ranges[Symbol.iterator]()}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(4),a=n(1),s=n(49),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(){function e(t,n){o(this,e),this.range=t,this.options=n}return r(e,[{key:"transformStart",value:function(e,t,n){var o=new i.CellCoords(e,t);this.runLocalHooks("beforeTransformStart",o);var r=this.options.countRows(),a=this.options.countCols(),s=this.options.fixedRowsBottom(),l=this.options.minSpareRows(),u=this.options.minSpareCols(),c=this.options.autoWrapRow(),h=this.options.autoWrapCol(),f=this.range.current().highlight;f.row+e>r-1?n&&l>0&&(!s||r-s-1>f.row)?(this.runLocalHooks("insertRowRequire",r),r=this.options.countRows()):h&&(o.row=1-r,o.col=f.col+o.col===a-1?1-a:1):h&&0>f.row+o.row&&f.col+o.col>=0&&(o.row=r-1,o.col=f.col+o.col===0?a-1:-1),f.col+o.col>a-1?n&&u>0?(this.runLocalHooks("insertColRequire",a),a=this.options.countCols()):c&&(o.row=f.row+o.row===r-1?1-r:1,o.col=1-a):c&&0>f.col+o.col&&f.row+o.row>=0&&(o.row=f.row+o.row===0?r-1:-1,o.col=a-1);var d=new i.CellCoords(f.row+o.row,f.col+o.col),p=0,g=0;return 0>d.row?(p=-1,d.row=0):d.row>0&&d.row>=r&&(p=1,d.row=r-1),0>d.col?(g=-1,d.col=0):d.col>0&&d.col>=a&&(g=1,d.col=a-1),this.runLocalHooks("afterTransformStart",d,p,g),d}},{key:"transformEnd",value:function(e,t){var n=new i.CellCoords(e,t);this.runLocalHooks("beforeTransformEnd",n);var o=this.options.countRows(),r=this.options.countCols(),a=this.range.current(),s=new i.CellCoords(a.to.row+n.row,a.to.col+n.col),l=0,u=0;return 0>s.row?(l=-1,s.row=0):s.row>0&&s.row>=o&&(l=1,s.row=o-1),0>s.col?(u=-1,s.col=0):s.col>0&&s.col>=r&&(u=1,s.col=r-1),this.runLocalHooks("afterTransformEnd",s,l,u),s}}]),e}();(0,a.mixin)(u,l.default),t.default=u},function(e,t,n){"use strict";function o(e){var t="undefined"!=typeof window&&window.jQuery;t&&(t.fn.handsontable=function(t){var n=this.first(),o=n.data("handsontable");if("string"!=typeof t){var r=t||{};return o?o.updateSettings(r):(o=new e.Core(n[0],r),n.data("handsontable",o),o.init()),n}var i=void 0;if(o){if(void 0===o[t])throw Error("Handsontable do not provide action: "+t);for(var a,s=arguments.length,l=Array(s>1?s-1:0),u=1;s>u;u++)l[u-1]=arguments[u];i=(a=o[t]).call.apply(a,[o].concat(l)),"destroy"===t&&n.removeData()}return i})}t.__esModule=!0,t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Base=t.UndoRedo=t.TouchScroll=t.Search=t.PersistentState=t.ObserveChanges=t.MultipleSelectionHandles=t.MergeCells=t.ManualRowResize=t.ManualRowMove=t.ManualColumnResize=t.ManualColumnMove=t.ManualColumnFreeze=t.DragToScroll=t.CustomBorders=t.CopyPaste=t.ContextMenu=t.Comments=t.ColumnSorting=t.AutoRowSize=t.AutoFill=t.AutoColumnSize=void 0;var r=n(532),i=o(r),a=n(534),s=o(a),l=n(535),u=o(l),c=n(537),h=o(c),f=n(538),d=o(f),p=n(547),g=o(p),v=n(551),m=o(v),y=n(568),w=o(y),C=n(575),b=o(C),_=n(582),S=o(_),E=n(583),O=o(E),T=n(587),k=o(T),R=n(592),M=o(R),D=n(593),A=o(D),N=n(598),P=o(N),H=n(599),L=o(H),x=n(605),I=o(x),j=n(606),F=o(j),W=n(610),B=o(W),Y=n(611),V=o(Y),U=n(612),z=o(U),G=n(11),K=o(G);t.AutoColumnSize=s.default,t.AutoFill=u.default,t.AutoRowSize=h.default,t.ColumnSorting=d.default,t.Comments=g.default,t.ContextMenu=m.default,t.CopyPaste=w.default,t.CustomBorders=b.default,t.DragToScroll=S.default,t.ManualColumnFreeze=O.default,t.ManualColumnMove=k.default,t.ManualColumnResize=M.default,t.ManualRowMove=A.default,t.ManualRowResize=P.default,t.MergeCells=L.default,t.MultipleSelectionHandles=I.default,t.ObserveChanges=F.default,t.PersistentState=i.default,t.Search=B.default,t.TouchScroll=V.default,t.UndoRedo=z.default,t.Base=K.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=o(u),h=n(8),f=n(533),d=o(f),p=n(16),g=o(p);g.default.getSingleton().register("persistentStateSave"),g.default.getSingleton().register("persistentStateLoad"),g.default.getSingleton().register("persistentStateReset");var v=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storage=void 0,n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.storage||(this.storage=new d.default(this.hot.rootElement.id)),this.addHook("persistentStateSave",function(t,n){return e.saveValue(t,n)}),this.addHook("persistentStateLoad",function(t,n){return e.loadValue(t,n)}),this.addHook("persistentStateReset",function(){return e.resetValue()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"loadValue",value:function(e,t){t.value=this.storage.loadValue(e)}},{key:"saveValue",value:function(e,t){this.storage.saveValue(e,t)}},{key:"resetValue",value:function(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,h.registerPlugin)("persistentState",v),t.default=v},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2);t.default=function(){function e(t){o(this,e),this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}return r(e,[{key:"saveValue",value:function(e,t){window.localStorage.setItem(this.prefix+"_"+e,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}},{key:"loadValue",value:function(e,t){var n=void 0===e?t:e,o=window.localStorage.getItem(this.prefix+"_"+n);return null===o?void 0:JSON.parse(o)}},{key:"reset",value:function(e){window.localStorage.removeItem(this.prefix+"_"+e)}},{key:"resetAll",value:function(){var e=this;(0,i.arrayEach)(this.savedKeys,function(t,n){window.localStorage.removeItem(e.prefix+"_"+e.savedKeys[n])}),this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var e=window.localStorage.getItem(this.prefix+"__persistentStateKeys");this.savedKeys=("string"==typeof e?JSON.parse(e):void 0)||[]}},{key:"saveSavedKeys",value:function(){window.localStorage.setItem(this.prefix+"__persistentStateKeys",JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0,this.saveSavedKeys()}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(11),h=o(c),f=n(2),d=n(40),p=n(0),g=n(94),v=o(g),m=n(1),y=n(5),w=n(8),C=n(447),b=o(C),_=n(33),S=n(4),E=new WeakMap,O=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return E.set(n,{cachedColumnHeaders:[]}),n.widths=[],n.ghostTable=new v.default(n.hot),n.samplesGenerator=new b.default(function(e,t){var o=n.hot.getCellMeta(e,t),r="";o.spanned||(r=n.hot.getDataAtCell(e,t));var i=0;if(o.label){var a=o.label,s=a.value,l=a.property,u="";s?u="function"==typeof s?s(e,t,n.hot.colToProp(t),r):s:l&&(u=n.hot.getDataAtRowProp(e,l)),i=u.length}return{value:r,bundleCountSeed:i}}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeColumnResize",function(e,t,o){return n.onBeforeColumnResize(e,t,o)}),n}return a(t,e),u(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),u(t,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().autoColumnSize;n&&null!==n.useHeaders&&void 0!==n.useHeaders&&this.ghostTable.setSetting("useHeaders",n.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,n){return e.getColumnWidth(n,t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="number"==typeof e?{from:e,to:e}:e,i="number"==typeof n?{from:n,to:n}:n;(0,y.rangeEach)(r.from,r.to,function(e){if(o||void 0===t.widths[e]&&!t.hot._getColWidthFromSettings(e)){var n=t.samplesGenerator.generateColumnSamples(e,i);(0,f.arrayEach)(n,function(e){var n=s(e,2);return t.ghostTable.addColumn(n[0],n[1])})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,n){t.widths[e]=n}),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},o=0,r=this.hot.countCols()-1,i=null;this.inProgress=!0;this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),r>o?function a(){if(!e.hot)return(0,d.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateColumnsWidth({from:o,to:Math.min(o+t.CALCULATION_STEP,r)},n),o=o+t.CALCULATION_STEP+1,r>o?i=(0,d.requestAnimationFrame)(a):((0,d.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&(0,p.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countCols()-1;return(0,m.isObject)(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,(0,_.isPercentValue)(e)?e=(0,y.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=2>=arguments.length||void 0===arguments[2]||arguments[2],o=t;return void 0===o&&(o=this.widths[e],n&&"number"==typeof o&&(o=Math.max(o,S.ViewportColumnsCalculator.DEFAULT_WIDTH))),o}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=E.get(this),n=t.cachedColumnHeaders;return(0,f.arrayReduce)(e,function(e,t,o){var r=n.length;return(o>r-1||n[o]!==t)&&e.push(o),o>r-1?n.push(t):n[o]=t,e},[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?(0,f.arrayEach)(t,function(t){e.widths[t]=void 0}):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!(0,f.arrayFilter)(this.widths,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.hot.countRows()&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(e){var t=this;this.clearCache((0,f.arrayMap)(e,function(e){var n=s(e,2);return t.hot.propToCol(n[1])}))}},{key:"onBeforeColumnResize",value:function(e,t,n){var o=t;return n&&(this.calculateColumnsWidth(e,void 0,!0),o=this.getColumnWidth(e,void 0,!1)),o}},{key:"onAfterInit",value:function(){E.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,w.registerPlugin)("autoColumnSize",O),t.default=O},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},c=n(11),h=o(c),f=n(16),d=o(f),p=n(0),g=n(6),v=o(g),m=n(8),y=n(4),w=n(536);d.default.getSingleton().register("modifyAutofillRange"),d.default.getSingleton().register("beforeAutofill");var C=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new v.default(n),n.addingStarted=!1,n.mouseDownOnCellCorner=!1,n.mouseDragOutside=!1,n.handleDraggedCells=0,n.directions=[],n.autoInsertRow=!1,n}return s(t,e),l(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",function(t){return e.onAfterCellCornerMouseDown(t)}),this.addHook("afterOnCellCornerDblClick",function(t){return e.onCellCornerDblClick(t)}),this.addHook("beforeOnCellMouseOver",function(t,n){return e.onBeforeCellMouseOver(n)}),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e={from:this.hot.getSelectedRangeLast().from,to:this.hot.getSelectedRangeLast().to};return this.hot.getData(e.from.row,e.from.col,e.to.row,e.to.col)}},{key:"fillIn",value:function(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;var e=this.hot.selection.highlight.getFill().getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells();e=this.hot.runHooks("modifyAutofillRange",e,t);var n=(0,w.getDragDirectionAndRange)(t,e),o=n.directionOfDrag,r=n.startOfDragCoords,i=n.endOfDragCoords;if(r&&r.row>-1&&r.col>-1){var a=this.getSelectionData();this.hot.runHooks("beforeAutofill",r,i,a);var s=(0,w.getDeltas)(r,i,a,o),l=a;if(["up","left"].indexOf(o)>-1){l=[];var u=null,c=null;if("up"===o){u=i.row-r.row+1,c=u%a.length;for(var h=0;u>h;h++)l.push(a[(h+(a.length-c))%a.length])}else{u=i.col-r.col+1,c=u%a[0].length;for(var f=0;a.length>f;f++){l.push([]);for(var d=0;u>d;d++)l[f].push(a[f][(d+(a[f].length-c))%a[f].length])}}}this.hot.populateFromArray(r.row,r.col,l,i.row,i.col,this.pluginName+".fill",null,o,s),this.setSelection(e)}else this.hot._refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return 0>e.row&&(e.row=0),0>e.col&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t=this.hot.getSelectedRangeLast().getTopLeftCorner(),n=this.hot.getSelectedRangeLast().getBottomRightCorner(),o=void 0;if(this.directions.includes(w.DIRECTIONS.vertical)&&(e.row>n.row||t.row>e.row))o=new y.CellCoords(e.row,n.col);else{if(!this.directions.includes(w.DIRECTIONS.horizontal))return;o=new y.CellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(o)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter("insert_row",void 0,1,e.pluginName+".fill"),e.addingStarted=!1},200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.selection.highlight.getFill().cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getCorners(),n=this.hot.countRows();n-1>e[2]&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.selection.highlight.createOrGetArea().getCorners():this.hot.selection.highlight.getCell().getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t=this.hot.getData(),n=this.hot.countRows(),o=void 0,r=e[2]+1;n>r;r++){for(var i=e[1];e[3]>=i;i++){if(t[r][i])return-1}var a=t[r][e[1]-1],s=t[r][e[3]+1];(a||s)&&(o=r)}return o}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(new y.CellCoords(e[0],e[1])).add(new y.CellCoords(t,e[3]))}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,r(e).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}},{key:"redrawBorders",value:function(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=(0,p.offset)(this.hot.table).top-(window.pageYOffset||document.documentElement.scrollTop)+(0,p.outerHeight)(this.hot.table),n=(0,p.offset)(this.hot.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+(0,p.outerWidth)(this.hot.table);return e.clientY>t&&n>=e.clientX}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)})}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=(0,w.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,m.registerPlugin)("autofill",C),t.default=C},function(e,t,n){"use strict";function o(e,t,n,o){var r=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(o)){for(var u=[],c=0;l>=c;c++){var h=parseInt(n[0][c],10),f=parseInt(n[r-1][c],10);u.push(("down"===o?f-h:h-f)/(r-1)||0)}a.push(u)}if(-1!==["right","left"].indexOf(o))for(var d=0;s>=d;d++){var p=parseInt(n[d][0],10),g=parseInt(n[d][i-1],10),v=("right"===o?g-p:p-g)/(i-1)||0;a.push([v])}return a}function r(e,t){var n=void 0,o=void 0,r=void 0;return t[0]===e[0]&&e[1]>t[1]?(r="left",n=new l.CellCoords(t[0],t[1]),o=new l.CellCoords(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(r="right",n=new l.CellCoords(t[0],e[3]+1),o=new l.CellCoords(t[2],t[3])):e[0]>t[0]&&t[1]===e[1]?(r="up",n=new l.CellCoords(t[0],t[1]),o=new l.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(r="down",n=new l.CellCoords(e[2]+1,t[1]),o=new l.CellCoords(t[2],t[3])),{directionOfDrag:r,startOfDragCoords:n,endOfDragCoords:o}}function i(e){var t={};return!0===e?(t.directions=Object.keys(u),t.autoInsertRow=!0):(0,a.isObject)(e)?(t.autoInsertRow=!!(0,s.isDefined)(e.autoInsertRow)&&(e.direction!==u.horizontal&&e.autoInsertRow),t.directions=(0,s.isDefined)(e.direction)?[e.direction]:Object.keys(u)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=o,t.getDragDirectionAndRange=r,t.getMappedFillHandleSetting=i;var a=n(1),s=n(10),l=n(4),u=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(11),h=o(c),f=n(2),d=n(40),p=n(0),g=n(94),v=o(g),m=n(1),y=n(5),w=n(8),C=n(447),b=o(C),_=n(33),S=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.heights=[],n.ghostTable=new v.default(n.hot),n.samplesGenerator=new b.default(function(e,t){var o=void 0;return 0>e?-1===e&&(o=n.hot.getColHeader(t)):o=n.hot.getDataAtCell(e,t),{value:o}}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeRowResize",function(e,t,o){return n.onBeforeRowResize(e,t,o)}),n}return a(t,e),u(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),u(t,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||(0,m.isObject)(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="number"==typeof e?{from:e,to:e}:e,i="number"==typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){this.ghostTable.addColumnHeadersRow(this.samplesGenerator.generateRowSamples(-1,i).get(-1))}(0,y.rangeEach)(r.from,r.to,function(e){if(o||void 0===t.heights[e]){var n=t.samplesGenerator.generateRowSamples(e,i);(0,f.arrayEach)(n,function(e){var n=s(e,2);return t.ghostTable.addRow(n[0],n[1])})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,n){t.heights[e]=n}),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},o=0,r=this.hot.countRows()-1,i=null;this.inProgress=!0;this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),r>o?function a(){if(!e.hot)return(0,d.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateRowsHeight({from:o,to:Math.min(o+t.CALCULATION_STEP,r)},n),o=o+t.CALCULATION_STEP+1,r>o?i=(0,d.requestAnimationFrame)(a):((0,d.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,p.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countRows()-1;return(0,m.isObject)(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,(0,_.isPercentValue)(e)?e=(0,y.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,o=n.from,r=n.to;(0,y.rangeEach)(Math.min(o,r),Math.max(o,r),function(e){t.heights[e]=void 0})}},{key:"isNeedRecalculate",value:function(){return!!(0,f.arrayFilter)(this.heights,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom;if(this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,e),t){var n=this.hot.countRows()-1;this.calculateRowsHeight({from:n-t,to:n})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){var o=t;return n&&(this.calculateRowsHeight(e,void 0,!0),o=this.getRowHeight(e)),o}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){e.hot&&e.recalculateAllRowsHeight()},0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,w.registerPlugin)("autoRowSize",S),t.default=S},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var o in e)0>t.indexOf(o)&&Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},h=n(0),f=n(10),d=n(1),p=n(2),g=n(5),v=n(11),m=o(v),y=n(8),w=n(539),C=o(w),b=n(16),_=o(b),S=n(93),E=n(73),O=n(544),T=n(448),k=n(545),R=n(546),M=o(R);_.default.getSingleton().register("beforeColumnSort"),_.default.getSingleton().register("afterColumnSort");var D=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.columnStatesManager=new O.ColumnStatesManager,n.domHelper=new k.DomHelper(n.columnStatesManager),n.rowsMapper=new M.default(n),n.blockPluginTranslation=!0,n.columnMetaCache=new Map,n}return l(t,e),u(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSorting}},{key:"enablePlugin",value:function(){var e=this;this.enabled||((0,T.warnIfPluginsHaveConflict)(this.hot.getSettings().columnSorting),(0,f.isUndefined)(this.hot.getSettings().observeChanges)&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(){return e.sortByPresetSortStates()}),this.addHook("afterUntrimRow",function(){return e.sortByPresetSortStates()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("unmodifyRow",function(t,n){return e.onUnmodifyRow(t,n)}),this.addHook("afterGetColHeader",function(t,n){return e.onAfterGetColHeader(t,n)}),this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("afterOnCellMouseDown",function(t,n){return e.onAfterOnCellMouseDown(t,n)}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterRemoveRow",function(t,n){return e.onAfterRemoveRow(t,n)}),this.addHook("afterInit",function(){return e.loadOrSortBySettings()}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.hot.view&&this.loadOrSortBySettings(),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,n=function(t,n){var o=(0,T.getHeaderSpanElement)(n);!1!==(0,T.isFirstLevelColumnHeader)(t,n)&&null!==o&&(0,h.removeClass)(o,e.domHelper.getRemovedClasses(o))};this.hot.addHook("afterGetColHeader",n),this.hot.addHookOnce("afterRender",function(){e.hot.removeHook("afterGetColHeader",n)}),this.rowsMapper.clearMap(),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var t=this,n=this.getSortConfig(),o=(0,T.getFullSortConfiguration)(e).slice(0,1),r=this.areValidSortConfigs(o),a=this.hot.runHooks("beforeColumnSort",n,o,r);if(!1===r&&(0,T.warnAboutNotValidatedConfig)(),!1!==a){if(r){var s=function(e){var n=e.column,o=i(e,["column"]);return Object.assign({column:t.hot.toPhysicalColumn(n)},o)};this.columnStatesManager.setSortStates((0,p.arrayMap)(o,function(e){return s(e)})),this.sortByPresetSortStates(),this.saveAllSortSettings(),this.hot.render(),this.hot.view.wt.draw(!0)}this.hot.runHooks("afterColumnSort",n,this.getSortConfig(),r)}}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){var t=this,n=function(e){var n=e.column,o=i(e,["column"]);return Object.assign({column:t.hot.toVisualColumn(n)},o)};if(!(0,f.isDefined)(e)){var o=this.columnStatesManager.getSortStates();return(0,p.arrayMap)(o,function(e){return n(e)})}var r=this.hot.toPhysicalColumn(e),a=this.columnStatesManager.getColumnSortState(r);if((0,f.isDefined)(a))return n(a)}},{key:"setSortConfig",value:function(e){var t=this,n=(0,T.getFullSortConfiguration)(e).slice(0,1);if(this.areValidSortConfigs(n)){var o=function(e){var n=e.column,o=i(e,["column"]);return Object.assign({column:t.hot.toPhysicalColumn(n)},o)};this.columnStatesManager.setSortStates((0,p.arrayMap)(n,function(e){return o(e)}))}else(0,T.warnAboutNotValidatedConfig)()}},{key:"areValidSortConfigs",value:function(e){if(!1===Array.isArray(e))return!1;var t=e.map(function(e){return e.column}),n=this.hot.countCols(),o=t.every(function(e){return n>=e&&e>=0});return(0,T.areValidSortStates)(e)&&o}},{key:"saveAllSortSettings",value:function(){var e=this.columnStatesManager.getAllColumnsProperties();e.initialConfig=this.columnStatesManager.getSortStates(),this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value,o=function(t){var n=t.column,o=i(t,["column"]);return Object.assign({column:e.hot.toVisualColumn(n)},o)};return(0,f.isDefined)(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=(0,p.arrayMap)(n.initialConfig,o)),n}},{key:"getColumnNextConfig",value:function(e){if(this.columnStatesManager.isColumnSorted(this.hot.toPhysicalColumn(e))){var t=this.getSortConfig(e),n=(0,T.getNextSortOrder)(t.sortOrder);if((0,f.isDefined)(n))return t.sortOrder=n,t}else{var o=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&o>e)return{column:e,sortOrder:(0,T.getNextSortOrder)()}}}},{key:"getNextSortConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"append",n=this.hot.toPhysicalColumn(e),o=this.columnStatesManager.getIndexOfColumnInSortQueue(n),i=this.columnStatesManager.isColumnSorted(n),a=this.getSortConfig(),s=this.getColumnNextConfig(e);if(i){if((0,f.isUndefined)(s))return[].concat(r(a.slice(0,o)),r(a.slice(o+1)));if("append"===t)return[].concat(r(a.slice(0,o)),r(a.slice(o+1)),[s]);if("replace"===t)return[].concat(r(a.slice(0,o)),[s],r(a.slice(o+1)))}return(0,f.isDefined)(s)?a.concat(s):a}},{key:"setMergedPluginSettings",value:function(e){var t=this.hot.toPhysicalColumn(e),n=this.hot.getSettings().columnSorting,o=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),i=Object.getPrototypeOf(r),a=Object.hasOwnProperty.call(i,"columnSorting"),s=a?i.columnSorting:{};this.columnMetaCache.set(t,Object.assign(o,n,s))}},{key:"getFirstCellSettings",value:function(e){var t=this;if(this.blockPluginTranslation=!0,0===this.columnMetaCache.size){var n=this.hot.countCols();(0,g.rangeEach)(n,function(e){return t.setMergedPluginSettings(e)})}var o=this.hot.getCellMeta(0,e);this.blockPluginTranslation=!1;var r=Object.create(o);return r.columnSorting=this.columnMetaCache.get(this.hot.toPhysicalColumn(e)),r}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows>e?e-t.minSpareRows:t.maxRows}},{key:"sortByPresetSortStates",value:function(){var e=this;if(this.columnStatesManager.isListOfSortedColumnsEmpty())return void this.rowsMapper.clearMap();var t=[],n=this.columnStatesManager.getSortedColumns(),o=this.hot.countRows();this.blockPluginTranslation=!0;for(var r=function(t){return(0,p.arrayMap)(n,function(n){return e.hot.getDataAtCell(t,e.hot.toVisualColumn(n))})},i=0;i<this.getNumberOfRowsToSort(o);i+=1)t.push([i].concat(r(i)));(0,C.default)(t,(0,E.mainSortComparator)((0,p.arrayMap)(n,function(t){return e.columnStatesManager.getSortOrderOfColumn(t)}),(0,p.arrayMap)(n,function(t){return e.getFirstCellSettings(e.hot.toVisualColumn(t))})));for(var a=t.length;o>a;a+=1)t.push([a].concat(r(a)));this.blockPluginTranslation=!1,this.rowsMapper._arrayMap=(0,p.arrayMap)(t,function(e){return e[0]})}},{key:"onModifyRow",value:function(e,t){if(!1===this.blockPluginTranslation&&t!==this.pluginName){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e,t){return!1===this.blockPluginTranslation&&t!==this.pluginName&&(e=this.rowsMapper.getIndexByValue(e)),e}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,T.getHeaderSpanElement)(t);if(!1!==(0,T.isFirstLevelColumnHeader)(e,t)&&null!==n){var o=this.hot.toPhysicalColumn(e),r=this.getFirstCellSettings(e).columnSorting,i=r.indicator,a=r.headerAction;(0,h.removeClass)(n,this.domHelper.getRemovedClasses(n)),(0,h.addClass)(n,this.domHelper.getAddedClasses(o,i,a))}}},{key:"onUpdateSettings",value:function(e){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onUpdateSettings",this).call(this),(0,T.warnIfPluginsHaveConflict)(e.columnSorting),this.columnMetaCache.clear(),(0,f.isDefined)(e.columnSorting)&&this.sortBySettings(e.columnSorting)}},{key:"loadOrSortBySettings",value:function(){this.columnMetaCache.clear();var e=this.getAllSavedSortSettings();if((0,d.isObject)(e))this.sortBySettings(e);else{this.sortBySettings(this.hot.getSettings().columnSorting)}}},{key:"sortBySettings",value:function(e){if((0,d.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,d.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))}},{key:"onAfterLoadData",value:function(e){this.rowsMapper.clearMap(),!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.rowsMapper.unshiftItems(e,t)}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t).columnSorting.headerAction&&"SPAN"===e.realTarget.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){0>t.row&&this.wasClickableHeaderClicked(e,t.col)&&(0,S.isPressedCtrlKey)()&&(o.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){0>t.row&&this.wasClickableHeaderClicked(e,t.col)&&((0,S.isPressedCtrlKey)()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){this.rowsMapper.destroy(),this.domHelper.destroy(),this.columnStatesManager.destroy(),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(m.default);(0,y.registerPlugin)("columnSorting",D),t.default=D},function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(1>=Math.abs(i-n))return[];var a=Math.ceil((n+i)/2);return o(e,t,n,a),o(e,t,a,i),r(e,t,n,a,i)}function r(e,t,n,o,r){for(var i=new a.default,s=new a.default,l=o-n,u=r-o,c=Math.max(l,u),h=r-n,f=0;c>f;f+=1)l>f&&i.push(e[n+f]),u>f&&s.push(e[o+f]);for(var d=0;h>d;)e[n+d]=i.first&&s.first?t(i.first.data,s.first.data)>0?s.shift().data:i.shift().data:i.first?i.shift().data:s.shift().data,d+=1;return e}t.__esModule=!0,t.default=o;var i=n(540),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=function(e,t){var n=""+e,o=""+t;return n===o?0:o>n?-1:1}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t){o(this,e),this.data=t,this.next=null,this.prev=null},a=function(){function e(){o(this,e),this.first=null,this.last=null}return r(e,[{key:"push",value:function(e){var t=new i(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}}},{key:"unshift",value:function(e){var t=new i(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t=this.first,n=void 0,o=void 0;t;){if(t.data===e)return n=t.next,o=t.prev,n&&(n.prev=o),o&&(o.next=n),t===this.first&&(this.first=n),t===this.last&&(this.last=o),!0;t=t.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if(e=e.next,t=t.next,e===t)return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){function e(t,n){n&&(e(n,n.next),n.next=t)}if(this.first){e(this.first,this.first.next),this.first.next=null;var t=this.first;this.first=this.last,this.last=t}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e=this.first.next,t=this.first,n=void 0;e;)n=e.next,e.next=t,t.prev=e,t=e,e=n;this.first.next=null,this.last.prev=null,n=this.first,this.first=t,this.last=n}}}]),e}();t.NodeStructure=i,t.default=a},function(e,t,n){"use strict";function o(e,t){return function(n,o){var r=t.columnSorting.sortEmptyCells;if(n===o)return s.DO_NOT_SWAP;if((0,a.isEmpty)(n))return(0,a.isEmpty)(o)?s.DO_NOT_SWAP:r&&"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND;if((0,a.isEmpty)(o))return r&&"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND;var l=t.dateFormat,u=(0,i.default)(n,l),c=(0,i.default)(o,l);return u.isValid()?c.isValid()?c.isAfter(u)?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:c.isBefore(u)?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP:s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND}}t.__esModule=!0,t.default=o;var r=n(47),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(10),s=n(73)},function(e,t,n){"use strict";function o(e,t){return function(n,o){var a=t.columnSorting.sortEmptyCells;return"string"==typeof n&&(n=n.toLowerCase()),"string"==typeof o&&(o=o.toLowerCase()),n===o?i.DO_NOT_SWAP:(0,r.isEmpty)(n)?(0,r.isEmpty)(o)?i.DO_NOT_SWAP:a&&"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(0,r.isEmpty)(o)?a&&"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:isNaN(n)&&!isNaN(o)?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!isNaN(n)&&isNaN(o)?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(isNaN(n)||isNaN(o)||(n=parseFloat(n),o=parseFloat(o)),o>n?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:n>o?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP)}}t.__esModule=!0,t.default=o;var r=n(10),i=n(73)},function(e,t,n){"use strict";function o(e,t){return function(n,o){var a=parseFloat(n),s=parseFloat(o),l=t.columnSorting.sortEmptyCells;if(a===s||isNaN(a)&&isNaN(s))return i.DO_NOT_SWAP;if(l){if((0,r.isEmpty)(n))return"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND;if((0,r.isEmpty)(o))return"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND}return isNaN(a)?i.FIRST_AFTER_SECOND:isNaN(s)?i.FIRST_BEFORE_SECOND:s>a?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:a>s?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP}}t.__esModule=!0,t.default=o;var r=n(10),i=n(73)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.ColumnStatesManager=void 0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1),a=n(2),s=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],l=!1,u=!0,c=!0;t.ColumnStatesManager=function(){function e(){o(this,e),this.sortedColumnsStates=[],this.sortEmptyCells=l,this.indicator=u,this.headerAction=c,this.compareFunctionFactory=void 0}return r(e,[{key:"updateAllColumnsProperties",value:function(e){var t=this;(0,i.isObject)(e)&&(0,i.objectEach)(e,function(e,n){s.includes(n)&&(t[n]=e)})}},{key:"getAllColumnsProperties",value:function(){var e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}},{key:"getFirstSortedColumn",value:function(){var e=void 0;return this.getNumberOfSortedColumns()>0&&(e=this.sortedColumnsStates[0].column),e}},{key:"getSortOrderOfColumn",value:function(e){var t=this.sortedColumnsStates.find(function(t){return e===t.column}),n=void 0;return(0,i.isObject)(t)&&(n=t.sortOrder),n}},{key:"getSortedColumns",value:function(){return(0,a.arrayMap)(this.sortedColumnsStates,function(e){return e.column})}},{key:"getIndexOfColumnInSortQueue",value:function(e){return this.getSortedColumns().indexOf(e)}},{key:"getNumberOfSortedColumns",value:function(){return this.sortedColumnsStates.length}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return this.getSortedColumns().includes(e)}},{key:"getSortStates",value:function(){return(0,i.deepClone)(this.sortedColumnsStates)}},{key:"getColumnSortState",value:function(e){if(this.isColumnSorted(e))return(0,i.deepClone)(this.sortedColumnsStates[this.getIndexOfColumnInSortQueue(e)])}},{key:"setSortStates",value:function(e){this.sortedColumnsStates=e}},{key:"destroy",value:function(){this.sortedColumnsStates.length=0,this.sortedColumnsStates=null}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.DomHelper=t.HEADER_ACTION_CLASS=t.HEADER_SORT_CLASS=void 0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(448),a=t.HEADER_SORT_CLASS="columnSorting",s=t.HEADER_ACTION_CLASS="sortAction",l=new Map([[i.ASC_SORT_STATE,"ascending"],[i.DESC_SORT_STATE,"descending"]]);t.DomHelper=function(){function e(t){o(this,e),this.columnStatesManager=t}return r(e,[{key:"getAddedClasses",value:function(e,t,n){var o=[a];if(n&&o.push(s),!1===t)o.push("indicatorDisabled");else if(this.columnStatesManager.isColumnSorted(e)){var r=this.columnStatesManager.getSortOrderOfColumn(e);o.push(l.get(r))}return o}},{key:"getRemovedClasses",value:function(){return Array.from(l.values()).concat(s,"indicatorDisabled",a)}},{key:"destroy",value:function(){this.columnStatesManager=null}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(95),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(1),l=n(5),u=function(){function e(t){o(this,e),this.columnSorting=t}return r(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,l.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}}]),e}();(0,s.mixin)(u,a.default),t.default=u},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},c=n(0),h=n(1),f=n(6),d=o(f),p=n(4),g=n(8),v=n(11),m=o(v),y=n(548),w=o(y),C=n(19),b=n(549),_=o(b),S=n(7),E=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(S);n(550);var O=new WeakMap,T=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.editor=null,n.displaySwitch=null,n.eventManager=null,n.range={},n.mouseDown=!1,n.contextMenuEvent=!1,n.timer=null,O.set(n,{tempEditorDimensions:{},cellBelowCursor:null}),n}return s(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new w.default),this.eventManager||(this.eventManager=new d.default(this)),this.displaySwitch||(this.displaySwitch=new _.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,o,r,i,a){return e.onAfterRenderer(t,a)}),this.addHook("afterScrollHorizontally",function(){return e.hide()}),this.addHook("afterScrollVertically",function(){return e.hide()}),this.addHook("afterBeginEditing",function(){return e.onAfterBeginEditing()}),this.displaySwitch.addLocalHook("hide",function(){return e.hide()}),this.displaySwitch.addLocalHook("show",function(t,n){return e.showAtCell(t,n)}),this.registerListeners(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(){return e.onEditorBlur()}),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",function(t){return e.onEditorMouseDown(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",function(t){return e.onEditorMouseUp(t)})}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,c.closest)(e.target,"TD","TBODY");return!!(t&&(0,c.hasClass)(t,"htCommentCell")&&(0,c.closest)(t,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(e){return this.editor.getInputElement()===e.target}},{key:"setComment",value:function(e){if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var t=this.editor.getValue(),n="";null!==e&&void 0!==e?n=e:null!==t&&void 0!==t&&(n=t),this.updateCommentMeta(this.range.from.row,this.range.from.col,r({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new p.CellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=0>=arguments.length||void 0===arguments[0]||arguments[0];if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,"comment",void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=2>=arguments.length||void 0===arguments[2]||arguments[2];this.setRange({from:new p.CellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){return this.getCommentMeta(this.range.from.row,this.range.from.col,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{key:"show",value:function(){if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e.comment?e.comment.value:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new p.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var e=(0,c.getScrollableElement)(this.hot.view.wt.wtTable.TABLE),t=this.hot.view.wt.wtTable.getCell(this.range.from),n=this.range.from.row,o=this.range.from.col,r=(0,c.offset)(t),i=this.hot.view.wt.wtTable.getStretchedColumnWidth(o),a=0>r.top?0:r.top,s=r.left;this.hot.view.wt.wtViewport.hasVerticalScroll()&&e!==window&&(a-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition()),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&e!==window&&(s-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition());var l=s+i,u=a,h=this.getCommentMeta(n,o,"style"),f=this.getCommentMeta(n,o,"readOnly");h?this.editor.setSize(h.width,h.height):this.editor.resetSize(),this.editor.setReadOnlyState(f),this.editor.setPosition(l,u)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t).comment,r=void 0;o?(r=(0,h.deepClone)(o),(0,h.deepExtend)(r,n)):r=n,this.hot.setCellMeta(e,t,"comment",r)}},{key:"getCommentMeta",value:function(e,t,n){var o=this.hot.getCellMeta(e,t);if(o.comment)return o.comment[n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,c.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=O.get(this);if(t.cellBelowCursor=document.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||(0,c.hasClass)(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var n=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new p.CellCoords(n.row,n.col)};this.displaySwitch.show(o)}else(0,c.isChildOf)(e.target,document)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,c.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){O.get(this).tempEditorDimensions={width:(0,c.outerWidth)(e.target),height:(0,c.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=O.get(this),n=(0,c.outerWidth)(e.target),o=(0,c.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&o===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,r({},"style",{width:n,height:o}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)}},{key:"onContextMenuRemoveComment",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var o=t.row;n.row>=o;o++)for(var r=t.col;n.col>=r;r++)this.removeCommentAtCell(o,r,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var o=t.row;n.row>=o;o++)for(var i=t.col;n.col>=i;i++){var a=!!this.getCommentMeta(o,i,"readOnly");this.updateCommentMeta(o,i,r({},"readOnly",!a))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.hot.getTranslatedPhrase(t.checkSelectionCommentsConsistency()?E.CONTEXTMENU_ITEMS_EDIT_COMMENT:E.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelectedLast()&&!this.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(E.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return t.hot.selection.isSelectedByCorner()}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(E.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,C.checkSelectionConsistency)(this.getSelectedRangeLast(),function(t,n){var o=e.getCellMeta(t,n).comment;if(o&&(o=o.readOnly),o)return!0})&&(t=(0,C.markLabelAsSelected)(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return t.hot.selection.isSelectedByCorner()||!t.checkSelectionCommentsConsistency()}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,h.isObject)(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(m.default);(0,g.registerPlugin)("comments",T),t.default=T},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0);t.default=function(){function e(){o(this,e),this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return r(e,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),r(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left=e+"px",this.editorStyle.top=t+"px"}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width=e+"px",n.style.height=t+"px"}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e||"";this.getInputElement().value=t}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return document.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=document.createElement("div"),n=document.createElement("textarea"),o=document.querySelector("."+e.CLASS_EDITOR_CONTAINER);return o||(o=document.createElement("div"),(0,i.addClass)(o,e.CLASS_EDITOR_CONTAINER),document.body.appendChild(o)),(0,i.addClass)(t,e.CLASS_EDITOR),(0,i.addClass)(n,e.CLASS_INPUT),t.appendChild(n),o.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector("."+e.CLASS_INPUT)}},{key:"destroy",value:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(43),a=n(1),s=n(49),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(){function e(t){o(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return r(e,[{key:"hide",value:function(){var e=this;this.wasLastActionShow=!1,this.hidingTimer=setTimeout(function(){!1===e.wasLastActionShow&&e.runLocalHooks("hide")},250)}},{key:"show",value:function(e){this.wasLastActionShow=!0,this.showDebounced(e)}},{key:"cancelHiding",value:function(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}},{key:"updateDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,i.debounce)(function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)},t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),e}();(0,a.mixin)(u,l.default),t.default=u},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(11),c=o(u),h=n(16),f=o(h),d=n(2),p=n(552),g=o(p),v=n(6),m=o(v),y=n(553),w=o(y),C=n(565),b=o(C),_=n(8),S=n(13),E=n(0),O=n(97);n(567),f.default.getSingleton().register("afterContextMenuDefaultOptions"),f.default.getSingleton().register("beforeContextMenuShow"),f.default.getSingleton().register("afterContextMenuShow"),f.default.getSingleton().register("afterContextMenuHide"),f.default.getSingleton().register("afterContextMenuExecute");var T=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new m.default(n),n.commandExecutor=new g.default(n.hot),n.itemsFactory=null,n.menu=null,n}return a(t,e),l(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[O.ROW_ABOVE,O.ROW_BELOW,O.SEPARATOR,O.COLUMN_LEFT,O.COLUMN_RIGHT,O.SEPARATOR,O.REMOVE_ROW,O.REMOVE_COLUMN,O.SEPARATOR,O.UNDO,O.REDO,O.SEPARATOR,O.READ_ONLY,O.SEPARATOR,O.ALIGNMENT]}}]),l(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new w.default(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().contextMenu,o={items:this.itemsFactory.getItems(n)};"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this);var r=function(){if(e.hot){e.hot.runHooks("afterContextMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var t=e.itemsFactory.getItems(n);e.menu=new b.default(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",t),e.menu.setMenuItems(t),e.menu.addLocalHook("beforeOpen",function(){return e.onMenuBeforeOpen()}),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.executeCommand).call.apply(t,[e].concat(o))}),e.addHook("afterOnCellContextMenu",function(t){return e.onAfterOnCellContextMenu(t)}),(0,d.arrayEach)(t,function(t){return e.commandExecutor.registerCommand(t.key,t)})}};this.callOnPluginsReady(function(){e.isPluginsReady?setTimeout(r,0):r()})}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt((0,S.pageY)(e),10)-(0,E.getWindowScrollTop)(),left:parseInt((0,S.pageX)(e),10)-(0,E.getWindowScrollLeft)()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,o=Array(n>1?n-1:0),r=1;n>r;r++)o[r-1]=arguments[r];(t=this.commandExecutor).execute.apply(t,[e].concat(o))}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,o=t.colHeaders,r=e.realTarget;this.close(),(0,E.hasClass)(r,"handsontableInput")||(e.preventDefault(),(0,S.stopPropagation)(e),(n||o||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(r)||(0,E.hasClass)(r,"current")&&(0,E.hasClass)(r,"wtBorder"))&&this.open(e))}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeContextMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);T.SEPARATOR={name:O.SEPARATOR},(0,_.registerPlugin)("contextMenu",T),t.default=T},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var n=void 0;return(0,a.arrayEach)(t,function(t){var o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1}),n}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(2),s=n(1);t.default=function(){function e(t){o(this,e),this.hot=t,this.commands={},this.commonCallback=null}return i(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,o=Array(n>1?n-1:0),i=1;n>i;i++)o[i-1]=arguments[i];var l=e.split(":"),u=l[0],c=2===l.length?l[1]:null,h=this.commands[u];if(!h)throw Error("Menu command '"+u+"' not exists.");if(c&&h.submenu&&(h=r(c,h.submenu.items)),!0!==h.disabled&&("function"!=typeof h.disabled||!0!==h.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(h,"submenu")){var f=[];"function"==typeof h.callback&&f.push(h.callback),"function"==typeof this.commonCallback&&f.push(this.commonCallback),o.unshift(l.join(":")),(0,a.arrayEach)(f,function(e){return e.apply(t.hot,o)})}}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(){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]:{},o=[],r=e;return r&&r.items?r=r.items:Array.isArray(r)||(r=t),(0,a.isObject)(r)?(0,a.objectEach)(r,function(e,t){var r=n["string"==typeof e?e:t];r||(r=e),(0,a.isObject)(e)?(0,a.extend)(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),o.push(r)}):(0,s.arrayEach)(r,function(e,t){var r=n[e];(r||0>l.ITEMS.indexOf(e))&&(r||(r={name:e,key:""+t}),(0,a.isObject)(e)&&(0,a.extend)(r,e),void 0===r.key&&(r.key=t),o.push(r))}),o}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(1),s=n(2),l=n(97);t.default=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return i(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,a.objectEach)(e,function(e,o){var r="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,r=l.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,n[o]=e,r=e.key):(n[e.key]=e,r=e.key),t.defaultOrderPattern.push(r)}),this.predefinedItems=n}},{key:"getItems",value:function(){return r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}]),e}()},function(e,t,n){"use strict";function o(){return{key:l,name:function(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:l+":left",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htLeft"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,r.align)(t,"horizontal","htLeft",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:l+":center",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htCenter"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,r.align)(t,"horizontal","htCenter",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:l+":right",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htRight"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,r.align)(t,"horizontal","htRight",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:l+":justify",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htJustify"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,r.align)(t,"horizontal","htJustify",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{name:i.KEY},{key:l+":top",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htTop"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,r.align)(t,"vertical","htTop",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:l+":middle",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htMiddle"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,r.align)(t,"vertical","htMiddle",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1},{key:l+":bottom",name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&-1!==o.indexOf("htBottom"))return!0})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,r.align)(t,"vertical","htBottom",function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),this.render()},disabled:!1}]}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var r=n(19),i=n(96),a=n(7),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),l=t.KEY="alignment"},function(e,t,n){"use strict";function o(){return{key:l,name:function(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(e,t){var n=t[0].start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;var t=r(e[0],3),n=t[0],o=t[1],a=t[2],s=[n,0,a,this.countCols()-1],l=s.join(",")===e.join(",");return 0>o||this.countCols()>=this.getSettings().maxCols||l}}}t.__esModule=!0,t.KEY=void 0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(19),a=n(7),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),l=t.KEY="clear_column"},function(e,t,n){"use strict";function o(){return{key:l,name:function(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(e,t){this.alter("insert_col",t[Math.max(t.length-1,0)].start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=r(e[0],3),n=t[0],o=t[1],a=t[2],s=[n,0,a,this.countCols()-1],l=s.join(",")===e.join(","),u=1===this.countCols();return 0>o||this.countCols()>=this.getSettings().maxCols||!u&&l},hidden:function(){return!this.getSettings().allowInsertColumn}}}t.__esModule=!0,t.KEY=void 0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(19),a=n(7),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),l=t.KEY="col_left"},function(e,t,n){"use strict";function o(){return{key:l,name:function(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(e,t){this.alter("insert_col",t[Math.max(t.length-1,0)].end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=r(e[0],3),n=t[0],o=t[1],a=t[2],s=[n,0,a,this.countCols()-1],l=s.join(",")===e.join(","),u=1===this.countCols();return 0>o||this.countCols()>=this.getSettings().maxCols||!u&&l},hidden:function(){return!this.getSettings().allowInsertColumn}}}t.__esModule=!0,t.KEY=void 0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(19),a=n(7),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),l=t.KEY="col_right"},function(e,t,n){"use strict";function o(){return{key:l,name:function(){var e=this,t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_READ_ONLY);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly})&&(t=(0,r.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,r.checkSelectionConsistency)(t,function(t,n){return e.getCellMeta(t,n).readOnly});(0,i.arrayEach)(t,function(t){t.forAll(function(t,o){e.setCellMeta(t,o,"readOnly",!n)})}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var r=n(19),i=n(2),a=n(7),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),l=t.KEY="make_read_only"},function(e,t,n){"use strict";function o(){return{key:a,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=t.KEY="redo"},function(e,t,n){"use strict";function o(){return{key:u,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=r(e[0],4),o=n[1],i=n[3];o-i!=0&&(t=1)}return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback:function(){this.alter("remove_col",(0,a.transformSelectionToColumnDistance)(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countCols();return!e||(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner()||!this.isColumnModificationAllowed()||!t)},hidden:function(){return!this.getSettings().allowRemoveColumn}}}t.__esModule=!0,t.KEY=void 0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(19),a=n(72),s=n(7),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),u=t.KEY="remove_col"},function(e,t,n){"use strict";function o(){return{key:u,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=r(e[0],3),o=n[0],i=n[2];o-i!=0&&(t=1)}return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback:function(){this.alter("remove_row",(0,a.transformSelectionToRowDistance)(this.getSelected()),null,"ContextMenu.removeRow")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countRows();return!e||(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner()||!t)},hidden:function(){return!this.getSettings().allowRemoveRow}}}t.__esModule=!0,t.KEY=void 0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(19),a=n(72),s=n(7),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),u=t.KEY="remove_row"},function(e,t,n){"use strict";function o(){return{key:s,name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(e,t){this.alter("insert_row",t[Math.max(t.length-1,0)].start.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,r.getValidSelection)(this)||this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var r=n(19),i=n(7),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),s=t.KEY="row_above"},function(e,t,n){"use strict";function o(){return{key:s,name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(e,t){this.alter("insert_row",t[Math.max(t.length-1,0)].end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,r.getValidSelection)(this)||this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var r=n(19),i=n(7),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),s=t.KEY="row_below"},function(e,t,n){"use strict";function o(){return{key:a,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}t.__esModule=!0,t.KEY=void 0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=t.KEY="undo"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(90),s=o(a),l=n(0),u=n(2),c=n(566),h=o(c),f=n(6),d=o(f),p=n(1),g=n(10),v=n(43),m=n(19),y=n(21),w=n(49),C=o(w),b=n(97),_=n(13),S=215,E=function(){function e(t,n){r(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:S},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 i(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e){this.offset[e]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},{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,v.debounce)(function(t){return e.openSubMenu(t)},300),n=this.options.minWidth||S,o=(0,u.arrayFilter)(this.menuItems,function(t){return(0,m.isItemHidden)(t,e.hot)});o=(0,m.filterSeparators)(o,b.SEPARATOR);var r={data:o,colHeaders:!1,autoColumnSize:!0,modifyColWidth:function(e){return(0,g.isDefined)(e)&&n>e?n:e},autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,o,r,i,a){return e.menuItemRenderer(t,n,o,r,i,a)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,o){e.isAllSubMenusClosed()?t(o.row):e.openSubMenu(o.row)},rowHeights:function(e){return o[e].name===b.SEPARATOR?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new s.default(this.container,r),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(),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,m.hasSubMenu)(n))return!1;var o=this.hotMenu.getSourceDataAtRow(t),r=new e(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0});return r.setMenuItems(o.submenu.items),r.open(),r.setPosition(n.getBoundingClientRect()),this.hotSubMenus[o.key]=r,r}},{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,u.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(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelectedLast()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==b.SEPARATOR){var n=this.hot.getSelectedRange(),o=n?(0,m.normalizeSelection)(n):[],r=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(r=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),r&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new h.default(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{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=t+"px"}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top=t+"px"}},{key:"setPositionOnRightOfCursor",value:function(e){var t=void 0;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left=t+"px"}},{key:"setPositionOnLeftOfCursor",value:function(e){this.container.style.left=this.offset.left+e.left-this.container.offsetWidth+(0,l.getScrollbarWidth)()+4+"px"}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,m.isSeparator)(e)||(0,m.isDisabled)(e)||(0,m.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,m.isSeparator)(t)||(0,m.isDisabled)(t)||(0,m.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&((0,m.isSeparator)(o)||(0,m.isDisabled)(o)||(0,m.isSelectionDisabled)(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,o=0>n?null:this.hotMenu.getCell(n,t);o&&((0,m.isSeparator)(o)||(0,m.isDisabled)(o)||(0,m.isSelectionDisabled)(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,o,r,i){var a=this,s=e.getSourceDataAtRow(n),u=document.createElement("div"),c=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),(0,l.empty)(t),(0,l.addClass)(u,"htItemWrapper"),t.appendChild(u),!function(e){return RegExp(b.SEPARATOR,"i").test(e.name)}(s)?"function"==typeof s.renderer?((0,l.addClass)(t,"htCustomMenuRenderer"),t.appendChild(s.renderer(e,u,n,o,r,h))):(0,l.fastInnerHTML)(u,h):(0,l.addClass)(t,"htSeparator"),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(a.hot)}(s)?c(s)?((0,l.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):!function(e){return(0,p.hasOwnProperty)(e,"submenu")}(s)?((0,l.removeClass)(t,"htSubmenu"),(0,l.removeClass)(t,"htDisabled"),c(s)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,l.addClass)(t,"htSubmenu"),c(s)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):((0,l.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}))}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e,n=void 0;return t?((0,v.isFunction)(t)&&(t=t.call(this.hot),t=null===t||(0,g.isUndefined)(t)?"":""+t),t=t.replace(/[^A-z0-9]/g,"_"),t=this.options.className+"Sub_"+t,n=document.querySelector("."+this.options.className+"."+t)):n=document.querySelector("."+this.options.className),n||(n=document.createElement("div"),(0,l.addClass)(n,"htMenu "+this.options.className),t&&(0,l.addClass)(n,t),document.getElementsByTagName("body")[0].appendChild(n)),n}},{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:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelectedLast(),n=!1;switch(this.keyEvent=!0,e.keyCode){case y.KEY_CODES.ESCAPE:this.close(),n=!0;break;case y.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case y.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case y.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case y.KEY_CODES.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case y.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,_.stopImmediatePropagation)(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,o=parseInt(t.width,10),r=(0,u.arrayReduce)(e,function(e,t){return e+(t.name===b.SEPARATOR?1:26)},0);n.width=o+22+"px",n.height=r+4+"px",t.height=n.height}},{key:"onAfterSelection",value:function(e,t,n,o,r){!1===this.keyEvent&&(r.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&(0,l.isChildOf)(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!(0,l.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!(0,l.isChildOf)(e.target,".htMenu")&&(0,l.isChildOf)(e.target,document)&&this.close(!0))}}]),e}();(0,p.mixin)(E,C.default),t.default=E},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=n(13);t.default=function(){function e(t){o(this,e);var n=(0,i.getWindowScrollTop)(),r=(0,i.getWindowScrollLeft)(),s=void 0,l=void 0,u=void 0,c=void 0,h=void 0,f=void 0;this.type=this.getSourceType(t),"literal"===this.type?(s=parseInt(t.top,10),u=parseInt(t.left,10),h=t.height||0,f=t.width||0,l=s,c=u,s+=n,u+=r):"event"===this.type&&(s=parseInt((0,a.pageY)(t),10),u=parseInt((0,a.pageX)(t),10),h=t.target.clientHeight,f=t.target.clientWidth,l=s-n,c=u-r),this.top=s,this.topRelative=l,this.left=u,this.leftRelative=c,this.scrollTop=n,this.scrollLeft=r,this.cellHeight=h,this.cellWidth=f}return r(e,[{key:"getSourceType",value:function(e){var t="literal";return e instanceof Event&&(t="event"),t}},{key:"fitsAbove",value:function(e){return this.topRelative>=e.offsetHeight}},{key:"fitsBelow",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerHeight)>=this.topRelative+e.offsetHeight}},{key:"fitsOnRight",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerWidth)>=this.leftRelative+this.cellWidth+e.offsetWidth}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}()},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},c=n(11),h=o(c),f=n(16),d=o(f),p=n(438),g=o(p),v=n(4),m=n(0),y=n(2),w=n(5),C=n(8),b=n(569),_=o(b),S=n(570),E=o(S),O=n(571),T=o(O),k=n(573);n(574),d.default.getSingleton().register("afterCopyLimit"),d.default.getSingleton().register("modifyCopyableRange"),d.default.getSingleton().register("beforeCut"),d.default.getSingleton().register("afterCut"),d.default.getSingleton().register("beforePaste"),d.default.getSingleton().register("afterPaste"),d.default.getSingleton().register("beforeCopy"),d.default.getSingleton().register("afterCopy");var R=1e3,M=1e3,D=new WeakMap,A=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.columnsLimit=M,n.copyableRanges=[],n.pasteMode="overwrite",n.rowsLimit=R,D.set(n,{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),n}return a(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings();D.get(this).isFragmentSelectionEnabled=n.fragmentSelection,"object"===s(n.copyPaste)&&(this.pasteMode=n.copyPaste.pasteMode||this.pasteMode,this.rowsLimit=n.copyPaste.rowsLimit||this.rowsLimit,this.columnsLimit=n.copyPaste.columnsLimit||this.columnsLimit),this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterSelectionEnd",function(){return e.onAfterSelectionEnd()}),this.focusableElement=(0,k.createElement)(),this.focusableElement.addLocalHook("copy",function(t){return e.onCopy(t)}).addLocalHook("cut",function(t){return e.onCut(t)}).addLocalHook("paste",function(t){return e.onPaste(t)}),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,k.destroyElement)(this.focusableElement),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o=t.row,r=t.col,i=n.row,a=n.col,s=Math.min(i,o+this.rowsLimit-1),l=Math.min(a,r+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:o,startCol:r,endRow:s,endCol:l}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),i===s&&a===l||this.hot.runHooks("afterCopyLimit",i-o+1,a-r+1,this.rowsLimit,this.columnsLimit)}}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],o=[],r=[];return(0,y.arrayEach)(e,function(e){(0,w.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,w.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,y.arrayEach)(o,function(e){var o=[];(0,y.arrayEach)(r,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),g.default.stringify(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],o=[],r=[];return(0,y.arrayEach)(e,function(e){(0,w.rangeEach)(e.startRow,e.endRow,function(e){-1===o.indexOf(e)&&o.push(e)}),(0,w.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,y.arrayEach)(o,function(e){var o=[];(0,y.arrayEach)(r,function(n){o.push(t.hot.getCopyableData(e,n))}),n.push(o)}),n}},{key:"copy",value:function(){D.get(this).isTriggeredByCopy=!0,this.focusableElement.focus(),document.execCommand("copy")}},{key:"cut",value:function(){D.get(this).isTriggeredByCut=!0,this.focusableElement.focus(),document.execCommand("cut")}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new T.default;t.clipboardData.setData("text/plain",e),this.onPaste(t)}},{key:"onCopy",value:function(e){var t=D.get(this);if(this.hot.isListening()||t.isTriggeredByCopy){var n=this.hot.getActiveEditor();if(!n||!n.isOpened()){this.setCopyableText(),t.isTriggeredByCopy=!1;var o=this.getRangedData(this.copyableRanges),r=!!this.hot.runHooks("beforeCopy",o,this.copyableRanges),i="";r&&(i=g.default.stringify(o),e&&e.clipboardData?e.clipboardData.setData("text/plain",i):"undefined"==typeof ClipboardEvent&&window.clipboardData.setData("Text",i),this.hot.runHooks("afterCopy",o,this.copyableRanges)),e.preventDefault()}}}},{key:"onCut",value:function(e){var t=D.get(this);if(this.hot.isListening()||t.isTriggeredByCut){var n=this.hot.getActiveEditor();if(!n||!n.isOpened()){this.setCopyableText(),t.isTriggeredByCut=!1;var o=this.getRangedData(this.copyableRanges),r=!!this.hot.runHooks("beforeCut",o,this.copyableRanges),i=void 0;r&&(i=g.default.stringify(o),e&&e.clipboardData?e.clipboardData.setData("text/plain",i):"undefined"==typeof ClipboardEvent&&window.clipboardData.setData("Text",i),this.hot.emptySelectedCells(),this.hot.runHooks("afterCut",o,this.copyableRanges)),e.preventDefault()}}}},{key:"onPaste",value:function(e){var t=this;if(this.hot.isListening()){var n=this.hot.getActiveEditor();if(!n||!n.isOpened()){e&&e.preventDefault&&e.preventDefault();var o=void 0;e&&void 0!==e.clipboardData?o=e.clipboardData.getData("text/plain"):"undefined"==typeof ClipboardEvent&&void 0!==window.clipboardData&&(o=window.clipboardData.getData("Text"));var r=g.default.parse(o);if(0!==r.length){if(!!this.hot.runHooks("beforePaste",r,this.copyableRanges)){var i=this.hot.getSelectedLast(),a=new v.CellCoords(i[0],i[1]),s=new v.CellCoords(i[2],i[3]),l=new v.CellRange(a,a,s),u=l.getTopLeftCorner(),c=l.getBottomRightCorner(),h=u,f=new v.CellCoords(Math.max(c.row,r.length-1+u.row),Math.max(c.col,r[0].length-1+u.col)),d=s.row-a.row>=r.length-1,p=s.col-a.col>=r[0].length-1;this.hot.addHookOnce("afterChange",function(e){var n=e?e.length:0;if(n){var o={row:0,col:0},r=-1;(0,y.arrayEach)(e,function(t,i){var a=n>i+1?e[i+1]:null;a&&(d||(o.row+=Math.max(a[0]-t[0]-1,0)),!p&&t[1]>r&&(r=t[1],o.col+=Math.max(a[1]-t[1]-1,0)))}),t.hot.selectCell(h.row,h.col,f.row+o.row,f.col+o.col)}}),this.hot.populateFromArray(h.row,h.col,r,f.row,f.col,"CopyPaste.paste",this.pasteMode),this.hot.runHooks("afterPaste",r,this.copyableRanges)}}}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,_.default)(this),(0,E.default)(this))}},{key:"onAfterSelectionEnd",value:function(){var e=D.get(this),t=e.isFragmentSelectionEnabled,n=this.hot.getActiveEditor();if(!n||!n.isOpened()){var o=n?n.TEXTAREA:void 0;o?this.focusableElement.setFocusableElement(o):this.focusableElement.useSecondaryElement(),t&&this.focusableElement.getFocusableElement()!==document.activeElement&&(0,m.getSelectionText)()||(this.setCopyableText(),this.focusableElement.focus())}}},{key:"destroy",value:function(){this.focusableElement&&((0,k.destroyElement)(this.focusableElement),this.focusableElement=null),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,C.registerPlugin)("CopyPaste",A),t.default=A},function(e,t,n){"use strict";function o(e){return{key:"copy",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY)},callback:function(){e.copy()},disabled:function(){var e=this.getSelected();return!e||e.length>1},hidden:!1}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r)},function(e,t,n){"use strict";function o(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CUT)},callback:function(){e.cut()},disabled:function(){var e=this.getSelected();return!e||e.length>1},hidden:!1}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=n(572),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function e(){o(this,e),this.clipboardData=new i.default}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(){o(this,e),this.data={}}return r(e,[{key:"setData",value:function(e,t){this.data[e]=t}},{key:"getData",value:function(e){return this.data[e]||void 0}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=new v;return m+=1,e}function a(e){e.eventManager.clear()}function s(e,t,n){e.addEventListener(t,"copy",y("copy",n)),e.addEventListener(t,"cut",y("cut",n)),e.addEventListener(t,"paste",y("paste",n))}function l(){if(w)return w.parentElement||document.body.appendChild(w),w;var e=document.createElement("textarea");return w=e,e.id="HandsontableCopyPaste",e.className="copyPaste",e.tabIndex=-1,e.autocomplete="off",e.wrap="hard",e.value=" ",document.body.appendChild(e),e}function u(e){e instanceof v&&(m>0&&(m-=1),a(e),m>0||(m=0,w&&w.parentNode&&(w.parentNode.removeChild(w),w=null),e.mainElement=null))}t.__esModule=!0,t.destroyElement=t.deactivateElement=t.createElement=void 0;var c=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),h=n(6),f=o(h),d=n(49),p=o(d),g=n(1),v=function(){function e(){r(this,e),this.mainElement=null,this.eventManager=new f.default(this),this.listenersCount=new WeakSet}return c(e,[{key:"useSecondaryElement",value:function(){var e=l();this.listenersCount.has(e)||(this.listenersCount.add(e),s(this.eventManager,e,this)),this.mainElement=e}},{key:"setFocusableElement",value:function(e){this.listenersCount.has(e)||(this.listenersCount.add(e),s(this.eventManager,e,this)),this.mainElement=e}},{key:"getFocusableElement",value:function(){return this.mainElement}},{key:"focus",value:function(){this.mainElement.value=" ",this.mainElement.select()}}]),e}();(0,g.mixin)(v,p.default);var m=0,y=function(e,t){return function(n){return t.runLocalHooks(e,n)}},w=void 0;t.createElement=i,t.deactivateElement=a,t.destroyElement=u},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=n(8),f=n(1),d=n(5),p=n(2),g=n(4),v=n(7),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(v),y=n(576),w=n(50),C=n(445),b=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.savedBorders=[],n}return i(t,e),s(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,t){var n=this,o=["top","right","bottom","left"],r=t?Object.keys(t):o,i=(0,C.detectSelectionType)(e),s=(0,C.normalizeSelectionFactory)(i);(0,p.arrayEach)(e,function(e){for(var o=s(e),i=a(o,4),l=i[0],u=i[1],c=i[2],h=i[3],f=l;c>=f;f+=1)!function(e){for(var o=u;h>=o;o+=1)!function(o){(0,p.arrayEach)(r,function(r){n.prepareBorderFromCustomAdded(e,o,t,r)})}(o)}(f)})}},{key:"getBorders",value:function(e){var t=this;if(!Array.isArray(e))return this.savedBorders;var n=(0,C.detectSelectionType)(e),o=(0,C.normalizeSelectionFactory)(n),r=[];return(0,p.arrayEach)(e,function(e){for(var n=o(e),i=a(n,4),s=i[0],l=i[1],u=i[2],c=i[3],h=s;u>=h;h+=1)!function(e){for(var n=l;c>=n;n+=1)!function(n){(0,p.arrayEach)(t.savedBorders,function(t){t.row===e&&t.col===n&&r.push(t)})}(n)}(h)}),r}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):((0,p.arrayEach)(this.savedBorders,function(e){t.clearBordersFromSelectionSettings(e.id),t.clearNullCellRange(),t.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}},{key:"insertBorderIntoSettings",value:function(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);var n={row:e.row,col:e.col},o=new g.CellRange(n,n,n);this.checkCustomSelections(e,o,t)||(this.hot.selection.highlight.addCustomSelection({border:e,cellRange:o}),this.hot.view.wt.draw(!0))}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,o){var r=(0,w.createEmptyBorders)(e,t);n&&(r=(0,w.extendDefaultBorder)(r,n),(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(e){if(r.id===e.settings.id)return Object.assign(e.settings,n),r=e.settings,!1})),this.hot.setCellMeta(e,t,"borders",r),this.insertBorderIntoSettings(r,o)}},{key:"prepareBorderFromCustomAddedRange",value:function(e){var t=this,n=e.range;(0,d.rangeEach)(n.from.row,n.to.row,function(o){(0,d.rangeEach)(n.from.col,n.to.col,function(r){var i=(0,w.createEmptyBorders)(o,r),a=0;o===n.from.row&&(a+=1,(0,f.hasOwnProperty)(e,"top")&&(i.top=e.top)),o===n.to.row&&(a+=1,(0,f.hasOwnProperty)(e,"bottom")&&(i.bottom=e.bottom)),r===n.from.col&&(a+=1,(0,f.hasOwnProperty)(e,"left")&&(i.left=e.left)),r===n.to.col&&(a+=1,(0,f.hasOwnProperty)(e,"right")&&(i.right=e.right)),a>0&&(t.hot.setCellMeta(o,r,"borders",i),t.insertBorderIntoSettings(i))})})}},{key:"removeAllBorders",value:function(e,t){var n=(0,w.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,o){var r=this.hot.getCellMeta(e,t).borders;if(r&&void 0!==r.border||(r=(0,w.createEmptyBorders)(e,t)),o){r[n]=(0,w.createSingleEmptyBorder)();if(4===this.countHide(r))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(r,n,o)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",r)}}else{r[n]=(0,w.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(r,n,o)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",r)}}},{key:"prepareBorder",value:function(e,t,n){var o=this;(0,p.arrayEach)(e,function(e){var r=e.start,i=e.end;if(r.row===i.row&&r.col===i.col)"noBorders"===t?o.removeAllBorders(r.row,r.col):o.setBorder(r.row,r.col,t,n);else switch(t){case"noBorders":(0,d.rangeEach)(r.col,i.col,function(e){(0,d.rangeEach)(r.row,i.row,function(t){o.removeAllBorders(t,e)})});break;case"top":(0,d.rangeEach)(r.col,i.col,function(e){o.setBorder(r.row,e,t,n)});break;case"right":(0,d.rangeEach)(r.row,i.row,function(e){o.setBorder(e,i.col,t,n)});break;case"bottom":(0,d.rangeEach)(r.col,i.col,function(e){o.setBorder(i.row,e,t,n)});break;case"left":(0,d.rangeEach)(r.row,i.row,function(e){o.setBorder(e,r.col,t,n)})}})}},{key:"createCustomBorders",value:function(e){var t=this;(0,p.arrayEach)(e,function(e){e.range?t.prepareBorderFromCustomAddedRange(e):t.prepareBorderFromCustomAdded(e.row,e.col,e)})}},{key:"countHide",value:function(e){var t=Object.values(e);return(0,p.arrayReduce)(t,function(e,t){var n=e;return t.hide&&(n+=1),n},0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=(0,p.arrayMap)(this.hot.selection.highlight.customSelections,function(e){return e.settings.id}).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear(),this.hot.view.wt.draw(!0)}},{key:"clearNullCellRange",value:function(){var e=this;(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections.splice(n,1),!1})}},{key:"hideBorders",value:function(){var e=this;(0,p.arrayEach)(this.savedBorders,function(t){e.clearBordersFromSelectionSettings(t.id)})}},{key:"spliceBorder",value:function(e){var t=(0,p.arrayMap)(this.savedBorders,function(e){return e.id}).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),n=!0):(0,p.arrayEach)(this.savedBorders,function(o,r){if(e.id===o.id)return t.savedBorders[r]=e,n=!0,!1}),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var o=!1;return(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(r){if(e.id===r.settings.id)return(0,f.objectEach)(r.instanceBorders,function(e){e.toggleHiddenClass(t,n)}),o=!0,!1}),o}},{key:"checkCustomSelections",value:function(e,t,n){var o=this.countHide(e),r=!1;return 4===o?(this.removeAllBorders(e.row,e.col),this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),r=!0):(0,p.arrayEach)(this.hot.selection.highlight.customSelections,function(o){if(e.id===o.settings.id)return o.cellRange=t,n&&(0,f.objectEach)(o.instanceBorders,function(t){t.changeBorderStyle(n,e)}),r=!0,!1}),r}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;Array.isArray(e)?(e.length||(this.savedBorders=e),this.createCustomBorders(e)):void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"onAfterContextMenuDefaultOptions",value:function(e){this.hot.getSettings().customBorders&&e.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(m.CONTEXTMENU_ITEMS_BORDERS)},disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[(0,y.top)(this),(0,y.right)(this),(0,y.bottom)(this),(0,y.left)(this),(0,y.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,h.registerPlugin)("customBorders",b),t.default=b},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.top=t.right=t.noBorders=t.left=t.bottom=void 0;var r=n(577),i=o(r),a=n(578),s=o(a),l=n(579),u=o(l),c=n(580),h=o(c),f=n(581),d=o(f);t.bottom=i.default,t.left=s.default,t.noBorders=u.default,t.right=h.default,t.top=d.default},function(e,t,n){"use strict";function o(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,a.checkSelectionBorders)(this,"bottom")&&(e=(0,a.markSelected)(e)),e},callback:function(t,n){var o=(0,a.checkSelectionBorders)(this,"bottom");e.prepareBorder(n,"bottom",o)}}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(50)},function(e,t,n){"use strict";function o(e){return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,a.checkSelectionBorders)(this,"left")&&(e=(0,a.markSelected)(e)),e},callback:function(t,n){var o=(0,a.checkSelectionBorders)(this,"left");e.prepareBorder(n,"left",o)}}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(50)},function(e,t,n){"use strict";function o(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!(0,a.checkSelectionBorders)(this)}}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(50)},function(e,t,n){"use strict";function o(e){return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,a.checkSelectionBorders)(this,"right")&&(e=(0,a.markSelected)(e)),e},callback:function(t,n){var o=(0,a.checkSelectionBorders)(this,"right");e.prepareBorder(n,"right",o)}}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(50)},function(e,t,n){"use strict";function o(e){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,a.checkSelectionBorders)(this,"top")&&(e=(0,a.markSelected)(e)),e},callback:function(t,n){var o=(0,a.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",o)}}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(50)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=o(u),h=n(6),f=o(h),d=n(8),p=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new f.default(n),n.boundaries=null,n.callback=null,n.listening=!1,n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",function(){return e.setupListening()}),this.addHook("afterOnCellCornerMouseDown",function(){return e.setupListening()}),this.registerEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"setBoundaries",value:function(e){this.boundaries=e}},{key:"setCallback",value:function(e){this.callback=e}},{key:"check",value:function(e,t){var n=0,o=0;this.boundaries.top>t?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),this.boundaries.left>e?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document,"mousemove",function(t){return e.onMouseMove(t)})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(){var e=this.hot.view.wt.wtTable.holder;e!==window&&(this.setBoundaries(e.getBoundingClientRect()),this.setCallback(function(t,n){0>t?e.scrollLeft-=50:t>0&&(e.scrollLeft+=50),0>n?e.scrollTop-=20:n>0&&(e.scrollTop+=20)}),this.listening=!0)}},{key:"onMouseMove",value:function(e){this.listening&&this.check(e.clientX,e.clientY)}},{key:"onMouseUp",value:function(){this.listening=!1}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,d.registerPlugin)("dragToScroll",p),t.default=p},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=o(u),h=n(8),f=n(2),d=n(584),p=o(d),g=n(585),v=o(g);n(586);var m=new WeakMap,y=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return m.set(n,{moveByFreeze:!1,afterFirstUse:!1}),n.frozenColumnsBasePositions=[],n.manualColumnMovePlugin=void 0,n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return e.addContextMenuEntry(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),this.addHook("beforeColumnMove",function(t,n){return e.onBeforeColumnMove(t,n)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=m.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft!==this.hot.countCols()&&e>n.fixedColumnsLeft-1&&(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft),n.fixedColumnsLeft+=1)}},{key:"unfreezeColumn",value:function(e){var t=m.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft>0&&n.fixedColumnsLeft-1>=e){var o=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft-=1,this.getMovePlugin().moveColumn(e,o+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t=this.getMovePlugin(),n=this.hot.getSettings(),o=n.fixedColumnsLeft,r=t.columnsMapper.getValueByIndex(o),i=void 0;if(null===this.frozenColumnsBasePositions[e]||void 0===this.frozenColumnsBasePositions[e])for(i=t.columnsMapper.getValueByIndex(e);null!==r&&i>=r;)o+=1,r=t.columnsMapper.getValueByIndex(o);else{for(i=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;null!==r&&i>=r;)o+=1,r=t.columnsMapper.getValueByIndex(o);o=r}return o-1}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,p.default)(this),(0,v.default)(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=m.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var o=this.hot.getSettings().fixedColumnsLeft,r=o>t;if(r||(0,f.arrayEach)(e,function(e){if(o>e)return r=!0,!1}),r)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,h.registerPlugin)("manualColumnFreeze",y),t.default=y},function(e,t,n){"use strict";function o(e){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(t,n){var o=r(n,1);e.freezeColumn(o[0].start.col),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.length>1?t=!0:e[0].from.col===e[0].to.col&&e[0].from.col>this.getSettings().fixedColumnsLeft-1||(t=!0),t}}}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(7),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i)},function(e,t,n){"use strict";function o(e){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(t,n){var o=r(n,1);e.unfreezeColumn(o[0].start.col),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:e.length>1?t=!0:e[0].from.col===e[0].to.col&&e[0].from.col<this.getSettings().fixedColumnsLeft||(t=!0),t}}}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var i=n(7),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i)},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},c=n(11),h=o(c),f=n(16),d=o(f),p=n(2),g=n(0),v=n(5),m=n(6),y=o(m),w=n(8),C=n(588),b=o(C),_=n(589),S=o(_),E=n(590),O=o(E);n(591),d.default.getSingleton().register("beforeColumnMove"),d.default.getSingleton().register("afterColumnMove"),d.default.getSingleton().register("unmodifyCol");var T=new WeakMap,k=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return T.set(n,{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),n.removedColumns=[],n.columnsMapper=new b.default(n),n.eventManager=new y.default(n),n.backlight=new S.default(e),n.guideline=new O.default(e),n}return s(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,r){return e.onBeforeOnCellMouseOver(t,n,o,r)}),this.addHook("afterScrollVertically",function(){return e.onAfterScrollVertically()}),this.addHook("modifyCol",function(t,n){return e.onModifyCol(t,n)}),this.addHook("beforeRemoveCol",function(t,n){return e.onBeforeRemoveCol(t,n)}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol()}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.registerEvents(),(0,g.addClass)(this.hot.rootElement,"ht__manualColumnMove"),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),(0,g.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=this,o=[].concat(r(e)),i=T.get(this),a=this.hot.runHooks("beforeColumnMove",o,t);i.disallowMoving=!a,!1!==a&&((0,p.arrayEach)(e,function(e,t,o){o[t]=n.columnsMapper.getValueByIndex(e)}),(0,p.arrayEach)(e,function(e,o){var r=n.columnsMapper.getIndexByValue(e);r!==t&&n.columnsMapper.moveColumn(r,t+o)}),this.columnsMapper.clearNull()),this.hot.runHooks("afterColumnMove",o,t)}},{key:"changeSelection",value:function(e,t){this.hot.selectColumns(e,t)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,o=e;t>o;o++){var r=0;r=0>o?this.hot.view.wt.wtViewport.getRowHeaderWidth()||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(o)||0,n+=r}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,v.rangeEach)(e,t,function(e){n.push(e)}),n}},{key:"refreshPositions",value:function(){var e=T.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),o=this.hot.view.wt.wtTable,r=this.hot.view.wt.wtOverlays.scrollableElement,i="number"==typeof r.scrollX?r.scrollX:r.scrollLeft,a=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),s=e.target.eventPageX-(e.rootElementOffset-(void 0===r.scrollX?i:0)),l=o.hider.offsetWidth,u=o.TBODY.offsetLeft,c=this.backlight.getOffset().left,h=this.backlight.getSize().width,f=0;if(e.target.eventPageX>e.rootElementOffset+o.holder.offsetWidth+i&&e.countCols>e.coordsColumn&&(e.coordsColumn+=1),e.hasRowHeaders&&(f=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(a+=i),a+=f,0>e.coordsColumn)e.target.col=e.fixedColumns>0?0:t>0?t-1:t;else if(s<e.target.TD.offsetWidth/2+a)(e.target.col=e.coordsColumn)>t||e.fixedColumns>e.target.col||0>=t||this.hot.scrollViewportTo(void 0,t-1);else{var d=e.countCols>e.coordsColumn?e.coordsColumn:e.countCols-1;e.target.col=d+1,a+=e.target.TD.offsetWidth,e.target.col>n&&e.countCols>n&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}e.target.col>t||e.fixedColumns>e.target.col||0>=t||this.hot.scrollViewportTo(void 0,t-1);var p=s,g=a;l>s+h+c?u+f>s+c&&(p=u+f+Math.abs(c)):p=l-h-c,l-1>a?0===g?g=1:void 0!==r.scrollX&&e.fixedColumns>e.coordsColumn&&(g-=e.rootElementOffset>r.scrollX?0:e.rootElementOffset):g=l-1,this.backlight.setPosition(null,p),this.guideline.setPosition(null,g)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(e>t){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var o=e-1,r=[];(0,p.arrayEach)(this.columnsMapper._arrayMap,function(e,t){e>o&&r.push(t)}),this.columnsMapper.removeItems(r)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var r=this.hot.view.wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),a=this.hot.getSelectedRangeLast(),s=T.get(this),l=e.realTarget.className.indexOf("sortAction")>-1;if(!a||!i||s.pressed||0!==e.button||l)return s.pressed=!1,s.columnsToMove.length=0,void(0,g.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var h=a.from,f=a.to,d=Math.min(h.col,f.col),p=Math.max(h.col,f.col);if(0<=t.row||t.col<d||p<t.col)(0,g.removeClass)(this.hot.rootElement,"after-selection--columns"),s.pressed=!1,s.columnsToMove.length=0;else{o.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.coordsColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(d,p),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumns=this.hot.getSettings().fixedColumnsLeft,s.rootElementOffset=(0,g.offset)(this.hot.rootElement).left;var v=s.hasRowHeaders?-1:0,m=r.holder.scrollTop+r.getColumnHeaderHeight(0)+1,y=s.fixedColumns>t.col,w=this.hot.view.wt.wtOverlays.scrollableElement,C=w.scrollX?w.scrollX-s.rootElementOffset:0,b=e.layerX-(y?C:0),_=Math.abs(this.getColumnsWidth(d,t.col)+b);this.backlight.setPosition(m,this.getColumnsWidth(v,d)+_),this.backlight.setSize(this.getColumnsWidth(d,p+1),r.hider.offsetHeight-m),this.backlight.setOffset(null,-1*_),(0,g.addClass)(this.hot.rootElement,"on-moving--columns")}}},{key:"onMouseMove",value:function(e){var t=T.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var r=this.hot.getSelectedRangeLast(),i=T.get(this);r&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?(0,g.removeClass)(this.hot.rootElement,"show-ui"):(0,g.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,i.coordsColumn=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=T.get(this);if(e.coordsColumn=void 0,e.pressed=!1,e.backlightWidth=0,(0,g.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.isSelectedByColumnHeader()&&(0,g.addClass)(this.hot.rootElement,"after-selection--columns"),e.columnsToMove.length>=1&&void 0!==e.target.col&&-1>=e.columnsToMove.indexOf(e.target.col)){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){this.changeSelection(this.columnsMapper.getIndexByValue(e.columnsToMove[0]),this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]))}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1,n=e.holder.scrollTop,o=t+n;this.backlight.setPosition(o),this.backlight.setSize(null,e.hider.offsetHeight-o)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&(0,v.rangeEach)(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})}},{key:"onAfterRemoveCol",value:function(){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){var n=e;if(t!==this.pluginName){var o=this.columnsMapper.getValueByIndex(n);n=null===o?n:o}return n}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,w.registerPlugin)("ManualColumnMove",k),t.default=k},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(95),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(2),l=n(1),u=n(5),c=function(){function e(t){o(this,e),this.manualColumnMove=t}return r(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,s.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,l.mixin)(c,a.default),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=n(449),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"build",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=n(449),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"build",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),t}(u.default)},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=o(u),h=n(0),f=n(6),d=o(f),p=n(13),g=n(2),v=n(5),m=n(8),y=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentCol=null,n.selectedCols=[],n.currentWidth=null,n.newSize=null,n.startY=null,n.startWidth=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new d.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualColumnWidths=[],(0,h.addClass)(n.handle,"manualColumnResizer"),(0,h.addClass)(n.guide,"manualColumnResizerGuide"),n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var n=this.hot.getSettings().manualColumnResize,o=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(t,n){return e.onModifyColWidth(t,n)}),this.addHook("beforeStretchingColumnWidth",function(t,n){return e.onBeforeStretchingColumnWidth(t,n)}),this.addHook("beforeColumnResize",function(t,n,o){return e.onBeforeColumnResize(t,n,o)}),this.manualColumnWidths=void 0!==o?o:Array.isArray(n)?n:[],this.bindEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).col,o=(0,h.outerHeight)(this.currentTH);if(n>=0){var r=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByColumnHeader()){var i=this.hot.getSelectedRangeLast(),a=i.from,s=i.to,l=a.col,u=s.col;u>l||(l=s.col,u=a.col),l>this.currentCol||this.currentCol>u?this.selectedCols.push(this.currentCol):(0,v.rangeEach)(l,u,function(e){return t.selectedCols.push(e)})}else this.selectedCols.push(this.currentCol);this.startOffset=r.left-6,this.startWidth=parseInt(r.width,10),this.handle.style.top=r.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=o+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left=this.startOffset+this.currentWidth+"px"}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top=t+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=n-e+"px",this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e!==this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var r=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==r&&(e.newSize=r),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};if(this.dblclick>=2){this.selectedCols.length>1?((0,g.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,g.arrayEach)(this.selectedCols,function(e){n(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=(0,p.pageX)(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+((0,p.pageX)(e)-this.startX),(0,g.arrayEach)(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){e.hot.runHooks("beforeColumnResize",n,e.newSize,!1),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth){this.selectedCols.length>1?((0,g.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,g.arrayEach)(this.selectedCols,function(e){n(e,!0)})}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(){return e.onMouseUp()})}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20);return this.manualColumnWidths[this.hot.runHooks("modifyCol",e)]=n,n}},{key:"clearManualSize",value:function(e){this.manualColumnWidths[this.hot.runHooks("modifyCol",e)]=void 0}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var o=this.hot.runHooks("modifyCol",t),r=this.manualColumnWidths[o];this.hot.getSettings().manualColumnResize&&r&&(n=r)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}]),t}(c.default);(0,m.registerPlugin)("manualColumnResize",y),t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},c=n(11),h=o(c),f=n(16),d=o(f),p=n(2),g=n(0),v=n(5),m=n(6),y=o(m),w=n(8),C=n(594),b=o(C),_=n(595),S=o(_),E=n(596),O=o(E);n(597),d.default.getSingleton().register("beforeRowMove"),d.default.getSingleton().register("afterRowMove"),d.default.getSingleton().register("unmodifyRow");var T=new WeakMap,k=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return T.set(n,{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),n.removedRows=[],n.rowsMapper=new b.default(n),n.eventManager=new y.default(n),n.backlight=new S.default(e),n.guideline=new O.default(e),n}return s(t,e),l(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,r){return e.onBeforeOnCellMouseOver(t,n,o,r)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow()}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.registerEvents(),(0,g.addClass)(this.hot.rootElement,"ht__manualRowMove"),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),(0,g.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=this,o=[].concat(r(e)),i=T.get(this);i.disallowMoving=!1===this.hot.runHooks("beforeRowMove",o,t),i.disallowMoving||((0,p.arrayEach)(e,function(e,t,o){o[t]=n.rowsMapper.getValueByIndex(e)}),(0,p.arrayEach)(e,function(e,o){var r=n.rowsMapper.getIndexByValue(e);r!==t&&n.rowsMapper.moveRow(r,t+o)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",o,t)}},{key:"changeSelection",value:function(e,t){this.hot.selectRows(e,t)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,o=e;t>o;o++){n+=this.hot.view.wt.wtTable.getRowHeight(o)||23}return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;var n=e.from,o=e.to,r=Math.min(n.row,o.row),i=Math.max(n.row,o.row);return(0,v.rangeEach)(r,i,function(e){t.push(e)}),t}},{key:"refreshPositions",value:function(){var e=T.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),o=this.hot.view.wt.wtTable.getLastVisibleRow(),r=this.hot.getSettings().fixedRowsTop,i=this.hot.countRows();r>t.row&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=o&&i>o&&this.hot.scrollViewportTo(o+1,void 0,!0);var a=this.hot.view.wt.wtTable,s=e.target.TD,l=(0,g.offset)(this.hot.rootElement),u=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),c=e.target.eventPageY-l.top+a.holder.scrollTop,h=a.hider.offsetHeight,f=a.TBODY.offsetTop,d=this.backlight.getOffset().top,p=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(u+=a.holder.scrollTop),0>t.row?e.target.row=n>0?n-1:n:s.offsetHeight/2+u>c?e.target.row=t.row:(e.target.row=t.row+1,u+=0===t.row?s.offsetHeight-1:s.offsetHeight);var v=c,m=u;h>c+p+d?f>c+d&&(v=f+Math.abs(d)):v=h-p-d,h-1>u||(m=h-1);var y=0;this.hot.view.wt.wtOverlays.topOverlay&&(y=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=r&&y>m-a.holder.scrollTop&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(v),this.guideline.setPosition(m)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(e>t){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var o=e-1,r=[];(0,p.arrayEach)(this.rowsMapper._arrayMap,function(e,t){e>o&&r.push(t)}),this.rowsMapper.removeItems(r)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){T.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,o){var r=this.hot.view.wt.wtTable,i=this.hot.selection.isSelectedByRowHeader(),a=this.hot.getSelectedRangeLast(),s=T.get(this);if(!a||!i||s.pressed||0!==e.button)return s.pressed=!1,s.rowsToMove.length=0,void(0,g.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var l=this.guideline.isBuilt()&&!this.guideline.isAppended(),u=this.backlight.isBuilt()&&!this.backlight.isAppended();l&&u&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var c=a.from,h=a.to,f=Math.min(c.row,h.row),d=Math.max(c.row,h.row);if(0<=t.col||t.row<f||d<t.row)(0,g.removeClass)(this.hot.rootElement,"after-selection--rows"),s.pressed=!1,s.rowsToMove.length=0;else{o.row=!0,s.pressed=!0,s.target.eventPageY=e.pageY,s.target.coords=t,s.target.TD=n,s.rowsToMove=this.prepareRowsToMoving();var p=r.holder.scrollLeft+this.hot.view.wt.wtViewport.getRowHeaderWidth();this.backlight.setPosition(null,p),this.backlight.setSize(r.hider.offsetWidth-p,this.getRowsHeight(f,d+1)),this.backlight.setOffset(-1*(this.getRowsHeight(f,t.row)+e.layerY),null),(0,g.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}}},{key:"onMouseMove",value:function(e){var t=T.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,o){var r=this.hot.getSelectedRangeLast(),i=T.get(this);r&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?(0,g.removeClass)(this.hot.rootElement,"show-ui"):(0,g.addClass)(this.hot.rootElement,"show-ui"),o.row=!0,o.column=!0,o.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=T.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,(0,g.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.isSelectedByRowHeader()&&(0,g.addClass)(this.hot.rootElement,"after-selection--rows"),n>=1&&void 0!==t&&-1>=e.rowsToMove.indexOf(t)&&e.rowsToMove[n-1]!==t-1){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){this.changeSelection(this.rowsMapper.getIndexByValue(e.rowsToMove[0]),this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]))}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=this.hot.view.wt.wtViewport.getRowHeaderWidth(),n=e.holder.scrollLeft,o=t+n;this.backlight.setPosition(null,o),this.backlight.setSize(e.hider.offsetWidth-o)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,v.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){var n=e;if(t!==this.pluginName){var o=this.rowsMapper.getValueByIndex(n);n=null===o?n:o}return n}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),this.rowsMapper.destroy(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h.default);(0,w.registerPlugin)("ManualRowMove",k),t.default=k},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(95),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(2),l=n(1),u=n(5),c=function(){function e(t){o(this,e),this.manualRowMove=t}return r(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,u.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,s.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,l.mixin)(c,a.default),t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=n(450),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"build",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualRowMove--backlight")}}]),t}(u.default)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=n(450),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(0);t.default=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"build",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,c.addClass)(this._element,"ht__manualRowMove--guideline")}}]),t}(u.default)},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=o(u),h=n(0),f=n(6),d=o(f),p=n(13),g=n(2),v=n(5),m=n(8),y=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentRow=null,n.selectedRows=[],n.currentHeight=null,n.newSize=null,n.startY=null,n.startHeight=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new d.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualRowHeights=[],(0,h.addClass)(n.handle,"manualRowResizer"),(0,h.addClass)(n.guide,"manualRowResizerGuide"),n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var n=this.hot.getSettings().manualRowResize,o=this.loadManualRowHeights();this.manualRowHeights=void 0!==o?o:Array.isArray(n)?n:[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),this.bindEvents(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).row,o=(0,h.outerWidth)(this.currentTH);if(n>=0){var r=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByRowHeader()){var i=this.hot.getSelectedRangeLast(),a=i.from,s=i.to,l=a.row,u=s.row;u>l||(l=s.row,u=a.row),l>this.currentRow||this.currentRow>u?this.selectedRows.push(this.currentRow):(0,v.rangeEach)(l,u,function(e){return t.selectedRows.push(e)})}else this.selectedRows.push(this.currentRow);this.startOffset=r.top-6,this.startHeight=parseInt(r.height,10),this.handle.style.left=r.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=o+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left=t+"px",this.guide.style.width=n-e+"px",this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){if(e!==this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var r=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==r&&(e.newSize=r),e.setManualSize(n,e.newSize),o&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};if(this.dblclick>=2){this.selectedRows.length>1?((0,g.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,g.arrayEach)(this.selectedRows,function(e){n(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=(0,p.pageY)(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+((0,p.pageY)(e)-this.startY),(0,g.arrayEach)(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){e.hot.runHooks("beforeRowResize",n,e.newSize),o&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",n,e.newSize,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight){this.selectedRows.length>1?((0,g.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,g.arrayEach)(this.selectedRows,function(e){n(e,!0)})}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(){return e.onMouseUp()})}},{key:"setManualSize",value:function(e,t){return this.manualRowHeights[this.hot.runHooks("modifyRow",e)]=t,t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null,r=this.hot.runHooks("modifyRow",t),i=this.manualRowHeights[r];if(void 0!==i&&(i===o||i>(e||0)))return i}return e}}]),t}(c.default);(0,m.registerPlugin)("manualRowResize",y),t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},h=n(11),f=o(h),d=n(16),p=o(d),g=n(8),v=n(13),m=n(4),y=n(600),w=o(y),C=n(98),b=o(C),_=n(601),S=o(_),E=n(602),O=o(E),T=n(603),k=o(T),R=n(2),M=n(1),D=n(48),A=n(5),N=n(451);n(604),p.default.getSingleton().register("beforeMergeCells"),p.default.getSingleton().register("afterMergeCells"),p.default.getSingleton().register("beforeUnmergeCells"),p.default.getSingleton().register("afterUnmergeCells");var P=new WeakMap,H=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return P.set(n,{lastDesiredCoords:null}),n.mergedCellsCollection=null,n.autofillCalculations=null,n.selectionCalculations=null,n}return s(t,e),u(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new w.default(this),this.autofillCalculations=new S.default(this),this.selectionCalculations=new O.default(this),this.addHook("afterInit",function(){return e.onAfterInit.apply(e,arguments)}),this.addHook("beforeKeyDown",function(){return e.onBeforeKeyDown.apply(e,arguments)}),this.addHook("modifyTransformStart",function(){return e.onModifyTransformStart.apply(e,arguments)}),this.addHook("afterModifyTransformStart",function(){return e.onAfterModifyTransformStart.apply(e,arguments)}),this.addHook("modifyTransformEnd",function(){return e.onModifyTransformEnd.apply(e,arguments)}),this.addHook("modifyGetCellCoords",function(){return e.onModifyGetCellCoords.apply(e,arguments)}),this.addHook("beforeSetRangeEnd",function(){return e.onBeforeSetRangeEnd.apply(e,arguments)}),this.addHook("afterIsMultipleSelection",function(){return e.onAfterIsMultipleSelection.apply(e,arguments)}),this.addHook("afterRenderer",function(){return e.onAfterRenderer.apply(e,arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){return e.addMergeActionsToContextMenu.apply(e,arguments)}),this.addHook("afterGetCellMeta",function(){return e.onAfterGetCellMeta.apply(e,arguments)}),this.addHook("afterViewportRowCalculatorOverride",function(){return e.onAfterViewportRowCalculatorOverride.apply(e,arguments)}),this.addHook("afterViewportColumnCalculatorOverride",function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)}),this.addHook("modifyAutofillRange",function(){return e.onModifyAutofillRange.apply(e,arguments)}),this.addHook("afterCreateCol",function(){return e.onAfterCreateCol.apply(e,arguments)}),this.addHook("afterRemoveCol",function(){return e.onAfterRemoveCol.apply(e,arguments)}),this.addHook("afterCreateRow",function(){return e.onAfterCreateRow.apply(e,arguments)}),this.addHook("afterRemoveRow",function(){return e.onAfterRemoveRow.apply(e,arguments)}),this.addHook("afterChange",function(){return e.onAfterChange.apply(e,arguments)}),this.addHook("beforeDrawBorders",function(){return e.onBeforeDrawAreaBorders.apply(e,arguments)}),this.addHook("afterDrawSelection",function(){return e.onAfterDrawSelection.apply(e,arguments)}),this.addHook("beforeRemoveCellClassNames",function(){return e.onBeforeRemoveCellClassNames.apply(e,arguments)}),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.hot.render(),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().mergeCells;this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(e),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(b.default.containsNegativeValues(e)?((0,D.warn)(b.default.NEGATIVE_VALUES_WARNING(e)),t=!1):b.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,D.warn)(b.default.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):b.default.isSingleCell(e)?((0,D.warn)(b.default.IS_SINGLE_CELL(e)),t=!1):b.default.containsZeroSpan(e)&&((0,D.warn)(b.default.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var t=this;if(Array.isArray(e)){var n,o=[];(0,R.arrayEach)(e,function(e){if(t.validateSetting(e)){var n=new m.CellCoords(e.row,e.col),r=new m.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),i=new m.CellRange(n,n,r);o.push(t.mergeRange(i,!0,!0))}}),o=o.filter(function(e){return!0!==e});var i=this.getBulkCollectionData(o);(n=this.hot).populateFromArray.apply(n,r(i))}}},{key:"getBulkCollectionData",value:function(e){var t,n=this.getBulkCollectionDataRange(e),o=(t=this.hot).getData.apply(t,r(n)),i=o.splice(0);return(0,R.arrayEach)(e,function(e){var t=l(e,3),o=t[0],r=t[1];(0,R.arrayEach)(t[2],function(e,t){(0,R.arrayEach)(e,function(e,a){i[o-n[0]+t][r-n[1]+a]=e})})}),[n[0],n[1],i]}},{key:"getBulkCollectionDataRange",value:function(e){var t=[0,0],n=[0,0],o=null,r=null,i=null;return(0,R.arrayEach)(e,function(e){o=e[0],r=e[1],i=e[2],t[0]=Math.min(o,t[0]),t[1]=Math.min(r,t[1]),n[0]=Math.max(o+i.length-1,n[0]),n[1]=Math.max(r+i[0].length-1,n[1])}),[].concat(t,n)}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e){return!(1>=arguments.length||void 0===arguments[1]||!arguments[1])||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.toggleMerge(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getTopLeftCorner(),i=e.getBottomRightCorner(),a={row:r.row,col:r.col,rowspan:i.row-r.row+1,colspan:i.col-r.col+1},s=[],l=null;return!!this.canMergeRange(a,n)&&(this.hot.runHooks("beforeMergeCells",e,n),(0,A.rangeEach)(0,a.rowspan-1,function(e){(0,A.rangeEach)(0,a.colspan-1,function(n){var o=null;s[e]||(s[e]=[]),0===e&&0===n?o=t.hot.getDataAtCell(a.row,a.col):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=o})}),this.hot.setCellMeta(a.row,a.col,"spanned",!0),!this.mergedCellsCollection.add(a)||(o?l=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),l))}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.mergedCellsCollection.getWithinRange(e);o&&(this.hot.runHooks("beforeUnmergeCells",e,n),(0,R.arrayEach)(o,function(e){t.mergedCellsCollection.remove(e.row,e.col),(0,A.rangeEach)(0,e.rowspan-1,function(n){(0,A.rangeEach)(0,e.colspan-1,function(o){t.hot.removeCellMeta(e.row+n,e.col+o,"hidden")})}),t.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.render(),this.hot.runHooks("afterUnmergeCells",e,n))}},{key:"toggleMerge",value:function(e){var t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}},{key:"merge",value:function(e,t,n,o){var r=new m.CellCoords(e,t),i=new m.CellCoords(n,o);this.mergeRange(new m.CellRange(r,r,i))}},{key:"unmerge",value:function(e,t,n,o){var r=new m.CellCoords(e,t),i=new m.CellCoords(n,o);this.unmergeRange(new m.CellRange(r,r,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"onBeforeKeyDown",value:function(e){(e.ctrlKey||e.metaKey)&&!e.altKey&&77===e.keyCode&&(this.toggleMerge(this.hot.getSelectedRangeLast()),this.hot.render(),(0,v.stopImmediatePropagation)(e))}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),o=0;t.length>o;o+=1)if(n.highlight.row===t[o].row&&n.highlight.col===t[o].col&&n.to.row===t[o].row+t[o].rowspan-1&&n.to.col===t[o].col+t[o].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t=P.get(this),n=this.hot.getSelectedRangeLast(),o={row:e.row,col:e.col},r=null,i=new m.CellCoords(n.highlight.row,n.highlight.col),a=this.mergedCellsCollection.get(i.row,i.col);if(t.lastDesiredCoords||(t.lastDesiredCoords=new m.CellCoords(null,null)),a){var s=new m.CellCoords(a.row,a.col),l=new m.CellCoords(a.row+a.rowspan-1,a.col+a.colspan-1);new m.CellRange(s,s,l).includes(t.lastDesiredCoords)||(t.lastDesiredCoords=new m.CellCoords(null,null)),o.row=t.lastDesiredCoords.row?t.lastDesiredCoords.row-i.row:o.row,o.col=t.lastDesiredCoords.col?t.lastDesiredCoords.col-i.col:o.col,e.row>0?o.row=a.row+a.rowspan-1-i.row+e.row:0>e.row&&(o.row=i.row-a.row+e.row),e.col>0?o.col=a.col+a.colspan-1-i.col+e.col:0>e.col&&(o.col=i.col-a.col+e.col)}r=new m.CellCoords(n.highlight.row+o.row,n.highlight.col+o.col);var u=this.mergedCellsCollection.get(r.row,r.col);u&&(t.lastDesiredCoords=r,o={row:u.row-i.row,col:u.col-i.col}),0!==o.row&&(e.row=o.row),0!==o.col&&(e.col=o.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),o=(0,M.clone)(e),r=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=(0,M.clone)(o),a=this.mergedCellsCollection.getWithinRange(r,!0);do{i=(0,M.clone)(o),this.selectionCalculations.getUpdatedSelectionRange(n,o),(0,R.arrayEach)(a,function(e){t.selectionCalculations.snapDelta(o,n,e)})}while(o.row!==i.row||o.col!==i.col);e.row=o.row,e.col=o.col}},{key:"onModifyGetCellCoords",value:function(e,t){var n=this.mergedCellsCollection.get(e,t);return n?[n.row,n.col,n.row+n.rowspan-1,n.col+n.colspan-1]:void 0}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},(0,k.default)(this))}},{key:"onAfterRenderer",value:function(e,t,n){var o=this.mergedCellsCollection.get(t,n);(0,N.applySpanProperties)(e,o,t,n)}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=new m.CellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;if(!(0===t.from.row&&t.to.row===this.hot.countRows()-1||0===t.from.col&&t.to.col===this.hot.countCols()-1))do{n=!1;for(var o=0;this.mergedCellsCollection.mergedCells.length>o;o+=1){var r=this.mergedCellsCollection.mergedCells[o],i=r.getRange();t.expandByRange(i)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var o=this.mergedCellsCollection.get(e,t);!o||o.row===e&&o.col===t||(n.copyable=!1)}},{key:"onAfterViewportRowCalculatorOverride",value:function(e){var t=this,n=this.hot.countCols(),o=void 0;(0,A.rangeEach)(0,n-1,function(n){if((o=t.mergedCellsCollection.get(e.startRow,n))&&e.startRow>o.row)return e.startRow=o.row,t.onAfterViewportRowCalculatorOverride.call(t,e);if(o=t.mergedCellsCollection.get(e.endRow,n)){var r=o.row+o.rowspan-1;if(r>e.endRow)return e.endRow=r,t.onAfterViewportRowCalculatorOverride.call(t,e)}return!0})}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t=this,n=this.hot.countRows(),o=void 0;(0,A.rangeEach)(0,n-1,function(n){if((o=t.mergedCellsCollection.get(n,e.startColumn))&&e.startColumn>o.col)return e.startColumn=o.col,t.onAfterViewportColumnCalculatorOverride.call(t,e);if(o=t.mergedCellsCollection.get(n,e.endColumn)){var r=o.col+o.colspan-1;if(r>e.endColumn)return e.endColumn=r,t.onAfterViewportColumnCalculatorOverride.call(t,e)}return!0})}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),o=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,o,n))return o=t;var r=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return r?o=this.autofillCalculations.snapDragArea(t,o,n,r):o}},{key:"onAfterCreateCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}},{key:"onAfterCreateRow",value:function(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}},{key:"onAfterChange",value:function(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}},{key:"onBeforeDrawAreaBorders",value:function(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(n);(0,R.arrayEach)(o,function(t){n.getBottomRightCorner().row===t.getLastRow()&&n.getBottomRightCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)})}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var o=this.mergedCellsCollection.get(e.row,e.col);if(o){var r=t>0,i=0>t,a=0>n,s=n>0,l=o.row+o.rowspan-1==this.hot.countRows()-1,u=0===o.row,c=o.col+o.colspan-1==this.hot.countCols()-1,h=0===o.col;(r&&l||i&&u||s&&c||a&&h)&&(e.row=o.row,e.col=o.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,o){return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,o)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}]),t}(f.default);(0,g.registerPlugin)("mergeCells",H),t.default=H},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["The merged cell declared at [",", ","], overlaps with the other declared merged \n    cell. The overlapping merged cell was not added to the table, please fix your setup."],["The merged cell declared at [",", ","], overlaps with the other declared merged \n    cell. The overlapping merged cell was not added to the table, please fix your setup."]),s=n(98),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(4),c=n(5),h=n(48),f=n(2),d=n(451),p=n(42);t.default=function(){function e(t){r(this,e),this.plugin=t,this.mergedCells=[],this.hot=t.hot}return i(e,[{key:"get",value:function(e,t){var n=this.mergedCells,o=!1;return(0,f.arrayEach)(n,function(n){return n.row>e||e>n.row+n.rowspan-1||n.col>t||t>n.col+n.colspan-1||(o=n,!1)}),o}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return(0,f.arrayEach)(t,function(t){return t.row>e.from.row||e.to.row>t.row+t.rowspan-1||t.col>e.from.col||e.to.col>t.col+t.colspan-1||(n=t)}),n}},{key:"getWithinRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.mergedCells,o=[],r=e;if(!r.includesRange){var i=new u.CellCoords(r.from.row,r.from.col),a=new u.CellCoords(r.to.row,r.to.col);r=new u.CellRange(i,i,a)}return(0,f.arrayEach)(n,function(e){var n=new u.CellCoords(e.row,e.col),i=new u.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),a=new u.CellRange(n,n,i);t?r.overlaps(a)&&o.push(e):r.includesRange(a)&&o.push(e)}),!!o.length&&o}},{key:"add",value:function(t){var n=this.mergedCells,o=t.row,r=t.col,i=t.rowspan,a=t.colspan,s=new l.default(o,r,i,a),u=this.get(o,r),c=this.isOverlapping(s);return u||c?((0,h.warn)(e.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),n.push(s),s)}},{key:"remove",value:function(e,t){var n=this.mergedCells,o=this.get(e,t),r=o?this.mergedCells.indexOf(o):null;return!(!o||!1===r)&&(n.splice(r,1),o)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],r=[];(0,f.arrayEach)(t,function(t){var o=e.hot.getCell(t.row,t.col);o&&n.push([o,e.get(t.row,t.col),t.row,t.col])}),this.mergedCells.length=0,(0,f.arrayEach)(n,function(t,o){(0,c.rangeEach)(0,t.rowspan-1,function(n){(0,c.rangeEach)(0,t.colspan-1,function(o){if(0!==o||0!==n){var i=e.hot.getCell(t.row+n,t.col+o);i&&r.push([i,null,null,null])}})}),n[o][1]=null}),(0,f.arrayEach)(n,function(e){d.applySpanProperties.apply(void 0,o(e))}),(0,f.arrayEach)(r,function(e){d.applySpanProperties.apply(void 0,o(e))})}},{key:"isOverlapping",value:function(e){var t=new u.CellRange(null,new u.CellCoords(e.row,e.col),new u.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)),n=!1;return(0,f.arrayEach)(this.mergedCells,function(e){return!new u.CellRange(null,new u.CellCoords(e.row,e.col),new u.CellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(t)||(n=!0,!1)}),n}},{key:"isMergedParent",value:function(e,t){var n=this.mergedCells,o=!1;return(0,f.arrayEach)(n,function(n){return n.row!==e||n.col!==t||(o=!0,!1)}),o}},{key:"shiftCollections",value:function(e,t,n){var o=this,r=[0,0];switch(e){case"right":r[0]+=n;break;case"left":r[0]-=n;break;case"down":r[1]+=n;break;case"up":r[1]-=n}(0,f.arrayEach)(this.mergedCells,function(e){e.shift(r,t)}),(0,c.rangeEachReverse)(this.mergedCells.length-1,0,function(e){var t=o.mergedCells[e];t&&t.removed&&o.mergedCells.splice(o.mergedCells.indexOf(t),1)})}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return(0,p.toSingleLine)(a,e.row,e.col)}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(1),s=n(4),l=n(2);t.default=function(){function e(t){o(this,e),this.plugin=t,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}return i(e,[{key:"correctSelectionAreaSize",value:function(e){if(e[0]===e[2]&&e[1]===e[3]){var t=this.mergedCellsCollection.get(e[0],e[1]);t&&(e[2]=e[0]+t.rowspan-1,e[3]=e[1]+t.colspan-1)}}},{key:"getDirection",value:function(e,t){return t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left"}},{key:"snapDragArea",value:function(e,t,n,o){var i=t.slice(0),a=this.getAutofillSize(e,t,n),s=r(e,4),l=s[0],u=s[1],c=s[2],h=s[3],f=["up","down"].indexOf(n)>-1,d=f?c-l+1:h-u+1,p=Math.floor(a/d)*d,g=a-p,v=this.getFarthestCollection(e,t,n,o);if(v)if("down"===n){var m=v.row+v.rowspan-l-g,y=i[2]+m;y<this.plugin.hot.countRows()?i[2]+=g?m:0:i[2]-=g}else if("right"===n){var w=v.col+v.colspan-u-g,C=i[3]+w;C<this.plugin.hot.countCols()?i[3]+=g?w:0:i[3]-=g}else if("up"===n){var b=c-g-v.row+1,_=i[0]+b;0>_?i[0]+=g:i[0]-=g?b:0}else if("left"===n){var S=h-g-v.col+1,E=i[1]+S;0>E?i[1]+=g:i[1]-=g?S:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:o,fillSize:a,dragArea:i,cycleLength:d}),i}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),(0,a.extend)(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var o=r(e,4),i=o[0],a=o[1],s=o[2],l=o[3],u=r(t,4),c=u[0],h=u[1],f=u[2],d=u[3];switch(n){case"up":return i-c;case"down":return f-s;case"left":return a-h;case"right":return d-l;default:return null}}},{key:"getDragArea",value:function(e,t,n){var o=r(e,4),i=o[0],a=o[1],s=o[2],l=o[3],u=r(t,4),c=u[0],h=u[1],f=u[2],d=u[3];switch(n){case"up":return[c,h,i-1,l];case"down":return[s+1,a,f,l];case"left":return[c,h,s,a-1];case"right":return[i,l+1,f,d];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,o){var i=r(e,4),a=i[0],s=i[1],u=i[2],c=i[3],h=["up","down"].indexOf(n)>-1,f=h?u:c,d=h?a:s,p=this.getAutofillSize(e,t,n),g=h?u-a+1:c-s+1,v=Math.floor(p/g)*g,m=p-v,y=null,w=null,C=null;switch(n){case"up":y="includesVertically",C=f-m+1;break;case"left":y="includesHorizontally",C=f-m+1;break;case"down":y="includesVertically",C=d+m-1;break;case"right":y="includesHorizontally",C=d+m-1}return(0,l.arrayEach)(o,function(e){e[y](C)&&e.isFarther(w,n)&&(w=e)}),w}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,o=this.currentFillData.dragDirection,r=function(e,n){switch(o){case"up":return e.row-n>=t.from.row;case"down":return t.to.row>=e.row+e.rowspan-1+n;case"left":return e.col-n>=t.from.column;case"right":return t.to.column>=e.col+e.colspan-1+n;default:return null}},i=0,a=null,s=1;do{for(var l=0;n.length>l;l+=1){if(a=n[l],i=s*this.currentFillData.cycleLength,r(a,i))switch(o){case"up":this.plugin.mergedCellsCollection.add({row:a.row-i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"left":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col-i,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+i,colspan:a.colspan})}l===n.length-1&&(s+=1)}}while(r(a,i));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var t={min:null,max:null},n={min:null,max:null};return(0,l.arrayEach)(e,function(e){(null===t.min||t.min>e[0])&&(t.min=e[0]),(null===t.max||e[0]>t.max)&&(t.max=e[0]),(null===n.min||n.min>e[1])&&(n.min=e[1]),(null===n.max||e[1]>n.max)&&(n.max=e[1])}),{from:{row:t.min,column:n.min},to:{row:t.max,column:n.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var o=this.getDragArea(e,t,n),i=r(o,4),a=i[0],l=i[1],u=i[2],c=i[3],h=new s.CellCoords(a,l),f=new s.CellCoords(u,c);return!!this.mergedCellsCollection.getWithinRange(new s.CellRange(h,h,f),!0)}}]),e}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(4);t.default=function(){function e(t){o(this,e),this.plugin=t,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return i(e,[{key:"snapDelta",value:function(e,t,n){var o=t.to,r=o.row+e.row,i=o.col+e.col;e.row?this.jumpOverMergedCell(e,n,r):e.col&&this.jumpOverMergedCell(e,n,i)}},{key:"jumpOverMergedCell",value:function(e,t,n){var o=e.row||e.col,r=null,i=null,a=null;e.row?(r=t.includesVertically(n),i=t.row,a=t.getLastRow()):e.col&&(r=t.includesHorizontally(n),i=t.col,a=t.getLastColumn()),0!==o&&(o>0?r&&n!==i&&(o+=a-n+1):r&&n!==a&&(o-=n-i+1),e.row?e.row=o:e.col&&(e.col=o))}},{key:"getUpdatedSelectionRange",value:function(e,t){return new a.CellRange(e.highlight,e.from,new a.CellCoords(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,o){var i=r(n,4),a=i[0],s=i[1],l=i[2],u=i[3];if(void 0!==o&&!(a>e||e>l||s>t||t>u)){if(!this.plugin.mergedCellsCollection.isMergedParent(e,t))return;var c=this.plugin.mergedCellsCollection.get(e,t);if(!c)return;if(l>=c.row+c.rowspan-1&&u>=c.col+c.colspan-1)return this.fullySelectedMergedCellClassName+"-"+o;if(this.plugin.selectionCalculations.isMergeCellFullySelected(c,this.plugin.hot.getSelectedRange()))return this.fullySelectedMergedCellClassName+"-multiple"}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var o=0;e.rowspan>o;o+=1)for(var r=0;e.colspan>r;r+=1)n.push(new a.CellCoords(e.row+o,e.col+r));for(var i=0;n.length>i;i+=1){for(var s=[],l=0;t.length>l;l+=1)s[l]=t[l].includes(n[i]);if(!s.includes(!0))return!1}return!0}},{key:"getSelectedMergedCellClassNameToRemove",value:function(){for(var e=[],t=0;7>=t;t+=1)e.push(this.fullySelectedMergedCellClassName+"-"+t);return e.push(this.fullySelectedMergedCellClassName+"-multiple"),e}}]),e}()},function(e,t,n){"use strict";function o(e){return{key:"mergeCells",name:function(){var t=this.getSelectedLast();if(t){var n=e.mergedCellsCollection.get(t[0],t[1]);if(n.row===t[0]&&n.col===t[1]&&n.row+n.rowspan-1===t[2]&&n.col+n.colspan-1===t[3])return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){e.toggleMergeOnSelection()},disabled:function(){var e=this.getSelectedLast();return!e||(s.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner())},hidden:!1}}t.__esModule=!0,t.default=o;var r=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(98),s=function(e){return e&&e.__esModule?e:{default:e}}(a)},function(e,t){},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(0),c=n(39),h=n(11),f=o(h),d=n(6),p=o(d),g=n(8),v=n(4),m=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.dragged=[],n.eventManager=null,n.lastSetCell=null,n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return(0,c.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new p.default(this)),this.registerListeners(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){function e(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var n=t.dragged.indexOf(e);if(-1===n)return!1;0===n?t.dragged=t.dragged.slice(0,1):1===n&&(t.dragged=t.dragged.slice(-1))}var t=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(e){var n=void 0;return(0,u.hasClass)(e.target,"topLeftSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("topLeft"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):(0,u.hasClass)(e.target,"bottomRightSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("bottomRight"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return(0,u.hasClass)(n.target,"topLeftSelectionHandle-HitArea")?(e.call(t,"topLeft"),t.touchStartRange=void 0,n.preventDefault(),!1):(0,u.hasClass)(n.target,"bottomRightSelectionHandle-HitArea")?(e.call(t,"bottomRight"),t.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(e){var n=(0,u.getWindowScrollTop)(),o=(0,u.getWindowScrollLeft)(),r=void 0,i=void 0,a=void 0,s=void 0,l=void 0,c=void 0;if(0!==t.dragged.length){var h=document.elementFromPoint(e.touches[0].screenX-o,e.touches[0].screenY-n);h&&h!==t.lastSetCell&&("TD"!==h.nodeName&&"TH"!==h.nodeName||(r=t.hot.getCoords(h),-1===r.col&&(r.col=0),i=t.hot.getSelectedRangeLast(),a=i.getWidth(),s=i.getHeight(),l=i.getDirection(),1===a&&1===s&&t.hot.selection.setRangeEnd(r),c=t.getCurrentRangeCoords(i,r,t.touchStartRange.direction,l,t.dragged[0]),null!==c.start&&t.hot.selection.setRangeStart(c.start),t.hot.selection.setRangeEnd(c.end),t.lastSetCell=h),e.preventDefault())}})}},{key:"getCurrentRangeCoords",value:function(e,t,n,o,r){var i=e.getTopLeftCorner(),a=e.getBottomRightCorner(),s=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":u="topLeft"===r?{start:new v.CellCoords(t.row,e.highlight.col),end:new v.CellCoords(s.row,t.col)}:{start:new v.CellCoords(e.highlight.row,t.col),end:new v.CellCoords(t.row,i.col)};break;case"SE-NW":"bottomRight"===r&&(u={start:new v.CellCoords(a.row,t.col),end:new v.CellCoords(t.row,i.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"===r?u={start:t,end:s}:u.end=t;break;case"NW-SE":"topLeft"===r?u={start:t,end:a}:u.end=t;break;case"SE-NW":"topLeft"===r?u={start:t,end:i}:u.end=t;break;case"SW-NE":"topLeft"===r?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(o){case"NW-SE":u="bottomRight"===r?{start:new v.CellCoords(t.row,i.col),end:new v.CellCoords(s.row,t.col)}:{start:new v.CellCoords(i.row,t.col),end:new v.CellCoords(t.row,a.col)};break;case"SW-NE":u="topLeft"===r?{start:new v.CellCoords(e.highlight.row,t.col),end:new v.CellCoords(t.row,a.col)}:{start:new v.CellCoords(t.row,i.col),end:new v.CellCoords(i.row,t.col)};break;case"SE-NW":"bottomRight"===r?u={start:new v.CellCoords(t.row,l.col),end:new v.CellCoords(i.row,t.col)}:"topLeft"===r&&(u={start:s,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"===r&&(u.end=t);break;case"SE-NW":"topLeft"===r?u.end=t:u={start:t,end:i}}}return u}},{key:"isDragged",value:function(){return this.dragged.length>0}}]),t}(f.default);(0,g.registerPlugin)("multipleSelectionHandles",m),t.default=m},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=o(u),h=n(607),f=o(h),d=n(2),p=n(8),g=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.observer=null,n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.observer||(this.observer=new f.default(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n=this.pluginName+".change",o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[[e.row,e.col,null,e.value]],n)}};(0,d.arrayEach)(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}]),t}(c.default);t.default=g,(0,p.registerPlugin)("observeChanges",g)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(608),s=o(a),l=n(49),u=o(l),c=n(1),h=n(609),f=function(){function e(t){r(this,e),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(t)}return i(e,[{key:"setObservedData",value:function(e){var t=this;this.observer&&s.default.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=s.default.observe(this.observedData,function(e){return t.onChange(e)})}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",(0,h.cleanPatches)(e))}},{key:"destroy",value:function(){s.default.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}]),e}();(0,c.mixin)(f,u.default),t.default=f},function(e,t,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){function n(){this.constructor=e}for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a=Error;!function(e){function t(e,n){switch(void 0===e?"undefined":r(e)){case"undefined":case"boolean":case"string":case"number":return e===n;case"object":if(null===e)return null===n;if(k(e)){if(!k(n)||e.length!==n.length)return!1;for(var o=0,i=e.length;i>o;o++)if(!t(e[o],n[o]))return!1;return!0}var a=C(n),s=a.length;if(C(e).length!==s)return!1;for(var o=0;s>o;o++)if(!t(e[o],n[o]))return!1;return!0;default:return!1}}function n(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){for(var t=0,n=E.length;n>t;t++)if(E[t].obj===e)return E[t]}function s(e,t){for(var n=0,o=e.observers.length;o>n;n++)if(e.observers[n].callback===t)return e.observers[n].observer}function l(e,t){for(var n=0,o=e.observers.length;o>n;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}function u(e,t){t.unobserve()}function c(e){return"object"===(void 0===e?"undefined":r(e))?JSON.parse(JSON.stringify(e)):e}function h(e,t){var n,r=[],i=o(e);if(i?n=s(i,t):(i=new O(e),E.push(i)),n)return n;if(n={},i.value=c(e),t){n.callback=t,n.next=null;var u=this.intervals||[100,1e3,1e4,6e4];if(void 0===u.push)throw new a("jsonpatch.intervals must be an array");var h=0,d=function(){f(n)},p=function(){clearTimeout(n.next),n.next=setTimeout(function(){d(),h=0,n.next=setTimeout(g,u[h++])},0)},g=function e(){d(),h==u.length&&(h=u.length-1),n.next=setTimeout(e,u[h++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",p),window.addEventListener("mouseup",p),window.addEventListener("keydown",p)):(document.documentElement.attachEvent("onmousedown",p),document.documentElement.attachEvent("onmouseup",p),document.documentElement.attachEvent("onkeydown",p))),n.next=setTimeout(g,u[h++])}return n.patches=r,n.object=e,n.unobserve=function(){f(n),clearTimeout(n.next),l(i,n),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",p),window.removeEventListener("mouseup",p),window.removeEventListener("keydown",p)):(document.documentElement.detachEvent("onmousedown",p),document.documentElement.detachEvent("onmouseup",p),document.documentElement.detachEvent("onkeydown",p)))},i.observers.push(new T(t,n)),n}function f(e){for(var t,n=0,o=E.length;o>n;n++)if(E[n].obj===e.object){t=E[n];break}d(t.value,e.object,e.patches,""),e.patches.length&&g(t.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function d(e,t,o,i){for(var a=C(t),s=C(e),l=!1,u=s.length-1;u>=0;u--){var h=s[u],f=e[h];if(t.hasOwnProperty(h)){var p=t[h];"object"==(void 0===f?"undefined":r(f))&&null!=f&&"object"==(void 0===p?"undefined":r(p))&&null!=p?d(f,p,o,i+"/"+n(h)):f!=p&&(!0,o.push({op:"replace",path:i+"/"+n(h),value:c(p)}))}else o.push({op:"remove",path:i+"/"+n(h)}),l=!0}if(l||a.length!=s.length)for(var u=0;a.length>u;u++){var h=a[u];e.hasOwnProperty(h)||o.push({op:"add",path:i+"/"+n(h),value:c(t[h])})}}function p(e){for(var t,n=0,o=e.length;o>n;){t=e.charCodeAt(n);{if(48>t||t>57)return!1;n++}}return!0}function g(e,t,n){for(var o,r,i=!1,a=0,s=t.length;s>a;){o=t[a],a++;for(var l=o.path||"",u=l.split("/"),c=e,h=1,f=u.length,d=void 0;;){if(r=u[h],n&&void 0===d&&(void 0===c[r]?d=u.slice(0,h).join("/"):h==f-1&&(d=o.path),void 0!==d&&this.validator(o,a-1,e,d)),h++,void 0===r&&h>=f){i=S[o.op].call(o,c,r,e);break}if(k(c)){if("-"===r)r=c.length;else{if(n&&!p(r))throw new R("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a-1,o.path,o);r=parseInt(r,10)}if(h>=f){if(n&&"add"===o.op&&r>c.length)throw new R("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a-1,o.path,o);i=_[o.op].call(o,c,r,e);break}}else if(r&&-1!=r.indexOf("~")&&(r=r.replace(/~1/g,"/").replace(/~0/g,"~")),h>=f){i=b[o.op].call(o,c,r,e);break}c=c[r]}}return i}function v(e,t){var n=[];return d(e,t,n,""),n}function m(e){if(void 0===e)return!0;if("array"==typeof e||"object"==(void 0===e?"undefined":r(e)))for(var t in e)if(m(e[t]))return!0;return!1}function y(t,n,o,i){if("object"!==(void 0===t?"undefined":r(t))||null===t||k(t))throw new R("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,o);if(!b[t.op])throw new R("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,o);if("string"!=typeof t.path)throw new R("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,o);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new R("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new R("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&m(t.value))throw new R("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,o);if(o)if("add"==t.op){var a=t.path.split("/").length,s=i.split("/").length;if(a!==s+1&&a!==s)throw new R("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,o)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==i)throw new R("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,o)}else if("move"===t.op||"copy"===t.op){var l={op:"_get",path:t.from,value:void 0},u=e.validate([l],o);if(u&&"OPERATION_PATH_UNRESOLVABLE"===u.name)throw new R("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,o)}}function w(e,t){try{if(!k(e))throw new R("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),g.call(this,t,e,!0);else for(var n=0;e.length>n;n++)this.validator(e[n],n)}catch(e){if(e instanceof R)return e;throw e}}var C=function(e){if(k(e)){for(var t=Array(e.length),n=0;t.length>n;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t},b={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var o={op:"_get",path:this.from};return g(n,[o]),g(n,[{op:"remove",path:this.from}]),g(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return g(n,[o]),g(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,n){return t(e[n],this.value)},_get:function(e,t){this.value=e[t]}},_={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:b.move,copy:b.copy,test:b.test,_get:b._get},S={add:function(e){S.remove.call(this,e);for(var t in this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&b.remove.call(this,e,t);return!0},replace:function(e){return g(e,[{op:"remove",path:this.path}]),g(e,[{op:"add",path:this.path,value:this.value}]),!0},move:b.move,copy:b.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}},E=[],O=function(){function e(e){this.observers=[],this.obj=e}return e}(),T=function(){function e(e,t){this.callback=e,this.observer=t}return e}();e.unobserve=u,e.observe=h,e.generate=f;var k;k=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=g,e.compare=v;var R=function(e){function t(t,n,o,r,i){e.call(this,t),this.message=t,this.name=n,this.index=o,this.operation=r,this.tree=i}return i(t,e),t}(a);e.JsonPatchError=R,e.Error=R,e.validator=y,e.validate=w}(o||(o={})),t.apply=o.apply,t.observe=o.observe,t.unobserve=o.unobserve,t.generate=o.generate,t.compare=o.compare,t.validate=o.validate,t.validator=o.validator,t.JsonPatchError=o.JsonPatchError,t.Error=o.Error},function(e,t,n){"use strict";function o(e){var t=[],n=(0,a.arrayFilter)(e,function(e){return!/[\/]length/gi.test(e.path)&&!!r(e.path)});return n=(0,a.arrayMap)(n,function(e){var t=r(e.path);return e.row=t.row,e.col=t.col,e}),n=(0,a.arrayFilter)(n,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,n}function r(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=i(t,3),o=n[1],r=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(r)?parseInt(r,10):r}}t.__esModule=!0;var i=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.cleanPatches=o,t.parsePath=r;var a=n(2)},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},u=n(11),c=function(e){return e&&e.__esModule?e:{default:e}}(u),h=n(8),f=n(1),d=n(5),p=n(10),g="htSearchResult",v=function(e,t,n,o,r){e.getCellMeta(t,n).isSearchResult=r},m=function(e,t){return!((0,p.isUndefined)(e)||null===e||!e.toLowerCase||0===e.length)&&(!(0,p.isUndefined)(t)&&null!==t&&-1!==(""+t).toLowerCase().indexOf(e.toLowerCase()))},y=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.callback=v,n.queryMethod=m,n.searchResultClass=g,n}return a(t,e),s(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().search}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.updatePluginSettings(this.hot.getSettings().search),this.addHook("beforeRenderer",function(){return e.onBeforeRenderer.apply(e,arguments)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e=this,n=function(){return e.onBeforeRenderer.apply(e,arguments)};this.hot.addHook("beforeRenderer",n),this.hot.addHookOnce("afterRender",function(){e.hot.removeHook("beforeRenderer",n)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),r=this.hot.countRows(),i=this.hot.countCols(),a=[],s=this.hot;return(0,d.rangeEach)(0,r-1,function(r){(0,d.rangeEach)(0,i-1,function(i){var l=t.hot.getDataAtCell(r,i),u=t.hot.getCellMeta(r,i),c=u.search.callback||n,h=u.search.queryMethod||o,f=h(e,l);if(f){a.push({row:r,col:i,data:l})}c&&c(s,r,i,l,f)})}),a}},{key:"getCallback",value:function(){return this.callback}},{key:"setCallback",value:function(e){this.callback=e}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(e){this.queryMethod=e}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(e){this.searchResultClass=e}},{key:"updatePluginSettings",value:function(e){(0,f.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}},{key:"onBeforeRenderer",value:function(e,t,n,r,i,a){var s=a.className||[],l=[];if("string"==typeof s)l=s.split(" ");else{var u;(u=l).push.apply(u,o(s))}this.isEnabled()&&a.isSearchResult?l.includes(this.searchResultClass)||l.push(""+this.searchResultClass):l.includes(this.searchResultClass)&&l.splice(l.indexOf(this.searchResultClass),1),a.className=l.join(" ")}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(c.default);(0,h.registerPlugin)("search",y),t.default=y},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(o)},l=n(0),u=n(2),c=n(11),h=function(e){return e&&e.__esModule?e:{default:e}}(c),f=n(8),d=n(40),p=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollbars=[],n.clones=[],n.lockedCollection=!1,n.freezeOverlays=!1,n}return i(t,e),a(t,[{key:"isEnabled",value:function(){return(0,d.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,o=e.leftOverlay,r=e.topLeftCornerOverlay,i=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(o),r&&this.scrollbars.push(r),i&&i.clone&&this.scrollbars.push(i),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),r&&this.clones.push(r.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,u.arrayEach)(this.clones,function(e){(0,l.addClass)(e,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,u.arrayEach)(this.clones,function(e){(0,l.removeClass)(e,"hide-tween"),(0,l.addClass)(e,"show-tween")}),setTimeout(function(){(0,u.arrayEach)(e.clones,function(e){(0,l.removeClass)(e,"show-tween")})},400),(0,u.arrayEach)(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}]),t}(h.default);(0,f.registerPlugin)("touchScroll",p),t.default=p},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,n){e&&"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&"MergeCells"!==n&&t.done(new a.ChangeAction(e))}),e.addHook("afterCreateRow",function(e,n,o){if("UndoRedo.undo"!==o&&"UndoRedo.undo"!==o&&"auto"!==o){var r=new a.CreateRowAction(e,n);t.done(r)}}),e.addHook("beforeRemoveRow",function(e,n,o,r){if("UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r){var i=t.instance.getSourceDataArray(),s=(i.length+e)%i.length,l=(0,m.deepClone)(i.slice(s,s+n));t.done(new a.RemoveRowAction(s,l))}}),e.addHook("afterCreateCol",function(e,n,o){"UndoRedo.undo"!==o&&"UndoRedo.redo"!==o&&"auto"!==o&&t.done(new a.CreateColumnAction(e,n))}),e.addHook("beforeRemoveCol",function(n,o,r,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var s=t.instance.getSourceDataArray(),l=(t.instance.countCols()+n)%t.instance.countCols(),u=[],c=[],h=[];(0,v.rangeEach)(s.length-1,function(t){var n=[],r=s[t];(0,v.rangeEach)(l,l+(o-1),function(t){n.push(r[e.runHooks("modifyCol",t)])}),u.push(n)}),(0,v.rangeEach)(o-1,function(t){h.push(e.runHooks("modifyCol",l+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,v.rangeEach)(o-1,function(t){c.push(e.getSettings().colHeaders[e.runHooks("modifyCol",l+t)]||null)});var f=t.instance.getPlugin("manualColumnMove"),d=f.isEnabled()?f.columnsMapper.__arrayMap:[],p=new a.RemoveColumnAction(l,h,u,c,d);t.done(p)}}),e.addHook("beforeCellAlignment",function(e,n,o,r){var i=new a.CellAlignmentAction(e,n,o,r);t.done(i)}),e.addHook("beforeFilter",function(e){t.done(new a.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){!1!==e&&t.done(new a.RowMoveAction(e,n))}),e.addHook("beforeMergeCells",function(n,o){o||t.done(new a.MergeCellsAction(e,n))}),e.addHook("afterUnmergeCells",function(n,o){o||t.done(new a.UnmergeCellsAction(e,n))})}function s(){var e=this;void 0===e.getSettings().undo||e.getSettings().undo?e.undoRedo||(e.undoRedo=new a(e),c(e),e.addHook("beforeKeyDown",l),e.addHook("afterChange",u)):e.undoRedo&&(delete e.undoRedo,h(e),e.removeHook("beforeKeyDown",l),e.removeHook("afterChange",u))}function l(e){var t=this;(e.ctrlKey||e.metaKey)&&!e.altKey&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(t.undoRedo.redo(),(0,y.stopImmediatePropagation)(e)):90===e.keyCode&&(t.undoRedo.undo(),(0,y.stopImmediatePropagation)(e)))}function u(e,t){var n=this;if("loadData"===t)return n.undoRedo.clear()}function c(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}function h(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}t.__esModule=!0;var f=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),d=n(16),p=function(e){return e&&e.__esModule?e:{default:e}}(d),g=n(2),v=n(5),m=n(1),y=n(13),w=n(19);a.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},a.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=(0,m.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var o=this;e.undo(this.instance,function(){o.ignoreNewActions=!1,o.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},a.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=(0,m.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var o=this;e.redo(this.instance,function(){o.ignoreNewActions=!1,o.doneActions.push(e)}),n.runHooks("afterRedo",t)}},a.prototype.isUndoAvailable=function(){return this.doneActions.length>0},a.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},a.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},a.Action=function(){},a.Action.prototype.undo=function(){},a.Action.prototype.redo=function(){},a.ChangeAction=function(e){this.changes=e,this.actionType="change"},(0,m.inherit)(a.ChangeAction,a.Action),a.ChangeAction.prototype.undo=function(e,t){for(var n=(0,m.deepClone)(this.changes),o=e.countEmptyRows(!0),r=e.countEmptyCols(!0),i=0,a=n.length;a>i;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var s=0,l=n.length;l>s;s++)e.getSettings().minSpareRows&&n[s][0]+1+e.getSettings().minSpareRows===e.countRows()&&o===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[s][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[s][1]+1+e.getSettings().minSpareCols===e.countCols()&&r===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[s][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},a.ChangeAction.prototype.redo=function(e,t){for(var n=(0,m.deepClone)(this.changes),o=0,r=n.length;r>o;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo")},a.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,m.inherit)(a.CreateRowAction,a.Action),a.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&n>this.index-o&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},a.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},a.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},(0,m.inherit)(a.RemoveRowAction,a.Action),a.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},a.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},a.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,m.inherit)(a.CreateColumnAction,a.Action),a.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},a.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},a.RemoveColumnAction=function(e,t,n,o,r){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=o,this.columnPositions=r.slice(0),this.actionType="remove_col"},(0,m.inherit)(a.RemoveColumnAction,a.Action),a.RemoveColumnAction.prototype.undo=function(e,t){var n=this,o=void 0,r=this.indexes.slice(0).sort(),i=function(e,t,o){return o[n.indexes.indexOf(r[t])]},a=[];(0,v.rangeEach)(this.data.length-1,function(e){a[e]=(0,g.arrayMap)(n.data[e],i)});var s=[];s=(0,g.arrayMap)(this.headers,i);var l=[];e.runHooks("beforeCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,v.rangeEach)(this.data.length-1,function(t){o=e.getSourceDataAtRow(t),(0,v.rangeEach)(r.length-1,function(e){o.splice(r[e],0,a[t][e]),l.push([t,r[e],null,a[t][e]])})}),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(l),void 0!==this.headers&&(0,v.rangeEach)(s.length-1,function(t){e.getSettings().colHeaders.splice(r[t],0,s[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),e.runHooks("afterCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},a.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},a.CellAlignmentAction=function(e,t,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o},a.CellAlignmentAction.prototype.undo=function(e,t){var n=this;(0,g.arrayEach)(this.range,function(t){for(var o=t.from,r=t.to,i=o.row;r.row>=i;i+=1)for(var a=o.col;r.col>=a;a+=1)e.setCellMeta(i,a,"className",n.stateBefore[i][a]||" htLeft")}),e.addHookOnce("afterRender",t),e.render()},a.CellAlignmentAction.prototype.redo=function(e,t){(0,w.align)(this.range,this.type,this.alignment,function(t,n){return e.getCellMeta(t,n)},function(t,n,o,r){return e.setCellMeta(t,n,o,r)}),e.addHookOnce("afterRender",t),e.render()},a.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,m.inherit)(a.FiltersAction,a.Action),a.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},a.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()},a.MergeCellsAction=function(e){function t(e,n){o(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.cellRange=n,i.rangeData=e.getData(n.from.row,n.from.col,n.to.row,n.to.col),i}return i(t,e),f(t,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.populateFromArray(this.cellRange.from.row,this.cellRange.from.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange)}}]),t}(a.Action),a.UnmergeCellsAction=function(e){function t(e,n){o(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.cellRange=n,i}return i(t,e),f(t,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),t}(a.Action),a.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},(0,m.inherit)(a.RowMoveAction,a.Action),a.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.target>this.rows[0]?-1*this.rows.length:0,r=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],i=[],a=this.rows.length+o,s=o;a>s;s+=1)i.push(this.target+s);n.moveRows(i.slice(),r),e.render(),e.selectCell(this.rows[0],0,this.rows[this.rows.length-1],e.countCols()-1,!1,!1)},a.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.target>this.rows[0]?this.target-this.rows.length:this.target;e.selectCell(o,0,o+this.rows.length-1,e.countCols()-1,!1,!1)};var C=p.default.getSingleton();C.add("afterInit",s),C.add("afterUpdateSettings",s),C.register("beforeUndo"),C.register("afterUndo"),C.register("beforeRedo"),C.register("afterRedo"),t.default=a}]).default});