handsontable 13.1.0-next-f6ea50b-20230811 → 13.1.0-next-68e93c1-20230811
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +6 -6
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +1 -1
- package/dist/handsontable.js +6 -6
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +1 -1
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +1 -1
package/dist/handsontable.js
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 13.1.0-next-
|
29
|
-
* Release date:
|
28
|
+
* Version: 13.1.0-next-68e93c1-20230811
|
29
|
+
* Release date: 23/08/2023 (built at 11/08/2023 10:45:12)
|
30
30
|
*/
|
31
31
|
(function webpackUniversalModuleDefinition(root, factory) {
|
32
32
|
if(typeof exports === 'object' && typeof module === 'object')
|
@@ -105,8 +105,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
105
105
|
Handsontable.CellCoords = _src.CellCoords;
|
106
106
|
Handsontable.CellRange = _src.CellRange;
|
107
107
|
Handsontable.packageName = 'handsontable';
|
108
|
-
Handsontable.buildDate = "11/08/2023
|
109
|
-
Handsontable.version = "13.1.0-next-
|
108
|
+
Handsontable.buildDate = "11/08/2023 10:45:12";
|
109
|
+
Handsontable.version = "13.1.0-next-68e93c1-20230811";
|
110
110
|
Handsontable.languages = {
|
111
111
|
dictionaryKeys: _registry.dictionaryKeys,
|
112
112
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
@@ -8341,7 +8341,7 @@ const domMessages = {
|
|
8341
8341
|
function _injectProductInfo(key, element) {
|
8342
8342
|
const hasValidType = !isEmpty(key);
|
8343
8343
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
8344
|
-
const hotVersion = "13.1.0-next-
|
8344
|
+
const hotVersion = "13.1.0-next-68e93c1-20230811";
|
8345
8345
|
let keyValidityDate;
|
8346
8346
|
let consoleMessageState = 'invalid';
|
8347
8347
|
let domMessageState = 'invalid';
|
@@ -8349,7 +8349,7 @@ function _injectProductInfo(key, element) {
|
|
8349
8349
|
const schemaValidity = _checkKeySchema(key);
|
8350
8350
|
if (hasValidType || isNonCommercial || schemaValidity) {
|
8351
8351
|
if (schemaValidity) {
|
8352
|
-
const releaseDate = (0, _moment.default)("
|
8352
|
+
const releaseDate = (0, _moment.default)("23/08/2023", 'DD/MM/YYYY');
|
8353
8353
|
const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
|
8354
8354
|
const keyValidityDays = _extractTime(key);
|
8355
8355
|
keyValidityDate = (0, _moment.default)((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
|
@@ -26,8 +26,8 @@
|
|
26
26
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
27
27
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
28
28
|
*
|
29
|
-
* Version: 13.1.0-next-
|
30
|
-
* Release date:
|
29
|
+
* Version: 13.1.0-next-68e93c1-20230811
|
30
|
+
* Release date: 23/08/2023 (built at 11/08/2023 10:45:35)
|
31
31
|
*/.handsontable .table td,.handsontable .table th{border-top:none}.handsontable tr{background:#fff}.handsontable td{background-color:inherit}.handsontable .table caption+thead tr:first-child td,.handsontable .table caption+thead tr:first-child th,.handsontable .table colgroup+thead tr:first-child td,.handsontable .table colgroup+thead tr:first-child th,.handsontable .table thead:first-child tr:first-child td,.handsontable .table thead:first-child tr:first-child th{border-top:1px solid #ccc}.handsontable .table-bordered{border:0;border-collapse:separate}.handsontable .table-bordered td,.handsontable .table-bordered th{border-left:none}.handsontable .table-bordered td:first-child,.handsontable .table-bordered th:first-child{border-left:1px solid #ccc}.handsontable .table>tbody>tr>td,.handsontable .table>tbody>tr>th,.handsontable .table>tfoot>tr>td,.handsontable .table>tfoot>tr>th,.handsontable .table>thead>tr>td,.handsontable .table>thead>tr>th{line-height:21px;padding:0}.col-lg-1.handsontable,.col-lg-10.handsontable,.col-lg-11.handsontable,.col-lg-12.handsontable,.col-lg-2.handsontable,.col-lg-3.handsontable,.col-lg-4.handsontable,.col-lg-5.handsontable,.col-lg-6.handsontable,.col-lg-7.handsontable,.col-lg-8.handsontable,.col-lg-9.handsontable,.col-md-1.handsontable,.col-md-10.handsontable,.col-md-11.handsontable,.col-md-12.handsontable,.col-md-2.handsontable,.col-md-3.handsontable,.col-md-4.handsontable,.col-md-5.handsontable,.col-md-6.handsontable,.col-md-7.handsontable,.col-md-8.handsontable,.col-md-9.handsontable .col-sm-1.handsontable,.col-sm-10.handsontable,.col-sm-11.handsontable,.col-sm-12.handsontable,.col-sm-2.handsontable,.col-sm-3.handsontable,.col-sm-4.handsontable,.col-sm-5.handsontable,.col-sm-6.handsontable,.col-sm-7.handsontable,.col-sm-8.handsontable,.col-sm-9.handsontable .col-xs-1.handsontable,.col-xs-10.handsontable,.col-xs-11.handsontable,.col-xs-12.handsontable,.col-xs-2.handsontable,.col-xs-3.handsontable,.col-xs-4.handsontable,.col-xs-5.handsontable,.col-xs-6.handsontable,.col-xs-7.handsontable,.col-xs-8.handsontable,.col-xs-9.handsontable{padding-left:0;padding-right:0}.handsontable .table-striped>tbody>tr:nth-of-type(2n){background-color:#fff}.handsontable{position:relative}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable .wtHider{width:0}.handsontable .wtSpreader{height:auto;position:relative;width:0}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable td,.handsontable textarea,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:auto}.handsontable table.htCore{border-collapse:separate;border-spacing:0;border-width:0;cursor:default;margin:0;max-height:none;max-width:none;outline-width:0;table-layout:fixed;width:0}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{background-color:#fff;border-bottom:1px solid #ccc;border-left-width:0;border-right:1px solid #ccc;border-top-width:0;empty-cells:show;height:22px;line-height:21px;outline-width:0;overflow:hidden;padding:0 4px;vertical-align:top;white-space:pre-wrap}[dir=rtl].handsontable td,[dir=rtl].handsontable th{border-left:1px solid #ccc;border-right-width:0}.handsontable th:last-child{border-bottom:1px solid #ccc;border-left:none;border-right:1px solid #ccc}[dir=rtl].handsontable th:last-child{border-left:1px solid #ccc;border-right:none}.handsontable td:first-of-type,.handsontable th:first-child,.handsontable th:nth-child(2){border-left:1px solid #ccc}[dir=rtl].handsontable td:first-of-type,[dir=rtl].handsontable th:first-child,[dir=rtl].handsontable th:nth-child(2){border-right:1px solid #ccc}.handsontable .ht_clone_top th:nth-child(2){border-left-width:0;border-right:1px solid #ccc}[dir=rtl].handsontable .ht_clone_top th:nth-child(2){border-left:1px solid #ccc;border-right-width:0}.handsontable.htRowHeaders thead tr th:nth-child(2){border-left:1px solid #ccc}[dir=rtl].handsontable.htRowHeaders thead tr th:nth-child(2){border-right:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable tbody tr th,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top) thead tr th:first-child{border-left:1px solid #ccc;border-right-width:0}[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable tbody tr th,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top) thead tr th:first-child{border-left-width:0;border-right:1px solid #ccc}.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr:last-child th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#f0f0f0;color:#222;font-weight:400;text-align:center;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable span.colHeader{display:inline-block;line-height:1.1}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10}.handsontable .wtBorder.area{z-index:8}.handsontable .wtBorder.fill{z-index:6}.handsontable .wtBorder.corner{cursor:crosshair;font-size:0}.ht_clone_master{z-index:100}.ht_clone_inline_start{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner{z-index:180}.handsontable col.hidden{width:0!important}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_clone_bottom,.ht_clone_inline_start,.ht_clone_top,.ht_master{overflow:hidden}.ht_master .wtHolder{overflow:auto}.handsontable .ht_clone_inline_start thead,.handsontable .ht_master thead,.handsontable .ht_master tr th{visibility:hidden}.ht_clone_bottom .wtHolder,.ht_clone_inline_start .wtHolder,.ht_clone_top .wtHolder{overflow:hidden}.handsontable{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:13px;font-weight:400;touch-action:manipulation}.handsontable a{color:#104acc}.handsontable.htAutoSize{left:-99000px;position:absolute;top:-99000px;visibility:hidden}.handsontable td.htInvalid{background-color:#ff4c42!important}.handsontable td.htNoWrap{white-space:nowrap}.hot-display-license-info{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:10px;font-weight:400;padding:5px 0 3px;text-align:left}.hot-display-license-info a{color:#104acc;font-size:10px}.handsontable .manualColumnResizer{cursor:col-resize;height:25px;position:absolute;top:0;width:5px;z-index:210}.handsontable .manualRowResizer{cursor:row-resize;height:5px;left:0;position:absolute;width:50px;z-index:210}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#34a9db}.handsontable .manualColumnResizerGuide{background-color:#34a9db;border-left:none;border-right:1px dashed #777;display:none;margin-left:5px;margin-right:unset;position:absolute;right:unset;top:0;width:0}[dir=rtl].handsontable .manualColumnResizerGuide{border-left:1px dashed #777;border-right:none;left:unset;margin-left:unset;margin-right:5px}.handsontable .manualRowResizerGuide{background-color:#34a9db;border-bottom:1px dashed #777;bottom:0;display:none;height:0;left:0;margin-top:5px;position:absolute}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:209}.handsontable .columnSorting{position:relative}.handsontable .columnSorting.sortAction:hover{cursor:pointer;text-decoration:underline}.handsontable span.colHeader.columnSorting:before{background-position-x:right;background-repeat:no-repeat;background-size:contain;content:"";height:10px;left:unset;margin-top:-6px;padding-left:8px;padding-right:0;position:absolute;right:-9px;top:50%;width:5px}[dir=rtl].handsontable span.colHeader.columnSorting:before{background-position-x:left;left:-9px;padding-left:0;padding-right:8px;right:unset}.handsontable span.colHeader.columnSorting.ascending:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFNJREFUeAHtzjkSgCAUBNHPgsoy97+ulGXRqJE5L+xkxoYt2UdsLb5bqFINz+aLuuLn5rIu2RkO3fZpWENimNgiw6iBYRTPMLJjGFxQZ1hxxb/xBI1qC8k39CdKAAAAAElFTkSuQmCC)}.handsontable span.colHeader.columnSorting.descending:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFJJREFUeAHtzjkSgCAQRNFmQYUZ7n9dKUvru0TmvPAn3br0QfgdZ5xx6x+rQn23GqTYnq1FDcnuzZIO2WmedVqIRVxgGKEyjNgYRjKGkZ1hFIZ3I70LyM0VtU8AAAAASUVORK5CYII=)}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):after{content:"*";display:inline-block;padding-right:20px;position:relative}.handsontable td.area,.handsontable td.area-1,.handsontable td.area-2,.handsontable td.area-3,.handsontable td.area-4,.handsontable td.area-5,.handsontable td.area-6,.handsontable td.area-7{position:relative}.handsontable td.area-1:before,.handsontable td.area-2:before,.handsontable td.area-3:before,.handsontable td.area-4:before,.handsontable td.area-5:before,.handsontable td.area-6:before,.handsontable td.area-7:before,.handsontable td.area:before{background:#005eff;bottom:0;bottom:-100%\9;content:"";left:0;position:absolute;right:0;top:0}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.handsontable td.area-1:before,.handsontable td.area-2:before,.handsontable td.area-3:before,.handsontable td.area-4:before,.handsontable td.area-5:before,.handsontable td.area-6:before,.handsontable td.area-7:before,.handsontable td.area:before{bottom:-100%}}.handsontable td.area:before{opacity:.1}.handsontable td.area-1:before{opacity:.2}.handsontable td.area-2:before{opacity:.27}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.41}.handsontable td.area-5:before{opacity:.47}.handsontable td.area-6:before{opacity:.54}.handsontable td.area-7:before{opacity:.58}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#dcdcdc}.handsontable tbody th.ht__active_highlight,.handsontable thead th.ht__active_highlight{background-color:#8eb0e7;color:#000}.handsontableInput{background-color:#fff;border:none;border-radius:0;box-shadow:inset 0 0 0 2px #5292f7;color:#000;display:block;font-family:inherit;font-size:inherit;line-height:21px;margin:0;outline-width:0;padding:1px 5px 0;resize:none}.handsontableInput:focus{outline:none}.handsontableInputHolder{left:0;position:absolute;top:0}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute;width:auto}.htSelectEditor:focus{outline:none}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{color:#777;content:"▶";font-size:9px;position:absolute;right:5px}[dir=rtl].handsontable .htSubmenu :after{content:""}[dir=rtl].handsontable .htSubmenu :before{color:#777;content:"◀";font-size:9px;left:5px;position:absolute}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{background:#fff;border:1px solid #ccc;border-collapse:separate}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-color:transparent!important}.handsontable.listbox td,.handsontable.listbox th{text-overflow:ellipsis;white-space:nowrap}.handsontable.listbox td.htDimmed{color:inherit;cursor:default;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr td.current,.handsontable.listbox tr:hover td{background:#eee}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.handsontable .collapsibleIndicator{background:#eee;border:1px solid #a6a6a6;border-radius:10px;-webkit-box-shadow:0 0 0 6px #eee;-moz-box-shadow:0 0 0 6px #eee;box-shadow:0 0 0 6px #eee;color:#222;cursor:pointer;font-size:10px;height:10px;left:unset;line-height:8px;position:absolute;right:5px;text-align:center;top:50%;transform:translateY(-50%);width:10px}[dir=rtl].handsontable .collapsibleIndicator{left:5px;right:unset}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.handsontable.mobile .handsontableInput:focus{-webkit-appearance:none;-webkit-box-shadow:inset 0 0 0 2px #5292f7;-moz-box-shadow:inset 0 0 0 2px #5292f7;box-shadow:inset 0 0 0 2px #5292f7}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{left:-10000px;right:unset;top:-10000px;z-index:9999}[dir=rtl].handsontable .bottomSelectionHandle,[dir=rtl].handsontable .bottomSelectionHandle-HitArea,[dir=rtl].handsontable .topSelectionHandle,[dir=rtl].handsontable .topSelectionHandle-HitArea{left:unset;right:-10000px}.handsontable.hide-tween{-webkit-animation:opacity-hide .3s;animation:opacity-hide .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable .htAutocompleteArrow{color:#eee;cursor:default;float:right;font-size:10px;text-align:center;width:16px}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable td.area .htAutocompleteArrow{color:#d3d3d3}.handsontable .htCheckboxRendererInput{display:inline-block}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{cursor:pointer;display:inline-block;font-size:inherit;vertical-align:middle}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{border-left:6px solid transparent;border-right:none;border-top:6px solid #000;content:"";left:unset;position:absolute;right:0;top:0}[dir=rtl].handsontable .htCommentCell:after{border-left:none;border-right:6px solid transparent;left:0;right:unset}.htCommentsContainer .htComments{display:none;position:absolute;z-index:1059}.htCommentsContainer .htCommentTextArea{-webkit-appearance:none;background-color:#fff;border:none;border-left:3px solid #ccc;box-shadow:0 1px 3px rgba(0,0,0,.118),0 1px 2px rgba(0,0,0,.239);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:12px;height:90px;outline:0!important;padding:5px;width:215px}[dir=rtl].htCommentsContainer .htCommentTextArea{border-left:none;border-right:3px solid #ccc}.htCommentsContainer .htCommentTextArea:focus{border-left:3px solid #5292f7;border-right:none;box-shadow:0 1px 3px rgba(0,0,0,.118),0 1px 2px rgba(0,0,0,.239),inset 0 0 0 1px #5292f7}[dir=rtl].htCommentsContainer .htCommentTextArea:focus{border-left:none;border-right:3px solid #5292f7}
|
32
32
|
/*!
|
33
33
|
* Handsontable ContextMenu
|
package/dist/handsontable.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("pikaday"),require("moment"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["dompurify","pikaday","moment","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("dompurify"),require("pikaday"),require("moment"),require("numbro")):e.Handsontable=t(e.DOMPurify,e.Pikaday,e.moment,e.numbro)}("undefined"!=typeof self?self:this,((e,t,o,s)=>(()=>{var n=[,e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,o(3),o(4),o(5),o(6);var n=s(o(7)),r=o(209),i=o(253),l=s(o(123)),a=o(232),h=o(260),d=o(275),c=o(279),u=o(145);function g(e,t){const o=new n.default(e,t||{},r.rootInstanceSymbol);return o.init(),o}t.CellCoords=u.CellCoords,t.CellRange=u.CellRange,(0,h.registerCellType)(d.TextCellType),g.editors={BaseEditor:c.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new n.default(e,t,r.rootInstanceSymbol)},g.DefaultSettings=(0,i.metaSchemaFactory)(),g.hooks=l.default.getSingleton(),g.CellCoords=u.CellCoords,g.CellRange=u.CellRange,g.packageName="handsontable",g.buildDate="11/08/2023 09:54:43",g.version="13.1.0-next-f6ea50b-20230811",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};var f=g;t.default=f},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,t.default=function(e,t){var o;let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],D=!1,H=this;const L=new h.default(H);let k,V,F,W,B=!0;(0,R.hasValidParameter)(s)&&(0,R.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const U=null!==(o=null==t?void 0:t.layoutDirection)&&void 0!==o?o:"inherit",j=["rtl","ltr"].includes(U)?U:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",j),this.isRtl=function(){return"rtl"===j},this.isLtr=function(){return!H.isRtl()},this.getDirectionFactor=function(){return H.isLtr()?1:-1},t.language=(0,_.getValidLanguageCode)(t.language);const Y=new I.MetaManager(H,t,[I.DynamicCellMetaMod,I.ExtendMetaPropertiesMod]),G=Y.getTableMeta(),z=Y.getGlobalMeta(),K=(0,N.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,R.isRootInstance)(this)&&(0,i._injectProductInfo)(t.licenseKey,e);this.guid=`ht_${(0,C.randomString)()}`,this.columnIndexMapper=new S.IndexMapper,this.rowIndexMapper=new S.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(e=>{H.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(e=>{H.runHooks("afterRowSequenceChange",e)})),V=new v.default(H),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);const $=e=>{const{row:t,col:o}=e;return H._createCellCoords(t>=0?H.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?H.columnIndexMapper.getRenderableFromVisualIndex(o):o)};let X=new M.Selection(G,{rowIndexMapper:()=>H.rowIndexMapper,columnIndexMapper:()=>H.columnIndexMapper,countCols:()=>H.countCols(),countRows:()=>H.countRows(),propToCol:e=>k.propToCol(e),isEditorOpened:()=>!!H.getActiveEditor()&&H.getActiveEditor().isOpened(),countColsTranslated:()=>this.view.countRenderableColumns(),countRowsTranslated:()=>this.view.countRenderableRows(),getShortcutManager:()=>H.getShortcutManager(),createCellCoords:(e,t)=>H._createCellCoords(e,t),createCellRange:(e,t,o)=>H._createCellRange(e,t,o),visualToRenderableCoords:$,renderableToVisualCoords:e=>{const{row:t,col:o}=e;return H._createCellCoords(t>=0?H.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?H.columnIndexMapper.getVisualFromRenderableIndex(o):o)},isDisabledCellSelection:(e,t)=>H.getCellMeta(e,t).disableVisualSelection});this.selection=X;const q=e=>{let{hiddenIndexesChanged:t}=e;t&&this.selection.refresh()};function Q(e){const t=(0,O.normalizeLanguageCode)(e);(0,_.hasLanguageDictionary)(t)?(H.runHooks("beforeLanguageChange",t),z.language=t,H.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}function J(e,t){const o="className"===e?H.rootElement:H.table;if(B)(0,n.addClass)(o,t);else{let s=[],r=[];z[e]&&(s=Array.isArray(z[e])?z[e]:(0,c.stringToArray)(z[e])),t&&(r=Array.isArray(t)?t:(0,c.stringToArray)(t));const i=(0,c.getDifferenceOfArrays)(s,r),l=(0,c.getDifferenceOfArrays)(r,s);i.length&&(0,n.removeClass)(o,i),l.length&&(0,n.addClass)(o,l)}z[e]=t}function Z(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ee(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function te(e,t,o){if(!e.length)return;const s=H.getActiveEditor(),r=new Z;let i=!0;r.onQueueEmpty=e=>{s&&i&&s.cancelChanges(),o(e)};for(let o=e.length-1;o>=0;o--){const[s,l,,a]=e[o],h=k.propToCol(l),d=H.getCellMeta(s,h);"numeric"===d.type&&"string"==typeof a&&(0,w.isNumericLike)(a)&&(e[o][3]=ee(a)),H.getCellValidator(d)&&(r.addValidatorToQueue(),H.validateCell(e[o][3],d,function(t,o){return function(s){if("boolean"!=typeof s)throw new Error("Validation error: result is not boolean");if(!1===s&&!1===o.allowInvalid){i=!1,e.splice(t,1),o.valid=!0;const s=H.getCell(o.visualRow,o.visualCol);null!==s&&(0,n.removeClass)(s,G.invalidCellClassName)}r.removeValidatorFormQueue()}}(o,d),t))}r.checkIfQueueIsEmpty()}function oe(e,t){let o=e.length-1;if(o<0)return;for(;o>=0;o--){let s=!1;if(null!==e[o]){if(null!==e[o][2]&&void 0!==e[o][2]||null!==e[o][3]&&void 0!==e[o][3]){if(G.allowInsertRow)for(;e[o][0]>H.countRows()-1;){const{delta:e}=k.createRow(void 0,void 0,{source:t});if(0===e){s=!0;break}}if("array"===H.dataType&&(!G.columns||0===G.columns.length)&&G.allowInsertColumn)for(;k.propToCol(e[o][1])>H.countCols()-1;){const{delta:e}=k.createCol(void 0,void 0,{source:t});if(0===e){s=!0;break}}s||k.set(e[o][0],e[o][1],e[o][3])}}else e.splice(o,1)}H.forceFullRender=!0,F.adjustRowsAndCols(),H.runHooks("beforeChangeRender",e,t),W.lockEditor(),H._refreshBorders(null),W.unlockEditor(),H.view.adjustElementsSize(),H.runHooks("afterChange",e,t||"edit");const s=H.getActiveEditor();s&&(0,i.isDefined)(s.refreshValue)&&s.refreshValue()}function se(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function ne(e,t){const o=H.getActiveEditor(),s=H.runHooks("beforeChange",e,t||"edit"),n=e.filter((e=>null!==e));return!1===s||0===n.length?(o&&o.cancelChanges(),[]):n}this.columnIndexMapper.addLocalHook("cacheUpdated",q),this.rowIndexMapper.addLocalHook("cacheUpdated",q),this.selection.addLocalHook("beforeSetRangeStart",(e=>{this.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(e=>{this.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(e=>{this.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=this.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=this.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(e=>{const t=(0,d.createObjectPropListener)(!1),o=this.selection.getSelectedRange(),{from:s,to:r}=o.current(),i=o.size()-1;this.runHooks("afterSelection",s.row,s.col,r.row,r.col,t,i),this.runHooks("afterSelectionByProp",s.row,H.colToProp(s.col),r.row,H.colToProp(r.col),t,i);const l=this.selection.isSelectedByAnyHeader(),a=this.selection.selectedRange.current();let h=!0;D&&(h=!1),t.isTouched()&&(h=!t.value);const c=this.selection.isSelectedByRowHeader(),u=this.selection.isSelectedByColumnHeader();!1!==h&&(l?c?this.view.scrollViewportVertically(H.rowIndexMapper.getRenderableFromVisualIndex(e.row)):u&&this.view.scrollViewportHorizontally(H.columnIndexMapper.getRenderableFromVisualIndex(e.col)):a&&!this.selection.isMultiple()?this.view.scrollViewport($(a.from)):this.view.scrollViewport($(e))),c&&u?(0,n.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):c?((0,n.removeClass)(this.rootElement,"ht__selection--columns"),(0,n.addClass)(this.rootElement,"ht__selection--rows")):u?((0,n.removeClass)(this.rootElement,"ht__selection--rows"),(0,n.addClass)(this.rootElement,"ht__selection--columns")):(0,n.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(e=>{const t=e.length-1,{from:o,to:s}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,s.row,s.col,t),this.runHooks("afterSelectionEndByProp",o.row,H.colToProp(o.col),s.row,H.colToProp(s.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(e=>{this.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",((e,t,o)=>{this.runHooks("afterModifyTransformStart",e,t,o)})),this.selection.addLocalHook("beforeModifyTransformEnd",(e=>{this.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",((e,t,o)=>{this.runHooks("afterModifyTransformEnd",e,t,o)})),this.selection.addLocalHook("afterDeselect",(()=>{W.destroyEditor(),this._refreshBorders(),(0,n.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(e=>{this.alter("insert_row_above",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(e=>{this.alter("insert_col_start",e,1,"auto")})),F={alter(e,t){var o,s;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;const a=e=>{if(0===e.length)return[];const t=[...e];t.sort(((e,t)=>{let[o]=e,[s]=t;return o===s?0:o>s?1:-1}));return(0,c.arrayReduce)(t,((e,t)=>{let[o,s]=t;const n=e[e.length-1],[r,i]=n,l=r+i;if(o<=l){const e=Math.max(s-(l-o),0);n[1]+=e}else e.push([o,s]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const l=H.countSourceRows();if(G.maxRows===l)return;const h="insert_row_below"===e?"below":"above";t=null!==(o=t)&&void 0!==o?o:"below"===h?l:0;const{delta:d,startPhysicalIndex:u}=k.createRow(t,n,{source:r,mode:h});if(d){const e=X.selectedRange.current(),t=null==e?void 0:e.from,o=null==t?void 0:t.row,s=H.toVisualRow(u);if(X.isSelectedByCorner())H.selectAll();else if((0,i.isDefined)(o)&&o>=s){const{row:s,col:n}=e.to;let r=t.col;X.isSelectedByRowHeader()&&(r=-1),X.getSelectedRange().pop(),X.setRangeStartOnly(H._createCellCoords(o+d,r),!0),X.setRangeEnd(H._createCellCoords(s+d,n))}else H._refreshBorders()}break;case"insert_col_start":case"insert_col_end":const g="insert_col_end"===e?"end":"start";t=null!==(s=t)&&void 0!==s?s:"end"===g?H.countSourceCols():0;const{delta:f,startPhysicalIndex:p}=k.createCol(t,n,{source:r,mode:g});if(f){if(Array.isArray(G.colHeaders)){const e=[H.toVisualColumn(p),0];e.length+=f,Array.prototype.splice.apply(G.colHeaders,e)}const e=X.selectedRange.current(),t=null==e?void 0:e.from,o=null==t?void 0:t.col,s=H.toVisualColumn(p);if(X.isSelectedByCorner())H.selectAll();else if((0,i.isDefined)(o)&&o>=s){const{row:s,col:n}=e.to;let r=t.row;X.isSelectedByColumnHeader()&&(r=-1),X.getSelectedRange().pop(),X.setRangeStartOnly(H._createCellCoords(r,o+f),!0),X.setRangeEnd(H._createCellCoords(s,n+f))}else H._refreshBorders()}break;case"remove_row":const m=e=>{let t=0;(0,c.arrayEach)(e,(e=>{let[o,s]=e;const n=(0,i.isEmpty)(o)?H.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!k.removeRow(o,s,r))return;const l=H.countRows(),a=G.fixedRowsTop;a>=n+1&&(G.fixedRowsTop-=Math.min(s,a-n));const h=G.fixedRowsBottom;h&&n>=l-h&&(G.fixedRowsBottom-=Math.min(s,h)),t+=s}))};Array.isArray(t)?m(a(t)):m([[t,n]]),F.adjustRowsAndCols(),H._refreshBorders();break;case"remove_col":const C=e=>{let t=0;(0,c.arrayEach)(e,(e=>{let[o,s]=e;const n=(0,i.isEmpty)(o)?H.countCols()-1:Math.max(o-t,0);let l=H.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!k.removeCol(o,s,r))return;const a=G.fixedColumnsStart;a>=n+1&&(G.fixedColumnsStart-=Math.min(s,a-n)),Array.isArray(G.colHeaders)&&(void 0===l&&(l=-1),G.colHeaders.splice(l,s)),t+=s}))};Array.isArray(t)?C(a(t)):C([[t,n]]),F.adjustRowsAndCols(),H._refreshBorders();break;default:throw new Error(`There is no such action "${e}"`)}l||F.adjustRowsAndCols()},adjustRowsAndCols(){const e=G.minRows,t=G.minSpareRows,o=G.minCols,s=G.minSpareCols;if(0===H.countRows()&&0===H.countCols()&&X.deselect(),e){const t=H.countRows();t<e&&k.createRow(t,e-t,{source:"auto"})}if(t){const e=H.countEmptyRows(!0);if(e<t){const o=t-e,s=Math.min(o,G.maxRows-H.countSourceRows());k.createRow(H.countRows(),s,{source:"auto"})}}{let e;(o||s)&&(e=H.countEmptyCols(!0));let t=H.countCols();if(o&&!G.columns&&t<o){const s=o-t;e+=s,k.createCol(t,s,{source:"auto"})}if(s&&!G.columns&&"array"===H.dataType&&e<s){t=H.countCols();const o=s-e,n=Math.min(o,G.maxCols-t);k.createCol(t,n,{source:"auto"})}}if(X.isSelected()){const e=H.countRows(),t=H.countCols();(0,c.arrayEach)(X.selectedRange,(o=>{let s=!1,n=o.from.row,r=o.from.col,i=o.to.row,l=o.to.col;n>e-1?(n=e-1,s=!0,i>n&&(i=n)):i>e-1&&(i=e-1,s=!0,n>i&&(n=i)),r>t-1?(r=t-1,s=!0,l>r&&(l=r)):l>t-1&&(l=t-1,s=!0,r>l&&(r=l)),s&&H.selectCell(n,r,i,l)}))}H.view&&H.view.adjustElementsSize()},populateFromArray(e,t,o,s,n){let r,i,l,a;const h=[],u={},g=[],f=e.row,p=e.col;if(i=t.length,0===i)return!1;let m=0,C=0;switch((0,d.isObject)(o)&&(m=o.col-p+1,C=o.row-f+1),n){case"shift_down":const n=(0,c.pivot)(t),w=n.length,y=Math.max(w,m),v=H.getData().slice(f),E=(0,c.pivot)(v).slice(p,p+y);for(l=0;l<y;l+=1)if(l<w){for(r=0,i=n[l].length;r<C-i;r+=1)n[l].push(n[l][r%i]);l<E.length?g.push(n[l].concat(E[l])):g.push(n[l].concat(new Array(v.length).fill(null)))}else g.push(n[l%w].concat(E[l]));H.populateFromArray(f,p,(0,c.pivot)(g));break;case"shift_right":const S=t.length,R=Math.max(S,C),b=H.getData().slice(f).map((e=>e.slice(p)));for(r=0;r<R;r+=1)if(r<S){for(l=0,a=t[r].length;l<m-a;l+=1)t[r].push(t[r][l%a]);if(r<b.length)for(let e=0;e<b[r].length;e+=1)t[r].push(b[r][e]);else t[r].push(...new Array(b[0].length).fill(null))}else t.push(t[r%i].slice(0,R).concat(b[r]));H.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let T,_=0,O=0,M=!0;const I=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const s=t[e%t.length];return null!==o?s[o%s.length]:s},N=t.length,A=o?o.row-e.row+1:0;for(i=o?A:Math.max(N,A),r=0;r<i&&!(o&&u.row>o.row&&A>N||!G.allowInsertRow&&u.row>H.countRows()-1||u.row>=G.maxRows);r++){const t=r-_,n=I(t).length,c=o?o.col-e.col+1:0;if(a=o?c:Math.max(n,c),u.col=e.col,T=H.getCellMeta(u.row,u.col),"CopyPaste.paste"!==s&&"Autofill.fill"!==s||!T.skipRowOnPaste){for(O=0,l=0;l<a&&!(o&&u.col>o.col&&c>n||!G.allowInsertColumn&&u.col>H.countCols()-1||u.col>=G.maxCols);l++){if(T=H.getCellMeta(u.row,u.col),("CopyPaste.paste"===s||"Autofill.fill"===s)&&T.skipColumnOnPaste){O+=1,u.col+=1,a+=1;continue}if(T.readOnly&&"UndoRedo.undo"!==s){u.col+=1;continue}let e=I(t,l-O),o=H.getDataAtCell(u.row,u.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===o&&(o=[]),null===o||"object"!=typeof o)M=!1;else{const t=(0,d.duckSchema)(Array.isArray(o)?o:o[0]||o),s=(0,d.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,d.isObjectEqual)(t,s)||Array.isArray(t)&&Array.isArray(s)?e=(0,d.deepClone)(e):M=!1}else null!==o&&"object"==typeof o&&(M=!1);M&&h.push([u.row,u.col,e]),M=!0,u.col+=1}u.row+=1}else _+=1,u.row+=1,i+=1}H.setDataAtCell(h,null,null,s||"populateFromArray")}}},this.init=function(){V.setData(G.data),H.runHooks("beforeInit"),((0,l.isMobileBrowser)()||(0,l.isIpadOS)())&&(0,n.addClass)(H.rootElement,"mobile"),this.updateSettings(G,!0),this.view=new y.default(this),W=a.default.getInstance(H,G,X),H.runHooks("init"),this.forceFullRender=!0,this.view.render(),B&&null===H.rootElement.offsetParent&&(0,n.observeVisibilityChangeOnce)(H.rootElement,(()=>{H.view._wt.wtOverlays.updateLastSpreaderSize(),H.render(),H.view.adjustElementsSize()})),"object"==typeof B&&(H.runHooks("afterChange",B[0],B[1]),B=!1),H.runHooks("afterInit")},this._createCellCoords=function(e,t){return H.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return H.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,s){let n=H.getCellValidator(t);function l(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const s=t.visualCol,n=t.visualRow,r=H.getCell(n,s,!0);if(r&&"TH"!==r.nodeName){const e=H.rowIndexMapper.getRenderableFromVisualIndex(n),t=H.columnIndexMapper.getRenderableFromVisualIndex(s);H.view._wt.getSetting("cellRenderer",e,t,r)}o(e)}var a;(0,i.isRegExp)(n)&&(a=n,n=function(e,t){t(a.test(e))}),(0,r.isFunction)(n)?(e=H.runHooks("beforeValidate",e,t.visualRow,t.prop,s),H._registerImmediate((()=>{n.call(t,e,(o=>{H&&(o=H.runHooks("afterValidate",o,e,t.visualRow,t.prop,s),t.valid=o,l(o),H.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,s))}))}))):H._registerImmediate((()=>{t.valid=!0,l(t.valid,!1)}))},this.setDataAtCell=function(e,t,o,s){const n=se(e,t,o),r=[];let i,l,a,h=s;for(i=0,l=n.length;i<l;i++){if("object"!=typeof n[i])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof n[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");a=n[i][1]>=this.countCols()?n[i][1]:k.colToProp(n[i][1]),r.push([n[i][0],a,V.getAtCell(this.toPhysicalRow(n[i][0]),n[i][1]),n[i][2]])}h||"object"!=typeof e||(h=t);const d=ne(r,s);H.runHooks("afterSetDataAtCell",d,h),te(d,h,(()=>{oe(d,h)}))},this.setDataAtRowProp=function(e,t,o,s){const n=se(e,t,o),r=[];let i,l,a=s;for(i=0,l=n.length;i<l;i++)r.push([n[i][0],n[i][1],V.getAtCell(this.toPhysicalRow(n[i][0]),n[i][1]),n[i][2]]);a||"object"!=typeof e||(a=t);const h=ne(r,s);H.runHooks("afterSetDataAtRowProp",h,a),te(h,a,(()=>{oe(h,a)}))},this.listen=function(){H&&!H.isListening()&&(x=H.guid,H.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(x=null,H.runHooks("afterUnlisten"))},this.isListening=function(){return x===H.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];H._refreshBorders(e,t)},this.populateFromArray=function(e,t,o,s,n,r,i){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const l="number"==typeof s?H._createCellCoords(s,n):null;return F.populateFromArray(H._createCellCoords(e,t),o,l,r,i)},this.spliceCol=function(e,t,o){for(var s=arguments.length,n=new Array(s>3?s-3:0),r=3;r<s;r++)n[r-3]=arguments[r];return k.spliceCol(e,t,o,...n)},this.spliceRow=function(e,t,o){for(var s=arguments.length,n=new Array(s>3?s-3:0),r=3;r<s;r++)n[r-3]=arguments[r];return k.spliceRow(e,t,o,...n)},this.getSelected=function(){if(X.isSelected())return(0,c.arrayMap)(X.getSelectedRange(),(e=>{let{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]}))},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(X.isSelected())return Array.from(X.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!X.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,c.arrayEach)(X.getSelectedRange(),(e=>{const o=e.getTopStartCorner(),s=e.getBottomEndCorner();(0,w.rangeEach)(o.row,s.row,(e=>{(0,w.rangeEach)(o.col,s.col,(o=>{this.getCellMeta(e,o).readOnly||t.push([e,o,null])}))}))})),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(W.lockEditor(),this._refreshBorders(null),W.unlockEditor()))},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const o=e();return this.resumeExecution(t),o},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!H.view)return;const{width:e,height:t}=H.view.getLastSize(),{width:o,height:s}=H.rootElement.getBoundingClientRect(),n=o!==e||s!==t;!1===H.runHooks("beforeRefreshDimensions",{width:e,height:t},{width:o,height:s},n)||((n||H.view._wt.wtOverlays.scrollableElement===H.rootWindow)&&(H.view.setLastSize(o,s),H.render()),H.runHooks("afterRefreshDimensions",{width:e,height:t},{width:o,height:s},n))},this.updateData=function(e,t){(0,I.replaceData)(e,(e=>{k=e}),(e=>{k=e,H.columnIndexMapper.fitToLength(this.getInitialColumnCount()),H.rowIndexMapper.fitToLength(this.countSourceRows()),F.adjustRowsAndCols()}),{hotInstance:H,dataMap:k,dataSource:V,internalSource:"updateData",source:t,metaManager:Y,firstRun:B})},this.loadData=function(e,t){(0,I.replaceData)(e,(e=>{k=e}),(()=>{Y.clearCellsCache(),H.initIndexMappers(),F.adjustRowsAndCols(),B&&(B=[null,"loadData"])}),{hotInstance:H,dataMap:k,dataSource:V,internalSource:"loadData",source:t,metaManager:Y,firstRun:B})},this.getInitialColumnCount=function(){const e=G.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,r.isFunction)(e))if("array"===H.dataType){const o=this.countSourceCols();for(let s=0;s<o;s+=1)e(s)&&(t+=1)}else"object"!==H.dataType&&"function"!==H.dataType||(t=k.colToPropCache.length);else if((0,i.isDefined)(G.dataSchema)){const e=k.getSchema();t=Array.isArray(e)?e.length:(0,d.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,o,s){return(0,i.isUndefined)(e)?k.getAll():k.getRange(H._createCellCoords(e,t),H._createCellCoords(o,s),k.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,s){return k.getCopyableText(H._createCellCoords(e,t),H._createCellCoords(o,s))},this.getCopyableData=function(e,t){return k.getCopyable(e,k.colToProp(t))},this.getSchema=function(){return k.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(B?H.loadData:H.updateData).bind(this);let s,n,l=!1;if((0,i.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,i.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,i.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(s in e)"data"===s||("language"===s?Q(e.language):"className"===s?J("className",e.className):"tableClassName"===s&&H.table?(J("tableClassName",e.tableClassName),H.view._wt.wtOverlays.syncOverlayTableClassNames()):T.default.getSingleton().isRegistered(s)||T.default.getSingleton().isDeprecated(s)?((0,r.isFunction)(e[s])||Array.isArray(e[s]))&&(e[s].initialHook=!0,H.addHook(s,e[s])):!t&&(0,d.hasOwnProperty)(e,s)&&(z[s]=e[s]));void 0===e.data&&void 0===G.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(k.createMap(),H.initIndexMappers());const a=H.countCols(),h=G.columns;if(h&&(0,r.isFunction)(h)&&(l=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||Y.clearCache(),a>0)for(s=0,n=0;s<a;s++){if(h){const e=l?h(s):h[n];e&&Y.updateColumnMeta(n,e)}n+=1}(0,i.isDefined)(e.cell)&&(0,d.objectEach)(e.cell,(e=>{H.setCellMetaObject(e.row,e.col,e)})),H.runHooks("afterCellMetaReset");let c=H.rootElement.style.height;""!==c&&(c=parseInt(H.rootElement.style.height,10));let u=e.height;if((0,r.isFunction)(u)&&(u=u()),t){H.rootElement.getAttribute("style")&&H.rootElement.setAttribute("data-initialstyle",H.rootElement.getAttribute("style"))}if(null===u){const e=H.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?H.rootElement.setAttribute("style",e):(H.rootElement.style.height="",H.rootElement.style.overflow="")}else void 0!==u&&(H.rootElement.style.height=isNaN(u)?`${u}`:`${u}px`,H.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,r.isFunction)(t)&&(t=t()),H.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(H.view&&(H.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),H.view._wt.exportSettingsAsClassNames()),H.runHooks("afterUpdateSettings",e)),F.adjustRowsAndCols(),H.view&&!B&&(H.forceFullRender=!0,W.lockEditor(),H._refreshBorders(null),H.view._wt.wtOverlays.adjustElementsSize(),W.unlockEditor()),t||!H.view||""!==c&&""!==u&&void 0!==u||c===u||H.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=H.getSelectedLast();if(G.getValue){if((0,r.isFunction)(G.getValue))return G.getValue.call(H);if(e)return H.getData()[e[0][0]][G.getValue]}else if(e)return H.getDataAtCell(e[0],e[1])},this.getSettings=function(){return G},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,s,n){F.alter(e,t,o,s,n)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t,n=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;s=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;n=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===n||null===s?null:H.view.getCellAtCoords(H._createCellCoords(n,s),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:s}=t;let n=o,r=s;return o>=0&&(n=this.rowIndexMapper.getVisualFromRenderableIndex(o)),s>=0&&(r=this.columnIndexMapper.getVisualFromRenderableIndex(s)),H._createCellCoords(n,r)},this.colToProp=function(e){return k.colToProp(e)},this.propToCol=function(e){return k.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return k.get(e,k.colToProp(t))},this.getDataAtRowProp=function(e,t){return k.get(e,t)},this.getDataAtCol=function(e){const t=[],o=k.getRange(H._createCellCoords(0,e),H._createCellCoords(G.data.length-1,e),k.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getDataAtProp=function(e){const t=[],o=k.getRange(H._createCellCoords(0,k.propToCol(e)),H._createCellCoords(G.data.length-1,k.propToCol(e)),k.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getSourceData=function(e,t,o,s){let n;return n=void 0===e?V.getData():V.getByRange(H._createCellCoords(e,t),H._createCellCoords(o,s)),n},this.getSourceDataArray=function(e,t,o,s){let n;return n=void 0===e?V.getData(!0):V.getByRange(H._createCellCoords(e,t),H._createCellCoords(o,s),!0),n},this.getSourceDataAtCol=function(e){return V.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,s){const n=se(e,t,o),r=this.hasHook("afterSetSourceDataAtCell"),l=[];r&&(0,c.arrayEach)(n,(e=>{let[t,o,s]=e;l.push([t,o,V.getAtCell(t,o),s])})),(0,c.arrayEach)(n,(e=>{let[t,o,s]=e;V.setAtCell(t,o,s)})),r&&this.runHooks("afterSetSourceDataAtCell",l,s),this.render();const a=H.getActiveEditor();a&&(0,i.isDefined)(a.refreshValue)&&a.refreshValue()},this.getSourceDataAtRow=function(e){return V.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return V.getAtCell(e,t)},this.getDataAtRow=function(e){return k.getRange(H._createCellCoords(e,0),H._createCellCoords(e,this.countCols()-1),k.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,s){const n=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,s],[r,i]=n;let[,,l,a]=n,h=null,d=null;void 0===l&&(l=r),void 0===a&&(a=i);let c="mixed";return(0,w.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),(e=>{let t=!0;return(0,w.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),(o=>{const s=this.getCellMeta(e,o);return d=s.type,h?t=h===d:h=d,t})),c=t?d:"mixed",t})),c},this.removeCellMeta=function(e,t,o){const[s,n]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let r=Y.getCellMetaKeyValue(s,n,o);!1!==H.runHooks("beforeRemoveCellMeta",e,t,o,r)&&(Y.removeCellMeta(s,n,o),H.runHooks("afterRemoveCellMeta",e,t,o,r)),r=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,s=new Array(o>2?o-2:0),n=2;n<o;n++)s[n-2]=arguments[n];if(s.length>0&&!Array.isArray(s[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&Y.removeRow(this.toPhysicalRow(e),t),s.length>0&&(0,c.arrayEach)(s.reverse(),(t=>{Y.createRow(this.toPhysicalRow(e)),(0,c.arrayEach)(t,((t,o)=>this.setCellMetaObject(e,o,t)))})),H.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,d.objectEach)(o,((o,s)=>{this.setCellMeta(e,t,s,o)}))},this.setCellMeta=function(e,t,o,s){if(!1===H.runHooks("beforeSetCellMeta",e,t,o,s))return;let n=e,r=t;e<this.countRows()&&(n=this.toPhysicalRow(e)),t<this.countCols()&&(r=this.toPhysicalColumn(t)),Y.setCellMeta(n,r,o,s),H.runHooks("afterSetCellMeta",e,t,o,s)},this.getCellsMeta=function(){return Y.getCellsMeta()},this.getCellMeta=function(e,t){let o=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===o&&(o=e),null===s&&(s=t),Y.getCellMeta(o,s,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return Y.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===H.dataType||G.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?H.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,f.getRenderer)(o):(0,i.isUndefined)(o)?(0,f.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?H.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,p.getEditor)(o):(0,i.isUndefined)(o)?(0,p.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?H.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,m.getValidator)(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,o){const s=new Z;e&&(s.onQueueEmpty=e);let n=H.countRows()-1;for(;n>=0;){if(void 0!==t&&-1===t.indexOf(n)){n-=1;continue}let e=H.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(s.addValidatorToQueue(),H.validateCell(H.getDataAtCell(n,e),H.getCellMeta(n,e),(e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(s.valid=!1),s.removeValidatorFormQueue()}),"validateCells"),e-=1):e-=1;n-=1}s.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=G.rowHeaders,o=e;return void 0!==o&&(o=H.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,w.rangeEach)(H.countRows()-1,(e=>{t.push(H.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,r.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!G.rowHeaders},this.hasColHeaders=function(){if(void 0!==G.colHeaders&&null!==G.colHeaders)return!!G.colHeaders;for(let e=0,t=H.countCols();e<t;e++)if(H.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=H.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=H.countCols();for(let o=0;o<t;o++)e.push(H.getColHeader(o));return e}let s=G.colHeaders;const n=H.toPhysicalColumn(o),i=function(e){const t=[],o=H.countCols();let s=0;for(;s<o;s++)(0,r.isFunction)(G.columns)&&G.columns(s)&&t.push(s);return t[e]}(n);return!1===G.colHeaders?s=null:G.columns&&(0,r.isFunction)(G.columns)&&G.columns(i)&&G.columns(i).title?s=G.columns(i).title:G.columns&&G.columns[n]&&G.columns[n].title?s=G.columns[n].title:Array.isArray(G.colHeaders)&&void 0!==G.colHeaders[n]?s=G.colHeaders[n]:(0,r.isFunction)(G.colHeaders)?s=G.colHeaders(n):G.colHeaders&&"string"!=typeof G.colHeaders&&"number"!=typeof G.colHeaders&&(s=(0,E.spreadsheetColumnLabel)(o)),s=H.runHooks("modifyColumnHeaderValue",s,e,t),s},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=H.getCellMeta(0,e).width}if(void 0!==t&&t!==G.width||(t=G.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){let t=H._getColWidthFromSettings(e);return t=H.runHooks("modifyColWidth",t,e),void 0===t&&(t=b.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){let t=G.rowHeights;if(null!=t){switch(typeof 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){let t=H._getRowHeightFromSettings(e);return t=H.runHooks("modifyRowHeight",t,e),t},this.countSourceRows=function(){return V.countRows()},this.countSourceCols=function(){return V.countFirstRowKeys()},this.countRows=function(){return k.getLength()},this.countCols=function(){const e=G.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return H.view._wt.drawn?H.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return H.view._wt.drawn?H.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return H.view._wt.drawn?H.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return H.view._wt.drawn?H.view._wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,w.rangeEachReverse)(H.countRows()-1,(o=>{if(H.isEmptyRow(o))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,w.rangeEachReverse)(H.countCols()-1,(o=>{if(H.isEmptyCol(o))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return G.isEmptyRow.call(H,e)},this.isEmptyCol=function(e){return G.isEmptyCol.call(H,e)},this.selectCell=function(e,t,o,s){let n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,i.isUndefined)(e)&&!(0,i.isUndefined)(t)&&this.selectCells([[e,t,o,s]],n,r)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(D=!0);const o=X.selectCells(e);return o&&t&&H.listen(),D=!1,o},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return X.selectColumns(e,t)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return X.selectRows(e,t)},this.deselectCell=function(){X.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=e&&this.hasRowHeaders(),o=e&&this.hasColHeaders();D=!0,X.selectAll(t,o),D=!1};const re=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=!o,r=!s;let i=e,l=t;if(!(arguments.length>4&&void 0!==arguments[4])||arguments[4]){const o=Number.isInteger(e),s=Number.isInteger(t),n=o?re(this.rowIndexMapper,e):void 0,r=s?re(this.columnIndexMapper,t):void 0;if(null===n||null===r)return!1;i=o?H.rowIndexMapper.getRenderableFromVisualIndex(n):void 0,l=s?H.columnIndexMapper.getRenderableFromVisualIndex(r):void 0}const a=Number.isInteger(i),h=Number.isInteger(l);return a&&h?H.view.scrollViewport(H._createCellCoords(i,l),n,s,o,r):a&&!1===h?H.view.scrollViewportVertically(i,n,o):!(!h||!1!==a)&&H.view.scrollViewportHorizontally(l,s,r)},this.destroy=function(){if(H._clearTimeouts(),H._clearImmediates(),H.view&&H.view.destroy(),V&&V.destroy(),V=null,this.getShortcutManager().destroy(),Y.clearCache(),(0,R.isRootInstance)(H)){const e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,n.empty)(H.rootElement),L.destroy(),W&&W.destroy(),H.batchExecution((()=>{H.rowIndexMapper.unregisterAll(),H.columnIndexMapper.unregisterAll(),K.getItems().forEach((e=>{let[,t]=e;t.destroy()})),K.clear(),H.runHooks("afterDestroy")}),!0),T.default.getSingleton().destroy(H),(0,d.objectEach)(H,((e,t,o)=>{var s;(0,r.isFunction)(e)?o[t]=(s=t,()=>{throw new Error(`The "${s}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)})),H.isDestroyed=!0,k&&k.destroy(),k=null,F=null,X=null,W=null,H=null},this.getActiveEditor=function(){return W.getActiveEditor()},this.getPlugin=function(e){const t=(0,C.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:K.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:K.getId(e)},this.getInstance=function(){return H},this.addHook=function(e,t){T.default.getSingleton().add(e,t,H)},this.hasHook=function(e){return T.default.getSingleton().has(e,H)||T.default.getSingleton().has(e)},this.addHookOnce=function(e,t){T.default.getSingleton().once(e,t,H)},this.removeHook=function(e,t){T.default.getSingleton().remove(e,t,H)},this.runHooks=function(e,t,o,s,n,r,i){return T.default.getSingleton().run(H,e,t,o,s,n,r,i)},this.getTranslatedPhrase=function(e,t){return(0,_.getTranslatedPhrase)(G.language,e,t)},this.toHTML=()=>(0,u.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,u.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,c.arrayEach)(this.timeouts,(e=>{clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,c.arrayEach)(this.immediates,(e=>{clearImmediate(e)}))},this._refreshBorders=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W.destroyEditor(e),H.view.render(),t&&X.isSelected()&&W.prepareEditor()},this.isRtl=function(){return"rtl"===H.rootWindow.getComputedStyle(H.rootElement).direction},this.isLtr=function(){return!H.isRtl()},this.getDirectionFactor=function(){return H.isLtr()?1:-1};const ie=(0,A.createShortcutManager)({handleEvent(e){const t=H.isListening(),o=void 0!==(null==e?void 0:e.key);return t&&o},beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||H.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(e=>{!1===e.ctrlKey&&!1===e.metaKey&&ie.releasePressedKeys()})),this.getShortcutManager=function(){return ie};const le=ie.addContext("grid"),ae={runOnlyIf:()=>(0,i.isDefined)(H.getSelected())&&H.countRenderedRows()>0&&H.countRenderedCols()>0,group:P};ie.setActiveContextName("grid"),le.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>{H.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:()=>{const e=H.getSelectedRange(),{row:t,col:o}=e[e.length-1].highlight,s=H.getDataAtCell(t,o),n=new Map;for(let r=0;r<e.length;r++)e[r].forAll(((e,r)=>{if(e>=0&&r>=0&&(e!==t||r!==o)){const{readOnly:t}=H.getCellMeta(e,r);t||n.set(`${e}x${r}`,[e,r,s])}}));H.setDataAtCell(Array.from(n.values()))},runOnlyIf:()=>H.getSelectedRangeLast().getCellsCount()>1},{keys:[["ArrowUp"]],callback:()=>{X.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>{X.setRangeStart(H._createCellCoords(H.rowIndexMapper.getNearestNotHiddenIndex(0,1),H.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:()=>{X.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.rowIndexMapper.getNearestNotHiddenIndex(0,1);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(o,t.col))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>{X.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>{X.setRangeStart(H._createCellCoords(H.rowIndexMapper.getNearestNotHiddenIndex(H.countRows()-1,-1),H.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:()=>{X.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.rowIndexMapper.getNearestNotHiddenIndex(H.countRows()-1,-1);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(o,t.col))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>{X.transformStart(0,-1*H.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=H.getSelectedRangeLast().highlight.row,t=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[H.countCols()-1,-1]:[0,1]);X.setRangeStart(H._createCellCoords(e,t))}},{keys:[["ArrowLeft","Shift"]],callback:()=>{X.transformEnd(0,-1*H.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[H.countCols()-1,-1]:[0,1]);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(t.row,o))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>{X.transformStart(0,H.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=H.getSelectedRangeLast().highlight.row,t=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[0,1]:[H.countCols()-1,-1]);X.setRangeStart(H._createCellCoords(e,t))}},{keys:[["ArrowRight","Shift"]],callback:()=>{X.transformEnd(0,H.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[0,1]:[H.countCols()-1,-1]);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(t.row,o))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>{const e=parseInt(H.getSettings().fixedColumnsStart,10),t=H.getSelectedRangeLast().highlight.row,o=H.columnIndexMapper.getNearestNotHiddenIndex(e,1);X.setRangeStart(H._createCellCoords(t,o))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>{X.setRangeEnd(H._createCellCoords(X.selectedRange.current().from.row,H.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=parseInt(H.getSettings().fixedRowsTop,10),t=parseInt(H.getSettings().fixedColumnsStart,10),o=H.rowIndexMapper.getNearestNotHiddenIndex(e,1),s=H.columnIndexMapper.getNearestNotHiddenIndex(t,1);X.setRangeStart(H._createCellCoords(o,s))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>{X.setRangeStart(H._createCellCoords(H.getSelectedRangeLast().highlight.row,H.columnIndexMapper.getNearestNotHiddenIndex(H.countCols()-1,-1)))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>{X.setRangeEnd(H._createCellCoords(X.selectedRange.current().from.row,H.columnIndexMapper.getNearestNotHiddenIndex(H.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=parseInt(H.getSettings().fixedRowsBottom,10),t=H.rowIndexMapper.getNearestNotHiddenIndex(H.countRows()-e-1,-1),o=H.columnIndexMapper.getNearestNotHiddenIndex(H.countCols()-1,-1);X.setRangeStart(H._createCellCoords(t,o))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>{X.transformStart(-H.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:()=>{const{to:e}=H.getSelectedRangeLast(),t=Math.max(e.row-H.countVisibleRows(),0),o=H.rowIndexMapper.getNearestNotHiddenIndex(t,1);if(null!==o){const t=H._createCellCoords(o,e.col),s=e.row-H.view.getFirstFullyVisibleRow(),n=Math.max(t.row-s,0);X.setRangeEnd(t),H.scrollViewportTo(n)}}},{keys:[["PageDown"]],callback:()=>{X.transformStart(H.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:()=>{const{to:e}=H.getSelectedRangeLast(),t=Math.min(e.row+H.countVisibleRows(),H.countRows()-1),o=H.rowIndexMapper.getNearestNotHiddenIndex(t,-1);if(null!==o){const t=H._createCellCoords(o,e.col),s=e.row-H.view.getFirstFullyVisibleRow(),n=Math.min(t.row-s,H.countRows()-1);X.setRangeEnd(t),H.scrollViewportTo(n)}}},{keys:[["Tab"]],callback:e=>{const t="function"==typeof G.tabMoves?G.tabMoves(e):G.tabMoves;X.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:e=>{const t="function"==typeof G.tabMoves?G.tabMoves(e):G.tabMoves;X.transformStart(-t.row,-t.col)}}],ae),(0,g.getPluginsNames)().forEach((e=>{const t=(0,g.getPlugin)(e);K.addItem(e,new t(this))})),T.default.getSingleton().run(H,"construct")},o(8),o(78),o(94);var n=o(107),r=o(114),i=o(110),l=o(115),a=s(o(119)),h=s(o(126)),d=o(116),c=o(113),u=o(127),g=o(128),f=o(133),p=o(122),m=o(134),C=o(108),w=o(130),y=s(o(135)),v=s(o(210)),E=o(211),S=o(212),R=o(209),b=o(145),T=s(o(123)),_=o(232),O=o(233),M=o(238),I=o(253),N=o(131),A=o(269);const P="gridDefault";let x=null;new Set},(e,t,o)=>{"use strict";var s=o(9),n=o(46),r=o(70),i=o(75),l=o(77);s({target:"Array",proto:!0,arity:1,forced:o(13)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=n(this),o=r(t),s=arguments.length;l(o+s);for(var a=0;a<s;a++)t[o]=arguments[a],o++;return i(t,o),o}})},(e,t,o)=>{"use strict";var s=o(10),n=o(11).f,r=o(50),i=o(54),l=o(44),a=o(62),h=o(74);e.exports=function(e,t){var o,d,c,u,g,f=e.target,p=e.global,m=e.stat;if(o=p?s:m?s[f]||l(f,{}):(s[f]||{}).prototype)for(d in t){if(u=t[d],c=e.dontCallGetSet?(g=n(o,d))&&g.value:o[d],!h(p?d:f+(m?".":"#")+d,e.forced)&&void 0!==c){if(typeof u==typeof c)continue;a(u,c)}(e.sham||c&&c.sham)&&r(u,"sham",!0),i(o,d,u,e)}}},function(e){"use strict";var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},(e,t,o)=>{"use strict";var s=o(12),n=o(14),r=o(16),i=o(17),l=o(18),a=o(24),h=o(45),d=o(48),c=Object.getOwnPropertyDescriptor;t.f=s?c:function(e,t){if(e=l(e),t=a(t),d)try{return c(e,t)}catch(e){}if(h(e,t))return i(!n(r.f,e,t),e[t])}},(e,t,o)=>{"use strict";var s=o(13);e.exports=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,o)=>{"use strict";var s=o(15),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},(e,t,o)=>{"use strict";var s=o(13);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},(e,t)=>{"use strict";var o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!o.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,o)=>{"use strict";var s=o(19),n=o(22);e.exports=function(e){return s(n(e))}},(e,t,o)=>{"use strict";var s=o(20),n=o(13),r=o(21),i=Object,l=s("".split);e.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?l(e,""):i(e)}:i},(e,t,o)=>{"use strict";var s=o(15),n=Function.prototype,r=n.call,i=s&&n.bind.bind(r,r);e.exports=s?i:function(e){return function(){return r.apply(e,arguments)}}},(e,t,o)=>{"use strict";var s=o(20),n=s({}.toString),r=s("".slice);e.exports=function(e){return r(n(e),8,-1)}},(e,t,o)=>{"use strict";var s=o(23),n=TypeError;e.exports=function(e){if(s(e))throw n("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null==e}},(e,t,o)=>{"use strict";var s=o(25),n=o(29);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},(e,t,o)=>{"use strict";var s=o(14),n=o(26),r=o(29),i=o(36),l=o(39),a=o(40),h=TypeError,d=a("toPrimitive");e.exports=function(e,t){if(!n(e)||r(e))return e;var o,a=i(e,d);if(a){if(void 0===t&&(t="default"),o=s(a,e,t),!n(o)||r(o))return o;throw h("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},(e,t,o)=>{"use strict";var s=o(27),n=o(28),r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:s(e)||e===r}:function(e){return"object"==typeof e?null!==e:s(e)}},(e,t,o)=>{"use strict";var s=o(28),n=s.all;e.exports=s.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},e=>{"use strict";var t="object"==typeof document&&document.all,o=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:o}},(e,t,o)=>{"use strict";var s=o(30),n=o(27),r=o(31),i=o(32),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&r(t.prototype,l(e))}},(e,t,o)=>{"use strict";var s=o(10),n=o(27);e.exports=function(e,t){return arguments.length<2?(o=s[e],n(o)?o:void 0):s[e]&&s[e][t];var o}},(e,t,o)=>{"use strict";var s=o(20);e.exports=s({}.isPrototypeOf)},(e,t,o)=>{"use strict";var s=o(33);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,o)=>{"use strict";var s=o(34),n=o(13),r=o(10).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},(e,t,o)=>{"use strict";var s,n,r=o(10),i=o(35),l=r.process,a=r.Deno,h=l&&l.versions||a&&a.version,d=h&&h.v8;d&&(n=(s=d.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&i&&(!(s=i.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=i.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(e,t,o)=>{"use strict";var s=o(37),n=o(23);e.exports=function(e,t){var o=e[t];return n(o)?void 0:s(o)}},(e,t,o)=>{"use strict";var s=o(27),n=o(38),r=TypeError;e.exports=function(e){if(s(e))return e;throw r(n(e)+" is not a function")}},e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,o)=>{"use strict";var s=o(14),n=o(27),r=o(26),i=TypeError;e.exports=function(e,t){var o,l;if("string"===t&&n(o=e.toString)&&!r(l=s(o,e)))return l;if(n(o=e.valueOf)&&!r(l=s(o,e)))return l;if("string"!==t&&n(o=e.toString)&&!r(l=s(o,e)))return l;throw i("Can't convert object to primitive value")}},(e,t,o)=>{"use strict";var s=o(10),n=o(41),r=o(45),i=o(47),l=o(33),a=o(32),h=s.Symbol,d=n("wks"),c=a?h.for||h:h&&h.withoutSetter||i;e.exports=function(e){return r(d,e)||(d[e]=l&&r(h,e)?h[e]:c("Symbol."+e)),d[e]}},(e,t,o)=>{"use strict";var s=o(42),n=o(43);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:s?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,o)=>{"use strict";var s=o(10),n=o(44),r="__core-js_shared__",i=s[r]||n(r,{});e.exports=i},(e,t,o)=>{"use strict";var s=o(10),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(o){s[e]=t}return t}},(e,t,o)=>{"use strict";var s=o(20),n=o(46),r=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(n(e),t)}},(e,t,o)=>{"use strict";var s=o(22),n=Object;e.exports=function(e){return n(s(e))}},(e,t,o)=>{"use strict";var s=o(20),n=0,r=Math.random(),i=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+r,36)}},(e,t,o)=>{"use strict";var s=o(12),n=o(13),r=o(49);e.exports=!s&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},(e,t,o)=>{"use strict";var s=o(10),n=o(26),r=s.document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},(e,t,o)=>{"use strict";var s=o(12),n=o(51),r=o(17);e.exports=s?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},(e,t,o)=>{"use strict";var s=o(12),n=o(48),r=o(52),i=o(53),l=o(24),a=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",g="writable";t.f=s?r?function(e,t,o){if(i(e),t=l(t),i(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var s=d(e,t);s&&s[g]&&(e[t]=o.value,o={configurable:u in o?o[u]:s[u],enumerable:c in o?o[c]:s[c],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(i(e),t=l(t),i(o),n)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw a("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},(e,t,o)=>{"use strict";var s=o(12),n=o(13);e.exports=s&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,o)=>{"use strict";var s=o(26),n=String,r=TypeError;e.exports=function(e){if(s(e))return e;throw r(n(e)+" is not an object")}},(e,t,o)=>{"use strict";var s=o(27),n=o(51),r=o(55),i=o(44);e.exports=function(e,t,o,l){l||(l={});var a=l.enumerable,h=void 0!==l.name?l.name:t;if(s(o)&&r(o,h,l),l.global)a?e[t]=o:i(t,o);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=o:n.f(e,t,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},(e,t,o)=>{"use strict";var s=o(20),n=o(13),r=o(27),i=o(45),l=o(12),a=o(56).CONFIGURABLE,h=o(57),d=o(58),c=d.enforce,u=d.get,g=String,f=Object.defineProperty,p=s("".slice),m=s("".replace),C=s([].join),w=l&&!n((function(){return 8!==f((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=e.exports=function(e,t,o){"Symbol("===p(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(l?f(e,"name",{value:t,configurable:!0}):e.name=t),w&&o&&i(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&i(o,"constructor")&&o.constructor?l&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=c(e);return i(s,"source")||(s.source=C(y,"string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return r(this)&&u(this).source||h(this)}),"toString")},(e,t,o)=>{"use strict";var s=o(12),n=o(45),r=Function.prototype,i=s&&Object.getOwnPropertyDescriptor,l=n(r,"name"),a=l&&"something"===function(){}.name,h=l&&(!s||s&&i(r,"name").configurable);e.exports={EXISTS:l,PROPER:a,CONFIGURABLE:h}},(e,t,o)=>{"use strict";var s=o(20),n=o(27),r=o(43),i=s(Function.toString);n(r.inspectSource)||(r.inspectSource=function(e){return i(e)}),e.exports=r.inspectSource},(e,t,o)=>{"use strict";var s,n,r,i=o(59),l=o(10),a=o(26),h=o(50),d=o(45),c=o(43),u=o(60),g=o(61),f="Object already initialized",p=l.TypeError,m=l.WeakMap;if(i||c.state){var C=c.state||(c.state=new m);C.get=C.get,C.has=C.has,C.set=C.set,s=function(e,t){if(C.has(e))throw p(f);return t.facade=e,C.set(e,t),t},n=function(e){return C.get(e)||{}},r=function(e){return C.has(e)}}else{var w=u("state");g[w]=!0,s=function(e,t){if(d(e,w))throw p(f);return t.facade=e,h(e,w,t),t},n=function(e){return d(e,w)?e[w]:{}},r=function(e){return d(e,w)}}e.exports={set:s,get:n,has:r,enforce:function(e){return r(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var o;if(!a(t)||(o=n(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return o}}}},(e,t,o)=>{"use strict";var s=o(10),n=o(27),r=s.WeakMap;e.exports=n(r)&&/native code/.test(String(r))},(e,t,o)=>{"use strict";var s=o(41),n=o(47),r=s("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},e=>{"use strict";e.exports={}},(e,t,o)=>{"use strict";var s=o(45),n=o(63),r=o(11),i=o(51);e.exports=function(e,t,o){for(var l=n(t),a=i.f,h=r.f,d=0;d<l.length;d++){var c=l[d];s(e,c)||o&&s(o,c)||a(e,c,h(t,c))}}},(e,t,o)=>{"use strict";var s=o(30),n=o(20),r=o(64),i=o(73),l=o(53),a=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=r.f(l(e)),o=i.f;return o?a(t,o(e)):t}},(e,t,o)=>{"use strict";var s=o(65),n=o(72).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},(e,t,o)=>{"use strict";var s=o(20),n=o(45),r=o(18),i=o(66).indexOf,l=o(61),a=s([].push);e.exports=function(e,t){var o,s=r(e),h=0,d=[];for(o in s)!n(l,o)&&n(s,o)&&a(d,o);for(;t.length>h;)n(s,o=t[h++])&&(~i(d,o)||a(d,o));return d}},(e,t,o)=>{"use strict";var s=o(18),n=o(67),r=o(70),i=function(e){return function(t,o,i){var l,a=s(t),h=r(a),d=n(i,h);if(e&&o!=o){for(;h>d;)if((l=a[d++])!=l)return!0}else for(;h>d;d++)if((e||d in a)&&a[d]===o)return e||d||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},(e,t,o)=>{"use strict";var s=o(68),n=Math.max,r=Math.min;e.exports=function(e,t){var o=s(e);return o<0?n(o+t,0):r(o,t)}},(e,t,o)=>{"use strict";var s=o(69);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?o:t)(s)}},(e,t,o)=>{"use strict";var s=o(71);e.exports=function(e){return s(e.length)}},(e,t,o)=>{"use strict";var s=o(68),n=Math.min;e.exports=function(e){return e>0?n(s(e),9007199254740991):0}},e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},(e,t,o)=>{"use strict";var s=o(13),n=o(27),r=/#|\.prototype\./,i=function(e,t){var o=a[l(e)];return o==d||o!=h&&(n(t)?s(t):!!t)},l=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=i.data={},h=i.NATIVE="N",d=i.POLYFILL="P";e.exports=i},(e,t,o)=>{"use strict";var s=o(12),n=o(76),r=TypeError,i=Object.getOwnPropertyDescriptor,l=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(n(e)&&!i(e,"length").writable)throw r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},(e,t,o)=>{"use strict";var s=o(21);e.exports=Array.isArray||function(e){return"Array"==s(e)}},e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},(e,t,o)=>{"use strict";var s=o(9),n=o(10),r=o(79),i=o(80),l="WebAssembly",a=n[l],h=7!==Error("e",{cause:7}).cause,d=function(e,t){var o={};o[e]=i(e,t,h),s({global:!0,constructor:!0,arity:1,forced:h},o)},c=function(e,t){if(a&&a[e]){var o={};o[e]=i(l+"."+e,t,h),s({target:l,stat:!0,constructor:!0,arity:1,forced:h},o)}};d("Error",(function(e){return function(t){return r(e,this,arguments)}})),d("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),d("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),d("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),d("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),d("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),d("URIError",(function(e){return function(t){return r(e,this,arguments)}})),c("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),c("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),c("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},(e,t,o)=>{"use strict";var s=o(15),n=Function.prototype,r=n.apply,i=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?i.bind(r):function(){return i.apply(r,arguments)})},(e,t,o)=>{"use strict";var s=o(30),n=o(45),r=o(50),i=o(31),l=o(81),a=o(62),h=o(84),d=o(85),c=o(86),u=o(90),g=o(91),f=o(12),p=o(42);e.exports=function(e,t,o,m){var C="stackTraceLimit",w=m?2:1,y=e.split("."),v=y[y.length-1],E=s.apply(null,y);if(E){var S=E.prototype;if(!p&&n(S,"cause")&&delete S.cause,!o)return E;var R=s("Error"),b=t((function(e,t){var o=c(m?t:e,void 0),s=m?new E(e):new E;return void 0!==o&&r(s,"message",o),g(s,b,s.stack,2),this&&i(S,this)&&d(s,this,b),arguments.length>w&&u(s,arguments[w]),s}));if(b.prototype=S,"Error"!==v?l?l(b,R):a(b,R,{name:!0}):f&&C in E&&(h(b,E,C),h(b,E,"prepareStackTrace")),a(b,E),!p)try{S.name!==v&&r(S,"name",v),S.constructor=b}catch(e){}return b}}},(e,t,o)=>{"use strict";var s=o(82),n=o(53),r=o(83);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=s(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(e){}return function(o,s){return n(o),r(s),t?e(o,s):o.__proto__=s,o}}():void 0)},(e,t,o)=>{"use strict";var s=o(20),n=o(37);e.exports=function(e,t,o){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},(e,t,o)=>{"use strict";var s=o(27),n=String,r=TypeError;e.exports=function(e){if("object"==typeof e||s(e))return e;throw r("Can't set "+n(e)+" as a prototype")}},(e,t,o)=>{"use strict";var s=o(51).f;e.exports=function(e,t,o){o in e||s(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},(e,t,o)=>{"use strict";var s=o(27),n=o(26),r=o(81);e.exports=function(e,t,o){var i,l;return r&&s(i=t.constructor)&&i!==o&&n(l=i.prototype)&&l!==o.prototype&&r(e,l),e}},(e,t,o)=>{"use strict";var s=o(87);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},(e,t,o)=>{"use strict";var s=o(88),n=String;e.exports=function(e){if("Symbol"===s(e))throw TypeError("Cannot convert a Symbol value to a string");return n(e)}},(e,t,o)=>{"use strict";var s=o(89),n=o(27),r=o(21),i=o(40)("toStringTag"),l=Object,a="Arguments"==r(function(){return arguments}());e.exports=s?r:function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?o:a?r(t):"Object"==(s=r(t))&&n(t.callee)?"Arguments":s}},(e,t,o)=>{"use strict";var s={};s[o(40)("toStringTag")]="z",e.exports="[object z]"===String(s)},(e,t,o)=>{"use strict";var s=o(26),n=o(50);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},(e,t,o)=>{"use strict";var s=o(50),n=o(92),r=o(93),i=Error.captureStackTrace;e.exports=function(e,t,o,l){r&&(i?i(e,t):s(e,"stack",n(o,l)))}},(e,t,o)=>{"use strict";var s=o(20),n=Error,r=s("".replace),i=String(n("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,a=l.test(i);e.exports=function(e,t){if(a&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=r(e,l,"");return e}},(e,t,o)=>{"use strict";var s=o(13),n=o(17);e.exports=!s((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},(e,t,o)=>{"use strict";o(95),o(104)},(e,t,o)=>{"use strict";var s=o(9),n=o(10),r=o(96).clear;s({global:!0,bind:!0,enumerable:!0,forced:n.clearImmediate!==r},{clearImmediate:r})},(e,t,o)=>{"use strict";var s,n,r,i,l=o(10),a=o(79),h=o(97),d=o(27),c=o(45),u=o(13),g=o(99),f=o(100),p=o(49),m=o(101),C=o(102),w=o(103),y=l.setImmediate,v=l.clearImmediate,E=l.process,S=l.Dispatch,R=l.Function,b=l.MessageChannel,T=l.String,_=0,O={},M="onreadystatechange";u((function(){s=l.location}));var I=function(e){if(c(O,e)){var t=O[e];delete O[e],t()}},N=function(e){return function(){I(e)}},A=function(e){I(e.data)},P=function(e){l.postMessage(T(e),s.protocol+"//"+s.host)};y&&v||(y=function(e){m(arguments.length,1);var t=d(e)?e:R(e),o=f(arguments,1);return O[++_]=function(){a(t,void 0,o)},n(_),_},v=function(e){delete O[e]},w?n=function(e){E.nextTick(N(e))}:S&&S.now?n=function(e){S.now(N(e))}:b&&!C?(i=(r=new b).port2,r.port1.onmessage=A,n=h(i.postMessage,i)):l.addEventListener&&d(l.postMessage)&&!l.importScripts&&s&&"file:"!==s.protocol&&!u(P)?(n=P,l.addEventListener("message",A,!1)):n=M in p("script")?function(e){g.appendChild(p("script"))[M]=function(){g.removeChild(this),I(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:y,clear:v}},(e,t,o)=>{"use strict";var s=o(98),n=o(37),r=o(15),i=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:r?i(e,t):function(){return e.apply(t,arguments)}}},(e,t,o)=>{"use strict";var s=o(21),n=o(20);e.exports=function(e){if("Function"===s(e))return n(e)}},(e,t,o)=>{"use strict";var s=o(30);e.exports=s("document","documentElement")},(e,t,o)=>{"use strict";var s=o(20);e.exports=s([].slice)},e=>{"use strict";var t=TypeError;e.exports=function(e,o){if(e<o)throw t("Not enough arguments");return e}},(e,t,o)=>{"use strict";var s=o(35);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},(e,t,o)=>{"use strict";var s=o(21);e.exports="undefined"!=typeof process&&"process"==s(process)},(e,t,o)=>{"use strict";var s=o(9),n=o(10),r=o(96).set,i=o(105),l=n.setImmediate?i(r,!1):r;s({global:!0,bind:!0,enumerable:!0,forced:n.setImmediate!==l},{setImmediate:l})},(e,t,o)=>{"use strict";var s,n=o(10),r=o(79),i=o(27),l=o(106),a=o(35),h=o(100),d=o(101),c=n.Function,u=/MSIE .\./.test(a)||l&&((s=n.Bun.version.split(".")).length<3||0==s[0]&&(s[1]<3||3==s[1]&&0==s[2]));e.exports=function(e,t){var o=t?2:1;return u?function(s,n){var l=d(arguments.length,1)>o,a=i(s)?s:c(s),u=l?h(arguments,o):[],g=l?function(){r(a,this,u)}:a;return t?e(g,n):e(g)}:e}},e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},(e,t,o)=>{"use strict";t.__esModule=!0,t.addClass=function(e,t){"string"==typeof t&&(t=t.split(" "));(t=i(t)).length>0&&e.classList.add(...t)},t.addEvent=function(e,t,o){e.addEventListener(t,o,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=r,t.closestDown=function(e,t,o){const s=[];let n=e;for(;n&&(n=r(n,t,o),n&&(!o||o.contains(n)));)s.push(n),n=n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.host:n.parentNode;const i=s.length;return i?s[i-1]:null},t.empty=l,t.fastInnerHTML=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a.test(t)?e.innerHTML=o?(0,s.sanitize)(t):t:h(e,t)},t.fastInnerText=h,t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getComputedStyle=u,t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFrameElement=n,t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,s=null,n=e;for(;null!==n;){if(o===t){s=n;break}n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n=n.host:(o+=1,n=n.parentNode)}return s},t.getParentWindow=function(e){return n(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return c(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return d(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,o=t?t.defaultView:void 0;t||(t=e.document?e.document:e,o=t.defaultView);const s=["auto","scroll"];let n=e.parentNode;for(;n&&n.style&&t.body!==n;){let{overflow:e,overflowX:t,overflowY:r}=n.style;if([e,t,r].includes("scroll"))return n;if(({overflow:e,overflowX:t,overflowY:r}=o.getComputedStyle(n)),s.includes(e)||s.includes(t)||s.includes(r))return n;if(n.clientHeight<=n.scrollHeight+1&&(s.includes(r)||s.includes(e)))return n;if(n.clientWidth<=n.scrollWidth+1&&(s.includes(t)||s.includes(e)))return n;n=n.parentNode}return o},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===g&&(g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const o=e.createElement("div");o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(t),(e.body||e.documentElement).appendChild(o);const s=t.offsetWidth;o.style.overflow="scroll";let n=t.offsetWidth;s===n&&(n=o.clientWidth);return(e.body||e.documentElement).removeChild(o),s-n}(e));return g},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let o="";e.getSelection?o=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(o=t.selection.createRange().text);return o},t.getStyle=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===o)return"width"===t?`${o.innerWidth}px`:"height"===t?`${o.innerHeight}px`:void 0;const s=e.style[t];if(""!==s&&void 0!==s)return s;const n=u(e,o);if(""!==n[t]&&void 0!==n[t])return n[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let s=e.parentNode;for(;s&&s.style&&t.body!==s;){if("visible"!==s.style.overflow&&""!==s.style.overflow)return s;const e=u(s,o),t=["scroll","hidden","auto"],n=e.getPropertyValue("overflow"),r=e.getPropertyValue("overflow-y"),i=e.getPropertyValue("overflow-x");if(t.includes(n)||t.includes(r)||t.includes(i))return s;s=s.parentNode}return o},t.getWindowScrollLeft=c,t.getWindowScrollTop=d,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){let t=0,o=e;if(o.previousSibling)for(;o=o.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let o=e.parentNode,s=[];"string"==typeof t?s=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):s.push(t);for(;null!==o;){if(s.indexOf(o)>-1)return!0;o=o.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=f,t.isOutsideInput=p,t.isVisible=function e(t){const o=t.ownerDocument.documentElement;let s=t;for(;s!==o;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if(s.style&&"none"===s.style.display)return!1;s=s.parentNode}return!0},t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let s=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?s=e.msMatchesSelector(o):e.matches&&(s=e.matches(o)));return s},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver(((o,s)=>{o.forEach((o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),s.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,s=t.documentElement;let n,r,i,l=e;n=l.offsetLeft,r=l.offsetTop,i=l;for(;(l=l.offsetParent)&&l!==t.body;)n+=l.offsetLeft,r+=l.offsetTop,i=l;i&&"fixed"===i.style.position&&(n+=o.pageXOffset||s.scrollLeft,r+=o.pageYOffset||s.scrollTop);return{left:n,top:r}},t.outerHeight=function(e){return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const s=o.parentElement.querySelector(`.ht_clone_${e}`);return s?s.contains(t):null},t.removeClass=function(e,t){"string"==typeof t&&(t=t.split(" "));(t=i(t)).length>0&&e.classList.remove(...t)},t.removeEvent=function(e,t,o){e.removeEventListener(t,o,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const o=t.childNodes;for(let t=o.length-1;t>=0;t--)e(o[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.selectElementIfAllowed=function(e){p(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,o){void 0===o&&(o=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(s){const n=e.parentNode,r=n.style.display;n.style.display="block",e.setSelectionRange(t,o),n.style.display=r}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(8),o(78);var s=o(108);function n(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:s,DOCUMENT_FRAGMENT_NODE:n}=Node;let r=e;for(;null!=r&&r!==o;){const{nodeType:e,nodeName:o}=r;if(e===s&&(t.includes(o)||t.includes(r)))return r;const{host:i}=r;r=i&&e===n?i:r.parentNode}return null}function i(e){return e&&e.length?e.filter((e=>!!e)):[]}function l(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const a=/(<(.*)>|&(.*);)/;function h(e,t){const o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(l(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function d(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function c(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}let g;function f(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function p(e){return f(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=a},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];let n=o.length;for(;n;){n-=1;const t=(0,r.stringify)(o[n]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=i,t.stripTags=function(e){return i(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,((e,o)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o]))},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},o(8);var n=s(o(109)),r=o(110);function i(e,t){return n.default.sanitize(e,t)}},t=>{"use strict";t.exports=e},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="13.1.0-next-f6ea50b-20230811";let i,y="invalid",v="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==u("Z"))return!1;for(let t="",s="B<H4P+".split(""),n=u(s.shift());n;n=u(s.shift()||"A"))--n<""[a]?o|=(d(`${d(h(t)+(h(c(e,Math.abs(n),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,n,n?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,n.default)("21/08/2023","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);i=(0,n.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(y="expired",v="expired"):(y="valid",v="valid")}else s?(y="non_commercial",v="valid"):(y="invalid",v="invalid");else y="missing",v="missing";p()&&(y="valid",v="valid");if(!m&&"valid"!==y){C[y]({keyValidityDate:i,hotVersion:r})&&console["non_commercial"===y?"info":"warn"](C[y]({keyValidityDate:i,hotVersion:r})),m=!0}if("valid"!==v&&t.parentNode){if(w[v]({keyValidityDate:i,hotVersion:r})){const e=document.createElement("div");e.className="hot-display-license-info",e.innerHTML=w[v]({keyValidityDate:i,hotVersion:r}),t.parentNode.insertBefore(e,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=l,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=i,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var n=s(o(111)),r=o(112);function i(e){return void 0===e}function l(e){return null===e||""===e||i(e)}const a="length",h=e=>parseInt(e,16),d=e=>parseInt(e,10),c=(e,t,o)=>e.substr(t,o),u=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(c(g(e),h("12"),u("F")))/(h(c(g(e),u("B"),~~![][a]))||9),p=()=>"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);let m=!1;const C={invalid:()=>r.toSingleLine`
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("pikaday"),require("moment"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["dompurify","pikaday","moment","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("dompurify"),require("pikaday"),require("moment"),require("numbro")):e.Handsontable=t(e.DOMPurify,e.Pikaday,e.moment,e.numbro)}("undefined"!=typeof self?self:this,((e,t,o,s)=>(()=>{var n=[,e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,o(3),o(4),o(5),o(6);var n=s(o(7)),r=o(209),i=o(253),l=s(o(123)),a=o(232),h=o(260),d=o(275),c=o(279),u=o(145);function g(e,t){const o=new n.default(e,t||{},r.rootInstanceSymbol);return o.init(),o}t.CellCoords=u.CellCoords,t.CellRange=u.CellRange,(0,h.registerCellType)(d.TextCellType),g.editors={BaseEditor:c.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new n.default(e,t,r.rootInstanceSymbol)},g.DefaultSettings=(0,i.metaSchemaFactory)(),g.hooks=l.default.getSingleton(),g.CellCoords=u.CellCoords,g.CellRange=u.CellRange,g.packageName="handsontable",g.buildDate="11/08/2023 10:45:35",g.version="13.1.0-next-68e93c1-20230811",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};var f=g;t.default=f},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,t.default=function(e,t){var o;let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],D=!1,H=this;const L=new h.default(H);let k,V,F,W,B=!0;(0,R.hasValidParameter)(s)&&(0,R.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const U=null!==(o=null==t?void 0:t.layoutDirection)&&void 0!==o?o:"inherit",j=["rtl","ltr"].includes(U)?U:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",j),this.isRtl=function(){return"rtl"===j},this.isLtr=function(){return!H.isRtl()},this.getDirectionFactor=function(){return H.isLtr()?1:-1},t.language=(0,_.getValidLanguageCode)(t.language);const Y=new I.MetaManager(H,t,[I.DynamicCellMetaMod,I.ExtendMetaPropertiesMod]),G=Y.getTableMeta(),z=Y.getGlobalMeta(),K=(0,N.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,R.isRootInstance)(this)&&(0,i._injectProductInfo)(t.licenseKey,e);this.guid=`ht_${(0,C.randomString)()}`,this.columnIndexMapper=new S.IndexMapper,this.rowIndexMapper=new S.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(e=>{H.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(e=>{H.runHooks("afterRowSequenceChange",e)})),V=new v.default(H),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);const $=e=>{const{row:t,col:o}=e;return H._createCellCoords(t>=0?H.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?H.columnIndexMapper.getRenderableFromVisualIndex(o):o)};let X=new M.Selection(G,{rowIndexMapper:()=>H.rowIndexMapper,columnIndexMapper:()=>H.columnIndexMapper,countCols:()=>H.countCols(),countRows:()=>H.countRows(),propToCol:e=>k.propToCol(e),isEditorOpened:()=>!!H.getActiveEditor()&&H.getActiveEditor().isOpened(),countColsTranslated:()=>this.view.countRenderableColumns(),countRowsTranslated:()=>this.view.countRenderableRows(),getShortcutManager:()=>H.getShortcutManager(),createCellCoords:(e,t)=>H._createCellCoords(e,t),createCellRange:(e,t,o)=>H._createCellRange(e,t,o),visualToRenderableCoords:$,renderableToVisualCoords:e=>{const{row:t,col:o}=e;return H._createCellCoords(t>=0?H.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?H.columnIndexMapper.getVisualFromRenderableIndex(o):o)},isDisabledCellSelection:(e,t)=>H.getCellMeta(e,t).disableVisualSelection});this.selection=X;const q=e=>{let{hiddenIndexesChanged:t}=e;t&&this.selection.refresh()};function Q(e){const t=(0,O.normalizeLanguageCode)(e);(0,_.hasLanguageDictionary)(t)?(H.runHooks("beforeLanguageChange",t),z.language=t,H.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}function J(e,t){const o="className"===e?H.rootElement:H.table;if(B)(0,n.addClass)(o,t);else{let s=[],r=[];z[e]&&(s=Array.isArray(z[e])?z[e]:(0,c.stringToArray)(z[e])),t&&(r=Array.isArray(t)?t:(0,c.stringToArray)(t));const i=(0,c.getDifferenceOfArrays)(s,r),l=(0,c.getDifferenceOfArrays)(r,s);i.length&&(0,n.removeClass)(o,i),l.length&&(0,n.addClass)(o,l)}z[e]=t}function Z(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ee(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function te(e,t,o){if(!e.length)return;const s=H.getActiveEditor(),r=new Z;let i=!0;r.onQueueEmpty=e=>{s&&i&&s.cancelChanges(),o(e)};for(let o=e.length-1;o>=0;o--){const[s,l,,a]=e[o],h=k.propToCol(l),d=H.getCellMeta(s,h);"numeric"===d.type&&"string"==typeof a&&(0,w.isNumericLike)(a)&&(e[o][3]=ee(a)),H.getCellValidator(d)&&(r.addValidatorToQueue(),H.validateCell(e[o][3],d,function(t,o){return function(s){if("boolean"!=typeof s)throw new Error("Validation error: result is not boolean");if(!1===s&&!1===o.allowInvalid){i=!1,e.splice(t,1),o.valid=!0;const s=H.getCell(o.visualRow,o.visualCol);null!==s&&(0,n.removeClass)(s,G.invalidCellClassName)}r.removeValidatorFormQueue()}}(o,d),t))}r.checkIfQueueIsEmpty()}function oe(e,t){let o=e.length-1;if(o<0)return;for(;o>=0;o--){let s=!1;if(null!==e[o]){if(null!==e[o][2]&&void 0!==e[o][2]||null!==e[o][3]&&void 0!==e[o][3]){if(G.allowInsertRow)for(;e[o][0]>H.countRows()-1;){const{delta:e}=k.createRow(void 0,void 0,{source:t});if(0===e){s=!0;break}}if("array"===H.dataType&&(!G.columns||0===G.columns.length)&&G.allowInsertColumn)for(;k.propToCol(e[o][1])>H.countCols()-1;){const{delta:e}=k.createCol(void 0,void 0,{source:t});if(0===e){s=!0;break}}s||k.set(e[o][0],e[o][1],e[o][3])}}else e.splice(o,1)}H.forceFullRender=!0,F.adjustRowsAndCols(),H.runHooks("beforeChangeRender",e,t),W.lockEditor(),H._refreshBorders(null),W.unlockEditor(),H.view.adjustElementsSize(),H.runHooks("afterChange",e,t||"edit");const s=H.getActiveEditor();s&&(0,i.isDefined)(s.refreshValue)&&s.refreshValue()}function se(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function ne(e,t){const o=H.getActiveEditor(),s=H.runHooks("beforeChange",e,t||"edit"),n=e.filter((e=>null!==e));return!1===s||0===n.length?(o&&o.cancelChanges(),[]):n}this.columnIndexMapper.addLocalHook("cacheUpdated",q),this.rowIndexMapper.addLocalHook("cacheUpdated",q),this.selection.addLocalHook("beforeSetRangeStart",(e=>{this.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(e=>{this.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(e=>{this.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=this.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=this.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(e=>{const t=(0,d.createObjectPropListener)(!1),o=this.selection.getSelectedRange(),{from:s,to:r}=o.current(),i=o.size()-1;this.runHooks("afterSelection",s.row,s.col,r.row,r.col,t,i),this.runHooks("afterSelectionByProp",s.row,H.colToProp(s.col),r.row,H.colToProp(r.col),t,i);const l=this.selection.isSelectedByAnyHeader(),a=this.selection.selectedRange.current();let h=!0;D&&(h=!1),t.isTouched()&&(h=!t.value);const c=this.selection.isSelectedByRowHeader(),u=this.selection.isSelectedByColumnHeader();!1!==h&&(l?c?this.view.scrollViewportVertically(H.rowIndexMapper.getRenderableFromVisualIndex(e.row)):u&&this.view.scrollViewportHorizontally(H.columnIndexMapper.getRenderableFromVisualIndex(e.col)):a&&!this.selection.isMultiple()?this.view.scrollViewport($(a.from)):this.view.scrollViewport($(e))),c&&u?(0,n.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):c?((0,n.removeClass)(this.rootElement,"ht__selection--columns"),(0,n.addClass)(this.rootElement,"ht__selection--rows")):u?((0,n.removeClass)(this.rootElement,"ht__selection--rows"),(0,n.addClass)(this.rootElement,"ht__selection--columns")):(0,n.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(e=>{const t=e.length-1,{from:o,to:s}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,s.row,s.col,t),this.runHooks("afterSelectionEndByProp",o.row,H.colToProp(o.col),s.row,H.colToProp(s.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(e=>{this.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",((e,t,o)=>{this.runHooks("afterModifyTransformStart",e,t,o)})),this.selection.addLocalHook("beforeModifyTransformEnd",(e=>{this.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",((e,t,o)=>{this.runHooks("afterModifyTransformEnd",e,t,o)})),this.selection.addLocalHook("afterDeselect",(()=>{W.destroyEditor(),this._refreshBorders(),(0,n.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(e=>{this.alter("insert_row_above",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(e=>{this.alter("insert_col_start",e,1,"auto")})),F={alter(e,t){var o,s;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;const a=e=>{if(0===e.length)return[];const t=[...e];t.sort(((e,t)=>{let[o]=e,[s]=t;return o===s?0:o>s?1:-1}));return(0,c.arrayReduce)(t,((e,t)=>{let[o,s]=t;const n=e[e.length-1],[r,i]=n,l=r+i;if(o<=l){const e=Math.max(s-(l-o),0);n[1]+=e}else e.push([o,s]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const l=H.countSourceRows();if(G.maxRows===l)return;const h="insert_row_below"===e?"below":"above";t=null!==(o=t)&&void 0!==o?o:"below"===h?l:0;const{delta:d,startPhysicalIndex:u}=k.createRow(t,n,{source:r,mode:h});if(d){const e=X.selectedRange.current(),t=null==e?void 0:e.from,o=null==t?void 0:t.row,s=H.toVisualRow(u);if(X.isSelectedByCorner())H.selectAll();else if((0,i.isDefined)(o)&&o>=s){const{row:s,col:n}=e.to;let r=t.col;X.isSelectedByRowHeader()&&(r=-1),X.getSelectedRange().pop(),X.setRangeStartOnly(H._createCellCoords(o+d,r),!0),X.setRangeEnd(H._createCellCoords(s+d,n))}else H._refreshBorders()}break;case"insert_col_start":case"insert_col_end":const g="insert_col_end"===e?"end":"start";t=null!==(s=t)&&void 0!==s?s:"end"===g?H.countSourceCols():0;const{delta:f,startPhysicalIndex:p}=k.createCol(t,n,{source:r,mode:g});if(f){if(Array.isArray(G.colHeaders)){const e=[H.toVisualColumn(p),0];e.length+=f,Array.prototype.splice.apply(G.colHeaders,e)}const e=X.selectedRange.current(),t=null==e?void 0:e.from,o=null==t?void 0:t.col,s=H.toVisualColumn(p);if(X.isSelectedByCorner())H.selectAll();else if((0,i.isDefined)(o)&&o>=s){const{row:s,col:n}=e.to;let r=t.row;X.isSelectedByColumnHeader()&&(r=-1),X.getSelectedRange().pop(),X.setRangeStartOnly(H._createCellCoords(r,o+f),!0),X.setRangeEnd(H._createCellCoords(s,n+f))}else H._refreshBorders()}break;case"remove_row":const m=e=>{let t=0;(0,c.arrayEach)(e,(e=>{let[o,s]=e;const n=(0,i.isEmpty)(o)?H.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!k.removeRow(o,s,r))return;const l=H.countRows(),a=G.fixedRowsTop;a>=n+1&&(G.fixedRowsTop-=Math.min(s,a-n));const h=G.fixedRowsBottom;h&&n>=l-h&&(G.fixedRowsBottom-=Math.min(s,h)),t+=s}))};Array.isArray(t)?m(a(t)):m([[t,n]]),F.adjustRowsAndCols(),H._refreshBorders();break;case"remove_col":const C=e=>{let t=0;(0,c.arrayEach)(e,(e=>{let[o,s]=e;const n=(0,i.isEmpty)(o)?H.countCols()-1:Math.max(o-t,0);let l=H.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!k.removeCol(o,s,r))return;const a=G.fixedColumnsStart;a>=n+1&&(G.fixedColumnsStart-=Math.min(s,a-n)),Array.isArray(G.colHeaders)&&(void 0===l&&(l=-1),G.colHeaders.splice(l,s)),t+=s}))};Array.isArray(t)?C(a(t)):C([[t,n]]),F.adjustRowsAndCols(),H._refreshBorders();break;default:throw new Error(`There is no such action "${e}"`)}l||F.adjustRowsAndCols()},adjustRowsAndCols(){const e=G.minRows,t=G.minSpareRows,o=G.minCols,s=G.minSpareCols;if(0===H.countRows()&&0===H.countCols()&&X.deselect(),e){const t=H.countRows();t<e&&k.createRow(t,e-t,{source:"auto"})}if(t){const e=H.countEmptyRows(!0);if(e<t){const o=t-e,s=Math.min(o,G.maxRows-H.countSourceRows());k.createRow(H.countRows(),s,{source:"auto"})}}{let e;(o||s)&&(e=H.countEmptyCols(!0));let t=H.countCols();if(o&&!G.columns&&t<o){const s=o-t;e+=s,k.createCol(t,s,{source:"auto"})}if(s&&!G.columns&&"array"===H.dataType&&e<s){t=H.countCols();const o=s-e,n=Math.min(o,G.maxCols-t);k.createCol(t,n,{source:"auto"})}}if(X.isSelected()){const e=H.countRows(),t=H.countCols();(0,c.arrayEach)(X.selectedRange,(o=>{let s=!1,n=o.from.row,r=o.from.col,i=o.to.row,l=o.to.col;n>e-1?(n=e-1,s=!0,i>n&&(i=n)):i>e-1&&(i=e-1,s=!0,n>i&&(n=i)),r>t-1?(r=t-1,s=!0,l>r&&(l=r)):l>t-1&&(l=t-1,s=!0,r>l&&(r=l)),s&&H.selectCell(n,r,i,l)}))}H.view&&H.view.adjustElementsSize()},populateFromArray(e,t,o,s,n){let r,i,l,a;const h=[],u={},g=[],f=e.row,p=e.col;if(i=t.length,0===i)return!1;let m=0,C=0;switch((0,d.isObject)(o)&&(m=o.col-p+1,C=o.row-f+1),n){case"shift_down":const n=(0,c.pivot)(t),w=n.length,y=Math.max(w,m),v=H.getData().slice(f),E=(0,c.pivot)(v).slice(p,p+y);for(l=0;l<y;l+=1)if(l<w){for(r=0,i=n[l].length;r<C-i;r+=1)n[l].push(n[l][r%i]);l<E.length?g.push(n[l].concat(E[l])):g.push(n[l].concat(new Array(v.length).fill(null)))}else g.push(n[l%w].concat(E[l]));H.populateFromArray(f,p,(0,c.pivot)(g));break;case"shift_right":const S=t.length,R=Math.max(S,C),b=H.getData().slice(f).map((e=>e.slice(p)));for(r=0;r<R;r+=1)if(r<S){for(l=0,a=t[r].length;l<m-a;l+=1)t[r].push(t[r][l%a]);if(r<b.length)for(let e=0;e<b[r].length;e+=1)t[r].push(b[r][e]);else t[r].push(...new Array(b[0].length).fill(null))}else t.push(t[r%i].slice(0,R).concat(b[r]));H.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let T,_=0,O=0,M=!0;const I=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const s=t[e%t.length];return null!==o?s[o%s.length]:s},N=t.length,A=o?o.row-e.row+1:0;for(i=o?A:Math.max(N,A),r=0;r<i&&!(o&&u.row>o.row&&A>N||!G.allowInsertRow&&u.row>H.countRows()-1||u.row>=G.maxRows);r++){const t=r-_,n=I(t).length,c=o?o.col-e.col+1:0;if(a=o?c:Math.max(n,c),u.col=e.col,T=H.getCellMeta(u.row,u.col),"CopyPaste.paste"!==s&&"Autofill.fill"!==s||!T.skipRowOnPaste){for(O=0,l=0;l<a&&!(o&&u.col>o.col&&c>n||!G.allowInsertColumn&&u.col>H.countCols()-1||u.col>=G.maxCols);l++){if(T=H.getCellMeta(u.row,u.col),("CopyPaste.paste"===s||"Autofill.fill"===s)&&T.skipColumnOnPaste){O+=1,u.col+=1,a+=1;continue}if(T.readOnly&&"UndoRedo.undo"!==s){u.col+=1;continue}let e=I(t,l-O),o=H.getDataAtCell(u.row,u.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===o&&(o=[]),null===o||"object"!=typeof o)M=!1;else{const t=(0,d.duckSchema)(Array.isArray(o)?o:o[0]||o),s=(0,d.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,d.isObjectEqual)(t,s)||Array.isArray(t)&&Array.isArray(s)?e=(0,d.deepClone)(e):M=!1}else null!==o&&"object"==typeof o&&(M=!1);M&&h.push([u.row,u.col,e]),M=!0,u.col+=1}u.row+=1}else _+=1,u.row+=1,i+=1}H.setDataAtCell(h,null,null,s||"populateFromArray")}}},this.init=function(){V.setData(G.data),H.runHooks("beforeInit"),((0,l.isMobileBrowser)()||(0,l.isIpadOS)())&&(0,n.addClass)(H.rootElement,"mobile"),this.updateSettings(G,!0),this.view=new y.default(this),W=a.default.getInstance(H,G,X),H.runHooks("init"),this.forceFullRender=!0,this.view.render(),B&&null===H.rootElement.offsetParent&&(0,n.observeVisibilityChangeOnce)(H.rootElement,(()=>{H.view._wt.wtOverlays.updateLastSpreaderSize(),H.render(),H.view.adjustElementsSize()})),"object"==typeof B&&(H.runHooks("afterChange",B[0],B[1]),B=!1),H.runHooks("afterInit")},this._createCellCoords=function(e,t){return H.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return H.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,s){let n=H.getCellValidator(t);function l(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const s=t.visualCol,n=t.visualRow,r=H.getCell(n,s,!0);if(r&&"TH"!==r.nodeName){const e=H.rowIndexMapper.getRenderableFromVisualIndex(n),t=H.columnIndexMapper.getRenderableFromVisualIndex(s);H.view._wt.getSetting("cellRenderer",e,t,r)}o(e)}var a;(0,i.isRegExp)(n)&&(a=n,n=function(e,t){t(a.test(e))}),(0,r.isFunction)(n)?(e=H.runHooks("beforeValidate",e,t.visualRow,t.prop,s),H._registerImmediate((()=>{n.call(t,e,(o=>{H&&(o=H.runHooks("afterValidate",o,e,t.visualRow,t.prop,s),t.valid=o,l(o),H.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,s))}))}))):H._registerImmediate((()=>{t.valid=!0,l(t.valid,!1)}))},this.setDataAtCell=function(e,t,o,s){const n=se(e,t,o),r=[];let i,l,a,h=s;for(i=0,l=n.length;i<l;i++){if("object"!=typeof n[i])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof n[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");a=n[i][1]>=this.countCols()?n[i][1]:k.colToProp(n[i][1]),r.push([n[i][0],a,V.getAtCell(this.toPhysicalRow(n[i][0]),n[i][1]),n[i][2]])}h||"object"!=typeof e||(h=t);const d=ne(r,s);H.runHooks("afterSetDataAtCell",d,h),te(d,h,(()=>{oe(d,h)}))},this.setDataAtRowProp=function(e,t,o,s){const n=se(e,t,o),r=[];let i,l,a=s;for(i=0,l=n.length;i<l;i++)r.push([n[i][0],n[i][1],V.getAtCell(this.toPhysicalRow(n[i][0]),n[i][1]),n[i][2]]);a||"object"!=typeof e||(a=t);const h=ne(r,s);H.runHooks("afterSetDataAtRowProp",h,a),te(h,a,(()=>{oe(h,a)}))},this.listen=function(){H&&!H.isListening()&&(x=H.guid,H.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(x=null,H.runHooks("afterUnlisten"))},this.isListening=function(){return x===H.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];H._refreshBorders(e,t)},this.populateFromArray=function(e,t,o,s,n,r,i){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const l="number"==typeof s?H._createCellCoords(s,n):null;return F.populateFromArray(H._createCellCoords(e,t),o,l,r,i)},this.spliceCol=function(e,t,o){for(var s=arguments.length,n=new Array(s>3?s-3:0),r=3;r<s;r++)n[r-3]=arguments[r];return k.spliceCol(e,t,o,...n)},this.spliceRow=function(e,t,o){for(var s=arguments.length,n=new Array(s>3?s-3:0),r=3;r<s;r++)n[r-3]=arguments[r];return k.spliceRow(e,t,o,...n)},this.getSelected=function(){if(X.isSelected())return(0,c.arrayMap)(X.getSelectedRange(),(e=>{let{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]}))},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(X.isSelected())return Array.from(X.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!X.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,c.arrayEach)(X.getSelectedRange(),(e=>{const o=e.getTopStartCorner(),s=e.getBottomEndCorner();(0,w.rangeEach)(o.row,s.row,(e=>{(0,w.rangeEach)(o.col,s.col,(o=>{this.getCellMeta(e,o).readOnly||t.push([e,o,null])}))}))})),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(W.lockEditor(),this._refreshBorders(null),W.unlockEditor()))},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const o=e();return this.resumeExecution(t),o},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!H.view)return;const{width:e,height:t}=H.view.getLastSize(),{width:o,height:s}=H.rootElement.getBoundingClientRect(),n=o!==e||s!==t;!1===H.runHooks("beforeRefreshDimensions",{width:e,height:t},{width:o,height:s},n)||((n||H.view._wt.wtOverlays.scrollableElement===H.rootWindow)&&(H.view.setLastSize(o,s),H.render()),H.runHooks("afterRefreshDimensions",{width:e,height:t},{width:o,height:s},n))},this.updateData=function(e,t){(0,I.replaceData)(e,(e=>{k=e}),(e=>{k=e,H.columnIndexMapper.fitToLength(this.getInitialColumnCount()),H.rowIndexMapper.fitToLength(this.countSourceRows()),F.adjustRowsAndCols()}),{hotInstance:H,dataMap:k,dataSource:V,internalSource:"updateData",source:t,metaManager:Y,firstRun:B})},this.loadData=function(e,t){(0,I.replaceData)(e,(e=>{k=e}),(()=>{Y.clearCellsCache(),H.initIndexMappers(),F.adjustRowsAndCols(),B&&(B=[null,"loadData"])}),{hotInstance:H,dataMap:k,dataSource:V,internalSource:"loadData",source:t,metaManager:Y,firstRun:B})},this.getInitialColumnCount=function(){const e=G.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,r.isFunction)(e))if("array"===H.dataType){const o=this.countSourceCols();for(let s=0;s<o;s+=1)e(s)&&(t+=1)}else"object"!==H.dataType&&"function"!==H.dataType||(t=k.colToPropCache.length);else if((0,i.isDefined)(G.dataSchema)){const e=k.getSchema();t=Array.isArray(e)?e.length:(0,d.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,o,s){return(0,i.isUndefined)(e)?k.getAll():k.getRange(H._createCellCoords(e,t),H._createCellCoords(o,s),k.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,s){return k.getCopyableText(H._createCellCoords(e,t),H._createCellCoords(o,s))},this.getCopyableData=function(e,t){return k.getCopyable(e,k.colToProp(t))},this.getSchema=function(){return k.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(B?H.loadData:H.updateData).bind(this);let s,n,l=!1;if((0,i.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,i.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,i.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(s in e)"data"===s||("language"===s?Q(e.language):"className"===s?J("className",e.className):"tableClassName"===s&&H.table?(J("tableClassName",e.tableClassName),H.view._wt.wtOverlays.syncOverlayTableClassNames()):T.default.getSingleton().isRegistered(s)||T.default.getSingleton().isDeprecated(s)?((0,r.isFunction)(e[s])||Array.isArray(e[s]))&&(e[s].initialHook=!0,H.addHook(s,e[s])):!t&&(0,d.hasOwnProperty)(e,s)&&(z[s]=e[s]));void 0===e.data&&void 0===G.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(k.createMap(),H.initIndexMappers());const a=H.countCols(),h=G.columns;if(h&&(0,r.isFunction)(h)&&(l=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||Y.clearCache(),a>0)for(s=0,n=0;s<a;s++){if(h){const e=l?h(s):h[n];e&&Y.updateColumnMeta(n,e)}n+=1}(0,i.isDefined)(e.cell)&&(0,d.objectEach)(e.cell,(e=>{H.setCellMetaObject(e.row,e.col,e)})),H.runHooks("afterCellMetaReset");let c=H.rootElement.style.height;""!==c&&(c=parseInt(H.rootElement.style.height,10));let u=e.height;if((0,r.isFunction)(u)&&(u=u()),t){H.rootElement.getAttribute("style")&&H.rootElement.setAttribute("data-initialstyle",H.rootElement.getAttribute("style"))}if(null===u){const e=H.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?H.rootElement.setAttribute("style",e):(H.rootElement.style.height="",H.rootElement.style.overflow="")}else void 0!==u&&(H.rootElement.style.height=isNaN(u)?`${u}`:`${u}px`,H.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,r.isFunction)(t)&&(t=t()),H.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(H.view&&(H.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),H.view._wt.exportSettingsAsClassNames()),H.runHooks("afterUpdateSettings",e)),F.adjustRowsAndCols(),H.view&&!B&&(H.forceFullRender=!0,W.lockEditor(),H._refreshBorders(null),H.view._wt.wtOverlays.adjustElementsSize(),W.unlockEditor()),t||!H.view||""!==c&&""!==u&&void 0!==u||c===u||H.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=H.getSelectedLast();if(G.getValue){if((0,r.isFunction)(G.getValue))return G.getValue.call(H);if(e)return H.getData()[e[0][0]][G.getValue]}else if(e)return H.getDataAtCell(e[0],e[1])},this.getSettings=function(){return G},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,s,n){F.alter(e,t,o,s,n)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t,n=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;s=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;n=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===n||null===s?null:H.view.getCellAtCoords(H._createCellCoords(n,s),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:s}=t;let n=o,r=s;return o>=0&&(n=this.rowIndexMapper.getVisualFromRenderableIndex(o)),s>=0&&(r=this.columnIndexMapper.getVisualFromRenderableIndex(s)),H._createCellCoords(n,r)},this.colToProp=function(e){return k.colToProp(e)},this.propToCol=function(e){return k.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return k.get(e,k.colToProp(t))},this.getDataAtRowProp=function(e,t){return k.get(e,t)},this.getDataAtCol=function(e){const t=[],o=k.getRange(H._createCellCoords(0,e),H._createCellCoords(G.data.length-1,e),k.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getDataAtProp=function(e){const t=[],o=k.getRange(H._createCellCoords(0,k.propToCol(e)),H._createCellCoords(G.data.length-1,k.propToCol(e)),k.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getSourceData=function(e,t,o,s){let n;return n=void 0===e?V.getData():V.getByRange(H._createCellCoords(e,t),H._createCellCoords(o,s)),n},this.getSourceDataArray=function(e,t,o,s){let n;return n=void 0===e?V.getData(!0):V.getByRange(H._createCellCoords(e,t),H._createCellCoords(o,s),!0),n},this.getSourceDataAtCol=function(e){return V.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,s){const n=se(e,t,o),r=this.hasHook("afterSetSourceDataAtCell"),l=[];r&&(0,c.arrayEach)(n,(e=>{let[t,o,s]=e;l.push([t,o,V.getAtCell(t,o),s])})),(0,c.arrayEach)(n,(e=>{let[t,o,s]=e;V.setAtCell(t,o,s)})),r&&this.runHooks("afterSetSourceDataAtCell",l,s),this.render();const a=H.getActiveEditor();a&&(0,i.isDefined)(a.refreshValue)&&a.refreshValue()},this.getSourceDataAtRow=function(e){return V.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return V.getAtCell(e,t)},this.getDataAtRow=function(e){return k.getRange(H._createCellCoords(e,0),H._createCellCoords(e,this.countCols()-1),k.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,s){const n=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,s],[r,i]=n;let[,,l,a]=n,h=null,d=null;void 0===l&&(l=r),void 0===a&&(a=i);let c="mixed";return(0,w.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),(e=>{let t=!0;return(0,w.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),(o=>{const s=this.getCellMeta(e,o);return d=s.type,h?t=h===d:h=d,t})),c=t?d:"mixed",t})),c},this.removeCellMeta=function(e,t,o){const[s,n]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let r=Y.getCellMetaKeyValue(s,n,o);!1!==H.runHooks("beforeRemoveCellMeta",e,t,o,r)&&(Y.removeCellMeta(s,n,o),H.runHooks("afterRemoveCellMeta",e,t,o,r)),r=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,s=new Array(o>2?o-2:0),n=2;n<o;n++)s[n-2]=arguments[n];if(s.length>0&&!Array.isArray(s[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&Y.removeRow(this.toPhysicalRow(e),t),s.length>0&&(0,c.arrayEach)(s.reverse(),(t=>{Y.createRow(this.toPhysicalRow(e)),(0,c.arrayEach)(t,((t,o)=>this.setCellMetaObject(e,o,t)))})),H.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,d.objectEach)(o,((o,s)=>{this.setCellMeta(e,t,s,o)}))},this.setCellMeta=function(e,t,o,s){if(!1===H.runHooks("beforeSetCellMeta",e,t,o,s))return;let n=e,r=t;e<this.countRows()&&(n=this.toPhysicalRow(e)),t<this.countCols()&&(r=this.toPhysicalColumn(t)),Y.setCellMeta(n,r,o,s),H.runHooks("afterSetCellMeta",e,t,o,s)},this.getCellsMeta=function(){return Y.getCellsMeta()},this.getCellMeta=function(e,t){let o=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===o&&(o=e),null===s&&(s=t),Y.getCellMeta(o,s,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return Y.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===H.dataType||G.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?H.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,f.getRenderer)(o):(0,i.isUndefined)(o)?(0,f.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?H.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,p.getEditor)(o):(0,i.isUndefined)(o)?(0,p.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?H.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,m.getValidator)(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,o){const s=new Z;e&&(s.onQueueEmpty=e);let n=H.countRows()-1;for(;n>=0;){if(void 0!==t&&-1===t.indexOf(n)){n-=1;continue}let e=H.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(s.addValidatorToQueue(),H.validateCell(H.getDataAtCell(n,e),H.getCellMeta(n,e),(e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(s.valid=!1),s.removeValidatorFormQueue()}),"validateCells"),e-=1):e-=1;n-=1}s.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=G.rowHeaders,o=e;return void 0!==o&&(o=H.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,w.rangeEach)(H.countRows()-1,(e=>{t.push(H.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,r.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!G.rowHeaders},this.hasColHeaders=function(){if(void 0!==G.colHeaders&&null!==G.colHeaders)return!!G.colHeaders;for(let e=0,t=H.countCols();e<t;e++)if(H.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=H.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=H.countCols();for(let o=0;o<t;o++)e.push(H.getColHeader(o));return e}let s=G.colHeaders;const n=H.toPhysicalColumn(o),i=function(e){const t=[],o=H.countCols();let s=0;for(;s<o;s++)(0,r.isFunction)(G.columns)&&G.columns(s)&&t.push(s);return t[e]}(n);return!1===G.colHeaders?s=null:G.columns&&(0,r.isFunction)(G.columns)&&G.columns(i)&&G.columns(i).title?s=G.columns(i).title:G.columns&&G.columns[n]&&G.columns[n].title?s=G.columns[n].title:Array.isArray(G.colHeaders)&&void 0!==G.colHeaders[n]?s=G.colHeaders[n]:(0,r.isFunction)(G.colHeaders)?s=G.colHeaders(n):G.colHeaders&&"string"!=typeof G.colHeaders&&"number"!=typeof G.colHeaders&&(s=(0,E.spreadsheetColumnLabel)(o)),s=H.runHooks("modifyColumnHeaderValue",s,e,t),s},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=H.getCellMeta(0,e).width}if(void 0!==t&&t!==G.width||(t=G.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){let t=H._getColWidthFromSettings(e);return t=H.runHooks("modifyColWidth",t,e),void 0===t&&(t=b.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){let t=G.rowHeights;if(null!=t){switch(typeof 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){let t=H._getRowHeightFromSettings(e);return t=H.runHooks("modifyRowHeight",t,e),t},this.countSourceRows=function(){return V.countRows()},this.countSourceCols=function(){return V.countFirstRowKeys()},this.countRows=function(){return k.getLength()},this.countCols=function(){const e=G.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return H.view._wt.drawn?H.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return H.view._wt.drawn?H.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return H.view._wt.drawn?H.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return H.view._wt.drawn?H.view._wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,w.rangeEachReverse)(H.countRows()-1,(o=>{if(H.isEmptyRow(o))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,w.rangeEachReverse)(H.countCols()-1,(o=>{if(H.isEmptyCol(o))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return G.isEmptyRow.call(H,e)},this.isEmptyCol=function(e){return G.isEmptyCol.call(H,e)},this.selectCell=function(e,t,o,s){let n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,i.isUndefined)(e)&&!(0,i.isUndefined)(t)&&this.selectCells([[e,t,o,s]],n,r)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(D=!0);const o=X.selectCells(e);return o&&t&&H.listen(),D=!1,o},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return X.selectColumns(e,t)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return X.selectRows(e,t)},this.deselectCell=function(){X.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=e&&this.hasRowHeaders(),o=e&&this.hasColHeaders();D=!0,X.selectAll(t,o),D=!1};const re=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=!o,r=!s;let i=e,l=t;if(!(arguments.length>4&&void 0!==arguments[4])||arguments[4]){const o=Number.isInteger(e),s=Number.isInteger(t),n=o?re(this.rowIndexMapper,e):void 0,r=s?re(this.columnIndexMapper,t):void 0;if(null===n||null===r)return!1;i=o?H.rowIndexMapper.getRenderableFromVisualIndex(n):void 0,l=s?H.columnIndexMapper.getRenderableFromVisualIndex(r):void 0}const a=Number.isInteger(i),h=Number.isInteger(l);return a&&h?H.view.scrollViewport(H._createCellCoords(i,l),n,s,o,r):a&&!1===h?H.view.scrollViewportVertically(i,n,o):!(!h||!1!==a)&&H.view.scrollViewportHorizontally(l,s,r)},this.destroy=function(){if(H._clearTimeouts(),H._clearImmediates(),H.view&&H.view.destroy(),V&&V.destroy(),V=null,this.getShortcutManager().destroy(),Y.clearCache(),(0,R.isRootInstance)(H)){const e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,n.empty)(H.rootElement),L.destroy(),W&&W.destroy(),H.batchExecution((()=>{H.rowIndexMapper.unregisterAll(),H.columnIndexMapper.unregisterAll(),K.getItems().forEach((e=>{let[,t]=e;t.destroy()})),K.clear(),H.runHooks("afterDestroy")}),!0),T.default.getSingleton().destroy(H),(0,d.objectEach)(H,((e,t,o)=>{var s;(0,r.isFunction)(e)?o[t]=(s=t,()=>{throw new Error(`The "${s}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)})),H.isDestroyed=!0,k&&k.destroy(),k=null,F=null,X=null,W=null,H=null},this.getActiveEditor=function(){return W.getActiveEditor()},this.getPlugin=function(e){const t=(0,C.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:K.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:K.getId(e)},this.getInstance=function(){return H},this.addHook=function(e,t){T.default.getSingleton().add(e,t,H)},this.hasHook=function(e){return T.default.getSingleton().has(e,H)||T.default.getSingleton().has(e)},this.addHookOnce=function(e,t){T.default.getSingleton().once(e,t,H)},this.removeHook=function(e,t){T.default.getSingleton().remove(e,t,H)},this.runHooks=function(e,t,o,s,n,r,i){return T.default.getSingleton().run(H,e,t,o,s,n,r,i)},this.getTranslatedPhrase=function(e,t){return(0,_.getTranslatedPhrase)(G.language,e,t)},this.toHTML=()=>(0,u.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,u.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,c.arrayEach)(this.timeouts,(e=>{clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,c.arrayEach)(this.immediates,(e=>{clearImmediate(e)}))},this._refreshBorders=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W.destroyEditor(e),H.view.render(),t&&X.isSelected()&&W.prepareEditor()},this.isRtl=function(){return"rtl"===H.rootWindow.getComputedStyle(H.rootElement).direction},this.isLtr=function(){return!H.isRtl()},this.getDirectionFactor=function(){return H.isLtr()?1:-1};const ie=(0,A.createShortcutManager)({handleEvent(e){const t=H.isListening(),o=void 0!==(null==e?void 0:e.key);return t&&o},beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||H.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(e=>{!1===e.ctrlKey&&!1===e.metaKey&&ie.releasePressedKeys()})),this.getShortcutManager=function(){return ie};const le=ie.addContext("grid"),ae={runOnlyIf:()=>(0,i.isDefined)(H.getSelected())&&H.countRenderedRows()>0&&H.countRenderedCols()>0,group:P};ie.setActiveContextName("grid"),le.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>{H.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:()=>{const e=H.getSelectedRange(),{row:t,col:o}=e[e.length-1].highlight,s=H.getDataAtCell(t,o),n=new Map;for(let r=0;r<e.length;r++)e[r].forAll(((e,r)=>{if(e>=0&&r>=0&&(e!==t||r!==o)){const{readOnly:t}=H.getCellMeta(e,r);t||n.set(`${e}x${r}`,[e,r,s])}}));H.setDataAtCell(Array.from(n.values()))},runOnlyIf:()=>H.getSelectedRangeLast().getCellsCount()>1},{keys:[["ArrowUp"]],callback:()=>{X.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>{X.setRangeStart(H._createCellCoords(H.rowIndexMapper.getNearestNotHiddenIndex(0,1),H.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:()=>{X.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.rowIndexMapper.getNearestNotHiddenIndex(0,1);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(o,t.col))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>{X.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>{X.setRangeStart(H._createCellCoords(H.rowIndexMapper.getNearestNotHiddenIndex(H.countRows()-1,-1),H.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:()=>{X.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.rowIndexMapper.getNearestNotHiddenIndex(H.countRows()-1,-1);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(o,t.col))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>{X.transformStart(0,-1*H.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=H.getSelectedRangeLast().highlight.row,t=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[H.countCols()-1,-1]:[0,1]);X.setRangeStart(H._createCellCoords(e,t))}},{keys:[["ArrowLeft","Shift"]],callback:()=>{X.transformEnd(0,-1*H.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[H.countCols()-1,-1]:[0,1]);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(t.row,o))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>{X.transformStart(0,H.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=H.getSelectedRangeLast().highlight.row,t=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[0,1]:[H.countCols()-1,-1]);X.setRangeStart(H._createCellCoords(e,t))}},{keys:[["ArrowRight","Shift"]],callback:()=>{X.transformEnd(0,H.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>{const{from:e,to:t}=H.getSelectedRangeLast(),o=H.columnIndexMapper.getNearestNotHiddenIndex(...H.isRtl()?[0,1]:[H.countCols()-1,-1]);X.setRangeStart(e.clone()),X.setRangeEnd(H._createCellCoords(t.row,o))},runOnlyIf:()=>!(H.selection.isSelectedByCorner()||H.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>{const e=parseInt(H.getSettings().fixedColumnsStart,10),t=H.getSelectedRangeLast().highlight.row,o=H.columnIndexMapper.getNearestNotHiddenIndex(e,1);X.setRangeStart(H._createCellCoords(t,o))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>{X.setRangeEnd(H._createCellCoords(X.selectedRange.current().from.row,H.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=parseInt(H.getSettings().fixedRowsTop,10),t=parseInt(H.getSettings().fixedColumnsStart,10),o=H.rowIndexMapper.getNearestNotHiddenIndex(e,1),s=H.columnIndexMapper.getNearestNotHiddenIndex(t,1);X.setRangeStart(H._createCellCoords(o,s))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>{X.setRangeStart(H._createCellCoords(H.getSelectedRangeLast().highlight.row,H.columnIndexMapper.getNearestNotHiddenIndex(H.countCols()-1,-1)))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>{X.setRangeEnd(H._createCellCoords(X.selectedRange.current().from.row,H.columnIndexMapper.getNearestNotHiddenIndex(H.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>{const e=parseInt(H.getSettings().fixedRowsBottom,10),t=H.rowIndexMapper.getNearestNotHiddenIndex(H.countRows()-e-1,-1),o=H.columnIndexMapper.getNearestNotHiddenIndex(H.countCols()-1,-1);X.setRangeStart(H._createCellCoords(t,o))},runOnlyIf:()=>H.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>{X.transformStart(-H.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:()=>{const{to:e}=H.getSelectedRangeLast(),t=Math.max(e.row-H.countVisibleRows(),0),o=H.rowIndexMapper.getNearestNotHiddenIndex(t,1);if(null!==o){const t=H._createCellCoords(o,e.col),s=e.row-H.view.getFirstFullyVisibleRow(),n=Math.max(t.row-s,0);X.setRangeEnd(t),H.scrollViewportTo(n)}}},{keys:[["PageDown"]],callback:()=>{X.transformStart(H.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:()=>{const{to:e}=H.getSelectedRangeLast(),t=Math.min(e.row+H.countVisibleRows(),H.countRows()-1),o=H.rowIndexMapper.getNearestNotHiddenIndex(t,-1);if(null!==o){const t=H._createCellCoords(o,e.col),s=e.row-H.view.getFirstFullyVisibleRow(),n=Math.min(t.row-s,H.countRows()-1);X.setRangeEnd(t),H.scrollViewportTo(n)}}},{keys:[["Tab"]],callback:e=>{const t="function"==typeof G.tabMoves?G.tabMoves(e):G.tabMoves;X.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:e=>{const t="function"==typeof G.tabMoves?G.tabMoves(e):G.tabMoves;X.transformStart(-t.row,-t.col)}}],ae),(0,g.getPluginsNames)().forEach((e=>{const t=(0,g.getPlugin)(e);K.addItem(e,new t(this))})),T.default.getSingleton().run(H,"construct")},o(8),o(78),o(94);var n=o(107),r=o(114),i=o(110),l=o(115),a=s(o(119)),h=s(o(126)),d=o(116),c=o(113),u=o(127),g=o(128),f=o(133),p=o(122),m=o(134),C=o(108),w=o(130),y=s(o(135)),v=s(o(210)),E=o(211),S=o(212),R=o(209),b=o(145),T=s(o(123)),_=o(232),O=o(233),M=o(238),I=o(253),N=o(131),A=o(269);const P="gridDefault";let x=null;new Set},(e,t,o)=>{"use strict";var s=o(9),n=o(46),r=o(70),i=o(75),l=o(77);s({target:"Array",proto:!0,arity:1,forced:o(13)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=n(this),o=r(t),s=arguments.length;l(o+s);for(var a=0;a<s;a++)t[o]=arguments[a],o++;return i(t,o),o}})},(e,t,o)=>{"use strict";var s=o(10),n=o(11).f,r=o(50),i=o(54),l=o(44),a=o(62),h=o(74);e.exports=function(e,t){var o,d,c,u,g,f=e.target,p=e.global,m=e.stat;if(o=p?s:m?s[f]||l(f,{}):(s[f]||{}).prototype)for(d in t){if(u=t[d],c=e.dontCallGetSet?(g=n(o,d))&&g.value:o[d],!h(p?d:f+(m?".":"#")+d,e.forced)&&void 0!==c){if(typeof u==typeof c)continue;a(u,c)}(e.sham||c&&c.sham)&&r(u,"sham",!0),i(o,d,u,e)}}},function(e){"use strict";var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},(e,t,o)=>{"use strict";var s=o(12),n=o(14),r=o(16),i=o(17),l=o(18),a=o(24),h=o(45),d=o(48),c=Object.getOwnPropertyDescriptor;t.f=s?c:function(e,t){if(e=l(e),t=a(t),d)try{return c(e,t)}catch(e){}if(h(e,t))return i(!n(r.f,e,t),e[t])}},(e,t,o)=>{"use strict";var s=o(13);e.exports=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,o)=>{"use strict";var s=o(15),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},(e,t,o)=>{"use strict";var s=o(13);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},(e,t)=>{"use strict";var o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!o.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,o)=>{"use strict";var s=o(19),n=o(22);e.exports=function(e){return s(n(e))}},(e,t,o)=>{"use strict";var s=o(20),n=o(13),r=o(21),i=Object,l=s("".split);e.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?l(e,""):i(e)}:i},(e,t,o)=>{"use strict";var s=o(15),n=Function.prototype,r=n.call,i=s&&n.bind.bind(r,r);e.exports=s?i:function(e){return function(){return r.apply(e,arguments)}}},(e,t,o)=>{"use strict";var s=o(20),n=s({}.toString),r=s("".slice);e.exports=function(e){return r(n(e),8,-1)}},(e,t,o)=>{"use strict";var s=o(23),n=TypeError;e.exports=function(e){if(s(e))throw n("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null==e}},(e,t,o)=>{"use strict";var s=o(25),n=o(29);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},(e,t,o)=>{"use strict";var s=o(14),n=o(26),r=o(29),i=o(36),l=o(39),a=o(40),h=TypeError,d=a("toPrimitive");e.exports=function(e,t){if(!n(e)||r(e))return e;var o,a=i(e,d);if(a){if(void 0===t&&(t="default"),o=s(a,e,t),!n(o)||r(o))return o;throw h("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},(e,t,o)=>{"use strict";var s=o(27),n=o(28),r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:s(e)||e===r}:function(e){return"object"==typeof e?null!==e:s(e)}},(e,t,o)=>{"use strict";var s=o(28),n=s.all;e.exports=s.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},e=>{"use strict";var t="object"==typeof document&&document.all,o=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:o}},(e,t,o)=>{"use strict";var s=o(30),n=o(27),r=o(31),i=o(32),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&r(t.prototype,l(e))}},(e,t,o)=>{"use strict";var s=o(10),n=o(27);e.exports=function(e,t){return arguments.length<2?(o=s[e],n(o)?o:void 0):s[e]&&s[e][t];var o}},(e,t,o)=>{"use strict";var s=o(20);e.exports=s({}.isPrototypeOf)},(e,t,o)=>{"use strict";var s=o(33);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,o)=>{"use strict";var s=o(34),n=o(13),r=o(10).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},(e,t,o)=>{"use strict";var s,n,r=o(10),i=o(35),l=r.process,a=r.Deno,h=l&&l.versions||a&&a.version,d=h&&h.v8;d&&(n=(s=d.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&i&&(!(s=i.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=i.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(e,t,o)=>{"use strict";var s=o(37),n=o(23);e.exports=function(e,t){var o=e[t];return n(o)?void 0:s(o)}},(e,t,o)=>{"use strict";var s=o(27),n=o(38),r=TypeError;e.exports=function(e){if(s(e))return e;throw r(n(e)+" is not a function")}},e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,o)=>{"use strict";var s=o(14),n=o(27),r=o(26),i=TypeError;e.exports=function(e,t){var o,l;if("string"===t&&n(o=e.toString)&&!r(l=s(o,e)))return l;if(n(o=e.valueOf)&&!r(l=s(o,e)))return l;if("string"!==t&&n(o=e.toString)&&!r(l=s(o,e)))return l;throw i("Can't convert object to primitive value")}},(e,t,o)=>{"use strict";var s=o(10),n=o(41),r=o(45),i=o(47),l=o(33),a=o(32),h=s.Symbol,d=n("wks"),c=a?h.for||h:h&&h.withoutSetter||i;e.exports=function(e){return r(d,e)||(d[e]=l&&r(h,e)?h[e]:c("Symbol."+e)),d[e]}},(e,t,o)=>{"use strict";var s=o(42),n=o(43);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:s?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,o)=>{"use strict";var s=o(10),n=o(44),r="__core-js_shared__",i=s[r]||n(r,{});e.exports=i},(e,t,o)=>{"use strict";var s=o(10),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(o){s[e]=t}return t}},(e,t,o)=>{"use strict";var s=o(20),n=o(46),r=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(n(e),t)}},(e,t,o)=>{"use strict";var s=o(22),n=Object;e.exports=function(e){return n(s(e))}},(e,t,o)=>{"use strict";var s=o(20),n=0,r=Math.random(),i=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+r,36)}},(e,t,o)=>{"use strict";var s=o(12),n=o(13),r=o(49);e.exports=!s&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},(e,t,o)=>{"use strict";var s=o(10),n=o(26),r=s.document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},(e,t,o)=>{"use strict";var s=o(12),n=o(51),r=o(17);e.exports=s?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},(e,t,o)=>{"use strict";var s=o(12),n=o(48),r=o(52),i=o(53),l=o(24),a=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",g="writable";t.f=s?r?function(e,t,o){if(i(e),t=l(t),i(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var s=d(e,t);s&&s[g]&&(e[t]=o.value,o={configurable:u in o?o[u]:s[u],enumerable:c in o?o[c]:s[c],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(i(e),t=l(t),i(o),n)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw a("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},(e,t,o)=>{"use strict";var s=o(12),n=o(13);e.exports=s&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,o)=>{"use strict";var s=o(26),n=String,r=TypeError;e.exports=function(e){if(s(e))return e;throw r(n(e)+" is not an object")}},(e,t,o)=>{"use strict";var s=o(27),n=o(51),r=o(55),i=o(44);e.exports=function(e,t,o,l){l||(l={});var a=l.enumerable,h=void 0!==l.name?l.name:t;if(s(o)&&r(o,h,l),l.global)a?e[t]=o:i(t,o);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=o:n.f(e,t,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},(e,t,o)=>{"use strict";var s=o(20),n=o(13),r=o(27),i=o(45),l=o(12),a=o(56).CONFIGURABLE,h=o(57),d=o(58),c=d.enforce,u=d.get,g=String,f=Object.defineProperty,p=s("".slice),m=s("".replace),C=s([].join),w=l&&!n((function(){return 8!==f((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=e.exports=function(e,t,o){"Symbol("===p(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(l?f(e,"name",{value:t,configurable:!0}):e.name=t),w&&o&&i(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&i(o,"constructor")&&o.constructor?l&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=c(e);return i(s,"source")||(s.source=C(y,"string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return r(this)&&u(this).source||h(this)}),"toString")},(e,t,o)=>{"use strict";var s=o(12),n=o(45),r=Function.prototype,i=s&&Object.getOwnPropertyDescriptor,l=n(r,"name"),a=l&&"something"===function(){}.name,h=l&&(!s||s&&i(r,"name").configurable);e.exports={EXISTS:l,PROPER:a,CONFIGURABLE:h}},(e,t,o)=>{"use strict";var s=o(20),n=o(27),r=o(43),i=s(Function.toString);n(r.inspectSource)||(r.inspectSource=function(e){return i(e)}),e.exports=r.inspectSource},(e,t,o)=>{"use strict";var s,n,r,i=o(59),l=o(10),a=o(26),h=o(50),d=o(45),c=o(43),u=o(60),g=o(61),f="Object already initialized",p=l.TypeError,m=l.WeakMap;if(i||c.state){var C=c.state||(c.state=new m);C.get=C.get,C.has=C.has,C.set=C.set,s=function(e,t){if(C.has(e))throw p(f);return t.facade=e,C.set(e,t),t},n=function(e){return C.get(e)||{}},r=function(e){return C.has(e)}}else{var w=u("state");g[w]=!0,s=function(e,t){if(d(e,w))throw p(f);return t.facade=e,h(e,w,t),t},n=function(e){return d(e,w)?e[w]:{}},r=function(e){return d(e,w)}}e.exports={set:s,get:n,has:r,enforce:function(e){return r(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var o;if(!a(t)||(o=n(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return o}}}},(e,t,o)=>{"use strict";var s=o(10),n=o(27),r=s.WeakMap;e.exports=n(r)&&/native code/.test(String(r))},(e,t,o)=>{"use strict";var s=o(41),n=o(47),r=s("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},e=>{"use strict";e.exports={}},(e,t,o)=>{"use strict";var s=o(45),n=o(63),r=o(11),i=o(51);e.exports=function(e,t,o){for(var l=n(t),a=i.f,h=r.f,d=0;d<l.length;d++){var c=l[d];s(e,c)||o&&s(o,c)||a(e,c,h(t,c))}}},(e,t,o)=>{"use strict";var s=o(30),n=o(20),r=o(64),i=o(73),l=o(53),a=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=r.f(l(e)),o=i.f;return o?a(t,o(e)):t}},(e,t,o)=>{"use strict";var s=o(65),n=o(72).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},(e,t,o)=>{"use strict";var s=o(20),n=o(45),r=o(18),i=o(66).indexOf,l=o(61),a=s([].push);e.exports=function(e,t){var o,s=r(e),h=0,d=[];for(o in s)!n(l,o)&&n(s,o)&&a(d,o);for(;t.length>h;)n(s,o=t[h++])&&(~i(d,o)||a(d,o));return d}},(e,t,o)=>{"use strict";var s=o(18),n=o(67),r=o(70),i=function(e){return function(t,o,i){var l,a=s(t),h=r(a),d=n(i,h);if(e&&o!=o){for(;h>d;)if((l=a[d++])!=l)return!0}else for(;h>d;d++)if((e||d in a)&&a[d]===o)return e||d||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},(e,t,o)=>{"use strict";var s=o(68),n=Math.max,r=Math.min;e.exports=function(e,t){var o=s(e);return o<0?n(o+t,0):r(o,t)}},(e,t,o)=>{"use strict";var s=o(69);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?o:t)(s)}},(e,t,o)=>{"use strict";var s=o(71);e.exports=function(e){return s(e.length)}},(e,t,o)=>{"use strict";var s=o(68),n=Math.min;e.exports=function(e){return e>0?n(s(e),9007199254740991):0}},e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},(e,t,o)=>{"use strict";var s=o(13),n=o(27),r=/#|\.prototype\./,i=function(e,t){var o=a[l(e)];return o==d||o!=h&&(n(t)?s(t):!!t)},l=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=i.data={},h=i.NATIVE="N",d=i.POLYFILL="P";e.exports=i},(e,t,o)=>{"use strict";var s=o(12),n=o(76),r=TypeError,i=Object.getOwnPropertyDescriptor,l=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(n(e)&&!i(e,"length").writable)throw r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},(e,t,o)=>{"use strict";var s=o(21);e.exports=Array.isArray||function(e){return"Array"==s(e)}},e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},(e,t,o)=>{"use strict";var s=o(9),n=o(10),r=o(79),i=o(80),l="WebAssembly",a=n[l],h=7!==Error("e",{cause:7}).cause,d=function(e,t){var o={};o[e]=i(e,t,h),s({global:!0,constructor:!0,arity:1,forced:h},o)},c=function(e,t){if(a&&a[e]){var o={};o[e]=i(l+"."+e,t,h),s({target:l,stat:!0,constructor:!0,arity:1,forced:h},o)}};d("Error",(function(e){return function(t){return r(e,this,arguments)}})),d("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),d("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),d("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),d("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),d("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),d("URIError",(function(e){return function(t){return r(e,this,arguments)}})),c("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),c("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),c("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},(e,t,o)=>{"use strict";var s=o(15),n=Function.prototype,r=n.apply,i=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?i.bind(r):function(){return i.apply(r,arguments)})},(e,t,o)=>{"use strict";var s=o(30),n=o(45),r=o(50),i=o(31),l=o(81),a=o(62),h=o(84),d=o(85),c=o(86),u=o(90),g=o(91),f=o(12),p=o(42);e.exports=function(e,t,o,m){var C="stackTraceLimit",w=m?2:1,y=e.split("."),v=y[y.length-1],E=s.apply(null,y);if(E){var S=E.prototype;if(!p&&n(S,"cause")&&delete S.cause,!o)return E;var R=s("Error"),b=t((function(e,t){var o=c(m?t:e,void 0),s=m?new E(e):new E;return void 0!==o&&r(s,"message",o),g(s,b,s.stack,2),this&&i(S,this)&&d(s,this,b),arguments.length>w&&u(s,arguments[w]),s}));if(b.prototype=S,"Error"!==v?l?l(b,R):a(b,R,{name:!0}):f&&C in E&&(h(b,E,C),h(b,E,"prepareStackTrace")),a(b,E),!p)try{S.name!==v&&r(S,"name",v),S.constructor=b}catch(e){}return b}}},(e,t,o)=>{"use strict";var s=o(82),n=o(53),r=o(83);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=s(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(e){}return function(o,s){return n(o),r(s),t?e(o,s):o.__proto__=s,o}}():void 0)},(e,t,o)=>{"use strict";var s=o(20),n=o(37);e.exports=function(e,t,o){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},(e,t,o)=>{"use strict";var s=o(27),n=String,r=TypeError;e.exports=function(e){if("object"==typeof e||s(e))return e;throw r("Can't set "+n(e)+" as a prototype")}},(e,t,o)=>{"use strict";var s=o(51).f;e.exports=function(e,t,o){o in e||s(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},(e,t,o)=>{"use strict";var s=o(27),n=o(26),r=o(81);e.exports=function(e,t,o){var i,l;return r&&s(i=t.constructor)&&i!==o&&n(l=i.prototype)&&l!==o.prototype&&r(e,l),e}},(e,t,o)=>{"use strict";var s=o(87);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},(e,t,o)=>{"use strict";var s=o(88),n=String;e.exports=function(e){if("Symbol"===s(e))throw TypeError("Cannot convert a Symbol value to a string");return n(e)}},(e,t,o)=>{"use strict";var s=o(89),n=o(27),r=o(21),i=o(40)("toStringTag"),l=Object,a="Arguments"==r(function(){return arguments}());e.exports=s?r:function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?o:a?r(t):"Object"==(s=r(t))&&n(t.callee)?"Arguments":s}},(e,t,o)=>{"use strict";var s={};s[o(40)("toStringTag")]="z",e.exports="[object z]"===String(s)},(e,t,o)=>{"use strict";var s=o(26),n=o(50);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},(e,t,o)=>{"use strict";var s=o(50),n=o(92),r=o(93),i=Error.captureStackTrace;e.exports=function(e,t,o,l){r&&(i?i(e,t):s(e,"stack",n(o,l)))}},(e,t,o)=>{"use strict";var s=o(20),n=Error,r=s("".replace),i=String(n("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,a=l.test(i);e.exports=function(e,t){if(a&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=r(e,l,"");return e}},(e,t,o)=>{"use strict";var s=o(13),n=o(17);e.exports=!s((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},(e,t,o)=>{"use strict";o(95),o(104)},(e,t,o)=>{"use strict";var s=o(9),n=o(10),r=o(96).clear;s({global:!0,bind:!0,enumerable:!0,forced:n.clearImmediate!==r},{clearImmediate:r})},(e,t,o)=>{"use strict";var s,n,r,i,l=o(10),a=o(79),h=o(97),d=o(27),c=o(45),u=o(13),g=o(99),f=o(100),p=o(49),m=o(101),C=o(102),w=o(103),y=l.setImmediate,v=l.clearImmediate,E=l.process,S=l.Dispatch,R=l.Function,b=l.MessageChannel,T=l.String,_=0,O={},M="onreadystatechange";u((function(){s=l.location}));var I=function(e){if(c(O,e)){var t=O[e];delete O[e],t()}},N=function(e){return function(){I(e)}},A=function(e){I(e.data)},P=function(e){l.postMessage(T(e),s.protocol+"//"+s.host)};y&&v||(y=function(e){m(arguments.length,1);var t=d(e)?e:R(e),o=f(arguments,1);return O[++_]=function(){a(t,void 0,o)},n(_),_},v=function(e){delete O[e]},w?n=function(e){E.nextTick(N(e))}:S&&S.now?n=function(e){S.now(N(e))}:b&&!C?(i=(r=new b).port2,r.port1.onmessage=A,n=h(i.postMessage,i)):l.addEventListener&&d(l.postMessage)&&!l.importScripts&&s&&"file:"!==s.protocol&&!u(P)?(n=P,l.addEventListener("message",A,!1)):n=M in p("script")?function(e){g.appendChild(p("script"))[M]=function(){g.removeChild(this),I(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:y,clear:v}},(e,t,o)=>{"use strict";var s=o(98),n=o(37),r=o(15),i=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:r?i(e,t):function(){return e.apply(t,arguments)}}},(e,t,o)=>{"use strict";var s=o(21),n=o(20);e.exports=function(e){if("Function"===s(e))return n(e)}},(e,t,o)=>{"use strict";var s=o(30);e.exports=s("document","documentElement")},(e,t,o)=>{"use strict";var s=o(20);e.exports=s([].slice)},e=>{"use strict";var t=TypeError;e.exports=function(e,o){if(e<o)throw t("Not enough arguments");return e}},(e,t,o)=>{"use strict";var s=o(35);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},(e,t,o)=>{"use strict";var s=o(21);e.exports="undefined"!=typeof process&&"process"==s(process)},(e,t,o)=>{"use strict";var s=o(9),n=o(10),r=o(96).set,i=o(105),l=n.setImmediate?i(r,!1):r;s({global:!0,bind:!0,enumerable:!0,forced:n.setImmediate!==l},{setImmediate:l})},(e,t,o)=>{"use strict";var s,n=o(10),r=o(79),i=o(27),l=o(106),a=o(35),h=o(100),d=o(101),c=n.Function,u=/MSIE .\./.test(a)||l&&((s=n.Bun.version.split(".")).length<3||0==s[0]&&(s[1]<3||3==s[1]&&0==s[2]));e.exports=function(e,t){var o=t?2:1;return u?function(s,n){var l=d(arguments.length,1)>o,a=i(s)?s:c(s),u=l?h(arguments,o):[],g=l?function(){r(a,this,u)}:a;return t?e(g,n):e(g)}:e}},e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},(e,t,o)=>{"use strict";t.__esModule=!0,t.addClass=function(e,t){"string"==typeof t&&(t=t.split(" "));(t=i(t)).length>0&&e.classList.add(...t)},t.addEvent=function(e,t,o){e.addEventListener(t,o,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=r,t.closestDown=function(e,t,o){const s=[];let n=e;for(;n&&(n=r(n,t,o),n&&(!o||o.contains(n)));)s.push(n),n=n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.host:n.parentNode;const i=s.length;return i?s[i-1]:null},t.empty=l,t.fastInnerHTML=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a.test(t)?e.innerHTML=o?(0,s.sanitize)(t):t:h(e,t)},t.fastInnerText=h,t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getComputedStyle=u,t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFrameElement=n,t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,s=null,n=e;for(;null!==n;){if(o===t){s=n;break}n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n=n.host:(o+=1,n=n.parentNode)}return s},t.getParentWindow=function(e){return n(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return c(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return d(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,o=t?t.defaultView:void 0;t||(t=e.document?e.document:e,o=t.defaultView);const s=["auto","scroll"];let n=e.parentNode;for(;n&&n.style&&t.body!==n;){let{overflow:e,overflowX:t,overflowY:r}=n.style;if([e,t,r].includes("scroll"))return n;if(({overflow:e,overflowX:t,overflowY:r}=o.getComputedStyle(n)),s.includes(e)||s.includes(t)||s.includes(r))return n;if(n.clientHeight<=n.scrollHeight+1&&(s.includes(r)||s.includes(e)))return n;if(n.clientWidth<=n.scrollWidth+1&&(s.includes(t)||s.includes(e)))return n;n=n.parentNode}return o},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===g&&(g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const o=e.createElement("div");o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(t),(e.body||e.documentElement).appendChild(o);const s=t.offsetWidth;o.style.overflow="scroll";let n=t.offsetWidth;s===n&&(n=o.clientWidth);return(e.body||e.documentElement).removeChild(o),s-n}(e));return g},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let o="";e.getSelection?o=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(o=t.selection.createRange().text);return o},t.getStyle=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===o)return"width"===t?`${o.innerWidth}px`:"height"===t?`${o.innerHeight}px`:void 0;const s=e.style[t];if(""!==s&&void 0!==s)return s;const n=u(e,o);if(""!==n[t]&&void 0!==n[t])return n[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let s=e.parentNode;for(;s&&s.style&&t.body!==s;){if("visible"!==s.style.overflow&&""!==s.style.overflow)return s;const e=u(s,o),t=["scroll","hidden","auto"],n=e.getPropertyValue("overflow"),r=e.getPropertyValue("overflow-y"),i=e.getPropertyValue("overflow-x");if(t.includes(n)||t.includes(r)||t.includes(i))return s;s=s.parentNode}return o},t.getWindowScrollLeft=c,t.getWindowScrollTop=d,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){let t=0,o=e;if(o.previousSibling)for(;o=o.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let o=e.parentNode,s=[];"string"==typeof t?s=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):s.push(t);for(;null!==o;){if(s.indexOf(o)>-1)return!0;o=o.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=f,t.isOutsideInput=p,t.isVisible=function e(t){const o=t.ownerDocument.documentElement;let s=t;for(;s!==o;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if(s.style&&"none"===s.style.display)return!1;s=s.parentNode}return!0},t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let s=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?s=e.msMatchesSelector(o):e.matches&&(s=e.matches(o)));return s},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver(((o,s)=>{o.forEach((o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),s.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,s=t.documentElement;let n,r,i,l=e;n=l.offsetLeft,r=l.offsetTop,i=l;for(;(l=l.offsetParent)&&l!==t.body;)n+=l.offsetLeft,r+=l.offsetTop,i=l;i&&"fixed"===i.style.position&&(n+=o.pageXOffset||s.scrollLeft,r+=o.pageYOffset||s.scrollTop);return{left:n,top:r}},t.outerHeight=function(e){return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const s=o.parentElement.querySelector(`.ht_clone_${e}`);return s?s.contains(t):null},t.removeClass=function(e,t){"string"==typeof t&&(t=t.split(" "));(t=i(t)).length>0&&e.classList.remove(...t)},t.removeEvent=function(e,t,o){e.removeEventListener(t,o,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const o=t.childNodes;for(let t=o.length-1;t>=0;t--)e(o[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.selectElementIfAllowed=function(e){p(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,o){void 0===o&&(o=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(s){const n=e.parentNode,r=n.style.display;n.style.display="block",e.setSelectionRange(t,o),n.style.display=r}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(8),o(78);var s=o(108);function n(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:s,DOCUMENT_FRAGMENT_NODE:n}=Node;let r=e;for(;null!=r&&r!==o;){const{nodeType:e,nodeName:o}=r;if(e===s&&(t.includes(o)||t.includes(r)))return r;const{host:i}=r;r=i&&e===n?i:r.parentNode}return null}function i(e){return e&&e.length?e.filter((e=>!!e)):[]}function l(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const a=/(<(.*)>|&(.*);)/;function h(e,t){const o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(l(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function d(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function c(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}let g;function f(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function p(e){return f(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=a},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];let n=o.length;for(;n;){n-=1;const t=(0,r.stringify)(o[n]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=i,t.stripTags=function(e){return i(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,((e,o)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o]))},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},o(8);var n=s(o(109)),r=o(110);function i(e,t){return n.default.sanitize(e,t)}},t=>{"use strict";t.exports=e},(e,t,o)=>{"use strict";var s=o(1);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="13.1.0-next-68e93c1-20230811";let i,y="invalid",v="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==u("Z"))return!1;for(let t="",s="B<H4P+".split(""),n=u(s.shift());n;n=u(s.shift()||"A"))--n<""[a]?o|=(d(`${d(h(t)+(h(c(e,Math.abs(n),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,n,n?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,n.default)("23/08/2023","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);i=(0,n.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(y="expired",v="expired"):(y="valid",v="valid")}else s?(y="non_commercial",v="valid"):(y="invalid",v="invalid");else y="missing",v="missing";p()&&(y="valid",v="valid");if(!m&&"valid"!==y){C[y]({keyValidityDate:i,hotVersion:r})&&console["non_commercial"===y?"info":"warn"](C[y]({keyValidityDate:i,hotVersion:r})),m=!0}if("valid"!==v&&t.parentNode){if(w[v]({keyValidityDate:i,hotVersion:r})){const e=document.createElement("div");e.className="hot-display-license-info",e.innerHTML=w[v]({keyValidityDate:i,hotVersion:r}),t.parentNode.insertBefore(e,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=l,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=i,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var n=s(o(111)),r=o(112);function i(e){return void 0===e}function l(e){return null===e||""===e||i(e)}const a="length",h=e=>parseInt(e,16),d=e=>parseInt(e,10),c=(e,t,o)=>e.substr(t,o),u=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(c(g(e),h("12"),u("F")))/(h(c(g(e),u("B"),~~![][a]))||9),p=()=>"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);let m=!1;const C={invalid:()=>r.toSingleLine`
|
2
2
|
The license key for Handsontable is invalid.\x20
|
3
3
|
If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return r.toSingleLine`
|
4
4
|
The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
|
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "13.1.0-next-
|
137
|
+
const hotVersion = "13.1.0-next-68e93c1-20230811";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
@@ -142,7 +142,7 @@ function _injectProductInfo(key, element) {
|
|
142
142
|
const schemaValidity = _checkKeySchema(key);
|
143
143
|
if (hasValidType || isNonCommercial || schemaValidity) {
|
144
144
|
if (schemaValidity) {
|
145
|
-
const releaseDate = (0, _moment.default)("
|
145
|
+
const releaseDate = (0, _moment.default)("23/08/2023", 'DD/MM/YYYY');
|
146
146
|
const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
|
147
147
|
const keyValidityDays = _extractTime(key);
|
148
148
|
keyValidityDate = (0, _moment.default)((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "13.1.0-next-
|
127
|
+
const hotVersion = "13.1.0-next-68e93c1-20230811";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
@@ -132,7 +132,7 @@ export function _injectProductInfo(key, element) {
|
|
132
132
|
const schemaValidity = _checkKeySchema(key);
|
133
133
|
if (hasValidType || isNonCommercial || schemaValidity) {
|
134
134
|
if (schemaValidity) {
|
135
|
-
const releaseDate = moment("
|
135
|
+
const releaseDate = moment("23/08/2023", 'DD/MM/YYYY');
|
136
136
|
const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
|
137
137
|
const keyValidityDays = _extractTime(key);
|
138
138
|
keyValidityDate = moment((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "13.1.0-next-
|
13
|
+
"version": "13.1.0-next-68e93c1-20230811",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|