handsontable 16.0.0-next-f486b48-20250702 → 16.0.0-next-98c6ac7-20250707

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: 16.0.0-next-f486b48-20250702
29
- * Release date: 09/07/2025 (built at 02/07/2025 09:19:09)
28
+ * Version: 16.0.0-next-98c6ac7-20250707
29
+ * Release date: 09/07/2025 (built at 07/07/2025 08:41:19)
30
30
  */
31
31
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["dompurify","@handsontable/pikaday","moment","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("dompurify"),require("@handsontable/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 i={57:(e,t,o)=>{"use strict";o(44065),o(56060)},155:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(13795),i=o(40799);const r=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:r,editor:s.SelectEditor,renderer:i.selectRenderer}},184:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89255);const i={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,s.defineGetter)(i,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=i},214:e=>{"use strict";e.exports=function(e){return null==e}},226:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=n;var s=o(55934),i=o(58741);const r=t.RENDERER_TYPE="html";function n(e,t,o,r,n,l,a){s.baseRenderer.apply(this,[e,t,o,r,n,l,a]),(0,i.fastInnerHTML)(t,null==l?"":l,!1)}n.RENDERER_TYPE=r},281:(e,t,o)=>{"use strict";var s=o(39157),i=o(9370),r=o(96891);e.exports=function(e,t,o){s?i.f(e,t,r(0,o)):e[t]=o}},578:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),s=o?e.countColHeaders():0,{row:i}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+s;r=0===r?1:r,i===e.countRows()-1?r=1:i+r>e.countRows()&&(r=e.countRows()-i-1),t.markSource("keyboard"),t.transformStart(r,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},642:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499).has,r=o(30845),n=o(18622),l=o(98304),a=o(78016),h=o(63884);e.exports=function(e){var t=s(this),o=n(e);if(r(t)<=o.size)return!1!==l(t,function(e){if(o.includes(e))return!1},!0);var c=o.getIterator();return!1!==a(c,function(e){if(i(t,e))return h(c,"normal",!1)})}},721:(e,t,o)=>{"use strict";var s,i=o(77618),r=o(65126),n=o(60370),l=o(13884),a=o(3034),h=o(4158),c=o(86224),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&s?m(s):(t=h("iframe"),o="java"+d+":",t.style.display="none",a.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(s);for(var i=n.length;i--;)delete w[u][n[i]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=i(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:r.f(o,t)}},739:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t,o){(0,i.default)(this,"offset",void 0),(0,i.default)(this,"total",void 0),(0,i.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=o}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},1024:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(22121);class i extends s.OrderView{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}t.SharedOrderView=i},1325:(e,t,o)=>{"use strict";var s=o(25225),i=o(6996),r=o(30334),n=s(Function.toString);i(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),e.exports=r.inspectSource},1403:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new r.default({className:"highlight",...t,selectionType:i.HIGHLIGHT_AREA_TYPE})};var i=o(33674),r=s(o(97616))},1478:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(90795),o(89663),o(82141);var i=s(o(53726)),r=o(89255),n=o(5455),l=s(o(28494)),a=o(85296),h=o(44725),c=o(32201),u=o(97213),d=o(43393);const g="ConditionCollection.filteringStates";class f{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,i.default)(this,"hot",void 0),(0,i.default)(this,"isMapRegistrable",void 0),(0,i.default)(this,"filteringStates",new d.LinkedPhysicalIndexToValueMap),this.hot=e,this.isMapRegistrable=t,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(g,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}isEmpty(){return 0===this.getFilteredColumns().length}isMatch(e,t){var o;const s=this.filteringStates.getValueAtIndex(t),i=null!==(o=null==s?void 0:s.conditions)&&void 0!==o?o:[],r=null==s?void 0:s.operation;return this.isMatchInConditions(i,e,r)}isMatchInConditions(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID;return!e.length||(0,c.getOperationFunc)(o)(e,t)}addCondition(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID,s=arguments.length>3?arguments[3]:void 0;const i=this.hot.getCellMeta(0,e).locale,r=t.args.map(e=>"string"==typeof e?e.toLocaleLowerCase(i):e),l=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);const d=this.getOperation(e);if(d){if(d!==o)throw Error(n.toSingleLine`The column of index ${e} has been already applied with a \`${d}\`\x20
32
32
  filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
@@ -59,7 +59,7 @@
59
59
  * Last updated: Nov 15, 2017
60
60
  *
61
61
  * Description: Definition file for English - United States language-country.
62
- */(o(16372));const i={languageCode:"en-US",[s.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[s.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[s.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[s.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[s.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[s.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[s.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[s.CONTEXTMENU_ITEMS_UNDO]:"Undo",[s.CONTEXTMENU_ITEMS_REDO]:"Redo",[s.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[s.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[s.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[s.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[s.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[s.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[s.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[s.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[s.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[s.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[s.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[s.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[s.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[s.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[s.CONTEXTMENU_ITEMS_COPY]:"Copy",[s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[s.CONTEXTMENU_ITEMS_CUT]:"Cut",[s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[s.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[s.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[s.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[s.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[s.FILTERS_CONDITIONS_NONE]:"None",[s.FILTERS_CONDITIONS_EMPTY]:"Is empty",[s.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[s.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[s.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[s.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[s.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[s.FILTERS_CONDITIONS_CONTAINS]:"Contains",[s.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[s.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[s.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[s.FILTERS_CONDITIONS_BETWEEN]:"Is between",[s.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[s.FILTERS_CONDITIONS_AFTER]:"After",[s.FILTERS_CONDITIONS_BEFORE]:"Before",[s.FILTERS_CONDITIONS_TODAY]:"Today",[s.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[s.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[s.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[s.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[s.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[s.FILTERS_LABELS_CONJUNCTION]:"And",[s.FILTERS_LABELS_DISJUNCTION]:"Or",[s.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[s.FILTERS_BUTTONS_CLEAR]:"Clear",[s.FILTERS_BUTTONS_OK]:"OK",[s.FILTERS_BUTTONS_CANCEL]:"Cancel",[s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[s.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[s.CHECKBOX_CHECKED]:"Checked",[s.CHECKBOX_UNCHECKED]:"Unchecked"};t.default=i},48444:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(73741),o(37782),o(69326),o(89663);var i=s(o(53726)),r=o(94218),n=o(89255);class l extends r.BaseAction{constructor(e){let{changes:t,selected:o,countCols:s,countRows:r}=e;super("change"),(0,i.default)(this,"changes",void 0),(0,i.default)(this,"selected",void 0),(0,i.default)(this,"countCols",void 0),(0,i.default)(this,"countRows",void 0),this.changes=t,this.selected=o,this.countCols=s,this.countRows=r}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(o,s){const i=o&&o.length;if(!i)return;if(!o.find(e=>{const[,,t,o]=e;return t!==o}))return;t.done(()=>{const t=o.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const s=i>1?this.getSelected():[[t[0][0],t[0][1]]];return new l({changes:t,selected:s,countCols:e.countCols(),countRows:e.countRows()})},s)})}undo(e,t){const o=(0,n.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.undo");const s=e.countRows()-this.countRows;s>0&&e.alter("remove_row",null,s,"UndoRedo.undo");const i=e.countCols()-this.countCols;i>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,i,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const o=(0,n.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}t.DataChangeAction=l},48505:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(85296);const r=t.CONDITION_NAME="gte";function n(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value>=s}(0,i.registerCondition)(r,n,{name:s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},48536:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(this,"rootNode",void 0),(0,i.default)(this,"rootDocument",void 0),(0,i.default)(this,"rowHeaders",null),(0,i.default)(this,"columnHeaders",null),(0,i.default)(this,"colGroup",null),(0,i.default)(this,"rows",null),(0,i.default)(this,"cells",null),(0,i.default)(this,"rowFilter",null),(0,i.default)(this,"columnFilter",null),(0,i.default)(this,"rowUtils",null),(0,i.default)(this,"columnUtils",null),(0,i.default)(this,"rowsToRender",0),(0,i.default)(this,"columnsToRender",0),(0,i.default)(this,"rowHeaderFunctions",[]),(0,i.default)(this,"rowHeadersCount",0),(0,i.default)(this,"columnHeaderFunctions",[]),(0,i.default)(this,"columnHeadersCount",0),(0,i.default)(this,"cellRenderer",void 0),(0,i.default)(this,"activeOverlayName",void 0),(0,i.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=o}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:o,rows:s,cells:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),s.setTable(this),i.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=s,this.cells=i}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let o=0;o<e;o++){const e=t.getRenderedNode(o),s=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),i=s.getHeightByOverlayName(t,this.activeOverlayName),r=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=i?i-r+"px":""}}}}},48622:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(58741),n=o(30848),l=s(o(739)),a=s(o(81341)),h=o(97948),c=s(o(59432)),u=s(o(52436)),d=o(40457),g=o(6532);t.default=class{constructor(e,t,o,s,n){(0,i.default)(this,"wtSettings",null),(0,i.default)(this,"domBindings",void 0),(0,i.default)(this,"TBODY",null),(0,i.default)(this,"THEAD",null),(0,i.default)(this,"COLGROUP",null),(0,i.default)(this,"hasTableHeight",!0),(0,i.default)(this,"hasTableWidth",!0),(0,i.default)(this,"isTableVisible",!1),(0,i.default)(this,"tableOffset",0),(0,i.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===n,this.name=n,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=s,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,r.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const l=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(l)),this.rowUtils=new u.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new c.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtSpreader",t&&t.insertBefore(o,e),o.appendChild(e)),o.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtHider",t&&t.insertBefore(o,e),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,r.setAttribute)(o,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(o,e),this.isMaster&&(o.parentNode.className+="ht_master handsontable",o.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:o,wtViewport:s}=this.dataAccessObject,i=t.getSetting("totalRows"),n=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),g=u.length;let f=e;if(this.isMaster&&(o.beforeDraw(),this.holderOffset=(0,r.offset)(this.holder),f=s.createCalculators(f),c&&!t.getSetting("fixedColumnsStart"))){const e=o.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(f=!1)}if(f)this.isMaster&&o.refresh(!0);else{this.isMaster?this.tableOffset=(0,r.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new a.default(e,i,g),this.columnFilter=new l.default(t,n,c);let f=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),f=!0!==e.skipRender}f&&(this.tableRenderer.setHeaderContentRenderers(h,u),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||s.createVisibleCalculators(),o.refresh(!1),o.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let p=!1;return this.isMaster&&(p=o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&(p=o.bottomOverlay.resetFixedPosition()||p),p=o.inlineStartOverlay.resetFixedPosition()||p,o.topInlineStartCornerOverlay&&o.topInlineStartCornerOverlay.resetFixedPosition(),o.bottomInlineStartCornerOverlay&&o.bottomInlineStartCornerOverlay.clone&&o.bottomInlineStartCornerOverlay.resetFixedPosition()),p?(o.refreshAll(),o.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(f),this.isMaster&&o.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let o=this.wtSettings.getSetting("columnHeaders").length;const s=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i,n,l;const a=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,i=this.getColumnHeaderHeight(o),n=this.getColumnHeader(t,o),n&&(l=(0,r.innerHeight)(n),(!i&&s<l||i<l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),Array.isArray(a)?null!==a[o]&&void 0!==a[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]):isNaN(a)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(a[o]||a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]||a))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let s=0,i=e.getSetting("columnHeaders").length;s<i;s++)if(o[s]){if(!t[s]||0===t[s].childNodes.length)return;t[s].childNodes[0].style.height=`${o[s]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let o=0;o<e;o++){const e=this.rowFilter.renderedToSource(o);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,o=e.col;const s=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(s&&Array.isArray(s)&&([t,o]=s),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const i=this.getRow(t);if(!i&&t>=0)throw new Error("TR was expected to be rendered but is not");const r=i.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!r&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return r}getRow(e){let t=null,o=null;var s,i;e<0?(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceToRendered(e),o=this.TBODY);return void 0!==t&&void 0!==o&&(!(o.childNodes.length<t+1)&&o.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=this.THEAD.childNodes[t];return null==o?void 0:o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],o=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const s=e.childNodes[o];s&&t.push(s)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const o=this.rowFilter.sourceToRendered(e),s=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,i=(o<0?this.THEAD:this.TBODY).childNodes[s];return null==i?void 0:i.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let s=0;s<o;s++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[s];i&&t.push(i)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,r.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const s=o.parentNode;let i=(0,r.index)(o),n=t.cellIndex;if((0,r.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===s.nodeName&&(i-=s.childNodes.length);else if((0,r.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){i=this.wtSettings.getSetting("totalRows")-s.childNodes.length+i}else s===this.THEAD?i=this.rowFilter.visibleColHeadedRowToSourceRow(i):this.rowFilter&&(i=this.rowFilter.renderedToSource(i));(0,r.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?n=this.columnFilter.offsettedTH(n):this.columnFilter&&(n=this.columnFilter.visibleRowHeadedColumnToSourceColumn(n));const l=this.wtSettings.getSetting("onModifyGetCoordsElement",i,n);return l&&Array.isArray(l)&&([i,n]=l),this.wot.createCellCoords(i,n)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),s=(0,r.innerHeight)(this.TBODY)-1,i=t.areCellsBorderBox(),n=i?r.outerHeight:r.innerHeight,l=i?0:1,a=i?1:0;let h,c,u,d,g;if(o!==s||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),h=this.getRowHeight(u),d=this.getTrForRow(u),g=d.querySelector("th");const o=0===u?a:0;c=g?n(g):n(d)-l,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(i||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=c)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,r.outerWidth)(this.TABLE)}getHeight(){return(0,r.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,r.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,r.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,r.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,n.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},49030:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}}},49078:(e,t,o)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,s.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var s=o(58741)},49080:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=r;var s=o(93692);const i=t.RENDERER_TYPE="select";function r(e,t,o,i,r,n,l){s.textRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},49581:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,f.registerEditor)(i.BaseEditor),(0,f.registerEditor)(s.AutocompleteEditor),(0,f.registerEditor)(r.CheckboxEditor),(0,f.registerEditor)(n.DateEditor),(0,f.registerEditor)(l.DropdownEditor),(0,f.registerEditor)(a.HandsontableEditor),(0,f.registerEditor)(h.NumericEditor),(0,f.registerEditor)(c.PasswordEditor),(0,f.registerEditor)(u.SelectEditor),(0,f.registerEditor)(d.TextEditor),(0,f.registerEditor)(g.TimeEditor)};var s=o(89891);t.AutocompleteEditor=s.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=s.EDITOR_TYPE;var i=o(16410);t.BaseEditor=i.BaseEditor,t.BASE_EDITOR=i.EDITOR_TYPE;var r=o(40154);t.CheckboxEditor=r.CheckboxEditor,t.CHECKBOX_EDITOR=r.EDITOR_TYPE;var n=o(69383);t.DateEditor=n.DateEditor,t.DATE_EDITOR=n.EDITOR_TYPE;var l=o(85990);t.DropdownEditor=l.DropdownEditor,t.DROPDOWN_EDITOR=l.EDITOR_TYPE;var a=o(79450);t.HandsontableEditor=a.HandsontableEditor,t.HANDSONTABLE_EDITOR=a.EDITOR_TYPE;var h=o(78084);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var c=o(35242);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var u=o(13795);t.SelectEditor=u.SelectEditor,t.SELECT_EDITOR=u.EDITOR_TYPE;var d=o(9288);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=o(79750);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var f=o(95422);t.registerEditor=f.registerEditor,t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor},49726:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(22577);t.CELL_TYPE=s.CELL_TYPE,t.PasswordCellType=s.PasswordCellType},49834:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(s.AutocompleteCellType),(0,g.registerCellType)(i.CheckboxCellType),(0,g.registerCellType)(r.DateCellType),(0,g.registerCellType)(n.DropdownCellType),(0,g.registerCellType)(l.HandsontableCellType),(0,g.registerCellType)(a.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var s=o(99163);t.AutocompleteCellType=s.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=s.CELL_TYPE;var i=o(97286);t.CheckboxCellType=i.CheckboxCellType,t.CHECKBOX_TYPE=i.CELL_TYPE;var r=o(68035);t.DateCellType=r.DateCellType,t.DATE_TYPE=r.CELL_TYPE;var n=o(76070);t.DropdownCellType=n.DropdownCellType,t.DROPDOWN_TYPE=n.CELL_TYPE;var l=o(65254);t.HandsontableCellType=l.HandsontableCellType,t.HANDSONTABLE_TYPE=l.CELL_TYPE;var a=o(73682);t.NumericCellType=a.NumericCellType,t.NUMERIC_TYPE=a.CELL_TYPE;var h=o(49726);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(40751);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(78332);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(51350);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(83211);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},49968:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(10476);t.RENDERER_TYPE=s.RENDERER_TYPE,t.numericRenderer=s.numericRenderer,t.getRenderedValue=s.getRenderedValue},50236:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},50289:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(58741),n=o(80578),l=o(56836),a=o(6532);class h extends l.BaseRenderer{constructor(){super("TD"),(0,i.default)(this,"orderViews",new WeakMap),(0,i.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new n.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:o,rowHeaders:s}=this.table;for(let l=0;l<e;l++){const e=this.table.renderedRowToSource(l),h=o.getRenderedNode(l);this.sourceRowIndex=e;const c=this.obtainOrderView(h),u=s.obtainOrderView(h);c.prependView(u).setSize(t).setOffset(0).start();for(let o=0;o<t;o++){c.render();const t=this.table.renderedColumnToSource(o),s=c.getCurrentNode();var i,n;if((0,r.hasClass)(s,"hide")||(s.className=""),s.removeAttribute("style"),s.removeAttribute("dir"),(0,r.removeAttribute)(s,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,s),this.table.isAriaEnabled())(0,r.setAttribute)(s,[...s.hasAttribute("role")?[]:[(0,a.A11Y_GRIDCELL)()],(0,a.A11Y_TABINDEX)(-1),(0,a.A11Y_COLINDEX)(t+(null!==(i=null===(n=this.table.rowUtils)||void 0===n||null===(n=n.dataAccessObject)||void 0===n?void 0:n.rowHeaders.length)&&void 0!==i?i:0)+1)])}c.end()}}}t.CellsRenderer=h},50539:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(36837);var i=s(o(91997)),r=o(99543),n=o(38749),l=o(12945),a=o(15022),h=o(83211),c=o(78332),u=o(16410),d=o(33674);function g(e,t){const o=new i.default(e,t||{},r.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.default(e,t,r.rootInstanceSymbol)},g.DefaultSettings=(0,n.metaSchemaFactory)(),g.hooks=l.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="02/07/2025 09:19:09",g.version="16.0.0-next-f486b48-20250702",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};t.default=g},50596:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=o(12945),l=o(13351),a=o(89255),h=o(1508),c=o(97836),u=o(16402),d=o(94293),g=o(58741),f=o(72365);function p(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="contextMenu",C=t.PLUGIN_PRIORITY=70,v=w;n.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),n.Hooks.getSingleton().register("beforeContextMenuShow"),n.Hooks.getSingleton().register("afterContextMenuShow"),n.Hooks.getSingleton().register("afterContextMenuHide"),n.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class E extends r.BasePlugin{constructor(){super(...arguments),p(this,y),(0,i.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,i.default)(this,"itemsFactory",null),(0,i.default)(this,"menu",null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.ROW_ABOVE,f.ROW_BELOW,f.SEPARATOR,f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_ROW,f.REMOVE_COLUMN,f.SEPARATOR,f.UNDO,f.REDO,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[w];"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new u.Menu(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.menu.addLocalHook("beforeOpen",()=>m(y,this,R).call(this)),this.menu.addLocalHook("afterOpen",()=>m(y,this,b).call(this)),this.menu.addLocalHook("afterClose",()=>m(y,this,_).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)}),this.addHook("afterOnCellContextMenu",e=>m(y,this,S).call(this,e)),this.registerShortcuts(),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control/Meta","Shift","Backslash"],["Shift","F10"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();this.hot.scrollToFocusedCell();const t=this.hot.getCell(e.row,e.col,!0).getBoundingClientRect(),o=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({left:t.left+o.left,top:t.top+o.top-1+t.height},{left:t.width,above:-t.height}),this.menu.getNavigator().toFirstItem()},runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&!this.menu.isOpened()},group:v})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();const s=this.menu.tableBorderWidth>0;(0,a.objectEach)(o,(e,t)=>{const o=["below","right"].includes(t)?e+1:e-1;this.menu.setOffset(t,s?e:o)}),this.menu.setPosition(e)}close(){var e;null===(e=this.menu)||void 0===e||e.close(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,E.DEFAULT_ITEMS);const e=this.hot.getSettings()[w],t={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",t),this.itemsFactory.setPredefinedItems(t.items);const o=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,l.arrayEach)(o,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function S(e){const t=this.hot.getSettings(),o=t.rowHeaders,s=t.colHeaders;const i=e.target;if(this.close(),(0,g.hasClass)(i,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!s&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(i)||(0,g.hasClass)(i,"current")&&(0,g.hasClass)(i,"wtBorder")))return;const r=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+r.top,left:e.clientX+r.left})}function R(){this.hot.runHooks("beforeContextMenuShow",this)}function b(){this.hot.runHooks("afterContextMenuShow",this)}function _(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}t.ContextMenu=E,E.SEPARATOR={name:f.SEPARATOR}},50671:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(60591);var i=s(o(53726)),r=o(13351);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,i.default)(this,"rootWindow",void 0),(0,i.default)(this,"prefix",void 0),(0,i.default)(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const o=void 0===e?t:e,s=this.rootWindow.localStorage.getItem(`${this.prefix}_${o}`);return null===s?void 0:JSON.parse(s)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,r.arrayEach)(this.savedKeys,(e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)}),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}}},50704:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_after";function a(e,t){let[o]=t;const s=(0,i.default)(e.value,e.meta.dateFormat),r=(0,i.default)(o,e.meta.dateFormat);return!(!s.isValid()||!r.isValid())&&s.diff(r)>=0}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},50916:e=>{"use strict";e.exports={}},51040:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(89255),n=o(13351),l=o(67220),a=o(83211),h=o(95422),c=o(73424),u=o(97287),d=s(o(80277));function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const m=new Map([["plugin",l.hasPlugin],["cell-type",a.hasCellType],["editor",h.hasEditor],["renderer",c.hasRenderer],["validator",u.hasValidator]]),w=t.defaultMainSettingSymbol=Symbol("mainSetting"),C=t.PLUGIN_KEY="base",v=[];let y=null;var E=new WeakMap,S=new WeakSet;function R(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let o=0;o<t.length;o++)if(void 0!==e[t[o]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return C}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}constructor(e){var t,o;g(t=this,o=S),o.add(t),(0,i.default)(this,"eventManager",new d.default(this)),(0,i.default)(this,"pluginName",null),(0,i.default)(this,"pluginsInitializedCallbacks",[]),(0,i.default)(this,"isPluginsReady",!1),(0,i.default)(this,"enabled",!1),(0,i.default)(this,"initialized",!1),function(e,t,o){g(e,t),t.set(e,o)}(this,E,{}),(0,r.defineGetter)(this,"hot",e,{writable:!1}),y=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[o,s]=t.split(":");if(!m.has(o))throw new Error(`Unknown plugin dependency type "${o}" was found.`);m.get(o)(s)||e.push(` - ${s} (${o})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");v.push(t)}}y||(y=(0,l.getPluginsNames)()),y.indexOf(this.pluginName)>=0&&y.splice(y.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===y.length){if(v.length>0){const e=[`${v.join("\n")}\n`,"You have to import and register them manually."].join("");throw v.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.hot.getSettings()[this.constructor.PLUGIN_KEY];if(void 0===e)return t;const o=this.constructor.DEFAULT_SETTINGS;var s,i;return(Array.isArray(t)||(0,r.isObject)(t))&&o[w]===e?Array.isArray(t)?t:null!==(s=t[e])&&void 0!==s?s:o[e]:(0,r.isObject)(t)&&null!==(i=t[e])&&void 0!==i?i:o[e]}addHook(e,t,o){f(E,this)[e]=f(E,this)[e]||[];const s=f(E,this)[e];this.hot.addHook(e,t,o),s.push(t),f(E,this)[e]=s}removeHooks(e){(0,n.arrayEach)(f(E,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=f(E,this);(0,r.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,n.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=p(S,this,R).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,r.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},51176:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(58741);t.default=class{constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"nestedHeaderSettingsGetter",void 0),(0,i.default)(this,"layersCount",0),(0,i.default)(this,"container",void 0),(0,i.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),o=t.length;this.widthsMap.clear();for(let e=0;e<o;e++){const o=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),s=this.hot.toPhysicalColumn(o);this.widthsMap.setValueAtIndex(s,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:o}=this.hot,s=t.createDocumentFragment(),i=t.createElement("table"),n=!!this.hot.getSettings().dropdownMenu,l=o.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const s=t.createElement("tr");for(let i=0;i<l;i++){let l=o.getVisualFromRenderableIndex(i);null===l&&(l=i);const a=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,l);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;n&&(e+='<button class="changeType"></button>'),(0,r.fastInnerHTML)(a,e),a.colSpan=h.colspan,s.appendChild(a)}}i.appendChild(s)}s.appendChild(i),e.appendChild(s)}clear(){this.widthsMap.clear(),this.container=null}}},51350:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(99633);t.CELL_TYPE=s.CELL_TYPE,t.TimeCellType=s.TimeCellType},51376:(e,t,o)=>{"use strict";t.__esModule=!0,t.getMoves=function(e,t,o){return function(e){return e.forEach((t,o)=>{e.slice(o+1).forEach(e=>{const o=e.from<e.to;e.from>t.from&&o&&(e.from-=1)})}),e}(function(e,t){const o=[];return e.forEach(e=>{const s={from:e,to:t};o.forEach(e=>{const t=e.from>e.to,o=e.to<=s.from;e.from>s.from&&o&&t&&(s.from+=1)}),s.from>=t&&(t+=1),o.push(s)}),o}(e,function(e,t,o){const s=Array.from(Array(o).keys()).filter(t=>!1===e.includes(t));var i;return 0===t?null!==(i=s[t])&&void 0!==i?i:0:s[t-1]+1}(e,t,o)))},o(85639),o(73741),o(7307),o(69326)},51490:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.locale;return function(t,n){const{sortEmptyCells:l}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(r)),"string"==typeof n&&(n=n.toLocaleLowerCase(r)),t===n?i.DO_NOT_SWAP:(0,s.isEmpty)(t)?(0,s.isEmpty)(n)?i.DO_NOT_SWAP:l&&"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(0,s.isEmpty)(n)?l&&"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(n)?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(n)?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(n)||(t=parseFloat(t),n=parseFloat(n)),t<n?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:t>n?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP)}};var s=o(97213),i=o(7378);t.COLUMN_DATA_TYPE="default"},51511:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(65985),n=o(86713),l=o(77618),a=o(74218),h=o(63884),c=o(69498)("forEach",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){l(this);try{n(e)}catch(e){h(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),o=0;r(t,function(t){e(t,o++)},{IS_RECORD:!0})}})},51571:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(79501);t.default=class{constructor(e){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:s}=this._getDataRange(),i=this.options,n=[];return(0,r.rangeEach)(e,o,e=>{const o=[];!i.exportHiddenRows&&this._isHiddenRow(e)||((0,r.rangeEach)(t,s,t=>{!i.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),n.push(o))}),n}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),s=this.hot.getRowHeader();(0,r.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(s[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),s=this.hot.getColHeader();(0,r.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(s[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,s=0,i=t,r=e]=this.options.range;return o=Math.max(o,0),s=Math.max(s,0),i=Math.min(i,t),r=Math.min(r,e),{startRow:o,startCol:s,endRow:i,endCol:r}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},51596:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(30848),n=o(89255),l=s(o(28494));class a{constructor(e){(0,i.default)(this,"wasLastActionShow",!0),(0,i.default)(this,"showDebounced",null),(0,i.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,r.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,n.mixin)(a,l.default);t.default=a},51993:(e,t,o)=>{"use strict";o(78484)},52112:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{rowClassName:t,...o}=e;return new r.default({className:t,...o,selectionType:i.HIGHLIGHT_ROW_TYPE})};var i=o(33674),r=s(o(97616))},52218:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.checkboxRenderer=v,o(85639),o(73741),o(16178),o(90795);var i=o(55934),r=s(o(80277)),n=o(58741),l=o(97213),a=o(76107),h=o(12945),c=o(6532),u=o(16372);const d=new WeakMap,g=new WeakMap,f="htBadValue",p="data-row",m="data-col",w="checkboxRenderer",C=t.RENDERER_TYPE="checkbox";function v(e,t,o,s,h,C,v){const{rootDocument:E}=e,S=e.getSettings().ariaTags;i.baseRenderer.apply(this,[e,t,o,s,h,C,v]),function(e){let t=g.get(e);if(!t){const{rootElement:o}=e;t=new r.default(e),t.addEventListener(o,"click",t=>function(e,t){const{target:o}=e;if(!y(o))return;if(!o.hasAttribute(p)||!o.hasAttribute(m))return;const s=parseInt(o.getAttribute(p),10),i=parseInt(o.getAttribute(m),10),r=t.getCellMeta(s,i);r.readOnly&&e.preventDefault()}(t,e)),t.addEventListener(o,"mouseup",t=>function(e,t){const{target:o}=e;if(!y(o))return;if(!o.hasAttribute(p)||!o.hasAttribute(m))return;setTimeout(t.listen,10)}(t,e)),t.addEventListener(o,"change",t=>function(e,t){const{target:o}=e;if(!y(o))return;if(!o.hasAttribute(p)||!o.hasAttribute(m))return;const s=parseInt(o.getAttribute(p),10),i=parseInt(o.getAttribute(m),10),r=t.getCellMeta(s,i);if(!r.readOnly){let o=null;o=e.target.checked?void 0===r.uncheckedTemplate||r.checkedTemplate:void 0!==r.uncheckedTemplate&&r.uncheckedTemplate,t.setDataAtCell(s,i,o)}}(t,e)),g.set(e,t)}}(e);let R=function(e){const t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(E);const b=v.label;let _=!1;if(void 0===v.checkedTemplate&&(v.checkedTemplate=!0),void 0===v.uncheckedTemplate&&(v.uncheckedTemplate=!1),(0,n.empty)(t),C===v.checkedTemplate||(0,l.stringify)(C).toLocaleLowerCase(v.locale)===(0,l.stringify)(v.checkedTemplate).toLocaleLowerCase(v.locale)?R.checked=!0:C===v.uncheckedTemplate||(0,l.stringify)(C).toLocaleLowerCase(v.locale)===(0,l.stringify)(v.uncheckedTemplate).toLocaleLowerCase(v.locale)?R.checked=!1:(0,l.isEmpty)(C)?(0,n.addClass)(R,"noValue"):(R.style.display="none",(0,n.addClass)(R,f),_=!0),(0,n.setAttribute)(R,[[p,o],[m,s]]),S&&(0,n.setAttribute)(R,[(0,c.A11Y_LABEL)(R.checked?e.getTranslatedPhrase(u.CHECKBOX_CHECKED):e.getTranslatedPhrase(u.CHECKBOX_UNCHECKED)),(0,c.A11Y_CHECKED)(R.checked),(0,c.A11Y_CHECKBOX)()]),!_&&b){let i="";if(b.value)i="function"==typeof b.value?b.value.call(this,o,s,h,C):b.value;else if(b.property){const t=e.getDataAtRowProp(o,b.property);i=null!==t?t:""}const r=function(e,t,o){const s=e.createElement("label");s.className="htCheckboxRendererLabel "+(o?"fullWidth":"");const i=e.createTextNode(t);if(o){const t=e.createElement("span");t.appendChild(i),s.appendChild(t)}else s.appendChild(i);return s.cloneNode(!0)}(E,i,!0!==b.separated);"before"===b.position?b.separated?(t.appendChild(r),t.appendChild(R)):(r.appendChild(R),R=r):b.position&&"after"!==b.position||(b.separated?(t.appendChild(R),t.appendChild(r)):(r.insertBefore(R,r.firstChild),R=r))}function T(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const o=e.getSelectedRange(),s=[],i=new Map;let r=[],n=0;if(o){for(let l=0;l<o.length;l++){const{row:a,col:h}=o[l].getTopStartCorner(),{row:c,col:u}=o[l].getBottomEndCorner();for(let o=a;o<=c;o+=1)for(let l=h;l<=u;l+=1){const a=e.getCellMeta(o,l);if(a.hidden)continue;const h={checkedTemplate:a.checkedTemplate,uncheckedTemplate:a.uncheckedTemplate};if("checkbox"!==a.type){!0!==t||a.readOnly||(i.has(s.length)?i.set(s.length,[...i.get(s.length),[o,l,null]]):i.set(s.length,[[o,l,null]]));continue}if(!0===a.readOnly)continue;void 0===a.checkedTemplate&&(a.checkedTemplate=!0),void 0===a.uncheckedTemplate&&(a.uncheckedTemplate=!1);const c=e.getDataAtCell(o,l);!1===t?[a.checkedTemplate,a.checkedTemplate.toString()].includes(c)?r.push([o,l,a.uncheckedTemplate,h]):[a.uncheckedTemplate,a.uncheckedTemplate.toString(),null,void 0].includes(c)&&r.push([o,l,a.checkedTemplate,h]):r.push([o,l,a.uncheckedTemplate,h]),n+=1}s.push(n),n=0}r=r.every(e=>{let[,,t]=e;return t===r[0][2]})?r.map(e=>{let[t,o,s]=e;return[t,o,s]}):r.map(e=>{let[t,o,,s]=e;return[t,o,s.checkedTemplate]}),r.length>0&&s.forEach((t,o)=>{let s=r.splice(0,t);i.size&&i.has(o)&&(s=[...s,...i.get(o)]),e.setDataAtCell(s)})}}function M(){const t=e.getSelectedRange();if(t){for(let o=0;o<t.length;o++){const s=t[o].getTopStartCorner(),i=t[o].getBottomEndCorner();for(let t=s.row;t<=i.row;t++)for(let o=s.col;o<=i.col;o++){if(e.getCellMeta(t,o).readOnly)continue;const s=e.getCell(t,o);if((0,n.isHTMLElement)(s)){if(s.querySelectorAll("input[type=checkbox]").length>0)return!0}}}return!1}}(!b||b&&!b.separated)&&t.appendChild(R),_&&t.appendChild(E.createTextNode("#bad-value#")),d.has(e)||(d.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),o={group:w,relativeToGroup:a.EDITOR_EDIT_GROUP,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(T(),!M()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(T(),!M()),runOnlyIf:()=>{const t=e.getSelectedRangeLast();return e.getSettings().enterBeginsEditing&&(null==t?void 0:t.highlight.isCell())&&!e.selection.isMultiple()}},{keys:[["delete"],["backspace"]],callback:()=>(T(!0),!M()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}}],o)}())}function y(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}h.Hooks.getSingleton().add("modifyAutoColumnSizeSeed",function(e,t,o){const{label:s,type:i,row:r,column:n,prop:l}=t;if(i===C){if(s){const{value:t,property:i}=s;let a=o;if(t)a="function"==typeof t?t(r,n,l,o):t;else if(i){const e=this.getDataAtRowProp(r,i);a=null!==e?e:o}e=a}return e}}),v.RENDERER_TYPE=C},52436:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t){(0,i.default)(this,"dataAccessObject",void 0),(0,i.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const o=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==o&&(t=void 0===t?o:Math.max(t,o)),t}getHeightByOverlayName(e,t){let o=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const s=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==s&&(o=void 0===o?s:Math.max(o,s)),o}}},52462:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(58741),i=o(66497),r=o(89255),n=o(8874),l=o(87011);t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,l.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,i.stopImmediatePropagation)(e);const o=this,s=this.wot.rootDocument.body,r=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(s,"mousemove",function e(i){var n;((n=i).clientY<Math.floor(r.top)||n.clientY>Math.ceil(r.top+r.height)||n.clientX<Math.floor(r.left)||n.clientX>Math.ceil(r.left+r.width))&&(o.eventManager.removeEventListener(s,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let s=this.main.style;s.position="absolute",s.top=0,s.left=0;for(let i=0;i<5;i++){const r=o[i],n=t.createElement("div");n.className=`wtBorder ${this.settings.className||""}`,this.settings[r]&&this.settings[r].hide&&(n.className+=" hidden"),s=n.style,s.backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,s.height=this.settings[r]&&this.settings[r].width?`${this.settings[r].width}px`:`${e.border.width}px`,s.width=this.settings[r]&&this.settings[r].width?`${this.settings[r].width}px`:`${e.border.width}px`,this.main.appendChild(n)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,n.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:i}=this.wot;let r=i.bordersHolder;r||(r=t.createElement("div"),r.className="htBorders",i.bordersHolder=r,i.spreader.appendChild(r)),r.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),s=o.getCSSVariableValue("cell-mobile-handle-size"),i=o.getCSSVariableValue("cell-mobile-handle-border-radius"),n=o.getCSSVariableValue("cell-mobile-handle-background-color"),l=o.getCSSVariableValue("cell-mobile-handle-border-width"),a=o.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const h={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,r.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const c=o.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${s}px`,width:`${s}px`,"border-radius":`${i}px`,background:`${n}`,border:`${l}px solid ${a}`};(0,r.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,s,i,r){const n=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:l,topHitArea:a,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(l.borderWidth,10),d=parseInt(l.width,10),g=parseInt(a.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();l.top=`${parseInt(o-d-1,10)}px`,l[n]=`${parseInt(s-d-1,10)}px`,a.top=`${parseInt(o-g/4*3,10)}px`,a[n]=`${parseInt(s-g/4*3,10)}px`;const m=Math.min(parseInt(s+i,10),f-d-2*u),w=Math.min(parseInt(s+i-g/4,10),f-g-2*u);h[n]=`${m}px`,c[n]=`${w}px`;const C=Math.min(parseInt(o+r,10),p-d-2*u),v=Math.min(parseInt(o+r-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",a.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(l.display="none",h.display="none",a.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",a.zIndex="9999"):(l.zIndex="",a.zIndex="")}appear(e){if(this.disabled)return;let[t,o,i,r]=e;if(t<0&&i<0||o<0&&r<0)return void this.disappear();const{wtTable:l,rootDocument:a,rootWindow:h}=this.wot,c=t!==i||o!==r,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=l.getFirstRenderedRow(),g=l.getLastRenderedRow(),f=l.getFirstRenderedColumn(),p=l.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),r=Math.min(r,p),t=Math.max(t,d),i=Math.min(i,g),r<o||i<t)return void this.disappear();m=l.getCell(this.wot.createCellCoords(t,o))}else if(m=l.getCell(this.wot.createCellCoords(t,o)),!(0,s.isHTMLElement)(m))return void this.disappear();const w=c?l.getCell(this.wot.createCellCoords(i,r)):m,C=(0,s.offset)(m),v=c?(0,s.offset)(w):C,y=(0,s.offset)(l.TABLE),E=C.top,S=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,s.outerWidth)(l.TABLE),t=(0,s.outerWidth)(m),o=h.innerWidth-y.left-e;_=S+t-v.left,b=h.innerWidth-S-t-o-1}else _=v.left+(0,s.outerWidth)(w)-S,b=S-y.left-1;if(this.isEntireColumnSelected(t,i)){const e=t,s=this.getDimensionsFromHeader("columns",o,r,e,y);let i=null;s&&([i,b,_]=s),i&&(m=i)}let T=E-y.top-1,M=v.top+(0,s.outerHeight)(w)-E;if(this.isEntireRowSelected(o,r)){const e=o,s=this.getDimensionsFromHeader("rows",t,i,e,y);let r=null;s&&([r,T,M]=s),r&&(m=r)}const I=h.getComputedStyle(m);parseInt(I.borderTopWidth,10)>0&&(T+=1,M=M>0?M-1:0),parseInt(I[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,_=_>0?_-1:0);const O=R?"right":"left",N=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+N}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+N}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+N}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+N}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+N}px`,this.endStyle.height=`${M+N}px`,this.endStyle.display="block";let A=this.settings.border.cornerVisible;A="function"==typeof A?A(this.settings.layerLevel):A;const H=this.wot.getSetting("onModifyGetCellCoords",i,r,!1,"render");let[x,P]=[i,r];if(H&&Array.isArray(H)&&([,,x,P]=H),(0,n.isMobileBrowser)()||!A||this.isPartRange(x,P))this.cornerStyle.display="none";else{this.cornerStyle.top=T+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=b+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,s.getTrimmingContainer)(l.TABLE);const t=e===h;t&&(e=a.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,n=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(r===this.wot.getSetting("totalColumns")-1){const i=t?w.getBoundingClientRect().left:w.offsetLeft;let r=!1,l=0;if(R?(l=i-parseInt(this.cornerDefaultStyle.width,10)/2,r=l<0):(l=i+(0,s.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,r=l>=(0,s.innerWidth)(e)),r){const e=Math.floor(b+_+this.cornerCenterPointOffset-n-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(i===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,s.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(e)){const e=Math.floor(T+M+this.cornerCenterPointOffset-c-o);u?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,n.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(i,r,T,b,_,M)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,i,r){const{wtTable:n}=this.wot,l=n.wtRootElement.parentNode;let a=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":a=function(){return n.getRowHeader(...arguments)},h=function(){return(0,s.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":a=function(){return n.getColumnHeader(...arguments)},h=function(){return(0,s.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(l.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=a(t,e-i),p=a(o,e-i),!f||!p)return!1;const n=(0,s.offset)(f),l=(0,s.offset)(p);return f&&p&&(u=n[g]-r[g]-1,d=l[g]+h(p)-n[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,i=t[e];!i||i.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),o.backgroundColor=i.color,"top"!==e&&"bottom"!==e||(o.height=`${i.width}px`),"start"!==e&&"end"!==e||(o.width=`${i.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",s=this[e].style;s.backgroundColor=o,s.width=`${t}px`,s.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,n.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},52514:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=o(58741),r=o(89255),n=s(o(28494)),l=o(64791);function a(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;class y{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t,o){var s=this;a(this,d,void 0),a(this,g,void 0),a(this,f,!1),a(this,p,null),a(this,m,void 0),a(this,w,void 0),a(this,C,!0),a(this,v,new l.EditorResizeObserver),c(d,this,e),c(g,this,o),c(f,this,t),c(m,this,this.createEditor()),c(w,this,h(m,this).style),h(v,this).setObservedElement(this.getInputElement()),h(v,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runLocalHooks("resize",...t)}),this.hide()}setPosition(e,t){h(w,this).left=`${e}px`,h(w,this).top=`${t}px`}setSize(e,t){if(e&&t){const o=this.getInputElement();o.style.width=`${e}px`,o.style.height=`${t}px`}}getSize(){return{width:(0,i.outerWidth)(this.getInputElement()),height:(0,i.outerHeight)(this.getInputElement())}}observeSize(){h(v,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(w,this).display="block",c(C,this,!1)}hide(){h(v,this).unobserve(),h(C,this)||(h(w,this).display="none"),c(C,this,!0)}isVisible(){return"block"===h(w,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",c(p,this,h(d,this).createElement("div")),h(p,this).setAttribute("dir",h(f,this)?"rtl":"ltr"),(0,i.addClass)(h(p,this),y.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(p,this)),(0,i.addClass)(e,y.CLASS_EDITOR),(0,i.addClass)(t,y.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(p,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${y.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(p,this)?h(p,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),c(m,this,null),c(w,this,null),h(v,this).destroy(),e&&e.removeChild(h(p,this))}}(0,r.mixin)(y,n.default);t.default=y},52587:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(-1,0),t.markEndSource()}}},52679:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(17748);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Formulas=s.Formulas},52682:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=o(13351),l=o(89255),a=o(1508),h=o(94293),c=o(58741),u=o(97836),d=o(16402),g=o(12945),f=o(72365),p=o(6532);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,E="changeType",S=v;var R=new WeakMap,b=new WeakSet;class _ extends r.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,i.default)(this,"commandExecutor",new a.CommandExecutor(this.hot)),(0,i.default)(this,"itemsFactory",null),(0,i.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>C(b,this,I).call(this,e,t))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,P).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,x).call(e,...o)});const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const s=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",s),this.menu.setMenuItems(s),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,N).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,A).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,H).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)}),(0,n.arrayEach)(s,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),s=this.hot.getCell(-1,t.col,!0).querySelector(`.${E}`),i=s.getBoundingClientRect();this.open({left:i.left+o.left,top:i.top+s.offsetHeight+o.top},{left:i.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>C(b,this,M).call(this,e))}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,l.objectEach)(o,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,E)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function I(e,t){const o=t.parentNode;if(!o)return;const s=o.parentNode.childNodes,i=Array.prototype.indexOf.call(s,o);if(e<0||i!==s.length-1)return;const r=t.querySelector(`.${E}`);if(this.enabled&&r)return;if(!this.enabled)return void(r&&r.parentNode.removeChild(r));const n=this.hot.rootDocument.createElement("button");n.className=E,n.type="button",n.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(n,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),n.onclick=function(){return!1},t.firstChild.insertBefore(n,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function N(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function A(e){C(b,this,T).call(this,e)}function H(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function x(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function P(e){(0,c.hasClass)(e.target,E)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},52712:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(9288),n=o(25875),l=o(58741),a=o(6532);const h=t.EDITOR_TYPE="password";class c extends r.TextEditor{constructor(){super(...arguments),(0,i.default)(this,"autoResize",(0,n.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,a.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},52784:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499).has,r=o(30845),n=o(18622),l=o(78016),a=o(63884);e.exports=function(e){var t=s(this),o=n(e);if(r(t)<o.size)return!1;var h=o.getIterator();return!1!==l(h,function(e){if(!i(t,e))return a(h,"normal",!1)})}},52813:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.depthFirstPreOrder=n;var i=s(o(53726));o(88443),o(85639);const r=t.TRAVERSAL_DF_PRE="DF-pre-order";function n(e,t){let o=e.call(t,this);for(let s=0;s<this.childs.length;s++){if(!1===o)return!1;o=n.call(this.childs[s],e,t)}return o}const l=t.TRAVERSAL_DF_POST="DF-post-order";const a=t.TRAVERSAL_BF="BF";const h=a,c=new Map([[r,n],[l,function e(t,o){for(let s=0;s<this.childs.length;s++){if(!1===e.call(this.childs[s],t,o))return!1}return t.call(o,this)}],[a,function(e,t){const o=[this];!function s(){if(0===o.length)return;const i=o.shift();o.push(...i.childs),!1!==e.call(t,i)&&s()}()}]]);class u{constructor(e){(0,i.default)(this,"data",{}),(0,i.default)(this,"parent",null),(0,i.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=s=>{!1!==e.call(t,s)&&null!==s.parent&&o(s.parent)};o(this)}}t.default=u},52825:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.timeValidator=l;var i=s(o(86798));const r=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],n=t.VALIDATOR_TYPE="time";function l(e,t){const o=this.timeFormat||"h:mm:ss a";let s=!0,n=e;null===n&&(n=""),n=/^\d{3,}$/.test(n)?parseInt(n,10):n;const l=/^\d{1,2}$/.test(n);l&&(n+=":00");const a=(0,i.default)(n,r,!0).isValid()?(0,i.default)(n):(0,i.default)(n,o);let h=a.isValid(),c=(0,i.default)(n,o,!0).isValid()&&!l;if(this.allowEmpty&&""===n&&(h=!0,c=!0),h||(s=!1),!h&&c&&(s=!0),h&&!c)if(!0===this.correctFormat){const e=a.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),s=!0}else s=!1;t(s)}l.VALIDATOR_TYPE=n},53032:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},53094:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639);var s=o(89255),i=o(13351),r=o(8632);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var u=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){n(this,u,[]),n(this,d,0),n(this,g,1/0)}setColumnsLimit(e){a(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(u,this,(0,r.normalizeSettings)(e,l(g,this))),a(d,this,l(u,this).length)}getData(){return l(u,this)}mergeWith(e){(0,i.arrayEach)(e,e=>{let{row:t,col:o,...i}=e;const r=this.getHeaderSettings(t,o);null!==r&&(0,s.extend)(r,i,c)})}map(e){(0,i.arrayEach)(l(u,this),t=>{(0,i.arrayEach)(t,t=>{const o=e({...t});(0,s.isObject)(o)&&(0,s.extend)(t,o,c)})})}getHeaderSettings(e,t){var o;if(e>=l(d,this)||e<0)return null;const s=l(u,this)[e];return!1===Array.isArray(s)||t>=s.length?null:null!==(o=s[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=[];if(e>=l(d,this)||e<0)return s;const i=l(u,this)[e];let r=0;for(let e=t;e<i.length;e++){const t=i[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(r+=t.colspan,s.push(t),t.colspan>1&&(e+=t.colspan-1),r===o)break;if(r>o)throw new Error("The last column settings cannot overlap the other header layers")}return s}getLayersCount(){return l(d,this)}getColumnsCount(){return l(d,this)>0?l(u,this)[0].length:0}clear(){a(u,this,[]),a(d,this,0)}}},53242:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(87492);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ColumnSummary=s.ColumnSummary},53318:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,s.getRootComparator)(t);for(var i=arguments.length,r=new Array(i>2?i-2:0),n=2;n<i;n++)r[n-2]=arguments[n];e.sort(o(...r))};var s=o(44531);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},53325:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),t=e?(0,i.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(16372),i=o(79501)},53385:(e,t,o)=>{"use strict";var s=o(25225),i=s({}.toString),r=s("".slice);e.exports=function(e){return r(i(e),8,-1)}},53488:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(13351),i=o(89255);const r={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,s.arrayEach)(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){(0,i.objectEach)(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};(0,i.defineGetter)(r,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=r},53566:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,s=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof s.tabMoves?s.tabMoves(t):s.tabMoves;o.markSource("keyboard"),o.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},53594:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_yesterday";function a(e){const t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(1,"days").startOf("day"),"d")}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},53726:(e,t,o)=>{var s=o(42265);e.exports=function(e,t,o){return(t=s(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},53853:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:s}}]=o;e.unfreezeColumn(s),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},53967:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllRenderers=function(){(0,f.registerRenderer)(s.autocompleteRenderer),(0,f.registerRenderer)(i.baseRenderer),(0,f.registerRenderer)(n.checkboxRenderer),(0,f.registerRenderer)(r.dropdownRenderer),(0,f.registerRenderer)(l.handsontableRenderer),(0,f.registerRenderer)(a.htmlRenderer),(0,f.registerRenderer)(h.numericRenderer),(0,f.registerRenderer)(c.passwordRenderer),(0,f.registerRenderer)(u.selectRenderer),(0,f.registerRenderer)(d.textRenderer),(0,f.registerRenderer)(g.timeRenderer)};var s=o(30539);t.autocompleteRenderer=s.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=s.RENDERER_TYPE;var i=o(55934);t.baseRenderer=i.baseRenderer,t.BASE_RENDERER=i.RENDERER_TYPE;var r=o(96422);t.dropdownRenderer=r.dropdownRenderer,t.DROPDOWN_RENDERER=r.RENDERER_TYPE;var n=o(18794);t.checkboxRenderer=n.checkboxRenderer,t.CHECKBOX_RENDERER=n.RENDERER_TYPE;var l=o(13898);t.handsontableRenderer=l.handsontableRenderer,t.HANDSONTABLE_RENDERER=l.RENDERER_TYPE;var a=o(38430);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var h=o(49968);t.numericRenderer=h.numericRenderer,t.NUMERIC_RENDERER=h.RENDERER_TYPE;var c=o(21490);t.passwordRenderer=c.passwordRenderer,t.PASSWORD_RENDERER=c.RENDERER_TYPE;var u=o(40799);t.selectRenderer=u.selectRenderer,t.SELECT_RENDERER=u.RENDERER_TYPE;var d=o(93692);t.textRenderer=d.textRenderer,t.TEXT_RENDERER=d.RENDERER_TYPE;var g=o(70338);t.timeRenderer=g.timeRenderer,t.TIME_RENDERER=g.RENDERER_TYPE;var f=o(73424);t.registerRenderer=f.registerRenderer,t.getRegisteredRendererNames=f.getRegisteredRendererNames,t.getRegisteredRenderers=f.getRegisteredRenderers,t.getRenderer=f.getRenderer,t.hasRenderer=f.hasRenderer},54023:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new r.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:i.HIGHLIGHT_FILL_TYPE})};var i=o(33674),r=s(o(97616))},54090:(e,t,o)=>{"use strict";var s=o(25225),i=o(11044),r=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(i(e),t)}},54200:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307),o(69326),o(90795),o(89663);var i=s(o(53726)),r=o(76549),n=o(12945),l=s(o(15688)),a=s(o(45331)),h=s(o(72420)),c=s(o(32506)),u=s(o(37733)),d=o(13351),g=o(89255),f=o(35359),p=o(79501),m=o(58741),w=o(8874),C=o(66793),v=o(92018),y=o(46396);function E(e,t,o){S(e,t),t.set(e,o)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,o){return e.set(_(e,t),o),o}function b(e,t){return e.get(_(e,t))}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeMergeCells"),n.Hooks.getSingleton().register("afterMergeCells"),n.Hooks.getSingleton().register("beforeUnmergeCells"),n.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakMap,x=new WeakSet;class P extends r.BasePlugin{constructor(){var e,t;super(...arguments),S(e=this,t=x),t.add(e),(0,i.default)(this,"mergedCellsCollection",null),(0,i.default)(this,"autofillCalculations",null),(0,i.default)(this,"selectionCalculations",null),E(this,O,null),E(this,N,{row:0,col:0}),E(this,A,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),E(this,H,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[r.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new l.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,L).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,W).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,z).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,G).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(H,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,K).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,se).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ie).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,re).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ne).call(e,...o)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:o,rowspan:s}=e;for(let e=o+1;e<o+s;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const s=t.getRow(o);s&&(s.style.background=(0,m.getStyle)(s,"backgroundColor").replace(")",", 0.99)"),e.push(s))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(a.default.containsNegativeValues(e)?((0,f.warn)(a.default.NEGATIVE_VALUES_WARNING(e)),!1):a.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(a.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):a.default.isSingleCell(e)?((0,f.warn)(a.default.IS_SINGLE_CELL(e)),!1):!a.default.containsZeroSpan(e)||((0,f.warn)(a.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach(e=>{const{row:t,col:s,rowspan:i,colspan:r}=e,n=this.hot._createCellCoords(t,s),l=this.hot._createCellCoords(t+i-1,s+r-1),a=this.hot._createCellRange(n,n,l);this.mergeRange(a,!0,!0);for(let e=t;e<t+i;e++)for(let i=s;i<s+r;i++)e===t&&i===s||o.push([e,i,null])}),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=e.getTopStartCorner(),i=e.getBottomEndCorner(),r={row:s.row,col:s.col,rowspan:i.row-s.row+1,colspan:i.col-s.col+1},n=[];let l=null;if(!this.canMergeRange(r,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,r.rowspan-1,e=>{(0,p.rangeEach)(0,r.colspan-1,t=>{let o=null;n[e]||(n[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r.row),this.hot.toPhysicalColumn(r.col)):this.hot.setCellMeta(r.row+e,r.col+t,"hidden",!0),n[e][t]=o})}),this.hot.setCellMeta(r.row,r.col,"spanned",!0);return!this.mergedCellsCollection.add(r,t)||(o?l=[r.row,r.col,n]:this.hot.populateFromArray(r.row,r.col,n,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,r,t),l)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,t=>{(0,p.rangeEach)(0,e.colspan-1,o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:o}=e.clone().normalize(),s=this.mergedCellsCollection.get(t.row,t.col);s.row===t.row&&s.col===t.col&&s.row+s.rowspan-1===o.row&&s.col+s.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,s){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(o,s);this.mergeRange(this.hot._createCellRange(i,i,r))}unmerge(e,t,o,s){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(o,s);this.unmergeRange(this.hot._createCellRange(i,i,r))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:I})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(I)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.startRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(r)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r.row,1));if(s<e.startRow)return e.startRow=s,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.endRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(r)){const s=r.row+r.rowspan-1,i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(i>e.endRow)return e.endRow=i,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.startColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(r)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r.col,1));if(s<e.startColumn)return e.startColumn=s,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.endColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(r)){const s=r.col+r.colspan-1,i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(i>e.endColumn)return e.endColumn=i,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,s){const{rowIndexMapper:i,columnIndexMapper:r}=this.hot;let n,l;n=0===t?i.getNearestNotHiddenIndex(e,1):i.getNearestNotHiddenIndex(e+t-1,-1),l=0===s?r.getNearestNotHiddenIndex(o,1):r.getNearestNotHiddenIndex(o+s-1,-1);return[e>=0?i.getRenderableFromVisualIndex(n):e,o>=0?r.getRenderableFromVisualIndex(l):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner(),s=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&s.row===e[t].row+e[t].rowspan-1&&s.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(N,this).row=e.row,b(N,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeLast(),{highlight:o}=t,{columnIndexMapper:s,rowIndexMapper:i}=this.hot;b(O,this)&&(null!==i.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==s.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const r=this.mergedCellsCollection.get(o.row,o.col);if(!r)return;const n=r.col,l=r.col+r.colspan-1;if(e.col<0){const t=o.col>=n&&o.col<=l?n-1:l,i=s.getNearestNotHiddenIndex(t,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,o.col)-1,1)}else if(e.col>0){const t=o.col>=n&&o.col<=l?l+1:n,i=s.getNearestNotHiddenIndex(t,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,i)-1,1)}const a=r.row,h=r.row+r.rowspan-1;if(e.row<0){const t=o.row>=a&&o.row<=h?a-1:h,s=i.getNearestNotHiddenIndex(t,-1);e.row=null===s?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(s,o.row)-1,1)}else if(e.row>0){const t=o.row>=a&&o.row<=h?h+1:a,s=i.getNearestNotHiddenIndex(t,1);e.row=null===s?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,s)-1,1)}}function W(e){const t=this.hot.getSelectedRangeLast(),o=t.clone(),{to:s}=t,{columnIndexMapper:i,rowIndexMapper:r}=this.hot,n=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let r=this.mergedCellsCollection.getStartMostColumnIndex(t,s.col)+e.col;n(s.row,r),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(r=o.getTopStartCorner().col);const l=i.getNearestNotHiddenIndex(r,1);null!==l&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(l,s.col)-1,1))}else if(e.col>0){let r=this.mergedCellsCollection.getEndMostColumnIndex(t,s.col)+e.col;n(s.row,r),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(r=o.getBottomEndCorner().col);const l=i.getNearestNotHiddenIndex(r,-1);null!==l&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(s.col,l)-1,1))}if(e.row<0){let i=this.mergedCellsCollection.getTopMostRowIndex(t,s.row)+e.row;n(i,s.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(i=o.getTopStartCorner().row);const l=r.getNearestNotHiddenIndex(i,1);null!==l&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(l,s.row)-1,1))}else if(e.row>0){let i=this.mergedCellsCollection.getBottomMostRowIndex(t,s.row)+e.row;n(i,s.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(i=o.getBottomStartCorner().row);const l=r.getNearestNotHiddenIndex(i,-1);null!==l&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(s.row,l)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);R(O,this,t.clone()),o&&t.assign(o)}function B(e,t,o,s){if(e<0||t<0)return;const i=this.mergedCellsCollection.get(e,t);if(!i)return;const{row:r,col:n,colspan:l,rowspan:a}=i,h=r,c=n,u=r+a-1,d=n+l-1;if("render"===s&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function U(e){e.items.push({name:"---------"},(0,u.default)(this))}function Y(){R(O,this,null)}function j(){if(b(O,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),s=b(O,this).clone().normalize();b(A,this).setActiveNode(s.row,s.col),b(N,this).row>0||b(N,this).col>0?b(A,this).setPrevNodeAsActive():("E-W"===o&&b(N,this).col<0||"S-N"===t&&b(N,this).row<0)&&b(A,this).setNextNodeAsActive()}function z(e,t){const o=this.hot.getSelectedRangeLast(),{columnIndexMapper:s,rowIndexMapper:i}=this.hot;let r=null,n=null;if(b(N,this).col<0){const{rowEnd:e,colEnd:t}=b(A,this).getPrevHorizontalNode();n=s.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(b(N,this).col>0){const{rowStart:e,colStart:t}=b(A,this).getNextHorizontalNode();n=s.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}else if(b(N,this).row<0){const{rowEnd:e,colEnd:t}=b(A,this).getPrevVerticalNode();n=s.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(b(N,this).row>0){const{rowStart:e,colStart:t}=b(A,this).getNextVerticalNode();n=s.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}if(null!==r||null!==n){const s=this.hot._createCellCoords(r,n),i=this.mergedCellsCollection.get(s.row,s.col),l=this.hot.selection.highlight.getFocus();e=s.row,t=s.col,i?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(i.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(i.col,1)}):o.highlight.assign(s),l.clear(),l.add(s).commit()}b(A,this).setActiveNode(e,t),R(N,this,{row:0,col:0})}function G(){this.hot.getSelectedRangeLast().isHeader()||b(A,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function $(e,t,o){const s=this.mergedCellsCollection.get(e,t);s&&(s.row!==e||s.col!==t?o.copyable=!1:(o.rowspan=s.rowspan,o.colspan=s.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const s=this.hot._createCellCoords(t[0],t[1]),i=this.hot._createCellCoords(t[2],t[3]),r=this.hot._createCellRange(s,s,i),n=this.mergedCellsCollection.getWithinRange(r);return 0===n.length?e:this.autofillCalculations.snapDragArea(t,e,o,n)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function J(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function Z(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function oe(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)})}}function se(e,t,o,s){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,s)}function ie(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function re(e,t,o,s){if(!(s instanceof MouseEvent))return;const i=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getByRange(i);if(!r)return;const n=this.hot._createCellCoords(r.row,r.col),l=this.hot._createCellCoords(r.row+r.rowspan-1,r.col+r.colspan-1);return 0===this.hot.selection.getLayerLevel()&&i.isEqual(this.hot._createCellRange(n,n,l))}function ne(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let s,i;if("master"===o)s=this.hot.getFirstRenderedVisibleColumn(),i=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,s))return e;const r=this.hot._createCellCoords(t,s),n=this.hot._createCellCoords(t,i),l=this.hot._createCellRange(r,r,n),a=this.mergedCellsCollection.getWithinRange(l,!0),h=a.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return a.length>1&&a[0].rowspan<h&&(c=h-a[0].rowspan),a.forEach(s=>{let{rowspan:i}=s,r=0;r="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):i-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,r))}),e}t.MergeCells=P},54515:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(85296);const r=t.CONDITION_NAME="lt";function n(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value<s}(0,i.registerCondition)(r,n,{name:s.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},54712:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(95977),n=o(66497),l=o(95422),a=s(o(80277));function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;class d{constructor(e,t,o){h(this,u),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"tableMeta",void 0),(0,i.default)(this,"selection",void 0),(0,i.default)(this,"eventManager",void 0),(0,i.default)(this,"destroyed",!1),(0,i.default)(this,"activeEditor",void 0),(0,i.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new a.default(e),this.hot.addHook("afterDocumentKeyDown",e=>c(u,this,g).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>c(u,this,g).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,o)=>c(u,this,f).call(this,e,t,o))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:s}=t,i=this.hot.runHooks("modifyGetCellCoords",o,s,!1,"meta");let r=o,n=s;if(Array.isArray(i)&&([r,n]=i),this.cellProperties=this.hot.getCellMeta(r,n),!this.isCellEditable())return void this.clearActiveEditor();const a=this.hot.getCell(o,s,!0);if(a){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(n),i=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r),n);this.activeEditor=(0,l.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,s,t,a,i,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const s=this.hot.getSelectedRangeLast();let i=this.hot.runHooks("beforeBeginEditing",s.highlight.row,s.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof i&&(i=0===this.hot.selection.getLayerLevel()&&s.isSingle()),!1!==i?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(o&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,o){this.activeEditor?this.activeEditor.finishEditing(e,t,o):o&&o(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:s}=e.highlight,{rowIndexMapper:i,columnIndexMapper:r}=this.hot,n=i.isHidden(this.hot.toPhysicalRow(o))||r.isHidden(this.hot.toPhysicalColumn(s));return!(this.cellProperties.readOnly||!t||n)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,n.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,s=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,r.isFunctionKey)(o)||(0,r.isCtrlMetaKey)(o)||s||this.isEditorOpened()||this.openEditor("",e))}function f(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const p=new WeakMap;d.getInstance=function(e,t,o){let s=p.get(e);return s||(s=new d(e,t,o),p.set(e,s)),s};t.default=d},55010:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(86713),n=o(77618),l=o(74218),a=o(46963),h=o(45556),c=o(8302),u=o(63884),d=o(15435),g=o(69498),f=!c&&!d("filter",function(){}),p=!c&&!f&&g("filter",TypeError),m=c||f||p,w=a(function(){for(var e,t,o=this.iterator,s=this.predicate,r=this.next;;){if(e=n(i(r,o)),this.done=!!e.done)return;if(t=e.value,h(o,s,[t,this.counter++],!0))return t}});s({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){n(this);try{r(e)}catch(e){u(this,"throw",e)}return p?i(p,this,e):new w(l(this),{predicate:e})}})},55265:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,s=e.getSelectedRangeLast().highlight.row;let i=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===i&&(i=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,i)),t.markEndSource()}}},55289:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new r.default({className:t,...o,selectionType:i.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var i=o(33674),r=s(o(97616))},55765:(e,t)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=s;const o=t.VALIDATOR_TYPE="autocomplete";function s(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,i(o,t)):i(o,t)(this.source):t(!0)}function i(e,t){const o=e;return function(e){let s=!1;for(let t=0,i=e.length;t<i;t++)if(o===e[t]){s=!0;break}t(s)}}s.VALIDATOR_TYPE=o},55897:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(68068);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.HiddenRows=s.HiddenRows},55934:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(42178);t.RENDERER_TYPE=s.RENDERER_TYPE,t.baseRenderer=s.baseRenderer},55994:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(89255),n=s(o(28494)),l=s(o(80277)),a=o(58741),h=o(13351),c=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const u="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class f{static get DEFAULTS(){return(0,r.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"eventManager",new l.default(this)),(0,i.default)(this,"options",void 0),(0,i.default)(this,"_element",void 0),(0,i.default)(this,"buildState",void 0),this.hot=e,this.options=(0,r.extend)(f.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===u?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=u,this._element)}isBuilt(){return this.buildState===u}translateIfPossible(e){return"string"==typeof e&&e.startsWith(c.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,a.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,r.objectEach)(this.options,(e,o)=>{void 0!==t[o]&&"className"!==o&&"tagName"!==o&&"children"!==o&&(t[o]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,o=>e(t,o))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=f,(0,r.mixin)(f,n.default)},56060:(e,t,o)=>{"use strict";var s=o(76277),i=o(88005),r=o(15946).set,n=o(67339),l=i.setImmediate?n(r,!1):r;s({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==l},{setImmediate:l})},56332:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(63007);t.createShortcutManager=s.createShortcutManager},56334:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=r;var s=o(30539);const i=t.RENDERER_TYPE="dropdown";function r(e,t,o,i,r,n,l){s.autocompleteRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},56360:(e,t,o)=>{"use strict";var s,i,r=o(88005),n=o(35172),l=r.process,a=r.Deno,h=l&&l.versions||a&&a.version,c=h&&h.v8;c&&(i=(s=c.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&n&&(!(s=n.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=n.match(/Chrome\/(\d+)/))&&(i=+s[1]),e.exports=i},56464:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(69326);var i=s(o(53726));t.ViewportBaseCalculator=class{constructor(e){(0,i.default)(this,"calculationTypes",[]),(0,i.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,s]=t;this.calculationResults.set(o,s),s.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,s]=o;return s.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},56779:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNDO)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const i=t.KEY="undo"},56836:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(26571);t.BaseRenderer=class{constructor(e,t){(0,i.default)(this,"nodesPool",null),(0,i.default)(this,"nodeType",void 0),(0,i.default)(this,"rootNode",void 0),(0,i.default)(this,"table",null),(0,i.default)(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new r.NodesPool(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}},56923:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(97213),r=o(85296);const n=t.CONDITION_NAME="ends_with";function l(e,t){let[o]=t;return(0,i.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,i.stringify)(o))}(0,r.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},57170:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,i.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,i.default)(e,t,!0).format(r)},t.getDateInHotFormat=function(e,t){return(0,i.default)(e,r,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,i.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=n,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return n(e)?e.substr(1):e};var i=s(o(86798));const r="DD/MM/YYYY";function n(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},57305:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85990),i=o(96422),r=o(40476);const n=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:n,editor:s.DropdownEditor,renderer:i.dropdownRenderer,validator:r.dropdownValidator,filter:!1,strict:!0}},57368:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},57724:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(89255),n=o(79501),l=o(97213);class a{static get SAMPLE_COUNT(){return 3}constructor(e){(0,i.default)(this,"samples",null),(0,i.default)(this,"dataFactory",null),(0,i.default)(this,"customSampleCount",null),(0,i.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:a.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,o){const s=new Map,{from:i,to:r}="number"==typeof o?{from:o,to:o}:o;return(0,n.rangeEach)(i,r,o=>{const i=this.generateSample(e,t,o);s.set(o,i)}),s}generateSample(e,t,o){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const s=new Map,i="row"===e?"col":"row",a=[];return(0,n.rangeEach)(t.from,t.to,t=>{const n="row"===e?this.dataFactory(o,t):this.dataFactory(t,o);if(!1===n)return;const{value:h,bundleSeed:c}=n,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,r.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,l.stringify)(h).length}`,s.has(d)||s.set(d,{needed:this.getSampleCount(),strings:[]});const g=s.get(d);if(g.needed){(!(a.indexOf(h)>-1)||this.allowDuplicates||u)&&(g.strings.push({value:h,[i]:t}),a.push(h),g.needed-=1)}}),s}}t.default=a},57754:(e,t,o)=>{"use strict";var s=o(25225),i=o(82314),r=o(6996),n=o(54090),l=o(39157),a=o(14119).CONFIGURABLE,h=o(1325),c=o(10982),u=c.enforce,d=c.get,g=String,f=Object.defineProperty,p=s("".slice),m=s("".replace),w=s([].join),C=l&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),y=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),(!n(e,"name")||a&&e.name!==t)&&(l?f(e,"name",{value:t,configurable:!0}):e.name=t),C&&o&&n(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&n(o,"constructor")&&o.constructor?l&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=u(e);return n(s,"source")||(s.source=w(v,"string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return r(this)&&d(this).source||h(this)},"toString")},57883:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(69383),i=o(5115),r=o(83139);const n=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:n,editor:s.DateEditor,renderer:i.dateRenderer,validator:r.dateValidator}},58095:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,s]=e[0];o-s!==0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,s.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var s=o(43748),i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const r=t.KEY="remove_col"},58473:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(30344);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualColumnMove=s.ManualColumnMove},58501:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9288),i=o(93692);const r=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:r,editor:s.TextEditor,renderer:i.textRenderer}},58511:(e,t,o)=>{"use strict";var s=o(9370).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}})}},58553:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(89663);var i=s(o(53726)),r=o(58741),n=o(46092),l=o(13351),a=o(95977),h=o(8874),c=o(35359),u=o(40457);function d(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;t.default=class{constructor(e,t,o,s,l,a){(0,i.default)(this,"wot",null),d(this,m,[]),(0,i.default)(this,"topOverlay",null),(0,i.default)(this,"bottomOverlay",null),(0,i.default)(this,"inlineStartOverlay",null),(0,i.default)(this,"topInlineStartCornerOverlay",null),(0,i.default)(this,"bottomInlineStartCornerOverlay",null),(0,i.default)(this,"browserLineHeight",void 0),(0,i.default)(this,"wtSettings",null),d(this,w,!1),d(this,C,0),d(this,v,null),(0,i.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,n.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(C,this,f(C,this)+1),100===f(C,this)&&((0,c.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==f(v,this)&&clearTimeout(f(v,this)),g(v,this,setTimeout(()=>{g(C,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=s,this.domBindings=o,this.facadeGetter=t,this.wtTable=a;const{rootDocument:h,rootWindow:u}=this.domBindings;this.instance=this.wot,this.eventManager=l,this.scrollbarSize=(0,r.getScrollbarWidth)(h);const p="hidden"===u.getComputedStyle(a.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=p?a.holder:(0,r.getScrollableElement)(a.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=u.scrollX,this.lastScrollY=u.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...f(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,o=e.getComputedStyle(t.body),s=parseInt(o.lineHeight,10),i=1.2*parseInt(o.fontSize,10);this.browserLineHeight=s||i}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new u.TopOverlay(...e),this.bottomOverlay=new u.BottomOverlay(...e),this.inlineStartOverlay=new u.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new u.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new u.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(w,this,f(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),f(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),f(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:o}=this.topOverlay,{mainTableScrollableElement:s}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(o,"scroll",e=>this.onTableScroll(e),{passive:!0}),o!==s&&this.eventManager.addEventListener(s,"scroll",e=>this.onTableScroll(e),{passive:!0});const i=t.devicePixelRatio&&t.devicePixelRatio>1,r=this.scrollableElement===t,l=this.wtSettings.getSetting("preventWheel"),a={passive:r};(l||i||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,l),a);let c;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,l),a)}),this.eventManager.addEventListener(t,"resize",()=>{(0,n.requestAnimationFrame)(()=>{clearTimeout(c),this.wtSettings.getSetting("onWindowResize"),c=setTimeout(()=>{g(C,this,0)},200)})}),r||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,o=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,i=e.target;this.keyPressed&&(s!==t&&i!==t&&!e.target.contains(s)||o!==t&&i!==t&&!e.target.contains(o))||this.syncScrollPositions(e)}onCloneWheel(e,t){const{rootWindow:o}=this.domBindings,s=this.inlineStartOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=e.target,n=i!==o&&r!==o&&!r.contains(i),l=s!==o&&r!==o&&!r.contains(s);if(this.keyPressed&&(n||l)||this.scrollableElement===o)return;const a=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==o&&a)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,a.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,o=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(o+=o*this.browserLineHeight,t+=t*this.browserLineHeight);const s=this.scrollVertically(t),i=this.scrollHorizontally(o);return s||i}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let o=this.scrollableElement.scrollLeft,s=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(o=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(s=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==o,this.verticalScrolling=this.lastScrollY!==s,this.lastScrollX=o,this.lastScrollY=s,this.horizontalScrolling){e.scrollLeft=o;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=o)}this.verticalScrolling&&(t.scrollTop=s),this.refreshAll()}syncScrollWithMaster(){if(!f(w,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:o}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=o),g(w,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,r.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,o=e.clientHeight,s=t!==this.spreaderLastSize.width||o!==this.spreaderLastSize.height;return s&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=o),s}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:o}=this.domBindings,s=this.scrollableElement===o,i=this.wtSettings.getSetting("totalColumns"),r=this.wtSettings.getSetting("totalRows"),n=e.getRowHeaderWidth(),l=e.getColumnHeaderHeight()+this.topOverlay.sumCellSizes(0,r)+1,a=n+this.inlineStartOverlay.sumCellSizes(0,i),h=t.hider.style,c=(()=>!s&&this.scrollableElement.scrollTop>Math.max(0,l-t.holder.clientHeight))()?1:0,u=(()=>!s&&this.scrollableElement.scrollLeft>Math.max(0,a-t.holder.clientWidth))()?1:0;h.width=`${a+u}px`,h.height=`${l+c}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let o=null;return(0,l.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(o=t.clone)}),o}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,l.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},58561:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(73741),o(69326),o(90795),o(82141);var i=s(o(53726)),r=o(97213),n=o(35359),l=o(5455);t.default=class{constructor(e){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"dataManager",void 0),(0,i.default)(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,o,s){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:o,movePossible:s}))return!1;this.movedToCollapsed=!1;const i=o===this.hot.countRows(),r=i?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(o);let n=!0;const l=e.map(e=>{if(!n)return!1;const t=this.dataManager.translateTrimmedRow(e);return n=this.shouldAllowMoving(t,r),t}),a=-1===l.indexOf(r);if(!n||!a)return!1;const h=this.getBaseParent(l),c=this.getTargetParent(i,r),u=h===c;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(l,r,u),this.moveRows(l,r,c),this.dataManager.rewriteCache(),this.moveCellsMeta(l,r),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,o,s,s&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,o),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:o,dropIndex:s,movePossible:i}=e;let a=!1;return(0,r.isUndefined)(s)&&((0,n.warn)(l.toSingleLine`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
62
+ */(o(16372));const i={languageCode:"en-US",[s.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[s.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[s.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[s.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[s.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[s.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[s.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[s.CONTEXTMENU_ITEMS_UNDO]:"Undo",[s.CONTEXTMENU_ITEMS_REDO]:"Redo",[s.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[s.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[s.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[s.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[s.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[s.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[s.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[s.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[s.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[s.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[s.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[s.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[s.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[s.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[s.CONTEXTMENU_ITEMS_COPY]:"Copy",[s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[s.CONTEXTMENU_ITEMS_CUT]:"Cut",[s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[s.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[s.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[s.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[s.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[s.FILTERS_CONDITIONS_NONE]:"None",[s.FILTERS_CONDITIONS_EMPTY]:"Is empty",[s.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[s.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[s.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[s.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[s.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[s.FILTERS_CONDITIONS_CONTAINS]:"Contains",[s.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[s.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[s.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[s.FILTERS_CONDITIONS_BETWEEN]:"Is between",[s.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[s.FILTERS_CONDITIONS_AFTER]:"After",[s.FILTERS_CONDITIONS_BEFORE]:"Before",[s.FILTERS_CONDITIONS_TODAY]:"Today",[s.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[s.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[s.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[s.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[s.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[s.FILTERS_LABELS_CONJUNCTION]:"And",[s.FILTERS_LABELS_DISJUNCTION]:"Or",[s.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[s.FILTERS_BUTTONS_CLEAR]:"Clear",[s.FILTERS_BUTTONS_OK]:"OK",[s.FILTERS_BUTTONS_CANCEL]:"Cancel",[s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[s.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[s.CHECKBOX_CHECKED]:"Checked",[s.CHECKBOX_UNCHECKED]:"Unchecked"};t.default=i},48444:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(73741),o(37782),o(69326),o(89663);var i=s(o(53726)),r=o(94218),n=o(89255);class l extends r.BaseAction{constructor(e){let{changes:t,selected:o,countCols:s,countRows:r}=e;super("change"),(0,i.default)(this,"changes",void 0),(0,i.default)(this,"selected",void 0),(0,i.default)(this,"countCols",void 0),(0,i.default)(this,"countRows",void 0),this.changes=t,this.selected=o,this.countCols=s,this.countRows=r}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(o,s){const i=o&&o.length;if(!i)return;if(!o.find(e=>{const[,,t,o]=e;return t!==o}))return;t.done(()=>{const t=o.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const s=i>1?this.getSelected():[[t[0][0],t[0][1]]];return new l({changes:t,selected:s,countCols:e.countCols(),countRows:e.countRows()})},s)})}undo(e,t){const o=(0,n.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.undo");const s=e.countRows()-this.countRows;s>0&&e.alter("remove_row",null,s,"UndoRedo.undo");const i=e.countCols()-this.countCols;i>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,i,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const o=(0,n.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}t.DataChangeAction=l},48505:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(85296);const r=t.CONDITION_NAME="gte";function n(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value>=s}(0,i.registerCondition)(r,n,{name:s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},48536:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(this,"rootNode",void 0),(0,i.default)(this,"rootDocument",void 0),(0,i.default)(this,"rowHeaders",null),(0,i.default)(this,"columnHeaders",null),(0,i.default)(this,"colGroup",null),(0,i.default)(this,"rows",null),(0,i.default)(this,"cells",null),(0,i.default)(this,"rowFilter",null),(0,i.default)(this,"columnFilter",null),(0,i.default)(this,"rowUtils",null),(0,i.default)(this,"columnUtils",null),(0,i.default)(this,"rowsToRender",0),(0,i.default)(this,"columnsToRender",0),(0,i.default)(this,"rowHeaderFunctions",[]),(0,i.default)(this,"rowHeadersCount",0),(0,i.default)(this,"columnHeaderFunctions",[]),(0,i.default)(this,"columnHeadersCount",0),(0,i.default)(this,"cellRenderer",void 0),(0,i.default)(this,"activeOverlayName",void 0),(0,i.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=o}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:o,rows:s,cells:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),s.setTable(this),i.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=s,this.cells=i}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let o=0;o<e;o++){const e=t.getRenderedNode(o),s=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),i=s.getHeightByOverlayName(t,this.activeOverlayName),r=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=i?i-r+"px":""}}}}},48622:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(58741),n=o(30848),l=s(o(739)),a=s(o(81341)),h=o(97948),c=s(o(59432)),u=s(o(52436)),d=o(40457),g=o(6532);t.default=class{constructor(e,t,o,s,n){(0,i.default)(this,"wtSettings",null),(0,i.default)(this,"domBindings",void 0),(0,i.default)(this,"TBODY",null),(0,i.default)(this,"THEAD",null),(0,i.default)(this,"COLGROUP",null),(0,i.default)(this,"hasTableHeight",!0),(0,i.default)(this,"hasTableWidth",!0),(0,i.default)(this,"isTableVisible",!1),(0,i.default)(this,"tableOffset",0),(0,i.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===n,this.name=n,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=s,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,r.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const l=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(l)),this.rowUtils=new u.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new c.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtSpreader",t&&t.insertBefore(o,e),o.appendChild(e)),o.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtHider",t&&t.insertBefore(o,e),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,r.setAttribute)(o,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(o,e),this.isMaster&&(o.parentNode.className+="ht_master handsontable",o.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:o,wtViewport:s}=this.dataAccessObject,i=t.getSetting("totalRows"),n=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),g=u.length;let f=e;if(this.isMaster&&(o.beforeDraw(),this.holderOffset=(0,r.offset)(this.holder),f=s.createCalculators(f),c&&!t.getSetting("fixedColumnsStart"))){const e=o.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(f=!1)}if(f)this.isMaster&&o.refresh(!0);else{this.isMaster?this.tableOffset=(0,r.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new a.default(e,i,g),this.columnFilter=new l.default(t,n,c);let f=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),f=!0!==e.skipRender}f&&(this.tableRenderer.setHeaderContentRenderers(h,u),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||s.createVisibleCalculators(),o.refresh(!1),o.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let p=!1;return this.isMaster&&(p=o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&(p=o.bottomOverlay.resetFixedPosition()||p),p=o.inlineStartOverlay.resetFixedPosition()||p,o.topInlineStartCornerOverlay&&o.topInlineStartCornerOverlay.resetFixedPosition(),o.bottomInlineStartCornerOverlay&&o.bottomInlineStartCornerOverlay.clone&&o.bottomInlineStartCornerOverlay.resetFixedPosition()),p?(o.refreshAll(),o.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(f),this.isMaster&&o.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let o=this.wtSettings.getSetting("columnHeaders").length;const s=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i,n,l;const a=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,i=this.getColumnHeaderHeight(o),n=this.getColumnHeader(t,o),n&&(l=(0,r.innerHeight)(n),(!i&&s<l||i<l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),Array.isArray(a)?null!==a[o]&&void 0!==a[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]):isNaN(a)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(a[o]||a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]||a))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let s=0,i=e.getSetting("columnHeaders").length;s<i;s++)if(o[s]){if(!t[s]||0===t[s].childNodes.length)return;t[s].childNodes[0].style.height=`${o[s]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let o=0;o<e;o++){const e=this.rowFilter.renderedToSource(o);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,o=e.col;const s=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(s&&Array.isArray(s)&&([t,o]=s),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const i=this.getRow(t);if(!i&&t>=0)throw new Error("TR was expected to be rendered but is not");const r=i.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!r&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return r}getRow(e){let t=null,o=null;var s,i;e<0?(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceToRendered(e),o=this.TBODY);return void 0!==t&&void 0!==o&&(!(o.childNodes.length<t+1)&&o.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=this.THEAD.childNodes[t];return null==o?void 0:o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],o=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const s=e.childNodes[o];s&&t.push(s)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const o=this.rowFilter.sourceToRendered(e),s=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,i=(o<0?this.THEAD:this.TBODY).childNodes[s];return null==i?void 0:i.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let s=0;s<o;s++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[s];i&&t.push(i)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,r.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const s=o.parentNode;let i=(0,r.index)(o),n=t.cellIndex;if((0,r.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===s.nodeName&&(i-=s.childNodes.length);else if((0,r.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){i=this.wtSettings.getSetting("totalRows")-s.childNodes.length+i}else s===this.THEAD?i=this.rowFilter.visibleColHeadedRowToSourceRow(i):this.rowFilter&&(i=this.rowFilter.renderedToSource(i));(0,r.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?n=this.columnFilter.offsettedTH(n):this.columnFilter&&(n=this.columnFilter.visibleRowHeadedColumnToSourceColumn(n));const l=this.wtSettings.getSetting("onModifyGetCoordsElement",i,n);return l&&Array.isArray(l)&&([i,n]=l),this.wot.createCellCoords(i,n)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),s=(0,r.innerHeight)(this.TBODY)-1,i=t.areCellsBorderBox(),n=i?r.outerHeight:r.innerHeight,l=i?0:1,a=i?1:0;let h,c,u,d,g;if(o!==s||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),h=this.getRowHeight(u),d=this.getTrForRow(u),g=d.querySelector("th");const o=0===u?a:0;c=g?n(g):n(d)-l,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(i||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=c)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,r.outerWidth)(this.TABLE)}getHeight(){return(0,r.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,r.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,r.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,r.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,n.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},49030:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}}},49078:(e,t,o)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,s.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var s=o(58741)},49080:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=r;var s=o(93692);const i=t.RENDERER_TYPE="select";function r(e,t,o,i,r,n,l){s.textRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},49581:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,f.registerEditor)(i.BaseEditor),(0,f.registerEditor)(s.AutocompleteEditor),(0,f.registerEditor)(r.CheckboxEditor),(0,f.registerEditor)(n.DateEditor),(0,f.registerEditor)(l.DropdownEditor),(0,f.registerEditor)(a.HandsontableEditor),(0,f.registerEditor)(h.NumericEditor),(0,f.registerEditor)(c.PasswordEditor),(0,f.registerEditor)(u.SelectEditor),(0,f.registerEditor)(d.TextEditor),(0,f.registerEditor)(g.TimeEditor)};var s=o(89891);t.AutocompleteEditor=s.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=s.EDITOR_TYPE;var i=o(16410);t.BaseEditor=i.BaseEditor,t.BASE_EDITOR=i.EDITOR_TYPE;var r=o(40154);t.CheckboxEditor=r.CheckboxEditor,t.CHECKBOX_EDITOR=r.EDITOR_TYPE;var n=o(69383);t.DateEditor=n.DateEditor,t.DATE_EDITOR=n.EDITOR_TYPE;var l=o(85990);t.DropdownEditor=l.DropdownEditor,t.DROPDOWN_EDITOR=l.EDITOR_TYPE;var a=o(79450);t.HandsontableEditor=a.HandsontableEditor,t.HANDSONTABLE_EDITOR=a.EDITOR_TYPE;var h=o(78084);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var c=o(35242);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var u=o(13795);t.SelectEditor=u.SelectEditor,t.SELECT_EDITOR=u.EDITOR_TYPE;var d=o(9288);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=o(79750);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var f=o(95422);t.registerEditor=f.registerEditor,t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor},49726:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(22577);t.CELL_TYPE=s.CELL_TYPE,t.PasswordCellType=s.PasswordCellType},49834:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(s.AutocompleteCellType),(0,g.registerCellType)(i.CheckboxCellType),(0,g.registerCellType)(r.DateCellType),(0,g.registerCellType)(n.DropdownCellType),(0,g.registerCellType)(l.HandsontableCellType),(0,g.registerCellType)(a.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var s=o(99163);t.AutocompleteCellType=s.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=s.CELL_TYPE;var i=o(97286);t.CheckboxCellType=i.CheckboxCellType,t.CHECKBOX_TYPE=i.CELL_TYPE;var r=o(68035);t.DateCellType=r.DateCellType,t.DATE_TYPE=r.CELL_TYPE;var n=o(76070);t.DropdownCellType=n.DropdownCellType,t.DROPDOWN_TYPE=n.CELL_TYPE;var l=o(65254);t.HandsontableCellType=l.HandsontableCellType,t.HANDSONTABLE_TYPE=l.CELL_TYPE;var a=o(73682);t.NumericCellType=a.NumericCellType,t.NUMERIC_TYPE=a.CELL_TYPE;var h=o(49726);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(40751);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(78332);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(51350);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(83211);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},49968:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(10476);t.RENDERER_TYPE=s.RENDERER_TYPE,t.numericRenderer=s.numericRenderer,t.getRenderedValue=s.getRenderedValue},50236:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},50289:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(58741),n=o(80578),l=o(56836),a=o(6532);class h extends l.BaseRenderer{constructor(){super("TD"),(0,i.default)(this,"orderViews",new WeakMap),(0,i.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new n.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:o,rowHeaders:s}=this.table;for(let l=0;l<e;l++){const e=this.table.renderedRowToSource(l),h=o.getRenderedNode(l);this.sourceRowIndex=e;const c=this.obtainOrderView(h),u=s.obtainOrderView(h);c.prependView(u).setSize(t).setOffset(0).start();for(let o=0;o<t;o++){c.render();const t=this.table.renderedColumnToSource(o),s=c.getCurrentNode();var i,n;if((0,r.hasClass)(s,"hide")||(s.className=""),s.removeAttribute("style"),s.removeAttribute("dir"),(0,r.removeAttribute)(s,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,s),this.table.isAriaEnabled())(0,r.setAttribute)(s,[...s.hasAttribute("role")?[]:[(0,a.A11Y_GRIDCELL)()],(0,a.A11Y_TABINDEX)(-1),(0,a.A11Y_COLINDEX)(t+(null!==(i=null===(n=this.table.rowUtils)||void 0===n||null===(n=n.dataAccessObject)||void 0===n?void 0:n.rowHeaders.length)&&void 0!==i?i:0)+1)])}c.end()}}}t.CellsRenderer=h},50539:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(36837);var i=s(o(91997)),r=o(99543),n=o(38749),l=o(12945),a=o(15022),h=o(83211),c=o(78332),u=o(16410),d=o(33674);function g(e,t){const o=new i.default(e,t||{},r.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.default(e,t,r.rootInstanceSymbol)},g.DefaultSettings=(0,n.metaSchemaFactory)(),g.hooks=l.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="07/07/2025 08:41:19",g.version="16.0.0-next-98c6ac7-20250707",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};t.default=g},50596:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=o(12945),l=o(13351),a=o(89255),h=o(1508),c=o(97836),u=o(16402),d=o(94293),g=o(58741),f=o(72365);function p(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="contextMenu",C=t.PLUGIN_PRIORITY=70,v=w;n.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),n.Hooks.getSingleton().register("beforeContextMenuShow"),n.Hooks.getSingleton().register("afterContextMenuShow"),n.Hooks.getSingleton().register("afterContextMenuHide"),n.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class E extends r.BasePlugin{constructor(){super(...arguments),p(this,y),(0,i.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,i.default)(this,"itemsFactory",null),(0,i.default)(this,"menu",null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.ROW_ABOVE,f.ROW_BELOW,f.SEPARATOR,f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_ROW,f.REMOVE_COLUMN,f.SEPARATOR,f.UNDO,f.REDO,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[w];"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new u.Menu(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.menu.addLocalHook("beforeOpen",()=>m(y,this,R).call(this)),this.menu.addLocalHook("afterOpen",()=>m(y,this,b).call(this)),this.menu.addLocalHook("afterClose",()=>m(y,this,_).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)}),this.addHook("afterOnCellContextMenu",e=>m(y,this,S).call(this,e)),this.registerShortcuts(),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control/Meta","Shift","Backslash"],["Shift","F10"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();this.hot.scrollToFocusedCell();const t=this.hot.getCell(e.row,e.col,!0).getBoundingClientRect(),o=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({left:t.left+o.left,top:t.top+o.top-1+t.height},{left:t.width,above:-t.height}),this.menu.getNavigator().toFirstItem()},runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&!this.menu.isOpened()},group:v})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();const s=this.menu.tableBorderWidth>0;(0,a.objectEach)(o,(e,t)=>{const o=["below","right"].includes(t)?e+1:e-1;this.menu.setOffset(t,s?e:o)}),this.menu.setPosition(e)}close(){var e;null===(e=this.menu)||void 0===e||e.close(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,E.DEFAULT_ITEMS);const e=this.hot.getSettings()[w],t={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",t),this.itemsFactory.setPredefinedItems(t.items);const o=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,l.arrayEach)(o,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function S(e){const t=this.hot.getSettings(),o=t.rowHeaders,s=t.colHeaders;const i=e.target;if(this.close(),(0,g.hasClass)(i,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!s&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(i)||(0,g.hasClass)(i,"current")&&(0,g.hasClass)(i,"wtBorder")))return;const r=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+r.top,left:e.clientX+r.left})}function R(){this.hot.runHooks("beforeContextMenuShow",this)}function b(){this.hot.runHooks("afterContextMenuShow",this)}function _(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}t.ContextMenu=E,E.SEPARATOR={name:f.SEPARATOR}},50671:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(60591);var i=s(o(53726)),r=o(13351);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,i.default)(this,"rootWindow",void 0),(0,i.default)(this,"prefix",void 0),(0,i.default)(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const o=void 0===e?t:e,s=this.rootWindow.localStorage.getItem(`${this.prefix}_${o}`);return null===s?void 0:JSON.parse(s)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,r.arrayEach)(this.savedKeys,(e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)}),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}}},50704:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_after";function a(e,t){let[o]=t;const s=(0,i.default)(e.value,e.meta.dateFormat),r=(0,i.default)(o,e.meta.dateFormat);return!(!s.isValid()||!r.isValid())&&s.diff(r)>=0}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},50916:e=>{"use strict";e.exports={}},51040:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(89255),n=o(13351),l=o(67220),a=o(83211),h=o(95422),c=o(73424),u=o(97287),d=s(o(80277));function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const m=new Map([["plugin",l.hasPlugin],["cell-type",a.hasCellType],["editor",h.hasEditor],["renderer",c.hasRenderer],["validator",u.hasValidator]]),w=t.defaultMainSettingSymbol=Symbol("mainSetting"),C=t.PLUGIN_KEY="base",v=[];let y=null;var E=new WeakMap,S=new WeakSet;function R(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let o=0;o<t.length;o++)if(void 0!==e[t[o]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return C}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}constructor(e){var t,o;g(t=this,o=S),o.add(t),(0,i.default)(this,"eventManager",new d.default(this)),(0,i.default)(this,"pluginName",null),(0,i.default)(this,"pluginsInitializedCallbacks",[]),(0,i.default)(this,"isPluginsReady",!1),(0,i.default)(this,"enabled",!1),(0,i.default)(this,"initialized",!1),function(e,t,o){g(e,t),t.set(e,o)}(this,E,{}),(0,r.defineGetter)(this,"hot",e,{writable:!1}),y=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[o,s]=t.split(":");if(!m.has(o))throw new Error(`Unknown plugin dependency type "${o}" was found.`);m.get(o)(s)||e.push(` - ${s} (${o})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");v.push(t)}}y||(y=(0,l.getPluginsNames)()),y.indexOf(this.pluginName)>=0&&y.splice(y.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===y.length){if(v.length>0){const e=[`${v.join("\n")}\n`,"You have to import and register them manually."].join("");throw v.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.hot.getSettings()[this.constructor.PLUGIN_KEY];if(void 0===e)return t;const o=this.constructor.DEFAULT_SETTINGS;var s,i;return(Array.isArray(t)||(0,r.isObject)(t))&&o[w]===e?Array.isArray(t)?t:null!==(s=t[e])&&void 0!==s?s:o[e]:(0,r.isObject)(t)&&null!==(i=t[e])&&void 0!==i?i:o[e]}addHook(e,t,o){f(E,this)[e]=f(E,this)[e]||[];const s=f(E,this)[e];this.hot.addHook(e,t,o),s.push(t),f(E,this)[e]=s}removeHooks(e){(0,n.arrayEach)(f(E,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=f(E,this);(0,r.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,n.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=p(S,this,R).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,r.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},51176:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(58741);t.default=class{constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"nestedHeaderSettingsGetter",void 0),(0,i.default)(this,"layersCount",0),(0,i.default)(this,"container",void 0),(0,i.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),o=t.length;this.widthsMap.clear();for(let e=0;e<o;e++){const o=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),s=this.hot.toPhysicalColumn(o);this.widthsMap.setValueAtIndex(s,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:o}=this.hot,s=t.createDocumentFragment(),i=t.createElement("table"),n=!!this.hot.getSettings().dropdownMenu,l=o.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const s=t.createElement("tr");for(let i=0;i<l;i++){let l=o.getVisualFromRenderableIndex(i);null===l&&(l=i);const a=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,l);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;n&&(e+='<button class="changeType"></button>'),(0,r.fastInnerHTML)(a,e),a.colSpan=h.colspan,s.appendChild(a)}}i.appendChild(s)}s.appendChild(i),e.appendChild(s)}clear(){this.widthsMap.clear(),this.container=null}}},51350:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(99633);t.CELL_TYPE=s.CELL_TYPE,t.TimeCellType=s.TimeCellType},51376:(e,t,o)=>{"use strict";t.__esModule=!0,t.getMoves=function(e,t,o){return function(e){return e.forEach((t,o)=>{e.slice(o+1).forEach(e=>{const o=e.from<e.to;e.from>t.from&&o&&(e.from-=1)})}),e}(function(e,t){const o=[];return e.forEach(e=>{const s={from:e,to:t};o.forEach(e=>{const t=e.from>e.to,o=e.to<=s.from;e.from>s.from&&o&&t&&(s.from+=1)}),s.from>=t&&(t+=1),o.push(s)}),o}(e,function(e,t,o){const s=Array.from(Array(o).keys()).filter(t=>!1===e.includes(t));var i;return 0===t?null!==(i=s[t])&&void 0!==i?i:0:s[t-1]+1}(e,t,o)))},o(85639),o(73741),o(7307),o(69326)},51490:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.locale;return function(t,n){const{sortEmptyCells:l}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(r)),"string"==typeof n&&(n=n.toLocaleLowerCase(r)),t===n?i.DO_NOT_SWAP:(0,s.isEmpty)(t)?(0,s.isEmpty)(n)?i.DO_NOT_SWAP:l&&"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(0,s.isEmpty)(n)?l&&"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(n)?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(n)?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(n)||(t=parseFloat(t),n=parseFloat(n)),t<n?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:t>n?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP)}};var s=o(97213),i=o(7378);t.COLUMN_DATA_TYPE="default"},51511:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(65985),n=o(86713),l=o(77618),a=o(74218),h=o(63884),c=o(69498)("forEach",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){l(this);try{n(e)}catch(e){h(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),o=0;r(t,function(t){e(t,o++)},{IS_RECORD:!0})}})},51571:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(79501);t.default=class{constructor(e){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:s}=this._getDataRange(),i=this.options,n=[];return(0,r.rangeEach)(e,o,e=>{const o=[];!i.exportHiddenRows&&this._isHiddenRow(e)||((0,r.rangeEach)(t,s,t=>{!i.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),n.push(o))}),n}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),s=this.hot.getRowHeader();(0,r.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(s[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),s=this.hot.getColHeader();(0,r.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(s[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,s=0,i=t,r=e]=this.options.range;return o=Math.max(o,0),s=Math.max(s,0),i=Math.min(i,t),r=Math.min(r,e),{startRow:o,startCol:s,endRow:i,endCol:r}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},51596:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(30848),n=o(89255),l=s(o(28494));class a{constructor(e){(0,i.default)(this,"wasLastActionShow",!0),(0,i.default)(this,"showDebounced",null),(0,i.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,r.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,n.mixin)(a,l.default);t.default=a},51993:(e,t,o)=>{"use strict";o(78484)},52112:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{rowClassName:t,...o}=e;return new r.default({className:t,...o,selectionType:i.HIGHLIGHT_ROW_TYPE})};var i=o(33674),r=s(o(97616))},52218:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.checkboxRenderer=v,o(85639),o(73741),o(16178),o(90795);var i=o(55934),r=s(o(80277)),n=o(58741),l=o(97213),a=o(76107),h=o(12945),c=o(6532),u=o(16372);const d=new WeakMap,g=new WeakMap,f="htBadValue",p="data-row",m="data-col",w="checkboxRenderer",C=t.RENDERER_TYPE="checkbox";function v(e,t,o,s,h,C,v){const{rootDocument:E}=e,S=e.getSettings().ariaTags;i.baseRenderer.apply(this,[e,t,o,s,h,C,v]),function(e){let t=g.get(e);if(!t){const{rootElement:o}=e;t=new r.default(e),t.addEventListener(o,"click",t=>function(e,t){const{target:o}=e;if(!y(o))return;if(!o.hasAttribute(p)||!o.hasAttribute(m))return;const s=parseInt(o.getAttribute(p),10),i=parseInt(o.getAttribute(m),10),r=t.getCellMeta(s,i);r.readOnly&&e.preventDefault()}(t,e)),t.addEventListener(o,"mouseup",t=>function(e,t){const{target:o}=e;if(!y(o))return;if(!o.hasAttribute(p)||!o.hasAttribute(m))return;setTimeout(t.listen,10)}(t,e)),t.addEventListener(o,"change",t=>function(e,t){const{target:o}=e;if(!y(o))return;if(!o.hasAttribute(p)||!o.hasAttribute(m))return;const s=parseInt(o.getAttribute(p),10),i=parseInt(o.getAttribute(m),10),r=t.getCellMeta(s,i);if(!r.readOnly){let o=null;o=e.target.checked?void 0===r.uncheckedTemplate||r.checkedTemplate:void 0!==r.uncheckedTemplate&&r.uncheckedTemplate,t.setDataAtCell(s,i,o)}}(t,e)),g.set(e,t)}}(e);let R=function(e){const t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(E);const b=v.label;let _=!1;if(void 0===v.checkedTemplate&&(v.checkedTemplate=!0),void 0===v.uncheckedTemplate&&(v.uncheckedTemplate=!1),(0,n.empty)(t),C===v.checkedTemplate||(0,l.stringify)(C).toLocaleLowerCase(v.locale)===(0,l.stringify)(v.checkedTemplate).toLocaleLowerCase(v.locale)?R.checked=!0:C===v.uncheckedTemplate||(0,l.stringify)(C).toLocaleLowerCase(v.locale)===(0,l.stringify)(v.uncheckedTemplate).toLocaleLowerCase(v.locale)?R.checked=!1:(0,l.isEmpty)(C)?(0,n.addClass)(R,"noValue"):(R.style.display="none",(0,n.addClass)(R,f),_=!0),(0,n.setAttribute)(R,[[p,o],[m,s]]),S&&(0,n.setAttribute)(R,[(0,c.A11Y_LABEL)(R.checked?e.getTranslatedPhrase(u.CHECKBOX_CHECKED):e.getTranslatedPhrase(u.CHECKBOX_UNCHECKED)),(0,c.A11Y_CHECKED)(R.checked),(0,c.A11Y_CHECKBOX)()]),!_&&b){let i="";if(b.value)i="function"==typeof b.value?b.value.call(this,o,s,h,C):b.value;else if(b.property){const t=e.getDataAtRowProp(o,b.property);i=null!==t?t:""}const r=function(e,t,o){const s=e.createElement("label");s.className="htCheckboxRendererLabel "+(o?"fullWidth":"");const i=e.createTextNode(t);if(o){const t=e.createElement("span");t.appendChild(i),s.appendChild(t)}else s.appendChild(i);return s.cloneNode(!0)}(E,i,!0!==b.separated);"before"===b.position?b.separated?(t.appendChild(r),t.appendChild(R)):(r.appendChild(R),R=r):b.position&&"after"!==b.position||(b.separated?(t.appendChild(R),t.appendChild(r)):(r.insertBefore(R,r.firstChild),R=r))}function T(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const o=e.getSelectedRange(),s=[],i=new Map;let r=[],n=0;if(o){for(let l=0;l<o.length;l++){const{row:a,col:h}=o[l].getTopStartCorner(),{row:c,col:u}=o[l].getBottomEndCorner();for(let o=a;o<=c;o+=1)for(let l=h;l<=u;l+=1){const a=e.getCellMeta(o,l);if(a.hidden)continue;const h={checkedTemplate:a.checkedTemplate,uncheckedTemplate:a.uncheckedTemplate};if("checkbox"!==a.type){!0!==t||a.readOnly||(i.has(s.length)?i.set(s.length,[...i.get(s.length),[o,l,null]]):i.set(s.length,[[o,l,null]]));continue}if(!0===a.readOnly)continue;void 0===a.checkedTemplate&&(a.checkedTemplate=!0),void 0===a.uncheckedTemplate&&(a.uncheckedTemplate=!1);const c=e.getDataAtCell(o,l);!1===t?[a.checkedTemplate,a.checkedTemplate.toString()].includes(c)?r.push([o,l,a.uncheckedTemplate,h]):[a.uncheckedTemplate,a.uncheckedTemplate.toString(),null,void 0].includes(c)&&r.push([o,l,a.checkedTemplate,h]):r.push([o,l,a.uncheckedTemplate,h]),n+=1}s.push(n),n=0}r=r.every(e=>{let[,,t]=e;return t===r[0][2]})?r.map(e=>{let[t,o,s]=e;return[t,o,s]}):r.map(e=>{let[t,o,,s]=e;return[t,o,s.checkedTemplate]}),r.length>0&&s.forEach((t,o)=>{let s=r.splice(0,t);i.size&&i.has(o)&&(s=[...s,...i.get(o)]),e.setDataAtCell(s)})}}function M(){const t=e.getSelectedRange();if(t){for(let o=0;o<t.length;o++){const s=t[o].getTopStartCorner(),i=t[o].getBottomEndCorner();for(let t=s.row;t<=i.row;t++)for(let o=s.col;o<=i.col;o++){if(e.getCellMeta(t,o).readOnly)continue;const s=e.getCell(t,o);if((0,n.isHTMLElement)(s)){if(s.querySelectorAll("input[type=checkbox]").length>0)return!0}}}return!1}}(!b||b&&!b.separated)&&t.appendChild(R),_&&t.appendChild(E.createTextNode("#bad-value#")),d.has(e)||(d.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),o={group:w,relativeToGroup:a.EDITOR_EDIT_GROUP,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(T(),!M()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(T(),!M()),runOnlyIf:()=>{const t=e.getSelectedRangeLast();return e.getSettings().enterBeginsEditing&&(null==t?void 0:t.highlight.isCell())&&!e.selection.isMultiple()}},{keys:[["delete"],["backspace"]],callback:()=>(T(!0),!M()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}}],o)}())}function y(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}h.Hooks.getSingleton().add("modifyAutoColumnSizeSeed",function(e,t,o){const{label:s,type:i,row:r,column:n,prop:l}=t;if(i===C){if(s){const{value:t,property:i}=s;let a=o;if(t)a="function"==typeof t?t(r,n,l,o):t;else if(i){const e=this.getDataAtRowProp(r,i);a=null!==e?e:o}e=a}return e}}),v.RENDERER_TYPE=C},52436:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t){(0,i.default)(this,"dataAccessObject",void 0),(0,i.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const o=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==o&&(t=void 0===t?o:Math.max(t,o)),t}getHeightByOverlayName(e,t){let o=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const s=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==s&&(o=void 0===o?s:Math.max(o,s)),o}}},52462:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(58741),i=o(66497),r=o(89255),n=o(8874),l=o(87011);t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,l.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,i.stopImmediatePropagation)(e);const o=this,s=this.wot.rootDocument.body,r=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(s,"mousemove",function e(i){var n;((n=i).clientY<Math.floor(r.top)||n.clientY>Math.ceil(r.top+r.height)||n.clientX<Math.floor(r.left)||n.clientX>Math.ceil(r.left+r.width))&&(o.eventManager.removeEventListener(s,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let s=this.main.style;s.position="absolute",s.top=0,s.left=0;for(let i=0;i<5;i++){const r=o[i],n=t.createElement("div");n.className=`wtBorder ${this.settings.className||""}`,this.settings[r]&&this.settings[r].hide&&(n.className+=" hidden"),s=n.style,s.backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,s.height=this.settings[r]&&this.settings[r].width?`${this.settings[r].width}px`:`${e.border.width}px`,s.width=this.settings[r]&&this.settings[r].width?`${this.settings[r].width}px`:`${e.border.width}px`,this.main.appendChild(n)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,n.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:i}=this.wot;let r=i.bordersHolder;r||(r=t.createElement("div"),r.className="htBorders",i.bordersHolder=r,i.spreader.appendChild(r)),r.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),s=o.getCSSVariableValue("cell-mobile-handle-size"),i=o.getCSSVariableValue("cell-mobile-handle-border-radius"),n=o.getCSSVariableValue("cell-mobile-handle-background-color"),l=o.getCSSVariableValue("cell-mobile-handle-border-width"),a=o.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const h={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,r.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const c=o.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${s}px`,width:`${s}px`,"border-radius":`${i}px`,background:`${n}`,border:`${l}px solid ${a}`};(0,r.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,s,i,r){const n=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:l,topHitArea:a,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(l.borderWidth,10),d=parseInt(l.width,10),g=parseInt(a.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();l.top=`${parseInt(o-d-1,10)}px`,l[n]=`${parseInt(s-d-1,10)}px`,a.top=`${parseInt(o-g/4*3,10)}px`,a[n]=`${parseInt(s-g/4*3,10)}px`;const m=Math.min(parseInt(s+i,10),f-d-2*u),w=Math.min(parseInt(s+i-g/4,10),f-g-2*u);h[n]=`${m}px`,c[n]=`${w}px`;const C=Math.min(parseInt(o+r,10),p-d-2*u),v=Math.min(parseInt(o+r-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",a.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(l.display="none",h.display="none",a.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",a.zIndex="9999"):(l.zIndex="",a.zIndex="")}appear(e){if(this.disabled)return;let[t,o,i,r]=e;if(t<0&&i<0||o<0&&r<0)return void this.disappear();const{wtTable:l,rootDocument:a,rootWindow:h}=this.wot,c=t!==i||o!==r,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=l.getFirstRenderedRow(),g=l.getLastRenderedRow(),f=l.getFirstRenderedColumn(),p=l.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),r=Math.min(r,p),t=Math.max(t,d),i=Math.min(i,g),r<o||i<t)return void this.disappear();m=l.getCell(this.wot.createCellCoords(t,o))}else if(m=l.getCell(this.wot.createCellCoords(t,o)),!(0,s.isHTMLElement)(m))return void this.disappear();const w=c?l.getCell(this.wot.createCellCoords(i,r)):m,C=(0,s.offset)(m),v=c?(0,s.offset)(w):C,y=(0,s.offset)(l.TABLE),E=C.top,S=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,s.outerWidth)(l.TABLE),t=(0,s.outerWidth)(m),o=h.innerWidth-y.left-e;_=S+t-v.left,b=h.innerWidth-S-t-o-1}else _=v.left+(0,s.outerWidth)(w)-S,b=S-y.left-1;if(this.isEntireColumnSelected(t,i)){const e=t,s=this.getDimensionsFromHeader("columns",o,r,e,y);let i=null;s&&([i,b,_]=s),i&&(m=i)}let T=E-y.top-1,M=v.top+(0,s.outerHeight)(w)-E;if(this.isEntireRowSelected(o,r)){const e=o,s=this.getDimensionsFromHeader("rows",t,i,e,y);let r=null;s&&([r,T,M]=s),r&&(m=r)}const I=h.getComputedStyle(m);parseInt(I.borderTopWidth,10)>0&&(T+=1,M=M>0?M-1:0),parseInt(I[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,_=_>0?_-1:0);const O=R?"right":"left",N=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+N}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+N}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+N}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+N}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+N}px`,this.endStyle.height=`${M+N}px`,this.endStyle.display="block";let A=this.settings.border.cornerVisible;A="function"==typeof A?A(this.settings.layerLevel):A;const H=this.wot.getSetting("onModifyGetCellCoords",i,r,!1,"render");let[x,P]=[i,r];if(H&&Array.isArray(H)&&([,,x,P]=H),(0,n.isMobileBrowser)()||!A||this.isPartRange(x,P))this.cornerStyle.display="none";else{this.cornerStyle.top=T+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=b+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,s.getTrimmingContainer)(l.TABLE);const t=e===h;t&&(e=a.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,n=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(r===this.wot.getSetting("totalColumns")-1){const i=t?w.getBoundingClientRect().left:w.offsetLeft;let r=!1,l=0;if(R?(l=i-parseInt(this.cornerDefaultStyle.width,10)/2,r=l<0):(l=i+(0,s.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,r=l>=(0,s.innerWidth)(e)),r){const e=Math.floor(b+_+this.cornerCenterPointOffset-n-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(i===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,s.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(e)){const e=Math.floor(T+M+this.cornerCenterPointOffset-c-o);u?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,n.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(i,r,T,b,_,M)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,i,r){const{wtTable:n}=this.wot,l=n.wtRootElement.parentNode;let a=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":a=function(){return n.getRowHeader(...arguments)},h=function(){return(0,s.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":a=function(){return n.getColumnHeader(...arguments)},h=function(){return(0,s.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(l.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=a(t,e-i),p=a(o,e-i),!f||!p)return!1;const n=(0,s.offset)(f),l=(0,s.offset)(p);return f&&p&&(u=n[g]-r[g]-1,d=l[g]+h(p)-n[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,i=t[e];!i||i.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),o.backgroundColor=i.color,"top"!==e&&"bottom"!==e||(o.height=`${i.width}px`),"start"!==e&&"end"!==e||(o.width=`${i.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",s=this[e].style;s.backgroundColor=o,s.width=`${t}px`,s.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,n.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},52514:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=o(58741),r=o(89255),n=s(o(28494)),l=o(64791);function a(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;class y{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t,o){var s=this;a(this,d,void 0),a(this,g,void 0),a(this,f,!1),a(this,p,null),a(this,m,void 0),a(this,w,void 0),a(this,C,!0),a(this,v,new l.EditorResizeObserver),c(d,this,e),c(g,this,o),c(f,this,t),c(m,this,this.createEditor()),c(w,this,h(m,this).style),h(v,this).setObservedElement(this.getInputElement()),h(v,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runLocalHooks("resize",...t)}),this.hide()}setPosition(e,t){h(w,this).left=`${e}px`,h(w,this).top=`${t}px`}setSize(e,t){if(e&&t){const o=this.getInputElement();o.style.width=`${e}px`,o.style.height=`${t}px`}}getSize(){return{width:(0,i.outerWidth)(this.getInputElement()),height:(0,i.outerHeight)(this.getInputElement())}}observeSize(){h(v,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(w,this).display="block",c(C,this,!1)}hide(){h(v,this).unobserve(),h(C,this)||(h(w,this).display="none"),c(C,this,!0)}isVisible(){return"block"===h(w,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",c(p,this,h(d,this).createElement("div")),h(p,this).setAttribute("dir",h(f,this)?"rtl":"ltr"),(0,i.addClass)(h(p,this),y.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(p,this)),(0,i.addClass)(e,y.CLASS_EDITOR),(0,i.addClass)(t,y.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(p,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${y.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(p,this)?h(p,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),c(m,this,null),c(w,this,null),h(v,this).destroy(),e&&e.removeChild(h(p,this))}}(0,r.mixin)(y,n.default);t.default=y},52587:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(-1,0),t.markEndSource()}}},52679:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(17748);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Formulas=s.Formulas},52682:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=o(13351),l=o(89255),a=o(1508),h=o(94293),c=o(58741),u=o(97836),d=o(16402),g=o(12945),f=o(72365),p=o(6532);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,E="changeType",S=v;var R=new WeakMap,b=new WeakSet;class _ extends r.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,i.default)(this,"commandExecutor",new a.CommandExecutor(this.hot)),(0,i.default)(this,"itemsFactory",null),(0,i.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>C(b,this,I).call(this,e,t))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,P).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,x).call(e,...o)});const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const s=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",s),this.menu.setMenuItems(s),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,N).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,A).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,H).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)}),(0,n.arrayEach)(s,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),s=this.hot.getCell(-1,t.col,!0).querySelector(`.${E}`),i=s.getBoundingClientRect();this.open({left:i.left+o.left,top:i.top+s.offsetHeight+o.top},{left:i.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>C(b,this,M).call(this,e))}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,l.objectEach)(o,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,E)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function I(e,t){const o=t.parentNode;if(!o)return;const s=o.parentNode.childNodes,i=Array.prototype.indexOf.call(s,o);if(e<0||i!==s.length-1)return;const r=t.querySelector(`.${E}`);if(this.enabled&&r)return;if(!this.enabled)return void(r&&r.parentNode.removeChild(r));const n=this.hot.rootDocument.createElement("button");n.className=E,n.type="button",n.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(n,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),n.onclick=function(){return!1},t.firstChild.insertBefore(n,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function N(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function A(e){C(b,this,T).call(this,e)}function H(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function x(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function P(e){(0,c.hasClass)(e.target,E)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},52712:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(9288),n=o(25875),l=o(58741),a=o(6532);const h=t.EDITOR_TYPE="password";class c extends r.TextEditor{constructor(){super(...arguments),(0,i.default)(this,"autoResize",(0,n.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,a.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},52784:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499).has,r=o(30845),n=o(18622),l=o(78016),a=o(63884);e.exports=function(e){var t=s(this),o=n(e);if(r(t)<o.size)return!1;var h=o.getIterator();return!1!==l(h,function(e){if(!i(t,e))return a(h,"normal",!1)})}},52813:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.depthFirstPreOrder=n;var i=s(o(53726));o(88443),o(85639);const r=t.TRAVERSAL_DF_PRE="DF-pre-order";function n(e,t){let o=e.call(t,this);for(let s=0;s<this.childs.length;s++){if(!1===o)return!1;o=n.call(this.childs[s],e,t)}return o}const l=t.TRAVERSAL_DF_POST="DF-post-order";const a=t.TRAVERSAL_BF="BF";const h=a,c=new Map([[r,n],[l,function e(t,o){for(let s=0;s<this.childs.length;s++){if(!1===e.call(this.childs[s],t,o))return!1}return t.call(o,this)}],[a,function(e,t){const o=[this];!function s(){if(0===o.length)return;const i=o.shift();o.push(...i.childs),!1!==e.call(t,i)&&s()}()}]]);class u{constructor(e){(0,i.default)(this,"data",{}),(0,i.default)(this,"parent",null),(0,i.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=s=>{!1!==e.call(t,s)&&null!==s.parent&&o(s.parent)};o(this)}}t.default=u},52825:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.timeValidator=l;var i=s(o(86798));const r=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],n=t.VALIDATOR_TYPE="time";function l(e,t){const o=this.timeFormat||"h:mm:ss a";let s=!0,n=e;null===n&&(n=""),n=/^\d{3,}$/.test(n)?parseInt(n,10):n;const l=/^\d{1,2}$/.test(n);l&&(n+=":00");const a=(0,i.default)(n,r,!0).isValid()?(0,i.default)(n):(0,i.default)(n,o);let h=a.isValid(),c=(0,i.default)(n,o,!0).isValid()&&!l;if(this.allowEmpty&&""===n&&(h=!0,c=!0),h||(s=!1),!h&&c&&(s=!0),h&&!c)if(!0===this.correctFormat){const e=a.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),s=!0}else s=!1;t(s)}l.VALIDATOR_TYPE=n},53032:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},53094:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639);var s=o(89255),i=o(13351),r=o(8632);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var u=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){n(this,u,[]),n(this,d,0),n(this,g,1/0)}setColumnsLimit(e){a(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(u,this,(0,r.normalizeSettings)(e,l(g,this))),a(d,this,l(u,this).length)}getData(){return l(u,this)}mergeWith(e){(0,i.arrayEach)(e,e=>{let{row:t,col:o,...i}=e;const r=this.getHeaderSettings(t,o);null!==r&&(0,s.extend)(r,i,c)})}map(e){(0,i.arrayEach)(l(u,this),t=>{(0,i.arrayEach)(t,t=>{const o=e({...t});(0,s.isObject)(o)&&(0,s.extend)(t,o,c)})})}getHeaderSettings(e,t){var o;if(e>=l(d,this)||e<0)return null;const s=l(u,this)[e];return!1===Array.isArray(s)||t>=s.length?null:null!==(o=s[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=[];if(e>=l(d,this)||e<0)return s;const i=l(u,this)[e];let r=0;for(let e=t;e<i.length;e++){const t=i[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(r+=t.colspan,s.push(t),t.colspan>1&&(e+=t.colspan-1),r===o)break;if(r>o)throw new Error("The last column settings cannot overlap the other header layers")}return s}getLayersCount(){return l(d,this)}getColumnsCount(){return l(d,this)>0?l(u,this)[0].length:0}clear(){a(u,this,[]),a(d,this,0)}}},53242:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(87492);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ColumnSummary=s.ColumnSummary},53318:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,s.getRootComparator)(t);for(var i=arguments.length,r=new Array(i>2?i-2:0),n=2;n<i;n++)r[n-2]=arguments[n];e.sort(o(...r))};var s=o(44531);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},53325:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),t=e?(0,i.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(16372),i=o(79501)},53385:(e,t,o)=>{"use strict";var s=o(25225),i=s({}.toString),r=s("".slice);e.exports=function(e){return r(i(e),8,-1)}},53488:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(13351),i=o(89255);const r={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,s.arrayEach)(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){(0,i.objectEach)(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};(0,i.defineGetter)(r,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=r},53566:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,s=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof s.tabMoves?s.tabMoves(t):s.tabMoves;o.markSource("keyboard"),o.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},53594:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_yesterday";function a(e){const t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(1,"days").startOf("day"),"d")}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},53726:(e,t,o)=>{var s=o(42265);e.exports=function(e,t,o){return(t=s(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},53853:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:s}}]=o;e.unfreezeColumn(s),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},53967:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllRenderers=function(){(0,f.registerRenderer)(s.autocompleteRenderer),(0,f.registerRenderer)(i.baseRenderer),(0,f.registerRenderer)(n.checkboxRenderer),(0,f.registerRenderer)(r.dropdownRenderer),(0,f.registerRenderer)(l.handsontableRenderer),(0,f.registerRenderer)(a.htmlRenderer),(0,f.registerRenderer)(h.numericRenderer),(0,f.registerRenderer)(c.passwordRenderer),(0,f.registerRenderer)(u.selectRenderer),(0,f.registerRenderer)(d.textRenderer),(0,f.registerRenderer)(g.timeRenderer)};var s=o(30539);t.autocompleteRenderer=s.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=s.RENDERER_TYPE;var i=o(55934);t.baseRenderer=i.baseRenderer,t.BASE_RENDERER=i.RENDERER_TYPE;var r=o(96422);t.dropdownRenderer=r.dropdownRenderer,t.DROPDOWN_RENDERER=r.RENDERER_TYPE;var n=o(18794);t.checkboxRenderer=n.checkboxRenderer,t.CHECKBOX_RENDERER=n.RENDERER_TYPE;var l=o(13898);t.handsontableRenderer=l.handsontableRenderer,t.HANDSONTABLE_RENDERER=l.RENDERER_TYPE;var a=o(38430);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var h=o(49968);t.numericRenderer=h.numericRenderer,t.NUMERIC_RENDERER=h.RENDERER_TYPE;var c=o(21490);t.passwordRenderer=c.passwordRenderer,t.PASSWORD_RENDERER=c.RENDERER_TYPE;var u=o(40799);t.selectRenderer=u.selectRenderer,t.SELECT_RENDERER=u.RENDERER_TYPE;var d=o(93692);t.textRenderer=d.textRenderer,t.TEXT_RENDERER=d.RENDERER_TYPE;var g=o(70338);t.timeRenderer=g.timeRenderer,t.TIME_RENDERER=g.RENDERER_TYPE;var f=o(73424);t.registerRenderer=f.registerRenderer,t.getRegisteredRendererNames=f.getRegisteredRendererNames,t.getRegisteredRenderers=f.getRegisteredRenderers,t.getRenderer=f.getRenderer,t.hasRenderer=f.hasRenderer},54023:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new r.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:i.HIGHLIGHT_FILL_TYPE})};var i=o(33674),r=s(o(97616))},54090:(e,t,o)=>{"use strict";var s=o(25225),i=o(11044),r=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(i(e),t)}},54200:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307),o(69326),o(90795),o(89663);var i=s(o(53726)),r=o(76549),n=o(12945),l=s(o(15688)),a=s(o(45331)),h=s(o(72420)),c=s(o(32506)),u=s(o(37733)),d=o(13351),g=o(89255),f=o(35359),p=o(79501),m=o(58741),w=o(8874),C=o(66793),v=o(92018),y=o(46396);function E(e,t,o){S(e,t),t.set(e,o)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,o){return e.set(_(e,t),o),o}function b(e,t){return e.get(_(e,t))}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeMergeCells"),n.Hooks.getSingleton().register("afterMergeCells"),n.Hooks.getSingleton().register("beforeUnmergeCells"),n.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakMap,x=new WeakSet;class P extends r.BasePlugin{constructor(){var e,t;super(...arguments),S(e=this,t=x),t.add(e),(0,i.default)(this,"mergedCellsCollection",null),(0,i.default)(this,"autofillCalculations",null),(0,i.default)(this,"selectionCalculations",null),E(this,O,null),E(this,N,{row:0,col:0}),E(this,A,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),E(this,H,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[r.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new l.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,L).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,W).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,z).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,G).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(H,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,K).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,se).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ie).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,re).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ne).call(e,...o)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:o,rowspan:s}=e;for(let e=o+1;e<o+s;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const s=t.getRow(o);s&&(s.style.background=(0,m.getStyle)(s,"backgroundColor").replace(")",", 0.99)"),e.push(s))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(a.default.containsNegativeValues(e)?((0,f.warn)(a.default.NEGATIVE_VALUES_WARNING(e)),!1):a.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(a.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):a.default.isSingleCell(e)?((0,f.warn)(a.default.IS_SINGLE_CELL(e)),!1):!a.default.containsZeroSpan(e)||((0,f.warn)(a.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach(e=>{const{row:t,col:s,rowspan:i,colspan:r}=e,n=this.hot._createCellCoords(t,s),l=this.hot._createCellCoords(t+i-1,s+r-1),a=this.hot._createCellRange(n,n,l);this.mergeRange(a,!0,!0);for(let e=t;e<t+i;e++)for(let i=s;i<s+r;i++)e===t&&i===s||o.push([e,i,null])}),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=e.getTopStartCorner(),i=e.getBottomEndCorner(),r={row:s.row,col:s.col,rowspan:i.row-s.row+1,colspan:i.col-s.col+1},n=[];let l=null;if(!this.canMergeRange(r,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,r.rowspan-1,e=>{(0,p.rangeEach)(0,r.colspan-1,t=>{let o=null;n[e]||(n[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r.row),this.hot.toPhysicalColumn(r.col)):this.hot.setCellMeta(r.row+e,r.col+t,"hidden",!0),n[e][t]=o})}),this.hot.setCellMeta(r.row,r.col,"spanned",!0);return!this.mergedCellsCollection.add(r,t)||(o?l=[r.row,r.col,n]:this.hot.populateFromArray(r.row,r.col,n,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,r,t),l)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,t=>{(0,p.rangeEach)(0,e.colspan-1,o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:o}=e.clone().normalize(),s=this.mergedCellsCollection.get(t.row,t.col);s.row===t.row&&s.col===t.col&&s.row+s.rowspan-1===o.row&&s.col+s.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,s){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(o,s);this.mergeRange(this.hot._createCellRange(i,i,r))}unmerge(e,t,o,s){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(o,s);this.unmergeRange(this.hot._createCellRange(i,i,r))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:I})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(I)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.startRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(r)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r.row,1));if(s<e.startRow)return e.startRow=s,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.endRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(r)){const s=r.row+r.rowspan-1,i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(i>e.endRow)return e.endRow=i,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.startColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(r)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r.col,1));if(s<e.startColumn)return e.startColumn=s,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.endColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(r)){const s=r.col+r.colspan-1,i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(i>e.endColumn)return e.endColumn=i,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,s){const{rowIndexMapper:i,columnIndexMapper:r}=this.hot;let n,l;n=0===t?i.getNearestNotHiddenIndex(e,1):i.getNearestNotHiddenIndex(e+t-1,-1),l=0===s?r.getNearestNotHiddenIndex(o,1):r.getNearestNotHiddenIndex(o+s-1,-1);return[e>=0?i.getRenderableFromVisualIndex(n):e,o>=0?r.getRenderableFromVisualIndex(l):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner(),s=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&s.row===e[t].row+e[t].rowspan-1&&s.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(N,this).row=e.row,b(N,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeLast(),{highlight:o}=t,{columnIndexMapper:s,rowIndexMapper:i}=this.hot;b(O,this)&&(null!==i.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==s.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const r=this.mergedCellsCollection.get(o.row,o.col);if(!r)return;const n=r.col,l=r.col+r.colspan-1;if(e.col<0){const t=o.col>=n&&o.col<=l?n-1:l,i=s.getNearestNotHiddenIndex(t,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,o.col)-1,1)}else if(e.col>0){const t=o.col>=n&&o.col<=l?l+1:n,i=s.getNearestNotHiddenIndex(t,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,i)-1,1)}const a=r.row,h=r.row+r.rowspan-1;if(e.row<0){const t=o.row>=a&&o.row<=h?a-1:h,s=i.getNearestNotHiddenIndex(t,-1);e.row=null===s?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(s,o.row)-1,1)}else if(e.row>0){const t=o.row>=a&&o.row<=h?h+1:a,s=i.getNearestNotHiddenIndex(t,1);e.row=null===s?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,s)-1,1)}}function W(e){const t=this.hot.getSelectedRangeLast(),o=t.clone(),{to:s}=t,{columnIndexMapper:i,rowIndexMapper:r}=this.hot,n=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let r=this.mergedCellsCollection.getStartMostColumnIndex(t,s.col)+e.col;n(s.row,r),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(r=o.getTopStartCorner().col);const l=i.getNearestNotHiddenIndex(r,1);null!==l&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(l,s.col)-1,1))}else if(e.col>0){let r=this.mergedCellsCollection.getEndMostColumnIndex(t,s.col)+e.col;n(s.row,r),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(r=o.getBottomEndCorner().col);const l=i.getNearestNotHiddenIndex(r,-1);null!==l&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(s.col,l)-1,1))}if(e.row<0){let i=this.mergedCellsCollection.getTopMostRowIndex(t,s.row)+e.row;n(i,s.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(i=o.getTopStartCorner().row);const l=r.getNearestNotHiddenIndex(i,1);null!==l&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(l,s.row)-1,1))}else if(e.row>0){let i=this.mergedCellsCollection.getBottomMostRowIndex(t,s.row)+e.row;n(i,s.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(i=o.getBottomStartCorner().row);const l=r.getNearestNotHiddenIndex(i,-1);null!==l&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(s.row,l)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);R(O,this,t.clone()),o&&t.assign(o)}function B(e,t,o,s){if(e<0||t<0)return;const i=this.mergedCellsCollection.get(e,t);if(!i)return;const{row:r,col:n,colspan:l,rowspan:a}=i,h=r,c=n,u=r+a-1,d=n+l-1;if("render"===s&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function U(e){e.items.push({name:"---------"},(0,u.default)(this))}function Y(){R(O,this,null)}function j(){if(b(O,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),s=b(O,this).clone().normalize();b(A,this).setActiveNode(s.row,s.col),b(N,this).row>0||b(N,this).col>0?b(A,this).setPrevNodeAsActive():("E-W"===o&&b(N,this).col<0||"S-N"===t&&b(N,this).row<0)&&b(A,this).setNextNodeAsActive()}function z(e,t){const o=this.hot.getSelectedRangeLast(),{columnIndexMapper:s,rowIndexMapper:i}=this.hot;let r=null,n=null;if(b(N,this).col<0){const{rowEnd:e,colEnd:t}=b(A,this).getPrevHorizontalNode();n=s.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(b(N,this).col>0){const{rowStart:e,colStart:t}=b(A,this).getNextHorizontalNode();n=s.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}else if(b(N,this).row<0){const{rowEnd:e,colEnd:t}=b(A,this).getPrevVerticalNode();n=s.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(b(N,this).row>0){const{rowStart:e,colStart:t}=b(A,this).getNextVerticalNode();n=s.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}if(null!==r||null!==n){const s=this.hot._createCellCoords(r,n),i=this.mergedCellsCollection.get(s.row,s.col),l=this.hot.selection.highlight.getFocus();e=s.row,t=s.col,i?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(i.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(i.col,1)}):o.highlight.assign(s),l.clear(),l.add(s).commit()}b(A,this).setActiveNode(e,t),R(N,this,{row:0,col:0})}function G(){this.hot.getSelectedRangeLast().isHeader()||b(A,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function $(e,t,o){const s=this.mergedCellsCollection.get(e,t);s&&(s.row!==e||s.col!==t?o.copyable=!1:(o.rowspan=s.rowspan,o.colspan=s.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const s=this.hot._createCellCoords(t[0],t[1]),i=this.hot._createCellCoords(t[2],t[3]),r=this.hot._createCellRange(s,s,i),n=this.mergedCellsCollection.getWithinRange(r);return 0===n.length?e:this.autofillCalculations.snapDragArea(t,e,o,n)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function J(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function Z(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function oe(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)})}}function se(e,t,o,s){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,s)}function ie(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function re(e,t,o,s){if(!(s instanceof MouseEvent))return;const i=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getByRange(i);if(!r)return;const n=this.hot._createCellCoords(r.row,r.col),l=this.hot._createCellCoords(r.row+r.rowspan-1,r.col+r.colspan-1);return 0===this.hot.selection.getLayerLevel()&&i.isEqual(this.hot._createCellRange(n,n,l))}function ne(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let s,i;if("master"===o)s=this.hot.getFirstRenderedVisibleColumn(),i=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,s))return e;const r=this.hot._createCellCoords(t,s),n=this.hot._createCellCoords(t,i),l=this.hot._createCellRange(r,r,n),a=this.mergedCellsCollection.getWithinRange(l,!0),h=a.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return a.length>1&&a[0].rowspan<h&&(c=h-a[0].rowspan),a.forEach(s=>{let{rowspan:i}=s,r=0;r="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):i-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,r))}),e}t.MergeCells=P},54515:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(85296);const r=t.CONDITION_NAME="lt";function n(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value<s}(0,i.registerCondition)(r,n,{name:s.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},54712:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(95977),n=o(66497),l=o(95422),a=s(o(80277));function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;class d{constructor(e,t,o){h(this,u),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"tableMeta",void 0),(0,i.default)(this,"selection",void 0),(0,i.default)(this,"eventManager",void 0),(0,i.default)(this,"destroyed",!1),(0,i.default)(this,"activeEditor",void 0),(0,i.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new a.default(e),this.hot.addHook("afterDocumentKeyDown",e=>c(u,this,g).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>c(u,this,g).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,o)=>c(u,this,f).call(this,e,t,o))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:s}=t,i=this.hot.runHooks("modifyGetCellCoords",o,s,!1,"meta");let r=o,n=s;if(Array.isArray(i)&&([r,n]=i),this.cellProperties=this.hot.getCellMeta(r,n),!this.isCellEditable())return void this.clearActiveEditor();const a=this.hot.getCell(o,s,!0);if(a){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(n),i=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r),n);this.activeEditor=(0,l.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,s,t,a,i,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const s=this.hot.getSelectedRangeLast();let i=this.hot.runHooks("beforeBeginEditing",s.highlight.row,s.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof i&&(i=0===this.hot.selection.getLayerLevel()&&s.isSingle()),!1!==i?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(o&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,o){this.activeEditor?this.activeEditor.finishEditing(e,t,o):o&&o(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:s}=e.highlight,{rowIndexMapper:i,columnIndexMapper:r}=this.hot,n=i.isHidden(this.hot.toPhysicalRow(o))||r.isHidden(this.hot.toPhysicalColumn(s));return!(this.cellProperties.readOnly||!t||n)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,n.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,s=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,r.isFunctionKey)(o)||(0,r.isCtrlMetaKey)(o)||s||this.isEditorOpened()||this.openEditor("",e))}function f(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const p=new WeakMap;d.getInstance=function(e,t,o){let s=p.get(e);return s||(s=new d(e,t,o),p.set(e,s)),s};t.default=d},55010:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(86713),n=o(77618),l=o(74218),a=o(46963),h=o(45556),c=o(8302),u=o(63884),d=o(15435),g=o(69498),f=!c&&!d("filter",function(){}),p=!c&&!f&&g("filter",TypeError),m=c||f||p,w=a(function(){for(var e,t,o=this.iterator,s=this.predicate,r=this.next;;){if(e=n(i(r,o)),this.done=!!e.done)return;if(t=e.value,h(o,s,[t,this.counter++],!0))return t}});s({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){n(this);try{r(e)}catch(e){u(this,"throw",e)}return p?i(p,this,e):new w(l(this),{predicate:e})}})},55265:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,s=e.getSelectedRangeLast().highlight.row;let i=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===i&&(i=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,i)),t.markEndSource()}}},55289:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new r.default({className:t,...o,selectionType:i.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var i=o(33674),r=s(o(97616))},55765:(e,t)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=s;const o=t.VALIDATOR_TYPE="autocomplete";function s(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,i(o,t)):i(o,t)(this.source):t(!0)}function i(e,t){const o=e;return function(e){let s=!1;for(let t=0,i=e.length;t<i;t++)if(o===e[t]){s=!0;break}t(s)}}s.VALIDATOR_TYPE=o},55897:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(68068);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.HiddenRows=s.HiddenRows},55934:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(42178);t.RENDERER_TYPE=s.RENDERER_TYPE,t.baseRenderer=s.baseRenderer},55994:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(89255),n=s(o(28494)),l=s(o(80277)),a=o(58741),h=o(13351),c=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const u="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class f{static get DEFAULTS(){return(0,r.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"eventManager",new l.default(this)),(0,i.default)(this,"options",void 0),(0,i.default)(this,"_element",void 0),(0,i.default)(this,"buildState",void 0),this.hot=e,this.options=(0,r.extend)(f.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===u?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=u,this._element)}isBuilt(){return this.buildState===u}translateIfPossible(e){return"string"==typeof e&&e.startsWith(c.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,a.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,r.objectEach)(this.options,(e,o)=>{void 0!==t[o]&&"className"!==o&&"tagName"!==o&&"children"!==o&&(t[o]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,o=>e(t,o))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=f,(0,r.mixin)(f,n.default)},56060:(e,t,o)=>{"use strict";var s=o(76277),i=o(88005),r=o(15946).set,n=o(67339),l=i.setImmediate?n(r,!1):r;s({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==l},{setImmediate:l})},56332:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(63007);t.createShortcutManager=s.createShortcutManager},56334:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=r;var s=o(30539);const i=t.RENDERER_TYPE="dropdown";function r(e,t,o,i,r,n,l){s.autocompleteRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},56360:(e,t,o)=>{"use strict";var s,i,r=o(88005),n=o(35172),l=r.process,a=r.Deno,h=l&&l.versions||a&&a.version,c=h&&h.v8;c&&(i=(s=c.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&n&&(!(s=n.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=n.match(/Chrome\/(\d+)/))&&(i=+s[1]),e.exports=i},56464:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(69326);var i=s(o(53726));t.ViewportBaseCalculator=class{constructor(e){(0,i.default)(this,"calculationTypes",[]),(0,i.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,s]=t;this.calculationResults.set(o,s),s.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,s]=o;return s.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},56779:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNDO)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const i=t.KEY="undo"},56836:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(26571);t.BaseRenderer=class{constructor(e,t){(0,i.default)(this,"nodesPool",null),(0,i.default)(this,"nodeType",void 0),(0,i.default)(this,"rootNode",void 0),(0,i.default)(this,"table",null),(0,i.default)(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new r.NodesPool(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}},56923:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(97213),r=o(85296);const n=t.CONDITION_NAME="ends_with";function l(e,t){let[o]=t;return(0,i.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,i.stringify)(o))}(0,r.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},57170:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,i.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,i.default)(e,t,!0).format(r)},t.getDateInHotFormat=function(e,t){return(0,i.default)(e,r,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,i.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=n,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return n(e)?e.substr(1):e};var i=s(o(86798));const r="DD/MM/YYYY";function n(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},57305:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85990),i=o(96422),r=o(40476);const n=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:n,editor:s.DropdownEditor,renderer:i.dropdownRenderer,validator:r.dropdownValidator,filter:!1,strict:!0}},57368:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},57724:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(89255),n=o(79501),l=o(97213);class a{static get SAMPLE_COUNT(){return 3}constructor(e){(0,i.default)(this,"samples",null),(0,i.default)(this,"dataFactory",null),(0,i.default)(this,"customSampleCount",null),(0,i.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:a.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,o){const s=new Map,{from:i,to:r}="number"==typeof o?{from:o,to:o}:o;return(0,n.rangeEach)(i,r,o=>{const i=this.generateSample(e,t,o);s.set(o,i)}),s}generateSample(e,t,o){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const s=new Map,i="row"===e?"col":"row",a=[];return(0,n.rangeEach)(t.from,t.to,t=>{const n="row"===e?this.dataFactory(o,t):this.dataFactory(t,o);if(!1===n)return;const{value:h,bundleSeed:c}=n,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,r.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,l.stringify)(h).length}`,s.has(d)||s.set(d,{needed:this.getSampleCount(),strings:[]});const g=s.get(d);if(g.needed){(!(a.indexOf(h)>-1)||this.allowDuplicates||u)&&(g.strings.push({value:h,[i]:t}),a.push(h),g.needed-=1)}}),s}}t.default=a},57754:(e,t,o)=>{"use strict";var s=o(25225),i=o(82314),r=o(6996),n=o(54090),l=o(39157),a=o(14119).CONFIGURABLE,h=o(1325),c=o(10982),u=c.enforce,d=c.get,g=String,f=Object.defineProperty,p=s("".slice),m=s("".replace),w=s([].join),C=l&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),y=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),(!n(e,"name")||a&&e.name!==t)&&(l?f(e,"name",{value:t,configurable:!0}):e.name=t),C&&o&&n(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&n(o,"constructor")&&o.constructor?l&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=u(e);return n(s,"source")||(s.source=w(v,"string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return r(this)&&d(this).source||h(this)},"toString")},57883:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(69383),i=o(5115),r=o(83139);const n=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:n,editor:s.DateEditor,renderer:i.dateRenderer,validator:r.dateValidator}},58095:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,s]=e[0];o-s!==0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,s.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var s=o(43748),i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const r=t.KEY="remove_col"},58473:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(30344);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualColumnMove=s.ManualColumnMove},58501:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9288),i=o(93692);const r=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:r,editor:s.TextEditor,renderer:i.textRenderer}},58511:(e,t,o)=>{"use strict";var s=o(9370).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}})}},58553:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(89663);var i=s(o(53726)),r=o(58741),n=o(46092),l=o(13351),a=o(95977),h=o(8874),c=o(35359),u=o(40457);function d(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;t.default=class{constructor(e,t,o,s,l,a){(0,i.default)(this,"wot",null),d(this,m,[]),(0,i.default)(this,"topOverlay",null),(0,i.default)(this,"bottomOverlay",null),(0,i.default)(this,"inlineStartOverlay",null),(0,i.default)(this,"topInlineStartCornerOverlay",null),(0,i.default)(this,"bottomInlineStartCornerOverlay",null),(0,i.default)(this,"browserLineHeight",void 0),(0,i.default)(this,"wtSettings",null),d(this,w,!1),d(this,C,0),d(this,v,null),(0,i.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,n.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(C,this,f(C,this)+1),100===f(C,this)&&((0,c.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==f(v,this)&&clearTimeout(f(v,this)),g(v,this,setTimeout(()=>{g(C,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=s,this.domBindings=o,this.facadeGetter=t,this.wtTable=a;const{rootDocument:h,rootWindow:u}=this.domBindings;this.instance=this.wot,this.eventManager=l,this.scrollbarSize=(0,r.getScrollbarWidth)(h);const p="hidden"===u.getComputedStyle(a.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=p?a.holder:(0,r.getScrollableElement)(a.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=u.scrollX,this.lastScrollY=u.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...f(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,o=e.getComputedStyle(t.body),s=parseInt(o.lineHeight,10),i=1.2*parseInt(o.fontSize,10);this.browserLineHeight=s||i}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new u.TopOverlay(...e),this.bottomOverlay=new u.BottomOverlay(...e),this.inlineStartOverlay=new u.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new u.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new u.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(w,this,f(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),f(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),f(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:o}=this.topOverlay,{mainTableScrollableElement:s}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(o,"scroll",e=>this.onTableScroll(e),{passive:!0}),o!==s&&this.eventManager.addEventListener(s,"scroll",e=>this.onTableScroll(e),{passive:!0});const i=t.devicePixelRatio&&t.devicePixelRatio>1,r=this.scrollableElement===t,l=this.wtSettings.getSetting("preventWheel"),a={passive:r};(l||i||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,l),a);let c;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,l),a)}),this.eventManager.addEventListener(t,"resize",()=>{(0,n.requestAnimationFrame)(()=>{clearTimeout(c),this.wtSettings.getSetting("onWindowResize"),c=setTimeout(()=>{g(C,this,0)},200)})}),r||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,o=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,i=e.target;this.keyPressed&&(s!==t&&i!==t&&!e.target.contains(s)||o!==t&&i!==t&&!e.target.contains(o))||this.syncScrollPositions(e)}onCloneWheel(e,t){const{rootWindow:o}=this.domBindings,s=this.inlineStartOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=e.target,n=i!==o&&r!==o&&!r.contains(i),l=s!==o&&r!==o&&!r.contains(s);if(this.keyPressed&&(n||l)||this.scrollableElement===o)return;const a=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==o&&a)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,a.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,o=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(o+=o*this.browserLineHeight,t+=t*this.browserLineHeight);const s=this.scrollVertically(t),i=this.scrollHorizontally(o);return s||i}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let o=this.scrollableElement.scrollLeft,s=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(o=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(s=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==o,this.verticalScrolling=this.lastScrollY!==s,this.lastScrollX=o,this.lastScrollY=s,this.horizontalScrolling){e.scrollLeft=o;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=o)}this.verticalScrolling&&(t.scrollTop=s),this.refreshAll()}syncScrollWithMaster(){if(!f(w,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:o}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=o),g(w,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,r.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,o=e.clientHeight,s=t!==this.spreaderLastSize.width||o!==this.spreaderLastSize.height;return s&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=o),s}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:o}=this.domBindings,s=this.scrollableElement===o,i=this.wtSettings.getSetting("totalColumns"),r=this.wtSettings.getSetting("totalRows"),n=e.getRowHeaderWidth(),l=e.getColumnHeaderHeight()+this.topOverlay.sumCellSizes(0,r)+1,a=n+this.inlineStartOverlay.sumCellSizes(0,i),h=t.hider.style,c=(()=>!s&&this.scrollableElement.scrollTop>Math.max(0,l-t.holder.clientHeight))()?1:0,u=(()=>!s&&this.scrollableElement.scrollLeft>Math.max(0,a-t.holder.clientWidth))()?1:0;h.width=`${a+u}px`,h.height=`${l+c}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let o=null;return(0,l.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(o=t.clone)}),o}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,l.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},58561:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(73741),o(69326),o(90795),o(82141);var i=s(o(53726)),r=o(97213),n=o(35359),l=o(5455);t.default=class{constructor(e){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"dataManager",void 0),(0,i.default)(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,o,s){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:o,movePossible:s}))return!1;this.movedToCollapsed=!1;const i=o===this.hot.countRows(),r=i?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(o);let n=!0;const l=e.map(e=>{if(!n)return!1;const t=this.dataManager.translateTrimmedRow(e);return n=this.shouldAllowMoving(t,r),t}),a=-1===l.indexOf(r);if(!n||!a)return!1;const h=this.getBaseParent(l),c=this.getTargetParent(i,r),u=h===c;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(l,r,u),this.moveRows(l,r,c),this.dataManager.rewriteCache(),this.moveCellsMeta(l,r),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,o,s,s&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,o),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:o,dropIndex:s,movePossible:i}=e;let a=!1;return(0,r.isUndefined)(s)&&((0,n.warn)(l.toSingleLine`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
63
63
  when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,o,s,i,!1),a=!0),a}shouldAllowMoving(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,t){let o=this.dataManager.getRowParent(e?t-1:t);return null==o&&(o=this.dataManager.getRowParent(t-1)),o}shiftCollapsibleParentsLocations(e,t,o){o||(Math.max(...e)<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}moveRows(e,t,o){const s=t===this.dataManager.getRowIndex(o)+this.dataManager.countChildren(o)+1;this.hot.batchRender(()=>{e.forEach(e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,s)})})}moveCellsMeta(e,t){const o=[],s=Math.max(...e)<t;e.forEach(e=>{o.push(this.hot.getCellMetaAtRow(e))}),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(s?o.length:0),0,...o)}selectCells(e,t){const o=e.length;let s=0,i=0;if(this.movedToCollapsed){let r=null;r=e[o-1]<t?this.dataManager.translateTrimmedRow(t-o):this.dataManager.translateTrimmedRow(t);const n=this.dataManager.getRowParent(null===r?this.hot.countSourceRows()-1:r-1),l=this.dataManager.getRowIndex(n);s=this.dataManager.untranslateTrimmedRow(l),i=s}else e[o-1]<t?(i=t-1,s=i-o+1):(s=t,i=s+o-1);this.hot.selectCells([[s,0,i,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}}},58741:(e,t,o)=>{"use strict";t.__esModule=!0,t.addClass=c,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=l,t.closestDown=function(e,t,o){const s=[];let i=e;for(;i&&(i=l(i,t,o),i&&(!o||o.contains(i)));)s.push(i),i=i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:i.parentNode;const r=s.length;return r?s[r-1]:null},t.empty=g,t.fastInnerHTML=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];f.test(t)?e.innerHTML=o?(0,s.sanitize)(t):t:p(e,t)},t.fastInnerText=p,t.findFirstParentWithClass=function(e,t){const o={element:void 0,classNames:[]};let s=e;for(;null!==s&&s!==e.ownerDocument.documentElement&&!o.element;){if("string"==typeof t&&s.classList.contains(t))o.element=s,o.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(s.classList).filter(e=>t.test(e));e.length&&(o.element=s,o.classNames.push(...e))}s=s.parentElement}return o},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFractionalScalingCompensation=v,t.getFrameElement=n,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,s=null,i=e;for(;null!==i;){if(o===t){s=i;break}i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:(o+=1,i=i.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 w(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(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 i=e.parentNode;for(;i&&i.style&&t.body!==i;){let{overflow:e,overflowX:t,overflowY:r}=i.style;if([e,t,r].includes("scroll"))return i;if(({overflow:e,overflowX:t,overflowY:r}=o.getComputedStyle(i)),s.includes(e)||s.includes(t)||s.includes(r))return i;if(i.clientHeight<=i.scrollHeight+1&&(s.includes(r)||s.includes(e)))return i;if(i.clientWidth<=i.scrollWidth+1&&(s.includes(t)||s.includes(e)))return i;i=i.parentNode}return o},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===C&&(C=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");(0,r.isSafari)()&&!(0,r.isMobileBrowser)()&&o.classList.add("htScrollbarSafariTest");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 i=t.offsetWidth;s===i&&(i=o.clientWidth);return(e.body||e.documentElement).removeChild(o),s-i+v(e)}(e));return C},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 i=o.getComputedStyle(e);if(""!==i[t]&&void 0!==i[t])return i[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=o.getComputedStyle(s),t=["scroll","hidden","auto"],i=e.getPropertyValue("overflow"),r=e.getPropertyValue("overflow-y"),n=e.getPropertyValue("overflow-x");if(t.includes(i)||t.includes(r)||t.includes(n))return s;s=s.parentNode}return o},t.getWindowScrollLeft=w,t.getWindowScrollTop=m,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){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let o=e;for(;o.parentNode;){if("0px"===o.style.height||"0"===o.style.height)return"hidden"===t.getComputedStyle(o).overflow;o=o.parentNode}return!1},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.isHTMLElement=function(e){var t;const o=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(o&&null!==o&&e instanceof o)},t.isInput=y,t.isInternalElement=function(e,t){const o=e.closest(".handsontable");return!!o&&(o.parentNode===t||o===t)},t.isOutsideInput=E,t.isVisible=function e(t){const o=t.ownerDocument.documentElement,s=t.ownerDocument.defaultView;let i=t;for(;i!==o;){if(null===i)return!1;if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i.host){if(i.host.impl)return e(i.host.impl);if(i.host)return e(i.host);throw new Error("Lost in Web Components world")}return!1}if("none"===s.getComputedStyle(i).display)return!1;i=i.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=S,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 i,r,n,l=e;i=l.offsetLeft,r=l.offsetTop,n=l;for(;(l=l.offsetParent)&&l!==t.body&&"offsetLeft"in l;)i+=l.offsetLeft,r+=l.offsetTop,n=l;n&&"fixed"===n.style.position&&(i+=o.pageXOffset||s.scrollLeft,r+=o.pageYOffset||s.scrollTop);return{left:i,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.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:o,regexes:s}=h(t,!0);o.forEach(t=>{""!==t&&e.removeAttribute(t)}),s.forEach(t=>{e.getAttributeNames().forEach(o=>{t.test(o)&&e.removeAttribute(o)})})},t.removeClass=u,t.removeContentEditableFromElementAndDeselect=R,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.runWithSelectedContendEditableElement=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];S(e,o),t(),R(e,o)},t.selectElementIfAllowed=function(e){E(e.ownerDocument.activeElement)||e.select()},t.setAttribute=d,t.setCaretPosition=function(e,t,o){void 0===o&&(o=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(s){const i=e.parentNode,r=i.style.display;i.style.display="block",e.setSelectionRange(t,o),i.style.display=r}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(88443),o(85639),o(73741),o(7307),o(69326);var s=o(78449),i=o(6532),r=o(8874);function n(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function l(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:i}=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:n}=r;r=n&&e===i?n:r.parentNode}return null}function a(e){return e&&e.length?e.filter(e=>!!e):[]}function h(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const o=[],s=[];return s.push(...e.filter(e=>{const s=e instanceof RegExp;return s&&t&&o.push(e),!s})),t?{regexFree:s,regexes:o}:s}function c(e,t){"string"==typeof t&&(t=t.split(" ")),(t=a(t)).length>0&&e.classList.add(...t)}function u(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:o,regexes:s}=h(t,!0);o=a(o),o.length>0&&e.classList.remove(...o),s.forEach(t=>{e.classList.forEach(o=>{t.test(o)&&e.classList.remove(o)})})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,o]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function g(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const f=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function p(e,t){const o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(g(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function w(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let C;function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,r.isWindowsOS)()?Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2:0}function y(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function E(e){return y(e)&&!1===e.hasAttribute("data-hot-input")}function S(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=e.ownerDocument,r=s.createRange(),n=s.defaultView.getSelection();d(e,"contenteditable",!0),o&&d(e,...(0,i.A11Y_HIDDEN)()),t&&c(e,"invisibleSelection"),r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r)}function R(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),o.removeAllRanges(),t&&u(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},58748:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},58972:(e,t,o)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,o,s,d){const g=e=>a.includes(e),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[];return e.altKey&&o.push("alt"),t&&(e.ctrlKey||e.metaKey)?o.push("control/meta"):(e.ctrlKey&&o.push("control"),e.metaKey&&o.push("meta")),e.shiftKey&&o.push("shift"),o},p=e=>{if(!1===t(e))return;if(!1===o(e)||229===e.keyCode||"string"!=typeof e.key||(0,r.isImmediatePropagationStopped)(e))return;const n=(0,i.normalizeEventKey)(e);let a=[];g(n)||(a=f(e));const h=[n].concat(a);!d(e,h)&&((0,l.isMacOS)()&&a.includes("meta")||!(0,l.isMacOS)()&&a.includes("control"))&&d(e,[n].concat(f(e,!0))),s(e)},m=e=>{if("string"==typeof e.key){const t=(0,i.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,i.normalizeEventKey)(e);g(t)&&h.release(t)}},C=()=>{h.releaseAll()};return{mount:()=>{let t=e;for(u+=1;t;)1===u&&(t.document.documentElement.addEventListener("keydown",m),c.push({event:"keydown",listener:m}),t.document.documentElement.addEventListener("keyup",w),c.push({event:"keyup",listener:w})),t.document.documentElement.addEventListener("keydown",p),t.document.documentElement.addEventListener("blur",C),t=(0,n.getParentWindow)(t)},unmount:()=>{let t=e;for(u-=1;t;){if(0===u){for(let e=0;e<c.length;e++){const{event:o,listener:s}=c[e];t.document.documentElement.removeEventListener(o,s)}c.length=0}t.document.documentElement.removeEventListener("keydown",p),t.document.documentElement.removeEventListener("blur",C),t=(0,n.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},o(85639);var s=o(71389),i=o(47077),r=o(66497),n=o(58741),l=o(8874);const a=["meta","alt","shift","control"],h=(0,s.createKeysObserver)(),c=[];let u=0},58978:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307),o(69326),o(89663);var i=s(o(53726)),r=o(76549),n=o(46092),l=s(o(96681)),a=o(12945),h=o(89255),c=o(79501),u=s(o(57724)),d=o(78449),g=o(33674),f=o(43393);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}a.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const y=t.PLUGIN_KEY="autoColumnSize",E=t.PLUGIN_PRIORITY=10;var S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends r.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return E}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,o;super(e),m(t=this,o=_),o.add(t),(0,i.default)(this,"ghostTable",new l.default(this.hot)),(0,i.default)(this,"samplesGenerator",new u.default((e,t)=>{const o=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(s))return!1;const i=this.hot.getCellMeta(e,t);let r="";i.spanned||(r=this.hot.getDataAtCell(e,t));let n="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(n=this.hot.runHooks("modifyAutoColumnSizeSeed",n,i,r)),{value:r,bundleSeed:n}})),(0,i.default)(this,"inProgress",!1),(0,i.default)(this,"measuredColumns",0),(0,i.default)(this,"columnWidthsMap",new f.PhysicalIndexToValueMap),p(this,S,!1),p(this,R,[]),p(this,b,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,x).call(this,e,t,o))}isEnabled(){return!1!==this.hot.getSettings()[y]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,A).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,H).call(e,...o)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,k).call(e,...o)}),this.addHook("beforeRender",()=>v(_,this,N).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>v(_,this,P).call(this)),super.enablePlugin()}updatePlugin(){C(b,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,x).call(this,e,t,o))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,o)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s="number"==typeof e?{from:e,to:e}:e,i="number"==typeof t?{from:t,to:t}:t;(0,c.rangeEach)(s.from,s.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(o||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&v(_,this,I).call(this,e,i)}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.measuredColumns=s.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const s=this.hot.countCols()-1;let i=null;this.inProgress=!0;const r=()=>{if(!this.hot)return(0,n.cancelAnimationFrame)(i),void(this.inProgress=!1);this.calculateColumnsWidth({from:o,to:Math.min(o+T.CALCULATION_STEP,s)},e,t),o=o+T.CALCULATION_STEP+1,o<s?i=(0,n.requestAnimationFrame)(r):((0,n.cancelAnimationFrame)(i),this.inProgress=!1,this.hot.view.adjustElementsSize())},l=this.getSyncCalculationLimit();l>=0&&(this.calculateColumnsWidth({from:0,to:l},e,t),o=l+1),o<s?r():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[y];let t=T.SYNC_CALCULATION_LIMIT;const o=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,c.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getColumnWidth(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=t;return void 0===s&&(s=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),o&&"number"==typeof s&&(s=Math.max(s,g.DEFAULT_COLUMN_WIDTH))),s}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,o)=>{const s=w(R,this).length;return(s-1<o||w(R,this)[o]!==t)&&e.push(this.hot.toVisualColumn(o)),s-1<o?w(R,this).push(t):w(R,this)[o]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function M(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const o=this.hot.toPhysicalColumn(e);null!==o&&(this.hot._getColWidthFromSettings(o)||v(_,this,I).call(this,e,t))}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.ghostTable.clean())}function I(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function O(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const o=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(o,t)})},!0)}function N(){this.calculateVisibleColumnsWidth(),this.inProgress||(v(_,this,M).call(this,w(b,this)),C(b,this,[]))}function A(e,t){t||this.recalculateAllColumnsWidth()}function H(e){const t=e.reduce((e,t)=>{let[,o]=t;const s=this.hot.propToCol(o);return Number.isInteger(s)&&-1===e.indexOf(s)&&e.push(s),e},[]);w(b,this).push(...t)}function x(e,t,o){let s=e;return o&&(this.calculateColumnsWidth(t,void 0,!0),s=this.getColumnWidth(t,void 0,!1)),s}function P(){C(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),C(S,this,!0)}function k(e){if(!w(S,this))return;const t=e.reduce((e,t)=>{var o;const s=null===(o=t.address)||void 0===o?void 0:o.col;if(Number.isInteger(s)){const t=this.hot.toVisualColumn(s);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(b,this).push(...t)}t.AutoColumnSize=T},59165:(e,t,o)=>{"use strict";var s=o(64976),i=o(77618),r=o(74218),n=o(89626);e.exports=function(e,t){t&&"string"==typeof e||i(e);var o=n(e);return r(i(void 0!==o?s(o,e):e))}},59421:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=l,o(73741),o(82141);var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(32201);const r=t.OPERATION_ID="disjunction",n=t.SHORT_NAME_FOR_COMPONENT=s.FILTERS_LABELS_DISJUNCTION;function l(e,t){return e.some(e=>e.func(t))}(0,i.registerOperation)(r,n,l)},59432:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t){(0,i.default)(this,"dataAccessObject",void 0),(0,i.default)(this,"wtSettings",void 0),(0,i.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();const o=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==o&&(t=t?Math.max(t,o):o),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const o=e.getSetting("rowHeaders").length,s=e.getSetting("defaultColumnWidth");for(let e=0;e<o;e++){let o=Array.isArray(t)?t[e]:t;o=null==o?s:o,this.headerWidths.set(e,o)}}}}},59454:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(72848);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CustomBorders=s.CustomBorders},59544:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeLast().highlight.row,o.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},59776:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback(o,s){const r=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(s,t,r)}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(19375)},59834:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=l;var s=o(93692),i=o(58741),r=o(79501);const n=t.RENDERER_TYPE="password";function l(e,t,o,n,l,a,h){s.textRenderer.apply(this,[e,t,o,n,l,a,h]);const c=h.hashLength||t.innerHTML.length,u=h.hashSymbol||"*";let d="";(0,r.rangeEach)(c-1,()=>{d+=u}),(0,i.fastInnerHTML)(t,d)}l.RENDERER_TYPE=n},59961:(e,t,o)=>{"use strict";var s=o(69243),i=o(60370);e.exports=Object.keys||function(e){return s(e,i)}},60160:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},60370:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},60423:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},60591:(e,t,o)=>{"use strict";var s=o(76277),i=o(10028),r=o(13150),n=o(64976),l=o(25225),a=o(82314),h=o(6996),c=o(29160),u=o(67817),d=o(96102),g=o(77976),f=String,p=i("JSON","stringify"),m=l(/./.exec),w=l("".charAt),C=l("".charCodeAt),v=l("".replace),y=l(1.1.toString),E=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,b=!g||a(function(){var e=i("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))}),_=a(function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")}),T=function(e,t){var o=u(arguments),s=d(t);if(h(s)||void 0!==e&&!c(e))return o[1]=function(e,t){if(h(s)&&(t=n(s,this,f(e),t)),!c(t))return t},r(p,null,o)},M=function(e,t,o){var s=w(o,t-1),i=w(o,t+1);return m(S,e)&&!m(R,i)||m(R,e)&&!m(S,s)?"\\u"+y(C(e,0),16):e};p&&s({target:"JSON",stat:!0,arity:3,forced:b||_},{stringify:function(e,t,o){var s=u(arguments),i=r(b?T:p,null,s);return _&&"string"==typeof i?v(i,E,M):i}})},60926:(e,t,o)=>{"use strict";var s=o(88005),i=o(35172),r=o(53385),n=function(e){return i.slice(0,e.length)===e};e.exports=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST"},60954:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(73741),o(69326);var s=o(33674),i=o(58741),r=o(19183),n=o(43798);function l(e,t,o){a(e,t),t.set(e,o)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(){const{view:e,stylesHandler:t}=h(d,this);if(e.isVerticallyScrollableByWindow())return!1;const o=e.getViewportHeight(),s=h(d,this).countRows(),i=t.getDefaultRowHeight();let r=0,n=!1;for(let e=0;e<s;e++){var l;if(r+=(null!==(l=h(d,this).getRowHeight(e))&&void 0!==l?l:i)+(0===e?1:0),r>o){n=!0;break}}return n}function C(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:s.DEFAULT_COLUMN_WIDTH}function v(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,o;a(t=this,o=m),o.add(t),l(this,d,void 0),l(this,g,void 0),l(this,f,new Map([["all",new r.StretchAllStrategy(u(m,this,v).bind(this))],["last",new n.StretchLastStrategy(u(m,this,v).bind(this))]])),l(this,p,"none"),c(d,this,e),c(g,this,h(d,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){c(p,this,h(f,this).has(e)?e:"none")}refreshStretching(){"none"!==h(p,this)?h(d,this).batchExecution(()=>{h(g,this).clear();const e=h(f,this).get(h(p,this));let t=h(d,this).view.getViewportWidth();u(m,this,w).call(this)&&(t-=(0,i.getScrollbarWidth)(h(d,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<h(d,this).countCols();t++)h(d,this).columnIndexMapper.isHidden(h(d,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,u(m,this,C).call(this,t));e.calculate(),e.getWidths().forEach(e=>{let[t,o]=e;h(g,this).setValueAtIndex(h(d,this).toPhysicalColumn(t),o)})},!0):h(g,this).clear()}getStretchedWidth(e){return h(g,this).getValueAtIndex(h(d,this).toPhysicalColumn(e))}}},61072:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(16402),i=o(89255),r=o(13351),n=o(58741),l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),a=o(72365),h=o(55994),c=o(6532);function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakSet;class S extends h.BaseUI{static get DEFAULTS(){return(0,i.clone)({className:"htUISelect",wrapIt:!1,tabIndex:-1})}constructor(e,t){var o,s;super(e,(0,i.extend)(S.DEFAULTS,t)),d(o=this,s=E),s.add(o),u(this,m,null),u(this,w,[]),u(this,C,void 0),u(this,v,void 0),u(this,y,void 0),this.registerHooks()}getMenu(){return f(m,this)}registerHooks(){this.addLocalHook("click",()=>p(E,this,_).call(this))}setItems(e){g(w,this,this.translateNames(e)),f(m,this)&&f(m,this).setMenuItems(f(w,this))}translateNames(e){return(0,r.arrayEach)(e,e=>{e.name=this.translateIfPossible(e.name)}),e}build(){super.build(),g(m,this,new s.Menu(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer})),f(m,this).setMenuItems(f(w,this));const e=new h.BaseUI(this.hot,{className:"htUISelectCaption"}),t=new h.BaseUI(this.hot,{className:"htUISelectDropdown"});g(C,this,e),g(v,this,e.element),g(y,this,t),this.hot.getSettings().ariaTags&&((0,n.setAttribute)(t.element,[(0,c.A11Y_HIDDEN)()]),(0,n.setAttribute)(this._element,[(0,c.A11Y_LISTBOX)()])),(0,r.arrayEach)([e,t],e=>this._element.appendChild(e.element)),f(m,this).addLocalHook("select",e=>p(E,this,R).call(this,e)),f(m,this).addLocalHook("afterClose",()=>p(E,this,b).call(this)),this.update()}update(){if(!this.isBuilt())return;let e;e=this.options.value?this.options.value.name:f(m,this).hot.getTranslatedPhrase(l.FILTERS_CONDITIONS_NONE),f(v,this).textContent=e,super.update()}openOptions(){const e=this.element.getBoundingClientRect();f(m,this)&&(f(m,this).open(),f(m,this).setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}),f(m,this).getNavigator().toFirstItem(),f(m,this).getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{this.closeOptions(),this.runLocalHooks("tabKeydown",e)}},{keys:[["Control/Meta","A"]],callback:()=>!1}]))}closeOptions(){f(m,this)&&f(m,this).close()}focus(){this.isBuilt()&&this.element.focus()}destroy(){f(m,this)&&(f(m,this).destroy(),g(m,this,null)),f(C,this)&&f(C,this).destroy(),f(y,this)&&f(y,this).destroy(),super.destroy()}}function R(e){e.name!==a.SEPARATOR&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}function b(){this.runLocalHooks("afterClose")}function _(){this.openOptions()}t.SelectUI=S},61145:(e,t,o)=>{"use strict";var s={};s[o(92754)("toStringTag")]="z",e.exports="[object z]"===String(s)},61533:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499).add,r=o(90911),n=o(18622),l=o(78016);e.exports=function(e){var t=s(this),o=n(e).getIterator(),a=r(t);return l(o,function(e){i(a,e)}),a}},61854:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89255);const i={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,s.defineGetter)(i,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=i},61958:(e,t,o)=>{"use strict";var s=o(88005),i=Object.defineProperty;e.exports=function(e,t){try{i(s,e,{value:t,configurable:!0,writable:!0})}catch(o){s[e]=t}return t}},62257:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(82498)),r=s(o(58553)),n=o(40457),l=s(o(21529)),a=s(o(2411)),h=s(o(30858)),c=s(o(36184)),u=o(14156),d=o(89255),g=o(58741);class f extends c.default{constructor(e,t){super(e,new l.default(t));const o=this.wtSettings.getSetting("facade",this);this.wtTable=new a.default(this.getTableDao(),o,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new u.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new i.default(o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new r.default(this,o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(o,s)=>{this.wtSettings.getSetting(s).length&&t.push(o),e.push(o)}),(0,g.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,g.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!n.CLONE_TYPES.includes(e))return null;const o=e.replace(/_([a-z])/g,e=>e[1].toUpperCase());return null!==(t=this.wtOverlays[`${o}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}t.default=f},62506:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=o(66497),l=o(58741);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends r.BasePlugin{constructor(){super(...arguments),a(this,d),(0,i.default)(this,"boundaries",null),(0,i.default)(this,"callback",null),(0,i.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",e=>h(d,this,f).call(this,e)),this.addHook("afterOnCellCornerMouseDown",e=>h(d,this,f).call(this,e)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,s=0;t<this.boundaries.top?s=t-this.boundaries.top:t>this.boundaries.bottom&&(s=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,s)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mouseup",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mousemove",e=>this.onMouseMove(e)),t=(0,l.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,n.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback((e,o)=>{var s,i;const r=null!==(s=t.scrollLeft)&&void 0!==s?s:t.scrollX,n=null!==(i=t.scrollTop)&&void 0!==i?i:t.scrollY;t.scroll(r+50*Math.sign(e),n+20*Math.sign(o))}),this.listen()}t.DragToScroll=g},62528:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(79501),n=o(89255),l=o(13351);t.default=class{constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"data",null),(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"parentReference",new WeakMap),(0,i.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,r.rangeEach)(0,this.data.length-1,e=>{this.cacheNode(this.data[e],0,null)})}cacheNode(e,t,o){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:o,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,l.arrayEach)(e.__children,o=>{this.cacheNode(o,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,o,s){let i=!1,r=t;if(isNaN(r)&&r.end)return r;let n=e;return n||(n={__children:this.data},i=!0,r-=1),null!=o&&r===o?{result:n,end:!0}:null!=s&&n===s?{result:r,end:!0}:(r+=1,n.__children&&(0,l.arrayEach)(n.__children,e=>{if(this.parentReference.set(e,i?null:n),r=this.readTreeNodes(e,r,o,s),isNaN(r)&&r.end)return!1}),r)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,n.objectEach)(this.data[0],(t,o)=>{e[o]=null}),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const o=this.getRowParent(e);return null==o?this.data.indexOf(t):o.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&o.__children?((0,l.arrayEach)(o.__children,e=>{t+=1,e.__children&&(t+=this.countChildren(e))}),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var o;return(null===(o=e.__children)||void 0===o?void 0:o[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&!!o.__children&&0!==(null===(t=o.__children)||void 0===t?void 0:t.length)}addChild(e,t){let o=t;this.hot.runHooks("beforeAddChild",e,o);let s=null;e&&(s=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",s+this.countChildren(e)+1,1);let i=e;e||(i=this.mockParent()),i.__children||(i.__children=[]),o||(o=this.mockNode()),i.__children.push(o),this.rewriteCache();const r=this.getRowIndex(o);this.hot.rowIndexMapper.insertIndexes(r,1),this.hot.runHooks("afterCreateRow",r,1),this.hot.runHooks("afterAddChild",e,o)}addChildAtIndex(e,t,o){let s,i=o;if(i||(i=this.mockNode()),this.hot.runHooks("beforeAddChild",e,i,t),e){const o=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",o,1),e.__children.splice(t,null,i),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(o,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",o,1),s=o}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),s=this.getRowIndex(this.data[t]);i=this.getDataObject(s),this.hot.runHooks("afterAddChild",e,i,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const o=this.translateTrimmedRow(e),s=this.getRowParent(o),i=this.getRowIndexWithinParent(o);switch(t){case"below":this.addChildAtIndex(s,i+1,null);break;case"above":this.addChildAtIndex(s,i,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=null;const s=[];Array.isArray(e)?((0,r.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);s.push(this.getDataObject(t))}),(0,r.rangeEach)(0,s.length-2,e=>{this.detachFromParent(s[e],!1)}),o=s[s.length-1]):o=e;const i=this.getRowIndex(o),n=this.countChildren(o),l=this.getRowIndexWithinParent(o),a=this.getRowParent(o),h=this.getRowParent(a),c=this.getRowIndex(h);let u=null;if(this.hot.runHooks("beforeDetachChild",a,o),null!=l){const e=Array.from(new Array(i+n+1).keys()).splice(-1*(n+1));if(this.hot.runHooks("beforeRemoveRow",i,n+1,e,this.plugin.pluginName),a.__children.splice(l,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,n+1,e,this.plugin.pluginName),h){u=c+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,n+1,this.plugin.pluginName),h.__children.push(o)}else u=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",u-2,n+1,this.plugin.pluginName),this.data.push(o)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",u-2,n+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",a,o,this.getRowIndex(o)),t&&this.hot.render()}filterData(e,t,o){const s=[];(0,l.arrayEach)(o,e=>{s.push(this.getDataObject(e))}),(0,l.arrayEach)(s,e=>{const t=this.getRowIndexWithinParent(e),o=this.getRowParent(e);null===o?this.data.splice(t,1):o.__children.splice(t,1)}),this.rewriteCache()}spliceData(e,t,o){const s=this.getDataObject(e-1);let i=null,r=e;s&&s.__children&&0===s.__children.length?(i=s,r=0):e<this.countAllRows()&&(i=this.getRowParent(e),r=this.getRowIndexWithinParent(e)),i?o?i.__children.splice(r,t,...o):i.__children.splice(r,t):o?this.data.splice(r,t,...o):this.data.splice(r,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,o=t;do{o=this.getRowParent(o),null!==o&&(t=o)}while(null!==o);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,o,s){const i=t===this.hot.countRows(),r=this.getRowParent(e),n=this.getRowIndexWithinParent(e),l=r.__children.slice(n,n+1),a=e>t;let h=i?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const c=i||o||s?h.__children.length:this.getRowIndexWithinParent(t),u=r===h;h.__children.splice(c,0,l[0]),r.__children.splice(n+(a&&u?1:0),1),this.syncRowWithRawSource(r),u||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},62672:(e,t,o)=>{"use strict";var s=o(97210),i=o(29160);e.exports=function(e){var t=s(e,"string");return i(t)?t:t+""}},62705:(e,t,o)=>{"use strict";var s=o(76277),i=o(93595),r=o(82314);s({target:"Set",proto:!0,real:!0,forced:!o(93295)("difference",function(e){return 0===e.size})||r(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var o=e++>1;return t.has(1)&&t.clear(),{done:o,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:i})},62806:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(89255),n=o(78449);class l{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){(0,i.default)(this,"dataProvider",void 0),(0,i.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,r.clone)(this.constructor.DEFAULT_OPTIONS);const o=new Date;return t=(0,r.extend)((0,r.clone)(l.DEFAULT_OPTIONS),t),t=(0,r.extend)(t,e),t.filename=(0,n.substitute)(t.filename,{YYYY:o.getFullYear(),MM:`${o.getMonth()+1}`.padStart(2,"0"),DD:`${o.getDate()}`.padStart(2,"0")}),t}}t.default=l},63007:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(37334),i=o(66497),r=o(9519),n=o(58972),l=o(5455);t.createShortcutManager=e=>{let{ownerWindow:t,handleEvent:o,beforeKeyDown:a,afterKeyDown:h}=e;const c=(0,s.createUniqueMap)({errorIdExists:e=>`The "${e}" context name is already registered.`});let u="grid";const d=()=>u,g=e=>c.getItem(e);let f=!1;const p=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d();const s=(0,r.isContextObject)(o)?o:g(o);let n=!1;if(!s.hasShortcut(t))return n;const l=s.getShortcuts(t);for(let o=0;o<l.length;o++){const{callback:s,runOnlyIf:r,preventDefault:a,stopPropagation:h,captureCtrl:c,forwardToContext:u}=l[o];if(!0===r(e)){if(f=c,n=!1===s(e,t),f=!1,a&&e.preventDefault(),h&&((0,i.stopImmediatePropagation)(e),e.stopPropagation()),n)break;u&&p(e,t,u)}}return n},m=(0,n.useRecorder)(t,o,a,h,p);return m.mount(),{addContext:e=>{const t=(0,r.createContext)(e);return c.addItem(e,t),t},getActiveContextName:d,getContext:g,setActiveContextName:e=>{if(!c.hasItem(e))throw new Error(l.toSingleLine`You've tried to activate the "${e}" shortcut context\x20
64
64
  that does not exist. Before activation, register the context using the "addContext" method.`);u=e},isCtrlPressed:()=>!f&&(m.isPressed("control")||m.isPressed("meta")),releasePressedKeys:()=>m.releasePressedKeys(),destroy:()=>m.unmount()}}},63196:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(79501),n=o(78449);const l="px";t.default=class{constructor(e){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"_element",null),(0,i.default)(this,"state",0),(0,i.default)(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,r.isNumeric)(e)&&(this._element.style.top=e+l),(0,r.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+l)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,r.isNumeric)(e)&&(this._element.style.width=e+l),(0,r.isNumeric)(t)&&(this._element.style.height=t+l)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,r.isNumeric)(e)&&(this._element.style.marginTop=e+l),(0,r.isNumeric)(t)&&(this._element.style[`margin${(0,n.toUpperCaseFirst)(this.inlineProperty)}`]=t+l)}getOffset(){const e=this._element.style,t=`margin${(0,n.toUpperCaseFirst)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}},63377:(e,t,o)=>{"use strict";function s(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t){return e.get(l(e,t))}function n(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}t.__esModule=!0,o(88443);var a=new WeakMap,h=new WeakMap,c=new WeakSet;function u(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const s=l(c,this,d).call(this,r(a,this),e.row,t);if(null===s)return null;const i=l(c,this,d).call(this,r(h,this),e.col,o);return null===i?null:e.clone().assign({row:s,col:i})}function d(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:o}=e;var r,l;i(r=this,l=c),l.add(r),s(this,a,void 0),s(this,h,void 0),n(a,this,t),n(h,this,o)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,o="W-E"===e.getHorizontalDirection()?1:-1,s=l(c,this,u).call(this,e.from,t,o);if(null===s)return null;const i=l(c,this,u).call(this,e.to,-t,-o);if(null===i)return null;const r=e.clone();return r.from=s,r.to=i,r.includes(e.highlight)||(r.highlight=s),r}}},63578:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(58741),n=s(o(40102)),l=o(37837),a=o(17136);class h extends l.Overlay{constructor(e,t,o,s){super(e,t,a.CLONE_BOTTOM,o,s),(0,i.default)(this,"cachedFixedRowsBottom",-1),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const{rootWindow:e}=this.domBindings,t=this.clone.wtTable.holder.parentNode;t.style.top="";let o=0;const s=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||s&&"vertical"===s?(o=this.getScrollPosition(),this.repositionOverlay()):(o=this.getOverlayOffset(),t.style.bottom=`${o}px`);const i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o}=this.domBindings,s=this.clone.wtTable.holder.parentNode;let i=0;t.hasVerticalScroll()||(i+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(i+=(0,r.getScrollbarWidth)(o)),s.style.bottom=`${i}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings,o=this.mainTableScrollableElement;let s=!1;if(o===t&&e!==t.scrollY){const e=t.scrollY;t.scrollTo((0,r.getWindowScrollLeft)(t),top),s=e!==t.scrollY}else if(e!==o.scrollTop){const t=o.scrollTop;o.scrollTop=e,s=t!==o.scrollTop}return s}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:o,wtSettings:s}=this.wot,i=s.getSetting("stylesHandler").getDefaultRowHeight();let r=e,n=0;for(;r<t;){const e=o.getRowHeight(r);n+=void 0===e?i:e,r+=1}return n}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:s}=this.domBindings,i=this.clone.wtTable.holder.parentNode.style,n=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==s||"horizontal"===n){let s=t.getWorkspaceWidth();t.hasVerticalScroll()&&(s-=(0,r.getScrollbarWidth)(o)),s=Math.min(s,e.wtRootElement.scrollWidth),i.width=`${s}px`}else i.width="";this.clone.wtTable.holder.style.width=i.width;let l=(0,r.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(l=0),i.height=`${l}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){let o=this.getTableParentOffset();const s=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let i=0;t&&s.offsetHeight!==s.clientHeight&&(i=(0,r.getScrollbarWidth)(this.domBindings.rootDocument)),t?(o+=this.sumCellSizes(0,e+1),o-=this.wot.wtViewport.getViewportHeight(),o+=1):o+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),o+=i,this.setScrollPosition(o)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,r.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight(),t=e-this.clone.wtTable.getTotalHeight(),s=this.domBindings.rootDocument.documentElement.clientHeight;o=Math.max(this.getTableParentOffset()-this.getScrollPosition()-s+e,0),o>t&&(o=0)}return o}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),o=this.cachedFixedRowsBottom!==t,s=this.wtSettings.getSetting("columnHeaders");let i=!1;if((o||0===t)&&s.length>0){const t=this.wot.wtTable.holder.parentNode,o=(0,r.hasClass)(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,r.addClass)(t,"innerBorderBottom"),i=!o):((0,r.removeClass)(t,"innerBorderBottom"),i=o)}return i}}t.BottomOverlay=h},63627:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(74028),n=o(85219),l=o(29225),a=o(72365),h=o(82419),c=s(o(80277)),u=o(13351),d=o(8874),g=o(58741),f=o(66497),p=o(30848),m=o(97213),w=o(89255),C=s(o(28494)),v=o(29643),y=o(6532);function E(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function S(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var _=new WeakMap,T=new WeakMap,M=new WeakMap;class I{get tableBorderWidth(){return void 0===R(M,this)&&this.hotMenu&&S(M,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(M,this)}constructor(e,t){var o=this;(0,i.default)(this,"hot",void 0),(0,i.default)(this,"options",void 0),(0,i.default)(this,"eventManager",new c.default(this)),(0,i.default)(this,"container",void 0),(0,i.default)(this,"positioner",void 0),(0,i.default)(this,"hotMenu",null),(0,i.default)(this,"hotSubMenus",{}),(0,i.default)(this,"parentMenu",void 0),(0,i.default)(this,"menuItems",null),(0,i.default)(this,"origOutsideClickDeselects",null),E(this,_,void 0),E(this,T,void 0),E(this,M,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new r.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,g.removeClass)(this.options.container,/ht-theme-.*/g),(0,g.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(T,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,p.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let o=!1,s=(0,u.arrayFilter)(this.menuItems,e=>(e.key===a.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(s.length<1&&!o)s.push((0,a.predefinedItems)()[a.NO_ITEMS]);else if(0===s.length)return;s=(0,h.filterSeparators)(s,a.SEPARATOR);let i=!1;const r={data:s,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,v.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?R(_,this).setCurrentPage(t.row):R(_,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,o)=>{this.isAllSubMenusClosed()?e(o.row):this.openSubMenu(o.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&i&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,s,i)=>{this.hotMenu.view.isMouseDown()&&(i.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(i=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!i||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,r),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),S(_,this,(0,n.createMenuNavigator)(this.hotMenu)),S(T,this,(0,l.createKeyboardShortcutsCtrl)(this)),R(T,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const o=this.hotMenu.getSourceDataAtRow(e),s=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return s.setMenuItems(o.submenu.items),s.open(),s.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=s,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),s}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const s=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(s,[(0,y.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,u.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const o=this.hot.getSelectedRange(),s=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,s,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,s,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,o=e.hider.style,s=e.holder.style,i=parseInt(o.width,10),r=(0,u.arrayReduce)(t,(e,t,o)=>{const s=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===a.SEPARATOR?1:s)},0);this.hotMenu.stylesHandler.isClassicTheme()?(s.width=`${i+3}px`,s.height=`${r+3}px`):(s.width=`${i}px`,s.height=`${r}px`),o.height=s.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,s=e;return s&&((0,p.isFunction)(s)&&(s=s.call(this.hot),s=null===s||(0,m.isUndefined)(s)?"":s.toString()),s=s.replace(/[^A-Za-z0-9]/g,"_"),s=`${this.options.className}Sub_${s}`,o=t.querySelector(`.${this.options.className}.${s}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),s&&(0,g.addClass)(o,s),this.options.container.appendChild(o)),o}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,y.A11Y_MENU)(),(0,y.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=I,(0,w.mixin)(I,C.default)},63667:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(25225),n=o(77181),l=o(6996),a=o(19895),h=o(2737),c=o(13794),u=o(36697),d=o(45361),g=o(64577),f=o(92754),p=o(8302),m=f("replace"),w=TypeError,C=r("".indexOf),v=r("".replace),y=r("".slice),E=Math.max;s({target:"String",proto:!0},{replaceAll:function(e,t){var o,s,r,f,S,R,b,_,T,M,I=n(this),O=0,N="";if(a(e)){if((o=h(e))&&(s=c(n(d(e))),!~C(s,"g")))throw new w("`.replaceAll` does not allow non-global regexes");if(r=u(e,m))return i(r,e,I,t);if(p&&o)return v(c(I),e,t)}for(f=c(I),S=c(e),(R=l(t))||(t=c(t)),b=S.length,_=E(1,b),T=C(f,S);-1!==T;)M=R?c(t(S,T,f)):g(S,f,T,[],void 0,t),N+=y(f,O,T)+M,O=T+b,T=T+_>f.length?-1:C(f,S,T+_);return O<f.length&&(N+=y(f,O)),N}})},63810:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var s=o(85296);const i=t.CONDITION_NAME="false";function r(){return!1}(0,s.registerCondition)(i,r,{name:"False"})},63884:(e,t,o)=>{"use strict";var s=o(64976),i=o(77618),r=o(36697);e.exports=function(e,t,o){var n,l;i(e);try{if(!(n=r(e,"return"))){if("throw"===t)throw o;return o}n=s(n,e)}catch(e){l=!0,n=e}if("throw"===t)throw o;if(l)throw n;return i(n),o}},63966:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(62257)),r=s(o(36184));class n{constructor(e){e instanceof r.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new n(e);return()=>t},this._wot=new i.default(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,o){return this._wot.createCellRange(e,t,o)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,o){return this._wot.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,o,s,i){return this._wot.wtSettings.getSetting(e,t,o,s,i)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=n},64209:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],o=[];return(0,s.arrayEach)(e,e=>{const s=Math.min(e.startRow,e.endRow),r=Math.max(e.startRow,e.endRow);(0,i.rangeEach)(s,r,e=>{-1===t.indexOf(e)&&t.push(e)});const n=Math.min(e.startCol,e.endCol),l=Math.max(e.startCol,e.endCol);(0,i.rangeEach)(n,l,e=>{-1===o.indexOf(e)&&o.push(e)})}),{rows:t,columns:o}},o(88443),o(85639);var s=o(13351),i=o(79501);function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(e,t){return Math.min(t,Math.max(e+l(f,this).call(this)-1,e))}function C(e,t){return Math.min(t,Math.max(e+l(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:o,rowsLimit:s,columnsLimit:i,countColumnHeaders:l}=e;var h,w;n(h=this,w=m),w.add(h),r(this,c,void 0),r(this,u,void 0),r(this,d,void 0),r(this,g,void 0),r(this,f,void 0),r(this,p,void 0),a(u,this,t),a(d,this,o),a(g,this,s),a(f,this,i),a(p,this,l)}setSelectedRange(e){a(c,this,e)}getCellsRange(){if(0===l(u,this).call(this)||0===l(d,this).call(this))return null;const{row:e,col:t}=l(c,this).getTopStartCorner(),{row:o,col:s}=l(c,this).getBottomEndCorner(),i=h(m,this,C).call(this,e,o),r=h(m,this,w).call(this,t,s);return{isRangeTrimmed:o!==i||s!==r,startRow:e,startCol:t,endRow:i,endCol:r}}getMostBottomColumnHeadersRange(){if(0===l(d,this).call(this)||0===l(p,this).call(this))return null;const{col:e}=l(c,this).getTopStartCorner(),{col:t}=l(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-1,startCol:e,endRow:-1,endCol:o}}getAllColumnHeadersRange(){if(0===l(d,this).call(this)||0===l(p,this).call(this))return null;const{col:e}=l(c,this).getTopStartCorner(),{col:t}=l(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-l(p,this).call(this),startCol:e,endRow:-1,endCol:o}}}},64223:(e,t,o)=>{"use strict";var s=o(26213);e.exports=function(e,t,o){for(var i=0,r=arguments.length>2?o:s(t),n=new e(r);r>i;)n[i]=t[i++];return n}},64402:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.forEach(o=>{let{name:s,callback:i}=o;t[s]=function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return i(e,...o)}}),t};var s=o(15674),i=o(19662),r=o(15036),n=o(27761),l=o(47739),a=o(50236),h=o(23733),c=o(88426);const u=[...(0,s.getAllCommands)(),...(0,i.getAllCommands)(),...(0,r.getAllCommands)(),n.command,l.command,a.command,h.command,c.command]},64484:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,i){const r=o.length?o[0]:void 0;return[...e.slice(0,r),...o.map((e,t)=>(0,s.isFunction)(i)?i(e,t):i),...void 0===r?[]:e.slice(r)]},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(e,o)=>!1===t.includes(o))},o(73741),o(90795);var s=o(30848),i=o(13351)},64577:(e,t,o)=>{"use strict";var s=o(25225),i=o(11044),r=Math.floor,n=s("".charAt),l=s("".replace),a=s("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,s,u,d){var g=o+e.length,f=s.length,p=c;return void 0!==u&&(u=i(u),p=h),l(d,p,function(i,l){var h;switch(n(l,0)){case"$":return"$";case"&":return e;case"`":return a(t,0,o);case"'":return a(t,g);case"<":h=u[a(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>f){var d=r(c/10);return 0===d?i:d<=f?void 0===s[d-1]?n(l,1):s[d-1]+n(l,1):i}h=s[c-1]}return void 0===h?"":h})}},64619:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(55765);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.autocompleteValidator=s.autocompleteValidator},64634:(e,t,o)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=r;var s=o(30539);const i=t.RENDERER_TYPE="handsontable";function r(e,t,o,i,r,n,l){s.autocompleteRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},64791:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(73741),o(69326);var i=o(89255),r=s(o(28494));function n(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakSet;class p{constructor(){var e,t;l(e=this,t=f),t.add(e),n(this,u,!0),n(this,d,null),n(this,g,new ResizeObserver(e=>c(f,this,m).call(this,e)))}setObservedElement(e){h(d,this,e)}unobserve(){a(g,this).unobserve(a(d,this))}observe(){h(u,this,!0),a(g,this).observe(a(d,this))}destroy(){a(g,this).disconnect()}}function m(e){!a(u,this)&&Array.isArray(e)&&e.length?e.forEach(e=>{let{borderBoxSize:t}=e;const{inlineSize:o,blockSize:s}=t[0];this.runLocalHooks("resize",o,s)}):h(u,this,!1)}t.EditorResizeObserver=p,(0,i.mixin)(p,r.default)},64946:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=s(o(86798)),n=s(o(75972)),l=o(16410),a=o(9288),h=o(58741),c=o(89255),u=o(95977),d=o(8874);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.EDITOR_TYPE="date",m="dateEditor";var w=new WeakSet;class C extends a.TextEditor{constructor(){super(...arguments),g(this,w),(0,i.default)(this,"parentDestroyed",!1),(0,i.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return p}init(){if("function"!=typeof r.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof n.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,o,s,i,r){super.prepare(e,t,o,s,i,r)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=f(w,this,v).call(this),o=this.hot.view.isMouseDown(),s=!!e&&(0,u.isFunctionKey)(e.keyCode);let i;this.datePicker.style.display="block",this.$datePicker=new n.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(r.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(i=this.originalValue,(0,r.default)(i,t,!0).isValid()&&this.$datePicker.setMoment((0,r.default)(i,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||o||this.setValue("")):this.cellProperties.defaultDate?(i=this.cellProperties.defaultDate,(0,r.default)(i,t,!0).isValid()&&this.$datePicker.setMoment((0,r.default)(i,t),!0),s||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,o={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(o,this.cellProperties.datePickerConfig);const s=o.onSelect,i=o.onClose;return o.field=t,o.trigger=t,o.container=this.datePicker,o.bound=!1,o.keyboardInput=!1,o.format=null!==(e=o.format)&&void 0!==e?e:f(w,this,v).call(this),o.reposition=o.reposition||!1,o.isRTL=!1,o.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,r.default)(t).format(f(w,this,v).call(this))),this.setValue(t),s&&s(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},o.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),i&&i()},o}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==l.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:s}=this.hot,{wtOverlays:i}=this.hot.view._wt,{wtTable:r}=null!==(t=i.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,n=o.getVisualFromRenderableIndex(r.getFirstPartiallyVisibleRow()),a=o.getVisualFromRenderableIndex(r.getLastPartiallyVisibleRow()),c=s.getVisualFromRenderableIndex(r.getFirstPartiallyVisibleColumn()),u=s.getVisualFromRenderableIndex(r.getLastPartiallyVisibleColumn());if(this.row>=n&&this.row<=a&&this.col>=c&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function v(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=C},64976:(e,t,o)=>{"use strict";var s=o(68999),i=Function.prototype.call;e.exports=s?i.bind(i):function(){return i.apply(i,arguments)}},65036:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,i){const[,...r]=o,[,...n]=i;return function(o){const i=e[o],l=t[o],a=r[o],h=n[o],c=l.columnSorting;return(c.compareFunctionFactory?c.compareFunctionFactory:(0,s.getCompareFunctionFactory)(l.type))(i,l,c)(a,h)}(0)}};var s=o(7378)},65126:(e,t,o)=>{"use strict";var s=o(39157),i=o(74491),r=o(9370),n=o(77618),l=o(71652),a=o(59961);t.f=s&&!i?Object.defineProperties:function(e,t){n(e);for(var o,s=l(t),i=a(t),h=i.length,c=0;h>c;)r.f(e,o=i[c++],s[o]);return e}},65166:t=>{"use strict";t.exports=e},65254:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36497);t.CELL_TYPE=s.CELL_TYPE,t.HandsontableCellType=s.HandsontableCellType},65444:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:o}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(o,s)=>{const i=t.getSettings(),r="function"==typeof i.tabMoves?i.tabMoves(o):i.tabMoves;s.includes("shift")?t.selection.transformStart(-r.row,-r.col):t.selection.transformStart(r.row,r.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=o.getSelectedLast();if(t){const o=e.openSubMenu(t[0]);o&&o.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{o.getSelectedLast()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const s=o.getSelectedLast();s&&(o.getSourceDataAtRow(s[0]).submenu?e.openSubMenu(s[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{o.getSelectedLast()?o.selection.transformStart(-o.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{o.getSelectedLast()?o.selection.transformStart(o.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},65615:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var s;return null==o||null===(s=o.get(e.guid))||void 0===s?void 0:s.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);const t=o.get(e);return{register:function(e,o){t.set(e,o)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){o.delete(e),t.clear()}}};const o=t.collection=new Map},65779:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:i,to:r}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&s.isCell()){const n=parseInt(e.getSettings().fixedColumnsStart,10),l=o.getNearestNotHiddenIndex(n,1),a=i.clone();a.col=s.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,s.clone()),t.setRangeEnd(e._createCellCoords(r.row,l)),t.markEndSource()}}}},65985:(e,t,o)=>{"use strict";var s=o(41829),i=o(64976),r=o(77618),n=o(5006),l=o(47770),a=o(26213),h=o(97610),c=o(36230),u=o(89626),d=o(63884),g=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;e.exports=function(e,t,o){var m,w,C,v,y,E,S,R=o&&o.that,b=!(!o||!o.AS_ENTRIES),_=!(!o||!o.IS_RECORD),T=!(!o||!o.IS_ITERATOR),M=!(!o||!o.INTERRUPTED),I=s(t,R),O=function(e){return m&&d(m,"normal"),new f(!0,e)},N=function(e){return b?(r(e),M?I(e[0],e[1],O):I(e[0],e[1])):M?I(e,O):I(e)};if(_)m=e.iterator;else if(T)m=e;else{if(!(w=u(e)))throw new g(n(e)+" is not iterable");if(l(w)){for(C=0,v=a(e);v>C;C++)if((y=N(e[C]))&&h(p,y))return y;return new f(!1)}m=c(e,w)}for(E=_?e.next:m.next;!(S=i(E,m)).done;){try{y=N(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof y&&y&&h(p,y))return y}return new f(!1)}},66329:(e,t,o)=>{"use strict";var s=o(19895),i=o(19952);e.exports=function(e,t){s(t)&&"cause"in t&&i(e,"cause",t.cause)}},66394:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(16410),i=o(58741),r=o(89255),n=o(6532);const l="ht_editor_visible",a="selectEditor",h=t.EDITOR_TYPE="select";class c extends s.BaseEditor{static get EDITOR_TYPE(){return h}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,n.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,i.addClass)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="";this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,i.hasClass)(this.selectWrapper,l)&&(0,i.removeClass)(this.selectWrapper,l),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>this.refreshDimensions()),this.addHook("afterRowResize",()=>this.refreshDimensions())}prepare(e,t,o,s,n,l){super.prepare(e,t,o,s,n,l);const a=this.cellProperties.selectOptions;let h;h="function"==typeof a?this.prepareOptions(a(this.row,this.col,this.prop)):this.prepareOptions(a),(0,i.empty)(this.select),(0,r.objectEach)(h,(e,t)=>{const o=this.hot.rootDocument.createElement("OPTION");o.value=t,(0,i.fastInnerHTML)(o,e),this.select.appendChild(o)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let o=0,s=e.length;o<s;o++)t[e[o]]=e[o];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==s.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:o,height:r}=this.getEditedCellRect(),n=this.selectWrapper.style;n.height=`${r}px`,n.width=`${o}px`,n.top=`${e}px`,n[this.hot.isRtl()?"right":"left"]=`${t}px`,n.margin="0px",(0,i.addClass)(this.selectWrapper,l)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:a};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.SelectEditor=c},66497:(e,t,o)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let i=e.target;if(!(0,s.isHTMLElement)(t)||i!==t&&i.contains(t))return o;for(;i!==t;)o.x+=i.offsetLeft,o.y+=i.offsetTop,i=i.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var s=o(58741)},66569:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726));function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,i.default)(this,"row",null),(0,i.default)(this,"col",null),r(this,h,!1),l(h,this,o),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:o,countRowHeaders:s,countColHeaders:i}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-i||this.col<-s)&&!(this.row>=t||this.col>=o))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return n(h,this)}isSouthEastOf(e){return this.row>=e.row&&(n(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(n(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(n(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(n(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof c&&l(h,this,e.isRtl()),this}clone(){return new c(this.row,this.col,n(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=c},66793:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(94828));function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e,t,o,s,i){const r=e.getTopStartCorner(),n=e.getBottomEndCorner(),a=e.highlight.clone().normalize(),h=l(f,this).call(this,s,i);if(h&&o.has(h))return null;const c={colStart:i,colEnd:i,rowStart:s,rowEnd:s};if(h){if(o.add(h),h.row<r.row||h.row+h.rowspan-1>n.row||h.col<r.col||h.col+h.colspan-1>n.col)return null;c.colStart=h.col,c.colEnd=h.col+h.colspan-1,c.rowStart=h.row,c.rowEnd=h.row+h.rowspan-1}const u=t.push(c);return s===a.row&&i===a.col||h&&a.row>=h.row&&a.row<=h.row+h.rowspan-1&&a.col>=h.col&&a.col<=h.col+h.colspan-1?u:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:s}=e;var l,h;n(l=this,h=w),h.add(l),r(this,c,new i.default),r(this,u,new i.default),r(this,d,null),r(this,g,null),r(this,f,null),r(this,p,null),r(this,m,null),a(f,this,t),a(p,this,o),a(m,this,s)}getCurrentVerticalNode(){return l(g,this).data}getFirstVerticalNode(){return l(u,this).first.data}getNextVerticalNode(){return l(g,this).next.data}getPrevVerticalNode(){return l(g,this).prev.data}getCurrentHorizontalNode(){return l(d,this).data}getFirstHorizontalNode(){return l(c,this).first.data}getNextHorizontalNode(){return l(d,this).next.data}getPrevHorizontalNode(){return l(d,this).prev.data}setPrevNodeAsActive(){a(g,this,l(g,this).prev),a(d,this,l(d,this).prev)}setNextNodeAsActive(){a(g,this,l(g,this).next),a(d,this,l(d,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),o=e.getBottomEndCorner(),s=new WeakSet;a(c,this,new i.default);for(let i=t.row;i<=o.row;i++)if(!l(p,this).isHidden(i))for(let r=t.col;r<=o.col;r++){if(l(m,this).isHidden(r))continue;const t=h(w,this,C).call(this,e,l(c,this),s,i,r);t&&a(d,this,t)}l(c,this).first&&(l(c,this).first.prev=l(c,this).last,l(c,this).last.next=l(c,this).first);const r=new WeakSet;a(u,this,new i.default);for(let s=t.col;s<=o.col;s++)if(!l(m,this).isHidden(s))for(let i=t.row;i<=o.row;i++){if(l(p,this).isHidden(i))continue;const t=h(w,this,C).call(this,e,l(u,this),r,i,s);t&&a(g,this,t)}l(u,this).first&&(l(u,this).first.prev=l(u,this).last,l(u,this).last.next=l(u,this).first)}setActiveNode(e,t){return l(c,this).inorder(o=>{const{rowStart:s,rowEnd:i,colStart:r,colEnd:n}=o.data;if(e>=s&&e<=i&&t>=r&&t<=n)return a(d,this,o),!1}),l(u,this).inorder(o=>{const{rowStart:s,rowEnd:i,colStart:r,colEnd:n}=o.data;if(e>=s&&e<=i&&t>=r&&t<=n)return a(g,this,o),!1}),this}}},66817:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[,o,,s]=e;o-s!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:o}=this.getSelectedRangeLast(),s=Math.max(Math.min(t.col,o.col),0),i=Math.max(t.col,o.col),r=[];for(let e=s;e<=i;e+=1)r.push(e);e.hideColumns(r);const n=r[r.length-1],l=this.columnIndexMapper.getNearestNotHiddenIndex(n,1,!0);Number.isInteger(l)&&l>=0?this.selectColumns(l):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},o(85639);var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},66894:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback(){var o,s;if(0===t.length)return;let i=t[0],r=t[t.length-1];i=null!==(o=this.rowIndexMapper.getNearestNotHiddenIndex(i-1,-1))&&void 0!==o?o:0,r=null!==(s=this.rowIndexMapper.getNearestNotHiddenIndex(r+1,1))&&void 0!==s?s:this.countRows()-1,e.showRows(t),this.render(),this.view.adjustElementsSize();r-i+1===this.countRows()||this.selectRows(i,r)},disabled:!1,hidden(){const o=(0,s.arrayMap)(e.getHiddenRows(),e=>this.toPhysicalRow(e));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||o.length<1)return!0;t.length=0;const i=this.getSelectedRangeLast(),r=i.getTopStartCorner().row,n=i.getBottomEndCorner().row,l=this.rowIndexMapper,a=l.getRenderableFromVisualIndex(r),h=l.getRenderableFromVisualIndex(n),c=l.getNotTrimmedIndexes(),u=[];if(r!==n){if(n-r+1>h-a+1){const e=c.slice(r,n+1);u.push(...e.filter(e=>o.includes(e)))}}else if(0===a&&a<r)u.push(...c.slice(0,r));else if(null===a)u.push(...c.slice(0,this.countRows()));else{const e=this.countRows()-1;h===l.getRenderableFromVisualIndex(l.getNearestNotHiddenIndex(e,-1))&&e>n&&u.push(...c.slice(n+1))}return(0,s.arrayEach)(u,e=>{t.push(this.toVisualRow(e))}),0===t.length}}},o(85639),o(73741),o(7307);var s=o(13351),i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},66948:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},67220:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...a.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!u(e)},t.registerPlugin=function(e,t,o){[e,t,o]=function(e,t,o){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,o=t.PLUGIN_PRIORITY);return[e,t,o]}(e,t,o),void 0===u(e)&&function(e,t,o){const i=(0,s.toUpperCaseFirst)(e);if(c.hasItem(i))throw new Error(l(i));void 0===o?h.addItem(i):a.addItem(o,i);c.addItem(i,t)}(e,t,o)},o(88443);var s=o(78449),i=o(29219),r=o(37334),n=o(78980);const l=e=>`There is already registered "${e}" plugin.`,a=(0,i.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,n.createUniqueSet)({errorItemExists:l}),c=(0,r.createUniqueMap)({errorIdExists:l});function u(e){const t=(0,s.toUpperCaseFirst)(e);return c.getItem(t)}},67339:(e,t,o)=>{"use strict";var s,i=o(88005),r=o(13150),n=o(6996),l=o(60926),a=o(35172),h=o(67817),c=o(39981),u=i.Function,d=/MSIE .\./.test(a)||"BUN"===l&&((s=i.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 d?function(s,i){var l=c(arguments.length,1)>o,a=n(s)?s:u(s),d=l?h(arguments,o):[],g=l?function(){r(a,this,d)}:a;return t?e(g,i):e(g)}:e}},67433:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=o(89255),r=s(o(28494));class n{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,i.mixin)(n,r.default);t.default=n},67502:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(27222),i=o(13351);class r extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,i.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.HidingMap=r},67616:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const i=[];if(!1===o)return i;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&i.push(`${s}-${e.getIndexOfColumnInSortQueue(t)+1}`);return i},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${s}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(85639),o(73741),o(7307);const s="sort"},67746:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(48622)),r=s(o(30818)),n=s(o(184)),l=o(89255),a=o(40457);class h extends i.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_TOP)}}(0,l.mixin)(h,r.default),(0,l.mixin)(h,n.default);t.default=h},67774:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(63196)),r=o(58741);class n extends i.default{build(){super.build(),(0,r.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=n},67817:(e,t,o)=>{"use strict";var s=o(25225);e.exports=s([].slice)},67881:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:i=()=>{},onClear:r=()=>{}}=e;const n=new Set;let l=(0,s.clamp)(t,-1,h()-1);function a(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),n.has(e))return-1;n.add(e);return!1===i(e,!1)&&(e=a(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==i(e,!0)&&(l=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(l=e)},getCurrentPage:function(){return l},toFirstItem:function(){h()>0&&(n.clear(),l=a(0,1))},toLastItem:function(){h()>0&&(n.clear(),l=a(h()-1,-1))},toNextItem:function(){h()>0&&(n.clear(),l=a(++l,1))},toPreviousItem:function(){h()>0&&(n.clear(),l=a(--l,-1))},getSize:h,clear:function(){n.clear(),l=t,r()}}},o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var s=o(79501)},68035:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(57883);t.CELL_TYPE=s.CELL_TYPE,t.DateCellType=s.DateCellType},68068:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(16178),o(90795);var i=o(76549),r=o(58741),n=o(79501),l=o(13351),a=o(72365),h=o(12945),c=s(o(75585)),u=s(o(66894)),d=o(43393);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(m(e,t))}function p(e,t,o){return e.set(m(e,t),o),o}function m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}h.Hooks.getSingleton().register("beforeHideRows"),h.Hooks.getSingleton().register("afterHideRows"),h.Hooks.getSingleton().register("beforeUnhideRows"),h.Hooks.getSingleton().register("afterUnhideRows");const w=t.PLUGIN_KEY="hiddenRows",C=t.PLUGIN_PRIORITY=320;var v=new WeakMap,y=new WeakSet;class E extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=y),t.add(e),function(e,t,o){g(e,t),t.set(e,o)}(this,v,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(p(v,this,new d.HidingMap),f(v,this).addLocalHook("init",()=>m(y,this,M).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,f(v,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(y,e,T).call(e,...o)}),this.addHook("afterGetCellMeta",(e,t,o)=>m(y,this,R).call(this,e,t,o)),this.addHook("modifyRowHeight",(e,t)=>m(y,this,S).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(y,e,_).call(e,...o)}),this.addHook("modifyCopyableRange",e=>m(y,this,b).call(this,e)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showRows(e){const t=this.getHiddenRows(),o=this.isValidConfig(e);let s=t;const i=f(v,this).getValues().slice(),r=e.length>0;if(o&&r){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,l.arrayEach)(t,e=>{i[e]=!1}),s=(0,l.arrayReduce)(i,(e,t,o)=>(t&&e.push(this.hot.toVisualRow(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,s,o&&r)&&(o&&r&&f(v,this).setValues(i),this.hot.runHooks("afterUnhideRows",t,s,o&&r,o&&s.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),o=this.isValidConfig(e);let s=t;o&&(s=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,s,o)&&(o&&this.hot.batchExecution(()=>{(0,l.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,s,o,o&&s.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.hideRows(t)}getHiddenRows(){return(0,l.arrayMap)(f(v,this).getHiddenIndexes(),e=>this.hot.toVisualRow(e))}isHidden(e){return f(v,this).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}isValidConfig(e){const t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,l.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipRowOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function S(e,t){return this.isHidden(t)?0:e}function R(e,t,o){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(o.skipRowOnPaste=!0),this.isHidden(e-1))o.className=o.className||"",-1===o.className.indexOf("afterHiddenRow")&&(o.className+=" afterHiddenRow");else if(o.className){const e=o.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");t>-1&&e.splice(t,1),o.className=e.join(" ")}}}function b(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],o=(e,o,s,i)=>{t.push({startRow:e,endRow:o,startCol:s,endCol:i})};return(0,l.arrayEach)(e,e=>{let t=!0,s=0;(0,n.rangeEach)(e.startRow,e.endRow,i=>{this.isHidden(i)?(t||o(s,i-1,e.startCol,e.endCol),t=!0):(t&&(s=i),i===e.endRow&&o(s,i,e.startCol,e.endCol),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const o=[];e>=1&&this.isHidden(e-1)&&o.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&o.push("beforeHiddenRow"),(0,r.addClass)(t,o)}function T(e){e.items.push({name:a.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=E},68223:(e,t,o)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const o=(0,s.getCaretPosition)(t),i=t.value.split("\n");let r=o,n=0;for(let t=0;t<i.length;t++){const s=i[t];0!==t&&(n+=i[t-1].length+1);const l=n+s.length;if("home"===e?r=n:"end"===e&&(r=l),o<=l)break}(0,s.setCaretPosition)(t,r)};var s=o(58741)},68664:(e,t,o)=>{"use strict";var s=o(80221);e.exports=function(e,t,o){for(var i in t)s(e,i,t[i],o);return e}},68813:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(11152);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.MultipleSelectionHandles=s.MultipleSelectionHandles},68986:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(62506);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.DragToScroll=s.DragToScroll},68999:(e,t,o)=>{"use strict";var s=o(82314);e.exports=!s(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},69243:(e,t,o)=>{"use strict";var s=o(25225),i=o(54090),r=o(71652),n=o(87530).indexOf,l=o(13884),a=s([].push);e.exports=function(e,t){var o,s=r(e),h=0,c=[];for(o in s)!i(l,o)&&i(s,o)&&a(c,o);for(;t.length>h;)i(s,o=t[h++])&&(~n(c,o)||a(c,o));return c}},69262:(e,t,o)=>{"use strict";var s=o(19952),i=o(10260),r=o(15230),n=Error.captureStackTrace;e.exports=function(e,t,o,l){r&&(n?n(e,t):s(e,"stack",i(o,l)))}},69322:(e,t,o)=>{"use strict";var s=o(88005),i=o(82314),r=s.RegExp,n=!i(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},o="",s=e?"dgimsy":"gimsy",i=function(e,s){Object.defineProperty(t,e,{get:function(){return o+=s,!0}})},n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var l in e&&(n.hasIndices="d"),n)i(l,n[l]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==s||o!==s});e.exports={correct:n}},69326:(e,t,o)=>{"use strict";o(51511)},69383:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(64946);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DateEditor=s.DateEditor},69414:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89255);const i={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,s.defineGetter)(i,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=i},69498:(e,t,o)=>{"use strict";var s=o(88005);e.exports=function(e,t){var o=s.Iterator,i=o&&o.prototype,r=i&&i[e],n=!1;if(r)try{r.call({next:function(){return{done:!0}},return:function(){n=!0}},-1)}catch(e){e instanceof t||(n=!1)}if(!n)return r}},69684:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(82141);var i=o(76549),r=o(12945),n=s(o(24550)),l=s(o(53853));function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("beforeColumnFreeze"),r.Hooks.getSingleton().register("afterColumnFreeze"),r.Hooks.getSingleton().register("beforeColumnUnfreeze"),r.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var f=new WeakMap,p=new WeakSet;class m extends i.BasePlugin{constructor(){var e,t;super(...arguments),a(e=this,t=p),t.add(e),function(e,t,o){a(e,t),t.set(e,o)}(this,f,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>u(p,this,w).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>u(p,this,C).call(this,e,t)),super.enablePlugin())}disablePlugin(){c(f,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,o)&&(o&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,o))}unfreezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,o)&&(o&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,o))}}function w(e){e.items.push({name:"---------"},(0,n.default)(this),(0,l.default)(this))}function C(e,t){if(h(f,this)){const o=this.hot.getSettings().fixedColumnsStart;if(t<o)return!1;if(e.some(e=>e<o))return!1}}t.ManualColumnFreeze=m},69822:(e,t,o)=>{"use strict";var s=o(6996),i=o(19895),r=o(73254);e.exports=function(e,t,o){var n,l;return r&&s(n=t.constructor)&&n!==o&&i(l=n.prototype)&&l!==o.prototype&&r(e,l),e}},70012:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(82141);var i=s(o(53726)),r=o(13351),n=o(35359);t.default=class{constructor(e,t){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"endpoints",[]),(0,i.default)(this,"settings",void 0),(0,i.default)(this,"settingsType","array"),(0,i.default)(this,"currentEndpoint",null),(0,i.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let o=e;if(o||"function"!=typeof this.settings)return o||(o=this.settings),(0,r.arrayEach)(o,e=>{const o={};this.assignSetting(e,o,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,o,"reversedRowCoords",!1),this.assignSetting(e,o,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"sourceColumn",e.destinationColumn),this.assignSetting(e,o,"type","sum"),this.assignSetting(e,o,"forceNumeric",!1),this.assignSetting(e,o,"suppressDataTypeErrors",!0),this.assignSetting(e,o,"customFunction",null),this.assignSetting(e,o,"readOnly",!0),this.assignSetting(e,o,"roundFloat",!1),t.push(o)}),t;this.settingsType="function"}assignSetting(e,t,o,s){if("ranges"!==o||void 0!==e[o]){if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(s instanceof Error)throw s;t[o]=s}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]}else t[o]=s}resetSetupBeforeStructureAlteration(e,t,o){if("function"!==this.settingsType)return;const s=e.indexOf("row")>-1?"row":"col",i=this.getAllEndpoints();(0,r.arrayEach)(i,i=>{"row"===s&&i.destinationRow>=t&&("insert_row"===e?i.alterRowOffset=o:"remove_row"===e&&(i.alterRowOffset=-1*o)),"col"===s&&i.destinationColumn>=t&&("insert_col"===e?i.alterColumnOffset=o:"remove_col"===e&&(i.alterColumnOffset=-1*o))}),this.resetAllEndpoints(i,!1)}resetSetupAfterStructureAlteration(e,t,o,s,i){let n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const l=e.indexOf("row")>-1?"row":"col",a=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,r.arrayEach)(h,e=>{"row"===l&&e.destinationRow>=u&&(e.alterRowOffset=a*o),"col"===l&&e.destinationColumn>=u&&(e.alterColumnOffset=a*o)}),this.resetAllEndpoints(h,!c),c?(0,r.arrayEach)(h,e=>{this.extendEndpointRanges(e,u,s[0],s.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,r.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,u)}),n&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,o,s){(0,r.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?o>e[1]?e[1]+=s:o<e[0]&&(e[0]-=s):o>=e[0]&&o<=e[1]&&(e[1]-=s,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,o=[],s=[];(0,r.arrayEach)(t,e=>{const t=[];if(e[1])for(let o=e[0];o<=e[1];o++)t.push(this.hot.toPhysicalRow(o));else t.push(this.hot.toPhysicalRow(e[0]));s.push(t)}),(0,r.arrayEach)(s,e=>{let t=[];(0,r.arrayEach)(e,(s,i)=>{0===i?t.push(s):e[i]!==e[i-1]+1&&(t.push(e[i-1]),o.push(t),t=[],t.push(s)),i===e.length-1&&(t.push(s),o.push(t))})}),e.ranges=o}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,r.arrayEach)(e.ranges,o=>{(0,r.arrayEach)(o,(s,i)=>{s>=t&&(o[i]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,o=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+o>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,r.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,r.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,r.arrayEach)(e,(e,o,s)=>{`${e[2]||""}`!=`${e[3]}`&&(0,r.arrayEach)(this.getAllEndpoints(),(e,i)=>{this.hot.propToCol(s[o][1])===e.sourceColumn&&-1===t.indexOf(i)&&t.push(i)})}),(0,r.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const o=this.hot.getCellMeta(t,e.destinationColumn);o.readOnly=e.readOnly,o.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.alterRowOffset||0,s=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?o:0)),this.hot.toVisualColumn(e.destinationColumn+(t?s:0)),""])}setEndpointValue(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const i=this.hot.toVisualRow(e.destinationRow);if(null!==i){const o=this.hot.getCellMeta(i,e.destinationColumn);"init"!==t&&o.readOnly===e.readOnly||(o.readOnly=e.readOnly,o.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let o=0;Number.isInteger(t)&&(o=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(o)}o?this.hot.setDataAtCell(s,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([s,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,n.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},70026:(e,t,o)=>{"use strict";t.__esModule=!0,t.createArrayAssertion=r,t.intersectValues=function(e,t,o,s){const n=[],l=e===t;let a;l||(a=r(t));return e.forEach(e=>{let t=!1;(l||a(e))&&(t=!0);const r={checked:t,value:e,visualValue:i(e,o)};s&&s(r),n.push(r)}),n},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return s(e,t)},t.toEmptyString=n,t.toVisualValue=i,t.unifyColumnValues=function(e){return Array.from(new Set(e)).map(e=>n(e)).sort((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1)},o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(69326),o(90795);const s=(0,o(46092).getComparisonFunction)();function i(e,t){let o=e;return""===o&&(o=`(${t})`),o}function r(e){const t=new Set(e);return function(e){return t.has(e)}}function n(e){return null==e?"":e}},70139:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,V.registerPlugin)(s.AutoColumnSize),(0,V.registerPlugin)(i.Autofill),(0,V.registerPlugin)(r.AutoRowSize),(0,V.registerPlugin)(l.BindRowsWithHeaders),(0,V.registerPlugin)(a.CollapsibleColumns),(0,V.registerPlugin)(h.ColumnSorting),(0,V.registerPlugin)(c.ColumnSummary),(0,V.registerPlugin)(u.Comments),(0,V.registerPlugin)(d.ContextMenu),(0,V.registerPlugin)(g.CopyPaste),(0,V.registerPlugin)(f.CustomBorders),(0,V.registerPlugin)(p.DragToScroll),(0,V.registerPlugin)(m.DropdownMenu),(0,V.registerPlugin)(w.ExportFile),(0,V.registerPlugin)(C.Filters),(0,V.registerPlugin)(v.Formulas),(0,V.registerPlugin)(y.HiddenColumns),(0,V.registerPlugin)(E.HiddenRows),(0,V.registerPlugin)(S.ManualColumnFreeze),(0,V.registerPlugin)(R.ManualColumnMove),(0,V.registerPlugin)(b.ManualColumnResize),(0,V.registerPlugin)(_.ManualRowMove),(0,V.registerPlugin)(T.ManualRowResize),(0,V.registerPlugin)(M.MergeCells),(0,V.registerPlugin)(I.MultiColumnSorting),(0,V.registerPlugin)(O.MultipleSelectionHandles),(0,V.registerPlugin)(N.NestedHeaders),(0,V.registerPlugin)(A.NestedRows),(0,V.registerPlugin)(H.PersistentState),(0,V.registerPlugin)(x.Search),(0,V.registerPlugin)(P.StretchColumns),(0,V.registerPlugin)(k.TouchScroll),(0,V.registerPlugin)(D.TrimRows),(0,V.registerPlugin)(L.UndoRedo)};var s=o(47676);t.AutoColumnSize=s.AutoColumnSize;var i=o(94106);t.Autofill=i.Autofill;var r=o(37724);t.AutoRowSize=r.AutoRowSize;var n=o(76549);t.BasePlugin=n.BasePlugin;var l=o(37228);t.BindRowsWithHeaders=l.BindRowsWithHeaders;var a=o(82055);t.CollapsibleColumns=a.CollapsibleColumns;var h=o(16066);t.ColumnSorting=h.ColumnSorting;var c=o(53242);t.ColumnSummary=c.ColumnSummary;var u=o(26649);t.Comments=u.Comments;var d=o(26204);t.ContextMenu=d.ContextMenu;var g=o(76080);t.CopyPaste=g.CopyPaste;var f=o(59454);t.CustomBorders=f.CustomBorders;var p=o(68986);t.DragToScroll=p.DragToScroll;var m=o(1974);t.DropdownMenu=m.DropdownMenu;var w=o(32128);t.ExportFile=w.ExportFile;var C=o(70607);t.Filters=C.Filters;var v=o(52679);t.Formulas=v.Formulas;var y=o(93483);t.HiddenColumns=y.HiddenColumns;var E=o(55897);t.HiddenRows=E.HiddenRows;var S=o(90179);t.ManualColumnFreeze=S.ManualColumnFreeze;var R=o(58473);t.ManualColumnMove=R.ManualColumnMove;var b=o(27692);t.ManualColumnResize=b.ManualColumnResize;var _=o(3603);t.ManualRowMove=_.ManualRowMove;var T=o(10954);t.ManualRowResize=T.ManualRowResize;var M=o(24945);t.MergeCells=M.MergeCells;var I=o(36609);t.MultiColumnSorting=I.MultiColumnSorting;var O=o(68813);t.MultipleSelectionHandles=O.MultipleSelectionHandles;var N=o(95975);t.NestedHeaders=N.NestedHeaders;var A=o(14874);t.NestedRows=A.NestedRows;var H=o(14362);t.PersistentState=H.PersistentState;var x=o(88668);t.Search=x.Search;var P=o(33132);t.StretchColumns=P.StretchColumns;var k=o(33386);t.TouchScroll=k.TouchScroll;var D=o(44721);t.TrimRows=D.TrimRows;var L=o(12018);t.UndoRedo=L.UndoRedo;var V=o(67220);t.registerPlugin=V.registerPlugin,t.getPlugin=V.getPlugin,t.getPluginsNames=V.getPluginsNames},70338:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(40306);t.RENDERER_TYPE=s.RENDERER_TYPE,t.timeRenderer=s.timeRenderer},70600:(e,t,o)=>{"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const o=e.selection.getSelectionSource(),{row:i,col:r}=t,n=()=>{(0,s.scrollWindowToCell)(e.getCell(i,r,!0))};if(i<0&&r>=0)e.scrollViewportTo({col:r},n);else if(r<0&&i>=0)e.scrollViewportTo({row:i},n);else{if("mouse"===o&&(r===e.view.getLastPartiallyVisibleColumn()||i===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:i,col:r},n)}}};var s=o(25813)},70607:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(73620);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Filters=s.Filters},70868:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9288);const i=t.EDITOR_TYPE="time";class r extends s.TextEditor{static get EDITOR_TYPE(){return i}prepare(e,t,o,s,i,r){super.prepare(e,t,o,s,i,r),this.TEXTAREA.dir="ltr"}}t.TimeEditor=r},71008:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${n}:left`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",i="htLeft";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1},{key:`${n}:center`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",i="htCenter";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1},{key:`${n}:right`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",i="htRight";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1},{key:`${n}:justify`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",i="htJustify";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1},{name:i.KEY},{key:`${n}:top`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",i="htTop";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1},{key:`${n}:middle`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",i="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1},{key:`${n}:bottom`,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",i="htBottom";this.runHooks("beforeCellAlignment",t,e,o,i),(0,s.align)(e,o,i,(e,t)=>this.getCellMeta(e,t),(e,t,o,s)=>this.setCellMeta(e,t,o,s)),this.render()},disabled:!1}]}}};var s=o(94293),i=o(46194),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const n=t.KEY="alignment"},71389:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675)},71418:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=o(58741),r=s(o(2454)),n=o(37837),l=o(17136);class a extends n.Overlay{constructor(e,t,o,s,i,r){super(e,t,l.CLONE_BOTTOM_INLINE_START_CORNER,o,s),this.bottomOverlay=i,this.inlineStartOverlay=r}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wot:e}=this;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;const t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){const e=this.inlineStartOverlay.getOverlayOffset(),o=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]=`${e}px`,t.style.bottom=`${o}px`}else(0,i.resetCssTransform)(t),this.repositionOverlay();let o=(0,i.outerHeight)(this.clone.wtTable.TABLE);const s=(0,i.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height=`${o}px`,t.style.width=`${s}px`,!1}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o}=this.domBindings,s=this.clone.wtTable.holder.parentNode;let r=0;t.hasVerticalScroll()||(r+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(r+=(0,i.getScrollbarWidth)(o)),s.style.bottom=`${r}px`}}t.BottomInlineStartCornerOverlay=a},71622:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(12452),n=o(84179);t.ViewSizeSet=class{constructor(){(0,i.default)(this,"size",new r.ViewSize),(0,i.default)(this,"workingSpace",n.WORKING_SPACE_ALL),(0,i.default)(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return null!==this.sharedSize}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=n.WORKING_SPACE_TOP,e.workingSpace=n.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=n.WORKING_SPACE_BOTTOM,e.workingSpace=n.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}},71652:(e,t,o)=>{"use strict";var s=o(89176),i=o(77181);e.exports=function(e){return s(i(e))}},71840:(e,t,o)=>{"use strict";var s=o(82314);e.exports=!s(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},71929:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89255);const i={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,s.defineGetter)(i,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=i},72048:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(65985),n=o(86713),l=o(77618),a=o(74218),h=o(63884),c=o(69498)("some",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){l(this);try{n(e)}catch(e){h(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),o=0;return r(t,function(t,s){if(e(t,o++))return s()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},72119:(e,t,o)=>{"use strict";var s=o(53385);e.exports=Array.isArray||function(e){return"Array"===s(e)}},72239:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=o(13351),r=o(79501),n=o(58741),l=s(o(41661)),a=o(6532);class h extends l.default{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const o=this.hot.toPhysicalRow(e),s=this.dataManager.getRowLevel(o),l=this.dataManager.getDataObject(o),c=t.getElementsByTagName("DIV")[0],u=c.querySelector("span.rowHeader"),d=c.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,i.arrayEach)(d,e=>{e&&c.removeChild(e)}),(0,n.addClass)(t,h.CSS_CLASSES.indicatorContainer),s){const{rootDocument:e}=this.hot,t=u.cloneNode(!0);c.innerHTML="",(0,r.rangeEach)(0,s-1,()=>{const t=e.createElement("SPAN");(0,n.addClass)(t,h.CSS_CLASSES.emptyIndicator),c.appendChild(t)}),c.appendChild(t)}if(this.dataManager.hasChildren(l)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,n.setAttribute)(e,[(0,a.A11Y_HIDDEN)()]),(0,n.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(o)?((0,n.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,n.setAttribute)(t,[(0,a.A11Y_EXPANDED)(!1)])):((0,n.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,n.setAttribute)(t,[(0,a.A11Y_EXPANDED)(!0)])),c.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let o=11;if(!this.hot.stylesHandler.isClassicTheme()){o=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,o+10*t+25),this.hot.render()}}t.default=h},72365:(e,t,o)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===C.indexOf(e)&&(v[e]=t)},t.predefinedItems=function(){const e={};return(0,s.objectEach)(v,(t,o)=>{e[o]=t()}),e};var s=o(89255),i=w(o(71008));t.ALIGNMENT=i.KEY;var r=w(o(3702));t.CLEAR_COLUMN=r.KEY;var n=w(o(46678));t.COLUMN_LEFT=n.KEY;var l=w(o(11169));t.COLUMN_RIGHT=l.KEY;var a=w(o(6687));t.READ_ONLY=a.KEY;var h=w(o(19881));t.REDO=h.KEY;var c=w(o(58095));t.REMOVE_COLUMN=c.KEY;var u=w(o(84617));t.REMOVE_ROW=u.KEY;var d=w(o(36152));t.ROW_ABOVE=d.KEY;var g=w(o(4388));t.ROW_BELOW=g.KEY;var f=w(o(46194));t.SEPARATOR=f.KEY;var p=w(o(94492));t.NO_ITEMS=p.KEY;var m=w(o(56779));function w(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return(w=function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n})(e,t)}t.UNDO=m.KEY;const C=t.ITEMS=[d.KEY,g.KEY,n.KEY,l.KEY,r.KEY,u.KEY,c.KEY,m.KEY,h.KEY,a.KEY,i.KEY,f.KEY,p.KEY],v={[f.KEY]:f.default,[p.KEY]:p.default,[d.KEY]:d.default,[g.KEY]:g.default,[n.KEY]:n.default,[l.KEY]:l.default,[r.KEY]:r.default,[u.KEY]:u.default,[c.KEY]:c.default,[m.KEY]:m.default,[h.KEY]:h.default,[a.KEY]:a.default,[i.KEY]:i.default}},72420:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(16178);var i=s(o(53726)),r=o(89255),n=o(13351);t.default=class{constructor(e){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"mergedCellsCollection",void 0),(0,i.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let o=null;return o=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",o}snapDragArea(e,t,o,s){const i=t.slice(0),r=this.getAutofillSize(e,t,o),[n,l,a,h]=e,c=["up","down"].indexOf(o)>-1?a-n+1:h-l+1,u=r-Math.floor(r/c)*c,d=this.getFarthestCollection(e,t,o,s);if(d)if("down"===o){const e=d.row+d.rowspan-n-u;i[2]+e>=this.plugin.hot.countRows()?i[2]-=u:i[2]+=u?e:0}else if("right"===o){const e=d.col+d.colspan-l-u;i[3]+e>=this.plugin.hot.countCols()?i[3]-=u:i[3]+=u?e:0}else if("up"===o){const e=a-u-d.row+1;i[0]+e<0?i[0]+=u:i[0]-=u?e:0}else if("left"===o){const e=h-u-d.col+1;i[1]+e<0?i[1]+=u:i[1]-=u?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:o,foundMergedCells:s,fillSize:r,dragArea:i,cycleLength:c}),i}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,r.extend)(this.currentFillData,e)}getAutofillSize(e,t,o){const[s,i,r,n]=e,[l,a,h,c]=t;switch(o){case"up":return s-l;case"down":return h-r;case"left":return i-a;case"right":return c-n;default:return null}}getDragArea(e,t,o){const[s,i,r,n]=e,[l,a,h,c]=t;switch(o){case"up":return[l,a,s-1,n];case"down":{const e=this.mergedCellsCollection.get(h,n);return[r+1,i,h+(e?e.rowspan-1:0),n]}case"left":return[l,a,r,i-1];case"right":{const e=this.mergedCellsCollection.get(h,n);return[s,n+(e?e.colspan-1:0),h,c]}default:return null}}getFarthestCollection(e,t,o,s){const[i,r,l,a]=e,h=["up","down"].indexOf(o)>-1,c=h?l:a,u=h?i:r,d=this.getAutofillSize(e,t,o),g=h?l-i+1:a-r+1,f=d-Math.floor(d/g)*g;let p=null,m=null,w=null;switch(o){case"up":p="includesVertically",w=c-f+1;break;case"left":p="includesHorizontally",w=c-f+1;break;case"down":p="includesVertically",w=u+f-1;break;case"right":p="includesHorizontally",w=u+f-1}return(0,n.arrayEach)(s,e=>{e[p](w)&&e.isFarther(m,o)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),o=this.currentFillData.foundMergedCells,s=this.currentFillData.dragDirection,i=(e,o)=>{switch(s){case"up":return e.row-o>=t.from.row;case"down":return e.row+e.rowspan-1+o<=t.to.row;case"left":return e.col-o>=t.from.column;case"right":return e.col+e.colspan-1+o<=t.to.column;default:return null}};let r=0,n=null,l=1;do{for(let e=0;e<o.length;e+=1){if(n=o[e],r=l*this.currentFillData.cycleLength,i(n,r))switch(s){case"up":this.plugin.mergedCellsCollection.add({row:n.row-r,rowspan:n.rowspan,col:n.col,colspan:n.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:n.row+r,rowspan:n.rowspan,col:n.col,colspan:n.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:n.row,rowspan:n.rowspan,col:n.col-r,colspan:n.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:n.row,rowspan:n.rowspan,col:n.col+r,colspan:n.colspan},!0)}e===o.length-1&&(l+=1)}}while(i(n,r));this.currentFillData=null,this.plugin.hot.render(),o.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},o={min:null,max:null};return(0,n.arrayEach)(e,e=>{const s=e[0],i=this.plugin.hot.propToCol(e[1]);(null===t.min||s<t.min)&&(t.min=s),(null===t.max||s>t.max)&&(t.max=s),(null===o.min||i<o.min)&&(o.min=i),(null===o.max||i>o.max)&&(o.max=i)}),{from:{row:t.min,column:o.min},to:{row:t.max,column:o.max}}}dragAreaOverlapsCollections(e,t,o){const s=this.getDragArea(e,t,o),[i,r,n,l]=s,a=this.plugin.hot._createCellCoords(i,r),h=this.plugin.hot._createCellCoords(n,l),c=this.plugin.hot._createCellRange(a,a,h);if(0===this.mergedCellsCollection.getWithinRange(c,!0).length)return!1;const u=this.mergedCellsCollection.getWithinRange(c,!1);return 0===u.length||("up"===o||"down"===o?!u.every(e=>{let{colspan:t}=e;return t===c.getWidth()}):!u.every(e=>{let{rowspan:t}=e;return t===c.getHeight()}))}}},72714:(e,t,o)=>{"use strict";var s=o(92754),i=o(721),r=o(9370).f,n=s("unscopables"),l=Array.prototype;void 0===l[n]&&r(l,n,{configurable:!0,value:i(null)}),e.exports=function(e){l[n][e]=!0}},72848:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(76549),n=o(89255),l=o(79501),a=o(13351),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),c=o(99086),u=o(19375),d=o(4649);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.PLUGIN_KEY="customBorders",m=t.PLUGIN_PRIORITY=90;var w=new WeakSet;class C extends r.BasePlugin{constructor(){super(...arguments),g(this,w),(0,i.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return m}isEnabled(){return!!this.hot.getSettings()[p]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>f(w,this,v).call(this,e)),this.addHook("init",()=>f(w,this,y).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let o=["top","bottom","start","end"],s=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),s=(0,u.normalizeBorder)(t));const i=(0,d.detectSelectionType)(e),r=(0,d.normalizeSelectionFactory)(i,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,a.arrayEach)(e,e=>{r(e).forAll((e,t)=>{(0,a.arrayEach)(o,o=>{this.prepareBorderFromCustomAdded(e,t,s,(0,u.toInlinePropName)(o))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),s=[];return(0,a.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,a.arrayEach)(this.savedBorders,o=>{o.row===e&&o.col===t&&s.push((0,u.denormalizeBorder)(o))})})}),s}clearBorders(e){e?this.setBorders(e):((0,a.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const o=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:o})}prepareBorderFromCustomAdded(e,t,o,s){const i=this.hot.countRows(),r=this.hot.countCols();if(e>=i||t>=r)return;let n=(0,u.createEmptyBorders)(e,t);o&&(n=(0,u.extendDefaultBorder)(n,o),(0,a.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(n.id===e.settings.id)return Object.assign(e.settings,o),n.id=e.settings.id,n.top=e.settings.top,n.bottom=e.settings.bottom,n.start=e.settings.start,n.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(n)),this.insertBorderIntoSettings(n,s)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),s=Math.min(e.to.col,this.hot.countCols()-1);(0,l.rangeEach)(e.from.row,o,o=>{(0,l.rangeEach)(e.from.col,s,s=>{const i=(0,u.createEmptyBorders)(o,s);let r=0;o===e.from.row&&(0,n.hasOwnProperty)(t,"top")&&(r+=1,i.top=t.top),o===e.to.row&&(0,n.hasOwnProperty)(t,"bottom")&&(r+=1,i.bottom=t.bottom),s===e.from.col&&(0,n.hasOwnProperty)(t,"start")&&(r+=1,i.start=t.start),s===e.to.col&&(0,n.hasOwnProperty)(t,"end")&&(r+=1,i.end=t.end),r>0&&(this.hot.setCellMeta(o,s,"borders",(0,u.denormalizeBorder)(i)),this.insertBorderIntoSettings(i))})})}removeAllBorders(e,t){const o=(0,u.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,s){let i=this.hot.getCellMeta(e,t).borders;if(i=i&&void 0!==i.border?(0,u.normalizeBorder)(i):(0,u.createEmptyBorders)(e,t),s){i[o]=(0,u.createSingleEmptyBorder)();if(4===this.countHide(i))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(i,o,s)||this.insertBorderIntoSettings(i),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(i))}}else{i[o]=(0,u.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(i,o,s)||this.insertBorderIntoSettings(i),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(i))}}prepareBorder(e,t,o){(0,a.arrayEach)(e,e=>{let{start:s,end:i}=e;if(s.row===i.row&&s.col===i.col)"noBorders"===t?this.removeAllBorders(s.row,s.col):this.setBorder(s.row,s.col,t,o);else switch(t){case"noBorders":(0,l.rangeEach)(s.col,i.col,e=>{(0,l.rangeEach)(s.row,i.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,l.rangeEach)(s.col,i.col,e=>{this.setBorder(s.row,e,t,o)});break;case"bottom":(0,l.rangeEach)(s.col,i.col,e=>{this.setBorder(i.row,e,t,o)});break;case"start":(0,l.rangeEach)(s.row,i.row,e=>{this.setBorder(e,s.col,t,o)});break;case"end":(0,l.rangeEach)(s.row,i.row,e=>{this.setBorder(e,i.col,t,o)})}})}createCustomBorders(e){(0,a.arrayEach)(e,e=>{const t=(0,u.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:o,start:s,end:i}=e,r=[t,o,s,i];return(0,a.arrayReduce)(r,(e,t)=>{let o=e;return t&&t.hide&&(o+=1),o},0)}clearBordersFromSelectionSettings(e){const t=(0,a.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,a.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,a.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,a.arrayEach)(this.savedBorders,(o,s)=>{if(e.id===o.id)return this.savedBorders[s]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,o){let s=!1;return(0,a.arrayEach)(this.hot.selection.highlight.customSelections,i=>{if(e.id===i.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(i);return(0,a.arrayEach)(e,e=>{e.toggleHiddenClass(t,o)}),s=!0,!1}}),s}checkCustomSelections(e,t,o){const s=this.countHide(e);let i=!1;return 4===s?(this.removeAllBorders(e.row,e.col),i=!0):(0,a.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){if(s.visualCellRange=t,s.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(s);(0,a.arrayEach)(t,t=>{t.changeBorderStyle(o,e)})}return i=!0,!1}}),i}changeBorderSettings(){const e=this.hot.getSettings()[p];if(Array.isArray(e)){const t=(0,n.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,u.hasLeftRightTypeOptions)(e),o=(0,u.hasStartEndTypeOptions)(e);if(t&&o)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function v(e){this.hot.getSettings()[p]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}function y(){this.changeBorderSettings()}t.CustomBorders=C},73016:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var s=o(76549),i=o(58741),r=o(13351),n=o(79501),l=o(43393);function a(e,t,o){h(e,t),t.set(e,o)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,o){return e.set(d(e,t),o),o}function u(e,t){return e.get(d(e,t))}function d(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const g=t.PLUGIN_KEY="manualRowResize",f=t.PLUGIN_PRIORITY=30,p="manualRowHeights";var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakSet;class x extends s.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=H),o.add(t),a(this,m,null),a(this,w,null),a(this,C,[]),a(this,v,null),a(this,y,null),a(this,E,null),a(this,S,null),a(this,R,null),a(this,b,this.hot.rootDocument.createElement("DIV")),a(this,_,this.hot.rootDocument.createElement("DIV")),a(this,T,!1),a(this,M,!1),a(this,I,0),a(this,O,null),a(this,N,void 0),a(this,A,void 0),(0,i.addClass)(u(b,this),"manualRowResizer"),(0,i.addClass)(u(_,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){this.enabled||(c(N,this,new l.PhysicalIndexToValueMap),u(N,this).addLocalHook("init",()=>d(H,this,F).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,u(N,this)),this.addHook("modifyRowHeight",(e,t)=>d(H,this,W).call(this,e,t)),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(A,this,u(N,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",p,u(N,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=this.hot.toPhysicalRow(e),s=Math.max(t,this.hot.stylesHandler.getDefaultRowHeight());return u(N,this).setValueAtIndex(o,s),s}getLastDesiredRowHeight(){return u(v,this)}setupHandlePosition(e){c(m,this,e);const{view:t}=this.hot,{_wt:o}=t,s=o.wtTable.getCoords(u(m,this)),l=s.row;if(l<0)return;const a=(0,i.outerWidth)(u(m,this)),h=u(m,this).getBoundingClientRect(),d=l<o.getSetting("fixedRowsTop"),g=l>=t.countNotHiddenRowIndexes(0,1)-o.getSetting("fixedRowsBottom");let f;d?f=o.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),s.row,s.col):g&&(f=o.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),s.row,s.col)),f||(f=o.wtOverlays.inlineStartOverlay.getRelativeCellPosition(u(m,this),s.row,s.col)),c(w,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(l)),c(C,this,[]);const p=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&p){const e=this.hot.getSelectedRange();(0,r.arrayEach)(e,e=>{const t=e.getTopStartCorner().row,o=e.getBottomStartCorner().row;(0,n.rangeEach)(t,o,e=>{u(C,this).includes(e)||u(C,this).push(e)})})}u(C,this).includes(u(w,this))||c(C,this,[u(w,this)]),c(R,this,f.top-6),c(S,this,parseInt(h.height,10)),u(b,this).style.top=`${u(R,this)+u(S,this)}px`,u(b,this).style[this.inlineDir]=`${f.start}px`,u(b,this).style.width=`${a}px`,this.hot.rootElement.appendChild(u(b,this))}refreshHandlePosition(){u(b,this).style.top=`${u(R,this)+u(v,this)}px`}setupGuidePosition(){const e=parseInt((0,i.outerWidth)(u(b,this)),10),t=parseInt(u(b,this).style[this.inlineDir],10)+e,o=this.hot.view.getTableWidth();(0,i.addClass)(u(b,this),"active"),(0,i.addClass)(u(_,this),"active"),u(_,this).style.top=u(b,this).style.top,u(_,this).style[this.inlineDir]=`${t}px`,u(_,this).style.width=o-e+"px",this.hot.rootElement.appendChild(u(_,this))}refreshGuidePosition(){u(_,this).style.top=u(b,this).style.top}hideHandleAndGuide(){(0,i.removeClass)(u(b,this),"active"),(0,i.removeClass)(u(_,this),"active")}checkIfRowHeader(e){const t=(0,i.closest)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:o,topInlineStartCornerOverlay:s,bottomInlineStartCornerOverlay:r}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.TBODY,s.clone.wtTable.TBODY,r.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&u(y,this)<t?t:u(y,this)}afterMouseDownTimeout(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,o)=>{const s=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==s&&c(y,this,s),this.setManualSize(t,u(y,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),o&&e()};if(u(I,this)>=2){u(C,this).length>1?((0,r.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,r.arrayEach)(u(C,this),e=>{t(e,!0)})}c(I,this,0),c(O,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",e=>d(H,this,P).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>d(H,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousemove",e=>d(H,this,D).call(this,e)),this.eventManager.addEventListener(t,"mouseup",()=>d(H,this,L).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(H,this,V).call(this))}destroy(){super.destroy()}}function P(e){if(!(0,i.isDetached)(e.target)&&!0!==u(M,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(u(T,this)||this.setupHandlePosition(t))}}function k(e){(0,i.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(u(m,this)),this.setupGuidePosition(),c(T,this,!0),null===u(O,this)&&(c(O,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(u(O,this))),c(I,this,u(I,this)+1),c(E,this,e.pageY),c(y,this,u(S,this)))}function D(e){u(T,this)&&(c(v,this,u(S,this)+(e.pageY-u(E,this))),(0,r.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition())}function L(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,o)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),o&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};if(u(T,this)){if(this.hideHandleAndGuide(),c(T,this,!1),u(y,this)!==u(S,this)){u(C,this).length>1?((0,r.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,r.arrayEach)(u(C,this),e=>{t(e,!0)})}this.setupHandlePosition(u(m,this))}}function V(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(u(b,this)),this.hot.rootElement.removeChild(u(_,this)),c(T,this,!1),c(M,this,!0),this.hot._registerImmediate(()=>{c(M,this,!1)})}function W(e,t){let o=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),s=u(N,this).getValueAtIndex(e);this.hot.getSettings()[g]&&s&&(o=s)}return o}function F(){const e=this.hot.getSettings()[g],t=this.loadManualRowHeights();this.hot.batchExecution(()=>{void 0!==t?t.forEach((e,t)=>{u(N,this).setValueAtIndex(t,e)}):Array.isArray(e)?(e.forEach((e,t)=>{u(N,this).setValueAtIndex(t,e)}),c(A,this,e)):!0===e&&Array.isArray(u(A,this))&&u(A,this).forEach((e,t)=>{u(N,this).setValueAtIndex(t,e)})},!0)}t.ManualRowResize=x},73044:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(97122),o(7678);var i=s(o(53726));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,i.default)(this,"count",0),(0,i.default)(this,"startColumn",null),(0,i.default)(this,"endColumn",null),(0,i.default)(this,"startPosition",null),(0,i.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:s,viewportWidth:i,columnWidth:r}=t;o>=s&&o+r<=s+(s>0?i+1:i)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:o,viewportWidth:s,inlineStartOffset:i,zeroBasedScrollOffset:r,totalColumns:n,needReverse:l,startPositions:a,columnWidth:h}=e;if(this.endColumn===n-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=a[this.endColumn]+h-a[this.startColumn-1];if(e<=s&&(this.startColumn-=1),e>=s)break}this.startPosition=null!==(t=a[this.startColumn])&&void 0!==t?t:null;const c=o+s-(r>0?s+1:s),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*i||o>a.at(-1)||-1*o-s>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endColumn&&(this.endColumn=n-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},73254:(e,t,o)=>{"use strict";var s=o(80121),i=o(19895),r=o(77181),n=o(94481);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 r(o),n(s),i(o)?(t?e(o,s):o.__proto__=s,o):o}}():void 0)},73369:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback(o,s){const r=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(s,t,r)}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(19375)},73424:(e,t,o)=>{"use strict";t.__esModule=!0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!n(e))throw Error(`No registered renderer found under "${e}" name`);return r(e)},t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)},o(88443);var s=o(65615);const{register:i,getItem:r,hasItem:n,getNames:l,getValues:a}=(0,s.staticRegister)("renderers");t.getRegisteredRenderers=a,t.getRegisteredRendererNames=l,t.hasRenderer=n},73620:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(29731),o(73741),o(7307),o(69326),o(90795);var i=s(o(53726)),r=o(76549),n=o(13351),l=o(5455),a=o(35359),h=o(79501),c=o(58741),u=o(95977),d=o(72365),g=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),f=o(79490),p=o(12254),m=o(92534),w=o(84124),C=s(o(1478)),v=s(o(83433)),y=s(o(12741)),E=o(70026),S=o(42515),R=o(83026),b=o(43393);function _(e,t,o){T(e,t),t.set(e,o)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t,o){return e.set(O(e,t),o),o}function I(e,t){return e.get(O(e,t))}function O(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const N=t.PLUGIN_KEY="filters",A=t.PLUGIN_PRIORITY=250,H=N;var x=new WeakMap,P=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends r.BasePlugin{static get PLUGIN_KEY(){return N}static get PLUGIN_PRIORITY(){return A}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,o,s;super(e),t=this,T(o=this,s=D),s.add(o),(0,i.default)(this,"dropdownMenuPlugin",null),(0,i.default)(this,"conditionCollection",null),(0,i.default)(this,"conditionUpdateObserver",null),(0,i.default)(this,"components",new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]])),(0,i.default)(this,"filtersRowsMap",null),_(this,x,void 0),_(this,P,new WeakSet),_(this,k,[]),this.hot.addHook("afterGetColHeader",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return O(D,t,G).call(t,...o)})}isEnabled(){return!!this.hot.getSettings()[N]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new b.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,o=t&&t.uiContainer||this.hot.rootPortalElement,s=e=>(e.addLocalHook("accept",()=>O(D,this,Y).call(this,"accept")),e.addLocalHook("cancel",()=>O(D,this,Y).call(this,"cancel")),e.addLocalHook("change",t=>O(D,this,j).call(this,e,t)),e),i=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_CONDITION)}:`,r=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_VALUE)}:`;if(!this.components.get("filter_by_condition")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition",name:i,addSeparator:!1,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition",s(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new p.OperatorsComponent(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition2",s(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",s(new m.ValueComponent(this.hot,{id:"filter_by_value",name:r}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",s(new w.ActionBarComponent(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new C.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new y.default(this.hot,this.conditionCollection,e=>this.getDataMapAtColumn(e)),this.conditionUpdateObserver.addLocalHook("update",e=>O(D,this,$).call(this,e))),this.components.forEach(e=>e.show()),this.addHook("afterDropdownMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return O(D,e,U).call(e,...o)}),this.addHook("beforeDropdownMenuShow",()=>O(D,this,B).call(this)),this.addHook("afterDropdownMenuShow",()=>O(D,this,W).call(this)),this.addHook("afterDropdownMenuHide",()=>O(D,this,F).call(this)),this.addHook("afterChange",e=>O(D,this,V).call(this,e)),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!I(x,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=I(x,this).getMenu(),t=e.getNavigator(),o=I(x,this).getLastMenuPage();e.focus(),o>0?t.setCurrentPage(o):t.toFirstItem()}},...Array.from(this.components).map(e=>{let[,t]=e;return t.getElements()}).flat()];M(x,this,(0,S.createMenuFocusController)(this.dropdownMenuPlugin.menu,e));const t=e=>{I(x,this).listen(),e.preventDefault(),(0,u.isKey)(e.keyCode,"TAB")&&(e.shiftKey?I(x,this).toPreviousItem():I(x,this).toNextItem())};this.components.get("filter_by_value").addLocalHook("listTabKeydown",t),this.components.get("filter_by_condition").addLocalHook("selectTabKeydown",t)}this.registerShortcuts(),super.enablePlugin()}disablePlugin(){var e;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((e,t)=>{e.destroy(),this.components.set(t,null)}),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Alt","A"]],stopPropagation:!0,callback:()=>{const e=this.hot.getSelected();this.clearConditions(),this.filter(),e&&this.hot.selectCells(e)},group:H})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(H)}addCondition(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R.OPERATION_AND;const i=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(i,{command:{key:t},args:o},s)}removeConditions(e){const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}clearConditions(e){if(void 0===e)this.conditionCollection.clean();else{const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}importConditions(e){this.conditionCollection.importAllConditions(e)}exportConditions(){return this.conditionCollection.exportAllConditions()}filter(){const{navigableHeaders:e}=this.hot.getSettings(),t=this._createDataFilter(),o=!this.conditionCollection.isEmpty();let s=[];const i=this.exportConditions(),r=this.hot.runHooks("beforeFilter",i,I(k,this));if(!1!==r&&o){const o=[];this.hot.batchExecution(()=>{this.filtersRowsMap.clear(),s=(0,n.arrayMap)(t.filter(),e=>e.meta.visualRow);const e=(0,E.createArrayAssertion)(s);(0,h.rangeEach)(this.hot.countSourceRows()-1,t=>{e(t)||o.push(t)}),(0,n.arrayEach)(o,e=>{this.filtersRowsMap.setValueAtIndex(e,!0)})},!0),e||s.length||this.hot.deselectCell(),M(k,this,this.exportConditions())}else!1===r||o?this.importConditions(I(k,this)):(M(k,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeLast().highlight.col),!1!==r&&(this.hot.runHooks("afterFilter",i),this.hot.view.adjustElementsSize(),this.hot.render())}getSelectedColumn(){var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}getDataMapAtColumn(e){const t=this.hot.toVisualColumn(e),o=[];return(0,n.arrayEach)(this.hot.getSourceDataAtCol(t),(e,s)=>{var i;const{row:r,col:n,visualCol:l,visualRow:a,type:h,instance:c,dateFormat:u,locale:d}=this.hot.getCellMeta(s,t),g=null!==(i=this.hot.getDataAtCell(this.hot.toVisualRow(s),t))&&void 0!==i?i:e;o.push({meta:{row:r,col:n,visualCol:l,visualRow:a,type:h,instance:c,dateFormat:u,locale:d},value:(0,E.toEmptyString)(g)})}),o}updateValueComponentCondition(e){const t=this.hot.getDataAtCol(e),o=(0,E.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,o)}restoreComponents(e){var t;const o=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach(e=>{e.isHidden()||e.restoreState(o)}),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,o,s){let i=e;return i===R.OPERATION_OR&&t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE&&s.command.key!==R.CONDITION_NONE?i=R.OPERATION_OR_THEN_VARIABLE:s.command.key!==R.CONDITION_NONE&&(t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE||(i=R.OPERATION_AND)),i}setListeningDropdownMenu(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}updateDependentComponentsVisibility(){const e=this.components.get("filter_by_condition"),{command:t}=e.getState(),o=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...o):this.hideComponents(...o)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new v.default(e,e=>this.getDataMapAtColumn(e))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return(0,n.arrayEach)(s,o=>{(0,n.arrayEach)(t.menuItems,(t,s)=>{t.key===o.getMenuItemDescriptor().key&&e.push(s)})}),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,o=t.getPlugin("hiddenRows");for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];const n=this.getIndexesOfComponents(...i);e?o.showRows(n):o.hideRows(n),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!0,...t)}destroy(){this.enabled&&(this.components.forEach((e,t)=>{null!==e&&(e.destroy(),this.components.set(t,null))}),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),super.destroy()}}function V(e){e&&(0,n.arrayEach)(e,e=>{const[,t]=e,o=this.hot.propToCol(t);this.conditionCollection.hasConditions(o)&&this.updateValueComponentCondition(o)})}function W(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function F(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function B(){const e=this.dropdownMenuPlugin.menu;I(P,this).has(e)||I(x,this).setMenu(e),I(P,this).add(e)}function U(e){e.items.push({name:d.SEPARATOR}),this.components.forEach(t=>{e.items.push(t.getMenuItemDescriptor())})}function Y(e){var t;if("accept"===e){const e=this.getSelectedColumn();var o;if(null===e)return void(null===(o=this.dropdownMenuPlugin)||void 0===o||o.close());const{physicalIndex:t}=e,s=this.components.get("filter_by_condition").getState(),i=this.components.get("filter_by_condition2").getState(),r=this.components.get("filter_by_value").getState(),n=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),s,i,r);this.conditionUpdateObserver.groupChanges();let l=this.conditionCollection.getColumnStackPosition(t);-1===l&&(l=void 0),this.conditionCollection.removeConditions(t),s.command.key!==R.CONDITION_NONE&&(this.conditionCollection.addCondition(t,s,n,l),i.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,i,n,l)),r.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,r,n,l),this.conditionUpdateObserver.flush(),this.components.forEach(e=>e.saveState(t)),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function j(e,t){const o=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==f.ConditionComponent||t.inputsCount||this.setListeningDropdownMenu(),o.updateMenuDimensions()}function z(){this.setListeningDropdownMenu()}function G(e,t,o){const s=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(s)&&o===this.hot.view.getColumnHeadersCount()-1?(0,c.addClass)(t,"htFiltersActive"):(0,c.removeClass)(t,"htFiltersActive")}function $(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:o,column:s},conditionArgsChange:i}=e;Array.isArray(i)&&M(k,this,I(k,this).map(e=>(e.column===s&&o.length>0&&e.conditions.forEach(e=>{"by_value"===e.name&&(e.args=[[...i]])}),e)));const r=o.filter(e=>e.name===R.CONDITION_BY_VALUE),n=o.filter(e=>e.name!==R.CONDITION_BY_VALUE);if(r.length>=2||n.length>=3)(0,a.warn)(l.toSingleLine`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
65
65
  The overall amount of conditions exceed the capability of the dropdown menu.\x20
@@ -68,7 +68,7 @@
68
68
  turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&(0,h.setAttribute)(this.rootNode,[(0,c.A11Y_ROWGROUP)()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let s=0;s<e;s++){this.orderView.render();const e=this.orderView.getCurrentNode(),i=this.table.renderedRowToSource(s);var t,o;if(this.table.isAriaEnabled())(0,h.setAttribute)(e,[(0,c.A11Y_ROW)(),(0,c.A11Y_ROWINDEX)(i+(null!==(t=null===(o=this.table.rowUtils)||void 0===o||null===(o=o.dataAccessObject)||void 0===o?void 0:o.columnHeaders.length)&&void 0!==t?t:0)+1)]);(i+1)%2==0?(0,h.hasClass)(e,u)||((0,h.removeClass)(e,d),(0,h.addClass)(e,u)):(0,h.hasClass)(e,d)||((0,h.removeClass)(e,u),(0,h.addClass)(e,d))}this.orderView.end()}}t.RowsRenderer=f},78332:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(58501);t.CELL_TYPE=s.CELL_TYPE,t.TextCellType=s.TextCellType},78449:(e,t,o)=>{"use strict";var s=o(60423);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 i=o.length;for(;i;){i-=1;const t=(0,r.stringify)(o[i]).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=n,t.stripTags=function(e){return n(`${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(85639);var i=s(o(65166)),r=o(97213);function n(e,t){return i.default.sanitize(e,t)}},78484:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(86713),n=o(77618),l=o(74218),a=o(59165),h=o(46963),c=o(63884),u=o(8302),d=o(15435),g=o(69498),f=!u&&!d("flatMap",function(){}),p=!u&&!f&&g("flatMap",TypeError),m=u||f||p,w=h(function(){for(var e,t,o=this.iterator,s=this.mapper;;){if(t=this.inner)try{if(!(e=n(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=n(i(this.next,o)),this.done=!!e.done)return;try{this.inner=a(s(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}});s({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){n(this);try{r(e)}catch(e){c(this,"throw",e)}return p?i(p,this,e):new w(l(this),{mapper:e,inner:null})}})},78495:(e,t,o)=>{"use strict";var s=o(76277),i=o(82314),r=o(86977);s({target:"Set",proto:!0,real:!0,forced:!o(93295)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:r})},78675:(e,t,o)=>{"use strict";var s=o(76277),i=o(61533),r=o(96068);s({target:"Set",proto:!0,real:!0,forced:!o(93295)("union")||!r("union")},{union:i})},78854:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(58741),n=s(o(67746)),l=o(37837),a=o(13803),h=o(17136);class c extends l.Overlay{constructor(e,t,o,s){super(e,t,h.CLONE_TOP,o,s),(0,i.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,o=this.wtSettings.getSetting("preventOverflow");let s=0,i=!1;if(this.trimmingContainer!==t||o&&"vertical"===o)s=this.getScrollPosition(),(0,r.resetCssTransform)(e);else{const{wtTable:t}=this.wot,o=t.hider.getBoundingClientRect();i=Math.ceil(o.bottom)===e.offsetHeight,s=this.getOverlayOffset(),(0,r.setOverlayPosition)(e,"0px",`${s}px`)}const n=this.adjustHeaderBordersPosition(s,i);return this.adjustElementsSize(),n}setScrollPosition(e){const{rootWindow:t}=this.domBindings,o=this.mainTableScrollableElement;let s=!1;if(o===t&&e!==t.scrollY){const o=t.scrollY;t.scrollTo((0,r.getWindowScrollLeft)(t),e),s=o!==t.scrollY}else if(e!==o.scrollTop){const t=o.scrollTop;o.scrollTop=e,s=t!==o.scrollTop}return s}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s=e,i=0;for(;s<t;){const e=this.wot.wtTable.getRowHeight(s);i+=void 0===e?o:e,s+=1}return i}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:s}=this.domBindings,i=this.clone.wtTable.holder.parentNode.style,n=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==s||"horizontal"===n){let s=t.getWorkspaceWidth();t.hasVerticalScroll()&&(s-=(0,r.getScrollbarWidth)(o)),s=Math.min(s,e.wtRootElement.scrollWidth),i.width=`${s}px`}else i.width="";this.clone.wtTable.holder.style.width=i.width;let l=(0,r.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(l=0),i.height=`${l}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:o,wtSettings:s}=this,i=(o.cloneSource?o.cloneSource:o).wtTable.holder,n=s.getSetting("columnHeaders"),l=0===s.getSetting("fixedRowsTop")&&n.length>0&&!(0,r.hasClass)(i.parentNode,"innerBorderTop")?1:0;let a=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&i.offsetHeight!==i.clientHeight&&(h=(0,r.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=s.getSetting("fixedRowsBottom"),i=s.getSetting("totalRows");a+=this.sumCellSizes(0,e+1),a-=o.wtViewport.getViewportHeight()-this.sumCellSizes(i-t,i),a+=1,a+=l}else a+=this.sumCellSizes(s.getSetting("fixedRowsTop"),e);return a+=h,(0,r.getMaximumScrollTop)(this.mainTableScrollableElement)===a-l&&l>0&&this.wot.wtOverlays.expandHiderVerticallyBy(l),this.setScrollPosition(a)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,r.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();o=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),o>e&&(o=0)}return o}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:o}=this,s=this.wot.wtTable.holder.parentNode,i=o.getSetting("totalColumns"),n="horizontal"===o.getSetting("preventOverflow");i?(0,r.removeClass)(s,"emptyColumns"):(0,r.addClass)(s,"emptyColumns");let l=!1;if(!t&&!n){const t=o.getSetting("fixedRowsTop"),i=this.cachedFixedRowsTop!==t,n=o.getSetting("columnHeaders");if((i||0===t)&&n.length>0){const t=(0,r.hasClass)(s,"innerBorderTop");this.cachedFixedRowsTop=o.getSetting("fixedRowsTop"),e||0===o.getSetting("totalRows")?((0,r.addClass)(s,"innerBorderTop"),l=!t):((0,r.removeClass)(s,"innerBorderTop"),l=t)}}return l}}t.TopOverlay=c},78980:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueSet=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=(0,s.isFunction)(e)?e:i,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var s=o(30848);const i=e=>`'${e}' value is already declared in a unique set.`},79359:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307),o(69326);var i=s(o(53726)),r=o(89678),n=o(83080),l=o(89255),a=o(13351),h=o(79501),c=o(97213);class u{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,o){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"metaManager",void 0),(0,i.default)(this,"tableMeta",void 0),(0,i.default)(this,"dataSource",void 0),(0,i.default)(this,"duckSchema",void 0),(0,i.default)(this,"colToPropCache",void 0),(0,i.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=o,this.tableMeta=o.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let o;if(this.colToPropCache=[],this.propToColCache=new Map,t){let s=0,i=0,r=!1;if("function"==typeof t){const t=(0,l.deepObjectSize)(e);s=t>0?t:this.countFirstRowKeys(),r=!0}else{const e=this.tableMeta.maxCols;s=Math.min(e,t.length)}for(o=0;o<s;o++){const e=r?t(o):t[o];if((0,l.isObject)(e)){if(void 0!==e.data){const t=r?i:o;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}i+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,n.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,o){let s,i=t,r=o;return void 0===i&&(i=0,r=""),"object"!=typeof e||Array.isArray(e)||(0,l.objectEach)(e,(e,t)=>{null===e?(s=r+t,this.colToPropCache.push(s),this.propToColCache.set(s,i),i+=1):i=this.recursiveDuckColumns(e,i,`${t}.`)}),i}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,c.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,c.isDefined)(t))return this.hot.toVisualColumn(t);const o=this.hot.toVisualColumn(e);return null===o?e:o}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,l.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:s="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.hot.countSourceRows();let r=i,n=0,a=e;("number"!=typeof a||a>=i)&&(a=i),a<this.hot.countRows()&&(r=this.hot.toPhysicalRow(a));if(!1===this.hot.runHooks("beforeCreateRow",a,t,o)||null===r)return{delta:0};const c=this.tableMeta.maxRows,u=this.getSchema().length,d=[];for(;n<t&&i+n<c;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,l.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(u-1,()=>e.push(null))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(a+n):(e={},(0,l.deepExtend)(e,this.getSchema())),d.push(e),n+=1}this.hot.rowIndexMapper.insertIndexes(a,n),"below"===s&&(r=Math.min(r+1,i)),this.spliceData(r,0,d);const g=this.hot.toVisualRow(r);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),n>0&&(null==e?this.metaManager.createRow(null,n):"auto"!==o&&this.metaManager.createRow(r,t)),this.hot.runHooks("afterCreateRow",g,n,o),{delta:n,startPhysicalIndex:r}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:s="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const i=this.dataSource,r=this.tableMeta.maxCols,n=this.hot.countSourceCols(),l=this.hot.countCols(),a=this.hot.countSourceRows(),h="number"==typeof e&&e<=n?e:l;if(!1===this.hot.runHooks("beforeCreateCol",h,t,o))return{delta:0};const c=h<l?this.hot.toPhysicalColumn(h):n,u="end"===s?Math.min(c+1,n):c;let d=0;for(let e=u;d<t&&l+d<r;e++){if("number"!=typeof h||h>=l+d)if(a>0)for(let e=0;e<a;e+=1)void 0===i[e]&&(i[e]=[]),i[e].push(null);else i.push([null]);else for(let t=0;t<a;t++)i[t].splice(e,0,null);d+=1}return d>0&&(null==e?this.metaManager.createColumn(null,d):"auto"!==o&&this.metaManager.createColumn(u,t)),this.hot.columnIndexMapper.insertIndexes(h,d,s),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(u),d,o),this.refreshDuckSchema(),{delta:d,startPhysicalIndex:u}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0,s=Number.isInteger(e)?e:-t;const i=this.visualRowsToPhysical(s,t),r=this.hot.countSourceRows();s=(r+s)%r;if(!1===this.hot.runHooks("beforeRemoveRow",s,i.length,i,o))return!1;const n=i.length;if(this.filterData(s,n,i),s<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(i);const e=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return i.slice(0).sort((e,t)=>t-e).forEach(e=>{this.metaManager.removeRow(e,1)}),this.hot.runHooks("afterRemoveRow",s,n,i,o),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let s="number"!=typeof e?-t:e;s=(this.hot.countCols()+s)%this.hot.countCols();const i=this.visualColumnsToPhysical(s,t),r=i.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",s,t,i,o))return!1;let n=!0;const l=r.length,a=this.dataSource;for(let e=0;e<l;e++)n&&i[0]!==i[e]-e&&(n=!1);if(n)for(let e=0,o=this.hot.countSourceRows();e<o;e++)a[e].splice(i[0],t),0===e&&this.metaManager.removeColumn(i[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<l;t++)a[e].splice(r[t],1),0===e&&this.metaManager.removeColumn(r[t],1);return s<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(i),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",s,t,i,o),this.refreshDuckSchema(),!0}spliceCol(e,t,o){const s=this.hot.getDataAtCol(e),i=s.slice(t,t+o),r=s.slice(t+o);for(var n=arguments.length,l=new Array(n>3?n-3:0),h=3;h<n;h++)l[h-3]=arguments[h];(0,a.extendArray)(l,r);let c=0;for(;c<o;)l.push(null),c+=1;return(0,a.to2dArray)(l),this.hot.populateFromArray(t,e,l,null,null,"spliceCol"),i}spliceRow(e,t,o){const s=this.hot.getSourceDataAtRow(e),i=s.slice(t,t+o),r=s.slice(t+o);for(var n=arguments.length,l=new Array(n>3?n-3:0),h=3;h<n;h++)l[h-3]=arguments[h];(0,a.extendArray)(l,r);let c=0;for(;c<o;)l.push(null),c+=1;return this.hot.populateFromArray(e,t,[l],null,null,"spliceRow"),i}spliceData(e,t,o){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,o)){const t=[...this.dataSource.slice(0,e),...o,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,o){let s=this.hot.runHooks("filterData",e,t,o);!1===Array.isArray(s)&&(s=this.dataSource.filter((e,t)=>-1===o.indexOf(t))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,s)}get(e,t){const o=this.hot.toPhysicalRow(e);let s=this.dataSource[o];const i=this.hot.runHooks("modifyRowData",o);s=isNaN(i)?i:s;const{dataDotNotation:r}=this.hot.getSettings();let n=null;if(s&&s.hasOwnProperty&&(0,l.hasOwnProperty)(s,t))n=s[t];else if(r&&"string"==typeof t&&t.indexOf(".")>-1){let e=s;if(!e)return null;const o=t.split(".");for(let t=0,s=o.length;t<s;t++)if(e=e[o[t]],void 0===e)return null;n=e}else"function"==typeof t&&(n=t(this.dataSource.slice(o,o+1)[0]));if(this.hot.hasHook("modifyData")){const o=(0,l.createObjectPropListener)(n);this.hot.runHooks("modifyData",e,this.propToCol(t),o,"get"),o.isTouched()&&(n=o.value)}return n}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,o){const s=this.hot.toPhysicalRow(e);let i=o,r=this.dataSource[s];const n=this.hot.runHooks("modifyRowData",s);if(r=isNaN(n)?n:r,this.hot.hasHook("modifyData")){const o=(0,l.createObjectPropListener)(i);this.hot.runHooks("modifyData",e,this.propToCol(t),o,"set"),o.isTouched()&&(i=o.value)}const{dataDotNotation:a}=this.hot.getSettings();if(r&&r.hasOwnProperty&&(0,l.hasOwnProperty)(r,t))r[t]=i;else if(a&&"string"==typeof t&&t.indexOf(".")>-1){let e,o=r,s=0;const n=t.split(".");for(s=0,e=n.length-1;s<e;s++){if("__proto__"===n[s]||"constructor"===n[s]||"prototype"===n[s])return;void 0===o[n[s]]&&(o[n[s]]={}),o=o[n[s]]}o[n[s]]=i}else if("function"==typeof t)t(this.dataSource.slice(s,s+1)[0],i);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;r[t]=i}}visualRowsToPhysical(e,t){const o=this.hot.countSourceRows(),s=[];let i,r=(o+e)%o,n=t;for(;r<o&&n;)i=this.hot.toPhysicalRow(r),s.push(i),n-=1,r+=1;return s}visualColumnsToPhysical(e,t){const o=this.hot.countCols(),s=[];let i=(o+e)%o,r=t;for(;i<o&&r;){const e=this.hot.toPhysicalColumn(i);s.push(e),r-=1,i+=1}return s}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(o,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!==0||this.hot.countSourceRows()?this.getRange(e,t,u.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,o){const s=[];let i,r,n;const l=this.tableMeta.maxRows,a=this.tableMeta.maxCols;if(0===l||0===a)return[];const h=o===u.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(l-1,0),Math.max(e.row,t.row)),d=Math.min(Math.max(a-1,0),Math.max(e.col,t.col));for(i=Math.min(e.row,t.row);i<=c;i++){n=[];const o=i>=0?this.hot.toPhysicalRow(i):i;for(r=Math.min(e.col,t.col);r<=d&&null!==o;r++)n.push(h.call(this,i,this.colToProp(r)));null!==o&&s.push(n)}return s}getText(e,t){return(0,r.stringify)(this.getRange(e,t,u.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,r.stringify)(this.getRange(e,t,u.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}t.default=u},79450:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(10832);t.EDITOR_TYPE=s.EDITOR_TYPE,t.HandsontableEditor=s.HandsontableEditor},79454:(e,t,o)=>{"use strict";var s=o(76277),i=o(88005),r=o(17734),n=o(77618),l=o(6996),a=o(15058),h=o(45021),c=o(281),u=o(82314),d=o(54090),g=o(92754),f=o(41626).IteratorPrototype,p=o(39157),m=o(8302),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,E=i[C],S=m||!l(E)||E.prototype!==f||!u(function(){E({})}),R=function(){if(r(this,f),a(this)===f)throw new y("Abstract class Iterator not directly constructable")},b=function(e,t){p?h(f,e,{configurable:!0,get:function(){return t},set:function(t){if(n(this),this===f)throw new y("You can't redefine this property");d(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};d(f,v)||b(v,C),!S&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,s({global:!0,constructor:!0,forced:S},{Iterator:R})},79490:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307);var i=s(o(53726)),r=o(58741),n=o(66497),l=o(13351),a=o(95977),h=o(89255),c=m(o(16372)),u=o(74459),d=m(o(83026)),g=o(29170),f=o(61072),p=o(85296);function m(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n})(e,t)}function w(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var v=new WeakSet;class y extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),w(this,v),(0,i.default)(this,"name",""),(0,i.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new f.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>C(v,this,E).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,l.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>C(v,this,S).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(c.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,l.arrayEach)(e.args,(e,o)=>{if(o>t.inputsCount-1)return!1;const s=this.getInputElement(o);s.setValue(e),s[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout(()=>s.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,l.arrayEach)(this.getInputElements(),(o,s)=>{e.inputsCount>s&&t.push(o.getValue())}),{command:e,args:t}}updateState(e,t){const o=e?(0,p.getConditionDescriptor)(e.name):(0,p.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:o,args:e?e.args:[]}),e||(0,l.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof f.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof g.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,i,n)=>{(0,r.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,r.addClass)(t.parentNode,"border");const a=this.hot.rootDocument.createElement("div");return(0,r.addClass)(a,"htFiltersMenuLabel"),a.textContent=n,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,p.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:o}=e;t=(0,d.default)(this.hot.getDataType(0,o,this.hot.countRows(),o))}(0,l.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function E(e){(0,l.arrayEach)(this.getInputElements(),(t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function S(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,n.stopImmediatePropagation)(e))}t.ConditionComponent=y},79501:(e,t,o)=>{"use strict";function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=typeof e;if("number"===o)return!isNaN(e)&&isFinite(e);if("string"===o){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const o=Array.from(new Set([".",...t])).map(e=>`\\${e}`).join("|");return new RegExp(`^[+-]?(((${o})?\\d+((${o})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===o&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}t.__esModule=!0,t.clamp=function(e,t,o){if(Math.min(e,t)===e)return t;if(Math.max(e,o)===e)return o;return e},t.isNumeric=s,t.isNumericLike=function(e){return s(e,[","])},t.rangeEach=function(e,t,o){let s=-1;"function"==typeof t?(o=t,t=e):s=e-1;for(;++s<=t&&!1!==o(s););},t.rangeEachReverse=function(e,t,o){let s=e+1;"function"==typeof t&&(o=t,t=0);for(;--s>=t&&!1!==o(s););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(90795)},79750:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(70868);t.EDITOR_TYPE=s.EDITOR_TYPE,t.TimeEditor=s.TimeEditor},80103:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),s=o?e.countColHeaders():0,{row:i}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+s;r=0===r?-1:-r,i===-s?r=-1:i+r<s&&(r=-(i+s)),t.markSource("keyboard"),t.transformStart(r,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},80121:(e,t,o)=>{"use strict";var s=o(25225),i=o(86713);e.exports=function(e,t,o){try{return s(i(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},80221:(e,t,o)=>{"use strict";var s=o(6996),i=o(9370),r=o(57754),n=o(61958);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:n(t,o);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=o:i.f(e,t,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},80277:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.getListenersCounter=function(){return n},o(85639);var i=s(o(53726)),r=o(66497);let n=0;t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,i.default)(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){o.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,r.stopImmediatePropagation)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:o,callbackProxy:i,options:s,eventManager:this}),e.addEventListener(t,i,s),n+=1,()=>{this.removeEventListener(e,t,o)}}removeEventListener(e,t,o){let s,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.context.eventListeners.length;for(;r;)if(r-=1,s=this.context.eventListeners[r],s.event===t&&s.element===e){if(o&&o!==s.callback)continue;if(i&&s.eventManager!==this)continue;this.context.eventListeners.splice(r,1),s.element.removeEventListener(s.event,s.callbackProxy,s.options),n-=1}}clearEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;const o=this.context.eventListeners[t];e&&o.eventManager!==this||(this.context.eventListeners.splice(t,1),o.element.removeEventListener(o.event,o.callbackProxy,o.options),n-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let o=e.document,s=e;o||(o=e.ownerDocument?e.ownerDocument:e,s=o.defaultView);const i={bubbles:!0,cancelable:"mousemove"!==t,view:s,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let r;o.createEvent?(r=o.createEvent("MouseEvents"),r.initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||o.body.parentNode)):r=o.createEventObject(),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent(`on${t}`,r)}}},80300:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(27222),i=o(13351);class r extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,i.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=r},80578:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(22121);t.OrderView=s.OrderView;var i=o(1024);t.SharedOrderView=i.SharedOrderView},81341:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t,o){(0,i.default)(this,"offset",void 0),(0,i.default)(this,"total",void 0),(0,i.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=o}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},81780:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},81937:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(27810);class n extends r.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,i.default)(this,"columnStartOffset",0),(0,i.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:s,startPositions:i}=e;if(null!==this.startColumn&&"function"==typeof o){const e=this.startColumn,t=this.endColumn;o(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=i[this.startColumn])&&void 0!==t?t:null,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=n},82055:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28652);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CollapsibleColumns=s.CollapsibleColumns},82141:(e,t,o)=>{"use strict";o(72048)},82144:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(4409);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.numericValidator=s.numericValidator},82314:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},82419:(e,t,o)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.SEPARATOR,o=e.slice(0);return o=l(o,t),o=function(e,t){let o=e.slice(0);return o.reverse(),o=l(o,t),o.reverse(),o}(o,t),o=function(e){const t=[];return(0,s.arrayEach)(e,(e,o)=>{o>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(o),o},t.hasSubMenu=function(e){return(0,r.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,r.hasClass)(e,"htDisabled")},t.isItemCheckable=function(e){return!0===e.checkable},t.isItemDisabled=function(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isItemSelectionDisabled=function(e){return(0,i.hasOwnProperty)(e,"disableSelection")},t.isItemSeparator=function(e){return new RegExp(n.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,i.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,r.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,r.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,s.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},o(85639);var s=o(13351),i=o(89255),r=o(58741),n=o(72365);function l(e,t){const o=e.slice(0);for(let e=0;e<o.length&&o[e].name===t;)o.shift();return o}},82498:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(58741),i=o(30848),r=o(46092),n=o(8874),l=o(97213);function a(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap;t.default=class{constructor(e,t,o,s,i,r){let n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;a(this,d,void 0),a(this,g,void 0),a(this,f,void 0),a(this,p,void 0),a(this,m,void 0),a(this,w,void 0),a(this,C,void 0),a(this,v,void 0),a(this,y,[null,null]),a(this,E,[null,null]),c(d,this,o),c(g,this,t),c(f,this,i),c(p,this,r),c(m,this,n),c(w,this,s),c(C,this,e),this.registerEvents()}registerEvents(){h(w,this).addEventListener(h(f,this).holder,"contextmenu",e=>this.onContextMenu(e)),h(w,this).addEventListener(h(f,this).TABLE,"mouseover",e=>this.onMouseOver(e)),h(w,this).addEventListener(h(f,this).TABLE,"mouseout",e=>this.onMouseOut(e));const e=()=>{h(w,this).addEventListener(h(f,this).holder,"touchstart",e=>this.onTouchStart(e)),h(w,this).addEventListener(h(f,this).holder,"touchend",e=>this.onTouchEnd(e)),this.momentumScrolling||(this.momentumScrolling={}),h(w,this).addEventListener(h(f,this).holder,"scroll",()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||h(d,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout(()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,h(d,this).getSetting("onAfterMomentumScroll"))},200)})},t=()=>{h(w,this).addEventListener(h(f,this).holder,"mouseup",e=>this.onMouseUp(e)),h(w,this).addEventListener(h(f,this).holder,"mousedown",e=>this.onMouseDown(e))};(0,n.isMobileBrowser)()?e():((0,r.isTouchSupported)()&&e(),t())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(h(v,this)&&t){const[e,o]=[t.row,h(v,this).from.row],[s,i]=[t.col,h(v,this).from.col];return e===o&&s===i}return!1}parentCell(e){const t={},o=h(f,this).TABLE,i=(0,s.closestDown)(e,["TD","TH"],o);return i?(t.coords=h(f,this).getCoords(i),t.TD=i):(0,s.hasClass)(e,"wtBorder")&&(0,s.hasClass)(e,"current")?(t.coords=h(p,this).getFocusSelection().cellRange.highlight,t.TD=h(f,this).getCell(t.coords)):(0,s.hasClass)(e,"wtBorder")&&(0,s.hasClass)(e,"area")&&h(p,this).getAreaSelection().cellRange&&(t.coords=h(p,this).getAreaSelection().cellRange.to,t.TD=h(f,this).getCell(t.coords)),t}onMouseDown(e){const t=h(g,this).rootDocument.activeElement,o=(0,i.partial)(s.getParent,e.target),r=e.target;if(!["TD","TH"].includes(t.nodeName)&&(r===t||o(0)===t||o(1)===t))return;const n=this.parentCell(r);(0,s.hasClass)(r,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,r):n.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,n.coords,n.TD),(0===e.button||this.touchApplied)&&n.TD&&(h(E,this)[0]=n.TD,clearTimeout(h(y,this)[0]),h(y,this)[0]=setTimeout(()=>{h(E,this)[0]=null},1e3))}onContextMenu(e){if(h(d,this).has("onCellContextMenu")){const t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}onMouseOver(e){if(!h(d,this).has("onCellMouseOver"))return;const t=h(f,this).TABLE,o=(0,s.closestDown)(e.target,["TD","TH"],t),i=h(m,this)||this;o&&o!==i.lastMouseOver&&(0,s.isChildOf)(o,t)&&(i.lastMouseOver=o,this.callListener("onCellMouseOver",e,h(f,this).getCoords(o),o))}onMouseOut(e){if(!h(d,this).has("onCellMouseOut"))return;const t=h(f,this).TABLE,o=(0,s.closestDown)(e.target,["TD","TH"],t),i=(0,s.closestDown)(e.relatedTarget,["TD","TH"],t),r=h(m,this)||this;o&&o!==i&&(0,s.isChildOf)(o,t)&&(this.callListener("onCellMouseOut",e,h(f,this).getCoords(o),o),null===i&&(r.lastMouseOver=null))}onMouseUp(e){const t=this.parentCell(e.target);t.TD&&h(d,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,t.coords,t.TD),(0===e.button||this.touchApplied)&&(t.TD===h(E,this)[0]&&t.TD===h(E,this)[1]?((0,s.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),h(E,this)[0]=null,h(E,this)[1]=null):t.TD===h(E,this)[0]&&(h(E,this)[1]=t.TD,clearTimeout(h(y,this)[1]),h(y,this)[1]=setTimeout(()=>{h(E,this)[1]=null},500)))}onTouchStart(e){c(v,this,h(p,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const o=e.target,s=null===(t=this.parentCell(o))||void 0===t?void 0:t.coords,i=(0,l.isDefined)(s)&&s.row>=0&&s.col>=0;if(e.cancelable&&i&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,n.isIOS)()&&((0,n.isChromeWebKit)()||(0,n.isFirefoxWebKit)())&&this.selectedCellWasTouched(o)&&!t.includes(o.tagName)?e.preventDefault():this.selectedCellWasTouched(o)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,o,s){const i=h(d,this).getSettingPure(e);i&&i(t,o,s,h(C,this).call(this))}destroy(){clearTimeout(h(y,this)[0]),clearTimeout(h(y,this)[1]),h(w,this).destroy()}}},82504:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:s}=e.getSelectedRangeLast(),i=Math.min(s.row+e.countVisibleRows(),e.countRows()-1),r=o.getNearestNotHiddenIndex(i,-1);if(null!==r){const o=e._createCellCoords(r,s.col),i=s.row-e.getFirstFullyVisibleRow(),n=Math.min(o.row-i,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(o),t.markEndSource(),e.scrollViewportTo({row:n,verticalSnap:"top",horizontalSnap:"start"})}}}},82602:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.Cursor=class{constructor(e,t){(0,i.default)(this,"top",void 0),(0,i.default)(this,"topRelative",void 0),(0,i.default)(this,"left",void 0),(0,i.default)(this,"leftRelative",void 0),(0,i.default)(this,"scrollTop",void 0),(0,i.default)(this,"scrollLeft",void 0),(0,i.default)(this,"cellHeight",void 0),(0,i.default)(this,"cellWidth",void 0);const o=t.scrollY,s=t.scrollX;let r,n,l,a,h,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(r=parseInt(e.top,10),l=parseInt(e.left,10),h=e.height||0,c=e.width||0,n=r,a=l,r+=o,l+=s):"event"===this.type&&(r=parseInt(e.pageY,10),l=parseInt(e.pageX,10),h=e.target.clientHeight,c=e.target.clientWidth,n=r-o,a=l-s),this.top=r,this.topRelative=n,this.left=l,this.leftRelative=a,this.scrollTop=o,this.scrollLeft=s,this.cellHeight=h,this.cellWidth=c}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},82633:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,s=parseInt(e.getSettings().fixedColumnsStart,10),i=e.getSelectedRangeLast().highlight.row,r=o.getNearestNotHiddenIndex(s,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,r)),t.markEndSource()}}},82930:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=o(13351),r=s(o(52813));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap;t.default=class{constructor(e){var t,o,s;n(this,h,new Map),n(this,c,new Map),n(this,u,null),o=this,s=e,(t=u).set(a(t,o),s)}getRoots(){return Array.from(l(h,this).values())}getRootByColumn(e){let t;return l(c,this).has(e)&&(t=l(h,this).get(l(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const s=t-l(c,this).get(t);let i,r=0;return o.walkDown(o=>{const{data:{origColspan:n,headerLevel:l}}=o;if(e===l){if(s>=r&&s<=r+n-1)return i=o,i.data.isRoot=t===i.data.columnIndex,!1;r+=n}}),i}rebuildTreeIndex(){let e=0;l(c,this).clear(),(0,i.arrayEach)(l(h,this),t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)l(c,this).set(t,e);e+=o})}buildTree(){this.clear();const e=l(u,this).getColumnsCount();let t=0;for(;t<e;){const e=l(u,this).getHeaderSettings(0,t),o=new r.default;l(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const n=l(u,this).getHeadersSettings(o,t,s);o+=1,(0,i.arrayEach)(n,s=>{const i={...s,headerLevel:o-1,columnIndex:t};let n;1===o?(e.data=i,n=e):(n=new r.default(i),e.addChild(n)),o<l(u,this).getLayersCount()&&this.buildLeaves(n,t,o,s.origColspan),t+=s.origColspan})}clear(){l(h,this).clear(),l(c,this).clear()}}},83026:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let o=e;D[o]||(o=P);return(0,i.arrayEach)(D[o],e=>{let o;o=e===r.SEPARATOR?{name:r.SEPARATOR}:(0,s.clone)((0,n.getConditionDescriptor)(e)),t.push(o)}),t},o(85639);var s=o(89255),i=o(13351),r=o(72365),n=o(85296),l=o(45943);t.CONDITION_NONE=l.CONDITION_NAME;var a=o(89668);t.CONDITION_EMPTY=a.CONDITION_NAME;var h=o(98723);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var c=o(28609);t.CONDITION_EQUAL=c.CONDITION_NAME;var u=o(76822);t.CONDITION_NOT_EQUAL=u.CONDITION_NAME;var d=o(98408);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=o(48505);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var f=o(54515);t.CONDITION_LESS_THAN=f.CONDITION_NAME;var p=o(34200);t.CONDITION_LESS_THAN_OR_EQUAL=p.CONDITION_NAME;var m=o(20258);t.CONDITION_BETWEEN=m.CONDITION_NAME;var w=o(30706);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var C=o(93523);t.CONDITION_BEGINS_WITH=C.CONDITION_NAME;var v=o(56923);t.CONDITION_ENDS_WITH=v.CONDITION_NAME;var y=o(92220);t.CONDITION_CONTAINS=y.CONDITION_NAME;var E=o(88641);t.CONDITION_NOT_CONTAINS=E.CONDITION_NAME;var S=o(95603);t.CONDITION_DATE_BEFORE=S.CONDITION_NAME;var R=o(50704);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var b=o(8763);t.CONDITION_TOMORROW=b.CONDITION_NAME;var _=o(85907);t.CONDITION_TODAY=_.CONDITION_NAME;var T=o(53594);t.CONDITION_YESTERDAY=T.CONDITION_NAME;var M=o(15023);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var I=o(8625);t.CONDITION_TRUE=I.CONDITION_NAME;var O=o(63810);t.CONDITION_FALSE=O.CONDITION_NAME;var N=o(44725);t.OPERATION_AND=N.OPERATION_ID;var A=o(59421);t.OPERATION_OR=A.OPERATION_ID;var H=o(84514);t.OPERATION_OR_THEN_VARIABLE=H.OPERATION_ID;const x=t.TYPE_NUMERIC="numeric",P=t.TYPE_TEXT="text",k=t.TYPE_DATE="date",D=t.TYPES={[x]:[l.CONDITION_NAME,r.SEPARATOR,a.CONDITION_NAME,h.CONDITION_NAME,r.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,r.SEPARATOR,d.CONDITION_NAME,g.CONDITION_NAME,f.CONDITION_NAME,p.CONDITION_NAME,m.CONDITION_NAME,w.CONDITION_NAME],[P]:[l.CONDITION_NAME,r.SEPARATOR,a.CONDITION_NAME,h.CONDITION_NAME,r.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,r.SEPARATOR,C.CONDITION_NAME,v.CONDITION_NAME,r.SEPARATOR,y.CONDITION_NAME,E.CONDITION_NAME],[k]:[l.CONDITION_NAME,r.SEPARATOR,a.CONDITION_NAME,h.CONDITION_NAME,r.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,r.SEPARATOR,S.CONDITION_NAME,R.CONDITION_NAME,m.CONDITION_NAME,r.SEPARATOR,b.CONDITION_NAME,_.CONDITION_NAME,T.CONDITION_NAME]}},83028:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(89255),n=o(9335),l=s(o(16614));t.default=class{constructor(e){(0,i.default)(this,"metaCtor",class{}),(0,i.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,r.extend)(this.meta,(0,l.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,r.extend)(this.meta,e),(0,n.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},83080:(e,t,o)=>{"use strict";t.__esModule=!0,t.countFirstRowKeys=function(e){let t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,s.isObject)(e[0])&&(t=(0,s.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const o=[];let s;for(let i=0;i<e;i++){s=[];for(let e=0;e<t;e++)s.push("");o.push(s)}return o},t.createSpreadsheetData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let s,i;for(s=0;s<e;s++){const e=[];for(i=0;i<t;i++)e.push(n(i)+(s+1));o.push(e)}return o},t.createSpreadsheetObjectData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let s,i;for(s=0;s<e;s++){const e={};for(i=0;i<t;i++)e[`prop${i}`]=n(i)+(s+1);o.push(e)}return o},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=e;const s=[];Array.isArray(e)&&Array.isArray(e[0])||(o=[e]);return o.forEach((e,o)=>{Array.isArray(e)?e.forEach((e,i)=>{s.push([o+t,i,e])}):Object.keys(e).forEach(i=>{s.push([o+t,i,e[i]])})}),s},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every(e=>Array.isArray(e)))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e))},t.spreadsheetColumnIndex=function(e){let t=0;if(e)for(let o=0,s=e.length-1;o<e.length;o+=1,s-=1)t+=r**s*(i.indexOf(e[o])+1);return t-=1,t},t.spreadsheetColumnLabel=n,o(85639),o(73741),o(16178),o(69326);var s=o(89255);const i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",r=i.length;function n(e){let t,o=e+1,s="";for(;o>0;)t=(o-1)%r,s=String.fromCharCode(65+t)+s,o=parseInt((o-t)/r,10);return s}},83095:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return a},o(73741),o(69326);var i=s(o(53726)),r=o(97213),n=o(89255),l=s(o(28494));let a=0;class h{constructor(){(0,i.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",()=>this.runLocalHooks("change",t)),a+=1)}unregister(e){const t=this.collection.get(e);(0,r.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),a-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,r.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach(t=>{t.remove(e)})}insertToEvery(e,t){this.collection.forEach(o=>{o.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,n.mixin)(h,l.default)},83139:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(92237);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.correctFormat=s.correctFormat,t.dateValidator=s.dateValidator},83211:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellType=function(e){if(!h(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return a(e)},t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:o,renderer:s,validator:a}=t;o&&(0,i.registerEditor)(e,o);s&&(0,r.registerRenderer)(e,s);a&&(0,n.registerValidator)(e,a);l(e,t)},o(88443);var s=o(65615),i=o(95422),r=o(73424),n=o(97287);const{register:l,getItem:a,hasItem:h,getNames:c,getValues:u}=(0,s.staticRegister)("cellTypes");t.getRegisteredCellTypes=u,t.getRegisteredCellTypeNames=c,t.hasCellType=h},83433:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(13351);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>[];(0,i.default)(this,"conditionCollection",void 0),(0,i.default)(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=t}filter(){let e=[];return(0,r.arrayEach)(this.conditionCollection.getFilteredColumns(),(t,o)=>{let s=this.columnDataFactory(t);o&&(s=this._getIntersectData(s,e)),e=this.filterByColumn(t,s)}),e}filterByColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];return(0,r.arrayEach)(t,t=>{void 0!==t&&this.conditionCollection.isMatch(t,e)&&o.push(t)}),o}_getIntersectData(e,t){const o=[];return(0,r.arrayEach)(t,t=>{const s=t.meta.visualRow;void 0!==e[s]&&(o[s]=e[s])}),o}}},83979:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,o){let s,i,r;t[0]===e[0]&&t[1]<e[1]?(r="left",s=o(t[0],t[1]),i=o(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(r="right",s=o(t[0],e[3]+1),i=o(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(r="up",s=o(t[0],t[1]),i=o(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(r="down",s=o(e[2]+1,t[1]),i=o(t[2],t[3]));s&&s.normalize();i&&i.normalize();return{directionOfDrag:r,startOfDragCoords:s,endOfDragCoords:i}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(r),t.autoInsertRow=!0):(0,s.isObject)(e)?((0,i.isDefined)(e.autoInsertRow)?e.direction===r.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,i.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(r)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var s=o(89255),i=o(97213);const r=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},84086:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof n[e])return new n[e](t,o);return null};var i=s(o(14346));const r=t.TYPE_CSV="csv",n=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[r]:i.default})},84118:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(56464);const n=t.DEFAULT_WIDTH=50;class l extends r.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:o,scrollOffset:s,totalColumns:r,columnWidthFn:n,overrideFn:l,inlineStartOffset:a}=e;super(t),(0,i.default)(this,"viewportWidth",0),(0,i.default)(this,"scrollOffset",0),(0,i.default)(this,"zeroBasedScrollOffset",0),(0,i.default)(this,"totalColumns",0),(0,i.default)(this,"columnWidthFn",null),(0,i.default)(this,"columnWidth",0),(0,i.default)(this,"overrideFn",null),(0,i.default)(this,"inlineStartOffset",0),(0,i.default)(this,"totalCalculatedWidth",0),(0,i.default)(this,"startPositions",[]),(0,i.default)(this,"needReverse",!0),this.viewportWidth=o,this.scrollOffset=s,this.zeroBasedScrollOffset=Math.max(s,0),this.totalColumns=r,this.columnWidthFn=n,this.overrideFn=l,this.inlineStartOffset=a,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?n:t}}t.ViewportColumnsCalculator=l},84124:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i,r=s(o(53726)),n=o(58741),l=o(13351),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),h=o(74459),c=o(29170);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var d=new WeakSet;class g extends h.BaseComponent{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){super(e,{id:t.id,stateless:!0}),u(this,d),(0,r.default)(this,"name",""),this.name=t.name,this.elements.push(new c.InputUI(this.hot,{type:"button",value:a.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:g.BUTTON_OK})),this.elements.push(new c.InputUI(this.hot,{type:"button",value:a.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:g.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,l.arrayEach)(this.elements,e=>{e.addLocalHook("click",(e,t)=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(d,this,f).call(this,e,t))})}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,n.addClass)(t.parentNode,"htFiltersMenuActionBar"),(0,l.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function f(e,t){t.options.identifier===i.BUTTON_OK?this.accept():this.cancel()}t.ActionBarComponent=g,i=g},84127:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return(0,s.createDateTimeCompareFunction)(e,t.dateFormat,o)};var s=o(31299);t.COLUMN_DATA_TYPE="date"},84179:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},84249:(e,t,o)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,o){if(!l.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return l.get(e)(t,o)},o(88443);var s=o(33550),i=o(25649),r=o(92988),n=o(85494);const l=new Map([["collapse",s.collapseNode],["expand",i.expandNode],["hide-column",r.hideColumn],["show-column",n.showColumn]])},84481:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(34726);var i=s(o(53726));t.ViewOrder=class{constructor(e,t){(0,i.default)(this,"order",[]),this.order=[...Array(t).keys()].map(t=>e+t)}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}},84514:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=l,o(88443),o(73741),o(82141);var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(32201);const r=t.OPERATION_ID="disjunctionWithExtraCondition",n=t.SHORT_NAME_FOR_COMPONENT=s.FILTERS_LABELS_DISJUNCTION;function l(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,i.registerOperation)(r,n,l)},84617:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[o,,s]=e[0];o-s!==0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,s.transformSelectionToRowDistance)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}};var s=o(43748),i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const r=t.KEY="remove_row"},84840:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(58741),n=o(13351),l=o(76549),a=o(46092);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class f extends l.BasePlugin{constructor(){super(...arguments),h(this,g),(0,i.default)(this,"scrollbars",[]),(0,i.default)(this,"clones",[]),(0,i.default)(this,"lockedCollection",!1),(0,i.default)(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,a.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>c(g,this,p).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>c(g,this,m).call(this)),this.addHook("afterMomentumScroll",()=>c(g,this,w).call(this))}}function p(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:o,topInlineStartCornerOverlay:s,bottomInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(o),s&&this.scrollbars.push(s),i&&i.clone&&this.scrollbars.push(i),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),s&&this.clones.push(s.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,n.arrayEach)(this.clones,e=>{(0,r.addClass)(e,"hide-tween")})}function w(){this.freezeOverlays=!1,(0,n.arrayEach)(this.clones,e=>{(0,r.removeClass)(e,"hide-tween"),(0,r.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,n.arrayEach)(this.clones,e=>{(0,r.removeClass)(e,"show-tween")})},400),(0,n.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=f},84960:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.autocompleteRenderer=c;var i=o(38430),r=o(93692),n=s(o(80277)),l=o(58741),a=o(6532);const h=t.RENDERER_TYPE="autocomplete";function c(e,t,o,s,h,c,u){const{rootDocument:d}=e,g=u.allowHtml?i.htmlRenderer:r.textRenderer,f=d.createElement("DIV"),p=e.getSettings().ariaTags;if(f.className="htAutocompleteArrow",p&&f.setAttribute(...(0,a.A11Y_HIDDEN)()),f.appendChild(d.createTextNode(String.fromCharCode(9660))),g.apply(this,[e,t,o,s,h,c,u]),t.firstChild||t.appendChild(d.createTextNode(String.fromCharCode(160))),t.insertBefore(f,t.firstChild),(0,l.addClass)(t,"htAutocomplete"),!e.acArrowListener){const i=new n.default(e);e.acArrowListener=function(i){(0,l.hasClass)(i.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(o,s),t)},i.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",()=>{i.destroy()})}}c.RENDERER_TYPE=h},85148:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(80578),n=o(56836),l=o(58741),a=o(6532);class h extends n.BaseRenderer{constructor(){super("TH"),(0,i.default)(this,"orderViews",new WeakMap),(0,i.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new r.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:o,rows:s,cells:i}=this.table;for(let r=0;r<e;r++){const e=this.table.renderedRowToSource(r),n=s.getRenderedNode(r);this.sourceRowIndex=e;const h=this.obtainOrderView(n),c=i.obtainOrderView(n);h.appendView(c).setSize(o).setOffset(0).start();for(let s=o-1;s>=0;s--){h.render();const o=h.getCurrentNode();o.className="",o.removeAttribute("style"),(0,l.removeAttribute)(o,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,l.setAttribute)(o,[(0,a.A11Y_ROWHEADER)(),(0,a.A11Y_SCOPE_ROW)(),(0,a.A11Y_COLINDEX)(s+1),(0,a.A11Y_TABINDEX)(-1)]),t[s](e,o,s)}h.end()}}}t.RowHeadersRenderer=h},85219:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,s.createPaginator)({size:()=>e.countRows(),onItemSelect(t,o){const s=e.getCell(t,0);if(!s||(0,i.isSeparator)(s)||(0,i.isDisabled)(s)||(0,i.isSelectionDisabled)(s))return!1;e.selectCell(t,0,...o?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var s=o(67881),i=o(82419)},85296:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!s[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:o,descriptor:i}=s[e];let r=t;i.inputValuesDecorator&&(r=i.inputValuesDecorator(r));return function(e){return o.apply(e.meta.instance,[].concat([e],[r]))}},t.getConditionDescriptor=function(e){if(!s[e])throw Error(`Filter condition "${e}" does not exist.`);return s[e].descriptor},t.registerCondition=function(e,t,o){o.key=e,s[e]={condition:t,descriptor:o}},o(88443);const s=t.conditions={}},85351:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(69326);var i=s(o(53726)),r=o(94218),n=o(51376);class l extends r.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,i.default)(this,"rows",void 0),(0,i.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,o)=>{!1!==e&&t.done(()=>new l({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,n.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:s}=e;t<s&&(s-=1),o.moveRow(s,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),o.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=l},85355:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:i,to:r}=e.getSelectedRangeLast(),n=s.isHeader()&&t.isSelectedByColumnHeader();if(s.isCell()||n){const l=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),a=i.clone();a.col=s.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,s.clone()),n&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(r.row,l)),t.markEndSource()}}}},85442:(e,t,o)=>{"use strict";var s=o(13794);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},85458:(e,t,o)=>{"use strict";var s=o(30334);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},85494:(e,t,o)=>{"use strict";t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(s.toSingleLine`The passed node is not the last node on the tree. Only for\x20
69
69
  the last node, the show column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(!o.includes(t))return;let i=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return i=!0,!1}),i)return;e.walkUp(e=>{const{data:o}=e;o.crossHiddenColumns.splice(o.crossHiddenColumns.indexOf(t),1),!o.isHidden&&o.colspan<o.origColspan&&(o.colspan+=1),o.isHidden=!1})},o(88443);var s=o(5455)},85639:(e,t,o)=>{"use strict";var s=o(76277),i=o(11044),r=o(26213),n=o(17112),l=o(6330);s({target:"Array",proto:!0,arity:1,forced:o(82314)(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=i(this),o=r(t),s=arguments.length;l(o+s);for(var a=0;a<s;a++)t[o]=arguments[a],o++;return n(t,o),o}})},85907:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_today";function a(e){const t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().startOf("day"),"d")}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_TODAY,inputsCount:0})},85990:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(16636);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DropdownEditor=s.DropdownEditor},86190:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const n=t.checkedTemplate,l=t.uncheckedTemplate,{sortEmptyCells:a}=o;return function(h,c){const u=(0,r.isEmpty)(h),d=(0,r.isEmpty)(c),g=u?l:h,f=d?l:c,p=g===l||g===n,m=f===l||f===n;if(!1===a){if(u&&!1===d)return s.FIRST_AFTER_SECOND;if(!1===u&&d)return s.FIRST_BEFORE_SECOND}return!1===p&&m?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:p&&!1===m?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!1===p&&!1===m?(0,i.compareFunctionFactory)(e,t,o)(h,c):g===l&&f===n?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:g===n&&f===l?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var s=o(7378),i=o(51490),r=o(97213);t.COLUMN_DATA_TYPE="checkbox"},86224:(e,t,o)=>{"use strict";var s=o(85458),i=o(96745),r=s("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},86713:(e,t,o)=>{"use strict";var s=o(6996),i=o(5006),r=TypeError;e.exports=function(e){if(s(e))return e;throw new r(i(e)+" is not a function")}},86798:e=>{"use strict";e.exports=o},86867:(e,t,o)=>{"use strict";var s=o(35172);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},86977:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499),r=o(30845),n=o(18622),l=o(98304),a=o(78016),h=i.Set,c=i.add,u=i.has;e.exports=function(e){var t=s(this),o=n(e),i=new h;return r(t)>o.size?a(o.getIterator(),function(e){u(t,e)&&c(i,e)}):l(t,function(e){o.includes(e)&&c(i,e)}),i}},87011:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler");if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),s=t.getCSSVariableValue("cell-autofill-border-width"),i=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:s,borderStyle:"solid",borderColor:i})}},87492:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=o(89255),l=s(o(70012)),a=o(5455),h=o(33355);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="columnSummary",g=t.PLUGIN_PRIORITY=220;var f=new WeakSet;class p extends r.BasePlugin{constructor(){super(...arguments),c(this,f),(0,i.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new l.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,m).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,C).call(e,...o)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,w).call(e,...o)}),this.addHook("beforeCreateRow",(e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,o)),this.addHook("beforeCreateCol",(e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,o)),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...o)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...o)}),this.addHook("afterCreateRow",(e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,o)),this.addHook("afterCreateCol",(e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,o)),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...o)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,v).call(e,...o)}),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,n.objectEach)(e.ranges,o=>{t+=this.getPartialSum(o,e.sourceColumn)}),t}getPartialSum(e,t){let o=0,s=e[1]||e[0],i=null,r=0;do{if(i=this.getCellValue(s,t),i=(0,h.isNullishOrNaN)(i)?null:i,null!==i){const e=(`${i}`.split(".")[1]||[]).length||1;e>r&&(r=e)}o+=i||0,s-=1}while(s>=e[0]);return Math.round(o*10**r)/10**r}calculateMinMax(e,t){let o=null;return(0,n.objectEach)(e.ranges,s=>{const i=this.getPartialMinMax(s,e.sourceColumn,t);if(null===o&&null!==i&&(o=i),null!==i)switch(t){case"min":o=Math.min(o,i);break;case"max":o=Math.max(o,i)}}),null===o?"Not enough data":o}getPartialMinMax(e,t,o){let s,i=null,r=e[1]||e[0];do{if(s=this.getCellValue(r,t),s=(0,h.isNullishOrNaN)(s)?null:s,null===i)i=s;else if(null!==s)switch(o){case"min":i=Math.min(i,s);break;case"max":i=Math.max(i,s)}r-=1}while(r>=e[0]);return i}countEmpty(e,t){let o,s=0,i=e[1]||e[0];do{o=this.getCellValue(i,t),o=(0,h.isNullishOrNaN)(o)?null:o,null===o&&(s+=1),i-=1}while(i>=e[0]);return s}countEntries(e){let t=0;const o=e.ranges;return(0,n.objectEach)(o,o=>{const s=void 0===o[1]?1:o[1]-o[0]+1,i=this.countEmpty(o,e.sourceColumn);t+=s,t-=i}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const o=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t);let i=this.hot.getSourceDataAtCell(e,t),r="";if(null!==o&&null!==s&&(r=this.hot.getCellMeta(o,s).className||""),r.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof i&&(i=i.replace(/,/,".")),i=parseFloat(i)),isNaN(i)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(a.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
70
70
  numeric format. Cannot do the calculation.`);return i}}function m(){this.endpoints.initEndpoints()}function w(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function C(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function v(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}t.ColumnSummary=p},87530:(e,t,o)=>{"use strict";var s=o(71652),i=o(46507),r=o(26213),n=function(e){return function(t,o,n){var l=s(t),a=r(l);if(0===a)return!e&&-1;var h,c=i(n,a);if(e&&o!=o){for(;a>c;)if((h=l[c++])!=h)return!0}else for(;a>c;c++)if((e||c in l)&&l[c]===o)return e||c||0;return!e&&-1}};e.exports={includes:n(!0),indexOf:n(!1)}},88005: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)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},88006:(e,t,o)=>{"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){l.get(e.type)({isShiftKey:e.shiftKey,isLeftClick:(0,s.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,s.isRightClick)(e),...t})},t.mouseDown=i,t.mouseOver=r,t.mouseUp=n,o(73741),o(90795);var s=o(66497);function i(e){let{isShiftKey:t,isLeftClick:o,isRightClick:s,coords:i,selection:r,controller:n,cellCoordsFactory:l}=e;const a=r.isSelected()?r.getSelectedRange().current():null,h=r.isSelectedByCorner(),c=r.isSelectedByRowHeader();if(r.markSource("mouse"),t&&a)i.row>=0&&i.col>=0&&!n.cell?r.setRangeEnd(i):(h||c)&&i.row>=0&&i.col>=0&&!n.cell?r.setRangeEnd(l(i.row,i.col)):h&&i.row<0&&!n.column?r.setRangeEnd(l(a.to.row,i.col)):c&&i.col<0&&!n.row?r.setRangeEnd(l(i.row,a.to.col)):(!h&&!c&&i.col<0||h&&i.col<0)&&!n.row?r.selectRows(Math.max(a.from.row,0),i.row,i.col):(!h&&!c&&i.row<0||c&&i.row<0)&&!n.column&&r.selectColumns(Math.max(a.from.col,0),i.col,i.row);else{const e=!r.inInSelection(i),t=o||s&&e;i.row<0&&i.col>=0&&!n.column?t&&r.selectColumns(i.col,i.col,i.row):i.col<0&&i.row>=0&&!n.row?t&&r.selectRows(i.row,i.row,i.col):i.col>=0&&i.row>=0&&!n.cell?t&&r.setRangeStart(i):i.col<0&&i.row<0&&r.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}r.markEndSource()}function r(e){let{isLeftClick:t,coords:o,selection:s,controller:i,cellCoordsFactory:r}=e;if(!t)return;const n=s.isSelectedByRowHeader(),l=s.isSelectedByColumnHeader(),a=s.tableProps.countCols(),h=s.tableProps.countRows();s.markSource("mouse"),l&&!i.column?s.setRangeEnd(r(h-1,o.col)):n&&!i.row?s.setRangeEnd(r(o.row,a-1)):i.cell||s.setRangeEnd(o),s.markEndSource()}function n(e){let{isLeftClick:t,selection:o,cellRangeMapper:s}=e;if(!t||"multiple"!==o.settings.selectionMode)return;const i=o.getSelectedRange(),r=i.clone().map(e=>s.toRenderable(e)),n=r.current();if(r.size()>1&&!n.isHeader()&&!o.isMultiple(n)){const e=r.findAll(n);e.length===r.size()?(i.pop(),o.refresh()):e.length>1&&(i.removeLayers(e.map(e=>{let{layer:t}=e;return t})),o.refresh())}}const l=new Map([["touchstart",i],["mousedown",i],["mouseover",r],["mouseup",n]])},88291:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(65985),n=o(86713),l=o(77618),a=o(74218),h=o(63884),c=o(69498)("find",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){l(this);try{n(e)}catch(e){h(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),o=0;return r(t,function(t,s){if(e(t,o++))return s(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},88426:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:o,col:s}=t[t.length-1].highlight.normalize(),i=e.getDataAtCell(o,s),r=new Map;for(let n=0;n<t.length;n++)t[n].forAll((t,n)=>{if(t>=0&&n>=0&&(t!==o||n!==s)){const{readOnly:o}=e.getCellMeta(t,n);o||r.set(`${t}x${n}`,[t,n,i])}});e.setDataAtCell(Array.from(r.values()))}}},88441:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:s=!1,crossHiddenColumns:i=[],isCollapsed:r=!1,isHidden:n=!1,isRoot:l=!1,isPlaceholder:a=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:s,isCollapsed:r,crossHiddenColumns:i,isHidden:n,isRoot:l,isPlaceholder:a,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},88443:(e,t,o)=>{"use strict";var s=o(76277),i=o(88005),r=o(13150),n=o(41512),l="WebAssembly",a=i[l],h=7!==new Error("e",{cause:7}).cause,c=function(e,t){var o={};o[e]=n(e,t,h),s({global:!0,constructor:!0,arity:1,forced:h},o)},u=function(e,t){if(a&&a[e]){var o={};o[e]=n(l+"."+e,t,h),s({target:l,stat:!0,constructor:!0,arity:1,forced:h},o)}};c("Error",function(e){return function(t){return r(e,this,arguments)}}),c("EvalError",function(e){return function(t){return r(e,this,arguments)}}),c("RangeError",function(e){return function(t){return r(e,this,arguments)}}),c("ReferenceError",function(e){return function(t){return r(e,this,arguments)}}),c("SyntaxError",function(e){return function(t){return r(e,this,arguments)}}),c("TypeError",function(e){return function(t){return r(e,this,arguments)}}),c("URIError",function(e){return function(t){return r(e,this,arguments)}}),u("CompileError",function(e){return function(t){return r(e,this,arguments)}}),u("LinkError",function(e){return function(t){return r(e,this,arguments)}}),u("RuntimeError",function(e){return function(t){return r(e,this,arguments)}})},88641:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(85296),r=o(92220);const n=t.CONDITION_NAME="not_contains";function l(e,t){return!(0,i.getCondition)(r.CONDITION_NAME,t)(e)}(0,i.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},88668:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(99134);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Search=s.Search},89176:(e,t,o)=>{"use strict";var s=o(25225),i=o(82314),r=o(53385),n=Object,l=s("".split);e.exports=i(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?l(e,""):n(e)}:n},89255:(e,t,o)=>{"use strict";t.__esModule=!0,t.clone=function(e){const t={};return n(e,(e,o)=>{t[o]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const o=`_${t}`,s={_touched:!1,[o]:e,isTouched(){return this._touched}};return Object.defineProperty(s,t,{get(){return this[o]},set(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),s},t.deepClone=i,t.deepExtend=function e(t,o){n(o,(s,i)=>{o[i]&&"object"==typeof o[i]?(t[i]||(Array.isArray(o[i])?t[i]=[]:"[object Date]"===Object.prototype.toString.call(o[i])?t[i]=o[i]:t[i]={}),e(t[i],o[i])):t[i]=o[i]})},t.deepObjectSize=function(e){if(!r(e))return 0;const t=function(e){let o=0;return r(e)?n(e,(e,s)=>{"__children"!==s&&(o+=t(e))}):o+=1,o};return t(e)},t.defineGetter=function(e,t,o,s){s.value=o,s.writable=!1!==s.writable,s.enumerable=!1!==s.enumerable,s.configurable=!1!==s.configurable,Object.defineProperty(e,t,s)},t.duckSchema=function e(t){let o;Array.isArray(t)?o=t.length?new Array(t.length).fill(null):[]:(o={},n(t,(t,s)=>{"__children"!==s&&(t&&"object"==typeof t&&!Array.isArray(t)?o[s]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?o[s]=[e(t[0])]:o[s]=[]:o[s]=null)}));return o},t.extend=function(e,t,o){const s=Array.isArray(o);return n(t,(t,i)=>{(!1===s||o.includes(i))&&(e[i]=t)}),e},t.getProperty=function(e,t){const o=t.split(".");let s=e;return n(o,e=>{if(s=s[e],void 0===s)return s=void 0,!1}),s},t.hasOwnProperty=l,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=r,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,o=new Array(t>1?t-1:0),l=1;l<t;l++)o[l-1]=arguments[l];return(0,s.arrayEach)(o,t=>{e.MIXINS.push(t.MIXIN_NAME),n(t,(t,o)=>{if(void 0!==e.prototype[o])throw new Error(`Mixin conflict. Property '${o}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[o]=t;else{const s=function(e,t){const o=`_${e}`;return function(){return void 0===this[o]&&(this[o]=(e=>{let t=e;return(Array.isArray(t)||r(t))&&(t=i(t)),t})(t)),this[o]}},n=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,o,{get:s(o,t),set:n(o),configurable:!0})}})}),e},t.objectEach=n,t.setProperty=function(e,t,o){if("string"!=typeof t)return;const s=t.split(".");let i=e;s.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==s.length-1?(l(i,e)||(i[e]={}),i=i[e]):i[e]=o)})},o(88443),o(85639),o(60591),o(73741),o(69326);var s=o(13351);function i(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e,t){for(const o in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,o))&&!1===t(e[o],o,e))break;return e}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},89299:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,o,i,r){const n=["visualRow","visualCol","row","col","prop"],l=n.length,a=[];return(0,s.rangeEach)(i,r,i=>{(0,s.rangeEach)(t,o,t=>{const o=e.getCellMeta(t,i);if(Object.keys(o).length!==l){const e=Object.fromEntries(Object.entries(o).filter(e=>{let[t]=e;return!1===n.includes(t)}));a.push([o.visualRow,o.visualCol,e])}})}),a},o(85639),o(41846),o(73741),o(7307);var s=o(79501)},89494: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)}},89626:(e,t,o)=>{"use strict";var s=o(42806),i=o(36697),r=o(214),n=o(50916),l=o(92754)("iterator");e.exports=function(e){if(!r(e))return i(e,l)||i(e,"@@iterator")||n[s(e)]}},89663:(e,t,o)=>{"use strict";o(77914)},89668:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(85296),r=o(97213);const n=t.CONDITION_NAME="empty";function l(e){return(0,r.isEmpty)(e.value)}(0,i.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},89678:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(40347);t.parse=s.parse,t.stringify=s.stringify},89711:(e,t,o)=>{"use strict";var s=o(76277),i=o(23473),r=o(96068);s({target:"Set",proto:!0,real:!0,forced:!o(93295)("symmetricDifference")||!r("symmetricDifference")},{symmetricDifference:i})},89717:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(63196)),r=o(58741);class n extends i.default{build(){super.build(),(0,r.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=n},89891:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(43750);t.EDITOR_TYPE=s.EDITOR_TYPE,t.AutocompleteEditor=s.AutocompleteEditor},89956:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(97122),o(7678);var i=s(o(53726));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,i.default)(this,"count",0),(0,i.default)(this,"startRow",null),(0,i.default)(this,"endRow",null),(0,i.default)(this,"startPosition",null),(0,i.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:s,innerViewportHeight:i}=t;o<=s&&(this.startRow=e),o>=s&&o<=i&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:o,viewportHeight:s,horizontalScrollbarHeight:i,totalRows:r,needReverse:n,startPositions:l,rowHeight:a}=e;if(this.endRow===r-1&&n)for(this.startRow=this.endRow;this.startRow>0;){const e=l[this.endRow]+a-l[this.startRow-1];if(this.startRow-=1,e>=s-i)break}this.startPosition=null!==(t=l[this.startRow])&&void 0!==t?t:null;o+s-i<0||o>l.at(-1)+a?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endRow&&(this.endRow=r-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},89984:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(90795);var i=o(13351),r=s(o(53094)),n=s(o(82930)),l=o(84249),a=o(25074),h=o(52813);function c(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new r.default),c(this,p,new n.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,a.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,i.arrayMap)(e,e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}});d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,i.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const s=e(o.data);void 0!==s&&t.push(s)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const s=d(p,this).getNode(t,o);let i;return s&&(i=(0,l.triggerNodeModification)(e,s,o),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))),i}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,s;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(s=d(m,this)[e])||void 0===s?void 0:s[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t-e+1;let s=!1,i=null;for(let r=e;r<=t;r++){const n=d(p,this).getRootByColumn(r);if(!n)break;s=!0,n.walkDown(s=>{const{columnIndex:r,headerLevel:n,origColspan:l,isHidden:a}=s.data;a||l<=o&&r>=e&&r+l-1<=t&&(null===i||n<i)&&(i=n)},h.TRAVERSAL_DF_PRE)}return s&&null===i?-1:this.levelToRowCoords(null!=i?i:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(s)return t;let i=t-1;for(;i>=0;){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,i))&&void 0!==r?r:{isRoot:!0};if(t)break;i-=1}return i}findRightMostColumnIndex(e,t){var o;const{isRoot:s,origColspan:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(s)return t+i-1;let r=t+1;for(;r<this.getColumnsCount();){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,r))&&void 0!==n?n:{isRoot:!0};if(t)break;r+=1}return r-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},90084:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(69326);var i=s(o(53726));function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(e,t))}var l=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,i.default)(this,"metaManager",void 0),(0,i.default)(this,"usageTracker",new Set),(0,i.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),r(this,l,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:s,onChange:i}=e,r="string"==typeof s,a=r?s:t,h=`_${a}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[a],i?(this.installPropWatcher(t,h,i),r&&this.installPropWatcher(s,h,i)):o&&(this.installPropWatcher(t,h,n(l,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const s=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(i){const r=!s.usageTracker.has(e);s.usageTracker.add(e),o.call(s,e,i,r),this[t]=i},enumerable:!0,configurable:!0})}}},90179:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(69684);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualColumnFreeze=s.ManualColumnFreeze},90380:(e,t,o)=>{"use strict";var s=o(60926);e.exports="NODE"===s},90382:(e,t,o)=>{"use strict";var s=o(76277),i=o(25225),r=o(86713),n=o(71652),l=o(64223),a=o(92229),h=o(72714),c=Array,u=i(a("Array","sort"));s({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&r(e);var t=n(this),o=l(c,t);return u(o,e)}}),h("toSorted")},90610:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var s=o(76549),i=o(58741),r=o(13351),n=o(79501),l=o(43393);function a(e,t,o){h(e,t),t.set(e,o)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,o){return e.set(d(e,t),o),o}function u(e,t){return e.get(d(e,t))}function d(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const g=t.PLUGIN_KEY="manualColumnResize",f=t.PLUGIN_PRIORITY=130,p="manualColumnWidths";var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakSet;class x extends s.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=H),o.add(t),a(this,m,null),a(this,w,null),a(this,C,[]),a(this,v,null),a(this,y,null),a(this,E,null),a(this,S,null),a(this,R,null),a(this,b,this.hot.rootDocument.createElement("DIV")),a(this,_,this.hot.rootDocument.createElement("DIV")),a(this,T,null),a(this,M,!1),a(this,I,0),a(this,O,null),a(this,N,void 0),a(this,A,void 0),(0,i.addClass)(u(b,this),"manualColumnResizer"),(0,i.addClass)(u(_,this),"manualColumnResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){var e=this;this.enabled||(c(N,this,new l.PhysicalIndexToValueMap),u(N,this).addLocalHook("init",()=>d(H,this,P).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,u(N,this)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return d(H,e,F).call(e,...o)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return d(H,e,B).call(e,...o)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return d(H,e,U).call(e,...o)}),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(A,this,u(N,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",p,u(N,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=Math.max(t,20),s=this.hot.toPhysicalColumn(e);return u(N,this).setValueAtIndex(s,o),o}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);u(N,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode)return;c(m,this,e);const{_wt:t}=this.hot.view,o=t.wtTable.getCoords(u(m,this)),s=o.col;if(s<0)return;const l=(0,i.outerHeight)(u(m,this)),a=u(m,this).getBoundingClientRect();let h;s<t.getSetting("fixedColumnsStart")&&(h=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),o.row,o.col)),h||(h=t.wtOverlays.topOverlay.getRelativeCellPosition(u(m,this),o.row,o.col)),c(w,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(s)),c(C,this,[]);const d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&d){const e=this.hot.getSelectedRange();(0,r.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,o=e.getBottomEndCorner().col;(0,n.rangeEach)(t,o,e=>{u(C,this).includes(e)||u(C,this).push(e)})})}u(C,this).includes(u(w,this))||c(C,this,[u(w,this)]),c(R,this,h.start-6),c(S,this,parseInt(a.width,10)),u(b,this).style.top=`${h.top}px`,u(b,this).style[this.inlineDir]=`${u(R,this)+u(S,this)}px`,u(b,this).style.height=`${l}px`,this.hot.rootElement.appendChild(u(b,this))}refreshHandlePosition(){u(b,this).style[this.inlineDir]=`${u(R,this)+u(v,this)}px`}setupGuidePosition(){const e=parseInt((0,i.outerHeight)(u(b,this)),10),t=parseInt(u(b,this).style.top,10)+e,o=this.hot.view.getTableHeight();(0,i.addClass)(u(b,this),"active"),(0,i.addClass)(u(_,this),"active"),u(_,this).style.top=`${t}px`,this.refreshGuidePosition(),u(_,this).style.height=o-e+"px",this.hot.rootElement.appendChild(u(_,this))}refreshGuidePosition(){u(_,this).style[this.inlineDir]=u(b,this).style[this.inlineDir]}hideHandleAndGuide(){(0,i.removeClass)(u(b,this),"active"),(0,i.removeClass)(u(_,this),"active")}checkIfColumnHeader(e){const t=(0,i.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:o,topInlineStartCornerOverlay:s}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.THEAD,s.clone.wtTable.THEAD].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}afterMouseDownTimeout(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,o)=>{const s=this.hot.runHooks("beforeColumnResize",u(y,this),t,!0);void 0!==s&&c(y,this,s),this.setManualSize(t,u(y,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",u(y,this),t,!0),o&&e()};if(u(I,this)>=2){u(C,this).length>1?((0,r.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,r.arrayEach)(u(C,this),e=>{t(e,!0)})}c(I,this,0),c(O,this,null)}bindEvents(){const{rootWindow:e,rootElement:t}=this.hot;this.eventManager.addEventListener(t,"mouseover",e=>d(H,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousedown",e=>d(H,this,D).call(this,e)),this.eventManager.addEventListener(e,"mousemove",e=>d(H,this,L).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>d(H,this,V).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(H,this,W).call(this))}destroy(){super.destroy()}}function P(){const e=this.hot.getSettings()[g],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution(()=>{t.forEach((e,t)=>{u(N,this).setValueAtIndex(t,e)})},!0):Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach((e,t)=>{u(N,this).setValueAtIndex(t,e)})},!0),c(A,this,e)):!0===e&&Array.isArray(u(A,this))&&this.hot.batchExecution(()=>{u(A,this).forEach((e,t)=>{u(N,this).setValueAtIndex(t,e)})},!0)}function k(e){if(!(0,i.isDetached)(e.target)&&!0!==u(M,this)&&this.checkIfColumnHeader(e.target)){const t=this.getClosestTHParent(e.target);if(!t)return;const o=t.getAttribute("colspan");!t||null!==o&&"1"!==o||u(T,this)||this.setupHandlePosition(t)}}function D(e){e.target.parentNode===this.hot.rootElement&&(0,i.hasClass)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(u(m,this)),this.setupGuidePosition(),c(T,this,!0),null===u(O,this)&&(c(O,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(u(O,this))),c(I,this,u(I,this)+1),this.startX=e.pageX,c(y,this,u(S,this)))}function L(e){if(u(T,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();c(v,this,u(S,this)+t),(0,r.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function V(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,o)=>{this.hot.runHooks("beforeColumnResize",u(y,this),t,!1),o&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",u(y,this),t,!1)};if(u(T,this)){if(this.hideHandleAndGuide(),c(T,this,!1),u(y,this)!==u(S,this)){u(C,this).length>1?((0,r.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,r.arrayEach)(u(C,this),e=>{t(e,!0)})}this.setupHandlePosition(u(m,this))}}function W(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(u(b,this)),this.hot.rootElement.removeChild(u(_,this)),c(T,this,!1),c(M,this,!0),this.hot._registerImmediate(()=>{c(M,this,!1)})}function F(e,t){let o=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),s=u(N,this).getValueAtIndex(e);this.hot.getSettings()[g]&&s&&(o=s)}return o}function B(e,t){const o=u(N,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof o?o:e}function U(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=x},90615:(e,t)=>{"use strict";function o(e,t){let{childs:o}=e;if(0!==o.length)return o[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=o,t.isNodeReflectsFirstChildColspan=function(e){return o(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:o,childs:s}=e;if(!o.isHidden&&(t(o.columnIndex),0===s.length))for(let e=1;e<o.colspan;e++)t(o.columnIndex+e)})}},90795:(e,t,o)=>{"use strict";o(8092)},90864:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},90890:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:o}=e.getSelectedRangeLast();o.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},90911:(e,t,o)=>{"use strict";var s=o(14499),i=o(98304),r=s.Set,n=s.add;e.exports=function(e){var t=new r;return i(e,function(e){n(t,e)}),t}},91548:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(76549),n=s(o(17130)),l=s(o(12559));function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",c=t.PLUGIN_PRIORITY=210,u=new Map([["loose",n.default],["strict",l.default]]);var d=new WeakSet;class g extends r.BasePlugin{constructor(){super(...arguments),a(this,d),(0,i.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=u.get(this.getSetting()))&&void 0!==e?e:u.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(d,this,f).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function f(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},91688:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(56464);class n extends r.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:o,scrollOffset:s,totalRows:r,defaultRowHeight:n,rowHeightFn:l,overrideFn:a,horizontalScrollbarHeight:h}=e;super(t),(0,i.default)(this,"viewportHeight",0),(0,i.default)(this,"scrollOffset",0),(0,i.default)(this,"zeroBasedScrollOffset",0),(0,i.default)(this,"totalRows",0),(0,i.default)(this,"rowHeightFn",null),(0,i.default)(this,"rowHeight",0),(0,i.default)(this,"overrideFn",null),(0,i.default)(this,"horizontalScrollbarHeight",0),(0,i.default)(this,"innerViewportHeight",0),(0,i.default)(this,"totalCalculatedHeight",0),(0,i.default)(this,"startPositions",[]),(0,i.default)(this,"needReverse",!0),this.defaultHeight=n,this.viewportHeight=o,this.scrollOffset=s,this.zeroBasedScrollOffset=Math.max(s,0),this.totalRows=r,this.rowHeightFn=l,this.overrideFn=a,this.horizontalScrollbarHeight=null!=h?h:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}t.ViewportRowsCalculator=n},91783:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(20209);t.getDecreasedIndexes=s.getDecreasedIndexes,t.getIncreasedIndexes=s.getIncreasedIndexes;var i=o(97114),r=o(64484);const n=new Map([["indexesSequence",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:r.getListWithInsertedItems,getListWithRemovedItems:r.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===n.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return n.get(e)}},91997:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.default=function(e,t){var o,s=this;let U=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Y=this;const j=new h.default(Y);let z,G,$,K,X,q,Q=!0;(0,_.hasValidParameter)(U)&&(0,_.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,_.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,_.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,i.addClass)(this.rootElement,"ht-wrapper"),(0,i.addClass)(this.rootWrapperElement,"ht-root-wrapper"),this.rootWrapperElement.appendChild(this.rootElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,i.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const J=null!==(o=null==t?void 0:t.layoutDirection)&&void 0!==o?o:"inherit",Z=["rtl","ltr"].includes(J)?J:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",Z),this.isRtl=function(){return"rtl"===Z},this.isLtr=function(){return!Y.isRtl()},this.getDirectionFactor=function(){return Y.isLtr()?1:-1},this.stylesHandler=new L.StylesHandler(Y.rootElement,Y.rootDocument),t.language=(0,I.getValidLanguageCode)(t.language);const ee=Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return!(M.Hooks.getSingleton().isRegistered(t)||M.Hooks.getSingleton().isDeprecated(t))})),te=new A.MetaManager(Y,ee,[A.DynamicCellMetaMod,A.ExtendMetaPropertiesMod]),oe=te.getTableMeta(),se=te.getGlobalMeta(),ie=(0,x.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),(0,_.isRootInstance)(this)&&(0,n._injectProductInfo)(t.licenseKey,this.rootWrapperElement);this.guid=`ht_${(0,v.randomString)()}`,B.set(this.guid,this),this.columnIndexMapper=new b.IndexMapper,this.rowIndexMapper=new b.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterRowSequenceChange",e)}),j.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{Y.runHooks("beforeCompositionStart",e)}),G=new S.default(Y);const re=(0,f.staticRegister)(this.guid);re.register("cellRangeMapper",new W.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ne=new N.Selection(oe,{rowIndexMapper:Y.rowIndexMapper,columnIndexMapper:Y.columnIndexMapper,countCols:()=>Y.countCols(),countRows:()=>Y.countRows(),propToCol:e=>z.propToCol(e),isEditorOpened:()=>!!Y.getActiveEditor()&&Y.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return s.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return s.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>Y.getShortcutManager(),createCellCoords:(e,t)=>Y._createCellCoords(e,t),createCellRange:(e,t,o)=>Y._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?Y.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),i=Math.max(e,t),r=Y.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===r||1===o&&r>i||-1===o&&r<s?null:r>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(r):r},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),i=Math.max(e,t),r=Y.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===r||1===o&&r>i||-1===o&&r<s?null:r>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(r):r},isDisabledCellSelection:(e,t)=>e<0||t<0?Y.getSettings().disableVisualSelection:Y.getCellMeta(e,t).disableVisualSelection});this.selection=ne;const le=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function ae(e,t){const o="className"===e?Y.rootElement:Y.table;if(Q)(0,i.addClass)(o,t);else{let s=[],r=[];se[e]&&(s=Array.isArray(se[e])?se[e]:(0,d.stringToArray)(se[e])),t&&(r=Array.isArray(t)?t:(0,d.stringToArray)(t));const n=(0,d.getDifferenceOfArrays)(s,r),l=(0,d.getDifferenceOfArrays)(r,s);n.length&&(0,i.removeClass)(o,n),l.length&&(0,i.addClass)(o,l)}se[e]=t}function he(){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 ce(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ue(e,t,o){if(!e.length)return void o();const s=Y.getActiveEditor(),i=new he;let r=!0;i.onQueueEmpty=()=>{s&&r&&s.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[s,n]=e[o],l=z.propToCol(n);let a;a=Number.isInteger(l)?Y.getCellMeta(s,l):{...Object.getPrototypeOf(oe),...oe},Y.getCellValidator(a)&&(i.addValidatorToQueue(),Y.validateCell(e[o][3],a,function(t,o){return function(s){if("boolean"!=typeof s)throw new Error("Validation error: result is not boolean");!1===s&&!1===o.allowInvalid&&(r=!1,e.splice(t,1),o.valid=!0),i.removeValidatorFormQueue()}}(o,a),t))}i.checkIfQueueIsEmpty()}function de(e,t){for(let t=e.length-1;t>=0;t--){let o=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(oe.allowInsertRow)for(;e[t][0]>Y.countRows()-1;){const{delta:e}=z.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===Y.dataType&&(!oe.columns||0===oe.columns.length)&&oe.allowInsertColumn)for(;z.propToCol(e[t][1])>Y.countCols()-1;){const{delta:e}=z.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||z.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){$.adjustRowsAndCols(),Y.runHooks("beforeChangeRender",e,t),K.closeEditor(),Y.render(),K.prepareEditor(),Y.view.adjustElementsSize(),Y.runHooks("afterChange",e,t||"edit");const o=Y.getActiveEditor();o&&(0,n.isDefined)(o.refreshValue)&&o.refreshValue()}else Y.render()}function ge(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function fe(e,t){const o=Y.runHooks("beforeChange",e,t||"edit"),s=e.filter(e=>null!==e);var i;if(!1===o||0===s.length)return null===(i=Y.getActiveEditor())||void 0===i||i.cancelChanges(),[];for(let e=s.length-1;e>=0;e--){const[t,o,,i]=s[e],r=z.propToCol(o);let l;l=Number.isInteger(r)?Y.getCellMeta(t,r):{...Object.getPrototypeOf(oe),...oe};const{type:a,checkedTemplate:h,uncheckedTemplate:c}=l;if("numeric"===a&&"string"==typeof i&&(0,y.isNumericLike)(i)&&(s[e][3]=ce(i)),"checkbox"===a){const t=(0,n.stringify)(i),o=t===(0,n.stringify)(h),r=t===(0,n.stringify)(c);(o||r)&&(s[e][3]=o?h:c)}}return s}this.columnIndexMapper.addLocalHook("cacheUpdated",le),this.rowIndexMapper.addLocalHook("cacheUpdated",le),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const o=(0,c.createObjectPropListener)(!1),s=this.selection.getSelectedRange(),{from:r,to:n}=s.current(),l=s.size()-1;this.runHooks("afterSelection",r.row,r.col,n.row,n.col,o,l),this.runHooks("afterSelectionByProp",r.row,Y.colToProp(r.col),n.row,Y.colToProp(n.col),o,l),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&q.scrollTo(e);const a=ne.isSelectedByRowHeader(),h=ne.isSelectedByColumnHeader();a&&h?(0,i.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):a?((0,i.removeClass)(this.rootElement,"ht__selection--columns"),(0,i.addClass)(this.rootElement,"ht__selection--rows")):h?((0,i.removeClass)(this.rootElement,"ht__selection--rows"),(0,i.addClass)(this.rootElement,"ht__selection--columns")):(0,i.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ne.getSelectionSource())||K.closeEditor(null),"refresh"!==ne.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,c.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&q.scrollTo(e),K.closeEditor(),Y.view.render(),K.prepareEditor()}),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,Y.colToProp(o.col),s.row,Y.colToProp(s.col),t),"refresh"===ne.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{K.closeEditor(),Y.view.render(),(0,i.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectRows",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),$={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const r=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,d.arrayReduce)(t,(e,t)=>{let[o,s]=t;const i=e[e.length-1],[r,n]=i,l=r+n;if(o<=l){const e=Math.max(s-(l-o),0);i[1]+=e}else e.push([o,s]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const i=Y.countSourceRows();if(oe.maxRows===i)return;const l="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===l?i:0;const{delta:a,startPhysicalIndex:h}=z.createRow(t,o,{source:s,mode:l});ne.shiftRows(Y.toVisualRow(h),a);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?Y.countSourceCols():0;const{delta:u,startPhysicalIndex:g}=z.createCol(t,o,{source:s,mode:c});if(u){if(Array.isArray(oe.colHeaders)){const e=[Y.toVisualColumn(g),0];e.length+=u,Array.prototype.splice.apply(oe.colHeaders,e)}ne.shiftColumns(Y.toVisualColumn(g),u)}break;case"remove_row":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,i]=e;const r=(0,n.isEmpty)(o)?Y.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!z.removeRow(o,i,s))return;if(ne.isSelected()){const{row:e}=Y.getSelectedRangeLast().highlight;e>=o&&e<=o+i-1&&K.closeEditor(!0)}const l=Y.countRows(),a=oe.fixedRowsTop;a>=r+1&&(oe.fixedRowsTop-=Math.min(i,a-r));const h=oe.fixedRowsBottom;if(h&&r>=l-h&&(oe.fixedRowsBottom-=Math.min(i,h)),0===l)ne.deselect();else if("ContextMenu.removeRow"===s){const e=ne.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ne.refresh()}else ne.shiftRows(o,-i);t+=i})};Array.isArray(t)?f(r(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,i]=e;const r=(0,n.isEmpty)(o)?Y.countCols()-1:Math.max(o-t,0);let l=Y.toPhysicalColumn(r);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!z.removeCol(o,i,s))return;if(ne.isSelected()){const{col:e}=Y.getSelectedRangeLast().highlight;e>=o&&e<=o+i-1&&K.closeEditor(!0)}if(0===Y.countCols())ne.deselect();else if("ContextMenu.removeColumn"===s){const e=ne.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ne.refresh()}else ne.shiftColumns(o,-i);const a=oe.fixedColumnsStart;a>=r+1&&(oe.fixedColumnsStart-=Math.min(i,a-r)),Array.isArray(oe.colHeaders)&&(void 0===l&&(l=-1),oe.colHeaders.splice(l,i)),t+=i})};Array.isArray(t)?p(r(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}i||$.adjustRowsAndCols(),Y.view.render(),Y.view.adjustElementsSize()},adjustRowsAndCols(){const e=oe.minRows,t=oe.minSpareRows,o=oe.minCols,s=oe.minSpareCols;if(e){const t=Y.countRows();t<e&&z.createRow(t,e-t,{source:"auto"})}if(t){const e=Y.countEmptyRows(!0);if(e<t){const o=t-e,s=Math.min(o,oe.maxRows-Y.countSourceRows());z.createRow(Y.countRows(),s,{source:"auto"})}}{let e;(o||s)&&(e=Y.countEmptyCols(!0));let t=Y.countCols();if(o&&!oe.columns&&t<o){const s=o-t;e+=s,z.createCol(t,s,{source:"auto"})}if(s&&!oe.columns&&"array"===Y.dataType&&e<s){t=Y.countCols();const o=s-e,i=Math.min(o,oe.maxCols-t);z.createCol(t,i,{source:"auto"})}}},populateFromArray(e,t,o,s,i){let r,n,l,a;const h=[],u={},g=[],f=e.row,p=e.col;if(n=t.length,0===n)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),i){case"shift_down":const i=(0,d.pivot)(t),C=i.length,v=Math.max(C,m),y=Y.getData().slice(f),E=(0,d.pivot)(y).slice(p,p+v);for(l=0;l<v;l+=1)if(l<C){for(r=0,n=i[l].length;r<w-n;r+=1)i[l].push(i[l][r%n]);l<E.length?g.push(i[l].concat(E[l])):g.push(i[l].concat(new Array(y.length).fill(null)))}else g.push(i[l%C].concat(E[l]));Y.populateFromArray(f,p,(0,d.pivot)(g));break;case"shift_right":const S=t.length,R=Math.max(S,w),b=Y.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%n].slice(0,R).concat(b[r]));Y.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let _,T=0,M=0,I=!0;const O=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(n=o?A:Math.max(N,A),r=0;r<n&&!(o&&u.row>o.row&&A>N||!oe.allowInsertRow&&u.row>Y.countRows()-1||u.row>=oe.maxRows);r++){const t=r-T,i=O(t).length,d=o?o.col-e.col+1:0;if(a=o?d:Math.max(i,d),u.col=e.col,_=Y.getCellMeta(u.row,u.col),"CopyPaste.paste"!==s&&"Autofill.fill"!==s||!_.skipRowOnPaste){for(M=0,l=0;l<a&&!(o&&u.col>o.col&&d>i||!oe.allowInsertColumn&&u.col>Y.countCols()-1||u.col>=oe.maxCols);l++){if(_=Y.getCellMeta(u.row,u.col),("CopyPaste.paste"===s||"Autofill.fill"===s)&&_.skipColumnOnPaste){M+=1,u.col+=1,a+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==s){u.col+=1;continue}let e=O(t,l-M),o=Y.getDataAtCell(u.row,u.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===o&&(o=[]),null===o||"object"!=typeof o)I=!1;else{const t=(0,c.duckSchema)(Array.isArray(o)?o:o[0]||o),s=(0,c.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,c.isObjectEqual)(t,s)||Array.isArray(t)&&Array.isArray(s)?e=(0,c.deepClone)(e):I=!1}else null!==o&&"object"==typeof o&&(I=!1);I&&h.push([u.row,u.col,e]),I=!0,u.col+=1}u.row+=1}else T+=1,u.row+=1,n+=1}Y.setDataAtCell(h,null,null,s||"populateFromArray")}}},this.init=function(){G.setData(oe.data),Y.runHooks("beforeInit"),((0,l.isMobileBrowser)()||(0,l.isIpadOS)())&&(0,i.addClass)(Y.rootElement,"mobile"),this.updateSettings(t,!0),this.view=new E.default(this);const e=oe.themeName||(0,D.getThemeClassName)(Y.rootContainer);Y.useTheme(e),K=a.default.getInstance(Y,oe,ne),q=(0,H.createViewportScroller)(Y),X=new u.FocusManager(Y),(0,_.isRootInstance)(this)&&(0,H.installFocusCatcher)(Y),Y.runHooks("init"),this.render(),Q&&null===Y.rootElement.offsetParent&&(0,i.observeVisibilityChangeOnce)(Y.rootElement,()=>{Y.view._wt.wtOverlays.updateLastSpreaderSize(),Y.render(),Y.view.adjustElementsSize()}),"object"==typeof Q&&(Y.runHooks("afterChange",Q[0],Q[1]),Q=!1),Y.runHooks("afterInit")},this._createCellCoords=function(e,t){return Y.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return Y.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,s){let i=Y.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,i=t.visualRow,r=Y.getCell(i,s,!0);if(r&&"TH"!==r.nodeName){const e=Y.rowIndexMapper.getRenderableFromVisualIndex(i),t=Y.columnIndexMapper.getRenderableFromVisualIndex(s);Y.view._wt.getSetting("cellRenderer",e,t,r)}o(e)}var a;(0,n.isRegExp)(i)&&(a=i,i=function(e,t){t(a.test(e))}),(0,r.isFunction)(i)?(e=Y.runHooks("beforeValidate",e,t.visualRow,t.prop,s),Y._registerImmediate(()=>{i.call(t,e,o=>{Y&&(o=Y.runHooks("afterValidate",o,e,t.visualRow,t.prop,s),t.valid=o,l(o),Y.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,s))})})):Y._registerImmediate(()=>{t.valid=!0,l(t.valid,!1)})},this.setDataAtCell=function(e,t,o,s){const i=ge(e,t,o),r=[];let n,l,a,h=s;for(n=0,l=i.length;n<l;n++){if("object"!=typeof i[n])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof i[n][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=i[n][1]>=this.countCols()?i[n][1]:z.colToProp(i[n][1]),r.push([i[n][0],a,G.getAtCell(this.toPhysicalRow(i[n][0]),i[n][1]),i[n][2]])}h||"object"!=typeof e||(h=t);const c=fe(r,h);Y.runHooks("afterSetDataAtCell",c,h),ue(c,h,()=>{de(c,h)})},this.setDataAtRowProp=function(e,t,o,s){const i=ge(e,t,o),r=[];let n,l,a=s;for(n=0,l=i.length;n<l;n++)r.push([i[n][0],i[n][1],G.getAtCell(this.toPhysicalRow(i[n][0]),i[n][1]),i[n][2]]);a||"object"!=typeof e||(a=t);const h=fe(r,s);Y.runHooks("afterSetDataAtRowProp",h,a),ue(h,a,()=>{de(h,a)})},this.listen=function(){Y&&!Y.isListening()&&(B.forEach(e=>{Y!==e&&e.unlisten()}),F=Y.guid,Y.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(F=null,Y.runHooks("afterUnlisten"))},this.isListening=function(){return F===Y.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];K.closeEditor(e),Y.view.render(),t&&ne.isSelected()&&K.prepareEditor()},this.populateFromArray=function(e,t,o,s,i,r,n){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?Y._createCellCoords(s,i):null;return $.populateFromArray(Y._createCellCoords(e,t),o,l,r,n)},this.spliceCol=function(e,t,o){for(var s=arguments.length,i=new Array(s>3?s-3:0),r=3;r<s;r++)i[r-3]=arguments[r];return z.spliceCol(e,t,o,...i)},this.spliceRow=function(e,t,o){for(var s=arguments.length,i=new Array(s>3?s-3:0),r=3;r<s;r++)i[r-3]=arguments[r];return z.spliceRow(e,t,o,...i)},this.getSelected=function(){if(ne.isSelected())return(0,d.arrayMap)(ne.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(ne.isSelected())return Array.from(ne.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(!ne.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ne.getSelectedRange(),e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),s=e.getBottomEndCorner();(0,y.rangeEach)(o.row,s.row,e=>{(0,y.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||Y.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||Y.view.render())},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(!Y.view)return;const e=Y.view,{width:t,height:o}=e.getLastSize(),{width:s,height:i}=Y.rootElement.getBoundingClientRect(),r=s!==t||i!==o;!1===Y.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:s,height:i},r)||((r||e._wt.wtOverlays.scrollableElement===Y.rootWindow)&&(e.setLastSize(s,i),Y.render(),e.adjustElementsSize()),Y.runHooks("afterRefreshDimensions",{width:t,height:o},{width:s,height:i},r))},this.updateData=function(e,t){(0,A.replaceData)(e,e=>{z=e},e=>{z=e,Y.columnIndexMapper.fitToLength(this.getInitialColumnCount()),Y.rowIndexMapper.fitToLength(this.countSourceRows()),$.adjustRowsAndCols(),ne.refresh()},{hotInstance:Y,dataMap:z,dataSource:G,internalSource:"updateData",source:t,metaManager:te,firstRun:Q})},this.loadData=function(e,t){(0,A.replaceData)(e,e=>{z=e},()=>{te.clearCellsCache(),Y.initIndexMappers(),$.adjustRowsAndCols(),ne.refresh(),Q&&(Q=[null,"loadData"])},{hotInstance:Y,dataMap:z,dataSource:G,internalSource:"loadData",source:t,metaManager:te,firstRun:Q})},this.getInitialColumnCount=function(){const e=oe.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,r.isFunction)(e))if("array"===Y.dataType){const o=this.countSourceCols();for(let s=0;s<o;s+=1)e(s)&&(t+=1)}else"object"!==Y.dataType&&"function"!==Y.dataType||(t=z.colToPropCache.length);else if((0,n.isDefined)(oe.dataSchema)){const e=z.getSchema();t=Array.isArray(e)?e.length:(0,c.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,n.isUndefined)(e)?z.getAll():z.getRange(Y._createCellCoords(e,t),Y._createCellCoords(o,s),z.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,s){return z.getCopyableText(Y._createCellCoords(e,t),Y._createCellCoords(o,s))},this.getCopyableData=function(e,t){return z.getCopyable(e,z.colToProp(t))},this.getSchema=function(){return z.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(Q?Y.loadData:Y.updateData).bind(this);let s,i,l=!1;if((0,n.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,n.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,n.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(s in e.language&&function(e){const t=(0,O.normalizeLanguageCode)(e);(0,I.hasLanguageDictionary)(t)?(Y.runHooks("beforeLanguageChange",t),se.language=t,Y.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}(e.language),e)if("data"===s||"language"===s);else if("className"===s)ae("className",e.className);else if("tableClassName"===s&&Y.table)ae("tableClassName",e.tableClassName),Y.view._wt.wtOverlays.syncOverlayTableClassNames();else if(M.Hooks.getSingleton().isRegistered(s)||M.Hooks.getSingleton().isDeprecated(s)){const t=e[s];(0,r.isFunction)(t)?(M.Hooks.getSingleton().addAsFixed(s,t,Y),oe[s]=t):Array.isArray(t)&&(M.Hooks.getSingleton().add(s,t,Y),oe[s]=t)}else!t&&(0,c.hasOwnProperty)(e,s)&&(se[s]=e[s]);void 0===e.data&&void 0===oe.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(z.createMap(),Y.initIndexMappers());const a=Y.countCols(),h=oe.columns;if(h&&(0,r.isFunction)(h)&&(l=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||te.clearCache(),a>0)for(s=0,i=0;s<a;s++){if(h){const e=l?h(s):h[i];e&&te.updateColumnMeta(i,e)}i+=1}(0,n.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{Y.setCellMetaObject(e.row,e.col,e)}),Y.runHooks("afterCellMetaReset");let u=Y.rootElement.style.height;""!==u&&(u=parseInt(Y.rootElement.style.height,10));let d=e.height;if((0,r.isFunction)(d)&&(d=d()),t){Y.rootElement.getAttribute("style")&&Y.rootElement.setAttribute("data-initialstyle",Y.rootElement.getAttribute("style"))}if(null===d){const e=Y.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?Y.rootElement.setAttribute("style",e):(Y.rootElement.style.height="",Y.rootElement.style.overflow="")}else void 0!==d&&(Y.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,Y.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,r.isFunction)(t)&&(t=t()),Y.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(Y.view){Y.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),Y.view._wt.exportSettingsAsClassNames();const t=Y.getCurrentThemeName();(0,c.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&Y.useTheme(e.themeName)}Y.runHooks("afterUpdateSettings",e)}$.adjustRowsAndCols(),Y.view&&!Q&&(Y.render(),Y.view._wt.wtOverlays.adjustElementsSize()),t||!Y.view||""!==u&&""!==d&&void 0!==d||u===d||Y.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=Y.getSelectedLast();if(oe.getValue){if((0,r.isFunction)(oe.getValue))return oe.getValue.call(Y);if(e)return Y.getData()[e[0][0]][oe.getValue]}else if(e)return Y.getDataAtCell(e[0],e[1])},this.getSettings=function(){return oe},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,s,i){$.alter(e,t,o,s,i)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t,i=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;i=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===i||null===s||void 0===i||void 0===s?null:Y.view.getCellAtCoords(Y._createCellCoords(i,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 i=o,r=s;return o>=0&&(i=this.rowIndexMapper.getVisualFromRenderableIndex(o)),s>=0&&(r=this.columnIndexMapper.getVisualFromRenderableIndex(s)),Y._createCellCoords(i,r)},this.colToProp=function(e){return z.colToProp(e)},this.propToCol=function(e){return z.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 z.get(e,z.colToProp(t))},this.getDataAtRowProp=function(e,t){return z.get(e,t)},this.getDataAtCol=function(e){const t=[],o=z.getRange(Y._createCellCoords(0,e),Y._createCellCoords(oe.data.length-1,e),z.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=z.getRange(Y._createCellCoords(0,z.propToCol(e)),Y._createCellCoords(oe.data.length-1,z.propToCol(e)),z.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 i;return i=void 0===e?G.getData():G.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(o,s)),i},this.getSourceDataArray=function(e,t,o,s){let i;return i=void 0===e?G.getData(!0):G.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(o,s),!0),i},this.getSourceDataAtCol=function(e){return G.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,s){const i=ge(e,t,o),r=this.hasHook("afterSetSourceDataAtCell"),l=[];r&&(0,d.arrayEach)(i,e=>{let[t,o,s]=e;l.push([t,o,G.getAtCell(t,o),s])}),(0,d.arrayEach)(i,e=>{let[t,o,s]=e;G.setAtCell(t,o,s)}),r&&this.runHooks("afterSetSourceDataAtCell",l,s),this.render();const a=Y.getActiveEditor();a&&(0,n.isDefined)(a.refreshValue)&&a.refreshValue()},this.getSourceDataAtRow=function(e){return G.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return G.getAtCell(e,t)},this.getDataAtRow=function(e){return z.getRange(Y._createCellCoords(e,0),Y._createCellCoords(e,this.countCols()-1),z.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,s){const i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,s],[r,n]=i;let[,,l,a]=i,h=null,c=null;void 0===l&&(l=r),void 0===a&&(a=n);let u="mixed";return(0,y.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(n,a),0),Math.max(n,a),o=>{const s=this.getCellMeta(e,o);return c=s.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,o){const[s,i]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let r=te.getCellMetaKeyValue(s,i,o);!1!==Y.runHooks("beforeRemoveCellMeta",e,t,o,r)&&(te.removeCellMeta(s,i,o),Y.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),i=2;i<o;i++)s[i-2]=arguments[i];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&&te.removeRow(this.toPhysicalRow(e),t),s.length>0&&(0,d.arrayEach)(s.reverse(),t=>{te.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,o)=>this.setCellMetaObject(e,o,t))}),Y.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,(o,s)=>{this.setCellMeta(e,t,s,o)})},this.setCellMeta=function(e,t,o,s){if(!1===Y.runHooks("beforeSetCellMeta",e,t,o,s))return;let i=e,r=t;e<this.countRows()&&(i=this.toPhysicalRow(e)),t<this.countCols()&&(r=this.toPhysicalColumn(t)),te.setCellMeta(i,r,o,s),Y.runHooks("afterSetCellMeta",e,t,o,s)},this.getCellsMeta=function(){return te.getCellsMeta()},this.getCellMeta=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},s=this.toPhysicalRow(e),i=this.toPhysicalColumn(t);return null===s&&(s=e),null===i&&(i=t),te.getCellMeta(s,i,{visualRow:e,visualColumn:t,...o})},this.getColumnMeta=function(e){return te.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return te.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===Y.dataType||oe.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?Y.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,m.getRenderer)(o):(0,n.isUndefined)(o)?(0,m.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?Y.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,w.getEditor)(o):(0,n.isUndefined)(o)?(0,w.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?Y.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,C.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 he;e&&(s.onQueueEmpty=e);let i=Y.countRows()-1;for(;i>=0;){if(void 0!==t&&-1===t.indexOf(i)){i-=1;continue}let e=Y.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(s.addValidatorToQueue(),Y.validateCell(Y.getDataAtCell(i,e),Y.getCellMeta(i,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;i-=1}s.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=oe.rowHeaders,o=e;return void 0!==o&&(o=Y.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,y.rangeEach)(Y.countRows()-1,e=>{t.push(Y.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!!oe.rowHeaders},this.hasColHeaders=function(){if(void 0!==oe.colHeaders&&null!==oe.colHeaders)return!!oe.colHeaders;for(let e=0,t=Y.countCols();e<t;e++)if(Y.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=Y.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=Y.countCols();for(let o=0;o<t;o++)e.push(Y.getColHeader(o));return e}let s=oe.colHeaders;const i=Y.toPhysicalColumn(o),n=function(e){const t=[],o=Y.countCols();let s=0;for(;s<o;s++)(0,r.isFunction)(oe.columns)&&oe.columns(s)&&t.push(s);return t[e]}(i);return!1===oe.colHeaders?s=null:oe.columns&&(0,r.isFunction)(oe.columns)&&oe.columns(n)&&oe.columns(n).title?s=oe.columns(n).title:oe.columns&&oe.columns[i]&&oe.columns[i].title?s=oe.columns[i].title:Array.isArray(oe.colHeaders)&&void 0!==oe.colHeaders[i]?s=oe.colHeaders[i]:(0,r.isFunction)(oe.colHeaders)?s=oe.colHeaders(i):oe.colHeaders&&"string"!=typeof oe.colHeaders&&"number"!=typeof oe.colHeaders&&(s=(0,R.spreadsheetColumnLabel)(o)),s=Y.runHooks("modifyColumnHeaderValue",s,e,t),s},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=Y.getCellMeta(0,e).width}if(void 0!==t&&t!==oe.width||(t=oe.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,t){let o=Y._getColWidthFromSettings(e);return o=Y.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=T.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){const t=Y.stylesHandler.getDefaultRowHeight();let o=oe.rowHeights;if(null!=o){switch(typeof o){case"object":o=o[e];break;case"function":o=o(e)}"string"==typeof o&&(o=parseInt(o,10))}return null!=o&&o<t?t:o},this.getRowHeight=function(e,t){let o=Y._getRowHeightFromSettings(e);return o=Y.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return G.countRows()},this.countSourceCols=function(){return G.countFirstRowKeys()},this.countRows=function(){return z.getLength()},this.countCols=function(){const e=oe.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(Y.countRows()-1,o=>{if(Y.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,y.rangeEachReverse)(Y.countCols()-1,o=>{if(Y.isEmptyCol(o))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return oe.isEmptyRow.call(Y,e)},this.isEmptyCol=function(e){return oe.isEmptyCol.call(Y,e)},this.selectCell=function(e,t,o,s){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,n.isUndefined)(e)&&!(0,n.isUndefined)(t)&&this.selectCells([[e,t,o,s]],i,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])&&q.suspend();const o=ne.selectCells(e);return o&&t&&Y.listen(),q.resume(),o},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ne.selectColumns(e,t,o)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ne.selectRows(e,t,o)},this.deselectCell=function(){ne.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;q.skipNextScrollCycle(),ne.selectAll(e,t,o)};const pe=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var o;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(o=arguments[4])||void 0===o||o});const{row:s,col:i,considerHiddenIndexes:n}=null!=e?e:{};let l=s,a=i;if((0,r.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===n||n){const e=Number.isInteger(s)&&s>=0,t=Number.isInteger(i)&&i>=0,o=e?pe(this.rowIndexMapper,s):void 0,r=t?pe(this.columnIndexMapper,i):void 0;if(null===o||null===r)return!1;l=e?Y.rowIndexMapper.getRenderableFromVisualIndex(o):s,a=t?Y.columnIndexMapper.getRenderableFromVisualIndex(r):i}const h=Number.isInteger(l),c=Number.isInteger(a);let u=!1;return h&&l>=0&&c&&a>=0?u=Y.view.scrollViewport(Y._createCellCoords(l,a),e.horizontalSnap,e.verticalSnap):h&&l>=0&&(c&&a<0||!c)?u=Y.view.scrollViewportVertically(l,e.verticalSnap):c&&a>=0&&(h&&l<0||!h)&&(u=Y.view.scrollViewportHorizontally(a,e.horizontalSnap)),(0,r.isFunction)(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),u},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,r.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast(),o=this.scrollViewportTo(t.toObject());return o?this.view.render():(0,r.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),o},this.destroy=function(){Y._clearTimeouts(),Y._clearImmediates(),Y.view&&Y.view.destroy(),G&&G.destroy(),G=null,this.getShortcutManager().destroy(),re.clear(),te.clearCache(),B.delete(this.guid),j.destroy(),K&&K.destroy(),Y.rootContainer&&(0,i.empty)(Y.rootContainer),Y.rootPortalElement&&Y.rootPortalElement.remove(),Y.batchExecution(()=>{Y.rowIndexMapper.unregisterAll(),Y.columnIndexMapper.unregisterAll(),ie.getItems().forEach(e=>{let[,t]=e;t.destroy()}),ie.clear(),Y.runHooks("afterDestroy")},!0),M.Hooks.getSingleton().destroy(Y),(0,c.objectEach)(Y,(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)}),Y.isDestroyed=!0,z&&z.destroy(),z=null,$=null,ne=null,K=null,Y=null},this.getActiveEditor=function(){return K.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return Y.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return Y.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return Y.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return Y.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return Y.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return Y.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return Y.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return Y.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return Y.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return Y.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return Y.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return Y.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return ie.getItem((0,v.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ie.getId(e)},this.getInstance=function(){return Y},this.addHook=function(e,t,o){M.Hooks.getSingleton().add(e,t,Y,o)},this.hasHook=function(e){return M.Hooks.getSingleton().has(e,Y)||M.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){M.Hooks.getSingleton().once(e,t,Y,o)},this.removeHook=function(e,t){M.Hooks.getSingleton().remove(e,t,Y)},this.runHooks=function(e,t,o,s,i,r,n){return M.Hooks.getSingleton().run(Y,e,t,o,s,i,r,n)},this.getTranslatedPhrase=function(e,t){return(0,I.getTranslatedPhrase)(oe.language,e,t)},this.toHTML=()=>(0,g.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!Q;this.stylesHandler.useTheme(e);const o=this.stylesHandler.getThemeName();(0,_.isRootInstance)(this)&&((0,i.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,i.removeClass)(this.rootPortalElement,/ht-theme-.*/g),o&&((0,i.addClass)(this.rootWrapperElement,o),(0,i.addClass)(this.rootPortalElement,o),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,V.warn)(`The "${o}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`))),t||(Y.render(),Y.scrollViewportTo(0,0),(0,D.getThemeClassName)(this.rootContainer)&&((0,i.removeClass)(this.rootContainer,/ht-theme-.*/g),o&&(0,i.addClass)(this.rootContainer,o))),this.runHooks("afterSetTheme",o,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,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,d.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return K};const me=(0,P.createShortcutManager)({handleEvent:()=>Y.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||Y.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&me.releasePressedKeys()}),this.getShortcutManager=function(){return me},this.getFocusManager=function(){return X},(0,p.getPluginsNames)().forEach(e=>{const t=(0,p.getPlugin)(e);ie.addItem(e,new t(this))}),(0,k.registerAllShortcutContexts)(Y),me.setActiveContextName("grid"),M.Hooks.getSingleton().run(Y,"construct")},o(88443),o(85639),o(41846),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307),o(69326),o(90795),o(57);var i=o(58741),r=o(30848),n=o(97213),l=o(8874),a=s(o(54712)),h=s(o(80277)),c=o(89255),u=o(96441),d=o(13351),g=o(95425),f=o(65615),p=o(67220),m=o(73424),w=o(95422),C=o(97287),v=o(78449),y=o(79501),E=s(o(8929)),S=s(o(36872)),R=o(83080),b=o(43393),_=o(99543),T=o(33674),M=o(12945),I=o(15022),O=o(26120),N=o(4649),A=o(38749),H=o(3430),x=o(37334),P=o(56332),k=o(76107),D=o(49078),L=o(92780),V=o(35359),W=o(63377);let F=null;const B=new Map;new Set},92018:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:n}=t,l=new Map;return{before:function(){},after:function(a,h,c){const u=e.mergedCellsCollection.get(h,c);if(!(0,s.isObject)(u))return a.removeAttribute("rowspan"),a.removeAttribute("colspan"),(0,i.isSafari)()&&l.has(h)&&!t.getSettings().rowHeaders&&(a.style.height=`${l.get(h)}px`,l.delete(h)),void(a.style.display="");const{row:d,col:g,colspan:f,rowspan:p}=u,[m,w]=e.translateMergedCellToRenderable(d,p,g,f),C=e.getSetting("virtualized");if((0,i.isSafari)()&&0===g&&!t.getSettings().rowHeaders){const e=(0,r.sumCellsHeights)(t,d,p);l.set(h,e/p)}const v=m-o.getRenderableFromVisualIndex(h)+1,y=w-n.getRenderableFromVisualIndex(c)+1;let E=o.getNearestNotHiddenIndex(d,1),S=n.getNearestNotHiddenIndex(g,1);if(C){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(E=Math.max(E,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleColumn()))}const R=Math.min(p,v),b=Math.min(f,y);E===h&&S===c?(a.setAttribute("rowspan",R),a.setAttribute("colspan",b)):(a.removeAttribute("rowspan"),a.removeAttribute("colspan"),a.style.display="none")}}};var s=o(89255),i=o(8874),r=o(46396)},92054:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(73741),o(69326);var i=s(o(83028)),r=s(o(19073)),n=s(o(5433)),l=s(o(97283)),a=s(o(28494)),h=o(89255);class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new i.default(e),this.tableMeta=new r.default(this.globalMeta),this.columnMeta=new n.default(this.globalMeta),this.cellMeta=new l.default(this.columnMeta),o.forEach(e=>new e(this)),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,o){const s=this.cellMeta.getMeta(e,t);return s.visualRow=o.visualRow,s.visualCol=o.visualColumn,s.row=e,s.col=t,o.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",s),s}getCellMetaKeyValue(e,t,o){if("string"!=typeof o)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,o)}setCellMeta(e,t,o,s){this.cellMeta.setMeta(e,t,o,s)}updateCellMeta(e,t,o){this.cellMeta.updateMeta(e,t,o)}removeCellMeta(e,t,o){this.cellMeta.removeMeta(e,t,o)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}t.default=c,(0,h.mixin)(c,a.default)},92220:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(97213),r=o(85296);const n=t.CONDITION_NAME="contains";function l(e,t){let[o]=t;return(0,i.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,i.stringify)(o))>=0}(0,r.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},92229:(e,t,o)=>{"use strict";var s=o(88005);e.exports=function(e,t){var o=s[e],i=o&&o.prototype;return i&&i[t]}},92237:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var i=s(o(86798)),r=o(95422),n=o(69383),l=o(41876);const a=t.VALIDATOR_TYPE="date";function h(e,t){const o=(0,r.getEditorInstance)(n.EDITOR_TYPE,this.instance);let s=e,l=!0;null==s&&(s="");let a=(0,i.default)(s,this.dateFormat||o.defaultDateFormat,!0).isValid(),h=(0,i.default)(new Date(s)).isValid()||a;if(this.allowEmpty&&""===s&&(h=!0,a=!0),h||(l=!1),!h&&a&&(l=!0),h&&!a)if(!0===this.correctFormat){const e=c(s,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),l=!0}else l=!1;t(l)}function c(e,t){const o=(0,i.default)((0,l.getNormalizedDate)(e)),s=(0,i.default)(e,t),r=e.search(/[A-Za-z]/g)>-1;let n;return n=o.isValid()&&o.format("x")===s.format("x")||!s.isValid()||r?o:s,n.format(t)}h.VALIDATOR_TYPE=a},92534:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307),o(90795);var i=s(o(53726)),r=o(58741),n=o(66497),l=o(13351),a=o(95977),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),c=o(70026),u=o(74459),d=o(14676),g=o(83026),f=o(85296),p=o(49968);function m(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakSet;class v extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,C),(0,i.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>w(C,this,y).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(C,this,S).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,o,s,i,r)=>{const[n]=(0,l.arrayFilter)(o,e=>e.name===g.CONDITION_BY_VALUE),a={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(n){const o=i(t,r),h=(0,l.arrayMap)(o,e=>e.value),d=new Map(o.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),p=(0,c.unifyColumnValues)(h);s&&(n.args[0]=s);const m=[],v=(0,c.intersectValues)(p,n.args[0],u,e=>{e.checked&&m.push(e.value),w(C,this,E).call(this,e,d)}),y=e.editedConditionStack.column;a.locale=this.hot.getCellMeta(0,y).locale,a.args=[m],a.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),a.itemsSnapshot=v}else a.args=[],a.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,a)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter(e=>e instanceof d.MultipleSelectUI)[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,i,n)=>{(0,r.addClass)(t.parentNode,"htFiltersMenuValue");const a=this.hot.rootDocument.createElement("div");return(0,r.addClass)(a,"htFiltersMenuLabel"),a.textContent=n,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),o=t.map(e=>e.value),s=new Map(t.map(e=>[e.value,e.meta])),i=(0,c.unifyColumnValues)(o),r=(0,c.intersectValues)(i,i,e,e=>{w(C,this,E).call(this,e,s)});this.getMultipleSelectElement().setItems(r),super.reset(),this.getMultipleSelectElement().setValue(i);const n=this.hot.getPlugin("filters").getSelectedColumn();null!==n&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,n.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,l.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)}))}}function y(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,n.stopImmediatePropagation)(e))}function E(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function S(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=v},92560:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=r;var s=o(30539);const i=t.RENDERER_TYPE="date";function r(e,t,o,i,r,n,l){s.autocompleteRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},92689:(e,t,o)=>{"use strict";var s=o(5006),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+s(t)+" of "+s(e))}},92754:(e,t,o)=>{"use strict";var s=o(88005),i=o(85458),r=o(54090),n=o(96745),l=o(77976),a=o(16329),h=s.Symbol,c=i("wks"),u=a?h.for||h:h&&h.withoutSetter||n;e.exports=function(e){return r(c,e)||(c[e]=l&&r(h,e)?h[e]:u("Symbol."+e)),c[e]}},92780:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(73741),o(69326);var s=o(35359);function i(e,t,o){r(e,t),t.set(e,o)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),o=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(o)?null:e+2*t+o}function C(){this.isClassicTheme()||l(u,this,getComputedStyle(n(c,this)));const e=a(m,this,v).call(this,["box-sizing","border-bottom-width"]);n(p,this).td={...n(p,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function v(e){const t=n(d,this),o=n(c,this),s=t.createElement("table"),i=t.createElement("tbody"),r=t.createElement("tr"),l=t.createElement("tr"),a=t.createElement("td");l.appendChild(a),i.appendChild(r),i.appendChild(l),s.appendChild(i),o.appendChild(s);const h=getComputedStyle(a),u={};return e.forEach(e=>{u[e]=h.getPropertyValue(e)}),o.removeChild(s),u}function y(e){const t=Math.ceil(parseFloat(a(m,this,E).call(this,e)));return Number.isNaN(t)?null:t}function E(e){const t=n(u,this).getPropertyValue(e);return""===t?null:t}function S(){l(p,this,{}),l(f,this,{}),l(g,this,!0)}t.StylesHandler=class{constructor(e,t){var o,s;r(o=this,s=m),s.add(o),i(this,h,void 0),i(this,c,void 0),i(this,u,void 0),i(this,d,void 0),i(this,g,!0),i(this,f,{}),i(this,p,{}),l(c,this,e),l(d,this,t)}isClassicTheme(){return n(g,this)}getCSSVariableValue(e){var t;if(n(g,this))return null;if(n(f,this)[`--ht-${e}`])return n(f,this)[`--ht-${e}`];const o=null!==(t=a(m,this,y).call(this,`--ht-${e}`))&&void 0!==t?t:a(m,this,E).call(this,`--ht-${e}`);return null!==o?(n(f,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=n(p,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(n(g,this))return 23;const e=a(m,this,w).call(this);return e||23}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return l(h,this,void 0),l(g,this,!0),void a(m,this,C).call(this);if(e&&e!==n(h,this)){if(!/ht-theme-.*/.test(e))return(0,s.warn)(`Invalid theme name: ${e}. Please provide a valid theme name.`),l(h,this,void 0),l(g,this,!1),void a(m,this,C).call(this);n(h,this)&&a(m,this,S).call(this),l(h,this,e),l(g,this,!1),a(m,this,C).call(this)}}getThemeName(){return n(h,this)}}},92988:(e,t,o)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(s.toSingleLine`The passed node is not the last node on the tree. Only for\x20
71
- the last node, the hide column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(o.includes(t))return;let i=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return i=!0,!1}),i)return;e.walkUp(e=>{const{data:o}=e;o.crossHiddenColumns.push(t),o.colspan>1?o.colspan-=1:o.isHidden=!0})},o(88443),o(85639);var s=o(5455)},93176:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(37579));function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){r(this,h,void 0),r(this,c,void 0),r(this,u,void 0),r(this,d,!1),r(this,g,!1),r(this,f,null),r(this,p,null),l(h,this,new i.default("row",e,this)),l(c,this,new i.default("column",t,this)),l(u,this,o)}getForAxis(e){return n("row"===e?h:c,this)}setPerformUndo(e){l(d,this,e)}setPerformRedo(e){l(g,this,e)}isPerformingUndoRedo(){return n(d,this)||n(g,this)}getSheetId(){return n(p,this)}getEngine(){return n(f,this)}getPostponeAction(){return n(u,this)}setupSyncEndpoint(e,t){l(f,this,e),l(p,this,t),n(h,this).init(),n(c,this).init()}}},93295:(e,t,o)=>{"use strict";var s=o(10028),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},r=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var o=s("Set");try{(new o)[e](i(0));try{return(new o)[e](i(-1)),!1}catch(s){if(!t)return!0;try{return(new o)[e](r(-1/0)),!1}catch(s){var n=new o;return n.add(1),n.add(2),t(n[e](r(1/0)))}}}catch(e){return!1}}},93374:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9288);const i=t.EDITOR_TYPE="numeric";class r extends s.TextEditor{static get EDITOR_TYPE(){return i}}t.NumericEditor=r},93404:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.StretchStrategy=class{constructor(e){(0,i.default)(this,"viewportWidth",void 0),(0,i.default)(this,"overwriteColumnWidthFn",void 0),(0,i.default)(this,"baseWidths",new Map),(0,i.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},93483:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(74436);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.HiddenColumns=s.HiddenColumns},93523:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(97213),r=o(85296);const n=t.CONDITION_NAME="begins_with";function l(e,t){let[o]=t;return(0,i.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,i.stringify)(o))}(0,r.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},93595:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499),r=o(90911),n=o(30845),l=o(18622),a=o(98304),h=o(78016),c=i.has,u=i.remove;e.exports=function(e){var t=s(this),o=l(e),i=r(t);return n(t)<=o.size?a(t,function(e){o.includes(e)&&u(i,e)}):h(o.getIterator(),function(e){c(i,e)&&u(i,e)}),i}},93692:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(45634);t.RENDERER_TYPE=s.RENDERER_TYPE,t.textRenderer=s.textRenderer},94106:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(14858);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Autofill=s.Autofill},94218:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726));t.BaseAction=class{constructor(e){(0,i.default)(this,"actionType",""),this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}},94293:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,n,l){(0,s.arrayEach)(e,e=>{e.forAll((e,s)=>{e>=0&&s>=0&&function(e,t,o,s,n,l){const a=n(e,t);let h=s;a.className&&(h="vertical"===o?i(a.className,s):r(a.className,s));l(e,t,"className",h)}(e,s,t,o,n,l)})})},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,s.arrayEach)(e,e=>(e.forAll((e,s)=>{if(e>=0&&s>=0&&t(e,s))return o=!0,!1}),o));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,s.arrayEach)(e,e=>{e.forAll((e,s)=>{e>=0&&s>=0&&(o[e]||(o[e]=[]),o[e][s]=t(e,s))})}),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const s=this.getCellMeta(t,o).className;return s&&-1!==s.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:s,left:i}=e.getBoundingClientRect();o.top=s,o.left=i}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=r,t.prepareVerticalAlignClass=i;var s=o(13351);function i(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function r(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},94481:(e,t,o)=>{"use strict";var s=o(4336),i=String,r=TypeError;e.exports=function(e){if(s(e))return e;throw new r("Can't set "+i(e)+" as a prototype")}},94492:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var s=o(16372);const i=t.KEY="no_items"},94828:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));class r{constructor(e){(0,i.default)(this,"data",void 0),(0,i.default)(this,"next",null),(0,i.default)(this,"prev",null),this.data=e}}t.NodeStructure=r;t.default=class{constructor(){(0,i.default)(this,"first",null),(0,i.default)(this,"last",null)}push(e){const t=new r(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new r(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,s=this.first;for(;s;){if(s.data===e)return t=s.next,o=s.prev,t&&(t.prev=o),o&&(o.next=t),s===this.first&&(this.first=t),s===this.last&&(this.last=o),!0;s=s.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},95160:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const o=null===(t=this.getSelectedRangeLast())||void 0===t?void 0:t.highlight;return null!=o&&o.isCell()&&e.getCommentAtCell(o.row,o.col)?this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeLast();e.setRange(t),e.show(),e.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},95422:(e,t,o)=>{"use strict";t.__esModule=!0,t.RegisteredEditor=u,t.getEditorInstance=t._getEditorInstance=function(e,t){let o;if("function"==typeof e)r.get(e)||d(null,e),o=r.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=l(e)}if(!o)throw Error(`No editor registered under name "${e}"`);return o.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!a(e))throw Error(`No registered editor found under "${e}" name`);return l(e).getConstructor()},t.registerEditor=d,o(88443);var s=o(12945),i=o(65615);const r=new WeakMap,{register:n,getItem:l,hasItem:a,getNames:h,getValues:c}=(0,i.staticRegister)("editors");function u(e){const t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},s.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function d(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const o=new u(t);"string"==typeof e&&n(e,o),r.set(t,o)}t.getRegisteredEditors=c,t.getRegisteredEditorNames=h,t.hasEditor=a},95425:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let i=0;i<t;i+=1){const r=e[i],n=r.length,l=[];0===i&&o.push("<tbody>");for(let e=0;e<n;e+=1){const t=r[e],o=(0,s.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");l.push(`<td>${o}</td>`)}o.push("<tr>",...l,"</tr>"),i+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},s=t.createDocumentFragment(),n=t.createElement("div");s.appendChild(n);let l=e;if("string"==typeof l){const e=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/gm,"")}</td>`});n.insertAdjacentHTML("afterbegin",`${e}`),l=n.querySelector("table")}if(!l||!function(e){return"TABLE"===(e&&e.nodeName||"")}(l))return;const a=n.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),c=l.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=l.tFoot&&Array.from(l.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(l.tHead){const e=Array.from(l.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce((e,t)=>{const o=Array.from(t.cells).reduce((e,t,o)=>{if(h&&0===o)return e;const{colSpan:s,innerHTML:i}=t,r=s>1?{label:i,colspan:s}:i;return e.push(r),e},[]);return e.push(o),e},[]):f&&(o.colHeaders=Array.from(e[0].children).reduce((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(l.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),s=o.length;for(let t=0;t<s;t++){const s=o[t],{nodeName:n,innerHTML:l,rowSpan:h,colSpan:c}=s,u=C[e].findIndex(e=>void 0===e);if("TD"===n){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=s.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=a&&/excel/gi.test(a.content)?l.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):l.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(r,e=>i[e])}else y.push(l)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),i=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],r=e.getData(...i),n=r.length,l=n>0?r[0].length:0,a=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let i=0;i<n;i+=1){const n=t&&0===i,a=[];for(let t=0;t<l;t+=1){const l=!n&&o&&0===t;let h="";if(n)h=`<th>${e.getColHeader(t-u)}</th>`;else if(l)h=`<th>${e.getRowHeader(i-d)}</th>`;else{const o=r[i][t],{hidden:n,rowspan:l,colspan:a}=e.getCellMeta(i-d,t-u);if(!n){const e=[];if(l&&e.push(`rowspan="${l}"`),a&&e.push(`colspan="${a}"`),(0,s.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}a.push(h)}const g=["<tr>",...a,"</tr>"].join("");n?h.splice(1,0,g):c.splice(-1,0,g)}return a.splice(1,0,h.join(""),c.join("")),a.join("")},o(85639),o(63667),o(73741),o(7307),o(90795),o(89663);var s=o(97213);const i={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},r=new RegExp(Object.keys(i).map(e=>`(${e})`).join("|"),"gi")},95445:(e,t,o)=>{"use strict";var s=o(69243),i=o(60370).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,i)}},95506:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,i.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(16372),i=o(79501)},95603:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_before";function a(e,t){let[o]=t;const s=(0,i.default)(e.value,e.meta.dateFormat),r=(0,i.default)(o,e.meta.dateFormat);return!(!s.isValid()||!r.isValid())&&s.diff(r)<=0}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},95975:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(99812);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.NestedHeaders=s.NestedHeaders},95977:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,i.isMacOS)()?t.push(r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX):t.push(r.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[r.CONTROL,r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return n.includes(e)},t.isKey=function(e,t){const o=t.split("|");let i=!1;return(0,s.arrayEach)(o,t=>{if(e===r[t])return i=!0,!1}),i},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},o(85639);var s=o(13351),i=o(8874);const r=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,i.isFirefox)()?182:174,AUDIO_MUTE:(0,i.isFirefox)()?181:173,AUDIO_UP:(0,i.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},n=[r.ALT,r.ARROW_DOWN,r.ARROW_LEFT,r.ARROW_RIGHT,r.ARROW_UP,r.AUDIO_DOWN,r.AUDIO_MUTE,r.AUDIO_UP,r.BACKSPACE,r.CAPS_LOCK,r.DELETE,r.END,r.ENTER,r.ESCAPE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.F13,r.F14,r.F15,r.F16,r.F17,r.F18,r.F19,r.HOME,r.INSERT,r.MEDIA_NEXT,r.MEDIA_PLAY_PAUSE,r.MEDIA_PREV,r.MEDIA_STOP,r.NULL,r.NUM_LOCK,r.PAGE_DOWN,r.PAGE_UP,r.PAUSE,r.SCROLL_LOCK,r.SHIFT,r.TAB]},96068:e=>{"use strict";e.exports=function(e){try{var t=new Set,o={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},s=t[e](o);return 1!==s.size||4!==s.values().next().value}catch(e){return!1}}},96088:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!o.call({1:2},1);t.f=i?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},96102:(e,t,o)=>{"use strict";var s=o(25225),i=o(72119),r=o(6996),n=o(53385),l=o(13794),a=s([].push);e.exports=function(e){if(r(e))return e;if(i(e)){for(var t=e.length,o=[],s=0;s<t;s++){var h=e[s];"string"==typeof h?a(o,h):"number"!=typeof h&&"Number"!==n(h)&&"String"!==n(h)||a(o,l(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(i(this))return t;for(var s=0;s<c;s++)if(o[s]===e)return t}}}},96422:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(56334);t.RENDERER_TYPE=s.RENDERER_TYPE,t.dropdownRenderer=s.dropdownRenderer},96441:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(35359),i=o(58741),r=o(30848);function n(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){var t;const o=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!o||!a(d,this).selection.isCellVisible(o))return void e(null);const s=a(d,this).getCell(o.row,o.col,!0);null===s?a(d,this).addHookOnce("afterScroll",()=>{e(a(d,this).getCell(o.row,o.col,!0))}):e(s)}function v(){c(w,this,C).call(this,e=>{const{activeElement:t}=a(d,this).rootDocument;t&&(0,i.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function y(){c(w,this,C).call(this,e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function E(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusManager=class{constructor(e){var t,o,s=this;l(t=this,o=w),o.add(t),n(this,d,void 0),n(this,g,void 0),n(this,f,1),n(this,p,null),n(this,m,new Map);const i=e.getSettings();h(d,this,e),h(g,this,i.imeFastEdit?u.MIXED:u.CELL),a(d,this).addHook("afterUpdateSettings",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,E).call(s,...t)}),a(d,this).addHook("afterSelection",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)}),a(d,this).addHook("afterSelectionFocusSet",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)}),a(d,this).addHook("afterSelectionEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,y).call(s,...t)})}getFocusMode(){return a(g,this)}setFocusMode(e){Object.values(u).includes(e)?h(g,this,e):(0,s.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return a(f,this)}setRefocusDelay(e){h(f,this,e)}setRefocusElementGetter(e){h(p,this,e)}getRefocusElement(){var e;return"function"==typeof a(p,this)?a(p,this).call(this):null===(e=a(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,o;const s=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!s)return;let r=a(d,this).runHooks("modifyFocusedElement",s.row,s.col,e);(0,i.isHTMLElement)(r)||(r=e),!r||null!==(o=a(d,this).getActiveEditor())&&void 0!==o&&o.isOpened()||r.focus({preventScroll:!0})};e?t(e):c(w,this,C).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(f,this);var o,s;!a(d,this).getSettings().imeFastEdit||null!==(e=a(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(o=a(d,this).getActiveEditor())||void 0===o||null===(s=o.refreshValue)||void 0===s||s.call(o),a(m,this).has(t)||a(m,this).set(t,(0,r.debounce)(()=>{var e;a(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),a(m,this).get(t)())}}},96673:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:s}=e.getSelectedRangeLast(),i=Math.max(s.row-e.countVisibleRows(),0),r=o.getNearestNotHiddenIndex(i,1);if(null!==r){const o=e._createCellCoords(r,s.col),i=s.row-e.getFirstFullyVisibleRow(),n=Math.max(o.row-i,0);t.markSource("keyboard"),t.setRangeEnd(o),t.markEndSource(),e.scrollViewportTo({row:n,verticalSnap:"top",horizontalSnap:"start"})}}}},96681:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(58741),n=o(13351);t.default=class{constructor(e){(0,i.default)(this,"hot",null),(0,i.default)(this,"container",null),(0,i.default)(this,"injected",!1),(0,i.default)(this,"rows",[]),(0,i.default)(this,"columns",[]),(0,i.default)(this,"samples",null),(0,i.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={row:e};this.rows.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),0===e&&(0,r.addClass)(this.table.table,"htGhostTableFirstRow"),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}addColumnHeadersRow(e){const t=this.hot.getColHeader(0);if(null!=t){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={col:e};this.columns.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,n.arrayEach)(this.rows,t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))})}getWidths(e){this.injected||this.injectTable(),(0,n.arrayEach)(this.columns,t=>{const{width:o}=t.table.getBoundingClientRect();e(t.col,Math.ceil(o))})}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach(o=>{(0,n.arrayEach)(o.strings,o=>{t.appendChild(this.createColElement(o.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,s),o.appendChild(s)),this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.col,r=this.hot.getCellMeta(e,i),n=this.hot.getCellRenderer(r),l=t.createElement("td");l.setAttribute("ghost-table",1),n(this.hot,l,e,i,this.hot.colToProp(i),s.value,r),o.appendChild(l)})}),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const s=e.createElement("th");o.push([-1,s]),t.appendChild(s)}this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.col,r=e.createElement("th");o.push([i,r]),t.appendChild(r)})}),this.table.tHead.appendChild(t),(0,n.arrayEach)(o,e=>{const[t,o]=e;this.hot.view.appendColHeader(t,o)})}createCol(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment();return this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.row,r=this.hot.getCellMeta(i,e),n=this.hot.getCellRenderer(r),l=t.createElement("td"),a=t.createElement("tr");l.setAttribute("ghost-table",1),n(this.hot,l,i,e,this.hot.colToProp(e),s.value,r),a.appendChild(l),o.appendChild(a)})}),o}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const o=this.hot.rootDocument.createElement("col");let s=0;t>=0&&e>=0&&(s=this.hot.getCellMeta(t,e).colspan);let i=this.hot.getColWidth(e);if(s>1)for(let t=e+1;t<e+s;t++)i+=this.hot.getColWidth(t);return o.style.width=`${i}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("table"),i=t.createElement("thead"),n=t.createElement("tbody"),l=t.createElement("colgroup"),a=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&s.appendChild(l),this.isHorizontal()&&(a.appendChild(h),i.appendChild(a),s.style.tableLayout="auto",s.style.width="auto"),s.appendChild(i),this.isVertical()&&n.appendChild(a),s.appendChild(n),(0,r.addClass)(s,e),o.appendChild(s),{fragment:o,table:s,tHead:i,tBody:n,colGroup:l,tr:a,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("div"),i=`htGhostTable htAutoSize ${e.trim()}`;return(0,r.addClass)(s,i),o.appendChild(s),{fragment:o,container:s}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},96745:(e,t,o)=>{"use strict";var s=o(25225),i=0,r=Math.random(),n=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++i+r,36)}},96891:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97114:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o){return[...e.slice(0,t),...o,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,e=>!1===t.includes(e))};var s=o(13351)},97122:(e,t,o)=>{"use strict";var s=o(76277),i=o(11044),r=o(26213),n=o(30784),l=o(72714);s({target:"Array",proto:!0},{at:function(e){var t=i(this),o=r(t),s=n(e),l=s>=0?s:o+s;return l<0||l>=o?void 0:t[l]}}),l("at")},97190:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=s(o(66569));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r,l,c;(0,i.default)(this,"highlight",null),(0,i.default)(this,"from",null),(0,i.default)(this,"to",null),n(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=o.clone(),l=this,c=s,(r=h).set(a(r,l),c)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:o}=e,s=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner();return s.row<=t&&i.row>=t&&s.col<=o&&i.col>=o}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>o.row||e.col>o.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(o.row,e.row),Math.max(o.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const o=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner(),i=this.getDirection(),r=e.getOuterTopStartCorner(),n=e.getOuterBottomEndCorner(),l=Math.min(o.row,r.row),a=Math.min(o.col,r.col),h=Math.max(s.row,n.row),c=Math.max(s.col,n.col),u=this._createCellCoords(l,a),d=this._createCellCoords(h,c);return this.from=u,this.to=d,this.setDirection(i),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return l(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return l(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return l(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return l(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return l(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return l(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return l(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return l(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof r.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),o=Math.max(this.from.row,this.to.row),s=Math.min(this.from.col,this.to.col),i=Math.max(this.from.col,this.to.col),r=Math.min(e.from.row,e.to.row),n=Math.max(e.from.row,e.to.row),a=Math.min(e.from.col,e.to.col),c=Math.max(e.from.col,e.to.col),u=[];return t===r&&u.push("top"),i===c&&u.push(l(h,this)?"left":"right"),o===n&&u.push("bottom"),s===a&&u.push(l(h,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let s=e.row;s<=t.row;s++)for(let i=e.col;i<=t.col;i++)this.from.row===s&&this.from.col===i||this.to.row===s&&this.to.col===i||o.push(this._createCellCoords(s,i));return o}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let s=e.row;s<=t.row;s++)for(let i=e.col;i<=t.col;i++)e.row===s&&e.col===i?o.push(e):t.row===s&&t.col===i?o.push(t):o.push(this._createCellCoords(s,i));return o}forAll(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();for(let s=t.row;s<=o.row;s++)for(let i=t.col;i<=o.col;i++){if(!1===e(s,i))return}}clone(){return new c(this.highlight,this.from,this.to,l(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new r.default(e,t,l(h,this))}}t.default=c},97210:(e,t,o)=>{"use strict";var s=o(64976),i=o(19895),r=o(29160),n=o(36697),l=o(31639),a=o(92754),h=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!i(e)||r(e))return e;var o,a=n(e,c);if(a){if(void 0===t&&(t="default"),o=s(a,e,t),!i(o)||r(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},97213:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="16.0.0-next-f486b48-20250702";let n,v="invalid",y="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==d("Z"))return!1;for(let t="",s="B<H4P+".split(""),i=d(s.shift());i;i=d(s.shift()||"A"))--i<""[a]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(i),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,i,i?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,i.default)("09/07/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);n=(0,i.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(v="expired",y="expired"):(v="valid",y="valid")}else s?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:n,hotVersion:r})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:n,hotVersion:r})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:n,hotVersion:r})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:n,hotVersion:r}),t.appendChild(e)}}},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=n,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 i=s(o(86798)),r=o(5455);function n(e){return void 0===e}function l(e){return null===e||""===e||n(e)}const a="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("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 w={invalid:()=>r.toSingleLine`
71
+ the last node, the hide column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(o.includes(t))return;let i=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return i=!0,!1}),i)return;e.walkUp(e=>{const{data:o}=e;o.crossHiddenColumns.push(t),o.colspan>1?o.colspan-=1:o.isHidden=!0})},o(88443),o(85639);var s=o(5455)},93176:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(37579));function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){r(this,h,void 0),r(this,c,void 0),r(this,u,void 0),r(this,d,!1),r(this,g,!1),r(this,f,null),r(this,p,null),l(h,this,new i.default("row",e,this)),l(c,this,new i.default("column",t,this)),l(u,this,o)}getForAxis(e){return n("row"===e?h:c,this)}setPerformUndo(e){l(d,this,e)}setPerformRedo(e){l(g,this,e)}isPerformingUndoRedo(){return n(d,this)||n(g,this)}getSheetId(){return n(p,this)}getEngine(){return n(f,this)}getPostponeAction(){return n(u,this)}setupSyncEndpoint(e,t){l(f,this,e),l(p,this,t),n(h,this).init(),n(c,this).init()}}},93295:(e,t,o)=>{"use strict";var s=o(10028),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},r=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var o=s("Set");try{(new o)[e](i(0));try{return(new o)[e](i(-1)),!1}catch(s){if(!t)return!0;try{return(new o)[e](r(-1/0)),!1}catch(s){var n=new o;return n.add(1),n.add(2),t(n[e](r(1/0)))}}}catch(e){return!1}}},93374:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9288);const i=t.EDITOR_TYPE="numeric";class r extends s.TextEditor{static get EDITOR_TYPE(){return i}}t.NumericEditor=r},93404:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.StretchStrategy=class{constructor(e){(0,i.default)(this,"viewportWidth",void 0),(0,i.default)(this,"overwriteColumnWidthFn",void 0),(0,i.default)(this,"baseWidths",new Map),(0,i.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},93483:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(74436);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.HiddenColumns=s.HiddenColumns},93523:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),i=o(97213),r=o(85296);const n=t.CONDITION_NAME="begins_with";function l(e,t){let[o]=t;return(0,i.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,i.stringify)(o))}(0,r.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},93595:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499),r=o(90911),n=o(30845),l=o(18622),a=o(98304),h=o(78016),c=i.has,u=i.remove;e.exports=function(e){var t=s(this),o=l(e),i=r(t);return n(t)<=o.size?a(t,function(e){o.includes(e)&&u(i,e)}):h(o.getIterator(),function(e){c(i,e)&&u(i,e)}),i}},93692:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(45634);t.RENDERER_TYPE=s.RENDERER_TYPE,t.textRenderer=s.textRenderer},94106:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(14858);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Autofill=s.Autofill},94218:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726));t.BaseAction=class{constructor(e){(0,i.default)(this,"actionType",""),this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}},94293:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,n,l){(0,s.arrayEach)(e,e=>{e.forAll((e,s)=>{e>=0&&s>=0&&function(e,t,o,s,n,l){const a=n(e,t);let h=s;a.className&&(h="vertical"===o?i(a.className,s):r(a.className,s));l(e,t,"className",h)}(e,s,t,o,n,l)})})},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,s.arrayEach)(e,e=>(e.forAll((e,s)=>{if(e>=0&&s>=0&&t(e,s))return o=!0,!1}),o));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,s.arrayEach)(e,e=>{e.forAll((e,s)=>{e>=0&&s>=0&&(o[e]||(o[e]=[]),o[e][s]=t(e,s))})}),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const s=this.getCellMeta(t,o).className;return s&&-1!==s.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:s,left:i}=e.getBoundingClientRect();o.top=s,o.left=i}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=r,t.prepareVerticalAlignClass=i;var s=o(13351);function i(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function r(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},94481:(e,t,o)=>{"use strict";var s=o(4336),i=String,r=TypeError;e.exports=function(e){if(s(e))return e;throw new r("Can't set "+i(e)+" as a prototype")}},94492:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var s=o(16372);const i=t.KEY="no_items"},94828:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));class r{constructor(e){(0,i.default)(this,"data",void 0),(0,i.default)(this,"next",null),(0,i.default)(this,"prev",null),this.data=e}}t.NodeStructure=r;t.default=class{constructor(){(0,i.default)(this,"first",null),(0,i.default)(this,"last",null)}push(e){const t=new r(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new r(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,s=this.first;for(;s;){if(s.data===e)return t=s.next,o=s.prev,t&&(t.prev=o),o&&(o.next=t),s===this.first&&(this.first=t),s===this.last&&(this.last=o),!0;s=s.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},95160:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const o=null===(t=this.getSelectedRangeLast())||void 0===t?void 0:t.highlight;return null!=o&&o.isCell()&&e.getCommentAtCell(o.row,o.col)?this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeLast();e.setRange(t),e.show(),e.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},95422:(e,t,o)=>{"use strict";t.__esModule=!0,t.RegisteredEditor=u,t.getEditorInstance=t._getEditorInstance=function(e,t){let o;if("function"==typeof e)r.get(e)||d(null,e),o=r.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=l(e)}if(!o)throw Error(`No editor registered under name "${e}"`);return o.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!a(e))throw Error(`No registered editor found under "${e}" name`);return l(e).getConstructor()},t.registerEditor=d,o(88443);var s=o(12945),i=o(65615);const r=new WeakMap,{register:n,getItem:l,hasItem:a,getNames:h,getValues:c}=(0,i.staticRegister)("editors");function u(e){const t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},s.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function d(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const o=new u(t);"string"==typeof e&&n(e,o),r.set(t,o)}t.getRegisteredEditors=c,t.getRegisteredEditorNames=h,t.hasEditor=a},95425:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let i=0;i<t;i+=1){const r=e[i],n=r.length,l=[];0===i&&o.push("<tbody>");for(let e=0;e<n;e+=1){const t=r[e],o=(0,s.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");l.push(`<td>${o}</td>`)}o.push("<tr>",...l,"</tr>"),i+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},s=t.createDocumentFragment(),n=t.createElement("div");s.appendChild(n);let l=e;if("string"==typeof l){const e=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/gm,"")}</td>`});n.insertAdjacentHTML("afterbegin",`${e}`),l=n.querySelector("table")}if(!l||!function(e){return"TABLE"===(e&&e.nodeName||"")}(l))return;const a=n.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),c=l.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=l.tFoot&&Array.from(l.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(l.tHead){const e=Array.from(l.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce((e,t)=>{const o=Array.from(t.cells).reduce((e,t,o)=>{if(h&&0===o)return e;const{colSpan:s,innerHTML:i}=t,r=s>1?{label:i,colspan:s}:i;return e.push(r),e},[]);return e.push(o),e},[]):f&&(o.colHeaders=Array.from(e[0].children).reduce((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(l.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),s=o.length;for(let t=0;t<s;t++){const s=o[t],{nodeName:n,innerHTML:l,rowSpan:h,colSpan:c}=s,u=C[e].findIndex(e=>void 0===e);if("TD"===n){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=s.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=a&&/excel/gi.test(a.content)?l.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):l.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(r,e=>i[e])}else y.push(l)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),i=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],r=e.getData(...i),n=r.length,l=n>0?r[0].length:0,a=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let i=0;i<n;i+=1){const n=t&&0===i,a=[];for(let t=0;t<l;t+=1){const l=!n&&o&&0===t;let h="";if(n)h=`<th>${e.getColHeader(t-u)}</th>`;else if(l)h=`<th>${e.getRowHeader(i-d)}</th>`;else{const o=r[i][t],{hidden:n,rowspan:l,colspan:a}=e.getCellMeta(i-d,t-u);if(!n){const e=[];if(l&&e.push(`rowspan="${l}"`),a&&e.push(`colspan="${a}"`),(0,s.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}a.push(h)}const g=["<tr>",...a,"</tr>"].join("");n?h.splice(1,0,g):c.splice(-1,0,g)}return a.splice(1,0,h.join(""),c.join("")),a.join("")},o(85639),o(63667),o(73741),o(7307),o(90795),o(89663);var s=o(97213);const i={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},r=new RegExp(Object.keys(i).map(e=>`(${e})`).join("|"),"gi")},95445:(e,t,o)=>{"use strict";var s=o(69243),i=o(60370).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,i)}},95506:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,i.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(16372),i=o(79501)},95603:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.condition=a;var i=s(o(86798)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372)),n=o(85296);const l=t.CONDITION_NAME="date_before";function a(e,t){let[o]=t;const s=(0,i.default)(e.value,e.meta.dateFormat),r=(0,i.default)(o,e.meta.dateFormat);return!(!s.isValid()||!r.isValid())&&s.diff(r)<=0}(0,n.registerCondition)(l,a,{name:r.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},95975:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(99812);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.NestedHeaders=s.NestedHeaders},95977:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,i.isMacOS)()?t.push(r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX):t.push(r.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[r.CONTROL,r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return n.includes(e)},t.isKey=function(e,t){const o=t.split("|");let i=!1;return(0,s.arrayEach)(o,t=>{if(e===r[t])return i=!0,!1}),i},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},o(85639);var s=o(13351),i=o(8874);const r=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,i.isFirefox)()?182:174,AUDIO_MUTE:(0,i.isFirefox)()?181:173,AUDIO_UP:(0,i.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},n=[r.ALT,r.ARROW_DOWN,r.ARROW_LEFT,r.ARROW_RIGHT,r.ARROW_UP,r.AUDIO_DOWN,r.AUDIO_MUTE,r.AUDIO_UP,r.BACKSPACE,r.CAPS_LOCK,r.DELETE,r.END,r.ENTER,r.ESCAPE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.F13,r.F14,r.F15,r.F16,r.F17,r.F18,r.F19,r.HOME,r.INSERT,r.MEDIA_NEXT,r.MEDIA_PLAY_PAUSE,r.MEDIA_PREV,r.MEDIA_STOP,r.NULL,r.NUM_LOCK,r.PAGE_DOWN,r.PAGE_UP,r.PAUSE,r.SCROLL_LOCK,r.SHIFT,r.TAB]},96068:e=>{"use strict";e.exports=function(e){try{var t=new Set,o={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},s=t[e](o);return 1!==s.size||4!==s.values().next().value}catch(e){return!1}}},96088:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!o.call({1:2},1);t.f=i?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},96102:(e,t,o)=>{"use strict";var s=o(25225),i=o(72119),r=o(6996),n=o(53385),l=o(13794),a=s([].push);e.exports=function(e){if(r(e))return e;if(i(e)){for(var t=e.length,o=[],s=0;s<t;s++){var h=e[s];"string"==typeof h?a(o,h):"number"!=typeof h&&"Number"!==n(h)&&"String"!==n(h)||a(o,l(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(i(this))return t;for(var s=0;s<c;s++)if(o[s]===e)return t}}}},96422:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(56334);t.RENDERER_TYPE=s.RENDERER_TYPE,t.dropdownRenderer=s.dropdownRenderer},96441:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(35359),i=o(58741),r=o(30848);function n(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){var t;const o=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!o||!a(d,this).selection.isCellVisible(o))return void e(null);const s=a(d,this).getCell(o.row,o.col,!0);null===s?a(d,this).addHookOnce("afterScroll",()=>{e(a(d,this).getCell(o.row,o.col,!0))}):e(s)}function v(){c(w,this,C).call(this,e=>{const{activeElement:t}=a(d,this).rootDocument;t&&(0,i.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function y(){c(w,this,C).call(this,e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function E(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusManager=class{constructor(e){var t,o,s=this;l(t=this,o=w),o.add(t),n(this,d,void 0),n(this,g,void 0),n(this,f,1),n(this,p,null),n(this,m,new Map);const i=e.getSettings();h(d,this,e),h(g,this,i.imeFastEdit?u.MIXED:u.CELL),a(d,this).addHook("afterUpdateSettings",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,E).call(s,...t)}),a(d,this).addHook("afterSelection",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)}),a(d,this).addHook("afterSelectionFocusSet",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)}),a(d,this).addHook("afterSelectionEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,y).call(s,...t)})}getFocusMode(){return a(g,this)}setFocusMode(e){Object.values(u).includes(e)?h(g,this,e):(0,s.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return a(f,this)}setRefocusDelay(e){h(f,this,e)}setRefocusElementGetter(e){h(p,this,e)}getRefocusElement(){var e;return"function"==typeof a(p,this)?a(p,this).call(this):null===(e=a(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,o;const s=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!s)return;let r=a(d,this).runHooks("modifyFocusedElement",s.row,s.col,e);(0,i.isHTMLElement)(r)||(r=e),!r||null!==(o=a(d,this).getActiveEditor())&&void 0!==o&&o.isOpened()||r.focus({preventScroll:!0})};e?t(e):c(w,this,C).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(f,this);var o,s;!a(d,this).getSettings().imeFastEdit||null!==(e=a(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(o=a(d,this).getActiveEditor())||void 0===o||null===(s=o.refreshValue)||void 0===s||s.call(o),a(m,this).has(t)||a(m,this).set(t,(0,r.debounce)(()=>{var e;a(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),a(m,this).get(t)())}}},96673:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:s}=e.getSelectedRangeLast(),i=Math.max(s.row-e.countVisibleRows(),0),r=o.getNearestNotHiddenIndex(i,1);if(null!==r){const o=e._createCellCoords(r,s.col),i=s.row-e.getFirstFullyVisibleRow(),n=Math.max(o.row-i,0);t.markSource("keyboard"),t.setRangeEnd(o),t.markEndSource(),e.scrollViewportTo({row:n,verticalSnap:"top",horizontalSnap:"start"})}}}},96681:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(58741),n=o(13351);t.default=class{constructor(e){(0,i.default)(this,"hot",null),(0,i.default)(this,"container",null),(0,i.default)(this,"injected",!1),(0,i.default)(this,"rows",[]),(0,i.default)(this,"columns",[]),(0,i.default)(this,"samples",null),(0,i.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={row:e};this.rows.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),0===e&&(0,r.addClass)(this.table.table,"htGhostTableFirstRow"),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}addColumnHeadersRow(e){const t=this.hot.getColHeader(0);if(null!=t){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={col:e};this.columns.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,n.arrayEach)(this.rows,t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))})}getWidths(e){this.injected||this.injectTable(),(0,n.arrayEach)(this.columns,t=>{const{width:o}=t.table.getBoundingClientRect();e(t.col,Math.ceil(o))})}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach(o=>{(0,n.arrayEach)(o.strings,o=>{t.appendChild(this.createColElement(o.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,s),o.appendChild(s)),this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.col,r=this.hot.getCellMeta(e,i),n=this.hot.getCellRenderer(r),l=t.createElement("td");l.setAttribute("ghost-table",1),n(this.hot,l,e,i,this.hot.colToProp(i),s.value,r),o.appendChild(l)})}),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const s=e.createElement("th");o.push([-1,s]),t.appendChild(s)}this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.col,r=e.createElement("th");o.push([i,r]),t.appendChild(r)})}),this.table.tHead.appendChild(t),(0,n.arrayEach)(o,e=>{const[t,o]=e;this.hot.view.appendColHeader(t,o)})}createCol(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment();return this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.row,r=this.hot.getCellMeta(i,e),n=this.hot.getCellRenderer(r),l=t.createElement("td"),a=t.createElement("tr");l.setAttribute("ghost-table",1),n(this.hot,l,i,e,this.hot.colToProp(e),s.value,r),a.appendChild(l),o.appendChild(a)})}),o}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const o=this.hot.rootDocument.createElement("col");let s=0;t>=0&&e>=0&&(s=this.hot.getCellMeta(t,e).colspan);let i=this.hot.getColWidth(e);if(s>1)for(let t=e+1;t<e+s;t++)i+=this.hot.getColWidth(t);return o.style.width=`${i}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("table"),i=t.createElement("thead"),n=t.createElement("tbody"),l=t.createElement("colgroup"),a=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&s.appendChild(l),this.isHorizontal()&&(a.appendChild(h),i.appendChild(a),s.style.tableLayout="auto",s.style.width="auto"),s.appendChild(i),this.isVertical()&&n.appendChild(a),s.appendChild(n),(0,r.addClass)(s,e),o.appendChild(s),{fragment:o,table:s,tHead:i,tBody:n,colGroup:l,tr:a,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("div"),i=`htGhostTable htAutoSize ${e.trim()}`;return(0,r.addClass)(s,i),o.appendChild(s),{fragment:o,container:s}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},96745:(e,t,o)=>{"use strict";var s=o(25225),i=0,r=Math.random(),n=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++i+r,36)}},96891:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97114:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o){return[...e.slice(0,t),...o,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,e=>!1===t.includes(e))};var s=o(13351)},97122:(e,t,o)=>{"use strict";var s=o(76277),i=o(11044),r=o(26213),n=o(30784),l=o(72714);s({target:"Array",proto:!0},{at:function(e){var t=i(this),o=r(t),s=n(e),l=s>=0?s:o+s;return l<0||l>=o?void 0:t[l]}}),l("at")},97190:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=s(o(66569));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r,l,c;(0,i.default)(this,"highlight",null),(0,i.default)(this,"from",null),(0,i.default)(this,"to",null),n(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=o.clone(),l=this,c=s,(r=h).set(a(r,l),c)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:o}=e,s=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner();return s.row<=t&&i.row>=t&&s.col<=o&&i.col>=o}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>o.row||e.col>o.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(o.row,e.row),Math.max(o.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const o=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner(),i=this.getDirection(),r=e.getOuterTopStartCorner(),n=e.getOuterBottomEndCorner(),l=Math.min(o.row,r.row),a=Math.min(o.col,r.col),h=Math.max(s.row,n.row),c=Math.max(s.col,n.col),u=this._createCellCoords(l,a),d=this._createCellCoords(h,c);return this.from=u,this.to=d,this.setDirection(i),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return l(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return l(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return l(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return l(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return l(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return l(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return l(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return l(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof r.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),o=Math.max(this.from.row,this.to.row),s=Math.min(this.from.col,this.to.col),i=Math.max(this.from.col,this.to.col),r=Math.min(e.from.row,e.to.row),n=Math.max(e.from.row,e.to.row),a=Math.min(e.from.col,e.to.col),c=Math.max(e.from.col,e.to.col),u=[];return t===r&&u.push("top"),i===c&&u.push(l(h,this)?"left":"right"),o===n&&u.push("bottom"),s===a&&u.push(l(h,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let s=e.row;s<=t.row;s++)for(let i=e.col;i<=t.col;i++)this.from.row===s&&this.from.col===i||this.to.row===s&&this.to.col===i||o.push(this._createCellCoords(s,i));return o}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let s=e.row;s<=t.row;s++)for(let i=e.col;i<=t.col;i++)e.row===s&&e.col===i?o.push(e):t.row===s&&t.col===i?o.push(t):o.push(this._createCellCoords(s,i));return o}forAll(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();for(let s=t.row;s<=o.row;s++)for(let i=t.col;i<=o.col;i++){if(!1===e(s,i))return}}clone(){return new c(this.highlight,this.from,this.to,l(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new r.default(e,t,l(h,this))}}t.default=c},97210:(e,t,o)=>{"use strict";var s=o(64976),i=o(19895),r=o(29160),n=o(36697),l=o(31639),a=o(92754),h=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!i(e)||r(e))return e;var o,a=n(e,c);if(a){if(void 0===t&&(t="default"),o=s(a,e,t),!i(o)||r(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},97213:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="16.0.0-next-98c6ac7-20250707";let n,v="invalid",y="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==d("Z"))return!1;for(let t="",s="B<H4P+".split(""),i=d(s.shift());i;i=d(s.shift()||"A"))--i<""[a]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(i),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,i,i?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,i.default)("09/07/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);n=(0,i.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(v="expired",y="expired"):(v="valid",y="valid")}else s?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:n,hotVersion:r})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:n,hotVersion:r})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:n,hotVersion:r})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:n,hotVersion:r}),t.appendChild(e)}}},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=n,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 i=s(o(86798)),r=o(5455);function n(e){return void 0===e}function l(e){return null===e||""===e||n(e)}const a="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("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 w={invalid:()=>r.toSingleLine`
72
72
  The license key for Handsontable is invalid.\x20
73
73
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return r.toSingleLine`
74
74
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20