handsontable 16.2.0-next-90d1117-20251117 → 16.2.0-next-7d068f5-20251117
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.
- package/CHANGELOG.md +1 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +3 -2
- package/dist/handsontable.full.css +3 -2
- package/dist/handsontable.full.js +16 -29
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +16 -29
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +5 -5
- package/editors/autocompleteEditor/autocompleteEditor.d.ts +9 -2
- package/editors/autocompleteEditor/autocompleteEditor.js +0 -1
- package/editors/autocompleteEditor/autocompleteEditor.mjs +0 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/columnSummary/columnSummary.js +2 -2
- package/plugins/columnSummary/columnSummary.mjs +2 -2
- package/plugins/emptyDataState/ui.js +4 -1
- package/plugins/emptyDataState/ui.mjs +4 -1
- package/plugins/undoRedo/undoRedo.js +5 -20
- package/plugins/undoRedo/undoRedo.mjs +5 -20
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/ht-icons-horizon.css +2 -2
- package/styles/ht-icons-horizon.min.css +2 -2
- package/styles/ht-icons-main.css +2 -2
- package/styles/ht-icons-main.min.css +2 -2
- package/styles/ht-theme-classic-no-icons.css +6 -6
- package/styles/ht-theme-classic-no-icons.min.css +3 -3
- package/styles/ht-theme-classic.css +6 -6
- package/styles/ht-theme-classic.min.css +3 -3
- package/styles/ht-theme-horizon-no-icons.css +8 -8
- package/styles/ht-theme-horizon-no-icons.min.css +3 -3
- package/styles/ht-theme-horizon.css +8 -8
- package/styles/ht-theme-horizon.min.css +3 -3
- package/styles/ht-theme-main-no-icons.css +2 -2
- package/styles/ht-theme-main-no-icons.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
package/dist/handsontable.min.js
CHANGED
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 16.2.0-next-
|
|
29
|
-
* Release date: 20/11/2025 (built at 17/11/2025
|
|
28
|
+
* Version: 16.2.0-next-7d068f5-20251117
|
|
29
|
+
* Release date: 20/11/2025 (built at 17/11/2025 15:09:06)
|
|
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,i)=>(()=>{var s={58:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(29342);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},67:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(72586);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultiColumnSorting=i.MultiColumnSorting},96:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let o=e;D[o]||(o=x);return(0,s.arrayEach)(D[o],e=>{let o;o=e===n.SEPARATOR?{name:n.SEPARATOR}:(0,i.clone)((0,r.getConditionDescriptor)(e)),t.push(o)}),t},o(66182);var i=o(78437),s=o(94857),n=o(50151),r=o(76742),a=o(12557);t.CONDITION_NONE=a.CONDITION_NAME;var l=o(76978);t.CONDITION_EMPTY=l.CONDITION_NAME;var h=o(86485);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var c=o(26447);t.CONDITION_EQUAL=c.CONDITION_NAME;var u=o(52392);t.CONDITION_NOT_EQUAL=u.CONDITION_NAME;var d=o(52958);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=o(39267);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var f=o(2721);t.CONDITION_LESS_THAN=f.CONDITION_NAME;var p=o(27810);t.CONDITION_LESS_THAN_OR_EQUAL=p.CONDITION_NAME;var m=o(54687);t.CONDITION_BETWEEN=m.CONDITION_NAME;var w=o(14760);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var C=o(9961);t.CONDITION_BEGINS_WITH=C.CONDITION_NAME;var v=o(89161);t.CONDITION_ENDS_WITH=v.CONDITION_NAME;var y=o(66058);t.CONDITION_CONTAINS=y.CONDITION_NAME;var S=o(9091);t.CONDITION_NOT_CONTAINS=S.CONDITION_NAME;var E=o(6077);t.CONDITION_DATE_BEFORE=E.CONDITION_NAME;var R=o(43382);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var b=o(33429);t.CONDITION_TOMORROW=b.CONDITION_NAME;var _=o(46301);t.CONDITION_TODAY=_.CONDITION_NAME;var T=o(65688);t.CONDITION_YESTERDAY=T.CONDITION_NAME;var M=o(46485);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var I=o(58583);t.CONDITION_TRUE=I.CONDITION_NAME;var O=o(33536);t.CONDITION_FALSE=O.CONDITION_NAME;var A=o(59311);t.OPERATION_AND=A.OPERATION_ID;var N=o(14119);t.OPERATION_OR=N.OPERATION_ID;var P=o(65192);t.OPERATION_OR_THEN_VARIABLE=P.OPERATION_ID;const H=t.TYPE_NUMERIC="numeric",x=t.TYPE_TEXT="text",k=t.TYPE_DATE="date",D=t.TYPES={[H]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,d.CONDITION_NAME,g.CONDITION_NAME,f.CONDITION_NAME,p.CONDITION_NAME,m.CONDITION_NAME,w.CONDITION_NAME],[x]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,C.CONDITION_NAME,v.CONDITION_NAME,n.SEPARATOR,y.CONDITION_NAME,S.CONDITION_NAME],[k]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,E.CONDITION_NAME,R.CONDITION_NAME,m.CONDITION_NAME,n.SEPARATOR,b.CONDITION_NAME,_.CONDITION_NAME,T.CONDITION_NAME]}},224:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},412:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=i(o(86798)),r=i(o(75972)),a=o(95220),l=o(73050),h=o(76651),c=o(78437),u=o(57455),d=o(12108);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 l.TextEditor{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return p}init(){if("function"!=typeof n.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof r.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,i,s,n){super.prepare(e,t,o,i,s,n)}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(),i=!!e&&(0,u.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new r.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(n.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),i||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 i=o.onSelect,s=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,n.default)(t).format(f(w,this,v).call(this))),this.setValue(t),i&&i(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},o.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},o}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:i}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:n}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,r=o.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleRow()),l=o.getVisualFromRenderableIndex(n.getLastPartiallyVisibleRow()),c=i.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleColumn()),u=i.getVisualFromRenderableIndex(n.getLastPartiallyVisibleColumn());if(this.row>=r&&this.row<=l&&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},428:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26599),s=o(78437);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,s;for(t=0,o=this.countRows();t<o;t++)if(s=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,o,n,r;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(n))return"object"==typeof n&&(r=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[r.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRowHeights:void 0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},497:(e,t,o)=>{"use strict";var i=o(8467),s=o(14326),n=o(17621),r=o(83916),a=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return s(t)&&n(t.prototype,a(e))}},518:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(97819),a=o(94857),l=o(78437),h=o(13726),c=o(97718),u=o(61276),d=o(32971),g=o(76651),f=o(50151);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;r.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),r.Hooks.getSingleton().register("beforeContextMenuShow"),r.Hooks.getSingleton().register("afterContextMenuShow"),r.Hooks.getSingleton().register("afterContextMenuHide"),r.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class S extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,s.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.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),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),this.addHook("afterOnCellContextMenu",e=>m(y,this,E).call(this,e)),this.addHook("beforeDialogShow",()=>this.close()),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.getSelectedRangeActive();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.getSelectedRangeActive())||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};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.prepareMenuItems(),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(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,S.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,a.arrayEach)(o,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function E(e){const t=this.hot.getSettings(),o=t.rowHeaders,i=t.colHeaders;const s=e.target;if(this.close(),(0,g.hasClass)(s,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!i&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(s)||(0,g.hasClass)(s,"current")&&(0,g.hasClass)(s,"wtBorder")))return;const n=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+n.top,left:e.clientX+n.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=S,S.SEPARATOR={name:f.SEPARATOR}},624:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67383);t.CELL_TYPE=i.CELL_TYPE,t.PasswordCellType=i.PasswordCellType},654:(e,t,o)=>{"use strict";o.r(t)},688:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(2289);t.registerRootComparator=i.registerRootComparator,t.getRootComparator=i.getRootComparator,t.getCompareFunctionFactory=i.getCompareFunctionFactory;var s=o(20152);t.FIRST_AFTER_SECOND=s.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=s.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=s.DO_NOT_SWAP,t.sort=s.sort},730:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(44803);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},771:(e,t,o)=>{"use strict";var i=o(19596).navigator,s=i&&i.userAgent;e.exports=s?String(s):""},794:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(81124),o(88633),o(14618);var s=o(34149),n=o(78437),r=i(o(86248)),a=o(76651),l=o(3226),h=o(28394),c=o(41323);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){return e.get(p(e,t))}function f(e,t,o){return e.set(p(e,t),o),o}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=`\n<div data-ref="dialogElement" class="${c.DIALOG_CLASS_NAME}">\n <div data-ref="dialogWrapperElement" class="${c.DIALOG_CLASS_NAME}__content-wrapper">\n</div>\n`;var w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakSet;class b{constructor(e){let{rootElement:t,isRtl:o}=e;var i,s;d(i=this,s=R),s.add(i),u(this,w,void 0),u(this,C,void 0),u(this,v,!1),u(this,y,!1),u(this,S,h.TEMPLATES.get("base")),u(this,E,[]),f(w,this,t),f(v,this,o),this.install()}useTemplate(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!h.TEMPLATES.has(e)||"base"===e){const t=Array.from(h.TEMPLATES.keys()).filter(e=>"base"!==e).join(", ");throw new Error(s.toSingleLine`Invalid template: ${e}.\x20
|
|
32
32
|
Valid templates are: ${t}.`)}f(S,this,h.TEMPLATES.get(e)(o)),f(E,this,(null!==(t=o.buttons)&&void 0!==t?t:[]).map(e=>e.callback))}useDefaultTemplate(){f(S,this,h.TEMPLATES.get("base")()),f(E,this,[])}install(){var e;if(null!==(e=g(C,this))&&void 0!==e&&e.dialogElement)return;const t=s.html`${m}`;f(C,this,t.refs);const{dialogElement:o}=g(C,this);(0,a.setAttribute)(o,[(0,l.A11Y_MODAL)(),["dir",g(v,this)?"rtl":"ltr"]]),o.addEventListener("transitionstart",()=>p(R,this,T).call(this)),o.addEventListener("transitionend",()=>p(R,this,_).call(this)),g(w,this).after(t.fragment)}getContainer(){return g(C,this).dialogElement}getFocusableElements(){return g(S,this).focusableElements()}updateDialog(e){let{isVisible:t,content:o,customClassName:i,background:s,contentBackground:n,animation:r,a11y:h}=e;const u=g(S,this).compile(),{dialogElement:d,dialogWrapperElement:f}=g(C,this);f.innerHTML="",f.appendChild(u.fragment),Object.assign(g(C,this),u.refs);const{contentElement:p,buttonsContainer:m}=g(C,this);"base"!==g(S,this).TEMPLATE_NAME&&Object.assign(h,g(S,this).dialogA11YOptions());const w=i?` ${i}`:"",v=s?` ${c.DIALOG_CLASS_NAME}--background-${s}`:"",y=r?` ${c.DIALOG_CLASS_NAME}--animation`:"",R=t?` ${c.DIALOG_CLASS_NAME}--show`:"";d.className=[c.DIALOG_CLASS_NAME,`${c.DIALOG_CLASS_NAME}--${g(S,this).TEMPLATE_NAME}`,"handsontable",w,v,y,R].join(" "),(0,a.setAttribute)(d,["base"===g(S,this).TEMPLATE_NAME?(0,l.A11Y_TABINDEX)(-1):void 0]),(0,a.setAttribute)(d,["alertdialog"===h.role?(0,l.A11Y_ALERTDIALOG)():(0,l.A11Y_DIALOG)()]),h.ariaLabel&&!h.ariaLabelledby?(0,a.setAttribute)(d,[h.ariaLabel?(0,l.A11Y_LABEL)(h.ariaLabel):void 0]):(0,a.removeAttribute)(d,"aria-label"),h.ariaLabelledby?(0,a.setAttribute)(d,[(0,l.A11Y_LABELED_BY)(h.ariaLabelledby)]):(0,a.removeAttribute)(d,"aria-labelledby"),h.ariaDescribedby?(0,a.setAttribute)(d,[(0,l.A11Y_DESCRIBED_BY)(h.ariaDescribedby)]):(0,a.removeAttribute)(d,"aria-describedby");const b=n?` ${c.DIALOG_CLASS_NAME}__content--background`:"";return(0,a.addClass)(p,`${c.DIALOG_CLASS_NAME}__content${b}`),"base"===g(S,this).TEMPLATE_NAME?(p.innerHTML="","string"==typeof o?(0,a.fastInnerHTML)(p,o):(o instanceof HTMLElement||o instanceof DocumentFragment)&&p.appendChild(o)):m&&Array.from(m.children).forEach((e,t)=>{const o=g(E,this)[t];o&&e.addEventListener("click",o)}),this}showDialog(e){const{dialogElement:t}=g(C,this);return t.style.display="block",e&&t.offsetHeight,(0,a.addClass)(t,`${c.DIALOG_CLASS_NAME}--show`),f(y,this,!1),this}hideDialog(e){const{dialogElement:t}=g(C,this);return(0,a.removeClass)(t,`${c.DIALOG_CLASS_NAME}--show`),(e&&!g(y,this)||!e)&&(t.style.display="none"),f(y,this,!1),this}focusDialog(){g(C,this).dialogElement.focus()}updateWidth(e){return g(C,this).dialogElement.style.width=`${e}px`,this}updateHeight(e){return g(C,this).dialogElement.style.height=`calc(100% - ${e}px)`,this}destroyDialog(){var e;null===(e=g(C,this))||void 0===e||e.dialogElement.remove(),f(C,this,null)}}function _(){const{dialogElement:e}=g(C,this);(0,a.hasClass)(e,`${c.DIALOG_CLASS_NAME}--show`)||(e.style.display="none")}function T(){f(y,this,!0)}t.DialogUI=b,(0,n.mixin)(b,r.default)},843:(e,t)=>{"use strict";t.__esModule=!0,t.announce=function(e){if(!o)return;o.textContent="",setTimeout(()=>{o&&(o.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!o){o=t.createElement("div"),o.setAttribute("role","status"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");const i=o.style;i.position="absolute",i.width="1px",i.height="1px",i.margin="-1px",i.overflow="hidden",i.clipPath="rect(0 0 0 0)",i.whiteSpace="nowrap",e.appendChild(o)}i+=1},t.uninstall=function(){if(0===i)return;1===i&&(o.remove(),o=null);i-=1};let o=null,i=0},1002:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const o=[];if(0===t)return o;(0,i.arrayEach)(e,e=>{const a=[];let l=0;o.push(a),(0,i.arrayEach)(e,e=>{const o=(0,r.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:i,headerClassName:s}=e;o.label=(0,n.stringify)(t),"number"==typeof i&&i>1&&(o.colspan=i,o.origColspan=i),"string"==typeof s&&(o.headerClassNames=[...s.split(" ")])}else o.label=(0,n.stringify)(e);l+=o.origColspan;let i=!1;if(l>=t&&(o.colspan=o.origColspan-(l-t),o.origColspan=o.colspan,i=!0),a.push(o),o.colspan>1)for(let e=0;e<o.colspan-1;e++)a.push((0,r.createPlaceholderHeaderSettings)());return!i})});const a=Math.max(...(0,i.arrayMap)(o,e=>e.length));return(0,i.arrayEach)(o,e=>{if(e.length<a){const t=(0,i.arrayMap)(new Array(a-e.length),()=>(0,r.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),o},o(66182);var i=o(94857),s=o(78437),n=o(26599),r=o(4983)},1195:(e,t,o)=>{"use strict";var i=o(14326),s=o(52270),n=o(97931);e.exports=function(e,t,o){var r,a;return n&&i(r=t.constructor)&&r!==o&&s(a=r.prototype)&&a!==o.prototype&&n(e,a),e}},1316:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(12290);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CustomBorders=i.CustomBorders},1402:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77494);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.AutoRowSize=i.AutoRowSize},2224:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const o=t[0].start.col,i=t[0].end.col;this.countRows()&&this.populateFromArray(0,o,[[null]],Math.max(t[0].start.row,t[0].end.row),i,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeActive();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll((e,o)=>{if(e<0||o<0)return!0;const{readOnly:i}=this.getCellMeta(e,o);return!!i||(t=!0,!1)}),!t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="clear_column"},2289:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(u(e))return c(e);return c(i.COLUMN_DATA_TYPE)};var i=o(6888),s=o(99658),n=o(46808),r=o(9549),a=o(19348),l=o(43641);const{register:h,getItem:c,hasItem:u}=(0,l.staticRegister)("sorting.compareFunctionFactory"),{register:d,getItem:g}=(0,l.staticRegister)("sorting.mainSortComparator");t.getRootComparator=g,t.registerRootComparator=d,h(n.COLUMN_DATA_TYPE,n.compareFunctionFactory),h(r.COLUMN_DATA_TYPE,r.compareFunctionFactory),h(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),h(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),h(a.COLUMN_DATA_TYPE,a.compareFunctionFactory)},2721:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742);const n=t.CONDITION_NAME="lt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value<i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},3182:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...l.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 s=(0,i.toUpperCaseFirst)(e);if(c.hasItem(s))throw new Error(a(s));void 0===o?h.addItem(s):l.addItem(o,s);c.addItem(s,t)}(e,t,o)},o(22588);var i=o(73983),s=o(25281),n=o(79836),r=o(76030);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,r.createUniqueSet)({errorItemExists:a}),c=(0,n.createUniqueMap)({errorIdExists:a});function u(e){const t=(0,i.toUpperCaseFirst)(e);return c.getItem(t)}},3226:(e,t)=>{"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_DIALOG=()=>["role","dialog"];t.A11Y_ALERTDIALOG=()=>["role","alertdialog"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_LABELED_BY=e=>["aria-labelledby",e];t.A11Y_DESCRIBED_BY=e=>["aria-describedby",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=function(){return["aria-disabled",!(arguments.length>0&&void 0!==arguments[0])||arguments[0]]};t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e];t.A11Y_MODAL=()=>["aria-modal","true"]},3229:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(70270);class a extends n.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.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 a({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveRow(i,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=a},3284:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=i(o(19544)),a=o(61651),l=o(13533),h=o(82858);class c extends a.Overlay{constructor(e,t,o,i){super(e,t,h.CLONE_TOP,o,i),(0,s.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 r.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 i=0,s=!1;if(this.trimmingContainer!==t||o&&"vertical"===o)i=this.getScrollPosition(),(0,n.resetCssTransform)(e);else{const{wtTable:t}=this.wot,o=t.hider.getBoundingClientRect();s=Math.ceil(o.bottom)===e.offsetHeight,i=this.getOverlayOffset(),(0,n.setOverlayPosition)(e,"0px",`${i}px`)}const r=this.adjustHeaderBordersPosition(i,s);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings,o=this.mainTableScrollableElement;let i=!1;if(o===t&&e!==t.scrollY){const o=t.scrollY;t.scrollTo((0,n.getWindowScrollLeft)(t),e),i=o!==t.scrollY}else if(e!==o.scrollTop){const t=o.scrollTop;o.scrollTop=e,i=t!==o.scrollTop}return i}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i=e,s=0;for(;i<t;){const e=this.wot.wtTable.getRowHeight(i);s+=void 0===e?o:e,i+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===r){let i=t.getWorkspaceWidth();t.hasVerticalScroll()&&(i-=(0,n.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollWidth),s.width=`${i}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,n.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.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:i}=this,s=(o.cloneSource?o.cloneSource:o).wtTable.holder,r=i.getSetting("columnHeaders"),a=0===i.getSetting("fixedRowsTop")&&r.length>0&&!(0,n.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=i.getSetting("fixedRowsBottom"),s=i.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=o.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(i.getSetting("fixedRowsTop"),e);return l+=h,(0,n.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,n.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,i=this.wot.wtTable.holder.parentNode,s=o.getSetting("totalColumns"),r="horizontal"===o.getSetting("preventOverflow");s?(0,n.removeClass)(i,"emptyColumns"):(0,n.addClass)(i,"emptyColumns");let a=!1;if(!t&&!r){const t=o.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,r=o.getSetting("columnHeaders");if((s||0===t)&&r.length>0){const t=(0,n.hasClass)(i,"innerBorderTop");this.cachedFixedRowsTop=o.getSetting("fixedRowsTop"),e||0===o.getSetting("totalRows")?((0,n.addClass)(i,"innerBorderTop"),a=!t):((0,n.removeClass)(i,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=c},3343:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);const i=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return i.has(t)?i.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:o}=e;if(s.has(t))return s.get(t);const i=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(i)?i:o.toLowerCase()}},3536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68390);t.EDITOR_TYPE=i.EDITOR_TYPE,t.TimeEditor=i.TimeEditor},3561:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:o,...i}=e;return new n.default({...t,...i,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},o)};var s=o(24496),n=i(o(73358))},3921:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(71154);t.RENDERER_TYPE=i.RENDERER_TYPE,t.autocompleteRenderer=i.autocompleteRenderer},4114:(e,t,o)=>{"use strict";var i=o(27538),s=o(8467),n=o(99949),r=o(19617),a=o(94988),l=o(89035),h=o(14326),c=o(497),u=o(4660),d=o(17169),g=o(71763),f=String,p=s("JSON","stringify"),m=a(/./.exec),w=a("".charAt),C=a("".charCodeAt),v=a("".replace),y=a(1.1.toString),S=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,b=!g||l(function(){var e=s("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))}),_=l(function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")}),T=function(e,t){var o=u(arguments),i=d(t);if(h(i)||void 0!==e&&!c(e))return o[1]=function(e,t){if(h(i)&&(t=r(i,this,f(e),t)),!c(t))return t},n(p,null,o)},M=function(e,t,o){var i=w(o,t-1),s=w(o,t+1);return m(E,e)&&!m(R,s)||m(R,e)&&!m(E,i)?"\\u"+y(C(e,0),16):e};p&&i({target:"JSON",stat:!0,arity:3,forced:b||_},{stringify:function(e,t,o){var i=u(arguments),s=n(b?T:p,null,i);return _&&"string"==typeof s?v(s,S,M):s}})},4360:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(50148);t.RENDERER_TYPE=i.RENDERER_TYPE,t.passwordRenderer=i.passwordRenderer},4369:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(30301),s=o(28617);const n=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:n,editor:i.SelectEditor,renderer:s.selectRenderer}},4436:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:o,col:i}=t[t.length-1].highlight.normalize(),s=e.getDataAtCell(o,i),n=new Map;for(let r=0;r<t.length;r++)t[r].forAll((t,r)=>{if(t>=0&&r>=0&&(t!==o||r!==i)){const{readOnly:o}=e.getCellMeta(t,r);o||n.set(`${t}x${r}`,[t,r,s])}});e.setDataAtCell(Array.from(n.values()))}}},4580:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(36647);t.CELL_TYPE=i.CELL_TYPE,t.TimeCellType=i.TimeCellType},4660:(e,t,o)=>{"use strict";var i=o(94988);e.exports=i([].slice)},4983:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:i=!1,crossHiddenColumns:s=[],isCollapsed:n=!1,isHidden:r=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:i,isCollapsed:n,crossHiddenColumns:s,isHidden:r,isRoot:a,isPlaceholder:l,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},5e3:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScope=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={shortcutsContextName:s.DEFAULT_SHORTCUTS_CONTEXT,type:s.SCOPE_TYPES.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,...o},r=(0,i.installFocusDetector)(e,t);return{getType:()=>n.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>n.shortcutsContextName,runOnlyIf:()=>n.runOnlyIf(),contains:e=>n.contains(e),activate:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.FOCUS_SOURCES.UNKNOWN;null===(e=n.onActivate)||void 0===e||e.call(n,t)},deactivate:()=>{var e;null===(e=n.onDeactivate)||void 0===e||e.call(n)},activateFocusCatchers:()=>{null==r||r.activate()},deactivateFocusCatchers:()=>{null==r||r.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{null==r||r.destroy()}}};var i=o(60780),s=o(49669)},5172:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5232:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},5271:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("some",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return n(t,function(t,i){if(e(t,o++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},5326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"rootDocument",void 0),(0,s.default)(this,"rowHeaders",null),(0,s.default)(this,"columnHeaders",null),(0,s.default)(this,"colGroup",null),(0,s.default)(this,"rows",null),(0,s.default)(this,"cells",null),(0,s.default)(this,"rowFilter",null),(0,s.default)(this,"columnFilter",null),(0,s.default)(this,"rowUtils",null),(0,s.default)(this,"columnUtils",null),(0,s.default)(this,"rowsToRender",0),(0,s.default)(this,"columnsToRender",0),(0,s.default)(this,"rowHeaderFunctions",[]),(0,s.default)(this,"rowHeadersCount",0),(0,s.default)(this,"columnHeaderFunctions",[]),(0,s.default)(this,"columnHeadersCount",0),(0,s.default)(this,"cellRenderer",void 0),(0,s.default)(this,"activeOverlayName",void 0),(0,s.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:i,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),i.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=i,this.cells=s}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),i=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),s=i.getHeightByOverlayName(t,this.activeOverlayName),n=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-n+"px":""}}}}},5363:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,i=parseInt(e.getSettings().fixedColumnsStart,10),s=e.getSelectedRangeActive().highlight.row,n=o.getNearestNotHiddenIndex(i,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,n)),t.markEndSource()}}},5476:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(76651),s=o(78437),n=o(42732);function r(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(l(e,t))}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")}var h=new WeakMap,c=new WeakSet;class u extends n.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var o,i;super(e,(0,s.extend)(u.DEFAULTS,t)),r(o=this,i=c),i.add(o),function(e,t,o){r(e,t),t.set(e,o)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(c,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,o,s;t=h,o=this,s=this._element.firstChild,t.set(l(t,o),s),(0,i.addClass)(this._element,"htUIInput"),(0,i.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=u},5760:(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,i.arrayFilter)(e,e=>!1===t.includes(e))};var i=o(94857)},5774:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(33166),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(14618);var s=o(76651),n=o(54259),r=i(o(24384));function a(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 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 WeakSet;function v(){const e=h(p,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let o=0;o<t.length;o++)e.add(t[o]);e.forEach(e=>{var t,o;const i=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let n=[];Array.isArray(null===(t=h(g,this).options)||void 0===t?void 0:t.cellAttributes)&&(n=h(g,this).options.cellAttributes.map(e=>e[0])),Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.headerAttributes)&&(n=[...n,...h(g,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,o=i.length;t<o;t++)(0,s.removeClass)(i[t],e),(0,s.removeAttribute)(i[t],n)}),e.clear()}t.SelectionManager=class{constructor(e){var t,o;l(t=this,o=C),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new n.SelectionScanner),a(this,p,new WeakMap),a(this,m,new WeakSet),a(this,w,new Map),c(g,this,e)}setActiveOverlay(e){return c(d,this,e),h(f,this).setActiveOverlay(h(d,this)),h(p,this).has(h(d,this))||h(p,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(g,this)?h(g,this).getFocus():null}getAreaSelection(){return null!==h(g,this)?h(g,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(w,this).has(e)){const t=h(w,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const o=new r.default(h(d,this),e.settings);return t.set(h(d,this),o),o}const t=new r.default(h(d,this),e.settings);return h(w,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,o;return Array.from(null!==(t=null===(o=h(w,this).get(e))||void 0===o?void 0:o.values())&&void 0!==t?t:[])}destroyBorders(e){h(w,this).get(e).forEach(e=>e.destroy()),h(w,this).delete(e)}render(e){if(null===h(g,this))return;e&&u(C,this,v).call(this);const t=Array.from(h(g,this)),o=new Map,i=new Map;for(let e=0;e<t.length;e++){const s=t[e],{className:n,headerAttributes:r,createLayers:a,selectionType:l}=s.settings;h(m,this).has(s)||(h(m,this).add(s),s.addLocalHook("destroy",()=>this.destroyBorders(s)));const c=this.getBorderInstance(s);if(s.isEmpty()){null==c||c.disappear();continue}if(n){h(f,this).setActiveSelection(s).scan().forEach(e=>{if(o.has(e)){const t=o.get(e);t.has(n)&&!0===a?t.set(n,t.get(n)+1):t.set(n,1)}else o.set(e,new Map([[n,1]]));r&&(i.has(e)||i.set(e,[]),"TH"===e.nodeName&&i.get(e).push(...r))})}const u=s.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,l),null==c||c.appear(u)}o.forEach((e,t)=>{var o;const i=Array.from(e).map(e=>{let[t,o]=e;return 1===o?t:[t,...Array.from({length:o-1},(e,o)=>`${t}-${o+1}`)]}).flat();i.forEach(e=>h(p,this).get(h(d,this)).add(e)),(0,s.addClass)(t,i),"TD"===t.nodeName&&Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.cellAttributes)&&(0,s.setAttribute)(t,h(g,this).options.cellAttributes)}),Array.from(i.keys()).forEach(e=>{(0,s.setAttribute)(e,[...i.get(e)])})}}},5884:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(70667),a=o(76651);function l(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 n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"boundaries",null),(0,s.default)(this,"callback",null),(0,s.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,i=0;t<this.boundaries.top?i=t-this.boundaries.top:t>this.boundaries.bottom&&(i=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,i)}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,a.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,r.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 i,s;const n=null!==(i=t.scrollLeft)&&void 0!==i?i:t.scrollX,r=null!==(s=t.scrollTop)&&void 0!==s?s:t.scrollY;t.scroll(n+50*Math.sign(e),r+20*Math.sign(o))}),this.listen()}t.DragToScroll=g},6077:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),r=o(76742);const a=t.CONDITION_NAME="date_before";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)<=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},6307:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[,o,,i]=e;o-i!==0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:o}=this.getSelectedRangeActive(),i=Math.max(Math.min(t.col,o.col),0),s=Math.max(t.col,o.col),n=[];for(let e=i;e<=s;e+=1)n.push(e);e.hideColumns(n);const r=n[n.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(r,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},o(66182);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278))},6490:(e,t,o)=>{"use strict";t.__esModule=!0,o(66182);var i=o(75372),s=o(94857);class n extends i.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=n},6888:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const n=t.locale;return function(t,r){const{sortEmptyCells:a}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(n)),"string"==typeof r&&(r=r.toLocaleLowerCase(n)),t===r?s.DO_NOT_SWAP:(0,i.isEmpty)(t)?(0,i.isEmpty)(r)?s.DO_NOT_SWAP:a&&"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(0,i.isEmpty)(r)?a&&"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(r)?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(r)?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(r)||(t=parseFloat(t),r=parseFloat(r)),t<r?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:t>r?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP)}};var i=o(26599),s=o(688);t.COLUMN_DATA_TYPE="default"},7037:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[n.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=o(70948),n=o(35353),r=o(26740);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))})},7225:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},7522:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(88633);var i=o(49581);function s(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 r(e,t){return e.get(l(e,t))}function a(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")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakSet;function v(){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 y(){this.isClassicTheme()||a(d,this,getComputedStyle(r(u,this)));const e=l(C,this,S).call(this,["box-sizing","border-bottom-width"]);r(m,this).td={...r(m,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function S(e){const t=r(g,this),o=r(u,this),i=t.createElement("table"),s=t.createElement("tbody"),n=t.createElement("tr"),a=t.createElement("tr"),l=t.createElement("td");a.appendChild(l),s.appendChild(n),s.appendChild(a),i.appendChild(s),o.appendChild(i);const h=getComputedStyle(l),c={};return e.forEach(e=>{c[e]=h.getPropertyValue(e)}),o.removeChild(i),c}function E(e){const t=Math.ceil(parseFloat(l(C,this,R).call(this,e)));return Number.isNaN(t)?null:t}function R(e){const t=r(d,this).getPropertyValue(e);return""===t?null:t}function b(){a(m,this,{}),a(p,this,{}),a(f,this,!0)}t.StylesHandler=class{constructor(e){let{hot:t,rootElement:o,rootDocument:i,onThemeChange:r=()=>{}}=e;var l,v;n(l=this,v=C),v.add(l),s(this,h,void 0),s(this,c,void 0),s(this,u,void 0),s(this,d,void 0),s(this,g,void 0),s(this,f,!0),s(this,p,{}),s(this,m,{}),s(this,w,void 0),a(h,this,t),a(u,this,o),a(g,this,i),a(w,this,r)}isClassicTheme(){return r(f,this)}getCSSVariableValue(e){var t;if(r(f,this))return null;if(r(p,this)[`--ht-${e}`])return r(p,this)[`--ht-${e}`];const o=null!==(t=l(C,this,E).call(this,`--ht-${e}`))&&void 0!==t?t:l(C,this,R).call(this,`--ht-${e}`);return null!==o?(r(p,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=r(m,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(e){if(r(f,this))return 23;const t=l(C,this,v).call(this);return t?void 0!==e&&e===r(h,this).view.getFirstRenderedVisibleRow()?t+1:t:23}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return a(c,this,void 0),a(f,this,!0),r(w,this).call(this,r(c,this)),void l(C,this,y).call(this);if(e&&e!==r(c,this)){if(!/ht-theme-.*/.test(e))return(0,i.warn)(`Invalid theme name: ${e}. Please provide a valid theme name.`),a(c,this,void 0),a(f,this,!1),r(w,this).call(this,r(c,this)),void l(C,this,y).call(this);r(c,this)&&l(C,this,b).call(this),a(c,this,e),a(f,this,!1),r(w,this).call(this,r(c,this)),l(C,this,y).call(this)}}getThemeName(){return r(c,this)}}},7708:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(83398);t.EDITOR_TYPE=i.EDITOR_TYPE,t.DropdownEditor=i.DropdownEditor},7796:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(97700);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Autofill=i.Autofill},7810:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="row_above"},7884:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(88370);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualRowResize=i.ManualRowResize},8079:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var s=i(o(86798)),n=o(89640),r=o(92273),a=o(65146);const l=t.VALIDATOR_TYPE="date";function h(e,t){const o=(0,n.getEditorInstance)(r.EDITOR_TYPE,this.instance);let i=e,a=!0;null==i&&(i="");let l=(0,s.default)(i,this.dateFormat||o.defaultDateFormat,!0).isValid(),h=(0,s.default)(new Date(i)).isValid()||l;if(this.allowEmpty&&""===i&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=c(i,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function c(e,t){const o=(0,s.default)((0,a.getNormalizedDate)(e)),i=(0,s.default)(e,t),n=e.search(/[A-Za-z]/g)>-1;let r;return r=o.isValid()&&o.format("x")===i.format("x")||!i.isValid()||n?o:i,r.format(t)}h.VALIDATOR_TYPE=l},8278:(e,t)=>{"use strict";t.__esModule=!0;const o=t.COMMON_NAMESPACE="Common:",i=(t.OK=`${o}ok`,t.CANCEL=`${o}cancel`,t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items"),s=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${i}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${i}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${i}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${i}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${i}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${i}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${i}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${i}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${i}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${i}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${i}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${i}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${i}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${i}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${i}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${i}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${i}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${i}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${i}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${i}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${i}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${i}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${i}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${i}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${i}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${i}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${i}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${i}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${i}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${i}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${i}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${i}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${i}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${i}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${i}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${i}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${i}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${i}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${i}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${i}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${i}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${i}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${i}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${i}.showRow`,t.FILTERS_NAMESPACE="Filters:"),n=t.FILTERS_CONDITIONS_NAMESPACE=`${s}conditions`,r=(t.FILTERS_CONDITIONS_NONE=`${n}.none`,t.FILTERS_CONDITIONS_EMPTY=`${n}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${n}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${n}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${n}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${n}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${n}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${n}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${n}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${n}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${n}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${n}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${n}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${n}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${n}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${n}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${n}.after`,t.FILTERS_CONDITIONS_BEFORE=`${n}.before`,t.FILTERS_CONDITIONS_TODAY=`${n}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${n}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${n}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${s}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${s}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${s}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${s}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${s}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${s}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${s}buttons.clear`,t.FILTERS_BUTTONS_OK=`${s}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${s}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${s}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${s}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${s}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),a=(t.PAGINATION_SECTION=`${r}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${r}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${r}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${r}section.counter`,t.PAGINATION_NAV_SECTION=`${r}section.navigation`,t.PAGINATION_FIRST_PAGE=`${r}firstPage`,t.PAGINATION_PREV_PAGE=`${r}prevPage`,t.PAGINATION_NEXT_PAGE=`${r}nextPage`,t.PAGINATION_LAST_PAGE=`${r}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),l=(t.CHECKBOX_CHECKED=`${a}checked`,t.CHECKBOX_UNCHECKED=`${a}unchecked`,t.LOADING_NAMESPACE="Loading:"),h=(t.LOADING_TITLE=`${l}title`,t.EMPTY_DATA_STATE_NAMESPACE="EmptyDataState:");t.EMPTY_DATA_STATE_TITLE=`${h}title`,t.EMPTY_DATA_STATE_DESCRIPTION=`${h}description`,t.EMPTY_DATA_STATE_TITLE_FILTERS=`${h}title.filters`,t.EMPTY_DATA_STATE_DESCRIPTION_FILTERS=`${h}description.filters`,t.EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET=`${h}buttons.filters.reset`},8467:(e,t,o)=>{"use strict";var i=o(19596),s=o(14326);e.exports=function(e,t){return arguments.length<2?(o=i[e],s(o)?o:void 0):i[e]&&i[e][t];var o}},8994:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,s){const[,...n]=o,[,...r]=s;return function(o){const s=e[o],a=t[o],l=n[o],h=r[o],c=a.columnSorting;return(c.compareFunctionFactory?c.compareFunctionFactory:(0,i.getCompareFunctionFactory)(a.type))(s,a,c)(l,h)}(0)}};var i=o(688)},9041:(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 l(e)},t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:o,renderer:i,validator:l}=t;o&&(0,s.registerEditor)(e,o);i&&(0,n.registerRenderer)(e,i);l&&(0,r.registerValidator)(e,l);a(e,t)},o(22588);var i=o(43641),s=o(89640),n=o(83658),r=o(72657);const{register:a,getItem:l,hasItem:h,getNames:c,getValues:u}=(0,i.staticRegister)("cellTypes");t.getRegisteredCellTypes=u,t.getRegisteredCellTypeNames=c,t.hasCellType=h},9091:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(66058);const r=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},9240:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(14618);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(94857),l=o(57455),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),c=o(35764),u=o(24293),d=o(59686),g=o(96),f=o(76742),p=o(58);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,s.default)(this,"name",""),(0,s.default)(this,"searchMode",void 0),this.name=t.name,this.searchMode=t.searchMode,this.elements.push(new d.MultipleSelectUI(this.hot,{searchMode:this.searchMode})),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,E).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,i,s,n)=>{const[r]=(0,a.arrayFilter)(o,e=>e.name===g.CONDITION_BY_VALUE),l={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(r){const o=s(t,n),h=(0,a.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);i&&(r.args[0]=i);const m=[],v=(0,c.intersectValues)(p,r.args[0],u,e=>{e.checked&&m.push(e.value),w(C,this,S).call(this,e,d)}),y=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,y).locale,l.args=[m],l.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=v}else l.args=[],l.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,l)};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,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.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),i=new Map(t.map(e=>[e.value,e.meta])),s=(0,c.unifyColumnValues)(o),n=(0,c.intersectValues)(s,s,e,e=>{w(C,this,S).call(this,e,i)});this.getMultipleSelectElement().setItems(n),super.reset(),this.getMultipleSelectElement().setValue(s);const r=this.hot.getPlugin("filters").getSelectedColumn();null!==r&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,r.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)}))}}function y(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e)),(0,l.isKey)(e.keyCode,"ENTER")&&("apply"===this.searchMode&&this.runLocalHooks("accept"),(0,r.stopImmediatePropagation)(e))}function S(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function E(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=v},9364:(e,t,o)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var o;const{data:r,childs:a}=t;if(r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(a[0]);r.isCollapsed=!0;const l=a.slice(1),h=new Set;if(l.length>0)(0,i.arrayEach)(l,e=>{(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{h.add(e)}),e.data.clonedTree=e.cloneTree(),e.walkDown(e=>{let{data:t}=e;t.isHidden=!0})});else{const{origColspan:e,columnIndex:t}=r;for(let o=1;o<e;o++){const e=t+o;h.add(e)}}const c=r.colspan-(null!==(o=(0,n.getFirstChildProperty)(t,"colspan"))&&void 0!==o?o:1);return t.walkUp(e=>{const{data:t}=e;t.colspan-=c,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:c}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(94857),s=o(57103),n=o(31557)},9479:(e,t,o)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=r,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),l=r(e);return{...n,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),n=r(e);return{...s,...n}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(o=>void 0!==t[o]&&t[o]!==e[o])},o(81396),o(39716),o(19874);var i=o(25502);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",n=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function r(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,o)=>("hyperformula"!==o&&(t[o]=e[o]),t),{})}},9549:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return(0,i.createDateTimeCompareFunction)(e,t.dateFormat,o)};var i=o(39761);t.COLUMN_DATA_TYPE="date"},9961:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(o))}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},10063:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(14618);var s=i(o(81115)),n=o(78437),r=o(32435),a=o(26599);const l=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];t.ColumnStatesManager=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"sortingStates",new r.LinkedPhysicalIndexToValueMap),(0,s.default)(this,"sortEmptyCells",false),(0,s.default)(this,"indicator",true),(0,s.default)(this,"headerAction",true),(0,s.default)(this,"compareFunctionFactory",void 0),(0,s.default)(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,n.isObject)(e)&&(0,n.objectEach)(e,(e,t)=>{l.includes(t)&&(this[t]=e)})}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex(t=>{let[o]=t;return o===e})}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,n.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){if(null===this.sortingStates)return[];return this.sortingStates.getEntries().map(e=>{let[t,o]=e;return{column:this.hot.toVisualColumn(t),...o}})}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,a.isDefined)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}},10226:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(76651),r=o(73983),a=i(o(13683)),l=i(o(56795)),h=i(o(37135)),c=i(o(14120));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,r.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;t<o;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,o){(0,n.fastInnerText)(o,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,o){return new c.default(e,t,o,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,n.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<o&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-i){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-i&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,o){return this.wtScroll.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},10441:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81774);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualRowMove=i.ManualRowMove},10705:(e,t,o)=>{"use strict";var i=o(27538),s=o(81576),n=o(49510),r=o(16539),a=o(83203),l=o(13479),h=o(57625),c=o(99949),u=o(89035),d=TypeError,g=u(function(){[].keys().reduce(function(){},void 0)}),f=!g&&h("reduce",d);i({target:"Iterator",proto:!0,real:!0,forced:g||f},{reduce:function(e){r(this);try{n(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,o=t?void 0:arguments[1];if(f)return c(f,this,t?[e]:[e,o]);var i=a(this),h=0;if(s(i,function(i){t?(t=!1,o=i):o=e(o,i,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return o}})},11127:(e,t,o)=>{"use strict";var i=o(40825);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},11270:(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(i.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(39469)},11558:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},11797:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(85326);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.NestedHeaders=i.NestedHeaders},11882:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,o){e.prepareBorder(o,"noBorders")},disabled(){return!(0,s.checkSelectionBorders)(this)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(39469)},11912:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(21372);t.RENDERER_TYPE=i.RENDERER_TYPE,t.htmlRenderer=i.htmlRenderer},12010:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.default=class{constructor(e,t){(0,s.default)(this,"dataAccessObject",void 0),(0,s.default)(this,"wtSettings",void 0),(0,s.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,i=e.getSetting("defaultColumnWidth");for(let e=0;e<o;e++){let o=Array.isArray(t)?t[e]:t;o=null==o?i:o,this.headerWidths.set(e,o)}}}}},12108:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return r.chrome.value},t.isChromeWebKit=function(){return r.chromeWebKit.value},t.isEdge=function(){return r.edge.value},t.isEdgeWebKit=function(){return r.edgeWebKit.value},t.isFirefox=function(){return r.firefox.value},t.isFirefoxWebKit=function(){return r.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return r.mobile.value},t.isSafari=function(){return r.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var i=o(78437),s=o(88014);const n=e=>{const t={value:!1,test:(o,i)=>{t.value=e(o,i)}};return t},r={chrome:n((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:n(e=>/CriOS/.test(e)),edge:n(e=>/Edge/.test(e)),edgeWebKit:n(e=>/EdgiOS/.test(e)),firefox:n(e=>/Firefox/.test(e)),firefoxWebKit:n(e=>/FxiOS/.test(e)),mobile:n(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:n((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:n(e=>/^Mac/.test(e)),win:n(e=>/^Win/.test(e)),linux:n(e=>/^Linux/.test(e)),ios:n(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(r,o=>{let{test:i}=o;i(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(a,t=>{let{test:o}=t;o(e)})}(0,s.isCSR)()&&(l(),h())},12290:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(42479),r=o(78437),a=o(49581),l=o(58639),h=o(94857),c=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),u=o(99160),d=o(39469),g=o(68959),f=o(26599);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="customBorders",C=t.PLUGIN_PRIORITY=90,v=["dashed","dotted","solid"];var y=new WeakSet;class S extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>m(y,this,R).call(this,e)),this.addHook("init",()=>m(y,this,b).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"],i=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),i=(0,d.normalizeBorder)(t));const s=(0,g.detectSelectionType)(e),n=(0,g.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,h.arrayEach)(e,e=>{n(e).forAll((e,t)=>{(0,h.arrayEach)(o,o=>{this.prepareBorderFromCustomAdded(e,t,i,(0,d.toInlinePropName)(o))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,g.detectSelectionType)(e),o=(0,g.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),i=[];return(0,h.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,h.arrayEach)(this.savedBorders,o=>{o.row===e&&o.col===t&&i.push((0,d.denormalizeBorder)(o))})})}),i}clearBorders(e){e?this.setBorders(e):((0,h.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,i){const s=this.hot.countRows(),n=this.hot.countCols();if(e>=s||t>=n)return;let r=(0,d.createEmptyBorders)(e,t);o&&(r=(0,d.extendDefaultBorder)(r,o),(0,h.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(r.id===e.settings.id)return Object.assign(e.settings,o),r.id=e.settings.id,r.top=e.settings.top,r.bottom=e.settings.bottom,r.start=e.settings.start,r.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(r)),this.insertBorderIntoSettings(r,i)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),i=Math.min(e.to.col,this.hot.countCols()-1);(0,l.rangeEach)(e.from.row,o,o=>{(0,l.rangeEach)(e.from.col,i,i=>{const s=(0,d.createEmptyBorders)(o,i);let n=0;o===e.from.row&&(0,r.hasOwnProperty)(t,"top")&&(n+=1,s.top=t.top),o===e.to.row&&(0,r.hasOwnProperty)(t,"bottom")&&(n+=1,s.bottom=t.bottom),i===e.from.col&&(0,r.hasOwnProperty)(t,"start")&&(n+=1,s.start=t.start),i===e.to.col&&(0,r.hasOwnProperty)(t,"end")&&(n+=1,s.end=t.end),n>0&&(this.hot.setCellMeta(o,i,"borders",(0,d.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const o=(0,d.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,i){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,d.normalizeBorder)(s):(0,d.createEmptyBorders)(e,t),i){s[o]=(0,d.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(s))}}else{s[o]=(0,d.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(s))}}prepareBorder(e,t,o){(0,h.arrayEach)(e,e=>{let{start:i,end:s}=e;if(i.row===s.row&&i.col===s.col)"noBorders"===t?this.removeAllBorders(i.row,i.col):this.setBorder(i.row,i.col,t,o);else switch(t){case"noBorders":(0,l.rangeEach)(i.col,s.col,e=>{(0,l.rangeEach)(i.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,l.rangeEach)(i.col,s.col,e=>{this.setBorder(i.row,e,t,o)});break;case"bottom":(0,l.rangeEach)(i.col,s.col,e=>{this.setBorder(s.row,e,t,o)});break;case"start":(0,l.rangeEach)(i.row,s.row,e=>{this.setBorder(e,i.col,t,o)});break;case"end":(0,l.rangeEach)(i.row,s.row,e=>{this.setBorder(e,s.col,t,o)})}})}createCustomBorders(e){(0,h.arrayEach)(e,e=>{const t=(0,d.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:o,start:i,end:s}=e,n=[t,o,i,s];return(0,h.arrayReduce)(n,(e,t)=>{let o=e;return t&&t.hide&&(o+=1),o},0)}clearBordersFromSelectionSettings(e){const t=(0,h.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,h.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,h.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,h.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,h.arrayEach)(this.savedBorders,(o,i)=>{if(e.id===o.id)return this.savedBorders[i]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,o){let i=!1;return(0,h.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,h.arrayEach)(e,e=>{e.toggleHiddenClass(t,o)}),i=!0,!1}}),i}checkCustomSelections(e,t,o){const i=this.countHide(e);let s=!1;return 4===i?(this.removeAllBorders(e.row,e.col),s=!0):(0,h.arrayEach)(this.hot.selection.highlight.customSelections,i=>{if(e.id===i.settings.id){if(i.visualCellRange=t,i.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(i);(0,h.arrayEach)(t,t=>{t.changeBorderStyle(o,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[w];if(Array.isArray(e)){const t=(0,r.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,d.hasLeftRightTypeOptions)(e),o=(0,d.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".');m(y,this,E).call(this,e)}destroy(){super.destroy()}}function E(e){e.forEach(e=>{Object.keys(e).forEach(t=>{const o=e[t].style;(0,f.isDefined)(o)&&!v.includes(o)?((0,a.warn)(`The "${o}" border style is not supported. Please use one of the following styles: ${v.join(", ")}.\nThe border style will be ignored.`),delete e[t].style):(0,f.isDefined)(o)&&"solid"===o&&delete e[t].style})})}function R(e){this.hot.getSettings()[w]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(c.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,u.top)(this),(0,u.right)(this),(0,u.bottom)(this),(0,u.left)(this),(0,u.noBorders)(this)]}})}function b(){this.changeBorderSettings()}t.CustomBorders=S},12358:(e,t,o)=>{"use strict";var i=o(94988),s=o(14326),n=o(60369),r=i(Function.toString);s(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),e.exports=n.inspectSource},12557:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742);const n=t.CONDITION_NAME="none";function r(){return!0}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},12767:(e,t,o)=>{"use strict";var i=o(27538),s=o(49979);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},13117:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(91338),s=o(49581),n=o(34149),r=o(76651);let a=!1;class l extends i.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,o=e+t;for(;this.renderedNodes<o;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>o;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!a&&e>1e3&&(a=!0,(0,s.warn)(n.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
|
|
@@ -43,7 +43,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
|
|
|
43
43
|
*
|
|
44
44
|
* Description: Definition file for English - United States language-country.
|
|
45
45
|
*/(o(8278));const s={languageCode:"en-US",[i.OK]:"OK",[i.CANCEL]:"Cancel",[i.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[i.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[i.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[i.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[i.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[i.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[i.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[i.CONTEXTMENU_ITEMS_UNDO]:"Undo",[i.CONTEXTMENU_ITEMS_REDO]:"Redo",[i.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[i.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[i.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[i.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[i.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[i.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[i.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[i.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[i.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[i.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[i.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[i.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[i.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[i.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[i.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[i.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[i.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[i.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[i.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[i.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[i.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[i.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[i.CONTEXTMENU_ITEMS_COPY]:"Copy",[i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[i.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[i.CONTEXTMENU_ITEMS_CUT]:"Cut",[i.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[i.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[i.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[i.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[i.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[i.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[i.FILTERS_CONDITIONS_NONE]:"None",[i.FILTERS_CONDITIONS_EMPTY]:"Is empty",[i.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[i.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[i.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[i.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[i.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[i.FILTERS_CONDITIONS_CONTAINS]:"Contains",[i.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[i.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[i.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[i.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[i.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[i.FILTERS_CONDITIONS_BETWEEN]:"Is between",[i.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[i.FILTERS_CONDITIONS_AFTER]:"After",[i.FILTERS_CONDITIONS_BEFORE]:"Before",[i.FILTERS_CONDITIONS_TODAY]:"Today",[i.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[i.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[i.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[i.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[i.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[i.FILTERS_LABELS_CONJUNCTION]:"And",[i.FILTERS_LABELS_DISJUNCTION]:"Or",[i.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[i.FILTERS_BUTTONS_CLEAR]:"Clear",[i.FILTERS_BUTTONS_OK]:"OK",[i.FILTERS_BUTTONS_CANCEL]:"Cancel",[i.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[i.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[i.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[i.PAGINATION_SECTION]:"Pagination",[i.PAGINATION_PAGE_SIZE_SECTION]:"Page size",[i.PAGINATION_PAGE_SIZE_AUTO]:"Auto",[i.PAGINATION_COUNTER_SECTION]:"[start] - [end] of [total]",[i.PAGINATION_NAV_SECTION]:"Page [currentPage] of [totalPages]",[i.PAGINATION_FIRST_PAGE]:"Go to first page",[i.PAGINATION_PREV_PAGE]:"Go to previous page",[i.PAGINATION_NEXT_PAGE]:"Go to next page",[i.PAGINATION_LAST_PAGE]:"Go to last page",[i.CHECKBOX_CHECKED]:"Checked",[i.CHECKBOX_UNCHECKED]:"Unchecked",[i.LOADING_TITLE]:"Loading...",[i.EMPTY_DATA_STATE_TITLE]:"No data available",[i.EMPTY_DATA_STATE_DESCRIPTION]:"There’s nothing to display yet.",[i.EMPTY_DATA_STATE_TITLE_FILTERS]:"No results found",[i.EMPTY_DATA_STATE_DESCRIPTION_FILTERS]:"It looks like your current filters are hiding all results.",[i.EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET]:"Reset filters"};t.default=s},19809:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!o.call({1:2},1);t.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:o},19826:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(24272);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.StretchColumns=i.StretchColumns},19835:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}}},19874:(e,t,o)=>{"use strict";o(5271)},20038:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s,n=i(o(81115)),r=o(76651),a=o(94857),l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),h=o(24293),c=o(5476);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,n.default)(this,"name",""),this.name=t.name,this.elements.push(new c.InputUI(this.hot,{type:"button",value:l.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:g.BUTTON_OK})),this.elements.push(new c.InputUI(this.hot,{type:"button",value:l.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:g.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,a.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,r.addClass)(t.parentNode,"htFiltersMenuActionBar"),(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function f(e,t){t.options.identifier===s.BUTTON_OK?this.accept():this.cancel()}t.ActionBarComponent=g,s=g},20152:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,i.getRootComparator)(t);for(var s=arguments.length,n=new Array(s>2?s-2:0),r=2;r<s;r++)n[r-2]=arguments[r];e.sort(o(...n))};var i=o(2289);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},20155:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},20164:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},20168:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(88633);var i=o(24496),s=o(76651),n=o(27665),r=o(72992);function a(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 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(),i=h(d,this).countRows(),s=t.getDefaultRowHeight(),n=t.isClassicTheme(),r=e=>n&&0===e?1:0;let a=0,l=!1;for(let e=0;e<i;e++){var c;if(!h(d,this).rowIndexMapper.isHidden(h(d,this).toPhysicalRow(e))&&(a+=(null!==(c=h(d,this).getRowHeight(e))&&void 0!==c?c:s)+r(e),a>o)){l=!0;break}}return l}function C(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:i.DEFAULT_COLUMN_WIDTH}function v(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,o;l(t=this,o=m),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new Map([["all",new n.StretchAllStrategy(u(m,this,v).bind(this))],["last",new r.StretchLastStrategy(u(m,this,v).bind(this))]])),a(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,s.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))}}},20182:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(39043);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.timeValidator=i.timeValidator},20200:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("forEach",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;n(t,function(t){e(t,o++)},{IS_RECORD:!0})}})},20330:(e,t,o)=>{"use strict";var i=o(11127),s=Math.min;e.exports=function(e){var t=i(e);return t>0?s(t,9007199254740991):0}},20385:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(0,1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},20479:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let s=0;s<t;s+=1){const n=e[s],r=n.length,a=[];0===s&&o.push("<tbody>");for(let e=0;e<r;e+=1){const t=n[e],o=(0,i.isEmpty)(t)?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`).replace(/\t/gi,"	");a.push(`<td>${o}</td>`)}o.push("<tr>",...a,"</tr>"),s+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={},i=t.createDocumentFragment(),r=t.createElement("div");i.appendChild(r);let a=e;if("string"==typeof a){const e=a.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(/^ $/gm,"")}</td>`});r.insertAdjacentHTML("afterbegin",`${e}`),a=r.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=r.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(a.tHead){const e=Array.from(a.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:i,innerHTML:s}=t,n=i>1?{label:s,colspan:i}:s;return e.push(n),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(a.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),i=o.length;for(let t=0;t<i;t++){const i=o[t],{nodeName:r,innerHTML:a,rowSpan:h,colSpan:c}=i,u=C[e].findIndex(e=>void 0===e);if("TD"===r){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=i.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,e=>s[e])}else y.push(a)}}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(),s=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...s),r=n.length,a=r>0?n[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let s=0;s<r;s+=1){const r=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!r&&o&&0===t;let h="";if(r)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const o=n[s][t],{hidden:r,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-u);if(!r){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,i.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");r?h.splice(1,0,g):c.splice(-1,0,g)}return l.splice(1,0,h.join(""),c.join("")),l.join("")},o(66182),o(38094),o(81396),o(81124),o(14618),o(39716);var i=o(26599);const s={" ":" ","&":"&","<":"<",">":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},20699:(e,t,o)=>{"use strict";var i=o(94988),s=o(89035),n=o(36724),r=Object,a=i("".split);e.exports=s(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?a(e,""):r(e)}:r},20823:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124);var s=i(o(81115)),n=o(94857),r=o(78437),a=o(99586),l=i(o(86248)),h=i(o(85532)),c=i(o(17691)),u=o(35764);function d(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 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 WeakSet;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];d(this,f),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),(0,s.default)(this,"changes",[]),(0,s.default)(this,"grouping",!1),(0,s.default)(this,"latestEditedColumnPosition",-1),(0,s.default)(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=o,this.conditionCollection.addLocalHook("beforeRemove",e=>g(f,this,m).call(this,e)),this.conditionCollection.addLocalHook("afterRemove",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("afterAdd",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("beforeClean",()=>g(f,this,w).call(this)),this.conditionCollection.addLocalHook("afterClean",()=>g(f,this,C).call(this))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,(0,n.arrayEach)(this.changes,e=>{this.updateStatesAtColumn(e)}),this.changes.length=0}updateStatesAtColumn(e,t){var o=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const i=this.conditionCollection.exportAllConditions();let s=this.conditionCollection.getColumnStackPosition(e);-1===s&&(s=this.latestEditedColumnPosition);const r=i.slice(0,s),l=i.slice(s);l.length&&l[0].column===e&&l.shift();const d=(0,a.curry)(function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const s=new h.default(o.hot,!1),r=[].concat(e,i);s.importAllConditions(r);const a=o.columnDataFactory(t);let l;l=s.isEmpty()?a:new c.default(s,e=>o.columnDataFactory(e)).filter(),l=(0,n.arrayMap)(l,e=>e.meta.visualRow);const d=(0,u.createArrayAssertion)(l);return s.destroy(),(0,n.arrayFilter)(a,e=>d(e.meta.visualRow))})(r),g=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:g},dependentConditionStacks:l,filteredRowsFactory:d,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),(0,r.objectEach)(this,(e,t)=>{this[t]=null})}}function m(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function w(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function C(){(0,n.arrayEach)(this.latestOrderStack,e=>{this.updateStatesAtColumn(e)})}(0,r.mixin)(p,l.default);t.default=p},20846:e=>{"use strict";e.exports=i},20912:(e,t,o)=>{"use strict";var i=o(89035),s=o(14326),n=/#|\.prototype\./,r=function(e,t){var o=l[a(e)];return o===c||o!==h&&(s(t)?i(t):!!t)},a=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},l=r.data={},h=r.NATIVE="N",c=r.POLYFILL="P";e.exports=r},20925:(e,t,o)=>{"use strict";var i=o(8467),s=o(33477),n=o(39303),r=o(17621),a=o(97931),l=o(93904),h=o(47812),c=o(1195),u=o(72071),d=o(14060),g=o(69423),f=o(21912),p=o(58719);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],S=i.apply(null,v);if(S){var E=S.prototype;if(!p&&s(E,"cause")&&delete E.cause,!o)return S;var R=i("Error"),b=t(function(e,t){var o=u(m?t:e,void 0),i=m?new S(e):new S;return void 0!==o&&n(i,"message",o),g(i,b,i.stack,2),this&&r(E,this)&&c(i,this,b),arguments.length>C&&d(i,arguments[C]),i});if(b.prototype=E,"Error"!==y?a?a(b,R):l(b,R,{name:!0}):f&&w in S&&(h(b,S,w),h(b,S,"prepareStackTrace")),l(b,S),!p)try{E.name!==y&&n(E,"name",y),E.constructor=b}catch(e){}return b}}},21033:(e,t,o)=>{"use strict";var i,s,n,r=o(31338),a=o(19596),l=o(52270),h=o(39303),c=o(33477),u=o(60369),d=o(26075),g=o(46049),f="Object already initialized",p=a.TypeError,m=a.WeakMap;if(r||u.state){var w=u.state||(u.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,i=function(e,t){if(w.has(e))throw new p(f);return t.facade=e,w.set(e,t),t},s=function(e){return w.get(e)||{}},n=function(e){return w.has(e)}}else{var C=d("state");g[C]=!0,i=function(e,t){if(c(e,C))throw new p(f);return t.facade=e,h(e,C,t),t},s=function(e){return c(e,C)?e[C]:{}},n=function(e){return c(e,C)}}e.exports={set:i,get:s,has:n,enforce:function(e){return n(e)?s(e):i(e,{})},getterFor:function(e){return function(t){var o;if(!l(t)||(o=s(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return o}}}},21314:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=o(24496),n=i(o(73358))},21342:(e,t,o)=>{"use strict";t.__esModule=!0,o(66182);var i=o(94857),s=o(78437);const n={_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,i.arrayEach)(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){(0,s.objectEach)(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};(0,s.defineGetter)(n,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=n},21372:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=r;var i=o(36814),s=o(76651);const n=t.RENDERER_TYPE="html";function r(e,t,o,n,r,a,l){i.baseRenderer.apply(this,[e,t,o,n,r,a,l]),(0,s.fastInnerHTML)(t,null==a?"":a,!1)}r.RENDERER_TYPE=n},21375:(e,t,o)=>{"use strict";var i=o(73168),s=o(14326),n=o(36724),r=o(71671)("toStringTag"),a=Object,l="Arguments"===n(function(){return arguments}());e.exports=i?n:function(e){var t,o,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=a(e),r))?o:l?n(t):"Object"===(i=n(t))&&s(t.callee)?"Arguments":i}},21426:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},21733:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,o,s,n){const r=["visualRow","visualCol","row","col","prop"],a=r.length,l=[];return(0,i.rangeEach)(s,n,s=>{(0,i.rangeEach)(t,o,t=>{const o=e.getCellMeta(t,s);if(Object.keys(o).length!==a){const e=Object.fromEntries(Object.entries(o).filter(e=>{let[t]=e;return!1===r.includes(t)}));l.push([o.visualRow,o.visualCol,e])}})}),l},o(66182),o(93773),o(81396),o(81124);var i=o(58639)},21774:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(43336),r=o(91338),a=o(76651),l=o(3226);class h extends r.BaseRenderer{constructor(){super("TH"),(0,s.default)(this,"orderViews",new WeakMap),(0,s.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.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:o,rows:i,cells:s}=this.table;for(let n=0;n<e;n++){const e=this.table.renderedRowToSource(n),r=i.getRenderedNode(n);this.sourceRowIndex=e;const h=this.obtainOrderView(r),c=s.obtainOrderView(r);h.appendView(c).setSize(o).setOffset(0).start();for(let i=o-1;i>=0;i--){h.render();const o=h.getCurrentNode();o.className="",o.removeAttribute("style"),(0,a.removeAttribute)(o,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,a.setAttribute)(o,[(0,l.A11Y_ROWHEADER)(),(0,l.A11Y_SCOPE_ROW)(),(0,l.A11Y_COLINDEX)(i+1),(0,l.A11Y_TABINDEX)(-1)]),t[i](e,o,i)}h.end()}}}t.RowHeadersRenderer=h},21797:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81386);t.FullyVisibleColumnsCalculationType=i.FullyVisibleColumnsCalculationType;var s=o(69932);t.FullyVisibleRowsCalculationType=s.FullyVisibleRowsCalculationType;var n=o(88216);t.PartiallyVisibleColumnsCalculationType=n.PartiallyVisibleColumnsCalculationType;var r=o(68606);t.PartiallyVisibleRowsCalculationType=r.PartiallyVisibleRowsCalculationType;var a=o(20164);t.RenderedAllColumnsCalculationType=a.RenderedAllColumnsCalculationType;var l=o(33290);t.RenderedAllRowsCalculationType=l.RenderedAllRowsCalculationType;var h=o(58435);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var c=o(91671);t.RenderedRowsCalculationType=c.RenderedRowsCalculationType;var u=o(46016);t.ViewportColumnsCalculator=u.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=u.DEFAULT_WIDTH;var d=o(26150);t.ViewportRowsCalculator=d.ViewportRowsCalculator},21912:(e,t,o)=>{"use strict";var i=o(89035);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},21956:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55424);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.NestedRows=i.NestedRows},21968:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(i.AutocompleteCellType),(0,g.registerCellType)(s.CheckboxCellType),(0,g.registerCellType)(n.DateCellType),(0,g.registerCellType)(r.DropdownCellType),(0,g.registerCellType)(a.HandsontableCellType),(0,g.registerCellType)(l.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var i=o(73517);t.AutocompleteCellType=i.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=i.CELL_TYPE;var s=o(84168);t.CheckboxCellType=s.CheckboxCellType,t.CHECKBOX_TYPE=s.CELL_TYPE;var n=o(42257);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var r=o(89144);t.DropdownCellType=r.DropdownCellType,t.DROPDOWN_TYPE=r.CELL_TYPE;var a=o(57440);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=o(51472);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var h=o(624);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(79573);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(730);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(4580);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(9041);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},22362:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(84996);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Dialog=i.Dialog},22381:(e,t,o)=>{"use strict";var i=o(19596),s=Object.defineProperty;e.exports=function(e,t){try{s(i,e,{value:t,configurable:!0,writable:!0})}catch(o){i[e]=t}return t}},22588:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(99949),r=o(20925),a="WebAssembly",l=s[a],h=7!==new Error("e",{cause:7}).cause,c=function(e,t){var o={};o[e]=r(e,t,h),i({global:!0,constructor:!0,arity:1,forced:h},o)},u=function(e,t){if(l&&l[e]){var o={};o[e]=r(a+"."+e,t,h),i({target:a,stat:!0,constructor:!0,arity:1,forced:h},o)}};c("Error",function(e){return function(t){return n(e,this,arguments)}}),c("EvalError",function(e){return function(t){return n(e,this,arguments)}}),c("RangeError",function(e){return function(t){return n(e,this,arguments)}}),c("ReferenceError",function(e){return function(t){return n(e,this,arguments)}}),c("SyntaxError",function(e){return function(t){return n(e,this,arguments)}}),c("TypeError",function(e){return function(t){return n(e,this,arguments)}}),c("URIError",function(e){return function(t){return n(e,this,arguments)}}),u("CompileError",function(e){return function(t){return n(e,this,arguments)}}),u("LinkError",function(e){return function(t){return n(e,this,arguments)}}),u("RuntimeError",function(e){return function(t){return n(e,this,arguments)}})},22625:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},22892:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(21733),a=o(58639),l=o(94857);class h extends n.BaseAction{constructor(e){let{index:t,indexes:o,data:i,amount:n,headers:r,columnPositions:a,rowPositions:l,fixedColumnsStart:h,removedCellMetas:c}=e;super("remove_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"indexes",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"amount",void 0),(0,s.default)(this,"headers",void 0),(0,s.default)(this,"columnPositions",void 0),(0,s.default)(this,"rowPositions",void 0),(0,s.default)(this,"fixedColumnsStart",void 0),(0,s.default)(this,"removedCellMetas",void 0),this.index=t,this.indexes=o,this.data=i,this.amount=n,this.headers=r,this.columnPositions=a.slice(0),this.rowPositions=l.slice(0),this.fixedColumnsStart=h,this.removedCellMetas=c}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",(o,i,s,n)=>{t.done(()=>{const t=e.getSourceDataArray(),s=(e.countCols()+o)%e.countCols(),n=s+i-1,l=[],c=[],u=[];return(0,a.rangeEach)(t.length-1,o=>{const i=[],r=t[o];(0,a.rangeEach)(s,n,t=>{i.push(r[e.toPhysicalColumn(t)])}),l.push(i)}),(0,a.rangeEach)(i-1,t=>{u.push(e.toPhysicalColumn(s+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,a.rangeEach)(i-1,t=>{c.push(e.getSettings().colHeaders[e.toPhysicalColumn(s+t)]||null)}),new h({index:s,indexes:u,data:l,amount:i,headers:c,columnPositions:e.columnIndexMapper.getIndexesSequence(),rowPositions:e.rowIndexMapper.getIndexesSequence(),fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:(0,r.getCellMetas)(e,0,e.countRows(),s,n)})},n)})}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const o=this.indexes.slice(0).sort(),i=(e,t,i)=>i[this.indexes.indexOf(o[t])],s=this.data.length,n=[];for(let e=0;e<s;e++)n.push((0,l.arrayMap)(this.data[e],i));const r=(0,l.arrayMap)(this.headers,i),a=[];e.columnIndexMapper.setIndexesSequence(this.columnPositions),e.alter("insert_col_start",e.toVisualColumn(this.indexes[0]),this.indexes.length,"UndoRedo.undo"),e.batchExecution(()=>{e.rowIndexMapper.setIndexesSequence(this.rowPositions),e.columnIndexMapper.setIndexesSequence(this.columnPositions)},!0),(0,l.arrayEach)(e.getSourceDataArray(),(e,t)=>{(0,l.arrayEach)(o,(o,i)=>{e[o]=n[t][i],a.push([t,o,e[o]])})}),void 0!==this.headers&&(0,l.arrayEach)(r,(t,i)=>{e.getSettings().colHeaders[o[i]]=t}),this.removedCellMetas.forEach(t=>{let[o,i,s]=t;e.setCellMetaObject(o,i,s)}),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(a,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}t.RemoveColumnAction=h},22953:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(78437),r=i(o(86248));function a(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 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 WeakSet;class m{constructor(e,t){var o,i;l(o=this,i=p),i.add(o),a(this,d,void 0),a(this,g,0),a(this,f,{x:0,y:0}),(0,s.default)(this,"tableApi",void 0),c(d,this,e),this.tableApi=t}setActiveLayerIndex(e){c(g,this,e)}getCurrentSelection(){return h(d,this).peekByIndex(h(g,this))}transformStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(f,this,this.calculateOffset());const i=this.tableApi.createCellCoords(e,t);let s=this.getCurrentSelection().highlight;const r=this.tableApi.visualToRenderableCoords(s);let a=0,l=0;if(this.runLocalHooks("beforeTransformStart",i),null!==r.row&&null!==r.col){let{width:e,height:t}=u(p,this,y).call(this);const{row:r,col:c}=u(p,this,b).call(this,s),g=this.tableApi.fixedRowsBottom(),f=this.tableApi.minSpareRows(),m=this.tableApi.minSpareCols(),E=this.tableApi.autoWrapRow(),R=this.tableApi.autoWrapCol(),T=this.tableApi.createCellCoords(r+i.row,c+i.col);if(T.row>=t){const i=(0,n.createObjectPropListener)(o&&f>0&&0===g),s=T.col+1,r=s>=e,a=this.tableApi.createCellCoords(T.row-t,r?s-e:s);if(this.runLocalHooks("beforeColumnWrap",i,u(p,this,_).call(this,a),r),i.value)this.runLocalHooks("insertRowRequire",this.countRenderableRows());else if(R){if(this.shouldSwitchSelectionLayer()&&r&&h(d,this).size()>1){u(p,this,w).call(this);const e=u(p,this,S).call(this,"forward");null!==e&&a.assign(e)}T.assign(a)}}else if(T.row<0){const o=(0,n.createObjectPropListener)(R),i=T.col-1,s=i<0,r=this.tableApi.createCellCoords(t+T.row,s?e+i:i);if(this.runLocalHooks("beforeColumnWrap",o,u(p,this,_).call(this,r),s),R){if(this.shouldSwitchSelectionLayer()&&s&&h(d,this).size()>1){u(p,this,C).call(this);const e=u(p,this,S).call(this,"backward");null!==e&&r.assign(e)}T.assign(r)}}if(({width:e,height:t}=u(p,this,y).call(this)),T.col>=e){const i=(0,n.createObjectPropListener)(o&&m>0),s=T.row+1,r=s>=t,a=this.tableApi.createCellCoords(r?s-t:s,T.col-e);if(this.runLocalHooks("beforeRowWrap",i,u(p,this,_).call(this,a),r),i.value)this.runLocalHooks("insertColRequire",this.countRenderableColumns());else if(E){if(this.shouldSwitchSelectionLayer()&&r&&h(d,this).size()>1){u(p,this,w).call(this);const e=u(p,this,S).call(this,"forward");null!==e&&a.assign(e)}T.assign(a)}}else if(T.col<0){const o=(0,n.createObjectPropListener)(E),i=T.row-1,s=i<0,r=this.tableApi.createCellCoords(s?t+i:i,e+T.col);if(this.runLocalHooks("beforeRowWrap",o,u(p,this,_).call(this,r),s),E){if(this.shouldSwitchSelectionLayer()&&s&&h(d,this).size()>1){u(p,this,C).call(this);const e=u(p,this,S).call(this,"backward");null!==e&&r.assign(e)}T.assign(r)}}const{rowDir:M,colDir:I}=u(p,this,v).call(this,T);a=M,l=I,s=u(p,this,_).call(this,T)}return this.runLocalHooks("afterTransformStart",s,a,l),{selectionLayer:h(g,this),visualCoords:s}}transformEnd(e,t){c(f,this,this.calculateOffset());const o=this.tableApi.createCellCoords(e,t),i=this.getCurrentSelection(),s=this.tableApi.visualToRenderableCoords(i.highlight),n=u(p,this,E).call(this,i.to.row,i.from.row),r=u(p,this,R).call(this,i.to.col,i.from.col),a=i.to.clone();let l=0,d=0;if(this.runLocalHooks("beforeTransformEnd",o),null!==s.row&&null!==s.col&&null!==n&&null!==r){const{row:e,col:t}=u(p,this,b).call(this,i.highlight),s=this.tableApi.createCellCoords(n+o.row,r+o.col),h=i.getTopStartCorner(),c=i.getTopEndCorner(),g=i.getBottomEndCorner();if(o.col<0&&r>=t&&s.col<t){const e=s.col-t;s.col=u(p,this,R).call(this,h.col,c.col)+e}else if(o.col>0&&r<=t&&s.col>t){const e=u(p,this,R).call(this,c.col,h.col),t=Math.max(s.col-e,1);s.col=e+t}if(o.row<0&&n>=e&&s.row<e){const t=s.row-e;s.row=u(p,this,E).call(this,h.row,g.row)+t}else if(o.row>0&&n<=e&&s.row>e){const e=u(p,this,E).call(this,g.row,h.row),t=Math.max(s.row-e,1);s.row=e+t}const{rowDir:f,colDir:m}=u(p,this,v).call(this,s);l=f,d=m;const w=u(p,this,_).call(this,s);0===o.row&&0!==o.col?a.col=w.col:0!==o.row&&0===o.col?a.row=w.row:(a.row=w.row,a.col=w.col)}return this.runLocalHooks("afterTransformEnd",a,l,d),{selectionLayer:h(g,this),visualCoords:a}}calculateOffset(){throw new Error("`calculateOffset` is not implemented")}countRenderableRows(){throw new Error("`countRenderableRows` is not implemented")}countRenderableColumns(){throw new Error("`countRenderableColumns` is not implemented")}shouldSwitchSelectionLayer(){throw new Error("`shouldSwitchSelectionLayer` is not implemented")}}function w(){const e=h(g,this)+1;this.setActiveLayerIndex(e>=h(d,this).size()?0:e),c(f,this,this.calculateOffset())}function C(){const e=h(g,this)-1;this.setActiveLayerIndex(e<0?h(d,this).size()-1:e),c(f,this,this.calculateOffset())}function v(e){const{width:t,height:o}=u(p,this,y).call(this);let i=0,s=0;return e.row<0?(i=-1,e.row=0):e.row>0&&e.row>=o&&(i=1,e.row=o-1),e.col<0?(s=-1,e.col=0):e.col>0&&e.col>=t&&(s=1,e.col=t-1),{rowDir:i,colDir:s}}function y(){return{width:h(f,this).x+this.countRenderableColumns(),height:h(f,this).y+this.countRenderableRows()}}function S(e){if(!["forward","backward"].includes(e))return null;const t=this.getCurrentSelection().getTopStartCorner(),o=this.getCurrentSelection().getBottomEndCorner(),[i,s,n,r]="forward"===e?[t.row,o.row,t.col,o.col]:[o.row,t.row,o.col,t.col],a=u(p,this,E).call(this,i,s),l=u(p,this,R).call(this,n,r);return null===a||null===l?null:this.tableApi.createCellCoords(a,l)}function E(e,t){const o=this.tableApi.findFirstNonHiddenRenderableRow(e,t);return null===o?null:h(f,this).y+o}function R(e,t){const o=this.tableApi.findFirstNonHiddenRenderableColumn(e,t);return null===o?null:h(f,this).x+o}function b(e){const{row:t,col:o}=this.tableApi.visualToRenderableCoords(e);if(null===t||null===o)throw new Error("Renderable coords are not visible.");return this.tableApi.createCellCoords(h(f,this).y+t,h(f,this).x+o)}function _(e){const t=e.clone();return t.col=e.col-h(f,this).x,t.row=e.row-h(f,this).y,this.tableApi.renderableToVisualCoords(t)}t.BaseTransformation=m,(0,n.mixin)(m,r.default)},23092:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(96938),r=o(54230),a=o(29521),l=o(43209),h=o(82719),c=s.has,u=s.remove;e.exports=function(e){var t=i(this),o=a(e),s=n(t);return r(t)<=o.size?l(t,function(e){o.includes(e)&&u(s,e)}):h(o.getIterator(),function(e){c(s,e)&&u(s,e)}),s}},23154:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=o(94857),a=o(42479),l=o(88014);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 a.BasePlugin{constructor(){super(...arguments),h(this,g),(0,s.default)(this,"scrollbars",[]),(0,s.default)(this,"clones",[]),(0,s.default)(this,"lockedCollection",!1),(0,s.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,l.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:i,bottomInlineStartCornerOverlay:s}=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),i&&this.scrollbars.push(i),s&&s.clone&&this.scrollbars.push(s),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),i&&this.clones.push(i.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,r.arrayEach)(this.clones,e=>{(0,n.addClass)(e,"hide-tween")})}function w(){this.freezeOverlays=!1,(0,r.arrayEach)(this.clones,e=>{(0,n.removeClass)(e,"hide-tween"),(0,n.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,r.arrayEach)(this.clones,e=>{(0,n.removeClass)(e,"show-tween")})},400),(0,r.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=f},23268:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return d.forEach(o=>{let{name:i,callback:s}=o;t[i]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return s(e,...o)}}),t};var i=o(82452),s=o(78124),n=o(26766),r=o(13499),a=o(57065),l=o(56902),h=o(13595),c=o(4436),u=o(32381);const d=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command,u.command]},23667:(e,t,o)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:o},()=>{const t=!!e.getSettings().rowHeaders;(0,i.scrollWindowToCell)(e.getCell(o,t?-1:0,!0))})}};var i=o(57787)},23892:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=o(76651),n=o(78437),r=i(o(86248)),a=o(37309);function l(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 i=this;l(this,d,void 0),l(this,g,void 0),l(this,f,!1),l(this,p,null),l(this,m,void 0),l(this,w,void 0),l(this,C,!0),l(this,v,new a.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 i.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,s.outerWidth)(this.getInputElement()),height:(0,s.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,s.addClass)(h(p,this),y.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(p,this)),(0,s.addClass)(e,y.CLASS_EDITOR),(0,s.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,n.mixin)(y,r.default);t.default=y},24272:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(88633);var i=o(42479),s=o(20168);function n(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 a(e,t,o){return e.set(h(e,t),o),o}function l(e,t){return e.get(h(e,t))}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="stretchColumns",u=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakSet;class m extends i.BasePlugin{constructor(){var e,t;super(...arguments),r(e=this,t=p),t.add(e),n(this,d,new s.StretchCalculator(this.hot)),n(this,g,null),n(this,f,new ResizeObserver(e=>{requestAnimationFrame(()=>{var t;null!==(t=this.hot)&&void 0!==t&&t.view.isHorizontallyScrollableByWindow()&&e.forEach(e=>{let{contentRect:t}=e;null!==l(g,this)&&l(g,this)!==t.width&&(this.hot.view.adjustElementsSize(),this.hot.refreshDimensions()),a(g,this,t.width)})})}))}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get SETTING_KEYS(){return!0}isEnabled(){return["all","last"].includes(this.hot.getSettings().stretchH)}enablePlugin(){var e=this;this.enabled||(l(d,this).useStrategy(this.hot.getSettings().stretchH),l(f,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return h(p,e,C).call(e,...o)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return h(p,e,w).call(e,...o)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(f,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(f,this).disconnect(),a(f,this,null),a(d,this,null),super.destroy()}}function w(e,t,o){if(o===this.pluginName)return;const i=this.getColumnWidth(t);return"number"==typeof i?i:e}function C(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},24293:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(94857),r=o(78437),a=i(o(86248)),l=o(32435);class h{constructor(e,t){let{id:o,stateless:i=!0}=t;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"id",void 0),(0,s.default)(this,"elements",[]),(0,s.default)(this,"hidden",!1),(0,s.default)(this,"stateId",""),(0,s.default)(this,"state",void 0),this.hot=e,this.id=o,this.stateId=`Filters.component.${this.id}`,this.state=i?null:this.hot.columnIndexMapper.registerMap(this.stateId,new l.LinkedPhysicalIndexToValueMap)}getElements(){return this.elements}reset(){(0,n.arrayEach)(this.elements,e=>e.reset())}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return null===this.hot||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,n.arrayEach)(this.elements,e=>e.destroy()),this.state=null,this.elements=null,this.hot=null}}t.BaseComponent=h,(0,r.mixin)(h,a.default)},24302:(e,t,o)=>{"use strict";t.__esModule=!0,t.createCellHeadersRange=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,[s,n]=[o,i];e>t&&([s,n]=[n,s]);return`${s}-${n}`},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(t,o)=>{(0,i.isUndefined)(e[o])&&(e[o]=t)}),e},t.normalizeLanguageCode=function(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return`${t[1].toLowerCase()}-${t[2].toUpperCase()}`;return e},t.warnUserAboutLanguageRegistration=function(e){(0,i.isDefined)(e)&&(0,n.error)(r.toSingleLine`Language with code "${e}" was not found. You should register particular language\x20
|
|
46
|
-
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(26599),s=o(78437),n=o(49581),r=o(34149)},24364:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(64172)),n=i(o(43108)),r=i(o(45515)),a=o(78437),l=o(59719);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_INLINE_START)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},24384:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76651),s=o(70667),n=o(78437),r=o(12108),a=o(52709);const l="ht-border-style-";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,a.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,s.stopImmediatePropagation)(e);const o=this,i=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(i,"mousemove",function e(s){var r;((r=s).clientY<Math.floor(n.top)||r.clientY>Math.ceil(n.top+n.height)||r.clientX<Math.floor(n.left)||r.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(i,"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 i=this.main.style;i.position="absolute",i.top=0,i.left=0;for(let s=0;s<5;s++){const n=o[s],r=t.createElement("div"),a=t=>this.settings[n]&&this.settings[n][t]?this.settings[n][t]:e.border[t];r.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(r.className+=" hidden"),i=r.style;const h=a("style");h?(["start","end"].includes(n)?r.className+=` ${l}${h}-vertical`:r.className+=` ${l}${h}-horizontal`,i.setProperty("--ht-custom-border-size",`${a("width")}px`),i.setProperty("--ht-custom-border-color",a("color"))):i.backgroundColor=a("color"),i.height=`${a("width")}px`,i.width=`${a("width")}px`,this.main.appendChild(r)}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,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let n=s.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",s.bordersHolder=n,s.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),i=o.getCSSVariableValue("cell-mobile-handle-size"),s=o.getCSSVariableValue("cell-mobile-handle-border-radius"),r=o.getCSSVariableValue("cell-mobile-handle-background-color"),a=o.getCSSVariableValue("cell-mobile-handle-border-width"),l=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,n.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:`${i}px`,width:`${i}px`,"border-radius":`${s}px`,background:`${r}`,border:`${a}px solid ${l}`};(0,n.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,i,s,n){const r=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();a.top=`${parseInt(o-d-1,10)}px`,a[r]=`${parseInt(i-d-1,10)}px`,l.top=`${parseInt(o-g/4*3,10)}px`,l[r]=`${parseInt(i-g/4*3,10)}px`;const m=Math.min(parseInt(i+s,10),f-d-2*u),w=Math.min(parseInt(i+s-g/4,10),f-g-2*u);h[r]=`${m}px`,c[r]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,o,s,n]=e;if(t<0&&s<0||o<0&&n<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==s||o!==n,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),f=a.getFirstRenderedColumn(),p=a.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),n=Math.min(n,p),t=Math.max(t,d),s=Math.min(s,g),n<o||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,o))}else if(m=a.getCell(this.wot.createCellCoords(t,o)),!(0,i.isHTMLElement)(m))return void this.disappear();const w=c?a.getCell(this.wot.createCellCoords(s,n)):m,C=(0,i.offset)(m),v=c?(0,i.offset)(w):C,y=(0,i.offset)(a.TABLE),S=C.top,E=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,i.outerWidth)(a.TABLE),t=(0,i.outerWidth)(m),o=h.innerWidth-y.left-e;_=E+t-v.left,b=h.innerWidth-E-t-o-1}else _=v.left+(0,i.outerWidth)(w)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,i=this.getDimensionsFromHeader("columns",o,n,e,y);let s=null;i&&([s,b,_]=i),s&&(m=s)}let T=S-y.top-1,M=v.top+(0,i.outerHeight)(w)-S;if(this.isEntireRowSelected(o,n)){const e=o,i=this.getDimensionsFromHeader("rows",t,s,e,y);let n=null;i&&([n,T,M]=i),n&&(m=n)}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",A=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+A}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+A}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+A}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+A}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+A}px`,this.endStyle.height=`${M+A}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const P=this.wot.getSetting("onModifyGetCellCoords",s,n,!1,"render");let[H,x]=[s,n];if(P&&Array.isArray(P)&&([,,H,x]=P),(0,r.isMobileBrowser)()||!N||this.isPartRange(H,x))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,i.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,r=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let n=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,n=a<0):(a=s+(0,i.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,n=a>=(0,i.innerWidth)(e)),n){const e=Math.floor(b+_+this.cornerCenterPointOffset-r-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,i.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,i.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,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,n,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,s,n){const{wtTable:r}=this.wot,a=r.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":l=function(){return r.getRowHeader(...arguments)},h=function(){return(0,i.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":l=function(){return r.getColumnHeader(...arguments)},h=function(){return(0,i.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=l(t,e-s),p=l(o,e-s),!f||!p)return!1;const r=(0,i.offset)(f),a=(0,i.offset)(p);return f&&p&&(u=r[g]-n[g]-1,d=a[g]+h(p)-r[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,s=t[e];!s||s.hide?(0,i.addClass)(this[e],"hidden"):((0,i.hasClass)(this[e],"hidden")&&(0,i.removeClass)(this[e],"hidden"),o.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(o.height=`${s.width}px`),"start"!==e&&"end"!==e||(o.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",i=this[e].style;i.backgroundColor=o,i.width=`${t}px`,i.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,i.addClass)(this[e],"hidden"):(0,i.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,r.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)}}},24427:(e,t,o)=>{"use strict";var i=o(19596),s=o(771),n=o(36724),r=function(e){return s.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},24496:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(21797);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var n=i(o(37135));t.CellCoords=n.default;var r=i(o(14120));t.CellRange=r.default;var a=i(o(43080));t.default=a.default,t.Core=a.default;var l=o(13533);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(68234));t.Renderer=h;var c=o(43336);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(82649);t.NodesPool=u.NodesPool;var d=o(13683);t.getListenersCounter=d.getListenersCounter},24584:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),i=o?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let n=e.countVisibleRows()+i;n=0===n?1:n,s===e.countRows()-1?n=1:s+n>e.countRows()&&(n=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},24659:(e,t,o)=>{"use strict";var i,s,n=o(19596),r=o(771),a=n.process,l=n.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(s=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(s=+i[1]),e.exports=s},24755:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},25007:(e,t,o)=>{var i=o(5172).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var s=o.call(e,t||"default");if("object"!=i(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},25138:(e,t,o)=>{"use strict";var i=o(31884),s=o(54230),n=o(43209),r=o(29521);e.exports=function(e){var t=i(this),o=r(e);return!(s(t)>o.size)&&!1!==n(t,function(e){if(!o.includes(e))return!1},!0)}},25281:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map;return e=(0,s.isFunction)(e)?e:l,t=(0,s.isFunction)(t)?t:h,{addItem:function(s,n){if(!(0,i.isNumeric)(s))throw new Error(t(s));if(o.has(s))throw new Error(e(s));o.set(s,n)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;const[t,i]=a.get(e)||a.get(n);return[...o].sort((e,o)=>e[0]<o[0]?t:i).map(e=>e[1])}}},o(22588),o(81396),o(14618);var i=o(58639),s=o(99586);const n=t.ASC="asc",r=t.DESC="desc",a=new Map([[n,[-1,1]],[r,[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},25502:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(4114),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(88633),o(14618);var s=i(o(81115)),n=o(42479),r=o(43641),a=o(49581),l=o(58639),h=o(78437),c=o(26599),u=o(30935),d=o(64380),g=o(9479),f=o(91718),p=o(73983),m=o(97819),w=i(o(79098));function C(e,t,o){v(e,t),t.set(e,o)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,o){return e.set(E(e,t),o),o}function S(e,t){return e.get(E(e,t))}function E(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 R=t.PLUGIN_KEY="formulas",b=t.SETTING_KEYS=["maxRows","maxColumns","language"],_=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const T=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakSet;class N extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,v(t=this,o=A),o.add(t),C(this,M,!1),C(this,I,!1),C(this,O,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,Z).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ee).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,te).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,oe).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ie).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,se).call(e,...o)}]]),(0,s.default)(this,"staticRegister",(0,r.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return R}static get PLUGIN_PRIORITY(){return _}static get SETTING_KEYS(){return[R,...b]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,u.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,E(A,this,x).call(this));!1!==e&&E(A,this,P).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,L).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,W).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,L).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,W).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,F).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,B).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,k).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,Y).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,U).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,U).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,j).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,G).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,K).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,X).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,z).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,$).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,q).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,Q).call(t,...o)}),this.indexSyncer=new w.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,o,i)=>{this.rowAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("beforeColumnMove",(e,t,o,i)=>{this.columnAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("afterRowMove",(e,t,o,i,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("afterColumnMove",(e,t,o,i,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,V).call(t,...o)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,J).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,D).call(t,...o)}),S(O,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){S(O,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[R];if((0,c.isDefined)(o)&&(0,c.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,E(A,this,x).call(this));E(A,this,P).call(this,t)}}super.updatePlugin(e)}destroy(){S(O,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),y(O,this,null),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,c.isDefined)(t)&&!(0,f.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const o=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(o),t),o}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);E(A,this,P).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,p.toUpperCaseFirst)(R)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const i=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==i&&null!==s?this.engine.getCellType({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=new Set;e.forEach(e=>{var t;const i=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==i&&(o.has(i)||o.add(i))}),(0,u.getRegisteredHotInstances)(this.engine).forEach((e,i)=>{var s;(t||i!==this.sheetId)&&o.has(i)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:i,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,c.isDefined)(s)?`${s}:${o}x${i}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var i,s;const{row:n,col:r}=null!==(i=e.address)&&void 0!==i?i:{};if(!1===(0,c.isDefined)(n)||!1===(0,c.isDefined)(r)||n>=this.hot.countRows()||r>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!o.has(l)){const e=(0,u.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(n,r),e.getCellMeta(n,r),()=>{})}})}syncChangeWithEngine(e,t,o){const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(i))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(i)}`);const s=this.hot.getCellMeta(e,t);return(0,d.isDate)(o,s.type)&&((0,d.isDateValid)(o,s.dateFormat)?o=(0,d.getDateInHfFormat)(o,s.dateFormat):!1===(0,d.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function P(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function H(e,t,o){if((0,h.isObject)(o)&&null!==o){const i=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),n=this.hot.getCellMeta(i,s).valueGetter;return n?n.call(this.hot,o):o.toString()}return o}function x(e,t,o,i){return this.hot.getSourceDataArray(e,t,o,i).map((e,t)=>e.map((e,o)=>E(A,this,H).call(this,t,o,e)))}function k(e,t,o){const i=this.hot.propToCol(o);if(this.isFormulaCellType(t,i)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},o=this.hot.getCellMeta(t,i);let s=this.engine.getCellValue(e);return"date"===o.type&&(0,l.isNumeric)(s)&&(s=(0,d.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function D(e,t,o){const{row:i,col:s}=t.getTopStartCorner(),{row:n,col:r}=t.getBottomEndCorner(),{row:a,col:l}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),u={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const f=this.engine.getFillRangeData(u,g),{row:p,col:m}=u.start,{row:w,col:C}=u.end,v=w-p+1,y=C-m+1;for(let e=0;e<f.length;e+=1)for(let t=0;t<f[e].length;t+=1){const o=f[e][t],i=p+e%v,s=m+t%y,n=this.hot.getCellMeta(i,s);(0,d.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,d.getDateInHotFormat)(o,n.dateFormat)))}return f}function L(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,p.toUpperCaseFirst)(R))||y(I,this,(0,c.isUndefined)(this.hot.getSettings().data))}function V(){if(S(I,this))return void this.switchSheet(this.sheetName);const e=E(A,this,x).call(this);e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,n)?e[o][i]=(0,d.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}function W(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,p.toUpperCaseFirst)(R)))return;const i=(0,u.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(E(A,this,P).call(this,i),"updateSettings"!==o)if(S(I,this))this.switchSheet(this.sheetName);else{const e=E(A,this,x).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}}}function F(e,t,o,i){if("get"!==i||S(M,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(o.value=(0,d.unescapeFormulaExpression)(o.value));const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let r=this.engine.getCellValue(n);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(r)&&(r=(0,d.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function B(e,t,o,i){if("get"!==i||S(M,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),n=this.hot.propToCol(t);if(null===s||null===n)return;const r=this.getCellType(s,n);if("VALUE"===r||"EMPTY"===r)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};o.value=this.engine.getCellSerialized(l)}function U(e,t){if(T(t))return;const o=[],i=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(r),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};n=E(A,this,H).call(this,a,l,n),null!==a&&null!==l?this.syncChangeWithEngine(t,r,n):o.push([t,r,n]),i.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,i]=e;this.syncChangeWithEngine(t,o,i)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,i)}function Y(e,t){if(T(t))return;const o=[],i=[];e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s);if(!(0,l.isNumeric)(r))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(i.push({address:h}),o.push(...this.engine.setCellContents(h,n))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,i)}function j(e,t){let o=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[o,t]))return!1}function G(e,t){let o=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[o,t]))return!1}function z(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,o){if(T(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function X(e,t,o){if(T(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function q(e,t,o,i){if(T(i))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function Q(e,t,o,i){if(T(i))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function J(e,t,o){var i;y(M,this,!0);const s=E(A,this,x).call(this,o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());y(M,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function Z(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function oe(e){this.hot.runHooks("afterSheetAdded",e)}function ie(e,t){E(A,this,P).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=N},26075:(e,t,o)=>{"use strict";var i=o(36405),s=o(57596),n=i("keys");e.exports=function(e){return n[e]||(n[e]=s(e))}},26089:(e,t,o)=>{"use strict";t.__esModule=!0,t.baseTemplate=function(){let e=null;const t={};return{TEMPLATE_NAME:"base",dialogA11YOptions:()=>({role:"dialog"}),compile:function(){const o=s.html`${`\n <div data-ref="contentElement" class="${i.DIALOG_CLASS_NAME}__content"></div>\n `}`;return Object.assign(t,o.refs),e=o.fragment,o},focusableElements:function(){if(null===e)throw new Error("Compile the template first.");return[]}}},o(22588);var i=o(41323),s=o(34149)},26150:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(47646);class r extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:o,scrollOffset:i,totalRows:n,defaultRowHeight:r,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:h}=e;super(t),(0,s.default)(this,"viewportHeight",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalRows",0),(0,s.default)(this,"rowHeightFn",null),(0,s.default)(this,"rowHeight",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"horizontalScrollbarHeight",0),(0,s.default)(this,"innerViewportHeight",0),(0,s.default)(this,"totalCalculatedHeight",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.defaultHeight=r,this.viewportHeight=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalRows=n,this.rowHeightFn=a,this.overrideFn=l,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=r},26286:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(96938),r=o(29521),a=o(82719),l=s.add,h=s.has,c=s.remove;e.exports=function(e){var t=i(this),o=r(e).getIterator(),s=n(t);return a(o,function(e){h(t,e)?c(s,e):l(s,e)}),s}},26447:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(o)}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},26448:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",(e,o)=>{o||t.done(()=>new r({cellRange:e}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=r},26457:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(92273),s=o(46525),n=o(83597);const r=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:r,editor:i.DateEditor,renderer:s.dateRenderer,validator:n.dateValidator}},26599:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.2.0-next-90d1117-20251117";let r,v="invalid",y="invalid";const S=function(e){let t=[][l],o=t;if(e[l]!==d("Z"))return!1;for(let t="",i="B<H4P+".split(""),s=d(i.shift());s;s=d(i.shift()||"A"))--s<""[l]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,s,s?1===i[l]?9:8:6);return o===t}(e=g(e||""));if(o||i||S)if(S){const t=(0,s.default)("20/11/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),i=f(e);r=(0,s.default)(864e5*(i+1),"x").format("MMMM DD, YYYY"),o>i?(v="expired",y="expired"):(v="valid",y="valid")}else i?(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:r,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:r,hotVersion:n})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:r,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:r,hotVersion:n}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=r,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 s=i(o(86798)),n=o(34149);function r(e){return void 0===e}function a(e){return null===e||""===e||r(e)}const l="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"),~~![][l]))||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:()=>n.toSingleLine`
|
|
46
|
+
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(26599),s=o(78437),n=o(49581),r=o(34149)},24364:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(64172)),n=i(o(43108)),r=i(o(45515)),a=o(78437),l=o(59719);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_INLINE_START)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},24384:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76651),s=o(70667),n=o(78437),r=o(12108),a=o(52709);const l="ht-border-style-";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,a.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,s.stopImmediatePropagation)(e);const o=this,i=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(i,"mousemove",function e(s){var r;((r=s).clientY<Math.floor(n.top)||r.clientY>Math.ceil(n.top+n.height)||r.clientX<Math.floor(n.left)||r.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(i,"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 i=this.main.style;i.position="absolute",i.top=0,i.left=0;for(let s=0;s<5;s++){const n=o[s],r=t.createElement("div"),a=t=>this.settings[n]&&this.settings[n][t]?this.settings[n][t]:e.border[t];r.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(r.className+=" hidden"),i=r.style;const h=a("style");h?(["start","end"].includes(n)?r.className+=` ${l}${h}-vertical`:r.className+=` ${l}${h}-horizontal`,i.setProperty("--ht-custom-border-size",`${a("width")}px`),i.setProperty("--ht-custom-border-color",a("color"))):i.backgroundColor=a("color"),i.height=`${a("width")}px`,i.width=`${a("width")}px`,this.main.appendChild(r)}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,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let n=s.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",s.bordersHolder=n,s.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),i=o.getCSSVariableValue("cell-mobile-handle-size"),s=o.getCSSVariableValue("cell-mobile-handle-border-radius"),r=o.getCSSVariableValue("cell-mobile-handle-background-color"),a=o.getCSSVariableValue("cell-mobile-handle-border-width"),l=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,n.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:`${i}px`,width:`${i}px`,"border-radius":`${s}px`,background:`${r}`,border:`${a}px solid ${l}`};(0,n.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,i,s,n){const r=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();a.top=`${parseInt(o-d-1,10)}px`,a[r]=`${parseInt(i-d-1,10)}px`,l.top=`${parseInt(o-g/4*3,10)}px`,l[r]=`${parseInt(i-g/4*3,10)}px`;const m=Math.min(parseInt(i+s,10),f-d-2*u),w=Math.min(parseInt(i+s-g/4,10),f-g-2*u);h[r]=`${m}px`,c[r]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,o,s,n]=e;if(t<0&&s<0||o<0&&n<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==s||o!==n,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),f=a.getFirstRenderedColumn(),p=a.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),n=Math.min(n,p),t=Math.max(t,d),s=Math.min(s,g),n<o||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,o))}else if(m=a.getCell(this.wot.createCellCoords(t,o)),!(0,i.isHTMLElement)(m))return void this.disappear();const w=c?a.getCell(this.wot.createCellCoords(s,n)):m,C=(0,i.offset)(m),v=c?(0,i.offset)(w):C,y=(0,i.offset)(a.TABLE),S=C.top,E=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,i.outerWidth)(a.TABLE),t=(0,i.outerWidth)(m),o=h.innerWidth-y.left-e;_=E+t-v.left,b=h.innerWidth-E-t-o-1}else _=v.left+(0,i.outerWidth)(w)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,i=this.getDimensionsFromHeader("columns",o,n,e,y);let s=null;i&&([s,b,_]=i),s&&(m=s)}let T=S-y.top-1,M=v.top+(0,i.outerHeight)(w)-S;if(this.isEntireRowSelected(o,n)){const e=o,i=this.getDimensionsFromHeader("rows",t,s,e,y);let n=null;i&&([n,T,M]=i),n&&(m=n)}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",A=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+A}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+A}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+A}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+A}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+A}px`,this.endStyle.height=`${M+A}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const P=this.wot.getSetting("onModifyGetCellCoords",s,n,!1,"render");let[H,x]=[s,n];if(P&&Array.isArray(P)&&([,,H,x]=P),(0,r.isMobileBrowser)()||!N||this.isPartRange(H,x))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,i.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,r=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let n=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,n=a<0):(a=s+(0,i.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,n=a>=(0,i.innerWidth)(e)),n){const e=Math.floor(b+_+this.cornerCenterPointOffset-r-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,i.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,i.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,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,n,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,s,n){const{wtTable:r}=this.wot,a=r.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":l=function(){return r.getRowHeader(...arguments)},h=function(){return(0,i.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":l=function(){return r.getColumnHeader(...arguments)},h=function(){return(0,i.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=l(t,e-s),p=l(o,e-s),!f||!p)return!1;const r=(0,i.offset)(f),a=(0,i.offset)(p);return f&&p&&(u=r[g]-n[g]-1,d=a[g]+h(p)-r[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,s=t[e];!s||s.hide?(0,i.addClass)(this[e],"hidden"):((0,i.hasClass)(this[e],"hidden")&&(0,i.removeClass)(this[e],"hidden"),o.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(o.height=`${s.width}px`),"start"!==e&&"end"!==e||(o.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",i=this[e].style;i.backgroundColor=o,i.width=`${t}px`,i.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,i.addClass)(this[e],"hidden"):(0,i.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,r.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)}}},24427:(e,t,o)=>{"use strict";var i=o(19596),s=o(771),n=o(36724),r=function(e){return s.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},24496:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(21797);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var n=i(o(37135));t.CellCoords=n.default;var r=i(o(14120));t.CellRange=r.default;var a=i(o(43080));t.default=a.default,t.Core=a.default;var l=o(13533);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(68234));t.Renderer=h;var c=o(43336);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(82649);t.NodesPool=u.NodesPool;var d=o(13683);t.getListenersCounter=d.getListenersCounter},24584:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),i=o?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let n=e.countVisibleRows()+i;n=0===n?1:n,s===e.countRows()-1?n=1:s+n>e.countRows()&&(n=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},24659:(e,t,o)=>{"use strict";var i,s,n=o(19596),r=o(771),a=n.process,l=n.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(s=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(s=+i[1]),e.exports=s},24755:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},25007:(e,t,o)=>{var i=o(5172).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var s=o.call(e,t||"default");if("object"!=i(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},25138:(e,t,o)=>{"use strict";var i=o(31884),s=o(54230),n=o(43209),r=o(29521);e.exports=function(e){var t=i(this),o=r(e);return!(s(t)>o.size)&&!1!==n(t,function(e){if(!o.includes(e))return!1},!0)}},25281:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map;return e=(0,s.isFunction)(e)?e:l,t=(0,s.isFunction)(t)?t:h,{addItem:function(s,n){if(!(0,i.isNumeric)(s))throw new Error(t(s));if(o.has(s))throw new Error(e(s));o.set(s,n)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;const[t,i]=a.get(e)||a.get(n);return[...o].sort((e,o)=>e[0]<o[0]?t:i).map(e=>e[1])}}},o(22588),o(81396),o(14618);var i=o(58639),s=o(99586);const n=t.ASC="asc",r=t.DESC="desc",a=new Map([[n,[-1,1]],[r,[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},25502:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(4114),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(88633),o(14618);var s=i(o(81115)),n=o(42479),r=o(43641),a=o(49581),l=o(58639),h=o(78437),c=o(26599),u=o(30935),d=o(64380),g=o(9479),f=o(91718),p=o(73983),m=o(97819),w=i(o(79098));function C(e,t,o){v(e,t),t.set(e,o)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,o){return e.set(E(e,t),o),o}function S(e,t){return e.get(E(e,t))}function E(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 R=t.PLUGIN_KEY="formulas",b=t.SETTING_KEYS=["maxRows","maxColumns","language"],_=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const T=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakSet;class N extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,v(t=this,o=A),o.add(t),C(this,M,!1),C(this,I,!1),C(this,O,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,Z).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ee).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,te).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,oe).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ie).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,se).call(e,...o)}]]),(0,s.default)(this,"staticRegister",(0,r.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return R}static get PLUGIN_PRIORITY(){return _}static get SETTING_KEYS(){return[R,...b]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,u.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,E(A,this,x).call(this));!1!==e&&E(A,this,P).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,L).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,W).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,L).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,W).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,F).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,B).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,k).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,Y).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,U).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,U).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,j).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,G).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,K).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,X).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,z).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,$).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,q).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,Q).call(t,...o)}),this.indexSyncer=new w.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,o,i)=>{this.rowAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("beforeColumnMove",(e,t,o,i)=>{this.columnAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("afterRowMove",(e,t,o,i,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("afterColumnMove",(e,t,o,i,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,V).call(t,...o)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,J).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return E(A,t,D).call(t,...o)}),S(O,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){S(O,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[R];if((0,c.isDefined)(o)&&(0,c.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,E(A,this,x).call(this));E(A,this,P).call(this,t)}}super.updatePlugin(e)}destroy(){S(O,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),y(O,this,null),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,c.isDefined)(t)&&!(0,f.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const o=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(o),t),o}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);E(A,this,P).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,p.toUpperCaseFirst)(R)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const i=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==i&&null!==s?this.engine.getCellType({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=new Set;e.forEach(e=>{var t;const i=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==i&&(o.has(i)||o.add(i))}),(0,u.getRegisteredHotInstances)(this.engine).forEach((e,i)=>{var s;(t||i!==this.sheetId)&&o.has(i)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:i,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,c.isDefined)(s)?`${s}:${o}x${i}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var i,s;const{row:n,col:r}=null!==(i=e.address)&&void 0!==i?i:{};if(!1===(0,c.isDefined)(n)||!1===(0,c.isDefined)(r)||n>=this.hot.countRows()||r>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!o.has(l)){const e=(0,u.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(n,r),e.getCellMeta(n,r),()=>{})}})}syncChangeWithEngine(e,t,o){const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(i))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(i)}`);const s=this.hot.getCellMeta(e,t);return(0,d.isDate)(o,s.type)&&((0,d.isDateValid)(o,s.dateFormat)?o=(0,d.getDateInHfFormat)(o,s.dateFormat):!1===(0,d.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function P(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function H(e,t,o){if((0,h.isObject)(o)&&null!==o){const i=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),n=this.hot.getCellMeta(i,s).valueGetter;return n?n.call(this.hot,o):o.toString()}return o}function x(e,t,o,i){return this.hot.getSourceDataArray(e,t,o,i).map((e,t)=>e.map((e,o)=>E(A,this,H).call(this,t,o,e)))}function k(e,t,o){const i=this.hot.propToCol(o);if(this.isFormulaCellType(t,i)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},o=this.hot.getCellMeta(t,i);let s=this.engine.getCellValue(e);return"date"===o.type&&(0,l.isNumeric)(s)&&(s=(0,d.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function D(e,t,o){const{row:i,col:s}=t.getTopStartCorner(),{row:n,col:r}=t.getBottomEndCorner(),{row:a,col:l}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),u={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const f=this.engine.getFillRangeData(u,g),{row:p,col:m}=u.start,{row:w,col:C}=u.end,v=w-p+1,y=C-m+1;for(let e=0;e<f.length;e+=1)for(let t=0;t<f[e].length;t+=1){const o=f[e][t],i=p+e%v,s=m+t%y,n=this.hot.getCellMeta(i,s);(0,d.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,d.getDateInHotFormat)(o,n.dateFormat)))}return f}function L(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,p.toUpperCaseFirst)(R))||y(I,this,(0,c.isUndefined)(this.hot.getSettings().data))}function V(){if(S(I,this))return void this.switchSheet(this.sheetName);const e=E(A,this,x).call(this);e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,n)?e[o][i]=(0,d.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}function W(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,p.toUpperCaseFirst)(R)))return;const i=(0,u.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(E(A,this,P).call(this,i),"updateSettings"!==o)if(S(I,this))this.switchSheet(this.sheetName);else{const e=E(A,this,x).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}}}function F(e,t,o,i){if("get"!==i||S(M,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(o.value=(0,d.unescapeFormulaExpression)(o.value));const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let r=this.engine.getCellValue(n);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(r)&&(r=(0,d.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function B(e,t,o,i){if("get"!==i||S(M,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),n=this.hot.propToCol(t);if(null===s||null===n)return;const r=this.getCellType(s,n);if("VALUE"===r||"EMPTY"===r)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};o.value=this.engine.getCellSerialized(l)}function U(e,t){if(T(t))return;const o=[],i=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(r),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};n=E(A,this,H).call(this,a,l,n),null!==a&&null!==l?this.syncChangeWithEngine(t,r,n):o.push([t,r,n]),i.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,i]=e;this.syncChangeWithEngine(t,o,i)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,i)}function Y(e,t){if(T(t))return;const o=[],i=[];e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s);if(!(0,l.isNumeric)(r))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(i.push({address:h}),o.push(...this.engine.setCellContents(h,n))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,i)}function j(e,t){let o=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[o,t]))return!1}function G(e,t){let o=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[o,t]))return!1}function z(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,o){if(T(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function X(e,t,o){if(T(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function q(e,t,o,i){if(T(i))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function Q(e,t,o,i){if(T(i))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function J(e,t,o){var i;y(M,this,!0);const s=E(A,this,x).call(this,o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());y(M,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function Z(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function oe(e){this.hot.runHooks("afterSheetAdded",e)}function ie(e,t){E(A,this,P).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=N},26075:(e,t,o)=>{"use strict";var i=o(36405),s=o(57596),n=i("keys");e.exports=function(e){return n[e]||(n[e]=s(e))}},26089:(e,t,o)=>{"use strict";t.__esModule=!0,t.baseTemplate=function(){let e=null;const t={};return{TEMPLATE_NAME:"base",dialogA11YOptions:()=>({role:"dialog"}),compile:function(){const o=s.html`${`\n <div data-ref="contentElement" class="${i.DIALOG_CLASS_NAME}__content"></div>\n `}`;return Object.assign(t,o.refs),e=o.fragment,o},focusableElements:function(){if(null===e)throw new Error("Compile the template first.");return[]}}},o(22588);var i=o(41323),s=o(34149)},26150:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(47646);class r extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:o,scrollOffset:i,totalRows:n,defaultRowHeight:r,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:h}=e;super(t),(0,s.default)(this,"viewportHeight",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalRows",0),(0,s.default)(this,"rowHeightFn",null),(0,s.default)(this,"rowHeight",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"horizontalScrollbarHeight",0),(0,s.default)(this,"innerViewportHeight",0),(0,s.default)(this,"totalCalculatedHeight",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.defaultHeight=r,this.viewportHeight=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalRows=n,this.rowHeightFn=a,this.overrideFn=l,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=r},26286:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(96938),r=o(29521),a=o(82719),l=s.add,h=s.has,c=s.remove;e.exports=function(e){var t=i(this),o=r(e).getIterator(),s=n(t);return a(o,function(e){h(t,e)?c(s,e):l(s,e)}),s}},26447:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(o)}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},26448:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",(e,o)=>{o||t.done(()=>new r({cellRange:e}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=r},26457:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(92273),s=o(46525),n=o(83597);const r=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:r,editor:i.DateEditor,renderer:s.dateRenderer,validator:n.dateValidator}},26599:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.2.0-next-7d068f5-20251117";let r,v="invalid",y="invalid";const S=function(e){let t=[][l],o=t;if(e[l]!==d("Z"))return!1;for(let t="",i="B<H4P+".split(""),s=d(i.shift());s;s=d(i.shift()||"A"))--s<""[l]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,s,s?1===i[l]?9:8:6);return o===t}(e=g(e||""));if(o||i||S)if(S){const t=(0,s.default)("20/11/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),i=f(e);r=(0,s.default)(864e5*(i+1),"x").format("MMMM DD, YYYY"),o>i?(v="expired",y="expired"):(v="valid",y="valid")}else i?(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:r,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:r,hotVersion:n})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:r,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:r,hotVersion:n}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=r,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 s=i(o(86798)),n=o(34149);function r(e){return void 0===e}function a(e){return null===e||""===e||r(e)}const l="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"),~~![][l]))||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:()=>n.toSingleLine`
|
|
47
47
|
The license key for Handsontable is invalid.\x20
|
|
48
48
|
If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return n.toSingleLine`
|
|
49
49
|
The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
|
|
@@ -77,12 +77,12 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
|
|
|
77
77
|
For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(i);this.components.get("filter_by_condition").updateState(r[0],i),this.components.get("filter_by_condition2").updateState(r[1],i),this.components.get("filter_operators").updateState(t,i),this.components.get("filter_by_value").updateState(e)}}t.Filters=L},42257:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26457);t.CELL_TYPE=i.CELL_TYPE,t.DateCellType=i.DateCellType},42388:(e,t,o)=>{"use strict";var i=o(36724);e.exports=Array.isArray||function(e){return"Array"===i(e)}},42479:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42610);t.PLUGIN_KEY=i.PLUGIN_KEY,t.BasePlugin=i.BasePlugin,t.defaultMainSettingSymbol=i.defaultMainSettingSymbol},42489:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const{checkedTemplate:s,uncheckedTemplate:n}=this.getCellMeta(t,o),r=(0,i.stringify)(e),a=r===(0,i.stringify)(s),l=r===(0,i.stringify)(n);if(a||l)return a?s:n;return e};var i=o(26599)},42610:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(14618);var s=i(o(81115)),n=o(78437),r=o(94857),a=o(3182),l=o(9041),h=o(89640),c=o(83658),u=o(72657),d=i(o(13683)),g=o(49581);function f(e,t,o){p(e,t),t.set(e,o)}function p(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(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}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 v=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",c.hasRenderer],["validator",u.hasValidator]]),y=t.defaultMainSettingSymbol=Symbol("mainSetting"),S=t.PLUGIN_KEY="base",E=[];let R=null;var b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(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 S}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}static get SETTINGS_VALIDATORS(){return null}constructor(e){var t,o;p(t=this,o=T),o.add(t),f(this,b,null),(0,s.default)(this,"eventManager",new d.default(this)),(0,s.default)(this,"pluginName",null),(0,s.default)(this,"pluginsInitializedCallbacks",[]),(0,s.default)(this,"isPluginsReady",!1),(0,s.default)(this,"enabled",!1),(0,s.default)(this,"initialized",!1),f(this,_,{}),(0,n.defineGetter)(this,"hot",e,{writable:!1}),R=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),this.updatePluginSettings(this.hot.getSettings()[this.constructor.PLUGIN_KEY]);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[o,i]=t.split(":");if(!v.has(o))throw new Error(`Unknown plugin dependency type "${o}" was found.`);v.get(o)(i)||e.push(` - ${i} (${o})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");E.push(t)}}R||(R=(0,a.getPluginsNames)()),R.indexOf(this.pluginName)>=0&&R.splice(R.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===R.length){if(E.length>0){const e=[`${E.join("\n")}\n`,"You have to import and register them manually."].join("");throw E.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){var t=this;const o=this.constructor.DEFAULT_SETTINGS,i=this.constructor.SETTINGS_VALIDATORS;if(void 0===e)return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),o):w(b,this);let s;var r;if((Array.isArray(w(b,this))||(0,n.isObject)(w(b,this)))&&o[y]===e)s=Array.isArray(w(b,this))?w(b,this):null!==(r=w(b,this)[e])&&void 0!==r?r:o[e];else if(e.includes(".")){const t=(0,n.getProperty)(w(b,this),e),i=(0,n.getProperty)(o,e);s=(0,n.isObject)(t)?(0,n.assignObjectDefaults)(t,i):void 0!==t?t:i}else s=(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),o)[e]:o[e];if("function"==typeof s&&i&&"object"==typeof i){const o=i[e];if(o&&"function"==typeof o)return function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];const a=s(...n);if(!1===o(a)){const o=n.map(e=>"string"==typeof e?`"${e}"`:"").join(", "),i=n.length>0?o:"";return void(0,g.warn)(`${t.pluginName} Plugin: "${e}" function (${i}) result is not valid and will be ignored.`)}return a}}return s}updatePluginSettings(e){const t=this.constructor.SETTINGS_VALIDATORS;if(t&&"function"==typeof t&&"object"!=typeof e){return!1===t(e)?void(0,g.warn)(`${this.pluginName} Plugin: option is not valid and it will be ignored.`):(m(b,this,e),w(b,this))}return t&&"object"==typeof t&&"object"==typeof e?(null!==w(b,this)&&"object"==typeof w(b,this)||m(b,this,{...this.constructor.DEFAULT_SETTINGS}),Object.keys(t).forEach(o=>{if(!(o in e))return;const i=t[o];!1!==(!i||i(e[o]))?w(b,this)[o]=e[o]:(0,g.warn)(`${this.pluginName} Plugin: "${o}" option is not valid and it will be ignored.`)}),w(b,this)):(m(b,this,e),e)}addHook(e,t,o){w(_,this)[e]=w(_,this)[e]||[];const i=w(_,this)[e];this.hot.addHook(e,t,o),i.push(t),w(_,this)[e]=i}removeHooks(e){(0,r.arrayEach)(w(_,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=w(_,this);(0,n.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,r.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=C(T,this,M).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&(this.updatePluginSettings(e[this.constructor.PLUGIN_KEY]),this.updatePlugin(e)))}updatePlugin(){}destroy(){var e;m(b,this,null),null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,n.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},42652:(e,t,o)=>{"use strict";t.__esModule=!0,t.textRenderer=a;var i=o(36814),s=o(76651),n=o(26599);const r=t.RENDERER_TYPE="text";function a(e,t,o,r,a,l,h){i.baseRenderer.apply(this,[e,t,o,r,a,l,h]);let c=l;!c&&h.placeholder&&(c=h.placeholder),c=(0,n.stringify)(c),h.trimWhitespace&&(c=c.trim()),(0,s.fastInnerText)(t,c)}a.RENDERER_TYPE=r},42732:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=i(o(86248)),a=i(o(13683)),l=o(76651),h=o(94857),c=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const u="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class f{static get DEFAULTS(){return(0,n.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",new a.default(this)),(0,s.default)(this,"options",void 0),(0,s.default)(this,"_element",void 0),(0,s.default)(this,"buildState",void 0),this.hot=e,this.options=(0,n.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,l.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,n.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,n.mixin)(f,r.default)},42765:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(96488);function s(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 r(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 l=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;t.Positioner=class{constructor(e){s(this,l,void 0),s(this,h,void 0),s(this,c,void 0),s(this,u,!1),s(this,d,{above:0,below:0,left:0,right:0}),r(u,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n(d,this)[e]=t,this}setElement(e){return r(l,this,e),this}setParentElement(e){return r(h,this,e),this}updatePosition(e){r(c,this,new i.Cursor(e,n(l,this).ownerDocument.defaultView)),n(u,this)?(n(c,this).fitsBelow(n(l,this))?this.setPositionBelowCursor():n(c,this).fitsAbove(n(l,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===n(l,this).dir?n(c,this).fitsOnLeft(n(l,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():n(c,this).fitsOnRight(n(l,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=n(d,this).above+n(c,this).top-n(l,this).offsetHeight;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView.getComputedStyle(n(h,this).querySelector(".ht_master")),o=Number.parseInt(t.paddingTop,10),i=Number.parseInt(t.borderTop,10);e=n(c,this).top+n(c,this).cellHeight-n(l,this).scrollHeight+o+i}n(l,this).style.top=`${e}px`}setPositionBelowCursor(){let e=n(d,this).below+n(c,this).top+1;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView.getComputedStyle(n(h,this).querySelector(".ht_master")),o=Number.parseInt(t.paddingTop,10),i=Number.parseInt(t.borderTop,10);e=n(c,this).top-o-i}n(l,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=n(c,this).left;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView,o=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderRightWidth,10);e+=n(c,this).cellWidth+o}else e+=n(d,this).right;n(l,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=n(d,this).left+n(c,this).left-n(l,this).offsetWidth;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderLeftWidth,10)}n(l,this).style.left=`${e}px`}}},42784:(e,t)=>{"use strict";t.__esModule=!0;t.default=class{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}},42890:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(76651),r=o(12108),a=o(42479);const l=t.PLUGIN_KEY="multipleSelectionHandles",h=t.PLUGIN_PRIORITY=160;class c extends a.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"dragged",[]),(0,s.default)(this,"lastSetCell",null)}static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return h}isEnabled(){return(0,r.isMobileBrowser)()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:t}=this.hot;function o(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;const o=e.dragged.indexOf(t);if(-1===o)return!1;0===o?e.dragged=e.dragged.slice(0,1):1===o&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(t,"touchstart",t=>{let o;return(0,n.hasClass)(t.target,"topSelectionHandle-HitArea")?(o=e.hot.getSelectedRangeActive(),e.dragged.push("top"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},t.preventDefault(),!1):(0,n.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(o=e.hot.getSelectedRangeActive(),e.dragged.push("bottom"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},t.preventDefault(),!1):void 0}),this.eventManager.addEventListener(t,"touchend",t=>(0,n.hasClass)(t.target,"topSelectionHandle-HitArea")?(o.call(e,"top"),e.touchStartRange=void 0,t.preventDefault(),!1):(0,n.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(o.call(e,"bottom"),e.touchStartRange=void 0,t.preventDefault(),!1):void 0),this.eventManager.addEventListener(t,"touchmove",t=>{const{rootDocument:o}=this.hot;let i,s,n,r,a,l;if(0===e.dragged.length)return;const h=o.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY);h&&h!==e.lastSetCell&&("TD"!==h.nodeName&&"TH"!==h.nodeName||(i=e.hot.getCoords(h),-1===i.col&&(i.col=0),s=e.hot.getSelectedRangeActive(),n=s.getWidth(),r=s.getHeight(),a=s.getDirection(),1===n&&1===r&&e.hot.selection.setRangeEnd(i),l=e.getCurrentRangeCoords(s,i,e.touchStartRange.direction,a,e.dragged[0]),null!==l.start&&e.hot.selection.setRangeStart(l.start),e.hot.selection.setRangeEnd(l.end),e.lastSetCell=h),t.preventDefault())})}getCurrentRangeCoords(e,t,o,i,s){const n=e.getTopStartCorner(),r=e.getBottomEndCorner(),a=e.getBottomStartCorner(),l=e.getTopEndCorner();let h={start:null,end:null};switch(o){case"NE-SW":switch(i){case"NE-SW":case"NW-SE":h="top"===s?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,n.col)};break;case"SE-NW":"bottom"===s&&(h={start:this.hot._createCellCoords(r.row,t.col),end:this.hot._createCellCoords(t.row,n.col)})}break;case"NW-SE":switch(i){case"NE-SW":"top"===s?h={start:t,end:a}:h.end=t;break;case"NW-SE":"top"===s?h={start:t,end:r}:h.end=t;break;case"SE-NW":"top"===s?h={start:t,end:n}:h.end=t;break;case"SW-NE":"top"===s?h={start:t,end:l}:h.end=t}break;case"SW-NE":switch(i){case"NW-SE":h="bottom"===s?{start:this.hot._createCellCoords(t.row,n.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(n.row,t.col),end:this.hot._createCellCoords(t.row,r.col)};break;case"SW-NE":h="top"===s?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,r.col)}:{start:this.hot._createCellCoords(t.row,n.col),end:this.hot._createCellCoords(n.row,t.col)};break;case"SE-NW":"bottom"===s?h={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(n.row,t.col)}:"top"===s&&(h={start:a,end:t})}break;case"SE-NW":switch(i){case"NW-SE":case"NE-SW":case"SW-NE":"top"===s&&(h.end=t);break;case"SE-NW":"top"===s?h.end=t:h={start:t,end:n}}}return h}isDragged(){return this.dragged.length>0}}t.MultipleSelectionHandles=c},43080:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(36503)),n=i(o(10226));class r{constructor(e){e instanceof n.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new r(e);return()=>t},this._wot=new s.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,i,s){return this._wot.wtSettings.getSetting(e,t,o,i,s)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=r},43108:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78437);const s={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,i.defineGetter)(s,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=s},43209:(e,t,o)=>{"use strict";var i=o(94988),s=o(82719),n=o(84990),r=n.Set,a=n.proto,l=i(a.forEach),h=i(a.keys),c=h(new r).next;e.exports=function(e,t,o){return o?s({iterator:h(e),next:c},t):l(e,t)}},43235:(e,t,o)=>{"use strict";t.__esModule=!0,t.getMostBottomEndPosition=n,t.getMostTopStartPosition=s,t.normalizeCoordsIfNeeded=function(e){return t=>{if(!t)return null;const{rowIndexMapper:o,columnIndexMapper:r}=e;if(o.isHidden(t.row)||r.isHidden(t.col))return null;const a=s(e),l=n(e);return null===a||null===l?null:(t.row=(0,i.clamp)(t.row,a.row,l.row),t.col=(0,i.clamp)(t.col,a.col,l.col),t)}};var i=o(58639);function s(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=i&&e.countColHeaders()>0?-e.countColHeaders():0,n=i&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===s&&(s=t.getVisualFromRenderableIndex(s)),0===n&&(n=o.getVisualFromRenderableIndex(n)),null===s||null===n?null:e._createCellCoords(s,n)}function n(e){var t,o;const{rowIndexMapper:i,columnIndexMapper:s}=e,{navigableHeaders:n}=e.getSettings();let r=i.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(r<0){if(!n||0===e.countColHeaders())return null;r=-1}if(a<0){if(!n||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=i.getVisualFromRenderableIndex(r))&&void 0!==t?t:r,null!==(o=s.getVisualFromRenderableIndex(a))&&void 0!==o?o:a)}},43237:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,i.createPaginator)({size:()=>e.countRows(),onItemSelect(t,o){const i=e.getCell(t,0);if(!i||(0,s.isSeparator)(i)||(0,s.isDisabled)(i)||(0,s.isSelectionDisabled)(i))return!1;e.selectCell(t,0,...o?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var i=o(67703),s=o(46261)},43336:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(93319);t.OrderView=i.OrderView;var s=o(95870);t.SharedOrderView=s.SharedOrderView},43382:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),r=o(76742);const a=t.CONDITION_NAME="date_after";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)>=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},43458:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77284);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnResize=i.ManualColumnResize},43641:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var i;return null==o||null===(i=o.get(e.guid))||void 0===i?void 0:i.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},43662:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691);var s=i(o(81115)),n=o(42479),r=o(32435),a=o(94857);function l(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="trimRows",c=t.PLUGIN_PRIORITY=330;var u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),l(this,u),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new r.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>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")}(u,this,g).call(this)),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{this.trimmedRowsMap.clear(),(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,i,o,o&&i.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;const s=this.trimmedRowsMap.getValues().slice(),n=e.length>0;o&&n&&((0,a.arrayEach)(e,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(o),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,i,o&&n)&&(o&&n&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,i,o&&n,o&&i.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}destroy(){super.destroy()}}function g(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0)}t.TrimRows=d},43778:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=n;var i=o(28454);const s=t.RENDERER_TYPE="select";function n(e,t,o,s,n,r,a){i.textRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},43832:e=>{"use strict";e.exports=function(e,t){var o="function"==typeof Iterator&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch(e){return!0}}},44402:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(95220),s=o(76651);const n=t.EDITOR_TYPE="checkbox";class r extends i.BaseEditor{static get EDITOR_TYPE(){return n}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,s.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=r},44803:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(73050),s=o(28454);const n=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:n,editor:i.TextEditor,renderer:s.textRenderer}},45024:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(63556);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Comments=i.Comments},45052:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(70610);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.PersistentState=i.PersistentState},45074:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginatorStrategy=function(e){if(!n.has(e))throw new Error(`Unknown pagination strategy type: ${e}`);return new(n.get(e))},o(22588);var i=o(59494),s=o(62517);const n=new Map([["fixed",i.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},45127:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42489);t.valueSetter=i.valueSetter},45272:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="col_left"},45515:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78437);const s={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,i.defineGetter)(s,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=s},45527:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){const o=this.first();let i,s=o.data("handsontable");if("string"!=typeof t){const i=t||{};return s?s.updateSettings(i):(s=new e.Core(o[0],i),o.data("handsontable",s),s.init()),o}if(s){if(void 0===s[t])throw new Error(`Handsontable do not provide action: ${t}`);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];i=s[t].call(s,...r),"destroy"===t&&o.removeData()}return i}},o(22588)},45571:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(88633),o(14618),o(19874);var s=i(o(81115)),n=o(26599),r=o(49581),a=o(34149);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"dataManager",void 0),(0,s.default)(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,o,i){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:o,movePossible:i}))return!1;this.movedToCollapsed=!1;const s=o===this.hot.countRows(),n=s?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(o);let r=!0;const a=e.map(e=>{if(!r)return!1;const t=this.dataManager.translateTrimmedRow(e);return r=this.shouldAllowMoving(t,n),t}),l=-1===a.indexOf(n);if(!r||!l)return!1;const h=this.getBaseParent(a),c=this.getTargetParent(s,n),u=h===c;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(a,n,u),this.moveRows(a,n,c),this.dataManager.rewriteCache(),this.moveCellsMeta(a,n),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,o,i,i&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,o),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:o,dropIndex:i,movePossible:s}=e;let l=!1;return(0,n.isUndefined)(i)&&((0,r.warn)(a.toSingleLine`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
|
|
78
78
|
when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,o,i,s,!1),l=!0),l}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 i=t===this.dataManager.getRowIndex(o)+this.dataManager.countChildren(o)+1;this.hot.batchRender(()=>{e.forEach(e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,i)})})}moveCellsMeta(e,t){const o=[],i=Math.max(...e)<t;e.forEach(e=>{o.push(this.hot.getCellMetaAtRow(e))}),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(i?o.length:0),0,...o)}selectCells(e,t){const o=e.length;let i=0,s=0;if(this.movedToCollapsed){let n=null;n=e[o-1]<t?this.dataManager.translateTrimmedRow(t-o):this.dataManager.translateTrimmedRow(t);const r=this.dataManager.getRowParent(null===n?this.hot.countSourceRows()-1:n-1),a=this.dataManager.getRowIndex(r);i=this.dataManager.untranslateTrimmedRow(a),s=i}else e[o-1]<t?(s=t-1,i=s-o+1):(i=t,s=i+o-1);this.hot.selectCells([[i,0,s,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}}},45882:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(19874);var s=i(o(81115)),n=o(94857),r=o(49581),a=o(13653);t.default=class{constructor(e,t){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"endpoints",[]),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"settingsType","array"),(0,s.default)(this,"currentEndpoint",null),(0,s.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,n.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,i){if("ranges"!==o||void 0!==e[o]){if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(i instanceof Error)throw i;t[o]=i}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]}else t[o]=i}resetSetupBeforeStructureAlteration(e,t,o){if("function"!==this.settingsType)return;const i=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();(0,n.arrayEach)(s,s=>{"row"===i&&s.destinationRow>=t&&("insert_row"===e?s.alterRowOffset=o:"remove_row"===e&&(s.alterRowOffset=-1*o)),"col"===i&&s.destinationColumn>=t&&("insert_col"===e?s.alterColumnOffset=o:"remove_col"===e&&(s.alterColumnOffset=-1*o))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,t,o,i,s){let r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("auto"===s)return;if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,n.arrayEach)(h,e=>{"row"===a&&e.destinationRow>=u&&(e.alterRowOffset=l*o),"col"===a&&e.destinationColumn>=u&&(e.alterColumnOffset=l*o)}),this.resetAllEndpoints(h,!c),c?(0,n.arrayEach)(h,e=>{this.extendEndpointRanges(e,u,i[0],i.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,n.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,u)}),r&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,o,i){(0,n.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?o>e[1]?e[1]+=i:o<e[0]&&(e[0]-=i):o>=e[0]&&o<=e[1]&&(e[1]-=i,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,o=[],i=[];(0,n.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]));i.push(t)}),(0,n.arrayEach)(i,e=>{let t=[];(0,n.arrayEach)(e,(i,s)=>{0===s?t.push(i):e[s]!==e[s-1]+1&&(t.push(e[s-1]),o.push(t),t=[],t.push(i)),s===e.length-1&&(t.push(i),o.push(t))})}),e.ranges=o}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,n.arrayEach)(e.ranges,o=>{(0,n.arrayEach)(o,(i,s)=>{i>=t&&(o[s]+=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,n.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,n.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,n.arrayEach)(e,(e,o,i)=>{`${e[2]||""}`!=`${e[3]}`&&(0,n.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(i[o][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,n.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.cellsToSetCache.length&&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,i=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?o:0)),this.hot.toVisualColumn(e.destinationColumn+(t?i:0)),""])}setEndpointValue(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const s=this.hot.toVisualRow(e.destinationRow);if(null!==s){const o=this.hot.getCellMeta(s,e.destinationColumn);"init"!==t&&o.readOnly===e.readOnly||(o.readOnly=e.readOnly,o.className="columnSummaryResult")}e.result=(0,a.roundFloat)(e.result,e.roundFloat),o?this.hot.setDataAtCell(i,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([i,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,r.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},45945:(e,t,o)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e),s={row:o.getComputedRowTarget(t),col:o.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:o}=s;(0,i.scrollWindowToCell)(e.getCell(t,o,!0))})}};var i=o(57787)},45986:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{rowClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ROW_TYPE})};var s=o(24496),n=i(o(73358))},46003:(e,t,o)=>{"use strict";var i=o(17621),s=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new s("Incorrect invocation")}},46016:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(47646);const r=t.DEFAULT_WIDTH=50;class a extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:o,scrollOffset:i,totalColumns:n,columnWidthFn:r,overrideFn:a,inlineStartOffset:l}=e;super(t),(0,s.default)(this,"viewportWidth",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalColumns",0),(0,s.default)(this,"columnWidthFn",null),(0,s.default)(this,"columnWidth",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"inlineStartOffset",0),(0,s.default)(this,"totalCalculatedWidth",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.viewportWidth=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalColumns=n,this.columnWidthFn=r,this.overrideFn=a,this.inlineStartOffset=l,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)?r:t}}t.ViewportColumnsCalculator=a},46049:e=>{"use strict";e.exports={}},46198:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(78437),a=i(o(45882)),l=o(34149),h=o(13653);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 n.BasePlugin{constructor(){super(...arguments),c(this,f),(0,s.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 a.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,m).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,C).call(e,...o)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,w).call(e,...o)}),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,v).call(e,...o)}),this.addHook("afterUpdateData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,y).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),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...o)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...o)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,S).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,r.objectEach)(e.ranges,o=>{t+=this.getPartialSum(o,e.sourceColumn)}),t}getPartialSum(e,t){let o=0,i=e[1]||e[0],s=null,n=0;do{if(s=this.getCellValue(i,t),s=(0,h.isNullishOrNaN)(s)?null:s,null!==s){const e=(`${s}`.split(".")[1]||[]).length||1;e>n&&(n=e)}o+=s||0,i-=1}while(i>=e[0]);return Math.round(o*10**n)/10**n}calculateMinMax(e,t){let o=null;return(0,r.objectEach)(e.ranges,i=>{const s=this.getPartialMinMax(i,e.sourceColumn,t);if(null===o&&null!==s&&(o=s),null!==s)switch(t){case"min":o=Math.min(o,s);break;case"max":o=Math.max(o,s)}}),null===o?"Not enough data":o}getPartialMinMax(e,t,o){let i,s=null,n=e[1]||e[0];do{if(i=this.getCellValue(n,t),i=(0,h.isNullishOrNaN)(i)?null:i,null===s)s=i;else if(null!==i)switch(o){case"min":s=Math.min(s,i);break;case"max":s=Math.max(s,i)}n-=1}while(n>=e[0]);return s}countEmpty(e,t){let o,i=0,s=e[1]||e[0];do{o=this.getCellValue(s,t),o=(0,h.isNullishOrNaN)(o)?null:o,null===o&&(i+=1),s-=1}while(s>=e[0]);return i}countEntries(e){let t=0;const o=e.ranges;return(0,r.objectEach)(o,o=>{const i=void 0===o[1]?1:o[1]-o[0]+1,s=this.countEmpty(o,e.sourceColumn);t+=i,t-=s}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const o=this.hot.toVisualRow(e),i=this.hot.toVisualColumn(t);let s=this.hot.getSourceDataAtCell(e,t),n="";if(null!==o&&null!==i&&(n=this.hot.getCellMeta(o,i).className||""),n.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof s&&(s=s.replace(/,/,".")),s=parseFloat(s)),isNaN(s)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(l.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
|
|
79
79
|
numeric format. Cannot do the calculation.`);return s}}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){t||this.endpoints.refreshAllEndpoints()}function y(e,t){t||this.endpoints.refreshAllEndpoints()}function S(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},46261:(e,t,o)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.SEPARATOR,o=e.slice(0);return o=a(o,t),o=function(e,t){let o=e.slice(0);return o.reverse(),o=a(o,t),o.reverse(),o}(o,t),o=function(e){const t=[];return(0,i.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,n.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,n.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,s.hasOwnProperty)(e,"disableSelection")},t.isItemSeparator=function(e){return new RegExp(r.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,s.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,n.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,n.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,i.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},o(66182);var i=o(94857),s=o(78437),n=o(76651),r=o(50151);function a(e,t){const o=e.slice(0);for(let e=0;e<o.length&&o[e].name===t;)o.shift();return o}},46301:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),r=o(76742);const a=t.CONDITION_NAME="date_today";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_TODAY,inputsCount:0})},46485:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=o(76742),s=o(35764);const n=t.CONDITION_NAME="by_value";function r(e,t){let[o]=t;return o(e.value)}(0,i.registerCondition)(n,r,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,s.createArrayAssertion)(t)]},showOperators:!1})},46525:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77690);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dateRenderer=i.dateRenderer},46539:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkPluginSettingsConflict=function(e){return n.some(t=>{const o=!!e[t];return o&&(0,s.warn)(i.toSingleLine`The \`pagination\` plugin cannot be used with the \`${t}\` option.\x20
|
|
80
|
-
This combination is not supported. The plugin will remain disabled.`),o})};var i=o(34149),s=o(49581);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},46808:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.checkedTemplate,a=t.uncheckedTemplate,{sortEmptyCells:l}=o;return function(h,c){const u=(0,n.isEmpty)(h),d=(0,n.isEmpty)(c),g=u?a:h,f=d?a:c,p=g===a||g===r,m=f===a||f===r;if(!1===l){if(u&&!1===d)return i.FIRST_AFTER_SECOND;if(!1===u&&d)return i.FIRST_BEFORE_SECOND}return!1===p&&m?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:p&&!1===m?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!1===p&&!1===m?(0,s.compareFunctionFactory)(e,t,o)(h,c):g===a&&f===r?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:g===r&&f===a?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP}};var i=o(688),s=o(6888),n=o(26599);t.COLUMN_DATA_TYPE="checkbox"},46842:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(79060);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Pagination=i.Pagination},46924:(e,t,o)=>{"use strict";var i=o(771);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},47138:(e,t,o)=>{"use strict";var i=o(24755),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},47145:(e,t,o)=>{"use strict";var i=o(21912),s=o(89035),n=o(59899);e.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},47151:(e,t,o)=>{"use strict";var i=o(21375),s=o(61338),n=o(91945),r=o(35097),a=o(71671)("iterator");e.exports=function(e){if(!n(e))return s(e,a)||s(e,"@@iterator")||r[i(e)]}},47183:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(13234),h=o(39522),c=o(13479),u=o(58719),d=o(43832),g=o(57625),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,i=this.mapper;;){if(t=this.inner)try{if(!(e=r(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=r(s(this.next,o)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}});i({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return p?s(p,this,e):new w(a(this),{mapper:e,inner:null})}})},47229:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,U.registerPlugin)(i.AutoColumnSize),(0,U.registerPlugin)(s.Autofill),(0,U.registerPlugin)(n.AutoRowSize),(0,U.registerPlugin)(a.BindRowsWithHeaders),(0,U.registerPlugin)(l.CollapsibleColumns),(0,U.registerPlugin)(h.ColumnSorting),(0,U.registerPlugin)(c.ColumnSummary),(0,U.registerPlugin)(u.Comments),(0,U.registerPlugin)(d.ContextMenu),(0,U.registerPlugin)(g.CopyPaste),(0,U.registerPlugin)(f.CustomBorders),(0,U.registerPlugin)(p.DragToScroll),(0,U.registerPlugin)(m.DropdownMenu),(0,U.registerPlugin)(w.ExportFile),(0,U.registerPlugin)(C.Filters),(0,U.registerPlugin)(v.Formulas),(0,U.registerPlugin)(y.HiddenColumns),(0,U.registerPlugin)(S.HiddenRows),(0,U.registerPlugin)(E.ManualColumnFreeze),(0,U.registerPlugin)(R.ManualColumnMove),(0,U.registerPlugin)(b.ManualColumnResize),(0,U.registerPlugin)(_.ManualRowMove),(0,U.registerPlugin)(T.ManualRowResize),(0,U.registerPlugin)(M.MergeCells),(0,U.registerPlugin)(I.MultiColumnSorting),(0,U.registerPlugin)(O.MultipleSelectionHandles),(0,U.registerPlugin)(A.NestedHeaders),(0,U.registerPlugin)(N.NestedRows),(0,U.registerPlugin)(P.Pagination),(0,U.registerPlugin)(H.PersistentState),(0,U.registerPlugin)(x.Search),(0,U.registerPlugin)(k.StretchColumns),(0,U.registerPlugin)(D.TouchScroll),(0,U.registerPlugin)(L.TrimRows),(0,U.registerPlugin)(V.UndoRedo),(0,U.registerPlugin)(W.Dialog),(0,U.registerPlugin)(F.Loading),(0,U.registerPlugin)(B.EmptyDataState)};var i=o(88886);t.AutoColumnSize=i.AutoColumnSize;var s=o(7796);t.Autofill=s.Autofill;var n=o(1402);t.AutoRowSize=n.AutoRowSize;var r=o(42479);t.BasePlugin=r.BasePlugin;var a=o(94366);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=o(70641);t.CollapsibleColumns=l.CollapsibleColumns;var h=o(99048);t.ColumnSorting=h.ColumnSorting;var c=o(51964);t.ColumnSummary=c.ColumnSummary;var u=o(45024);t.Comments=u.Comments;var d=o(26746);t.ContextMenu=d.ContextMenu;var g=o(36250);t.CopyPaste=g.CopyPaste;var f=o(1316);t.CustomBorders=f.CustomBorders;var p=o(15576);t.DragToScroll=p.DragToScroll;var m=o(29328);t.DropdownMenu=m.DropdownMenu;var w=o(92326);t.ExportFile=w.ExportFile;var C=o(79385);t.Filters=C.Filters;var v=o(78865);t.Formulas=v.Formulas;var y=o(96789);t.HiddenColumns=y.HiddenColumns;var S=o(62831);t.HiddenRows=S.HiddenRows;var E=o(67289);t.ManualColumnFreeze=E.ManualColumnFreeze;var R=o(29099);t.ManualColumnMove=R.ManualColumnMove;var b=o(43458);t.ManualColumnResize=b.ManualColumnResize;var _=o(10441);t.ManualRowMove=_.ManualRowMove;var T=o(7884);t.ManualRowResize=T.ManualRowResize;var M=o(26643);t.MergeCells=M.MergeCells;var I=o(67);t.MultiColumnSorting=I.MultiColumnSorting;var O=o(73335);t.MultipleSelectionHandles=O.MultipleSelectionHandles;var A=o(11797);t.NestedHeaders=A.NestedHeaders;var N=o(21956);t.NestedRows=N.NestedRows;var P=o(46842);t.Pagination=P.Pagination;var H=o(45052);t.PersistentState=H.PersistentState;var x=o(37090);t.Search=x.Search;var k=o(19826);t.StretchColumns=k.StretchColumns;var D=o(64536);t.TouchScroll=D.TouchScroll;var L=o(60599);t.TrimRows=L.TrimRows;var V=o(80716);t.UndoRedo=V.UndoRedo;var W=o(22362);t.Dialog=W.Dialog;var F=o(32310);t.Loading=F.Loading;var B=o(91636);t.EmptyDataState=B.EmptyDataState;var U=o(3182);t.registerPlugin=U.registerPlugin,t.getPlugin=U.getPlugin,t.getPluginsNames=U.getPluginsNames},47572:(e,t,o)=>{"use strict";o(13348),o(60225)},47646:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,i]=t;this.calculationResults.set(o,i),i.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,i]=o;return i.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},47700:(e,t)=>{"use strict";t.__esModule=!0;t.ACTIVE_HEADER_TYPE="active-header",t.HEADER_TYPE="header",t.AREA_TYPE="area",t.FOCUS_TYPE="focus",t.FILL_TYPE="fill",t.ROW_TYPE="row",t.COLUMN_TYPE="column",t.CUSTOM_SELECTION_TYPE="custom-selection"},47730:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(81124),o(88633),o(14618),o(19874);var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((o,i)=>o.includes(e)&&t(o,i))}findAll(e){const t=[];return this.ranges.forEach((o,i)=>{o.isEqual(e)&&t.push({range:o,layer:i})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,o)=>!e.includes(o)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new n(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,o)=>e(t,o)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=n},47812:(e,t,o)=>{"use strict";var i=o(82397).f;e.exports=function(e,t,o){o in e||i(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},47866:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.ViewSize=class{constructor(){(0,s.default)(this,"currentSize",0),(0,s.default)(this,"nextSize",0),(0,s.default)(this,"currentOffset",0),(0,s.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},47920:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);var i=o(76651),s=o(78437),n=o(21797);t.default=class{constructor(e,t,o,i,s){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=s,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,i.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let i;if(o===t){const t=this.wtSettings.getSetting("totalColumns");i=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>i&&(i=e.documentElement.clientWidth)}else i=o.clientWidth;return i}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,o=e.clientHeight,i=t.offsetHeight;return o<i||i>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,o=this.hasVerticalScroll()?(0,i.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-o}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,i=e;for(;i<t;)o+=this.wtTable.getColumnWidth(i),i+=1;return o}getWorkspaceOffset(){return(0,i.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,i.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,i=t.length;o<i;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)e?(this.rowHeaderWidth+=(0,i.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s,r,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=r,a-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=r),s=o.holder.clientHeight===o.holder.offsetHeight?0:(0,i.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:s})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);r+=e,s-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:s,scrollOffset:r,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),i=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible"),i=o.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,i)}if(e&&!t.getSetting("renderAllColumns")){const t=i.getResultsFor("fullyVisible"),o=i.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,o)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=i.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=i.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=i.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:o,endRow:i}=e;const{startRow:s,endRow:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(s)&&!this.wtTable.isRowAfterRenderedRows(n))return!0;o=s,i=n}const{startRow:r,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:o,endColumn:i}=e;const{startColumn:s,endColumn:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(s)&&!this.wtTable.isColumnAfterRenderedColumns(n))return!0;o=s,i=n}const{startColumn:r,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}resetHasOversizedColumnHeadersMarked(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},48237:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(654);var s=i(o(72123)),n=o(74125),r=o(59195),a=o(97819),l=o(95820),h=o(9041),c=o(730),u=o(95220),d=o(24496);function g(e,t){const o=new s.default(e,t||{},n.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 s.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,r.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="17/11/2025 11:49:12",g.version="16.2.0-next-90d1117-20251117",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},48442:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(88633),o(14618),o(39716);var s=i(o(81115)),n=o(42479),r=o(97819),a=i(o(13434)),l=i(o(65725)),h=i(o(88226)),c=i(o(97100)),u=i(o(27323)),d=o(94857),g=o(78437),f=o(49581),p=o(58639),m=o(76651),w=o(12108),C=o(59375),v=o(85180),y=o(57806);function S(e,t,o){E(e,t),t.set(e,o)}function E(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")}r.Hooks.getSingleton().register("beforeMergeCells"),r.Hooks.getSingleton().register("afterMergeCells"),r.Hooks.getSingleton().register("beforeUnmergeCells"),r.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakSet;class x extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=H),t.add(e),(0,s.default)(this,"mergedCellsCollection",null),(0,s.default)(this,"autofillCalculations",null),(0,s.default)(this,"selectionCalculations",null),S(this,O,null),S(this,A,{row:0,col:0}),S(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),S(this,P,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new a.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),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,L).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,W).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,G).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,z).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(P,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,K).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ie).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,se).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ne).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,re).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:i}=e;for(let e=o+1;e<o+i;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 i=t.getRow(o);i&&(i.style.background=(0,m.getStyle)(i,"backgroundColor").replace(")",", 0.99)"),e.push(i))})}),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&&(l.default.containsNegativeValues(e)?((0,f.warn)(l.default.NEGATIVE_VALUES_WARNING(e)),!1):l.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(l.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):l.default.isSingleCell(e)?((0,f.warn)(l.default.IS_SINGLE_CELL(e)),!1):!l.default.containsZeroSpan(e)||((0,f.warn)(l.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:i,rowspan:s,colspan:n}=e,r=this.hot._createCellCoords(t,i),a=this.hot._createCellCoords(t+s-1,i+n-1),l=this.hot._createCellRange(r,r,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+s;e++)for(let s=i;s<i+n;s++)e===t&&s===i||o.push([e,s,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.getSelectedRangeActive();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.getSelectedRangeActive();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 i=e.getTopStartCorner(),s=e.getBottomEndCorner(),n={row:i.row,col:i.col,rowspan:s.row-i.row+1,colspan:s.col-i.col+1},r=[];let a=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,e=>{(0,p.rangeEach)(0,n.colspan-1,t=>{let o=null;r[e]||(r[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),r[e][t]=o})}),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?a=[n.row,n.col,r]:this.hot.populateFromArray(n.row,n.col,r,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),a)}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(),i=this.mergedCellsCollection.get(t.row,t.col);i.row===t.row&&i.col===t.col&&i.row+i.rowspan-1===o.row&&i.col+i.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.mergeRange(this.hot._createCellRange(s,s,n))}unmerge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.unmergeRange(this.hot._createCellRange(s,s,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeActive();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,i=o.getVisualFromRenderableIndex(e.startRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(i<e.startRow)return e.startRow=i,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.endRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=n.row+n.rowspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.startColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(i<e.startColumn)return e.startColumn=i,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.endColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=n.col+n.colspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,i){const{rowIndexMapper:s,columnIndexMapper:n}=this.hot;let r,a;r=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),a=0===i?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+i-1,-1);return[e>=0?s.getRenderableFromVisualIndex(r):e,o>=0?n.getRenderableFromVisualIndex(a):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeActive(),o=t.getTopStartCorner(),i=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&i.row===e[t].row+e[t].rowspan-1&&i.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(A,this).row=e.row,b(A,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeActive(),{highlight:o}=t,{columnIndexMapper:i,rowIndexMapper:s}=this.hot;b(O,this)&&(null!==s.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==i.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const r=n.col,a=n.col+n.colspan-1;if(e.col<0){const t=o.col>=r&&o.col<=a?r-1:a,s=i.getNearestNotHiddenIndex(t,-1);e.col=null===s?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(s,o.col)-1,1)}else if(e.col>0){const t=o.col>=r&&o.col<=a?a+1:r,s=i.getNearestNotHiddenIndex(t,1);e.col=null===s?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,s)-1,1)}const l=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=l&&o.row<=h?l-1:h,i=s.getNearestNotHiddenIndex(t,-1);e.row=null===i?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(i,o.row)-1,1)}else if(e.row>0){const t=o.row>=l&&o.row<=h?h+1:l,i=s.getNearestNotHiddenIndex(t,1);e.row=null===i?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,i)-1,1)}}function W(e){const t=this.hot.getSelectedRangeActive(),o=t.clone(),{to:i}=t,{columnIndexMapper:s,rowIndexMapper:n}=this.hot,r=(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 n=this.mergedCellsCollection.getStartMostColumnIndex(t,i.col)+e.col;r(i.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const a=s.getNearestNotHiddenIndex(n,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,i.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,i.col)+e.col;r(i.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const a=s.getNearestNotHiddenIndex(n,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(i.col,a)-1,1))}if(e.row<0){let s=this.mergedCellsCollection.getTopMostRowIndex(t,i.row)+e.row;r(s,i.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(s=o.getTopStartCorner().row);const a=n.getNearestNotHiddenIndex(s,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,i.row)-1,1))}else if(e.row>0){let s=this.mergedCellsCollection.getBottomMostRowIndex(t,i.row)+e.row;r(s,i.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(s=o.getBottomStartCorner().row);const a=n.getNearestNotHiddenIndex(s,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(i.row,a)-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,i){if(e<0||t<0)return;const s=this.mergedCellsCollection.get(e,t);if(!s)return;const{row:n,col:r,colspan:a,rowspan:l}=s,h=n,c=r,u=n+l-1,d=r+a-1;if("render"===i&&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.getSelectedRangeActive(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),i=b(O,this).clone().normalize();b(N,this).setActiveNode(i.row,i.col),b(A,this).row>0||b(A,this).col>0?b(N,this).setPrevNodeAsActive():("E-W"===o&&b(A,this).col<0||"S-N"===t&&b(A,this).row<0)&&b(N,this).setNextNodeAsActive()}function G(e,t){const{columnIndexMapper:o,rowIndexMapper:i}=this.hot;let s=this.hot.getActiveSelectionLayerIndex(),n=null,r=null;if(b(A,this).col<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevHorizontalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).col>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextHorizontalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}else if(b(A,this).row<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevVerticalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).row>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextVerticalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}if(null!==n||null!==r){this.hot.selection.setActiveSelectionLayerIndex(s);const o=this.hot.getSelectedRangeActive(),i=this.hot._createCellCoords(n,r),a=this.mergedCellsCollection.get(i.row,i.col),l=this.hot.selection.highlight.getFocus();e=i.row,t=i.col,a?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(a.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(a.col,1)}):o.highlight.assign(i),l.clear(),l.add(i).commit()}b(N,this).setActiveNode(e,t,s),R(A,this,{row:0,col:0})}function z(){b(N,this).buildFocusOrder(this.hot.getSelectedRange())}function $(e,t,o){const i=this.mergedCellsCollection.get(e,t);i&&(i.row!==e||i.col!==t?o.copyable=!1:(o.rowspan=i.rowspan,o.colspan=i.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 i=this.hot._createCellCoords(t[0],t[1]),s=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(i,i,s),r=this.mergedCellsCollection.getWithinRange(n);return 0===r.length?e:this.autofillCalculations.snapDragArea(t,e,o,r)}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.getSelectedRangeActive(),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 ie(e,t,o,i){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,i)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function ne(e,t,o,i){if(!(i instanceof MouseEvent))return;const s=this.hot.getSelectedRangeActive(),n=this.mergedCellsCollection.getByRange(s);if(!n)return;const r=this.hot._createCellCoords(n.row,n.col),a=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&s.isEqual(this.hot._createCellRange(r,r,a))}function re(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let i,s;if("master"===o)i=this.hot.getFirstRenderedVisibleColumn(),s=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,i))return e;const n=this.hot._createCellCoords(t,i),r=this.hot._createCellCoords(t,s),a=this.hot._createCellRange(n,n,r),l=this.mergedCellsCollection.getWithinRange(a,!0),h=l.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return l.length>1&&l[0].rowspan<h&&(c=h-l[0].rowspan),l.forEach(i=>{let{rowspan:s}=i,n=0;n="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):s-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,n))}),e}t.MergeCells=x},48446:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(14618);var s=o(42479),n=o(76651),r=o(58639),a=o(94857),l=o(50151),h=o(97819),c=i(o(6307)),u=i(o(16026)),d=o(32435);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("beforeHideColumns"),h.Hooks.getSingleton().register("afterHideColumns"),h.Hooks.getSingleton().register("beforeUnhideColumns"),h.Hooks.getSingleton().register("afterUnhideColumns");const w=t.PLUGIN_KEY="hiddenColumns",C=t.PLUGIN_PRIORITY=310;var v=new WeakMap,y=new WeakSet;class S extends s.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,columns:[]}}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.columnIndexMapper.registerMap(this.pluginName,f(v,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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("modifyColWidth",(e,t)=>m(y,this,E).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),o=this.isValidConfig(e);let i=t;const s=f(v,this).getValues().slice(),n=e.length>0;if(o&&n){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(this.hot.toVisualColumn(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,i,o&&n)&&(o&&n&&f(v,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,i,o&&n,o&&i.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,i,o,o&&i.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(f(v,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return f(v,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipColumnOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function E(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function R(e,t,o){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(o.skipColumnOnPaste=!0),this.isHidden(t-1))o.className=o.className||"",-1===o.className.indexOf("afterHiddenColumn")&&(o.className+=" afterHiddenColumn");else if(o.className){const e=o.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),o.className=e.join(" ")}}}function b(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],o=(e,o,i,s)=>{t.push({startRow:e,endRow:o,startCol:i,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,i=0;(0,r.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||o(e.startRow,e.endRow,i,s-1),t=!0):(t&&(i=s),s===e.endCol&&o(e.startRow,e.endRow,i,s),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const o=[];e>=1&&this.isHidden(e-1)&&o.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&o.push("beforeHiddenColumn"),(0,n.addClass)(t,o)}function T(e){e.items.push({name:l.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=S},48538:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(14618),o(19874);var n=o(94857),r=o(52411),a=o(89195),l=i(o(86248)),h=o(78437),c=o(26599),u=o(54283);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new r.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)}),this.trimmingMapsCollection.addLocalHook("change",e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)}),this.hidingMapsCollection.addLocalHook("change",e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)}),this.variousMapsCollection.addLocalHook("change",e=>{this.runLocalHooks("change",e,this.variousMapsCollection)})}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,r.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof r.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof r.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const i=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?i.findIndex(t=>t>e):i.reverse().findIndex(t=>t<e),-1===s?o?this.getNearestNotHiddenIndex(e,-t,!1):null:i[s]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map(t=>t+e);this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isTrimmed(e))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isHidden(e))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter(e=>!1===this.isHidden(e))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,n.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),i=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,r.getListWithRemovedItems)(this.getIndexesSequence(),o),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<i){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,r.getListWithInsertedItems)(a,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const i=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(i)?i:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(i)?this.getIndexesSequence().indexOf(i):this.getNumberOfIndexes(),a=(0,n.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,a),this.indexesChangeSource=void 0;const l="end"===o?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(r,l),this.hidingMapsCollection.insertToEvery(r,l),this.variousMapsCollection.insertToEvery(r,l),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,l.default)},48651:(e,t,o)=>{"use strict";var i=o(21375),s=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},48744:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){const o=e.countRows(),i=e.getSettings().minSpareRows;this.index>=o&&this.index-i<o&&(this.index-=i),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=r},49095:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029);t.default=class{constructor(e){(0,s.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,e,e)}}},49146:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${r}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htLeft";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htCenter";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htRight";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htJustify";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{name:s.KEY},{key:`${r}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htTop";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htBottom";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1}]}}};var i=o(32971),s=o(73192),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const r=t.KEY="alignment"},49262:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(i.row,s.row,o),t.markEndSource()}}},49456:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).add,n=o(96938),r=o(29521),a=o(82719);e.exports=function(e){var t=i(this),o=r(e).getIterator(),l=n(t);return a(o,function(e){s(l,e)}),l}},49510:(e,t,o)=>{"use strict";var i=o(14326),s=o(24755),n=TypeError;e.exports=function(e){if(i(e))return e;throw new n(s(e)+" is not a function")}},49581:(e,t,o)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,i.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,i.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,i.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,i.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,i.isDefined)(console)&&console.warn(...arguments)};var i=o(26599)},49669:(e,t)=>{"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},49731:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(73652));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,n.extend)(o,t),(0,r.extendByMetaType)(o,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,r.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},49979:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).has,n=o(54230),r=o(29521),a=o(82719),l=o(13479);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},50148:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var i=o(28454),s=o(76651),n=o(58639);const r=t.RENDERER_TYPE="password";function a(e,t,o,r,a,l,h){i.textRenderer.apply(this,[e,t,o,r,a,l,h]);const c=h.hashLength||t.innerHTML.length,u=h.hashSymbol||"*";let d="";(0,n.rangeEach)(c-1,()=>{d+=u}),(0,s.fastInnerHTML)(t,d)}a.RENDERER_TYPE=r},50151:(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,i.objectEach)(v,(t,o)=>{e[o]=t()}),e};var i=o(78437),s=w(o(49146));t.ALIGNMENT=s.KEY;var n=w(o(2224));t.CLEAR_COLUMN=n.KEY;var r=w(o(45272));t.COLUMN_LEFT=r.KEY;var a=w(o(77915));t.COLUMN_RIGHT=a.KEY;var l=w(o(59453));t.READ_ONLY=l.KEY;var h=w(o(62731));t.REDO=h.KEY;var c=w(o(63545));t.REMOVE_COLUMN=c.KEY;var u=w(o(97943));t.REMOVE_ROW=u.KEY;var d=w(o(7810));t.ROW_ABOVE=d.KEY;var g=w(o(32510));t.ROW_BELOW=g.KEY;var f=w(o(73192));t.SEPARATOR=f.KEY;var p=w(o(99038));t.NO_ITEMS=p.KEY;var m=w(o(81501));function w(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(w=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(e,t)}t.UNDO=m.KEY;const C=t.ITEMS=[d.KEY,g.KEY,r.KEY,a.KEY,n.KEY,u.KEY,c.KEY,m.KEY,h.KEY,l.KEY,s.KEY,f.KEY,p.KEY],v={[f.KEY]:f.default,[p.KEY]:p.default,[d.KEY]:d.default,[g.KEY]:g.default,[r.KEY]:r.default,[a.KEY]:a.default,[n.KEY]:n.default,[u.KEY]:u.default,[c.KEY]:c.default,[m.KEY]:m.default,[h.KEY]:h.default,[l.KEY]:l.default,[s.KEY]:s.default}},51377:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let n,r=0,a=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(s))e=e.replace(s,""),r+=1,t[a][r]="";else if(e.match(o))e=e.replace(o,""),r=0,a+=1,t[a]=[""];else{let o="";if(e.startsWith('"')){let t=0,i=!0;for(;i;){const s=e.slice(0,1);'"'===s&&(t+=1),o+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(i=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(i);o=t?t[0]:"",e=e.slice(o.length)}t[a][r]=o}return t},t.stringify=function(e){let t,o,i,s,n,r="";for(t=0,o=e.length;t<o;t+=1){for(s=e[t].length,i=0;i<s;i+=1)i>0&&(r+="\t"),n=e[t][i],"string"==typeof n?n.indexOf("\n")>-1?r+=`"${n.replace(/"/g,'""')}"`:r+=n:r+=null==n?"":n;t!==o-1&&(r+="\n")}return r};const o=/^(\r\n|\n\r|\r|\n)/,i=/^[^\t\r\n]+/,s=/^\t/},51472:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(93911);t.CELL_TYPE=i.CELL_TYPE,t.NumericCellType=i.NumericCellType},51637:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const o=e._getEditorManager();o.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),o.moveSelectionAfterEnter(t)}}},51670:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(14618);var s=o(94857),n=i(o(79596)),r=i(o(28752)),a=o(74419),l=o(14548),h=o(27783);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 n.default),c(this,p,new r.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,l.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.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,l.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const i=e(o.data);void 0!==i&&t.push(i)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const i=d(p,this).getNode(t,o);let s;return i&&(s=(0,a.triggerNodeModification)(e,i,o),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))),s}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,i;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(i=d(m,this)[e])||void 0===i?void 0:i[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 i=!1,s=null;for(let n=e;n<=t;n++){const r=d(p,this).getRootByColumn(n);if(!r)break;i=!0,r.walkDown(i=>{const{columnIndex:n,headerLevel:r,origColspan:a,isHidden:l}=i.data;l||a<=o&&n>=e&&n+a-1<=t&&(null===s||r<s)&&(s=r)},h.TRAVERSAL_DF_PRE)}return i&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(i)return t;let s=t-1;for(;s>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,s))&&void 0!==n?n:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var o;const{isRoot:i,origColspan:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(i)return t+s-1;let n=t+1;for(;n<this.getColumnsCount();){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,n))&&void 0!==r?r:{isRoot:!0};if(t)break;n+=1}return n-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()}}},51736:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(37637),o(81396),o(39691),o(81124),o(82101),o(14618),o(39716);var s=i(o(81115)),n=o(82936),r=o(94857),a=o(78437),l=o(76651),h=o(26599),c=o(73983),u=o(57455),d=o(28454),g=o(3226),f=o(99586);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(C(e,t))}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 v=t.EDITOR_TYPE="autocomplete";var y=new WeakMap,S=new WeakMap,E=new WeakSet;class R extends n.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=E),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),p(this,y,this.hot.guid.slice(0,9)),p(this,S,(0,f.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return v}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(C(E,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${w(y,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>C(E,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,i=null==o?void 0:o.length,{row:s,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,n,r,a,c,u)=>{(0,d.textRenderer)(e,s,n,r,a,c,u);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,h.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...o?[(0,g.A11Y_SETSIZE)(i)]:[],...o?[(0,g.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${r}`]]),s.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},i=this.htEditor.getCell(e,o,!0);null!==i?t(i):this.htEditor.addHookOnce("afterScrollVertically",()=>{const i=this.htEditor.getCell(e,o,!0);t(i)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${w(y,this)}-listbox-${s}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,o){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,o)}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,n=this.stripValueIfNeeded(this.getValue()),a=C(E,this,_).call(this,n)?n.value:n;let u=null,d=e;i||(d=d.toSorted());const g=[],f=this.cellProperties.locale,p=this.cellProperties.filteringCaseSensitive,m=p?a:a.toLocaleLowerCase(f);for(let e=0;e<d.length;e++){const t=C(E,this,_).call(this,d[e])?(0,c.stripTags)((0,h.stringify)(d[e].value)):(0,c.stripTags)((0,h.stringify)(d[e]));if(-1!==(p?t:t.toLocaleLowerCase(f)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?n.length>0&&(u=g[0]):(d=g.map(e=>d[e]),u=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,r.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(u)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:o,spaceBelow:i}=e;return this.limitDropdownIfNeeded(t?o:i),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let o=0,i=0,s=null;do{i=this.htEditor.stylesHandler.getDefaultRowHeight(),o+=i}while(o<e);s=o-i,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(o-i)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,o=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:o}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>C(E,this,_).call(this,e))?e.map(e=>({key:o(e.key),value:o(e.value)})):e.map(e=>o(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function b(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},51964:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(46198);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ColumnSummary=i.ColumnSummary},52072:(e,t,o)=>{"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){a.get(e.type)({isShiftKey:e.shiftKey,isLeftClick:(0,i.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,i.isRightClick)(e),...t})},t.mouseDown=s,t.mouseOver=n,t.mouseUp=r,o(81396),o(14618);var i=o(70667);function s(e){let{isShiftKey:t,isLeftClick:o,isRightClick:i,coords:s,selection:n,controller:r,cellCoordsFactory:a}=e;const l=n.isSelected()?n.getSelectedRange().current():null,h=n.isSelectedByCorner(),c=n.isSelectedByRowHeader();if(n.markSource("mouse"),t&&l)s.row>=0&&s.col>=0&&!r.cell?n.setRangeEnd(s):(h||c)&&s.row>=0&&s.col>=0&&!r.cell?n.setRangeEnd(a(s.row,s.col)):h&&s.row<0&&!r.column?n.setRangeEnd(a(l.to.row,s.col)):c&&s.col<0&&!r.row?n.setRangeEnd(a(s.row,l.to.col)):(!h&&!c&&s.col<0||h&&s.col<0)&&!r.row?n.selectRows(Math.max(l.from.row,0),s.row,s.col):(!h&&!c&&s.row<0||c&&s.row<0)&&!r.column&&n.selectColumns(Math.max(l.from.col,0),s.col,s.row);else{const e=!n.inInSelection(s),t=o||i&&e;s.row<0&&s.col>=0&&!r.column?t&&n.selectColumns(s.col,s.col,s.row):s.col<0&&s.row>=0&&!r.row?t&&n.selectRows(s.row,s.row,s.col):s.col>=0&&s.row>=0&&!r.cell?t&&n.setRangeStart(s):s.col<0&&s.row<0&&n.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}n.markEndSource()}function n(e){let{isLeftClick:t,coords:o,selection:i,controller:s,cellCoordsFactory:n}=e;if(!t)return;const r=i.isSelectedByRowHeader(),a=i.isSelectedByColumnHeader(),l=i.tableProps.countCols(),h=i.tableProps.countRows();i.markSource("mouse"),a&&!s.column?i.setRangeEnd(n(h-1,o.col)):r&&!s.row?i.setRangeEnd(n(o.row,l-1)):s.cell||i.setRangeEnd(o),i.markEndSource()}function r(e){let{isLeftClick:t,selection:o,cellRangeMapper:i}=e;if(!t||"multiple"!==o.settings.selectionMode)return;const s=o.getSelectedRange(),n=s.clone().map(e=>i.toRenderable(e)),r=n.current();if(n.size()>1&&!r.isHeader()&&!o.isMultiple(r)){const e=n.findAll(r);e.length===n.size()?(s.pop(),o.refresh()):e.length>1&&(s.removeLayers(e.map(e=>{let{layer:t}=e;return t})),o.refresh())}}const a=new Map([["touchstart",s],["touchend",r],["mousedown",s],["mouseover",n],["mouseup",r]])},52150:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const s=[];if(!1===o)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${i}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${i}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(66182),o(81396),o(81124);const i="sort"},52270:(e,t,o)=>{"use strict";var i=o(14326);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},52282:(e,t,o)=>{"use strict";var i=o(21912),s=o(33477),n=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=s(n,"name"),l=a&&"something"===function(){}.name,h=a&&(!i||i&&r(n,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},52392:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(26447);const r=t.CONDITION_NAME="neq";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},52411:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(22588);var s=o(88928);t.HidingMap=s.HidingMap;var n=o(59405);t.IndexMap=n.IndexMap;var r=o(33943);t.LinkedPhysicalIndexToValueMap=r.LinkedPhysicalIndexToValueMap;var a=o(75372);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=o(6490);t.TrimmingMap=l.TrimmingMap;var h=o(19454);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))});var c=o(5760);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});const u=new Map([["hiding",s.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",r.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},52554:(e,t,o)=>{"use strict";var i=o(94988),s=o(87681),n=Math.floor,r=i("".charAt),a=i("".replace),l=i("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,i,u,d){var g=o+e.length,f=i.length,p=c;return void 0!==u&&(u=s(u),p=h),a(d,p,function(s,a){var h;switch(r(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,o);case"'":return l(t,g);case"<":h=u[l(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>f){var d=n(c/10);return 0===d?s:d<=f?void 0===i[d-1]?r(a,1):i[d-1]+r(a,1):s}h=i[c-1]}return void 0===h?"":h})}},52576:(e,t,o)=>{"use strict";var i=o(94988),s=o(33477),n=o(56769),r=o(34341).indexOf,a=o(46049),l=i([].push);e.exports=function(e,t){var o,i=n(e),h=0,c=[];for(o in i)!s(a,o)&&s(i,o)&&l(c,o);for(;t.length>h;)s(i,o=t[h++])&&(~r(c,o)||l(c,o));return c}},52709:(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"),i=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:i,borderStyle:"solid",borderColor:s})}},52958:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742);const n=t.CONDITION_NAME="gt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},53074:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(73050),r=o(36997),a=o(76651),l=o(3226);const h=t.EDITOR_TYPE="password";class c extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"autoResize",(0,r.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,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},53269:(e,t,o)=>{"use strict";var i=o(19617),s=o(52270),n=o(497),r=o(61338),a=o(57490),l=o(71671),h=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!s(e)||n(e))return e;var o,l=r(e,c);if(l){if(void 0===t&&(t="default"),o=i(l,e,t),!s(o)||n(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},53394:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.min(i.row+e.countVisibleRows(),e.countRows()-1),n=o.getNearestNotHiddenIndex(s,-1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.min(o.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},53557:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(68671);t.getDecreasedIndexes=i.getDecreasedIndexes,t.getIncreasedIndexes=i.getIncreasedIndexes;var s=o(5760),n=o(61570);const r=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===r.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return r.get(e)}},53708:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var s=i(o(81115)),n=o(97819),r=o(78437),a=o(99586);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),n.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:i}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(i))return;const{visualRow:s,visualCol:n}=e,l=this.metaManager.hot,h=l.colToProp(n);e.prop=h,l.runHooks("beforeGetCellMeta",s,n,e);const c=(0,r.hasOwnProperty)(e,"type")?e.type:null;let u=(0,a.isFunction)(e.cells)?e.cells(o,i,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,i,u),l.runHooks("afterGetCellMeta",s,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(i)}}},54060:(e,t,o)=>{"use strict";var i,s=o(16539),n=o(16933),r=o(20155),a=o(46049),l=o(88025),h=o(59899),c=o(26075),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{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&i?m(i):(t=h("iframe"),o="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(i);for(var s=r.length;s--;)delete w[u][r[s]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=s(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},54230:(e,t,o)=>{"use strict";var i=o(90254),s=o(84990);e.exports=i(s.proto,"size","get")||function(e){return e.size}},54259:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(76651);function s(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 r(e,t){return e.get(l(e,t))}function a(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")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,s,n]=r(h,this).getCorners();if(t<0&&s<0||o<0&&n<0)return;const{wtTable:a}=r(c,this),l=t!==s||o!==n;if(o=Math.max(o,0),n=Math.max(n,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,a.getFirstRenderedColumn()),n=Math.min(n,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),n<o||s<t)return}else{const e=a.getCell(r(c,this).createCellCoords(t,o));if(!(0,i.isHTMLElement)(e))return}for(let i=t;i<=s;i+=1)for(let t=o;t<=n;t+=1)e(i,t)}function g(e){const{wtTable:t}=r(c,this),o=t.getRenderedRowsCount(),i=t.getRenderedColumnsCount();for(let s=0;s<o;s+=1){const o=t.rowFilter.renderedToSource(s);for(let s=0;s<i;s+=1)e(o,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),s(this,h,void 0),s(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=r(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedColumnsCount(),l=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<a;d++){const a=n.columnFilter.renderedToSource(d);if(!(a<o||a>s)){for(let d=-l;d<0;d++){if(d<t||d>i)continue;const g=d+l;let f=n.getColumnHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:r(h,this).settings.selectionType,columnCursor:u,selectionWidth:s-o+1});null!==p&&(p!==a&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedRowsCount(),l=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<a;d++){const a=n.rowFilter.renderedToSource(d);if(!(a<t||a>i)){for(let d=-l;d<0;d++){if(d<o||d>s)continue;const g=d+l;let f=n.getRowHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:r(h,this).settings.selectionType,rowCursor:u,selectionHeight:i-t+1});null!==p&&(p!==a&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=r(c,this);l(u,this,d).call(this,(o,s)=>{const n=t.getCell(r(c,this).createCellCoords(o,s)),a=r(c,this).getSetting("onAfterDrawSelection",o,s,r(h,this).settings.layerLevel);"string"==typeof a&&(0,i.addClass)(n,a),e(n)})}scanRowsInCellsRange(e){const[t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(s>=t&&s<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(n>=t&&n<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}}},54283:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633);var i=o(76952),s=o(96925);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 r(e,t){return e.get(l(e,t))}function a(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")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new i.ChangesObserver;return r(h,this).add(e),e.addLocalHook("unsubscribe",()=>{r(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(r(c,this),r(u,this))),e}emit(e){let t=r(u,this);r(d,this)&&r(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(r(g,this)):a(c,this,new Array(e.length).fill(r(g,this))),r(d,this)||(a(d,this,!0),t=r(c,this)));const o=(0,s.arrayDiff)(t,e);r(h,this).forEach(e=>e._write(o)),a(u,this,e)}}},54368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51377);t.parse=i.parse,t.stringify=i.stringify},54480:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("find",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return n(t,function(t,i){if(e(t,o++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},54505:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new n.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=o(24496),n=i(o(73358))},54687:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(43382),r=o(6077);const a=t.CONDITION_NAME="between";function l(e,t){let[o,i]=t,a=o,l=i;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(r.CONDITION_NAME,[l]),o=(0,s.getCondition)(n.CONDITION_NAME,[a]);return t(e)&&o(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},55210:(e,t,o)=>{"use strict";var i=o(91945),s=TypeError;e.exports=function(e){if(i(e))throw new s("Can't call method on "+e);return e}},55424:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=i(o(80674)),a=i(o(40191)),l=i(o(70445)),h=i(o(75475)),c=o(49581),u=o(91718),d=o(32435),g=o(7037),f=i(o(45571));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")}const y=t.PLUGIN_KEY="nestedRows",S=t.PLUGIN_PRIORITY=300,E=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new r.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,F).call(e,...o)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,B).call(e,...o)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,O).call(e,...o)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,A).call(e,...o)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,I).call(e,...o)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,x).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,H).call(e,...o)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,D).call(e,...o)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,L).call(e,...o)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,V).call(e,...o)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,W).call(e,...o)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,M).call(e,...o)}),this.addHook("beforeLoadData",e=>v(_,this,U).call(this,e)),this.addHook("beforeUpdateData",e=>v(_,this,U).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&-1===o.col&&o.row>=0},group:E,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,i){return this.rowMoveController.onBeforeRowMove(e,t,o,i)}function I(e,t,o){this.collapsingUI.toggleState(e,t,o)}function O(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function A(e){return this.contextMenuUI.appendOptions(e)}function N(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,i){i!==this.pluginName&&this.hot._registerTimeout(()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function x(e,t,o){const i=Array.from(o.reduce((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));o.length=0,o.push(...i)}function k(){this.collapsingUI.collapsedRowsStash.stash()}function D(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function W(){this.dataManager.rewriteCache()}function F(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},55595:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,o)=>e.getCommentMeta(t,o,n.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,o)=>{if(t>=0&&o>=0){const i=!!e.getCommentMeta(t,o,n.META_READONLY);e.updateCommentMeta(t,o,{[n.META_READONLY]:!i})}})},disabled(){const t=this.getSelectedRangeActive();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(32971),n=o(63556)},56284:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const n=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(o)),r=e=>(0,i.isObject)(e)&&(0,s.isDefined)(e.key)&&(0,s.isDefined)(e.value);if(r(n))return r(e)?e:{key:e,value:e};return e};var i=o(78437),s=o(26599)},56456:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(i.col,s.col,o),t.markEndSource()}}},56676:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(76651),r=i(o(86488)),a=o(61651),l=o(82858);class h extends a.Overlay{constructor(e,t,o,i,n,r){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,o,i),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=n,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("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),o=this.topOverlay.getOverlayOffset();(0,n.setOverlayPosition)(e,`${t}px`,`${o}px`)}else(0,n.resetCssTransform)(e);let t=(0,n.outerHeight)(this.clone.wtTable.TABLE);const o=(0,n.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${o}px`,!1}}t.TopInlineStartCornerOverlay=h},56769:(e,t,o)=>{"use strict";var i=o(20699),s=o(55210);e.exports=function(e){return i(s(e))}},56795:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437);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 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")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:i,wtViewport:s,totalColumns:r,rootWindow:a}=this.dataAccessObject;if(o.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,n.offset)(i.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(a,a));if(l>h){const t=(0,n.innerWidth)(a);let i=s.getRowHeaderWidth();for(let s=1;s<=r;s++)if(i+=o.sumCellSizes(s-1,s),l+i-h>=t){e=s-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:i,totalRows:s,rootWindow:r}=this.dataAccessObject;if(t.mainTableScrollableElement===r){const a=(0,n.offset)(o.wtRootElement),l=(0,n.getScrollTop)(r,r);if(a.top>l){const o=(0,n.innerHeight)(r);let h=i.getColumnHeaderHeight();for(let i=1;i<=s;i++)if(h+=t.sumCellSizes(i-1,i),a.top+h-l>=o){e=i-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const i=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,o);return i||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedColumnsStart:n,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedRowsBottom:n,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>i-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},56902:(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()}}},57065:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),o=e.getFirstFullyVisibleRow()-1,i=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,r=e._createCellCoords(o,i),a=e._createCellCoords(s,n);if(!e._createCellRange(r,r,a).includes(t)&&(t.row>=0||t.col>=0)){const o={};if(t.col>=0){const i=Math.floor(e.countVisibleCols()/2);o.col=Math.max(t.col-i,0)}if(t.row>=0){const i=Math.floor(e.countVisibleRows()/2);o.row=Math.max(t.row-i,0)}e.scrollViewportTo({...o,verticalSnap:"top",horizontalSnap:"start"})}}}},57103:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:r}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(r[0]);o.isCollapsed=!1;const a=r.slice(1),l=new Set;let h=0;if(a.length>0)(0,i.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:i}=o;h=t-e;for(let e=1;e<t;e++)l.add(i+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(94857),s=o(9364),n=o(31557)},57151:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=o(24496),n=i(o(73358))},57396:(e,t,o)=>{"use strict";var i=o(40136),s=o(49510),n=o(38972),r=i(i.bind);e.exports=function(e,t){return s(e),void 0===t?e:n?r(e,t):function(){return e.apply(t,arguments)}}},57440:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(85239);t.CELL_TYPE=i.CELL_TYPE,t.HandsontableCellType=i.HandsontableCellType},57455:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX):t.push(n.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[n.CONTROL,n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return r.includes(e)},t.isKey=function(e,t){const o=t.split("|");let s=!1;return(0,i.arrayEach)(o,t=>{if(e===n[t])return s=!0,!1}),s},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(66182);var i=o(94857),s=o(12108);const n=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,s.isFirefox)()?182:174,AUDIO_MUTE:(0,s.isFirefox)()?181:173,AUDIO_UP:(0,s.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},r=[n.ALT,n.ARROW_DOWN,n.ARROW_LEFT,n.ARROW_RIGHT,n.ARROW_UP,n.AUDIO_DOWN,n.AUDIO_MUTE,n.AUDIO_UP,n.BACKSPACE,n.CAPS_LOCK,n.DELETE,n.END,n.ENTER,n.ESCAPE,n.F1,n.F2,n.F3,n.F4,n.F5,n.F6,n.F7,n.F8,n.F9,n.F10,n.F11,n.F12,n.F13,n.F14,n.F15,n.F16,n.F17,n.F18,n.F19,n.HOME,n.INSERT,n.MEDIA_NEXT,n.MEDIA_PLAY_PAUSE,n.MEDIA_PREV,n.MEDIA_STOP,n.NULL,n.NUM_LOCK,n.PAGE_DOWN,n.PAGE_UP,n.PAUSE,n.SCROLL_LOCK,n.SHIFT,n.TAB]},57490:(e,t,o)=>{"use strict";var i=o(19617),s=o(14326),n=o(52270),r=TypeError;e.exports=function(e,t){var o,a;if("string"===t&&s(o=e.toString)&&!n(a=i(o,e)))return a;if(s(o=e.valueOf)&&!n(a=i(o,e)))return a;if("string"!==t&&s(o=e.toString)&&!n(a=i(o,e)))return a;throw new r("Can't convert object to primitive value")}},57596:(e,t,o)=>{"use strict";var i=o(94988),s=0,n=Math.random(),r=i(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++s+n,36)}},57625:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i.Iterator,s=o&&o.prototype,n=s&&s[e],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return n}},57678:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},57787:(e,t,o)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:o}=e,i=e.getSelectedRangeActive(),s=t.getSelectionSource(),n=o.getFirstFullyVisibleColumn(),r=o.getLastFullyVisibleColumn(),a=i.getTopStartCorner().col,l=i.getBottomEndCorner().col,h=a<=n,c=l>=r,u=o.getFirstFullyVisibleRow(),d=o.getLastFullyVisibleRow(),g=i.getTopStartCorner().row,f=i.getBottomEndCorner().row,p=g<=u,m=f>=d;return{getComputedColumnTarget:e=>"mouse"===s||"keyboard"===s?e.col:h&&c?i.highlight.col:h?a:c?l:e.col,getComputedRowTarget:e=>"mouse"===s||"keyboard"===s?e.row:p&&m?i.highlight.row:p?g:m?f:e.row}},t.scrollWindowToCell=function(e){(0,i.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var i=o(76651)},57806:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,o){const{rowIndexMapper:i,stylesHandler:s}=e;let n=0;for(let a=t;a<t+o;a++){var r;if(!i.isHidden(a))n+=null!==(r=e.getRowHeight(a))&&void 0!==r?r:s.getDefaultRowHeight(a)}return n}},57849:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(42765),r=o(43237),a=o(82539),l=o(50151),h=o(46261),c=i(o(13683)),u=o(94857),d=o(12108),g=o(76651),f=o(70667),p=o(99586),m=o(26599),w=o(78437),C=i(o(86248)),v=o(26913),y=o(3226);function S(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 E(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&&E(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,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new c.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),S(this,_,void 0),S(this,T,void 0),S(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 n.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),i=0;i<e;i++)t[i]=arguments[i];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.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}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,i=(0,u.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(i.length<1&&!o)i.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===i.length)return;i=(0,h.filterSeparators)(i,l.SEPARATOR);let s=!1;const n={data:i,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)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,i,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!s||!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,n),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),E(_,this,(0,r.createMenuNavigator)(this.hotMenu)),E(T,this,(0,a.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.getSelectedActive();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),i=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=i,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),i}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const i=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(i,[(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(),i=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,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,i=e.holder.style,s=parseInt(o.width,10),n=(0,u.arrayReduce)(t,(e,t,o)=>{const i=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===l.SEPARATOR?1:i)},0);this.hotMenu.stylesHandler.isClassicTheme()?(i.width=`${s+3}px`,i.height=`${n+3}px`):(i.width=`${s}px`,i.height=`${n}px`),o.height=i.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,i=e;return i&&((0,p.isFunction)(i)&&(i=i.call(this.hot),i=null===i||(0,m.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-Za-z0-9]/g,"_"),i=`${this.options.className}Sub_${i}`,o=t.querySelector(`.${this.options.className}.${i}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),i&&(0,g.addClass)(o,i),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)},58294:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);var i=o(70667);t.command={name:"editorOpen",callback(e,t,o){const{selection:s}=e,n=e._getEditorManager(),r=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((r.some(e=>s.isMultiple(e))||r.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const i=e.getSettings(),n="function"==typeof i.enterMoves?i.enterMoves(t):i.enterMoves;return void(o.includes("shift")?s.transformFocus(-n.row,-n.col):s.transformFocus(n.row,n.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?n.cellProperties.readOnly?n.moveSelectionAfterEnter(t):n.openEditor(null,t,!0):n.moveSelectionAfterEnter(t),(0,i.stopImmediatePropagation)(t))}}},58435:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(88216);class r extends n.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:i,startPositions:s}=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=s[this.startColumn])&&void 0!==t?t:null,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=r},58583:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(76742);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},58639:(e,t,o)=>{"use strict";function i(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.getParsedNumber=function(e){const t=e.replace(",",".");if(!1===isNaN(parseFloat(t)))return parseFloat(t);return null},t.isNumeric=i,t.isNumericLike=function(e){return i(e,[","])},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.rangeEach=function(e,t,o){let i=-1;"function"==typeof t?(o=t,t=e):i=e-1;for(;++i<=t&&!1!==o(i););},t.rangeEachReverse=function(e,t,o){let i=e+1;"function"==typeof t&&(o=t,t=0);for(;--i>=t&&!1!==o(i););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(14618)},58719:e=>{"use strict";e.exports=!1},58765:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScopeManager=function(e){const t=(0,i.createUniqueMap)({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),o=e.getShortcutManager();let l=null;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.FOCUS_SOURCES.UNKNOWN;l!==e&&(null!==l&&c(l),l=e,l.activate(t),o.setActiveContextName(e.getShortcutsContextName()))}function c(e){u(),l===e&&(l=null,e.deactivate())}function u(){const o=t.getValues(),i=o.filter(e=>e.runOnlyIf()&&"modal"===e.getType());o.forEach(t=>{i.length>0&&i.includes(t)||0===i.length||t.hasContainerDetached()?t.enable():t.disable(),t===l?t.contains(e.rootDocument.activeElement)?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function d(o,i){if(!o.isConnected||!(0,a.isVisible)(o))return;const s=t.getValues().filter(e=>e.runOnlyIf());let n=!1;s.forEach(t=>{!n&&t.contains(o)&&(n=!0,i!==r.FOCUS_SOURCES.UNKNOWN&&e.listen(),h(t,i))}),!n&&l&&(c(l),e.unlisten())}const g=(0,n.useEventListener)(e.rootWindow,{onFocus:e=>{var t;d(e.target,null!==(t=e.target.dataset.htFocusSource)&&void 0!==t?t:r.FOCUS_SOURCES.UNKNOWN)},onClick:e=>{d(e.target,r.FOCUS_SOURCES.CLICK)},onTabKeyDown:()=>{u()}});return g.mount(),{getActiveScopeId:function(){if(!l)return null;return t.getId(l)},registerScope:function(i,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.hasItem(i))throw new Error(`Scope with id "${i}" already registered`);const a=(0,s.createFocusScope)(e,n,r);t.addItem(i,a),o.getOrCreateContext(a.getShortcutsContextName())},unregisterScope:function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);t.getItem(e).destroy(),t.removeItem(e)},activateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);h(t.getItem(e))}(e),deactivateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);c(t.getItem(e))}(e),destroy:()=>g.unmount()}},o(22588),o(81396),o(81124),o(88633);var i=o(79836),s=o(5e3),n=o(94228),r=o(49669),a=o(76651)},59195:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(26657));t.DataMap=s.default;var n=i(o(82292));t.MetaManager=n.default;var r=i(o(428));t.metaSchemaFactory=r.default;var a=o(14839);t.replaceData=a.replaceData;var l=o(53708);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(95582);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},59311:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(81396),o(39691);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(14251);const n=t.OPERATION_ID="conjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},59317:(e,t,o)=>{"use strict";var i=o(13479);e.exports=function(e,t,o){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{o=i(e[s].iterator,t,o)}catch(e){t="throw",o=e}if("throw"===t)throw o;return o}},59375:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(64326));function n(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 a(e,t){return e.get(h(e,t))}function l(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){let{selectedRange:t,selectionLayer:o,listOrder:i,mergeCellsVisitor:s,row:n,column:r}=e;const l=t.getTopStartCorner(),h=t.getBottomEndCorner(),c=t.highlight.clone().normalize(),u=a(f,this).call(this,n,r);if(u&&s.has(u))return null;const d={selectionLayer:o,colStart:r,colEnd:r,rowStart:n,rowEnd:n};if(u){if(s.add(u),u.row<l.row||u.row+u.rowspan-1>h.row||u.col<l.col||u.col+u.colspan-1>h.col)return null;d.colStart=u.col,d.colEnd=u.col+u.colspan-1,d.rowStart=u.row,d.rowEnd=u.row+u.rowspan-1}const g=i.push(d);return n===c.row&&r===c.col||u&&c.row>=u.row&&c.row<=u.row+u.rowspan-1&&c.col>=u.col&&c.col<=u.col+u.colspan-1?g:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:i}=e;var a,h;r(a=this,h=w),h.add(a),n(this,c,new s.default),n(this,u,new s.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),l(f,this,t),l(p,this,o),l(m,this,i)}getCurrentVerticalNode(){return a(g,this).data}getFirstVerticalNode(){return a(u,this).first.data}getNextVerticalNode(){return a(g,this).next.data}getPrevVerticalNode(){return a(g,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(c,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(g,this,a(g,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(g,this,a(g,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){l(c,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.row;n<=s.row;n++)if(!a(p,this).isHidden(n))for(let r=i.col;r<=s.col;r++){if(a(m,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(c,this),mergeCellsVisitor:o,row:n,column:r});i&&l(d,this,i)}}),a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first),l(u,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.col;n<=s.col;n++)if(!a(m,this).isHidden(n))for(let r=i.row;r<=s.row;r++){if(a(p,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(u,this),mergeCellsVisitor:o,row:r,column:n});i&&l(g,this,i)}}),a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first)}setActiveNode(e,t,o){return a(c,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(d,this,i),!0}),a(u,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(g,this,i),!0}),this}}},59405:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639),r=o(78437),a=o(99586),l=i(o(86248));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,n.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,n.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,r.mixin)(h,l.default)},59453:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,checkable:!0,ariaChecked(){return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,i.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,i.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var i=o(32971),s=o(94857),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const r=t.KEY="make_read_only"},59494:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:o}=e;this.pageSize=Math.max(t,1),this.totalItems=o,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},59665:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(14618);var i=o(73983),s=o(70270);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 r(e,t){return e.get(l(e,t))}function a(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")}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){n(this,h,void 0),n(this,c,void 0),n(this,u,void 0),n(this,d,[]),n(this,g,[]),n(this,f,void 0),n(this,p,[]),a(h,this,e),a(c,this,t),a(u,this,o)}setRemovedHfIndexes(e){return a(p,this,e.map(e=>{const t=r(c,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),r(p,this)}getRemovedHfIndexes(){return r(p,this)}getHfIndexFromVisualIndex(e){const t=r(c,this).getIndexesSequence(),o=r(c,this).getNotTrimmedIndexes();return t.indexOf(o[e],e)}syncMoves(e){const t=`move${(0,i.toUpperCaseFirst)(r(h,this))}s`;r(u,this).getEngine().batch(()=>{e.forEach(e=>{const o=e.from!==e.to,i=e.from+1!==e.to;o&&i&&r(u,this).getEngine()[t](r(u,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,o){!1!==o&&(a(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(f,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(r(u,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const o=(0,s.getMoves)(r(g,this),r(f,this),r(c,this).getNumberOfIndexes());null===r(u,this).getSheetId()?r(u,this).getPostponeAction(()=>this.syncMoves(o)):this.syncMoves(o)}getIndexesChangeSyncMethod(){const e=`set${(0,i.toUpperCaseFirst)(r(h,this))}Order`;return t=>{if(r(u,this).isPerformingUndoRedo())return;const o=r(c,this).getIndexesSequence();if("update"===t&&o.length>0){const t=r(d,this).map(e=>o.indexOf(e)),i=r(u,this).getEngine().getSheetDimensions(r(u,this).getSheetId());let s;s="row"===r(h,this)?i.height:i.width;for(let e=t.length;e<s;e+=1)t.push(e);r(u,this).getEngine()[e](r(u,this).getSheetId(),t)}a(d,this,o)}}init(){a(d,this,r(c,this).getIndexesSequence())}}},59686:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(14618);var i=o(76651),s=o(78437),n=o(57455),r=o(99586),a=o(91718),l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),h=o(70667),c=o(42732),u=o(5476),d=o(73094),g=o(35764);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(C(e,t))}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")}const v="multipleSelect.itemBox";var y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends c.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var o,i;super(e,(0,s.extend)(M.DEFAULTS,t)),p(o=this,i=T),i.add(o),f(this,y,[]),f(this,S,void 0),f(this,E,void 0),f(this,R,void 0),f(this,b,void 0),f(this,_,void 0),w(R,this,new u.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(b,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(_,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(S,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>C(T,this,O).call(this,e)),m(R,this).addLocalHook("input",e=>C(T,this,I).call(this,e)),m(b,this).addLocalHook("click",e=>C(T,this,A).call(this,e)),m(_,this).addLocalHook("click",e=>C(T,this,N).call(this,e))}setItems(e){var t;w(y,this,e),null===(t=m(S,this))||void 0===t||t.loadData(m(y,this))}setLocale(e){w(E,this,e)}getLocale(){return m(E,this)}getItems(){return[...m(y,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(y,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(b,this)}getClearAllElement(){return m(_,this)}isSelectedAllValues(){return m(y,this).length===this.getValue().length}build(){var e;super.build();const{rootDocument:t}=this.hot,o=t.createElement("div"),s=new c.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(b,this),m(_,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(s.element),this._element.appendChild(o),null===(e=m(S,this))||void 0===e||e.destroy(),(0,i.addClass)(o,"htUIMultipleSelectHot"),w(S,this,new this.hot.constructor(o,{data:[[]],columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,o,i,s,n)=>{e.title=n.instance.getDataAtRowProp(t,n.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(S,this).listen()},modifyColWidth:e=>{const o=m(S,this).container.scrollWidth-(0,i.getScrollbarWidth)(t);return void 0!==e&&e<o?o:e},autoColumnSize:!0,autoRowSize:!1,hiddenRows:!0,maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(S,this).init();const n=m(S,this).getShortcutManager().getContext("grid");n.removeShortcutsByKeys(["Tab"]),n.removeShortcutsByKeys(["Shift","Tab"]),n.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:v}),n.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(S,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:v})}focus(){this.isBuilt()&&m(S,this).listen()}reset(){m(R,this).reset(),m(b,this).reset(),m(_,this).reset()}update(){this.isBuilt()&&0!==m(S,this).rootElement.offsetHeight&&(m(S,this).updateSettings({data:P(m(y,this),this.options.value)}),super.update())}destroy(){var e;null===(e=m(S,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(_,this).destroy(),m(b,this).destroy(),w(R,this,null),w(_,this,null),w(b,this,null),w(S,this,null),w(y,this,null),super.destroy()}}function I(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());if("apply"===this.options.searchMode){const e=m(S,this).getPlugin("hiddenRows");e.showRows(e.getHiddenRows()),m(y,this).forEach((o,i)=>{o.checked=`${o.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0,o.checked||e.hideRow(i)}),m(S,this).view.adjustElementsSize(),m(S,this).render()}else{let e;e=""===t?[...m(y,this)]:m(y,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(S,this).loadData(e)}}function O(e){this.runLocalHooks("keydown",e,this);(0,r.partial)(n.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(S,this).listen(),m(S,this).selectCell(0,0))}function A(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}function N(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}t.MultipleSelectUI=M;t.default=M;function P(e,t){const o=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=o(e.value),e))}},59719:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=o(91740);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var n=o(94956);t.BottomOverlay=n.BottomOverlay;var r=o(17608);t.InlineStartOverlay=r.InlineStartOverlay;var a=o(61651);t.Overlay=a.Overlay;var l=o(56676);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=o(3284);t.TopOverlay=h.TopOverlay;var c=o(82858);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},59839:(e,t,o)=>{"use strict";var i=o(27538),s=o(87681),n=o(69946),r=o(11127),a=o(88049);i({target:"Array",proto:!0},{at:function(e){var t=s(this),o=n(t),i=r(e),a=i>=0?i:o+i;return a<0||a>=o?void 0:t[a]}}),a("at")},59899:(e,t,o)=>{"use strict";var i=o(19596),s=o(52270),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},60054:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(95220);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,o){const s=e._getEditorManager(),n=s.getActiveEditor();n.isInFullEditMode()&&n.state===i.EDITOR_STATE.EDITING||(s.closeEditorAndSaveChanges(),e.getSelected()&&(o.includes("arrowdown")?e.selection.transformStart(1,0):o.includes("arrowup")?e.selection.transformStart(-1,0):o.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):o.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},60062:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=i(o(92484)),a=i(o(90925));function l(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",r.default],["strict",a.default]]);var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.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},60225:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(91733).set,r=o(68060),a=s.setImmediate?r(n,!1):n;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},60354:(e,t,o)=>{"use strict";o(47183)},60369:(e,t,o)=>{"use strict";var i=o(58719),s=o(19596),n=o(22381),r="__core-js_shared__",a=e.exports=s[r]||n(r,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},60599:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43662);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TrimRows=i.TrimRows},60780:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const o=r(e,n.FOCUS_SOURCES.TAB_FROM_ABOVE),i=r(e,n.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(o),t.append(i),{activate(){o.tabIndex=0,i.tabIndex=0},deactivate(){o.tabIndex=-1,i.tabIndex=-1},destroy(){o.remove(),i.remove()}}};var i=o(76651),s=o(3226),n=o(49669);function r(e,t){const o=e.rootDocument.createElement("input");return o.type="text",o.name="htFocusCatcher",o.classList.add("htFocusCatcher"),o.dataset.htFocusSource=t,e.getSettings().ariaTags&&(0,i.setAttribute)(o,[(0,s.A11Y_LABEL)("Focus catcher")]),o}},60808:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof r[e])return new r[e](t,o);return null};var s=i(o(82480));const n=t.TYPE_CSV="csv",r=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:s.default})},61089:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51736);t.EDITOR_TYPE=i.EDITOR_TYPE,t.AutocompleteEditor=i.AutocompleteEditor},61276:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i=o(57849);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},61338:(e,t,o)=>{"use strict";var i=o(49510),s=o(91945);e.exports=function(e,t){var o=e[t];return s(o)?void 0:i(o)}},61521:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639);t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:i}=this._getDataRange(),s=this.options,r=[];return(0,n.rangeEach)(e,o,e=>{const o=[];!s.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,i,t=>{!s.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),r.push(o))}),r}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),i=this.hot.getRowHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(i[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),i=this.hot.getColHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(i[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,i=0,s=t,n=e]=this.options.range;return o=Math.max(o,0),i=Math.max(i,0),s=Math.min(s,t),n=Math.min(n,e),{startRow:o,startCol:i,endRow:s,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},61570:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,s){const n=o.length?o[0]:void 0;return[...e.slice(0,n),...o.map((e,t)=>(0,i.isFunction)(s)?s(e,t):s),...void 0===n?[]:e.slice(n)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,(e,o)=>!1===t.includes(o))},o(81396),o(14618);var i=o(99586),s=o(94857)},61635:(e,t,o)=>{"use strict";var i=o(8467),s=o(94988),n=o(93428),r=o(64649),a=o(16539),l=s([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(a(e)),o=r.f;return o?l(t,o(e)):t}},61651:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437),a=o(49581),l=o(82858),h=i(o(30543)),c=o(3226);t.Overlay=class{constructor(e,t,o,i,a){(0,s.default)(this,"wtSettings",null),(0,r.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=a,this.facadeGetter=t,this.wtSettings=i;const{TABLE:l,hider:h,spreader:c,holder:u,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=o,this.mainTableScrollableElement=null,this.TABLE=l,this.hider=h,this.spreader=c,this.holder=u,this.wtRootElement=d,this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,o){if(!1===this.clone.wtTable.holder.contains(e))return void(0,a.warn)(`The provided element is not a child of the ${this.type} overlay`);const i=this.mainTableScrollableElement===this.domBindings.rootWindow,s=o<this.wtSettings.getSetting("fixedColumnsStart"),n=t<this.wtSettings.getSetting("fixedRowsTop"),r=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),l=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(l),top:l.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let u=null;return u=i?this.getRelativeCellPositionWithinWindow(n,s,c,h):this.getRelativeCellPositionWithinHolder(n,r,s,c,h),u}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,o,i){const s=this.wot.wtTable.wtRootElement.getBoundingClientRect();let r=0,a=0;if(t){let e=s.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(s.left+s.width+(0,n.getScrollbarWidth)())),r=e<=0?-1*e:0}else r=i.start;if(e){a=this.clone.wtTable.TABLE.getBoundingClientRect().top-s.top}else a=i.top;return{start:o.start+r,top:o.top+a}}getRelativeCellPositionWithinHolder(e,t,o,i,s){const n=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),r=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(o||(a=n-s.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=r-s.top);return{start:i.start-a,top:i.top-l}}makeClone(){if(-1===l.CLONE_TYPES.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=o.createElement("div"),r=o.createElement("table"),a=e.wtRootElement.parentNode;s.className=`${l.CLONE_CLASS_NAMES.get(this.type)} handsontable`,s.setAttribute("dir",this.isRtl()?"rtl":"ltr"),s.style.position="absolute",s.style.top=0,s.style.overflow="visible",this.isRtl()?s.style.right=0:s.style.left=0,t.getSetting("ariaTags")&&(0,n.setAttribute)(s,[(0,c.A11Y_PRESENTATION)()]),r.className=e.TABLE.className;e.TABLE.getAttribute("role")&&r.setAttribute("role",e.TABLE.getAttribute("role")),s.appendChild(r),a.appendChild(s);const u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===l.CLONE_TOP||"vertical"===u&&this.type===l.CLONE_INLINE_START?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE),new h.default(r,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach(e=>{e.width="",e.height=""})}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}},61989:(e,t,o)=>{"use strict";var i=o(53269),s=o(497);e.exports=function(e){var t=i(e,"string");return s(t)?t:t+""}},62103:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(78437),n=i(o(86248));class r{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,s.mixin)(r,n.default);t.default=r},62517:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:o}=e;const i=t(),s=o(),n=[];let r=0,a=0,l=0;for(let e=0;e<i.length;e++){const t=i[e];l>0&&a+t>=s&&(n.push({startIndex:r,endIndex:e-1,pageSize:l}),r=e,a=0,l=0),a+=t,l+=1}n.push({startIndex:r,endIndex:Math.max(0,i.length-1),pageSize:l}),this.pages=n}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},62731:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="redo"},62831:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68750);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.HiddenRows=i.HiddenRows},63340:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=r},63342:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(428));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},63464:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=o.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=i.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,r)),t.markEndSource()}}}},63545:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,i.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();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 i=o(32634),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const n=t.KEY="remove_col"},63556:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(78437),l=o(24496),h=o(42479),c=i(o(23892)),u=i(o(34706)),d=o(50151),g=i(o(40578)),f=i(o(17181)),p=i(o(55595));function m(e,t,o){w(e,t),t.set(e,o)}function w(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(y(e,t),o),o}function v(e,t){return e.get(y(e,t))}function y(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 S=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,R=t.META_COMMENT="comment",b=t.META_COMMENT_VALUE="value",_=t.META_STYLE="style",T=t.META_READONLY="readOnly",M=S,I=`plugin:${S}`;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends h.BasePlugin{constructor(){var e,t;super(...arguments),w(e=this,t=D),t.add(e),(0,s.default)(this,"range",{}),m(this,O,null),m(this,A,null),m(this,N,!1),m(this,P,!1),m(this,H,!1),m(this,x,null),m(this,k,"")}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[S]}enablePlugin(){var e=this;this.enabled||(v(O,this)||(C(O,this,new c.default(this.hot.rootDocument,this.hot.isRtl(),this.hot.rootPortalElement)),v(O,this).addLocalHook("resize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return y(D,e,G).call(e,...o)}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.hide()})),v(A,this)||C(A,this,new u.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",e=>this.addToContextMenu(e)),this.addHook("afterRenderer",(e,t,o,i,s,n)=>y(D,this,U).call(this,e,n)),this.addHook("afterScroll",()=>y(D,this,$).call(this)),this.addHook("afterBeginEditing",()=>this.hide()),this.addHook("afterDocumentKeyDown",e=>y(D,this,z).call(this,e)),this.addHook("beforeCompositionStart",e=>y(D,this,z).call(this,e)),v(A,this).addLocalHook("hide",()=>this.hide()),v(A,this).addLocalHook("show",(e,t)=>this.showAtCell(e,t)),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){v(A,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(I);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeActive();C(P,this,!0),this.hot.scrollToFocusedCell(()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(I),this.hot._registerTimeout(()=>{C(P,this,!1)})})},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight.isCell()},group:M}),o.addShortcut({keys:[["Escape"]],callback:()=>{v(O,this).setValue(v(k,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(H,this,!0),v(O,this).setValue(v(O,this).getValue()),this.setComment(),this.hide(),e.setActiveContextName("grid")},group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",e=>y(D,this,F).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>y(D,this,V).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>y(D,this,B).call(this)),this.eventManager.addEventListener(t,"focus",()=>y(D,this,j).call(this)),this.eventManager.addEventListener(t,"blur",()=>y(D,this,Y).call(this)),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",e=>y(D,this,W).call(this,e))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,n.closest)(e.target,"TD","TBODY");return!!(t&&(0,n.hasClass)(t,"htCommentCell")&&(0,n.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=v(O,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const{row:i,col:s}=y(D,this,K).call(this);this.updateCommentMeta(i,s,{[b]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);this.hot.setCellMeta(t,o,R),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const{row:e,col:t}=y(D,this,K).call(this);return this.getCommentMeta(e,t,b)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,b)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const i=this.hot.getCellMeta(t,o);return v(A,this).cancelHiding(),v(O,this).setValue(null!==(e=i[R]?i[R][b]:null)&&void 0!==e?e:""),v(O,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){v(O,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&v(O,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:o,col:i}=y(D,this,K).call(this);let s=e.getRenderableFromVisualIndex(o),r=t.getRenderableFromVisualIndex(i);const a=null===s;v(O,this).setPosition(0,0),null===s&&(s=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(o,-1))),null===r&&(r=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(i,-1)));const l=null===s,h=null===r;s=null!=s?s:0,r=null!=r?r:0;const{rootWindow:c,view:{_wt:u}}=this.hot,{wtTable:d}=u,g=u.getCell({row:s,col:r},!0),f=this.getCommentMeta(o,i,_);f?v(O,this).setSize(f.width,f.height):v(O,this).resetSize();const p=h?0:d.getColumnWidth(r),m=a&&!l?(0,n.outerHeight)(g):0,{left:w,top:C,width:S,height:E}=g.getBoundingClientRect(),{width:R,height:b}=v(O,this).getSize(),{innerWidth:M,innerHeight:I}=this.hot.rootWindow,A=this.hot.rootDocument.documentElement,N=(0,n.getScrollbarWidth)(this.hot.rootDocument),P=(0,n.hasVerticalScrollbar)(this.hot.rootWindow)?N:0,H=(0,n.hasHorizontalScrollbar)(this.hot.rootWindow)?N:0;let x=w+c.scrollX+p,k=C+c.scrollY+m;this.hot.isRtl()&&(x-=R+p),this.hot.isLtr()&&w+S+R>M-P?x=w+c.scrollX-R-1:this.hot.isRtl()&&x<-(A.scrollWidth-A.clientWidth)&&(x=w+c.scrollX+p+1),C+b>I-H&&(k-=b-E+1),v(O,this).setPosition(x,k),v(O,this).setReadOnlyState(this.getCommentMeta(o,i,T)),v(O,this).observeSize()}focusEditor(){v(O,this).focus()}updateCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t)[R];let s;i?(s=(0,a.deepClone)(i),(0,a.deepExtend)(s,o)):s=o,this.hot.setCellMeta(e,t,R,s)}getCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t);if(i[R])return i[R][o]}addToContextMenu(e){e.items.push({name:d.SEPARATOR},(0,g.default)(this),(0,f.default)(this),(0,p.default)(this))}getEditorInputElement(){return v(O,this).getInputElement()}destroy(){var e,t;null===(e=v(O,this))||void 0===e||e.destroy(),null===(t=v(A,this))||void 0===t||t.destroy(),super.destroy()}}function V(e){if(this.hot.view&&this.hot.view._wt&&!v(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,n.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function W(e){e.stopPropagation()}function F(e){const{rootDocument:t}=this.hot;if(!(v(N,this)||v(O,this).isFocused()||(0,n.hasClass)(e.target,"wtBorder")||v(x,this)===e.target)&&v(O,this))if(C(x,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));v(A,this).show(t)}else(0,n.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&v(A,this).hide()}function B(){C(N,this,!1)}function U(e,t){t[R]&&t[R][b]&&(0,n.addClass)(e,t.commentedCellClassName)}function Y(){v(H,this)?C(H,this,!1):(C(k,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment())}function j(){C(k,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(I)}function G(e,t){const{row:o,col:i}=y(D,this,K).call(this);this.updateCommentMeta(o,i,{[_]:{width:e,height:t}})}function z(e){v(O,this).isFocused()&&(0,r.stopImmediatePropagation)(e)}function $(){v(P,this)||this.hide()}function K(){return this.range instanceof l.CellRange?this.range.highlight:this.hot._createCellCoords(this.range.from.row,this.range.from.col)}t.Comments=L},63636:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(29213),r=o(68547);t.ViewDiffer=class{constructor(e){(0,s.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let i=Math.max(o,t);if(0===i)return[];const{currentOffset:s,nextOffset:a}=e.getViewSize(),l=new r.ViewOrder(s,t),h=new r.ViewOrder(a,o),c=[];for(let t=0;t<i;t++){const s=l.get(t),r=h.get(t);if(-1===r)c.push(["remove",s]);else if(-1===s)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",r]):c.push(["prepend",r]);else if(r>s)l.has(r)&&(l.remove(r),o<=l.length&&(i-=1)),c.push(["replace",r,s]);else if(r<s){const e=l.prepend(r);c.push(["insert_before",r,s,e])}else c.push(["none",r])}return c}}},64172:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(76651),r=o(99586),a=i(o(75949)),l=i(o(90235)),h=o(68234),c=i(o(12010)),u=i(o(84234)),d=o(59719),g=o(3226);t.default=class{constructor(e,t,o,i,r){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===r,this.name=r,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=i,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,n.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 a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),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,n.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,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.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,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,n.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,n.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.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:i}=this.dataAccessObject,s=t.getSetting("totalRows"),r=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,n.offset)(this.holder),f=i.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,n.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,g),this.columnFilter=new a.default(t,r,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")||i.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 i=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,r,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,s=this.getColumnHeaderHeight(o),r=this.getColumnHeader(t,o),r&&(a=(0,n.innerHeight)(r),(!s&&i<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),Array.isArray(l)?null!==l[o]&&void 0!==l[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(l[o]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let i=0,s=e.getSetting("columnHeaders").length;i<s;i++)if(o[i]){if(!t[i]||0===t[i].childNodes.length)return;t[i].childNodes[0].style.height=`${o[i]}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 i=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(i&&Array.isArray(i)&&([t,o]=i),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const n=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!n&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return n}getRow(e){let t=null,o=null;var i,s;e<0?(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.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 i=e.childNodes[o];i&&t.push(i)}),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),i=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,s=(o<0?this.THEAD:this.TBODY).childNodes[i];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let i=0;i<o;i++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==o?void 0:o.childNodes[i];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,n.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const i=o.parentNode;let s=(0,n.index)(o),r=t.cellIndex;if((0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===i.nodeName&&(s-=i.childNodes.length);else if((0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-i.childNodes.length+s}else i===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?r=this.columnFilter.offsettedTH(r):this.columnFilter&&(r=this.columnFilter.visibleRowHeadedColumnToSourceColumn(r));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,r);return a&&Array.isArray(a)&&([s,r]=a),this.wot.createCellCoords(s,r)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),i=(0,n.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),r=s?n.outerHeight:n.innerHeight,a=s?0:1,l=s?1:0;let h,c,u,d,g;if(o!==i||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?l:0;c=g?r(g):r(d)-a,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(s||(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,n.outerWidth)(this.TABLE)}getHeight(){return(0,n.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,n.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,n.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,n.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,r.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}}},64326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new n(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 n(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,i=this.first;for(;i;){if(i.data===e)return t=i.next,o=i.prev,t&&(t.prev=o),o&&(o.next=t),i===this.first&&(this.first=t),i===this.last&&(this.last=o),!0;i=i.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}}},64334:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=o(43641),n=i(o(11558)),r=i(o(66847));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",n.default),h("substitute",r.default)},64380:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(n)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,n,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=r,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e};var s=i(o(86798));const n="DD/MM/YYYY";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},64536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(23154);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TouchScroll=i.TouchScroll},64649:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},64721:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},64854:(e,t,o)=>{"use strict";var i=o(11127),s=Math.max,n=Math.min;e.exports=function(e,t){var o=i(e);return o<0?s(o+t,0):n(o,t)}},64945:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},64956:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(94857),l=o(57455),h=o(78437),c=m(o(8278)),u=o(24293),d=m(o(96)),g=o(5476),f=o(90370),p=o(76742);function m(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(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,s.default)(this,"name",""),(0,s.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,S).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>C(v,this,E).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,a.arrayEach)(e.args,(e,o)=>{if(o>t.inputsCount-1)return!1;const i=this.getInputElement(o);i.setValue(e),i[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout(()=>i.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(o,i)=>{e.inputsCount>i&&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,a.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,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,n.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.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,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function S(e){(0,a.arrayEach)(this.getInputElements(),(t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function E(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e))}t.ConditionComponent=y},65022:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(79356)),n=o(76651);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=r},65146:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},65166:t=>{"use strict";t.exports=e},65192:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(22588),o(81396),o(19874);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(14251);const n=t.OPERATION_ID="disjunctionWithExtraCondition",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(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,s.registerOperation)(n,r,a)},65688:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),r=o(76742);const a=t.CONDITION_NAME="date_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},65725:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(34149);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 a(e,t){return e.get(h(e,t))}function l(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;t.default=class{constructor(e,t,o,i,n,a){(0,s.default)(this,"row",void 0),(0,s.default)(this,"col",void 0),(0,s.default)(this,"rowspan",void 0),(0,s.default)(this,"colspan",void 0),(0,s.default)(this,"removed",!1),(0,s.default)(this,"cellCoordsFactory",void 0),(0,s.default)(this,"cellRangeFactory",void 0),r(this,c,null),this.row=e,this.col=t,this.rowspan=o,this.colspan=i,this.cellCoordsFactory=n,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:o,rowspan:i,colspan:s}=e;return n.toSingleLine`The merged cell declared with {row: ${t}, col: ${o},\x20
|
|
80
|
+
This combination is not supported. The plugin will remain disabled.`),o})};var i=o(34149),s=o(49581);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},46808:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.checkedTemplate,a=t.uncheckedTemplate,{sortEmptyCells:l}=o;return function(h,c){const u=(0,n.isEmpty)(h),d=(0,n.isEmpty)(c),g=u?a:h,f=d?a:c,p=g===a||g===r,m=f===a||f===r;if(!1===l){if(u&&!1===d)return i.FIRST_AFTER_SECOND;if(!1===u&&d)return i.FIRST_BEFORE_SECOND}return!1===p&&m?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:p&&!1===m?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!1===p&&!1===m?(0,s.compareFunctionFactory)(e,t,o)(h,c):g===a&&f===r?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:g===r&&f===a?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP}};var i=o(688),s=o(6888),n=o(26599);t.COLUMN_DATA_TYPE="checkbox"},46842:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(79060);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Pagination=i.Pagination},46924:(e,t,o)=>{"use strict";var i=o(771);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},47138:(e,t,o)=>{"use strict";var i=o(24755),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},47145:(e,t,o)=>{"use strict";var i=o(21912),s=o(89035),n=o(59899);e.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},47151:(e,t,o)=>{"use strict";var i=o(21375),s=o(61338),n=o(91945),r=o(35097),a=o(71671)("iterator");e.exports=function(e){if(!n(e))return s(e,a)||s(e,"@@iterator")||r[i(e)]}},47183:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(13234),h=o(39522),c=o(13479),u=o(58719),d=o(43832),g=o(57625),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,i=this.mapper;;){if(t=this.inner)try{if(!(e=r(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=r(s(this.next,o)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}});i({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return p?s(p,this,e):new w(a(this),{mapper:e,inner:null})}})},47229:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,U.registerPlugin)(i.AutoColumnSize),(0,U.registerPlugin)(s.Autofill),(0,U.registerPlugin)(n.AutoRowSize),(0,U.registerPlugin)(a.BindRowsWithHeaders),(0,U.registerPlugin)(l.CollapsibleColumns),(0,U.registerPlugin)(h.ColumnSorting),(0,U.registerPlugin)(c.ColumnSummary),(0,U.registerPlugin)(u.Comments),(0,U.registerPlugin)(d.ContextMenu),(0,U.registerPlugin)(g.CopyPaste),(0,U.registerPlugin)(f.CustomBorders),(0,U.registerPlugin)(p.DragToScroll),(0,U.registerPlugin)(m.DropdownMenu),(0,U.registerPlugin)(w.ExportFile),(0,U.registerPlugin)(C.Filters),(0,U.registerPlugin)(v.Formulas),(0,U.registerPlugin)(y.HiddenColumns),(0,U.registerPlugin)(S.HiddenRows),(0,U.registerPlugin)(E.ManualColumnFreeze),(0,U.registerPlugin)(R.ManualColumnMove),(0,U.registerPlugin)(b.ManualColumnResize),(0,U.registerPlugin)(_.ManualRowMove),(0,U.registerPlugin)(T.ManualRowResize),(0,U.registerPlugin)(M.MergeCells),(0,U.registerPlugin)(I.MultiColumnSorting),(0,U.registerPlugin)(O.MultipleSelectionHandles),(0,U.registerPlugin)(A.NestedHeaders),(0,U.registerPlugin)(N.NestedRows),(0,U.registerPlugin)(P.Pagination),(0,U.registerPlugin)(H.PersistentState),(0,U.registerPlugin)(x.Search),(0,U.registerPlugin)(k.StretchColumns),(0,U.registerPlugin)(D.TouchScroll),(0,U.registerPlugin)(L.TrimRows),(0,U.registerPlugin)(V.UndoRedo),(0,U.registerPlugin)(W.Dialog),(0,U.registerPlugin)(F.Loading),(0,U.registerPlugin)(B.EmptyDataState)};var i=o(88886);t.AutoColumnSize=i.AutoColumnSize;var s=o(7796);t.Autofill=s.Autofill;var n=o(1402);t.AutoRowSize=n.AutoRowSize;var r=o(42479);t.BasePlugin=r.BasePlugin;var a=o(94366);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=o(70641);t.CollapsibleColumns=l.CollapsibleColumns;var h=o(99048);t.ColumnSorting=h.ColumnSorting;var c=o(51964);t.ColumnSummary=c.ColumnSummary;var u=o(45024);t.Comments=u.Comments;var d=o(26746);t.ContextMenu=d.ContextMenu;var g=o(36250);t.CopyPaste=g.CopyPaste;var f=o(1316);t.CustomBorders=f.CustomBorders;var p=o(15576);t.DragToScroll=p.DragToScroll;var m=o(29328);t.DropdownMenu=m.DropdownMenu;var w=o(92326);t.ExportFile=w.ExportFile;var C=o(79385);t.Filters=C.Filters;var v=o(78865);t.Formulas=v.Formulas;var y=o(96789);t.HiddenColumns=y.HiddenColumns;var S=o(62831);t.HiddenRows=S.HiddenRows;var E=o(67289);t.ManualColumnFreeze=E.ManualColumnFreeze;var R=o(29099);t.ManualColumnMove=R.ManualColumnMove;var b=o(43458);t.ManualColumnResize=b.ManualColumnResize;var _=o(10441);t.ManualRowMove=_.ManualRowMove;var T=o(7884);t.ManualRowResize=T.ManualRowResize;var M=o(26643);t.MergeCells=M.MergeCells;var I=o(67);t.MultiColumnSorting=I.MultiColumnSorting;var O=o(73335);t.MultipleSelectionHandles=O.MultipleSelectionHandles;var A=o(11797);t.NestedHeaders=A.NestedHeaders;var N=o(21956);t.NestedRows=N.NestedRows;var P=o(46842);t.Pagination=P.Pagination;var H=o(45052);t.PersistentState=H.PersistentState;var x=o(37090);t.Search=x.Search;var k=o(19826);t.StretchColumns=k.StretchColumns;var D=o(64536);t.TouchScroll=D.TouchScroll;var L=o(60599);t.TrimRows=L.TrimRows;var V=o(80716);t.UndoRedo=V.UndoRedo;var W=o(22362);t.Dialog=W.Dialog;var F=o(32310);t.Loading=F.Loading;var B=o(91636);t.EmptyDataState=B.EmptyDataState;var U=o(3182);t.registerPlugin=U.registerPlugin,t.getPlugin=U.getPlugin,t.getPluginsNames=U.getPluginsNames},47572:(e,t,o)=>{"use strict";o(13348),o(60225)},47646:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,i]=t;this.calculationResults.set(o,i),i.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,i]=o;return i.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},47700:(e,t)=>{"use strict";t.__esModule=!0;t.ACTIVE_HEADER_TYPE="active-header",t.HEADER_TYPE="header",t.AREA_TYPE="area",t.FOCUS_TYPE="focus",t.FILL_TYPE="fill",t.ROW_TYPE="row",t.COLUMN_TYPE="column",t.CUSTOM_SELECTION_TYPE="custom-selection"},47730:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(81124),o(88633),o(14618),o(19874);var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((o,i)=>o.includes(e)&&t(o,i))}findAll(e){const t=[];return this.ranges.forEach((o,i)=>{o.isEqual(e)&&t.push({range:o,layer:i})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,o)=>!e.includes(o)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new n(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,o)=>e(t,o)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=n},47812:(e,t,o)=>{"use strict";var i=o(82397).f;e.exports=function(e,t,o){o in e||i(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},47866:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.ViewSize=class{constructor(){(0,s.default)(this,"currentSize",0),(0,s.default)(this,"nextSize",0),(0,s.default)(this,"currentOffset",0),(0,s.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},47920:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);var i=o(76651),s=o(78437),n=o(21797);t.default=class{constructor(e,t,o,i,s){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=s,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,i.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let i;if(o===t){const t=this.wtSettings.getSetting("totalColumns");i=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>i&&(i=e.documentElement.clientWidth)}else i=o.clientWidth;return i}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,o=e.clientHeight,i=t.offsetHeight;return o<i||i>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,o=this.hasVerticalScroll()?(0,i.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-o}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,i=e;for(;i<t;)o+=this.wtTable.getColumnWidth(i),i+=1;return o}getWorkspaceOffset(){return(0,i.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,i.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,i=t.length;o<i;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)e?(this.rowHeaderWidth+=(0,i.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s,r,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=r,a-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=r),s=o.holder.clientHeight===o.holder.offsetHeight?0:(0,i.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:s})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);r+=e,s-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:s,scrollOffset:r,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),i=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible"),i=o.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,i)}if(e&&!t.getSetting("renderAllColumns")){const t=i.getResultsFor("fullyVisible"),o=i.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,o)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=i.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=i.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=i.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:o,endRow:i}=e;const{startRow:s,endRow:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(s)&&!this.wtTable.isRowAfterRenderedRows(n))return!0;o=s,i=n}const{startRow:r,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:o,endColumn:i}=e;const{startColumn:s,endColumn:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(s)&&!this.wtTable.isColumnAfterRenderedColumns(n))return!0;o=s,i=n}const{startColumn:r,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}resetHasOversizedColumnHeadersMarked(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},48237:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(654);var s=i(o(72123)),n=o(74125),r=o(59195),a=o(97819),l=o(95820),h=o(9041),c=o(730),u=o(95220),d=o(24496);function g(e,t){const o=new s.default(e,t||{},n.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 s.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,r.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="17/11/2025 15:09:06",g.version="16.2.0-next-7d068f5-20251117",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},48442:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(88633),o(14618),o(39716);var s=i(o(81115)),n=o(42479),r=o(97819),a=i(o(13434)),l=i(o(65725)),h=i(o(88226)),c=i(o(97100)),u=i(o(27323)),d=o(94857),g=o(78437),f=o(49581),p=o(58639),m=o(76651),w=o(12108),C=o(59375),v=o(85180),y=o(57806);function S(e,t,o){E(e,t),t.set(e,o)}function E(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")}r.Hooks.getSingleton().register("beforeMergeCells"),r.Hooks.getSingleton().register("afterMergeCells"),r.Hooks.getSingleton().register("beforeUnmergeCells"),r.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakSet;class x extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=H),t.add(e),(0,s.default)(this,"mergedCellsCollection",null),(0,s.default)(this,"autofillCalculations",null),(0,s.default)(this,"selectionCalculations",null),S(this,O,null),S(this,A,{row:0,col:0}),S(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),S(this,P,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new a.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),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,L).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,W).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,G).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,z).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(P,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,K).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ie).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,se).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ne).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,re).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:i}=e;for(let e=o+1;e<o+i;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 i=t.getRow(o);i&&(i.style.background=(0,m.getStyle)(i,"backgroundColor").replace(")",", 0.99)"),e.push(i))})}),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&&(l.default.containsNegativeValues(e)?((0,f.warn)(l.default.NEGATIVE_VALUES_WARNING(e)),!1):l.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(l.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):l.default.isSingleCell(e)?((0,f.warn)(l.default.IS_SINGLE_CELL(e)),!1):!l.default.containsZeroSpan(e)||((0,f.warn)(l.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:i,rowspan:s,colspan:n}=e,r=this.hot._createCellCoords(t,i),a=this.hot._createCellCoords(t+s-1,i+n-1),l=this.hot._createCellRange(r,r,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+s;e++)for(let s=i;s<i+n;s++)e===t&&s===i||o.push([e,s,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.getSelectedRangeActive();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.getSelectedRangeActive();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 i=e.getTopStartCorner(),s=e.getBottomEndCorner(),n={row:i.row,col:i.col,rowspan:s.row-i.row+1,colspan:s.col-i.col+1},r=[];let a=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,e=>{(0,p.rangeEach)(0,n.colspan-1,t=>{let o=null;r[e]||(r[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),r[e][t]=o})}),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?a=[n.row,n.col,r]:this.hot.populateFromArray(n.row,n.col,r,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),a)}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(),i=this.mergedCellsCollection.get(t.row,t.col);i.row===t.row&&i.col===t.col&&i.row+i.rowspan-1===o.row&&i.col+i.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.mergeRange(this.hot._createCellRange(s,s,n))}unmerge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.unmergeRange(this.hot._createCellRange(s,s,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeActive();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,i=o.getVisualFromRenderableIndex(e.startRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(i<e.startRow)return e.startRow=i,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.endRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=n.row+n.rowspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.startColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(i<e.startColumn)return e.startColumn=i,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.endColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=n.col+n.colspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,i){const{rowIndexMapper:s,columnIndexMapper:n}=this.hot;let r,a;r=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),a=0===i?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+i-1,-1);return[e>=0?s.getRenderableFromVisualIndex(r):e,o>=0?n.getRenderableFromVisualIndex(a):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeActive(),o=t.getTopStartCorner(),i=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&i.row===e[t].row+e[t].rowspan-1&&i.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(A,this).row=e.row,b(A,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeActive(),{highlight:o}=t,{columnIndexMapper:i,rowIndexMapper:s}=this.hot;b(O,this)&&(null!==s.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==i.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const r=n.col,a=n.col+n.colspan-1;if(e.col<0){const t=o.col>=r&&o.col<=a?r-1:a,s=i.getNearestNotHiddenIndex(t,-1);e.col=null===s?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(s,o.col)-1,1)}else if(e.col>0){const t=o.col>=r&&o.col<=a?a+1:r,s=i.getNearestNotHiddenIndex(t,1);e.col=null===s?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,s)-1,1)}const l=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=l&&o.row<=h?l-1:h,i=s.getNearestNotHiddenIndex(t,-1);e.row=null===i?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(i,o.row)-1,1)}else if(e.row>0){const t=o.row>=l&&o.row<=h?h+1:l,i=s.getNearestNotHiddenIndex(t,1);e.row=null===i?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,i)-1,1)}}function W(e){const t=this.hot.getSelectedRangeActive(),o=t.clone(),{to:i}=t,{columnIndexMapper:s,rowIndexMapper:n}=this.hot,r=(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 n=this.mergedCellsCollection.getStartMostColumnIndex(t,i.col)+e.col;r(i.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const a=s.getNearestNotHiddenIndex(n,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,i.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,i.col)+e.col;r(i.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const a=s.getNearestNotHiddenIndex(n,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(i.col,a)-1,1))}if(e.row<0){let s=this.mergedCellsCollection.getTopMostRowIndex(t,i.row)+e.row;r(s,i.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(s=o.getTopStartCorner().row);const a=n.getNearestNotHiddenIndex(s,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,i.row)-1,1))}else if(e.row>0){let s=this.mergedCellsCollection.getBottomMostRowIndex(t,i.row)+e.row;r(s,i.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(s=o.getBottomStartCorner().row);const a=n.getNearestNotHiddenIndex(s,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(i.row,a)-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,i){if(e<0||t<0)return;const s=this.mergedCellsCollection.get(e,t);if(!s)return;const{row:n,col:r,colspan:a,rowspan:l}=s,h=n,c=r,u=n+l-1,d=r+a-1;if("render"===i&&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.getSelectedRangeActive(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),i=b(O,this).clone().normalize();b(N,this).setActiveNode(i.row,i.col),b(A,this).row>0||b(A,this).col>0?b(N,this).setPrevNodeAsActive():("E-W"===o&&b(A,this).col<0||"S-N"===t&&b(A,this).row<0)&&b(N,this).setNextNodeAsActive()}function G(e,t){const{columnIndexMapper:o,rowIndexMapper:i}=this.hot;let s=this.hot.getActiveSelectionLayerIndex(),n=null,r=null;if(b(A,this).col<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevHorizontalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).col>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextHorizontalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}else if(b(A,this).row<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevVerticalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).row>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextVerticalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}if(null!==n||null!==r){this.hot.selection.setActiveSelectionLayerIndex(s);const o=this.hot.getSelectedRangeActive(),i=this.hot._createCellCoords(n,r),a=this.mergedCellsCollection.get(i.row,i.col),l=this.hot.selection.highlight.getFocus();e=i.row,t=i.col,a?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(a.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(a.col,1)}):o.highlight.assign(i),l.clear(),l.add(i).commit()}b(N,this).setActiveNode(e,t,s),R(A,this,{row:0,col:0})}function z(){b(N,this).buildFocusOrder(this.hot.getSelectedRange())}function $(e,t,o){const i=this.mergedCellsCollection.get(e,t);i&&(i.row!==e||i.col!==t?o.copyable=!1:(o.rowspan=i.rowspan,o.colspan=i.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 i=this.hot._createCellCoords(t[0],t[1]),s=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(i,i,s),r=this.mergedCellsCollection.getWithinRange(n);return 0===r.length?e:this.autofillCalculations.snapDragArea(t,e,o,r)}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.getSelectedRangeActive(),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 ie(e,t,o,i){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,i)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function ne(e,t,o,i){if(!(i instanceof MouseEvent))return;const s=this.hot.getSelectedRangeActive(),n=this.mergedCellsCollection.getByRange(s);if(!n)return;const r=this.hot._createCellCoords(n.row,n.col),a=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&s.isEqual(this.hot._createCellRange(r,r,a))}function re(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let i,s;if("master"===o)i=this.hot.getFirstRenderedVisibleColumn(),s=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,i))return e;const n=this.hot._createCellCoords(t,i),r=this.hot._createCellCoords(t,s),a=this.hot._createCellRange(n,n,r),l=this.mergedCellsCollection.getWithinRange(a,!0),h=l.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return l.length>1&&l[0].rowspan<h&&(c=h-l[0].rowspan),l.forEach(i=>{let{rowspan:s}=i,n=0;n="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):s-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,n))}),e}t.MergeCells=x},48446:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(14618);var s=o(42479),n=o(76651),r=o(58639),a=o(94857),l=o(50151),h=o(97819),c=i(o(6307)),u=i(o(16026)),d=o(32435);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("beforeHideColumns"),h.Hooks.getSingleton().register("afterHideColumns"),h.Hooks.getSingleton().register("beforeUnhideColumns"),h.Hooks.getSingleton().register("afterUnhideColumns");const w=t.PLUGIN_KEY="hiddenColumns",C=t.PLUGIN_PRIORITY=310;var v=new WeakMap,y=new WeakSet;class S extends s.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,columns:[]}}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.columnIndexMapper.registerMap(this.pluginName,f(v,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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("modifyColWidth",(e,t)=>m(y,this,E).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),o=this.isValidConfig(e);let i=t;const s=f(v,this).getValues().slice(),n=e.length>0;if(o&&n){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(this.hot.toVisualColumn(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,i,o&&n)&&(o&&n&&f(v,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,i,o&&n,o&&i.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,i,o,o&&i.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(f(v,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return f(v,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipColumnOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function E(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function R(e,t,o){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(o.skipColumnOnPaste=!0),this.isHidden(t-1))o.className=o.className||"",-1===o.className.indexOf("afterHiddenColumn")&&(o.className+=" afterHiddenColumn");else if(o.className){const e=o.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),o.className=e.join(" ")}}}function b(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],o=(e,o,i,s)=>{t.push({startRow:e,endRow:o,startCol:i,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,i=0;(0,r.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||o(e.startRow,e.endRow,i,s-1),t=!0):(t&&(i=s),s===e.endCol&&o(e.startRow,e.endRow,i,s),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const o=[];e>=1&&this.isHidden(e-1)&&o.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&o.push("beforeHiddenColumn"),(0,n.addClass)(t,o)}function T(e){e.items.push({name:l.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=S},48538:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(14618),o(19874);var n=o(94857),r=o(52411),a=o(89195),l=i(o(86248)),h=o(78437),c=o(26599),u=o(54283);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new r.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)}),this.trimmingMapsCollection.addLocalHook("change",e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)}),this.hidingMapsCollection.addLocalHook("change",e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)}),this.variousMapsCollection.addLocalHook("change",e=>{this.runLocalHooks("change",e,this.variousMapsCollection)})}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,r.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof r.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof r.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const i=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?i.findIndex(t=>t>e):i.reverse().findIndex(t=>t<e),-1===s?o?this.getNearestNotHiddenIndex(e,-t,!1):null:i[s]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map(t=>t+e);this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isTrimmed(e))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isHidden(e))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter(e=>!1===this.isHidden(e))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,n.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),i=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,r.getListWithRemovedItems)(this.getIndexesSequence(),o),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<i){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,r.getListWithInsertedItems)(a,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const i=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(i)?i:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(i)?this.getIndexesSequence().indexOf(i):this.getNumberOfIndexes(),a=(0,n.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,a),this.indexesChangeSource=void 0;const l="end"===o?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(r,l),this.hidingMapsCollection.insertToEvery(r,l),this.variousMapsCollection.insertToEvery(r,l),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,l.default)},48651:(e,t,o)=>{"use strict";var i=o(21375),s=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},48744:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){const o=e.countRows(),i=e.getSettings().minSpareRows;this.index>=o&&this.index-i<o&&(this.index-=i),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=r},49095:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029);t.default=class{constructor(e){(0,s.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,e,e)}}},49146:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${r}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htLeft";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htCenter";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htRight";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htJustify";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{name:s.KEY},{key:`${r}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htTop";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htBottom";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1}]}}};var i=o(32971),s=o(73192),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const r=t.KEY="alignment"},49262:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(i.row,s.row,o),t.markEndSource()}}},49456:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).add,n=o(96938),r=o(29521),a=o(82719);e.exports=function(e){var t=i(this),o=r(e).getIterator(),l=n(t);return a(o,function(e){s(l,e)}),l}},49510:(e,t,o)=>{"use strict";var i=o(14326),s=o(24755),n=TypeError;e.exports=function(e){if(i(e))return e;throw new n(s(e)+" is not a function")}},49581:(e,t,o)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,i.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,i.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,i.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,i.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,i.isDefined)(console)&&console.warn(...arguments)};var i=o(26599)},49669:(e,t)=>{"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},49731:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(73652));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,n.extend)(o,t),(0,r.extendByMetaType)(o,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,r.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},49979:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).has,n=o(54230),r=o(29521),a=o(82719),l=o(13479);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},50148:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var i=o(28454),s=o(76651),n=o(58639);const r=t.RENDERER_TYPE="password";function a(e,t,o,r,a,l,h){i.textRenderer.apply(this,[e,t,o,r,a,l,h]);const c=h.hashLength||t.innerHTML.length,u=h.hashSymbol||"*";let d="";(0,n.rangeEach)(c-1,()=>{d+=u}),(0,s.fastInnerHTML)(t,d)}a.RENDERER_TYPE=r},50151:(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,i.objectEach)(v,(t,o)=>{e[o]=t()}),e};var i=o(78437),s=w(o(49146));t.ALIGNMENT=s.KEY;var n=w(o(2224));t.CLEAR_COLUMN=n.KEY;var r=w(o(45272));t.COLUMN_LEFT=r.KEY;var a=w(o(77915));t.COLUMN_RIGHT=a.KEY;var l=w(o(59453));t.READ_ONLY=l.KEY;var h=w(o(62731));t.REDO=h.KEY;var c=w(o(63545));t.REMOVE_COLUMN=c.KEY;var u=w(o(97943));t.REMOVE_ROW=u.KEY;var d=w(o(7810));t.ROW_ABOVE=d.KEY;var g=w(o(32510));t.ROW_BELOW=g.KEY;var f=w(o(73192));t.SEPARATOR=f.KEY;var p=w(o(99038));t.NO_ITEMS=p.KEY;var m=w(o(81501));function w(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(w=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(e,t)}t.UNDO=m.KEY;const C=t.ITEMS=[d.KEY,g.KEY,r.KEY,a.KEY,n.KEY,u.KEY,c.KEY,m.KEY,h.KEY,l.KEY,s.KEY,f.KEY,p.KEY],v={[f.KEY]:f.default,[p.KEY]:p.default,[d.KEY]:d.default,[g.KEY]:g.default,[r.KEY]:r.default,[a.KEY]:a.default,[n.KEY]:n.default,[u.KEY]:u.default,[c.KEY]:c.default,[m.KEY]:m.default,[h.KEY]:h.default,[l.KEY]:l.default,[s.KEY]:s.default}},51377:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let n,r=0,a=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(s))e=e.replace(s,""),r+=1,t[a][r]="";else if(e.match(o))e=e.replace(o,""),r=0,a+=1,t[a]=[""];else{let o="";if(e.startsWith('"')){let t=0,i=!0;for(;i;){const s=e.slice(0,1);'"'===s&&(t+=1),o+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(i=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(i);o=t?t[0]:"",e=e.slice(o.length)}t[a][r]=o}return t},t.stringify=function(e){let t,o,i,s,n,r="";for(t=0,o=e.length;t<o;t+=1){for(s=e[t].length,i=0;i<s;i+=1)i>0&&(r+="\t"),n=e[t][i],"string"==typeof n?n.indexOf("\n")>-1?r+=`"${n.replace(/"/g,'""')}"`:r+=n:r+=null==n?"":n;t!==o-1&&(r+="\n")}return r};const o=/^(\r\n|\n\r|\r|\n)/,i=/^[^\t\r\n]+/,s=/^\t/},51472:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(93911);t.CELL_TYPE=i.CELL_TYPE,t.NumericCellType=i.NumericCellType},51637:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const o=e._getEditorManager();o.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),o.moveSelectionAfterEnter(t)}}},51670:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(14618);var s=o(94857),n=i(o(79596)),r=i(o(28752)),a=o(74419),l=o(14548),h=o(27783);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 n.default),c(this,p,new r.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,l.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.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,l.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const i=e(o.data);void 0!==i&&t.push(i)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const i=d(p,this).getNode(t,o);let s;return i&&(s=(0,a.triggerNodeModification)(e,i,o),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))),s}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,i;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(i=d(m,this)[e])||void 0===i?void 0:i[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 i=!1,s=null;for(let n=e;n<=t;n++){const r=d(p,this).getRootByColumn(n);if(!r)break;i=!0,r.walkDown(i=>{const{columnIndex:n,headerLevel:r,origColspan:a,isHidden:l}=i.data;l||a<=o&&n>=e&&n+a-1<=t&&(null===s||r<s)&&(s=r)},h.TRAVERSAL_DF_PRE)}return i&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(i)return t;let s=t-1;for(;s>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,s))&&void 0!==n?n:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var o;const{isRoot:i,origColspan:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(i)return t+s-1;let n=t+1;for(;n<this.getColumnsCount();){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,n))&&void 0!==r?r:{isRoot:!0};if(t)break;n+=1}return n-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()}}},51736:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(37637),o(81396),o(39691),o(81124),o(82101),o(14618),o(39716);var s=i(o(81115)),n=o(82936),r=o(94857),a=o(78437),l=o(76651),h=o(26599),c=o(73983),u=o(57455),d=o(28454),g=o(3226),f=o(99586);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(C(e,t))}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 v=t.EDITOR_TYPE="autocomplete";var y=new WeakMap,S=new WeakMap,E=new WeakSet;class R extends n.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=E),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),p(this,y,this.hot.guid.slice(0,9)),p(this,S,(0,f.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return v}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(C(E,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${w(y,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>C(E,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,i=null==o?void 0:o.length,{row:s,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,n,r,a,c,u)=>{(0,d.textRenderer)(e,s,n,r,a,c,u);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,h.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...o?[(0,g.A11Y_SETSIZE)(i)]:[],...o?[(0,g.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${r}`]]),s.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},i=this.htEditor.getCell(e,o,!0);null!==i?t(i):this.htEditor.addHookOnce("afterScrollVertically",()=>{const i=this.htEditor.getCell(e,o,!0);t(i)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${w(y,this)}-listbox-${s}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,o){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,o)}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,n=this.stripValueIfNeeded(this.getValue()),a=C(E,this,_).call(this,n)?n.value:n;let u=null,d=e;i||(d=d.toSorted());const g=[],f=this.cellProperties.locale,p=this.cellProperties.filteringCaseSensitive,m=p?a:a.toLocaleLowerCase(f);for(let e=0;e<d.length;e++){const t=C(E,this,_).call(this,d[e])?(0,c.stripTags)((0,h.stringify)(d[e].value)):(0,c.stripTags)((0,h.stringify)(d[e]));if(-1!==(p?t:t.toLocaleLowerCase(f)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?n.length>0&&(u=g[0]):(d=g.map(e=>d[e]),u=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,r.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(u)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:o,spaceBelow:i}=e;return this.limitDropdownIfNeeded(t?o:i),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let o=0,i=0,s=null;do{i=this.htEditor.stylesHandler.getDefaultRowHeight(),o+=i}while(o<e);s=o-i,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(o-i)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,o=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:o}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>C(E,this,_).call(this,e))?e.map(e=>({key:o(e.key),value:o(e.value)})):e.map(e=>o(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function b(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},51964:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(46198);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ColumnSummary=i.ColumnSummary},52072:(e,t,o)=>{"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){a.get(e.type)({isShiftKey:e.shiftKey,isLeftClick:(0,i.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,i.isRightClick)(e),...t})},t.mouseDown=s,t.mouseOver=n,t.mouseUp=r,o(81396),o(14618);var i=o(70667);function s(e){let{isShiftKey:t,isLeftClick:o,isRightClick:i,coords:s,selection:n,controller:r,cellCoordsFactory:a}=e;const l=n.isSelected()?n.getSelectedRange().current():null,h=n.isSelectedByCorner(),c=n.isSelectedByRowHeader();if(n.markSource("mouse"),t&&l)s.row>=0&&s.col>=0&&!r.cell?n.setRangeEnd(s):(h||c)&&s.row>=0&&s.col>=0&&!r.cell?n.setRangeEnd(a(s.row,s.col)):h&&s.row<0&&!r.column?n.setRangeEnd(a(l.to.row,s.col)):c&&s.col<0&&!r.row?n.setRangeEnd(a(s.row,l.to.col)):(!h&&!c&&s.col<0||h&&s.col<0)&&!r.row?n.selectRows(Math.max(l.from.row,0),s.row,s.col):(!h&&!c&&s.row<0||c&&s.row<0)&&!r.column&&n.selectColumns(Math.max(l.from.col,0),s.col,s.row);else{const e=!n.inInSelection(s),t=o||i&&e;s.row<0&&s.col>=0&&!r.column?t&&n.selectColumns(s.col,s.col,s.row):s.col<0&&s.row>=0&&!r.row?t&&n.selectRows(s.row,s.row,s.col):s.col>=0&&s.row>=0&&!r.cell?t&&n.setRangeStart(s):s.col<0&&s.row<0&&n.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}n.markEndSource()}function n(e){let{isLeftClick:t,coords:o,selection:i,controller:s,cellCoordsFactory:n}=e;if(!t)return;const r=i.isSelectedByRowHeader(),a=i.isSelectedByColumnHeader(),l=i.tableProps.countCols(),h=i.tableProps.countRows();i.markSource("mouse"),a&&!s.column?i.setRangeEnd(n(h-1,o.col)):r&&!s.row?i.setRangeEnd(n(o.row,l-1)):s.cell||i.setRangeEnd(o),i.markEndSource()}function r(e){let{isLeftClick:t,selection:o,cellRangeMapper:i}=e;if(!t||"multiple"!==o.settings.selectionMode)return;const s=o.getSelectedRange(),n=s.clone().map(e=>i.toRenderable(e)),r=n.current();if(n.size()>1&&!r.isHeader()&&!o.isMultiple(r)){const e=n.findAll(r);e.length===n.size()?(s.pop(),o.refresh()):e.length>1&&(s.removeLayers(e.map(e=>{let{layer:t}=e;return t})),o.refresh())}}const a=new Map([["touchstart",s],["touchend",r],["mousedown",s],["mouseover",n],["mouseup",r]])},52150:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const s=[];if(!1===o)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${i}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${i}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(66182),o(81396),o(81124);const i="sort"},52270:(e,t,o)=>{"use strict";var i=o(14326);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},52282:(e,t,o)=>{"use strict";var i=o(21912),s=o(33477),n=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=s(n,"name"),l=a&&"something"===function(){}.name,h=a&&(!i||i&&r(n,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},52392:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(26447);const r=t.CONDITION_NAME="neq";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},52411:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(22588);var s=o(88928);t.HidingMap=s.HidingMap;var n=o(59405);t.IndexMap=n.IndexMap;var r=o(33943);t.LinkedPhysicalIndexToValueMap=r.LinkedPhysicalIndexToValueMap;var a=o(75372);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=o(6490);t.TrimmingMap=l.TrimmingMap;var h=o(19454);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))});var c=o(5760);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});const u=new Map([["hiding",s.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",r.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},52554:(e,t,o)=>{"use strict";var i=o(94988),s=o(87681),n=Math.floor,r=i("".charAt),a=i("".replace),l=i("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,i,u,d){var g=o+e.length,f=i.length,p=c;return void 0!==u&&(u=s(u),p=h),a(d,p,function(s,a){var h;switch(r(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,o);case"'":return l(t,g);case"<":h=u[l(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>f){var d=n(c/10);return 0===d?s:d<=f?void 0===i[d-1]?r(a,1):i[d-1]+r(a,1):s}h=i[c-1]}return void 0===h?"":h})}},52576:(e,t,o)=>{"use strict";var i=o(94988),s=o(33477),n=o(56769),r=o(34341).indexOf,a=o(46049),l=i([].push);e.exports=function(e,t){var o,i=n(e),h=0,c=[];for(o in i)!s(a,o)&&s(i,o)&&l(c,o);for(;t.length>h;)s(i,o=t[h++])&&(~r(c,o)||l(c,o));return c}},52709:(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"),i=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:i,borderStyle:"solid",borderColor:s})}},52958:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742);const n=t.CONDITION_NAME="gt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},53074:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(73050),r=o(36997),a=o(76651),l=o(3226);const h=t.EDITOR_TYPE="password";class c extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"autoResize",(0,r.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,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},53269:(e,t,o)=>{"use strict";var i=o(19617),s=o(52270),n=o(497),r=o(61338),a=o(57490),l=o(71671),h=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!s(e)||n(e))return e;var o,l=r(e,c);if(l){if(void 0===t&&(t="default"),o=i(l,e,t),!s(o)||n(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},53394:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.min(i.row+e.countVisibleRows(),e.countRows()-1),n=o.getNearestNotHiddenIndex(s,-1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.min(o.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},53557:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(68671);t.getDecreasedIndexes=i.getDecreasedIndexes,t.getIncreasedIndexes=i.getIncreasedIndexes;var s=o(5760),n=o(61570);const r=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===r.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return r.get(e)}},53708:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var s=i(o(81115)),n=o(97819),r=o(78437),a=o(99586);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),n.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:i}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(i))return;const{visualRow:s,visualCol:n}=e,l=this.metaManager.hot,h=l.colToProp(n);e.prop=h,l.runHooks("beforeGetCellMeta",s,n,e);const c=(0,r.hasOwnProperty)(e,"type")?e.type:null;let u=(0,a.isFunction)(e.cells)?e.cells(o,i,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,i,u),l.runHooks("afterGetCellMeta",s,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(i)}}},54060:(e,t,o)=>{"use strict";var i,s=o(16539),n=o(16933),r=o(20155),a=o(46049),l=o(88025),h=o(59899),c=o(26075),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{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&i?m(i):(t=h("iframe"),o="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(i);for(var s=r.length;s--;)delete w[u][r[s]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=s(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},54230:(e,t,o)=>{"use strict";var i=o(90254),s=o(84990);e.exports=i(s.proto,"size","get")||function(e){return e.size}},54259:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(76651);function s(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 r(e,t){return e.get(l(e,t))}function a(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")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,s,n]=r(h,this).getCorners();if(t<0&&s<0||o<0&&n<0)return;const{wtTable:a}=r(c,this),l=t!==s||o!==n;if(o=Math.max(o,0),n=Math.max(n,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,a.getFirstRenderedColumn()),n=Math.min(n,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),n<o||s<t)return}else{const e=a.getCell(r(c,this).createCellCoords(t,o));if(!(0,i.isHTMLElement)(e))return}for(let i=t;i<=s;i+=1)for(let t=o;t<=n;t+=1)e(i,t)}function g(e){const{wtTable:t}=r(c,this),o=t.getRenderedRowsCount(),i=t.getRenderedColumnsCount();for(let s=0;s<o;s+=1){const o=t.rowFilter.renderedToSource(s);for(let s=0;s<i;s+=1)e(o,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),s(this,h,void 0),s(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=r(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedColumnsCount(),l=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<a;d++){const a=n.columnFilter.renderedToSource(d);if(!(a<o||a>s)){for(let d=-l;d<0;d++){if(d<t||d>i)continue;const g=d+l;let f=n.getColumnHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:r(h,this).settings.selectionType,columnCursor:u,selectionWidth:s-o+1});null!==p&&(p!==a&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedRowsCount(),l=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<a;d++){const a=n.rowFilter.renderedToSource(d);if(!(a<t||a>i)){for(let d=-l;d<0;d++){if(d<o||d>s)continue;const g=d+l;let f=n.getRowHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:r(h,this).settings.selectionType,rowCursor:u,selectionHeight:i-t+1});null!==p&&(p!==a&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=r(c,this);l(u,this,d).call(this,(o,s)=>{const n=t.getCell(r(c,this).createCellCoords(o,s)),a=r(c,this).getSetting("onAfterDrawSelection",o,s,r(h,this).settings.layerLevel);"string"==typeof a&&(0,i.addClass)(n,a),e(n)})}scanRowsInCellsRange(e){const[t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(s>=t&&s<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(n>=t&&n<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}}},54283:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633);var i=o(76952),s=o(96925);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 r(e,t){return e.get(l(e,t))}function a(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")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new i.ChangesObserver;return r(h,this).add(e),e.addLocalHook("unsubscribe",()=>{r(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(r(c,this),r(u,this))),e}emit(e){let t=r(u,this);r(d,this)&&r(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(r(g,this)):a(c,this,new Array(e.length).fill(r(g,this))),r(d,this)||(a(d,this,!0),t=r(c,this)));const o=(0,s.arrayDiff)(t,e);r(h,this).forEach(e=>e._write(o)),a(u,this,e)}}},54368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51377);t.parse=i.parse,t.stringify=i.stringify},54480:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("find",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return n(t,function(t,i){if(e(t,o++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},54505:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new n.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=o(24496),n=i(o(73358))},54687:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(43382),r=o(6077);const a=t.CONDITION_NAME="between";function l(e,t){let[o,i]=t,a=o,l=i;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(r.CONDITION_NAME,[l]),o=(0,s.getCondition)(n.CONDITION_NAME,[a]);return t(e)&&o(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},55210:(e,t,o)=>{"use strict";var i=o(91945),s=TypeError;e.exports=function(e){if(i(e))throw new s("Can't call method on "+e);return e}},55424:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=i(o(80674)),a=i(o(40191)),l=i(o(70445)),h=i(o(75475)),c=o(49581),u=o(91718),d=o(32435),g=o(7037),f=i(o(45571));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")}const y=t.PLUGIN_KEY="nestedRows",S=t.PLUGIN_PRIORITY=300,E=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new r.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,F).call(e,...o)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,B).call(e,...o)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,O).call(e,...o)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,A).call(e,...o)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,I).call(e,...o)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,x).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,H).call(e,...o)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,D).call(e,...o)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,L).call(e,...o)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,V).call(e,...o)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,W).call(e,...o)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,M).call(e,...o)}),this.addHook("beforeLoadData",e=>v(_,this,U).call(this,e)),this.addHook("beforeUpdateData",e=>v(_,this,U).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&-1===o.col&&o.row>=0},group:E,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,i){return this.rowMoveController.onBeforeRowMove(e,t,o,i)}function I(e,t,o){this.collapsingUI.toggleState(e,t,o)}function O(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function A(e){return this.contextMenuUI.appendOptions(e)}function N(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,i){i!==this.pluginName&&this.hot._registerTimeout(()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function x(e,t,o){const i=Array.from(o.reduce((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));o.length=0,o.push(...i)}function k(){this.collapsingUI.collapsedRowsStash.stash()}function D(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function W(){this.dataManager.rewriteCache()}function F(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},55595:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,o)=>e.getCommentMeta(t,o,n.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,o)=>{if(t>=0&&o>=0){const i=!!e.getCommentMeta(t,o,n.META_READONLY);e.updateCommentMeta(t,o,{[n.META_READONLY]:!i})}})},disabled(){const t=this.getSelectedRangeActive();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(32971),n=o(63556)},56284:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const n=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(o)),r=e=>(0,i.isObject)(e)&&(0,s.isDefined)(e.key)&&(0,s.isDefined)(e.value);if(r(n))return r(e)?e:{key:e,value:e};return e};var i=o(78437),s=o(26599)},56456:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(i.col,s.col,o),t.markEndSource()}}},56676:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(76651),r=i(o(86488)),a=o(61651),l=o(82858);class h extends a.Overlay{constructor(e,t,o,i,n,r){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,o,i),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=n,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("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),o=this.topOverlay.getOverlayOffset();(0,n.setOverlayPosition)(e,`${t}px`,`${o}px`)}else(0,n.resetCssTransform)(e);let t=(0,n.outerHeight)(this.clone.wtTable.TABLE);const o=(0,n.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${o}px`,!1}}t.TopInlineStartCornerOverlay=h},56769:(e,t,o)=>{"use strict";var i=o(20699),s=o(55210);e.exports=function(e){return i(s(e))}},56795:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437);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 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")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:i,wtViewport:s,totalColumns:r,rootWindow:a}=this.dataAccessObject;if(o.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,n.offset)(i.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(a,a));if(l>h){const t=(0,n.innerWidth)(a);let i=s.getRowHeaderWidth();for(let s=1;s<=r;s++)if(i+=o.sumCellSizes(s-1,s),l+i-h>=t){e=s-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:i,totalRows:s,rootWindow:r}=this.dataAccessObject;if(t.mainTableScrollableElement===r){const a=(0,n.offset)(o.wtRootElement),l=(0,n.getScrollTop)(r,r);if(a.top>l){const o=(0,n.innerHeight)(r);let h=i.getColumnHeaderHeight();for(let i=1;i<=s;i++)if(h+=t.sumCellSizes(i-1,i),a.top+h-l>=o){e=i-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const i=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,o);return i||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedColumnsStart:n,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedRowsBottom:n,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>i-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},56902:(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()}}},57065:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),o=e.getFirstFullyVisibleRow()-1,i=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,r=e._createCellCoords(o,i),a=e._createCellCoords(s,n);if(!e._createCellRange(r,r,a).includes(t)&&(t.row>=0||t.col>=0)){const o={};if(t.col>=0){const i=Math.floor(e.countVisibleCols()/2);o.col=Math.max(t.col-i,0)}if(t.row>=0){const i=Math.floor(e.countVisibleRows()/2);o.row=Math.max(t.row-i,0)}e.scrollViewportTo({...o,verticalSnap:"top",horizontalSnap:"start"})}}}},57103:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:r}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(r[0]);o.isCollapsed=!1;const a=r.slice(1),l=new Set;let h=0;if(a.length>0)(0,i.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:i}=o;h=t-e;for(let e=1;e<t;e++)l.add(i+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(94857),s=o(9364),n=o(31557)},57151:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=o(24496),n=i(o(73358))},57396:(e,t,o)=>{"use strict";var i=o(40136),s=o(49510),n=o(38972),r=i(i.bind);e.exports=function(e,t){return s(e),void 0===t?e:n?r(e,t):function(){return e.apply(t,arguments)}}},57440:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(85239);t.CELL_TYPE=i.CELL_TYPE,t.HandsontableCellType=i.HandsontableCellType},57455:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX):t.push(n.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[n.CONTROL,n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return r.includes(e)},t.isKey=function(e,t){const o=t.split("|");let s=!1;return(0,i.arrayEach)(o,t=>{if(e===n[t])return s=!0,!1}),s},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(66182);var i=o(94857),s=o(12108);const n=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,s.isFirefox)()?182:174,AUDIO_MUTE:(0,s.isFirefox)()?181:173,AUDIO_UP:(0,s.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},r=[n.ALT,n.ARROW_DOWN,n.ARROW_LEFT,n.ARROW_RIGHT,n.ARROW_UP,n.AUDIO_DOWN,n.AUDIO_MUTE,n.AUDIO_UP,n.BACKSPACE,n.CAPS_LOCK,n.DELETE,n.END,n.ENTER,n.ESCAPE,n.F1,n.F2,n.F3,n.F4,n.F5,n.F6,n.F7,n.F8,n.F9,n.F10,n.F11,n.F12,n.F13,n.F14,n.F15,n.F16,n.F17,n.F18,n.F19,n.HOME,n.INSERT,n.MEDIA_NEXT,n.MEDIA_PLAY_PAUSE,n.MEDIA_PREV,n.MEDIA_STOP,n.NULL,n.NUM_LOCK,n.PAGE_DOWN,n.PAGE_UP,n.PAUSE,n.SCROLL_LOCK,n.SHIFT,n.TAB]},57490:(e,t,o)=>{"use strict";var i=o(19617),s=o(14326),n=o(52270),r=TypeError;e.exports=function(e,t){var o,a;if("string"===t&&s(o=e.toString)&&!n(a=i(o,e)))return a;if(s(o=e.valueOf)&&!n(a=i(o,e)))return a;if("string"!==t&&s(o=e.toString)&&!n(a=i(o,e)))return a;throw new r("Can't convert object to primitive value")}},57596:(e,t,o)=>{"use strict";var i=o(94988),s=0,n=Math.random(),r=i(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++s+n,36)}},57625:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i.Iterator,s=o&&o.prototype,n=s&&s[e],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return n}},57678:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},57787:(e,t,o)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:o}=e,i=e.getSelectedRangeActive(),s=t.getSelectionSource(),n=o.getFirstFullyVisibleColumn(),r=o.getLastFullyVisibleColumn(),a=i.getTopStartCorner().col,l=i.getBottomEndCorner().col,h=a<=n,c=l>=r,u=o.getFirstFullyVisibleRow(),d=o.getLastFullyVisibleRow(),g=i.getTopStartCorner().row,f=i.getBottomEndCorner().row,p=g<=u,m=f>=d;return{getComputedColumnTarget:e=>"mouse"===s||"keyboard"===s?e.col:h&&c?i.highlight.col:h?a:c?l:e.col,getComputedRowTarget:e=>"mouse"===s||"keyboard"===s?e.row:p&&m?i.highlight.row:p?g:m?f:e.row}},t.scrollWindowToCell=function(e){(0,i.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var i=o(76651)},57806:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,o){const{rowIndexMapper:i,stylesHandler:s}=e;let n=0;for(let a=t;a<t+o;a++){var r;if(!i.isHidden(a))n+=null!==(r=e.getRowHeight(a))&&void 0!==r?r:s.getDefaultRowHeight(a)}return n}},57849:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(42765),r=o(43237),a=o(82539),l=o(50151),h=o(46261),c=i(o(13683)),u=o(94857),d=o(12108),g=o(76651),f=o(70667),p=o(99586),m=o(26599),w=o(78437),C=i(o(86248)),v=o(26913),y=o(3226);function S(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 E(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&&E(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,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new c.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),S(this,_,void 0),S(this,T,void 0),S(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 n.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),i=0;i<e;i++)t[i]=arguments[i];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.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}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,i=(0,u.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(i.length<1&&!o)i.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===i.length)return;i=(0,h.filterSeparators)(i,l.SEPARATOR);let s=!1;const n={data:i,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)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,i,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!s||!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,n),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),E(_,this,(0,r.createMenuNavigator)(this.hotMenu)),E(T,this,(0,a.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.getSelectedActive();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),i=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=i,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),i}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const i=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(i,[(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(),i=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,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,i=e.holder.style,s=parseInt(o.width,10),n=(0,u.arrayReduce)(t,(e,t,o)=>{const i=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===l.SEPARATOR?1:i)},0);this.hotMenu.stylesHandler.isClassicTheme()?(i.width=`${s+3}px`,i.height=`${n+3}px`):(i.width=`${s}px`,i.height=`${n}px`),o.height=i.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,i=e;return i&&((0,p.isFunction)(i)&&(i=i.call(this.hot),i=null===i||(0,m.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-Za-z0-9]/g,"_"),i=`${this.options.className}Sub_${i}`,o=t.querySelector(`.${this.options.className}.${i}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),i&&(0,g.addClass)(o,i),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)},58294:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);var i=o(70667);t.command={name:"editorOpen",callback(e,t,o){const{selection:s}=e,n=e._getEditorManager(),r=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((r.some(e=>s.isMultiple(e))||r.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const i=e.getSettings(),n="function"==typeof i.enterMoves?i.enterMoves(t):i.enterMoves;return void(o.includes("shift")?s.transformFocus(-n.row,-n.col):s.transformFocus(n.row,n.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?n.cellProperties.readOnly?n.moveSelectionAfterEnter(t):n.openEditor(null,t,!0):n.moveSelectionAfterEnter(t),(0,i.stopImmediatePropagation)(t))}}},58435:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(88216);class r extends n.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:i,startPositions:s}=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=s[this.startColumn])&&void 0!==t?t:null,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=r},58583:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(76742);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},58639:(e,t,o)=>{"use strict";function i(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.getParsedNumber=function(e){const t=e.replace(",",".");if(!1===isNaN(parseFloat(t)))return parseFloat(t);return null},t.isNumeric=i,t.isNumericLike=function(e){return i(e,[","])},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.rangeEach=function(e,t,o){let i=-1;"function"==typeof t?(o=t,t=e):i=e-1;for(;++i<=t&&!1!==o(i););},t.rangeEachReverse=function(e,t,o){let i=e+1;"function"==typeof t&&(o=t,t=0);for(;--i>=t&&!1!==o(i););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(14618)},58719:e=>{"use strict";e.exports=!1},58765:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScopeManager=function(e){const t=(0,i.createUniqueMap)({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),o=e.getShortcutManager();let l=null;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.FOCUS_SOURCES.UNKNOWN;l!==e&&(null!==l&&c(l),l=e,l.activate(t),o.setActiveContextName(e.getShortcutsContextName()))}function c(e){u(),l===e&&(l=null,e.deactivate())}function u(){const o=t.getValues(),i=o.filter(e=>e.runOnlyIf()&&"modal"===e.getType());o.forEach(t=>{i.length>0&&i.includes(t)||0===i.length||t.hasContainerDetached()?t.enable():t.disable(),t===l?t.contains(e.rootDocument.activeElement)?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function d(o,i){if(!o.isConnected||!(0,a.isVisible)(o))return;const s=t.getValues().filter(e=>e.runOnlyIf());let n=!1;s.forEach(t=>{!n&&t.contains(o)&&(n=!0,i!==r.FOCUS_SOURCES.UNKNOWN&&e.listen(),h(t,i))}),!n&&l&&(c(l),e.unlisten())}const g=(0,n.useEventListener)(e.rootWindow,{onFocus:e=>{var t;d(e.target,null!==(t=e.target.dataset.htFocusSource)&&void 0!==t?t:r.FOCUS_SOURCES.UNKNOWN)},onClick:e=>{d(e.target,r.FOCUS_SOURCES.CLICK)},onTabKeyDown:()=>{u()}});return g.mount(),{getActiveScopeId:function(){if(!l)return null;return t.getId(l)},registerScope:function(i,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.hasItem(i))throw new Error(`Scope with id "${i}" already registered`);const a=(0,s.createFocusScope)(e,n,r);t.addItem(i,a),o.getOrCreateContext(a.getShortcutsContextName())},unregisterScope:function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);t.getItem(e).destroy(),t.removeItem(e)},activateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);h(t.getItem(e))}(e),deactivateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);c(t.getItem(e))}(e),destroy:()=>g.unmount()}},o(22588),o(81396),o(81124),o(88633);var i=o(79836),s=o(5e3),n=o(94228),r=o(49669),a=o(76651)},59195:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(26657));t.DataMap=s.default;var n=i(o(82292));t.MetaManager=n.default;var r=i(o(428));t.metaSchemaFactory=r.default;var a=o(14839);t.replaceData=a.replaceData;var l=o(53708);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(95582);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},59311:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(81396),o(39691);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(14251);const n=t.OPERATION_ID="conjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},59317:(e,t,o)=>{"use strict";var i=o(13479);e.exports=function(e,t,o){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{o=i(e[s].iterator,t,o)}catch(e){t="throw",o=e}if("throw"===t)throw o;return o}},59375:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(64326));function n(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 a(e,t){return e.get(h(e,t))}function l(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){let{selectedRange:t,selectionLayer:o,listOrder:i,mergeCellsVisitor:s,row:n,column:r}=e;const l=t.getTopStartCorner(),h=t.getBottomEndCorner(),c=t.highlight.clone().normalize(),u=a(f,this).call(this,n,r);if(u&&s.has(u))return null;const d={selectionLayer:o,colStart:r,colEnd:r,rowStart:n,rowEnd:n};if(u){if(s.add(u),u.row<l.row||u.row+u.rowspan-1>h.row||u.col<l.col||u.col+u.colspan-1>h.col)return null;d.colStart=u.col,d.colEnd=u.col+u.colspan-1,d.rowStart=u.row,d.rowEnd=u.row+u.rowspan-1}const g=i.push(d);return n===c.row&&r===c.col||u&&c.row>=u.row&&c.row<=u.row+u.rowspan-1&&c.col>=u.col&&c.col<=u.col+u.colspan-1?g:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:i}=e;var a,h;r(a=this,h=w),h.add(a),n(this,c,new s.default),n(this,u,new s.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),l(f,this,t),l(p,this,o),l(m,this,i)}getCurrentVerticalNode(){return a(g,this).data}getFirstVerticalNode(){return a(u,this).first.data}getNextVerticalNode(){return a(g,this).next.data}getPrevVerticalNode(){return a(g,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(c,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(g,this,a(g,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(g,this,a(g,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){l(c,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.row;n<=s.row;n++)if(!a(p,this).isHidden(n))for(let r=i.col;r<=s.col;r++){if(a(m,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(c,this),mergeCellsVisitor:o,row:n,column:r});i&&l(d,this,i)}}),a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first),l(u,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.col;n<=s.col;n++)if(!a(m,this).isHidden(n))for(let r=i.row;r<=s.row;r++){if(a(p,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(u,this),mergeCellsVisitor:o,row:r,column:n});i&&l(g,this,i)}}),a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first)}setActiveNode(e,t,o){return a(c,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(d,this,i),!0}),a(u,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(g,this,i),!0}),this}}},59405:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639),r=o(78437),a=o(99586),l=i(o(86248));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,n.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,n.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,r.mixin)(h,l.default)},59453:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,checkable:!0,ariaChecked(){return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,i.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,i.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var i=o(32971),s=o(94857),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const r=t.KEY="make_read_only"},59494:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:o}=e;this.pageSize=Math.max(t,1),this.totalItems=o,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},59665:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(14618);var i=o(73983),s=o(70270);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 r(e,t){return e.get(l(e,t))}function a(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")}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){n(this,h,void 0),n(this,c,void 0),n(this,u,void 0),n(this,d,[]),n(this,g,[]),n(this,f,void 0),n(this,p,[]),a(h,this,e),a(c,this,t),a(u,this,o)}setRemovedHfIndexes(e){return a(p,this,e.map(e=>{const t=r(c,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),r(p,this)}getRemovedHfIndexes(){return r(p,this)}getHfIndexFromVisualIndex(e){const t=r(c,this).getIndexesSequence(),o=r(c,this).getNotTrimmedIndexes();return t.indexOf(o[e],e)}syncMoves(e){const t=`move${(0,i.toUpperCaseFirst)(r(h,this))}s`;r(u,this).getEngine().batch(()=>{e.forEach(e=>{const o=e.from!==e.to,i=e.from+1!==e.to;o&&i&&r(u,this).getEngine()[t](r(u,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,o){!1!==o&&(a(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(f,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(r(u,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const o=(0,s.getMoves)(r(g,this),r(f,this),r(c,this).getNumberOfIndexes());null===r(u,this).getSheetId()?r(u,this).getPostponeAction(()=>this.syncMoves(o)):this.syncMoves(o)}getIndexesChangeSyncMethod(){const e=`set${(0,i.toUpperCaseFirst)(r(h,this))}Order`;return t=>{if(r(u,this).isPerformingUndoRedo())return;const o=r(c,this).getIndexesSequence();if("update"===t&&o.length>0){const t=r(d,this).map(e=>o.indexOf(e)),i=r(u,this).getEngine().getSheetDimensions(r(u,this).getSheetId());let s;s="row"===r(h,this)?i.height:i.width;for(let e=t.length;e<s;e+=1)t.push(e);r(u,this).getEngine()[e](r(u,this).getSheetId(),t)}a(d,this,o)}}init(){a(d,this,r(c,this).getIndexesSequence())}}},59686:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(14618);var i=o(76651),s=o(78437),n=o(57455),r=o(99586),a=o(91718),l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),h=o(70667),c=o(42732),u=o(5476),d=o(73094),g=o(35764);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(C(e,t))}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")}const v="multipleSelect.itemBox";var y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends c.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var o,i;super(e,(0,s.extend)(M.DEFAULTS,t)),p(o=this,i=T),i.add(o),f(this,y,[]),f(this,S,void 0),f(this,E,void 0),f(this,R,void 0),f(this,b,void 0),f(this,_,void 0),w(R,this,new u.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(b,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(_,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(S,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>C(T,this,O).call(this,e)),m(R,this).addLocalHook("input",e=>C(T,this,I).call(this,e)),m(b,this).addLocalHook("click",e=>C(T,this,A).call(this,e)),m(_,this).addLocalHook("click",e=>C(T,this,N).call(this,e))}setItems(e){var t;w(y,this,e),null===(t=m(S,this))||void 0===t||t.loadData(m(y,this))}setLocale(e){w(E,this,e)}getLocale(){return m(E,this)}getItems(){return[...m(y,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(y,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(b,this)}getClearAllElement(){return m(_,this)}isSelectedAllValues(){return m(y,this).length===this.getValue().length}build(){var e;super.build();const{rootDocument:t}=this.hot,o=t.createElement("div"),s=new c.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(b,this),m(_,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(s.element),this._element.appendChild(o),null===(e=m(S,this))||void 0===e||e.destroy(),(0,i.addClass)(o,"htUIMultipleSelectHot"),w(S,this,new this.hot.constructor(o,{data:[[]],columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,o,i,s,n)=>{e.title=n.instance.getDataAtRowProp(t,n.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(S,this).listen()},modifyColWidth:e=>{const o=m(S,this).container.scrollWidth-(0,i.getScrollbarWidth)(t);return void 0!==e&&e<o?o:e},autoColumnSize:!0,autoRowSize:!1,hiddenRows:!0,maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(S,this).init();const n=m(S,this).getShortcutManager().getContext("grid");n.removeShortcutsByKeys(["Tab"]),n.removeShortcutsByKeys(["Shift","Tab"]),n.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:v}),n.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(S,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:v})}focus(){this.isBuilt()&&m(S,this).listen()}reset(){m(R,this).reset(),m(b,this).reset(),m(_,this).reset()}update(){this.isBuilt()&&0!==m(S,this).rootElement.offsetHeight&&(m(S,this).updateSettings({data:P(m(y,this),this.options.value)}),super.update())}destroy(){var e;null===(e=m(S,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(_,this).destroy(),m(b,this).destroy(),w(R,this,null),w(_,this,null),w(b,this,null),w(S,this,null),w(y,this,null),super.destroy()}}function I(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());if("apply"===this.options.searchMode){const e=m(S,this).getPlugin("hiddenRows");e.showRows(e.getHiddenRows()),m(y,this).forEach((o,i)=>{o.checked=`${o.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0,o.checked||e.hideRow(i)}),m(S,this).view.adjustElementsSize(),m(S,this).render()}else{let e;e=""===t?[...m(y,this)]:m(y,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(S,this).loadData(e)}}function O(e){this.runLocalHooks("keydown",e,this);(0,r.partial)(n.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(S,this).listen(),m(S,this).selectCell(0,0))}function A(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}function N(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}t.MultipleSelectUI=M;t.default=M;function P(e,t){const o=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=o(e.value),e))}},59719:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=o(91740);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var n=o(94956);t.BottomOverlay=n.BottomOverlay;var r=o(17608);t.InlineStartOverlay=r.InlineStartOverlay;var a=o(61651);t.Overlay=a.Overlay;var l=o(56676);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=o(3284);t.TopOverlay=h.TopOverlay;var c=o(82858);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},59839:(e,t,o)=>{"use strict";var i=o(27538),s=o(87681),n=o(69946),r=o(11127),a=o(88049);i({target:"Array",proto:!0},{at:function(e){var t=s(this),o=n(t),i=r(e),a=i>=0?i:o+i;return a<0||a>=o?void 0:t[a]}}),a("at")},59899:(e,t,o)=>{"use strict";var i=o(19596),s=o(52270),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},60054:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(95220);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,o){const s=e._getEditorManager(),n=s.getActiveEditor();n.isInFullEditMode()&&n.state===i.EDITOR_STATE.EDITING||(s.closeEditorAndSaveChanges(),e.getSelected()&&(o.includes("arrowdown")?e.selection.transformStart(1,0):o.includes("arrowup")?e.selection.transformStart(-1,0):o.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):o.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},60062:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=i(o(92484)),a=i(o(90925));function l(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",r.default],["strict",a.default]]);var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.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},60225:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(91733).set,r=o(68060),a=s.setImmediate?r(n,!1):n;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},60354:(e,t,o)=>{"use strict";o(47183)},60369:(e,t,o)=>{"use strict";var i=o(58719),s=o(19596),n=o(22381),r="__core-js_shared__",a=e.exports=s[r]||n(r,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},60599:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43662);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TrimRows=i.TrimRows},60780:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const o=r(e,n.FOCUS_SOURCES.TAB_FROM_ABOVE),i=r(e,n.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(o),t.append(i),{activate(){o.tabIndex=0,i.tabIndex=0},deactivate(){o.tabIndex=-1,i.tabIndex=-1},destroy(){o.remove(),i.remove()}}};var i=o(76651),s=o(3226),n=o(49669);function r(e,t){const o=e.rootDocument.createElement("input");return o.type="text",o.name="htFocusCatcher",o.classList.add("htFocusCatcher"),o.dataset.htFocusSource=t,e.getSettings().ariaTags&&(0,i.setAttribute)(o,[(0,s.A11Y_LABEL)("Focus catcher")]),o}},60808:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof r[e])return new r[e](t,o);return null};var s=i(o(82480));const n=t.TYPE_CSV="csv",r=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:s.default})},61089:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51736);t.EDITOR_TYPE=i.EDITOR_TYPE,t.AutocompleteEditor=i.AutocompleteEditor},61276:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i=o(57849);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},61338:(e,t,o)=>{"use strict";var i=o(49510),s=o(91945);e.exports=function(e,t){var o=e[t];return s(o)?void 0:i(o)}},61521:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639);t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:i}=this._getDataRange(),s=this.options,r=[];return(0,n.rangeEach)(e,o,e=>{const o=[];!s.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,i,t=>{!s.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),r.push(o))}),r}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),i=this.hot.getRowHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(i[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),i=this.hot.getColHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(i[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,i=0,s=t,n=e]=this.options.range;return o=Math.max(o,0),i=Math.max(i,0),s=Math.min(s,t),n=Math.min(n,e),{startRow:o,startCol:i,endRow:s,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},61570:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,s){const n=o.length?o[0]:void 0;return[...e.slice(0,n),...o.map((e,t)=>(0,i.isFunction)(s)?s(e,t):s),...void 0===n?[]:e.slice(n)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,(e,o)=>!1===t.includes(o))},o(81396),o(14618);var i=o(99586),s=o(94857)},61635:(e,t,o)=>{"use strict";var i=o(8467),s=o(94988),n=o(93428),r=o(64649),a=o(16539),l=s([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(a(e)),o=r.f;return o?l(t,o(e)):t}},61651:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437),a=o(49581),l=o(82858),h=i(o(30543)),c=o(3226);t.Overlay=class{constructor(e,t,o,i,a){(0,s.default)(this,"wtSettings",null),(0,r.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=a,this.facadeGetter=t,this.wtSettings=i;const{TABLE:l,hider:h,spreader:c,holder:u,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=o,this.mainTableScrollableElement=null,this.TABLE=l,this.hider=h,this.spreader=c,this.holder=u,this.wtRootElement=d,this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,o){if(!1===this.clone.wtTable.holder.contains(e))return void(0,a.warn)(`The provided element is not a child of the ${this.type} overlay`);const i=this.mainTableScrollableElement===this.domBindings.rootWindow,s=o<this.wtSettings.getSetting("fixedColumnsStart"),n=t<this.wtSettings.getSetting("fixedRowsTop"),r=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),l=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(l),top:l.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let u=null;return u=i?this.getRelativeCellPositionWithinWindow(n,s,c,h):this.getRelativeCellPositionWithinHolder(n,r,s,c,h),u}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,o,i){const s=this.wot.wtTable.wtRootElement.getBoundingClientRect();let r=0,a=0;if(t){let e=s.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(s.left+s.width+(0,n.getScrollbarWidth)())),r=e<=0?-1*e:0}else r=i.start;if(e){a=this.clone.wtTable.TABLE.getBoundingClientRect().top-s.top}else a=i.top;return{start:o.start+r,top:o.top+a}}getRelativeCellPositionWithinHolder(e,t,o,i,s){const n=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),r=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(o||(a=n-s.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=r-s.top);return{start:i.start-a,top:i.top-l}}makeClone(){if(-1===l.CLONE_TYPES.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=o.createElement("div"),r=o.createElement("table"),a=e.wtRootElement.parentNode;s.className=`${l.CLONE_CLASS_NAMES.get(this.type)} handsontable`,s.setAttribute("dir",this.isRtl()?"rtl":"ltr"),s.style.position="absolute",s.style.top=0,s.style.overflow="visible",this.isRtl()?s.style.right=0:s.style.left=0,t.getSetting("ariaTags")&&(0,n.setAttribute)(s,[(0,c.A11Y_PRESENTATION)()]),r.className=e.TABLE.className;e.TABLE.getAttribute("role")&&r.setAttribute("role",e.TABLE.getAttribute("role")),s.appendChild(r),a.appendChild(s);const u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===l.CLONE_TOP||"vertical"===u&&this.type===l.CLONE_INLINE_START?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE),new h.default(r,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach(e=>{e.width="",e.height=""})}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}},61989:(e,t,o)=>{"use strict";var i=o(53269),s=o(497);e.exports=function(e){var t=i(e,"string");return s(t)?t:t+""}},62103:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(78437),n=i(o(86248));class r{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,s.mixin)(r,n.default);t.default=r},62517:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:o}=e;const i=t(),s=o(),n=[];let r=0,a=0,l=0;for(let e=0;e<i.length;e++){const t=i[e];l>0&&a+t>=s&&(n.push({startIndex:r,endIndex:e-1,pageSize:l}),r=e,a=0,l=0),a+=t,l+=1}n.push({startIndex:r,endIndex:Math.max(0,i.length-1),pageSize:l}),this.pages=n}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},62731:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="redo"},62831:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68750);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.HiddenRows=i.HiddenRows},63340:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=r},63342:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(428));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},63464:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=o.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=i.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,r)),t.markEndSource()}}}},63545:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,i.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();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 i=o(32634),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const n=t.KEY="remove_col"},63556:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(78437),l=o(24496),h=o(42479),c=i(o(23892)),u=i(o(34706)),d=o(50151),g=i(o(40578)),f=i(o(17181)),p=i(o(55595));function m(e,t,o){w(e,t),t.set(e,o)}function w(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(y(e,t),o),o}function v(e,t){return e.get(y(e,t))}function y(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 S=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,R=t.META_COMMENT="comment",b=t.META_COMMENT_VALUE="value",_=t.META_STYLE="style",T=t.META_READONLY="readOnly",M=S,I=`plugin:${S}`;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends h.BasePlugin{constructor(){var e,t;super(...arguments),w(e=this,t=D),t.add(e),(0,s.default)(this,"range",{}),m(this,O,null),m(this,A,null),m(this,N,!1),m(this,P,!1),m(this,H,!1),m(this,x,null),m(this,k,"")}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[S]}enablePlugin(){var e=this;this.enabled||(v(O,this)||(C(O,this,new c.default(this.hot.rootDocument,this.hot.isRtl(),this.hot.rootPortalElement)),v(O,this).addLocalHook("resize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return y(D,e,G).call(e,...o)}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.hide()})),v(A,this)||C(A,this,new u.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",e=>this.addToContextMenu(e)),this.addHook("afterRenderer",(e,t,o,i,s,n)=>y(D,this,U).call(this,e,n)),this.addHook("afterScroll",()=>y(D,this,$).call(this)),this.addHook("afterBeginEditing",()=>this.hide()),this.addHook("afterDocumentKeyDown",e=>y(D,this,z).call(this,e)),this.addHook("beforeCompositionStart",e=>y(D,this,z).call(this,e)),v(A,this).addLocalHook("hide",()=>this.hide()),v(A,this).addLocalHook("show",(e,t)=>this.showAtCell(e,t)),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){v(A,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(I);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeActive();C(P,this,!0),this.hot.scrollToFocusedCell(()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(I),this.hot._registerTimeout(()=>{C(P,this,!1)})})},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight.isCell()},group:M}),o.addShortcut({keys:[["Escape"]],callback:()=>{v(O,this).setValue(v(k,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(H,this,!0),v(O,this).setValue(v(O,this).getValue()),this.setComment(),this.hide(),e.setActiveContextName("grid")},group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",e=>y(D,this,F).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>y(D,this,V).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>y(D,this,B).call(this)),this.eventManager.addEventListener(t,"focus",()=>y(D,this,j).call(this)),this.eventManager.addEventListener(t,"blur",()=>y(D,this,Y).call(this)),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",e=>y(D,this,W).call(this,e))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,n.closest)(e.target,"TD","TBODY");return!!(t&&(0,n.hasClass)(t,"htCommentCell")&&(0,n.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=v(O,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const{row:i,col:s}=y(D,this,K).call(this);this.updateCommentMeta(i,s,{[b]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);this.hot.setCellMeta(t,o,R),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const{row:e,col:t}=y(D,this,K).call(this);return this.getCommentMeta(e,t,b)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,b)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const i=this.hot.getCellMeta(t,o);return v(A,this).cancelHiding(),v(O,this).setValue(null!==(e=i[R]?i[R][b]:null)&&void 0!==e?e:""),v(O,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){v(O,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&v(O,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:o,col:i}=y(D,this,K).call(this);let s=e.getRenderableFromVisualIndex(o),r=t.getRenderableFromVisualIndex(i);const a=null===s;v(O,this).setPosition(0,0),null===s&&(s=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(o,-1))),null===r&&(r=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(i,-1)));const l=null===s,h=null===r;s=null!=s?s:0,r=null!=r?r:0;const{rootWindow:c,view:{_wt:u}}=this.hot,{wtTable:d}=u,g=u.getCell({row:s,col:r},!0),f=this.getCommentMeta(o,i,_);f?v(O,this).setSize(f.width,f.height):v(O,this).resetSize();const p=h?0:d.getColumnWidth(r),m=a&&!l?(0,n.outerHeight)(g):0,{left:w,top:C,width:S,height:E}=g.getBoundingClientRect(),{width:R,height:b}=v(O,this).getSize(),{innerWidth:M,innerHeight:I}=this.hot.rootWindow,A=this.hot.rootDocument.documentElement,N=(0,n.getScrollbarWidth)(this.hot.rootDocument),P=(0,n.hasVerticalScrollbar)(this.hot.rootWindow)?N:0,H=(0,n.hasHorizontalScrollbar)(this.hot.rootWindow)?N:0;let x=w+c.scrollX+p,k=C+c.scrollY+m;this.hot.isRtl()&&(x-=R+p),this.hot.isLtr()&&w+S+R>M-P?x=w+c.scrollX-R-1:this.hot.isRtl()&&x<-(A.scrollWidth-A.clientWidth)&&(x=w+c.scrollX+p+1),C+b>I-H&&(k-=b-E+1),v(O,this).setPosition(x,k),v(O,this).setReadOnlyState(this.getCommentMeta(o,i,T)),v(O,this).observeSize()}focusEditor(){v(O,this).focus()}updateCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t)[R];let s;i?(s=(0,a.deepClone)(i),(0,a.deepExtend)(s,o)):s=o,this.hot.setCellMeta(e,t,R,s)}getCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t);if(i[R])return i[R][o]}addToContextMenu(e){e.items.push({name:d.SEPARATOR},(0,g.default)(this),(0,f.default)(this),(0,p.default)(this))}getEditorInputElement(){return v(O,this).getInputElement()}destroy(){var e,t;null===(e=v(O,this))||void 0===e||e.destroy(),null===(t=v(A,this))||void 0===t||t.destroy(),super.destroy()}}function V(e){if(this.hot.view&&this.hot.view._wt&&!v(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,n.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function W(e){e.stopPropagation()}function F(e){const{rootDocument:t}=this.hot;if(!(v(N,this)||v(O,this).isFocused()||(0,n.hasClass)(e.target,"wtBorder")||v(x,this)===e.target)&&v(O,this))if(C(x,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));v(A,this).show(t)}else(0,n.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&v(A,this).hide()}function B(){C(N,this,!1)}function U(e,t){t[R]&&t[R][b]&&(0,n.addClass)(e,t.commentedCellClassName)}function Y(){v(H,this)?C(H,this,!1):(C(k,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment())}function j(){C(k,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(I)}function G(e,t){const{row:o,col:i}=y(D,this,K).call(this);this.updateCommentMeta(o,i,{[_]:{width:e,height:t}})}function z(e){v(O,this).isFocused()&&(0,r.stopImmediatePropagation)(e)}function $(){v(P,this)||this.hide()}function K(){return this.range instanceof l.CellRange?this.range.highlight:this.hot._createCellCoords(this.range.from.row,this.range.from.col)}t.Comments=L},63636:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(29213),r=o(68547);t.ViewDiffer=class{constructor(e){(0,s.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let i=Math.max(o,t);if(0===i)return[];const{currentOffset:s,nextOffset:a}=e.getViewSize(),l=new r.ViewOrder(s,t),h=new r.ViewOrder(a,o),c=[];for(let t=0;t<i;t++){const s=l.get(t),r=h.get(t);if(-1===r)c.push(["remove",s]);else if(-1===s)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",r]):c.push(["prepend",r]);else if(r>s)l.has(r)&&(l.remove(r),o<=l.length&&(i-=1)),c.push(["replace",r,s]);else if(r<s){const e=l.prepend(r);c.push(["insert_before",r,s,e])}else c.push(["none",r])}return c}}},64172:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(76651),r=o(99586),a=i(o(75949)),l=i(o(90235)),h=o(68234),c=i(o(12010)),u=i(o(84234)),d=o(59719),g=o(3226);t.default=class{constructor(e,t,o,i,r){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===r,this.name=r,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=i,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,n.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 a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),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,n.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,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.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,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,n.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,n.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.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:i}=this.dataAccessObject,s=t.getSetting("totalRows"),r=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,n.offset)(this.holder),f=i.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,n.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,g),this.columnFilter=new a.default(t,r,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")||i.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 i=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,r,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,s=this.getColumnHeaderHeight(o),r=this.getColumnHeader(t,o),r&&(a=(0,n.innerHeight)(r),(!s&&i<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),Array.isArray(l)?null!==l[o]&&void 0!==l[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(l[o]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let i=0,s=e.getSetting("columnHeaders").length;i<s;i++)if(o[i]){if(!t[i]||0===t[i].childNodes.length)return;t[i].childNodes[0].style.height=`${o[i]}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 i=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(i&&Array.isArray(i)&&([t,o]=i),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const n=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!n&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return n}getRow(e){let t=null,o=null;var i,s;e<0?(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.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 i=e.childNodes[o];i&&t.push(i)}),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),i=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,s=(o<0?this.THEAD:this.TBODY).childNodes[i];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let i=0;i<o;i++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==o?void 0:o.childNodes[i];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,n.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const i=o.parentNode;let s=(0,n.index)(o),r=t.cellIndex;if((0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===i.nodeName&&(s-=i.childNodes.length);else if((0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-i.childNodes.length+s}else i===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?r=this.columnFilter.offsettedTH(r):this.columnFilter&&(r=this.columnFilter.visibleRowHeadedColumnToSourceColumn(r));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,r);return a&&Array.isArray(a)&&([s,r]=a),this.wot.createCellCoords(s,r)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),i=(0,n.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),r=s?n.outerHeight:n.innerHeight,a=s?0:1,l=s?1:0;let h,c,u,d,g;if(o!==i||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?l:0;c=g?r(g):r(d)-a,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(s||(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,n.outerWidth)(this.TABLE)}getHeight(){return(0,n.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,n.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,n.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,n.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,r.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}}},64326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new n(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 n(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,i=this.first;for(;i;){if(i.data===e)return t=i.next,o=i.prev,t&&(t.prev=o),o&&(o.next=t),i===this.first&&(this.first=t),i===this.last&&(this.last=o),!0;i=i.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}}},64334:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=o(43641),n=i(o(11558)),r=i(o(66847));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",n.default),h("substitute",r.default)},64380:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(n)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,n,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=r,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e};var s=i(o(86798));const n="DD/MM/YYYY";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},64536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(23154);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TouchScroll=i.TouchScroll},64649:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},64721:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},64854:(e,t,o)=>{"use strict";var i=o(11127),s=Math.max,n=Math.min;e.exports=function(e,t){var o=i(e);return o<0?s(o+t,0):n(o,t)}},64945:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},64956:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(94857),l=o(57455),h=o(78437),c=m(o(8278)),u=o(24293),d=m(o(96)),g=o(5476),f=o(90370),p=o(76742);function m(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(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,s.default)(this,"name",""),(0,s.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,S).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>C(v,this,E).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,a.arrayEach)(e.args,(e,o)=>{if(o>t.inputsCount-1)return!1;const i=this.getInputElement(o);i.setValue(e),i[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout(()=>i.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(o,i)=>{e.inputsCount>i&&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,a.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,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,n.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.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,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function S(e){(0,a.arrayEach)(this.getInputElements(),(t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function E(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e))}t.ConditionComponent=y},65022:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(79356)),n=o(76651);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=r},65146:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},65166:t=>{"use strict";t.exports=e},65192:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(22588),o(81396),o(19874);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(14251);const n=t.OPERATION_ID="disjunctionWithExtraCondition",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(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,s.registerOperation)(n,r,a)},65688:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),r=o(76742);const a=t.CONDITION_NAME="date_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},65725:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(34149);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 a(e,t){return e.get(h(e,t))}function l(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;t.default=class{constructor(e,t,o,i,n,a){(0,s.default)(this,"row",void 0),(0,s.default)(this,"col",void 0),(0,s.default)(this,"rowspan",void 0),(0,s.default)(this,"colspan",void 0),(0,s.default)(this,"removed",!1),(0,s.default)(this,"cellCoordsFactory",void 0),(0,s.default)(this,"cellRangeFactory",void 0),r(this,c,null),this.row=e,this.col=t,this.rowspan=o,this.colspan=i,this.cellCoordsFactory=n,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:o,rowspan:i,colspan:s}=e;return n.toSingleLine`The merged cell declared with {row: ${t}, col: ${o},\x20
|
|
81
81
|
rowspan: ${i}, colspan: ${s}} contains negative values, which is\x20
|
|
82
82
|
not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){let{row:t,col:o}=e;return n.toSingleLine`The merged cell declared at [${t}, ${o}] is positioned\x20
|
|
83
83
|
(or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){let{row:t,col:o}=e;return n.toSingleLine`The merged cell declared at [${t}, ${o}] has both "rowspan"\x20
|
|
84
84
|
and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){let{row:t,col:o}=e;return n.toSingleLine`The merged cell declared at [${t}, ${o}] has "rowspan"\x20
|
|
85
|
-
or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:o,rowspan:i,colspan:s}=e;return t<0||o<0||i<0||s<0}static isSingleCell(e){let{rowspan:t,colspan:o}=e;return 1===o&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:o}=e;return 0===o||0===t}static isOutOfBounds(e,t,o){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=o||e.col+e.colspan-1>=o}normalize(e){const t=e.countRows(),o=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>o-1&&(this.col=o-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>o-1&&(this.colspan=o-this.col),l(c,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const o=e[0]||e[1],i=t+Math.abs(e[0]||e[1])-1,s=e[0]?"colspan":"rowspan",n=e[0]?"col":"row",r=Math.min(t,i),a=Math.max(t,i),h=this[n],u=this[n]+this[s]-1;if(h>=t&&(this[n]+=o),o>0)t<=u&&t>h&&(this[s]+=o);else if(o<0){if(r<=h&&a>=u)return this.removed=!0,l(c,this,null),!1;if(h>=r&&h<=a){const e=a-h+1,t=Math.abs(o)-e;this[n]-=t+o,this[s]-=e}else if(h<=r&&u>=a)this[s]+=o;else if(h<=r&&u>=r&&u<a){const e=u-r+1;this[s]-=e}}return l(c,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return a(c,this)||l(c,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),a(c,this)}}},65781:(e,t,o)=>{"use strict";var i=o(24427);e.exports="NODE"===i},66058:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="contains";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(o))>=0}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},66091:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(81124);var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:o}=e;super("filter"),(0,s.default)(this,"conditionsStack",void 0),(0,s.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=o}static startRegisteringEvents(e,t){e.addHook("beforeFilter",(e,o)=>{t.done(()=>new r({conditionsStack:e,previousConditionsStack:o}))})}undo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.importConditions(this.previousConditionsStack),o.filter()}redo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.importConditions(this.conditionsStack),o.filter()}}t.FiltersAction=r},66123:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=i(o(13683)),a=o(70667),l=i(o(24496)),h=o(52072),c=o(74125),u=o(43641),d=o(3226);function g(e,t,o){f(e,t),t.set(e,o)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(w(e,t))}function m(e,t,o){return e.set(w(e,t),o),o}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 WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function I(e){const t=w(T,this,M).call(this)+e;(0,n.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,n.addClass)(e,"htHasScrollY"):(0,n.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,n.addClass)(e,"htVerticallyScrollableByWindow"):(0,n.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,n.addClass)(e,"htHasScrollX"):(0,n.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,n.addClass)(e,"htHorizontallyScrollableByWindow"):(0,n.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,o;f(t=this,o=T),o.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,C,0),g(this,v,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,y,!1),g(this,S,void 0),g(this,E,void 0),g(this,R,0),g(this,b,0),g(this,_,null),this.hot=e,this.eventManager=new r.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),w(T,this,O).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,n.addClass)(e,"handsontable"),m(E,this,t.createElement("TABLE")),(0,n.addClass)(p(E,this),"htCore"),this.hot.getSettings().tableClassName&&(0,n.addClass)(p(E,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,n.setAttribute)(p(E,this),[(0,d.A11Y_PRESENTATION)()]),(0,n.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),p(E,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),p(E,this).appendChild(this.TBODY),this.hot.table=p(E,this),this.hot.container.insertBefore(p(E,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:o,selection:i,rootWindow:s}=this.hot,r=o.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(y,this,!0),this.isTextSelectionAllowed(e.target)||((0,n.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(y,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{p(y,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,n.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(r,"keyup",e=>{i.isInProgress()&&!e.shiftKey&&i.finish()}),this.eventManager.addEventListener(r,"mouseup",s=>{i.isInProgress()&&(0,a.isLeftClick)(s)&&i.finish(),m(S,this,!1);const r=(0,n.isOutsideInput)(o.activeElement);(0,n.isInput)(o.activeElement)&&!r||!r&&(i.isSelected()||i.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(r,"contextmenu",e=>{i.isInProgress()&&(0,a.isRightClick)(e)&&(i.finish(),m(S,this,!1))}),this.eventManager.addEventListener(r,"touchend",()=>{i.isInProgress()&&i.finish(),m(S,this,!1)}),this.eventManager.addEventListener(r,"mousedown",e=>{const i=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(p(S,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,n.getScrollbarWidth)(o);if(o.elementFromPoint(s+e,a)!==h||o.elementFromPoint(s,a+e)!==h)return}else for(;l!==r;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(i):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,n.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,n.getParentWindow)(l);this.eventManager.addEventListener(p(E,this),"selectstart",e=>{this.settings.fragmentSelection||(0,n.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,i=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===i&&(i=t),[o,i]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),i=e.getNearestNotHiddenIndex(o-1,-1);return null===i?0:e.getRenderableFromVisualIndex(i)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,i){if(isNaN(e)||e<0)return 0;const s=o.getNearestNotHiddenIndex(e,t),n=o.getRenderableFromVisualIndex(s);if(!Number.isInteger(n))return 0;let r=0;return t<0?r=n+1:t>0&&(r=i-n),r}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:p(E,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(v,this,e.length),this.hot.getSettings().ariaTags&&w(T,this,M).call(this)===this.hot.countCols()&&w(T,this,I).call(this,p(v,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(C,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),i=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(i),i,t)},cellRenderer:(e,t,o)=>{const[i,s]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.runHooks("modifyGetCellCoords",i,s,!1,"meta");let r=i,a=s;Array.isArray(n)&&([r,a]=n);const l=this.hot.getCellMeta(r,a),h=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(r,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l)),this.hot.runHooks("beforeRenderer",o,i,s,h,c,l),this.hot.getCellRenderer(l)(this.hot,o,i,s,h,c,l),this.hot.runHooks("afterRenderer",o,i,s,h,c,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,n.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=i,m(S,this,!0),m(_,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,m(S,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOut",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOver",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||(!p(S,this)||p(_,this)&&p(_,this).x===e.clientX&&p(_,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,o),this.activeWt=this._wt,m(_,this,null))},onCellMouseUp:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseUp",e,s,o),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const i=this.hot.rowIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingRowHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const i=this.hot.columnIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingColumnHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onAfterDrawSelection:(e,t,o)=>{let i;const[s,n]=this.translateFromRenderableToVisualIndex(e,t),r=this.hot.selection.getSelectedRange();if(r.size()>0){const e=r.peekByIndex(null!=o?o:0);i=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,n,i,o)},onBeforeDrawBorders:(e,t)=>{const[o,i,s,n]=e,r=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)];return this.hot.runHooks("beforeDrawBorders",r,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,i)=>{const s=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,r=t>=0?n.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,r,o,i);if(Array.isArray(l)){const[e,t,o,i]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t,o>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(o,-1)):o,i>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i,-1)):i]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,n=e>=0?o.getVisualFromRenderableIndex(e):e,r=this.hot.runHooks("modifyGetCoordsElement",n,s);if(Array.isArray(r)){const[e,t]=r;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),i=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/o*12));e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),i=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/o*6));e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:i}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,i),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,o;if((0,n.isInput)(e))return!0;const i=(0,n.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&i)return!0;const s=null!==(t=null===(o=this.hot.getSelectedRangeActive())||void 0===o?void 0:o.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!i)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return p(S,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,n.hasClass)(o,"relative"))return(0,n.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:i}=this.hot,s=o.createElement("div"),n=o.createElement("span");s.className="relative",n.className="rowHeader",this.updateCellHeader(n,e,i),s.appendChild(n),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const r=t.firstChild;(0,n.hasClass)(r,"relative")?(this.updateCellHeader(r.querySelector(".colHeader"),e,o,i),r.className="",(0,n.addClass)(r,["relative",...s()])):((0,n.empty)(t),this.appendColHeader(e,t,o,i))}else{const{rootDocument:r}=this.hot,a=r.createElement("div"),l=r.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,n.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,n.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,o,i),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,i)}updateCellHeader(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const r=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,n.hasClass)(e,"colHeader")?s=r.wtTable.columnFilter.sourceToRendered(t):(0,n.hasClass)(e,"rowHeader")&&(s=r.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,n.fastInnerHTML)(e,o(t,i)):((0,n.fastInnerText)(e,String.fromCharCode(160)),(0,n.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(b,this,t)}getLastSize(){return{width:p(R,this),height:p(b,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return p(C,this)}getRowHeadersCount(){return p(v,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getTableScrollPosition(){return{left:this._wt.wtTable.holder.scrollLeft,top:this._wt.wtTable.holder.scrollTop}}setTableScrollPosition(e){this._wt.wtTable.holder.scrollLeft=e.left,this._wt.wtTable.holder.scrollTop=e.top}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},66182:(e,t,o)=>{"use strict";var i=o(27538),s=o(87681),n=o(69946),r=o(90331),a=o(22625);i({target:"Array",proto:!0,arity:1,forced:o(89035)(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=s(this),o=n(t),i=arguments.length;a(o+i);for(var l=0;l<i;l++)t[o]=arguments[l],o++;return r(t,o),o}})},66569:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=o(8278),s=o(58639)},66578:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(29465),r=o(94857),a=o(26599);class l extends n.MapCollection{constructor(e,t){super(),(0,s.default)(this,"mergedValuesCache",[]),(0,s.default)(this,"aggregationFunction",void 0),(0,s.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,r.arrayMap)(this.get(),e=>e.getValues()),t=[],o=(0,a.isDefined)(e[0])&&e[0].length||0;for(let i=0;i<o;i+=1){const o=[];for(let t=0;t<this.getLength();t+=1)o.push(e[t][i]);t.push(o)}return(0,r.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const o=this.getMergedValues(t)[e];return(0,a.isDefined)(o)?o:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},66622:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15553);t.createShortcutManager=i.createShortcutManager},66847:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function e(t,o){if(Array.isArray(t))return t.map(t=>e(t,o));return(0,i.substitute)(t,o)},o(81396),o(14618);var i=o(73983)},67289:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(74030);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnFreeze=i.ManualColumnFreeze},67343:(e,t,o)=>{"use strict";var i=o(33477),s=o(14326),n=o(87681),r=o(26075),a=o(38815),l=r("IE_PROTO"),h=Object,c=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=n(e);if(i(t,l))return t[l];var o=t.constructor;return s(o)&&t instanceof o?o.prototype:t instanceof h?c:null}},67383:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81872),s=o(4360);const n=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:n,editor:i.PasswordEditor,renderer:s.passwordRenderer,copyable:!1}},67544:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return(0,i.isObject)(e)&&void 0!==e.value?e.value:e};var i=o(78437)},67703:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:s=()=>{},onClear:n=()=>{}}=e;const r=new Set;let a=(0,i.clamp)(t,-1,h()-1);function l(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),r.has(e))return-1;r.add(e);return!1===s(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==s(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(r.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(r.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(r.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(r.clear(),a=l(--a,-1))},getSize:h,clear:function(){r.clear(),a=t,n()}}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(58639)},68060:(e,t,o)=>{"use strict";var i,s=o(19596),n=o(99949),r=o(14326),a=o(24427),l=o(771),h=o(4660),c=o(90024),u=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((i=s.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));e.exports=function(e,t){var o=t?2:1;return d?function(i,s){var a=c(arguments.length,1)>o,l=r(i)?i:u(i),d=a?h(arguments,o):[],g=a?function(){n(l,this,d)}:l;return t?e(g,s):e(g)}:e}},68149:(e,t,o)=>{"use strict";var i=o(71671),s=o(35097),n=i("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||r[n]===e)}},68234:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(21774);t.RowHeadersRenderer=i.RowHeadersRenderer;var s=o(71662);t.ColumnHeadersRenderer=s.ColumnHeadersRenderer;var n=o(13117);t.ColGroupRenderer=n.ColGroupRenderer;var r=o(27889);t.RowsRenderer=r.RowsRenderer;var a=o(15155);t.CellsRenderer=a.CellsRenderer;var l=o(5326);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:o,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new l.TableRenderer(e,{cellRenderer:d,stylesHandler:g}),this.renderer.setRenderers({rowHeaders:new i.RowHeadersRenderer,columnHeaders:new s.ColumnHeadersRenderer(t),colGroup:new n.ColGroupRenderer(o),rows:new r.RowsRenderer(h),cells:new a.CellsRenderer}),this.renderer.setAxisUtils(c,u)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}},68295:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},68390:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(73050);const s=t.EDITOR_TYPE="time";class n extends i.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.TEXTAREA.dir="ltr"}}t.TimeEditor=n},68547:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(88205);var s=i(o(81115));t.ViewOrder=class{constructor(e,t){(0,s.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()}}},68606:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(59839),o(30417);var s=i(o(81115));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s}=t;o<=i&&(this.startRow=e),o>=i&&o<=s&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<0||o>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},68614:(e,t,o)=>{"use strict";var i=o(19617),s=o(33477),n=o(17621),r=o(84521),a=o(33895),l=RegExp.prototype;e.exports=r.correct?function(e){return e.flags}:function(e){return r.correct||!n(l,e)||s(e,"flags")?e.flags:i(a,e)}},68671:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,i.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const o=t[0],s=t.length;return(0,i.arrayMap)(e,e=>e>=o?e+s:e)},o(81396),o(81124);var i=o(94857)},68705:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),i=o?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let n=e.countVisibleRows()+i;n=0===n?-1:-n,s===-i?n=-1:s+n<i&&(n=-(s+i)),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},68750:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(14618);var s=o(42479),n=o(76651),r=o(58639),a=o(94857),l=o(50151),h=o(97819),c=i(o(18099)),u=i(o(40268)),d=o(32435);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 S extends s.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),i=0;i<t;i++)o[i]=arguments[i];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,E).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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 i=t;const s=f(v,this).getValues().slice(),n=e.length>0;if(o&&n){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(this.hot.toVisualRow(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,i,o&&n)&&(o&&n&&f(v,this).setValues(s),this.hot.runHooks("afterUnhideRows",t,i,o&&n,o&&i.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 i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,i,o,o&&i.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,a.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,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipRowOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function E(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,i,s)=>{t.push({startRow:e,endRow:o,startCol:i,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,i=0;(0,r.rangeEach)(e.startRow,e.endRow,s=>{this.isHidden(s)?(t||o(i,s-1,e.startCol,e.endCol),t=!0):(t&&(i=s),s===e.endRow&&o(i,s,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,n.addClass)(t,o)}function T(e){e.items.push({name:l.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=S},68959:(e,t,o)=>{"use strict";o(81396),o(88633);var i=o(78656);t.__esModule=!0;var s={Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},n=i(o(35221));t.Selection=n.default;var r=o(52072);t.handleMouseEvent=r.handleMouseEvent;var a=o(32634);t.detectSelectionType=a.detectSelectionType,t.normalizeSelectionFactory=a.normalizeSelectionFactory;var l=o(18328);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))})},69198:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...o}=e;return new n.default({className:"current",headerAttributes:[(0,r.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...o,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=o(24496),n=i(o(73358)),r=o(3226)},69423:(e,t,o)=>{"use strict";var i=o(39303),s=o(77669),n=o(40663),r=Error.captureStackTrace;e.exports=function(e,t,o,a){n&&(r?r(e,t):i(e,"stack",s(o,a)))}},69473:(e,t,o)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:o},()=>{const t=!!e.getSettings().colHeaders;(0,i.scrollWindowToCell)(e.getCell(t?-1:0,o,!0))})}};var i=o(57787)},69932:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(59839),o(30417);var s=i(o(81115));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s,rowHeight:n}=t;o>=i&&o+n<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=i-s&&(this.startRow-=1),e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},69946:(e,t,o)=>{"use strict";var i=o(20330);e.exports=function(e){return i(e.length)}},70155:(e,t,o)=>{"use strict";var i=o(16539),s=o(13479);e.exports=function(e,t,o,n){try{return n?t(i(o)[0],o[1]):t(o)}catch(t){s(e,"throw",t)}}},70164:(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()}}},70270:(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 i={from:e,to:t};o.forEach(e=>{const t=e.from>e.to,o=e.to<=i.from;e.from>i.from&&o&&t&&(i.from+=1)}),i.from>=t&&(t+=1),o.push(i)}),o}(e,function(e,t,o){const i=Array.from(Array(o).keys()).filter(t=>!1===e.includes(t));var s;return 0===t?null!==(s=i[t])&&void 0!==s?s:0:i[t-1]+1}(e,t,o)))},o(66182),o(81396),o(81124),o(88633)},70420:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.checkboxRenderer=v,o(66182),o(81396),o(39691),o(14618);var s=o(36814),n=i(o(13683)),r=o(76651),a=o(26599),l=o(7037),h=o(97819),c=o(3226),u=o(8278);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,i,h,C,v){const{rootDocument:S}=e,E=e.getSettings().ariaTags;s.baseRenderer.apply(this,[e,t,o,i,h,C,v]),function(e){let t=g.get(e);if(!t){const{rootElement:o}=e;t=new n.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 i=parseInt(o.getAttribute(p),10),s=parseInt(o.getAttribute(m),10),n=t.getCellMeta(i,s);n.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 i=parseInt(o.getAttribute(p),10),s=parseInt(o.getAttribute(m),10),n=t.getCellMeta(i,s);if(!n.readOnly){let o=null;o=e.target.checked?void 0===n.uncheckedTemplate||n.checkedTemplate:void 0!==n.uncheckedTemplate&&n.uncheckedTemplate,t.setDataAtCell(i,s,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)}(S);const b=v.label;let _=!1;if(void 0===v.checkedTemplate&&(v.checkedTemplate=!0),void 0===v.uncheckedTemplate&&(v.uncheckedTemplate=!1),(0,r.empty)(t),C===v.checkedTemplate||(0,a.stringify)(C).toLocaleLowerCase(v.locale)===(0,a.stringify)(v.checkedTemplate).toLocaleLowerCase(v.locale)?R.checked=!0:C===v.uncheckedTemplate||(0,a.stringify)(C).toLocaleLowerCase(v.locale)===(0,a.stringify)(v.uncheckedTemplate).toLocaleLowerCase(v.locale)?R.checked=!1:(0,a.isEmpty)(C)?(0,r.addClass)(R,"noValue"):(R.style.display="none",(0,r.addClass)(R,f),_=!0),(0,r.setAttribute)(R,[[p,o],[m,i]]),E&&(0,r.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 s="";if(b.value)s="function"==typeof b.value?b.value.call(this,o,i,h,C):b.value;else if(b.property){const t=e.getDataAtRowProp(o,b.property);s=null!==t?t:""}const n=function(e,t,o){const i=e.createElement("label");i.className="htCheckboxRendererLabel "+(o?"fullWidth":"");const s=e.createTextNode(t);if(o){const t=e.createElement("span");t.appendChild(s),i.appendChild(t)}else i.appendChild(s);return i.cloneNode(!0)}(S,s,!0!==b.separated);"before"===b.position?b.separated?(t.appendChild(n),t.appendChild(R)):(n.appendChild(R),R=n):b.position&&"after"!==b.position||(b.separated?(t.appendChild(R),t.appendChild(n)):(n.insertBefore(R,n.firstChild),R=n))}function T(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const o=e.getSelectedRange(),i=[],s=new Map;let n=[],r=0;if(o){for(let a=0;a<o.length;a++){const{row:l,col:h}=o[a].getTopStartCorner(),{row:c,col:u}=o[a].getBottomEndCorner();for(let o=l;o<=c;o+=1)for(let a=h;a<=u;a+=1){const l=e.getCellMeta(o,a);if(l.hidden)continue;const h={checkedTemplate:l.checkedTemplate,uncheckedTemplate:l.uncheckedTemplate};if("checkbox"!==l.type){!0!==t||l.readOnly||(s.has(i.length)?s.set(i.length,[...s.get(i.length),[o,a,null]]):s.set(i.length,[[o,a,null]]));continue}if(!0===l.readOnly)continue;void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);const c=e.getDataAtCell(o,a);!1===t?[l.checkedTemplate,l.checkedTemplate.toString()].includes(c)?n.push([o,a,l.uncheckedTemplate,h]):[l.uncheckedTemplate,l.uncheckedTemplate.toString(),null,void 0].includes(c)&&n.push([o,a,l.checkedTemplate,h]):n.push([o,a,l.uncheckedTemplate,h]),r+=1}i.push(r),r=0}n=n.every(e=>{let[,,t]=e;return t===n[0][2]})?n.map(e=>{let[t,o,i]=e;return[t,o,i]}):n.map(e=>{let[t,o,,i]=e;return[t,o,i.checkedTemplate]}),n.length>0&&i.forEach((t,o)=>{let i=n.splice(0,t);s.size&&s.has(o)&&(i=[...i,...s.get(o)]),e.setDataAtCell(i)})}}function M(){const t=e.getSelectedRange();if(t){for(let o=0;o<t.length;o++){const i=t[o].getTopStartCorner(),s=t[o].getBottomEndCorner();for(let t=i.row;t<=s.row;t++)for(let o=i.col;o<=s.col;o++){if(e.getCellMeta(t,o).readOnly)continue;const i=e.getCell(t,o);if((0,r.isHTMLElement)(i)){if(i.querySelectorAll("input[type=checkbox]").length>0)return!0}}}return!1}}(!b||b&&!b.separated)&&t.appendChild(R),_&&t.appendChild(S.createTextNode("#bad-value#")),d.has(e)||(d.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),o={group:w,relativeToGroup:l.EDITOR_EDIT_GROUP,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(T(),!M()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(T(),!M()),runOnlyIf:()=>{const t=e.getSelectedRangeActive();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.getSelectedRangeActive())||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:i,type:s,row:n,column:r,prop:l}=t;if(s!==C||!i)return;const{value:h,property:c}=i;let u=o;if(h)u="function"==typeof h?h(n,r,l,o):h;else if(c){const e=this.getDataAtRowProp(n,c);u=null!==e?e:o}return`${(0,a.stringify)(u).length}`}),v.RENDERER_TYPE=C},70445:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(94857),n=o(58639),r=o(76651),a=i(o(29087)),l=o(3226);class h extends a.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),i=this.dataManager.getDataObject(o);if(!i)return;const a=this.dataManager.getRowLevel(o),c=t.getElementsByTagName("DIV")[0],u=c.querySelector("span.rowHeader"),d=c.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&c.removeChild(e)}),(0,r.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=u.cloneNode(!0);c.innerHTML="",(0,n.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,r.addClass)(t,h.CSS_CLASSES.emptyIndicator),c.appendChild(t)}),c.appendChild(t)}if(this.dataManager.hasChildren(i)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,r.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,r.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(o)?((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,r.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,r.setAttribute)(t,[(0,l.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},70497:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232),r=o(32971),a=o(94857);class l extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:i,alignment:n}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=i,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,i,s)=>{t.done(()=>new l({stateBefore:e,range:o,type:i,alignment:s}))})}undo(e,t){(0,a.arrayEach)(this.range,t=>{t.forAll((t,o)=>{t>=0&&o>=0&&e.setCellMeta(t,o,"className",this.stateBefore[t][o]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,r.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,i,s)=>e.setCellMeta(t,o,i,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},70573:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(39522),h=o(70155),c=o(58719),u=o(13479),d=o(43832),g=o(57625),f=!c&&!d("filter",function(){}),p=!c&&!f&&g("filter",TypeError),m=c||f||p,w=l(function(){for(var e,t,o=this.iterator,i=this.predicate,n=this.next;;){if(e=r(s(n,o)),this.done=!!e.done)return;if(t=e.value,h(o,i,[t,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){r(this);try{n(e)}catch(e){u(this,"throw",e)}return p?s(p,this,e):new w(a(this),{predicate:e})}})},70610:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(42479),r=i(o(94797)),a=o(97819),l=o(49581);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const h=t.PLUGIN_KEY="persistentState",c=t.PLUGIN_PRIORITY=0,u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(u.has(this.hot)||(u.add(this.hot),(0,l.deprecatedWarn)("The PersistentState plugin is deprecated and will be removed in version 17.0. Please update your settings to ensure compatibility with future versions.")),this.storage||(this.storage=new r.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=d},70641:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(35734);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CollapsibleColumns=i.CollapsibleColumns},70667:(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"undefined"!=typeof TouchEvent&&e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let s=e.target;if(!(0,i.isHTMLElement)(t)||s!==t&&s.contains(t))return o;for(;s!==t;)o.x+=s.offsetLeft,o.y+=s.offsetTop,s=s.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var i=o(76651)},70923:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(46003),r=o(16539),a=o(14326),l=o(67343),h=o(73678),c=o(75460),u=o(89035),d=o(33477),g=o(71671),f=o(36053).IteratorPrototype,p=o(21912),m=o(58719),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,S=s[C],E=m||!a(S)||S.prototype!==f||!u(function(){S({})}),R=function(){if(n(this,f),l(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(r(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),!E&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,i({global:!0,constructor:!0,forced:E},{Iterator:R})},70948:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext(i.EDITOR_SCOPE),o=(0,s.createKeyboardShortcutCommandsPool)(e),n={group:i.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext(i.GRID_SCOPE),callback:(e,t)=>o.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>o.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>o.editorCloseWithoutSaving()}],n)};var i=o(26740),s=o(23268)},71154:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.autocompleteRenderer=c;var s=o(11912),n=o(28454),r=i(o(13683)),a=o(76651),l=o(3226);const h=t.RENDERER_TYPE="autocomplete";function c(e,t,o,i,h,c,u){const{rootDocument:d}=e,g=u.allowHtml?s.htmlRenderer:n.textRenderer,f=d.createElement("DIV"),p=e.getSettings().ariaTags;if(f.className="htAutocompleteArrow",p&&f.setAttribute(...(0,l.A11Y_HIDDEN)()),f.appendChild(d.createTextNode(String.fromCharCode(9660))),g.apply(this,[e,t,o,i,h,c,u]),t.firstChild||t.appendChild(d.createTextNode(String.fromCharCode(160))),t.insertBefore(f,t.firstChild),(0,a.addClass)(t,"htAutocomplete"),!e.acArrowListener){const s=new r.default(e);e.acArrowListener=function(s){(0,a.hasClass)(s.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(o,i),t)},s.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",()=>{s.destroy()})}}c.RENDERER_TYPE=h},71588:(e,t,o)=>{"use strict";t.__esModule=!0,t.timeRenderer=n;var i=o(28454);const s=t.RENDERER_TYPE="time";function n(e,t,o,s,n,r,a){i.textRenderer.apply(this,[e,t,o,s,n,r,a]),t.dir="ltr"}n.RENDERER_TYPE=s},71599:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,r.objectEach)(this.defaults,(t,o)=>{if(void 0!==e[o])this.settings[o]=e[o];else{if(void 0===t)throw new Error(`A required setting "${o}" was not provided`);this.settings[o]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,o)=>{const i=this.getSetting("data",e,t);(0,n.fastInnerText)(o,null==i?"":i)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,r.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,o,i,s){return"function"==typeof this.settings[e]?this.settings[e](t,o,i,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},71662:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76651),s=o(91338),n=o(3226);class r extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let o=this.rootNode.firstChild;if(e){const{columnsToRender:i}=this.table,s=i+t;for(let t=0,i=e;t<i;t++){for(o=this.rootNode.childNodes[t],o||(o=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(o)),this.renderedNodes=o.childNodes.length;this.renderedNodes<s;)o.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>s;)o.removeChild(o.lastChild),this.renderedNodes-=1}const n=this.rootNode.childNodes.length;if(n>e)for(let t=e;t<n;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else o&&(0,i.empty)(o)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,i.setAttribute)(this.rootNode,[(0,n.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:o,rowHeadersCount:s}=this.table,r=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,i.setAttribute)(r,[(0,n.A11Y_ROW)(),(0,n.A11Y_ROWINDEX)(t+1)]);for(let a=-1*s;a<o;a+=1){const o=this.table.renderedColumnToSource(a),l=r.childNodes[a+s];l.className="",l.removeAttribute("style"),(0,i.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,i.setAttribute)(l,[(0,n.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,n.A11Y_TABINDEX)(-1),(0,n.A11Y_COLUMNHEADER)(),...a>=0?[(0,n.A11Y_SCOPE_COL)()]:[(0,n.A11Y_GRIDCELL_BUTTON)(),(0,n.A11Y_LABEL)("Select whole grid")]]),e[t](o,l,t)}}}}t.ColumnHeadersRenderer=r},71671:(e,t,o)=>{"use strict";var i=o(19596),s=o(36405),n=o(33477),r=o(57596),a=o(71763),l=o(83916),h=i.Symbol,c=s("wks"),u=l?h.for||h:h&&h.withoutSetter||r;e.exports=function(e){return n(c,e)||(c[e]=a&&n(h,e)?h[e]:u("Symbol."+e)),c[e]}},71763:(e,t,o)=>{"use strict";var i=o(24659),s=o(89035),n=o(19596).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})},71794:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(54230),r=o(29521),a=o(43209),l=o(82719),h=s.Set,c=s.add,u=s.has;e.exports=function(e){var t=i(this),o=r(e),s=new h;return n(t)>o.size?l(o.getIterator(),function(e){u(t,e)&&c(s,e)}):a(t,function(e){o.includes(e)&&c(s,e)}),s}},71865:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(37637),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(82101),o(88633);var i=o(19518);function s(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 r(e,t,o){return e.set(l(e,t),o),o}function a(e,t){return e.get(l(e,t))}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")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),s(this,h,new Map),s(this,c,new Map),s(this,u,new Set),i.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),i.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e),n=s.find(e=>e.callback===t);if(n)return void(!0===n.skip&&(n.skip=!1));const r=Number.isInteger(o.orderIndex)?o.orderIndex:0,c=!!o.runOnce,f=!!o.initialHook;let p=!1;if(f){const e=s.find(e=>e.initialHook);e&&(e.callback=t,p=!0)}if(!p){s.push({callback:t,orderIndex:r,runOnce:c,initialHook:f,skip:!1});let o=a(u,this).has(e);o||0===r||(o=!0,a(u,this).add(e)),o&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i){let t=a(c,this).get(e);return i.skip=!0,t+=1,t>100&&(a(h,this).set(e,o.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),r(h,this,null),r(c,this,null)}}},71939:(e,t,o)=>{"use strict";var i=o(79212);e.exports=function(e,t,o){for(var s in t)i(e,s,t[s],o);return e}},72023: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}}}})}},i=t[e](o);return 1===i.size&&4===i.values().next().value}catch(e){return!1}}},72071:(e,t,o)=>{"use strict";var i=o(48651);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},72123:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.default=function(e,t){var o,i,Y=this;let j=arguments.length>2&&void 0!==arguments[2]&&arguments[2],G=this;const z=new h.default(G);let $,K,X,q,Q,J,Z=!0;const ee={...t.initialState,...t};(0,b.hasValidParameter)(j)&&(0,b.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,b.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,b.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const te=null!==(o=null==ee?void 0:ee.layoutDirection)&&void 0!==o?o:"inherit",oe=["rtl","ltr"].includes(te)?te:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",oe),null===(i=this.rootWrapperElement)||void 0===i||i.setAttribute("dir",oe),this.isRtl=function(){return"rtl"===oe},this.isLtr=function(){return!G.isRtl()},this.getDirectionFactor=function(){return G.isLtr()?1:-1},this.stylesHandler=new D.StylesHandler({hot:G,rootElement:G.rootElement,rootDocument:G.rootDocument,onThemeChange:e=>{(0,b.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,L.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),ee.language=(0,T.getValidLanguageCode)(ee.language);const ie=Object.fromEntries(Object.entries(ee).filter(e=>{let[t]=e;return!(A.Hooks.getSingleton().isRegistered(t)||A.Hooks.getSingleton().isDeprecated(t))})),se=new O.MetaManager(G,ie,[O.DynamicCellMetaMod,O.ExtendMetaPropertiesMod]),ne=se.getTableMeta(),re=se.getGlobalMeta(),ae=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,C.randomString)()}`,U.set(this.guid,this),this.columnIndexMapper=new R.IndexMapper,this.rowIndexMapper=new R.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{G.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{G.runHooks("afterRowSequenceChange",e)}),z.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{G.runHooks("beforeCompositionStart",e)}),K=new S.default(G);const le=(0,g.staticRegister)(this.guid);le.register("cellRangeMapper",new A.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let he=new I.Selection(ne,{rowIndexMapper:G.rowIndexMapper,columnIndexMapper:G.columnIndexMapper,countCols:()=>G.countCols(),countRows:()=>G.countRows(),propToCol:e=>$.propToCol(e),isEditorOpened:()=>!!G.getActiveEditor()&&G.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return Y.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return Y.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>G.getShortcutManager(),createCellCoords:(e,t)=>G._createCellCoords(e,t),createCellRange:(e,t,o)=>G._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return G._createCellCoords(t>=0?G.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?G.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return G._createCellCoords(t>=0?G.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?G.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=G.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?G.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=G.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?G.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?G.getSettings().disableVisualSelection:G.getCellMeta(e,t).disableVisualSelection});this.selection=he;const ce=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function ue(e,t){const o="className"===e?G.rootElement:G.table;if(Z)(0,s.addClass)(o,t);else{let i=[],n=[];re[e]&&(i=Array.isArray(re[e])?re[e]:(0,u.stringToArray)(re[e])),t&&(n=Array.isArray(t)?t:(0,u.stringToArray)(t));const r=(0,u.getDifferenceOfArrays)(i,n),a=(0,u.getDifferenceOfArrays)(n,i);r.length&&(0,s.removeClass)(o,r),a.length&&(0,s.addClass)(o,a)}re[e]=t}function de(){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 ge(e,t,o){if(!e.length)return void o();const i=G.getActiveEditor(),s=new de;let n=!0;s.onQueueEmpty=()=>{i&&n&&i.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[i,r,,a]=e[o],l=$.propToCol(r);let h;h=Number.isInteger(l)?G.getCellMeta(i,l):{...Object.getPrototypeOf(ne),...ne},G.getCellValidator(h)&&(s.addValidatorToQueue(),G.validateCell(a,h,function(t,o){return function(i){if("boolean"!=typeof i)throw new Error("Validation error: result is not boolean");!1===i&&!1===o.allowInvalid&&(n=!1,e.splice(t,1),o.valid=!0),s.removeValidatorFormQueue()}}(o,h),t))}s.checkIfQueueIsEmpty()}function fe(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(ne.allowInsertRow)for(;e[t][0]>G.countRows()-1;){const{delta:e}=$.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===G.dataType&&(!ne.columns||0===ne.columns.length)&&ne.allowInsertColumn)for(;$.propToCol(e[t][1])>G.countCols()-1;){const{delta:e}=$.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||$.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){X.adjustRowsAndCols(),G.runHooks("beforeChangeRender",e,t),q.closeEditor(),G.view.adjustElementsSize(),G.render(),q.prepareEditor(),G.runHooks("afterChange",e,t||"edit");const o=G.getActiveEditor();o&&(0,r.isDefined)(o.refreshValue)&&o.refreshValue()}else G.render()}function pe(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function me(e,t){const o=G.runHooks("beforeChange",e,t||"edit"),i=e.filter(e=>null!==e);var s;if(!1===o||0===i.length)return null===(s=G.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=i.length-1;e>=0;e--){const[t,o,,s]=i[e],n=$.propToCol(o);let r;r=Number.isInteger(n)?G.getCellMeta(t,n):{...Object.getPrototypeOf(ne),...ne},i[e][3]=(0,W.getValueSetterValue)(s,r)}return i}this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{ce(e),this.runHooks("afterColumnSequenceCacheUpdate",e)}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{ce(e),this.runHooks("afterRowSequenceCacheUpdate",e)}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const o=(0,c.createObjectPropListener)(!1),i=this.selection.getSelectedRange(),{from:n,to:r}=i.current(),a=i.size()-1;this.runHooks("afterSelection",n.row,n.col,r.row,r.col,o,a),this.runHooks("afterSelectionByProp",n.row,G.colToProp(n.col),r.row,G.colToProp(r.col),o,a),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&J.scrollTo(e);const l=he.isSelectedByRowHeader(),h=he.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(he.getSelectionSource())||q.closeEditor(null),"refresh"!==he.getSelectionSource()&&(G.view.render(),q.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)&&J.scrollTo(e),q.closeEditor(),G.view.render(),q.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:o,to:i}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,i.row,i.col,t),this.runHooks("afterSelectionEndByProp",o.row,G.colToProp(o.col),i.row,G.colToProp(i.col),t),"refresh"===he.getSelectionSource()&&(G.view.render(),q.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{q.closeEditor(),G.view.render(),(0,s.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Y.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Y.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Y.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.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")),X={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const n=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[o]=e,[i]=t;return o===i?0:o>i?1:-1});return(0,u.arrayReduce)(t,(e,t)=>{let[o,i]=t;const s=e[e.length-1],[n,r]=s,a=n+r;if(o<=a){const e=Math.max(i-(a-o),0);s[1]+=e}else e.push([o,i]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=G.countSourceRows();if(ne.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=$.createRow(t,o,{source:i,mode:a});he.shiftRows(G.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?G.countSourceCols():0;const{delta:d,startPhysicalIndex:g}=$.createCol(t,o,{source:i,mode:c});if(d){if(Array.isArray(ne.colHeaders)){const e=[G.toVisualColumn(g),0];e.length+=d,Array.prototype.splice.apply(ne.colHeaders,e)}he.shiftColumns(G.toVisualColumn(g),d)}break;case"remove_row":const f=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?G.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!$.removeRow(o,s,i))return;if(he.isSelected()){const{row:e}=G.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&q.closeEditor(!0)}const a=G.countRows(),l=ne.fixedRowsTop;l>=n+1&&(ne.fixedRowsTop-=Math.min(s,l-n));const h=ne.fixedRowsBottom;if(h&&n>=a-h&&(ne.fixedRowsBottom-=Math.min(s,h)),0===a)he.deselect();else if("ContextMenu.removeRow"===i){const e=he.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),he.refresh()}else he.shiftRows(o,-s);t+=s})};Array.isArray(t)?f(n(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?G.countCols()-1:Math.max(o-t,0);let a=G.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!$.removeCol(o,s,i))return;if(he.isSelected()){const{col:e}=G.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&q.closeEditor(!0)}if(0===G.countCols())he.deselect();else if("ContextMenu.removeColumn"===i){const e=he.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),he.refresh()}else he.shiftColumns(o,-s);const l=ne.fixedColumnsStart;l>=n+1&&(ne.fixedColumnsStart-=Math.min(s,l-n)),Array.isArray(ne.colHeaders)&&(void 0===a&&(a=-1),ne.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?p(n(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}s||X.adjustRowsAndCols(),G.view.adjustElementsSize(),G.view.render()},adjustRowsAndCols(){const e=ne.minRows,t=ne.minSpareRows,o=ne.minCols,i=ne.minSpareCols;if(e){const t=G.countRows();t<e&&$.createRow(t,e-t,{source:"auto"})}if(t){const e=G.countEmptyRows(!0);if(e<t){const o=t-e,i=Math.min(o,ne.maxRows-G.countSourceRows());$.createRow(G.countRows(),i,{source:"auto"})}}{let e;(o||i)&&(e=G.countEmptyCols(!0));let t=G.countCols();if(o&&!ne.columns&&t<o){const i=o-t;e+=i,$.createCol(t,i,{source:"auto"})}if(i&&!ne.columns&&"array"===G.dataType&&e<i){t=G.countCols();const o=i-e,s=Math.min(o,ne.maxCols-t);$.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,o,i,s){let n,r,a,l;const h=[],d={},g=[],f=e.row,p=e.col;if(r=t.length,0===r)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),s){case"shift_down":const s=(0,u.pivot)(t),v=s.length,y=Math.max(v,m),S=G.getData().slice(f),E=(0,u.pivot)(S).slice(p,p+y);for(a=0;a<y;a+=1)if(a<v){for(n=0,r=s[a].length;n<w-r;n+=1)s[a].push(s[a][n%r]);a<E.length?g.push(s[a].concat(E[a])):g.push(s[a].concat(new Array(S.length).fill(null)))}else g.push(s[a%v].concat(E[a]));G.populateFromArray(f,p,(0,u.pivot)(g));break;case"shift_right":const R=t.length,b=Math.max(R,w),_=G.getData().slice(f).map(e=>e.slice(p));for(n=0;n<b;n+=1)if(n<R){for(a=0,l=t[n].length;a<m-l;a+=1)t[n].push(t[n][a%l]);if(n<_.length)for(let e=0;e<_[n].length;e+=1)t[n].push(_[n][e]);else t[n].push(...new Array(_[0].length).fill(null))}else t.push(t[n%r].slice(0,b).concat(_[n]));G.populateFromArray(f,p,t);break;default:d.row=e.row,d.col=e.col;let T,M=0,I=0,O=!0;const A=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=t[e%t.length];return null!==o?i[o%i.length]:i},N=t.length,P=o?o.row-e.row+1:0;for(r=o?P:Math.max(N,P),n=0;n<r&&!(o&&d.row>o.row&&P>N||!ne.allowInsertRow&&d.row>G.countRows()-1||d.row>=ne.maxRows);n++){const t=n-M,s=A(t).length,u=o?o.col-e.col+1:0;if(l=o?u:Math.max(s,u),d.col=e.col,T=G.getCellMeta(d.row,d.col),"CopyPaste.paste"!==i&&"Autofill.fill"!==i||!T.skipRowOnPaste){for(I=0,a=0;a<l;a++){var C;if(o&&d.col>o.col&&u>s||!ne.allowInsertColumn&&d.col>G.countCols()-1||d.col>=ne.maxCols)break;if(T=G.getCellMeta(d.row,d.col),("CopyPaste.paste"===i||"Autofill.fill"===i)&&T.skipColumnOnPaste){I+=1,d.col+=1,l+=1;continue}if(T.readOnly&&"UndoRedo.undo"!==i){d.col+=1;continue}const e=a-I,n=!!T.valueSetter;let r=A(t,e),g=null!==(C=G.getSourceDataAtCell(d.row,d.col))&&void 0!==C?C:null;if(null!==r&&"object"==typeof r)if(Array.isArray(r)&&null===g&&(g=[]),n||"object"==typeof g&&null!==g){if(null!==g){const e=(0,c.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,c.duckSchema)(Array.isArray(r)?r:r[0]||r);n||(0,c.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?r=(0,c.deepClone)(r):O=!1}}else O=!1;else n||null===g||"object"!=typeof g||(O=!1);O&&h.push([d.row,d.col,r]),O=!0,d.col+=1}d.row+=1}else M+=1,d.row+=1,r+=1}G.setDataAtCell(h,null,null,i||"populateFromArray")}}},this.init=function(){K.setData(ne.data),G.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(G.rootElement,"mobile"),this.updateSettings(ee,!0),this.view=new y.default(this),q=l.default.getInstance(G,ne,he),J=(0,A.createViewportScroller)(G),Q.init(),(0,b.isRootInstance)(this)&&((0,V.install)(G.rootPortalElement),(0,r._injectProductInfo)(ee.licenseKey,this.rootWrapperElement)),G.runHooks("init"),this.render(),Z&&null===G.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(G.rootElement,()=>{G.view._wt.wtOverlays.updateLastSpreaderSize(),G.view.adjustElementsSize(),G.render()}),"object"==typeof Z&&(G.runHooks("afterChange",Z[0],Z[1]),Z=!1),G.runHooks("afterInit")},this._createCellCoords=function(e,t){return G.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return G.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,i){let s=G.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const i=t.visualCol,s=t.visualRow,n=G.getCell(s,i,!0);if(n&&"TH"!==n.nodeName){const e=G.rowIndexMapper.getRenderableFromVisualIndex(s),t=G.columnIndexMapper.getRenderableFromVisualIndex(i);G.view._wt.getSetting("cellRenderer",e,t,n)}o(e)}var l;(0,r.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,n.isFunction)(s)?(e=G.runHooks("beforeValidate",e,t.visualRow,t.prop,i),G._registerImmediate(()=>{s.call(t,e,o=>{G&&(o=G.runHooks("afterValidate",o,e,t.visualRow,t.prop,i),t.valid=o,a(o),G.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,i))})})):G._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,o,i){const s=pe(e,t,o),n=[];let r,a,l,h=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];if("object"!=typeof s[r])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:$.colToProp(t),n.push([e,l,K.getAtCell(this.toPhysicalRow(e),t),o])}h||"object"!=typeof e||(h=t);const c=me(n,h);G.runHooks("afterSetDataAtCell",c,h),ge(c,h,()=>{fe(c,h)})},this.setDataAtRowProp=function(e,t,o,i){const s=pe(e,t,o),n=[];let r,a,l=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];n.push([e,t,K.getAtCell(this.toPhysicalRow(e),t),o])}l||"object"!=typeof e||(l=t);const h=me(n,i);G.runHooks("afterSetDataAtRowProp",h,l),ge(h,l,()=>{fe(h,l)})},this.listen=function(){G&&!G.isListening()&&(U.forEach(e=>{G!==e&&e.unlisten()}),F=G.guid,G.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(F=null,G.runHooks("afterUnlisten"))},this.isListening=function(){return F===G.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];q.closeEditor(e),G.view.render(),t&&he.isSelected()&&q.prepareEditor()},this.populateFromArray=function(e,t,o,i,s,n,r){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof i?G._createCellCoords(i,s):null;return X.populateFromArray(G._createCellCoords(e,t),o,a,n,r)},this.spliceCol=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return $.spliceCol(e,t,o,...s)},this.spliceRow=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return $.spliceRow(e,t,o,...s)},this.getSelected=function(){if(he.isSelected())return(0,u.arrayMap)(he.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.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]},this.getSelectedRange=function(){if(he.isSelected())return Array.from(he.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return he.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return he.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!he.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,u.arrayEach)(he.getSelectedRange(),e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),i=e.getBottomEndCorner();(0,v.rangeEach)(o.row,i.row,e=>{(0,v.rangeEach)(o.col,i.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||G.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||G.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(!G.view)return;const e=G.view,{width:t,height:o}=e.getLastSize(),{width:i,height:s}=G.rootElement.getBoundingClientRect(),n=i!==t||s!==o;!1===G.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:i,height:s},n)||((n||e._wt.wtOverlays.scrollableElement===G.rootWindow)&&(e.setLastSize(i,s),e.adjustElementsSize(),G.render()),G.runHooks("afterRefreshDimensions",{width:t,height:o},{width:i,height:s},n))},this.updateData=function(e,t){(0,O.replaceData)(e,e=>{$=e},e=>{$=e,G.columnIndexMapper.fitToLength(this.getInitialColumnCount()),G.rowIndexMapper.fitToLength(this.countSourceRows()),X.adjustRowsAndCols(),he.refresh()},{hotInstance:G,dataMap:$,dataSource:K,internalSource:"updateData",source:t,metaManager:se,firstRun:Z})},this.loadData=function(e,t){(0,O.replaceData)(e,e=>{$=e},()=>{se.clearCellsCache(),G.initIndexMappers(),X.adjustRowsAndCols(),he.refresh(),Z&&(Z=[null,"loadData"])},{hotInstance:G,dataMap:$,dataSource:K,internalSource:"loadData",source:t,metaManager:se,firstRun:Z})},this.getInitialColumnCount=function(){const e=ne.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,n.isFunction)(e))if("array"===G.dataType){const o=this.countSourceCols();for(let i=0;i<o;i+=1)e(i)&&(t+=1)}else"object"!==G.dataType&&"function"!==G.dataType||(t=$.colToPropCache.length);else if((0,r.isDefined)(ne.dataSchema)){const e=$.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,i){return(0,r.isUndefined)(e)?$.getAll():$.getRange(G._createCellCoords(e,t),G._createCellCoords(o,i),$.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,i){return $.getCopyableText(G._createCellCoords(e,t),G._createCellCoords(o,i))},this.getCopyableData=function(e,t){return $.getCopyable(e,$.colToProp(t))},this.getCopyableSourceData=function(e,t){return K.getCopyable(e,$.colToProp(t))},this.getSchema=function(){return $.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(Z?G.loadData:G.updateData).bind(this);let i,s,a=!1;if((0,r.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,r.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,r.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(i in(0,r.isDefined)(e.rowHeights)&&(0,r.isDefined)(e.minRowHeights)&&(0,L.warn)("Both `rowHeights` and `minRowHeights` are defined in your configuration. As one is the alias of the other, only one of them can be used at a time. `rowHeights` will be used as the row height configuration."),e)if("data"===i||"language"===i);else if("className"===i)ue("className",e.className);else if("tableClassName"===i&&G.table)ue("tableClassName",e.tableClassName),G.view._wt.wtOverlays.syncOverlayTableClassNames();else if(A.Hooks.getSingleton().isRegistered(i)||A.Hooks.getSingleton().isDeprecated(i)){const t=e[i];(0,n.isFunction)(t)?(A.Hooks.getSingleton().addAsFixed(i,t,G),ne[i]=t):Array.isArray(t)&&(A.Hooks.getSingleton().add(i,t,G),ne[i]=t)}else!t&&(0,c.hasOwnProperty)(e,i)&&(re[i]=e[i]);if(t)G.useTheme(ne.themeName||(0,k.getThemeClassName)(G.rootContainer));else{const t=G.getCurrentThemeName();(0,c.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&G.useTheme(e.themeName)}B.has(G)&&void 0!==G.stylesHandler.getThemeName()&&B.delete(G),(0,b.isRootInstance)(G)&&!B.has(G)&&G.stylesHandler.isClassicTheme()&&((0,L.deprecatedWarn)("The stylesheet you are using is deprecated and will be removed in version 17.0. Please update your theme configuration to ensure compatibility with future releases."),B.add(G)),void 0===e.data&&void 0===ne.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&($.createMap(),G.initIndexMappers()),!Z&&e.language&&function(e){const t=(0,M.normalizeLanguageCode)(e);(0,T.hasLanguageDictionary)(t)?(G.runHooks("beforeLanguageChange",t),re.language=t,G.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}(e.language);const l=G.countCols(),h=ne.columns;if(h&&(0,n.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||se.clearCache(),l>0)for(i=0,s=0;i<l;i++){if(h){const e=a?h(i):h[s];e&&se.updateColumnMeta(s,e)}s+=1}(0,r.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{G.setCellMetaObject(e.row,e.col,e)}),G.runHooks("afterCellMetaReset");let u=G.rootElement.style.height;if(""!==u&&(u=parseInt(G.rootElement.style.height,10)),t){G.rootElement.getAttribute("style")&&G.rootElement.setAttribute("data-initialstyle",G.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,n.isFunction)(d)&&(d=d()),d=G.runHooks("beforeHeightChange",d),null===d){const e=G.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?G.rootElement.setAttribute("style",e):(G.rootElement.style.height="",G.rootElement.style.overflow="")}else void 0!==d&&(G.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,G.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,n.isFunction)(t)&&(t=t()),t=G.runHooks("beforeWidthChange",t),G.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(G.view&&(G.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),G.view._wt.exportSettingsAsClassNames()),G.runHooks("afterUpdateSettings",e)),X.adjustRowsAndCols(),G.view&&!Z&&(G.render(),G.view._wt.wtOverlays.adjustElementsSize()),t||!G.view||""!==u&&""!==d&&void 0!==d||u===d||G.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=G.getSelectedRangeActive();if(ne.getValue){if((0,n.isFunction)(ne.getValue))return ne.getValue.call(G);if(e)return G.getData()[e.highlight.row][ne.getValue]}else if(e)return G.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return ne},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,i,s){X.alter(e,t,o,i,s)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;i=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===i||void 0===s||void 0===i?null:G.view.getCellAtCoords(G._createCellCoords(s,i),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:i}=t;let s=o,n=i;return o>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(o)),i>=0&&(n=this.columnIndexMapper.getVisualFromRenderableIndex(i)),G._createCellCoords(s,n)},this.colToProp=function(e){return $.colToProp(e)},this.propToCol=function(e){return $.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 $.get(e,$.colToProp(t))},this.getDataAtRowProp=function(e,t){return $.get(e,t)},this.getDataAtCol=function(e){const t=[],o=$.getRange(G._createCellCoords(0,e),G._createCellCoords(ne.data.length-1,e),$.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getDataAtProp=function(e){const t=[],o=$.getRange(G._createCellCoords(0,$.propToCol(e)),G._createCellCoords(ne.data.length-1,$.propToCol(e)),$.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getSourceData=function(e,t,o,i){let s;return s=void 0===e?K.getData():K.getByRange(G._createCellCoords(e,t),G._createCellCoords(o,i)),s},this.getSourceDataArray=function(e,t,o,i){let s;return s=void 0===e?K.getData(!0):K.getByRange(G._createCellCoords(e,t),G._createCellCoords(o,i),!0),s},this.getSourceDataAtCol=function(e){return K.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,i){const s=pe(e,t,o),n=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const o=this.toVisualRow(e),i=this.toVisualColumn(t);return Number.isInteger(i)?this.getCellMeta(o,i):{...Object.getPrototypeOf(ne),...ne}};n&&(0,u.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,W.getValueSetterValue)(i,l(t,o));a.push([t,o,K.getAtCell(t,o),s])}),(0,u.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,W.getValueSetterValue)(i,l(t,o));K.setAtCell(t,o,s)}),n&&this.runHooks("afterSetSourceDataAtCell",a,i),this.render();const h=G.getActiveEditor();h&&(0,r.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return K.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return K.getAtCell(e,t)},this.getDataAtRow=function(e){return $.getRange(G._createCellCoords(e,0),G._createCellCoords(e,this.countCols()-1),$.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,i){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,i],[n,r]=s;let[,,a,l]=s,h=null,c=null;void 0===a&&(a=n),void 0===l&&(l=r);let u="mixed";return(0,v.rangeEach)(Math.max(Math.min(n,a),0),Math.max(n,a),e=>{let t=!0;return(0,v.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),o=>{const i=this.getCellMeta(e,o);return c=i.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,o){const[i,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let n=se.getCellMetaKeyValue(i,s,o);!1!==G.runHooks("beforeRemoveCellMeta",e,t,o,n)&&(se.removeCellMeta(i,s,o),G.runHooks("afterRemoveCellMeta",e,t,o,n)),n=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(i.length>0&&!Array.isArray(i[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&se.removeRow(this.toPhysicalRow(e),t),i.length>0&&(0,u.arrayEach)(i.reverse(),t=>{se.createRow(this.toPhysicalRow(e)),(0,u.arrayEach)(t,(t,o)=>this.setCellMetaObject(e,o,t))}),G.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,(o,i)=>{this.setCellMeta(e,t,i,o)})},this.setCellMeta=function(e,t,o,i){if(!1===G.runHooks("beforeSetCellMeta",e,t,o,i))return;let s=e,n=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(n=this.toPhysicalColumn(t)),se.setCellMeta(s,n,o,i),G.runHooks("afterSetCellMeta",e,t,o,i)},this.getCellsMeta=function(){return se.getCellsMeta()},this.getCellMeta=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},i=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===i&&(i=e),null===s&&(s=t),se.getCellMeta(i,s,{visualRow:e,visualColumn:t,...o})},this.getColumnMeta=function(e){return se.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return se.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===G.dataType||ne.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,p.getRenderer)(o):(0,r.isUndefined)(o)?(0,p.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,m.getEditor)(o):(0,r.isUndefined)(o)?(0,m.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,w.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 i=new de;e&&(i.onQueueEmpty=e);let s=G.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=G.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(i.addValidatorToQueue(),G.validateCell(G.getDataAtCell(s,e),G.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(i.valid=!1),i.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}i.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=ne.rowHeaders,o=e;return void 0!==o&&(o=G.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,v.rangeEach)(G.countRows()-1,e=>{t.push(G.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,n.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!ne.rowHeaders},this.hasColHeaders=function(){if(void 0!==ne.colHeaders&&null!==ne.colHeaders)return!!ne.colHeaders;for(let e=0,t=G.countCols();e<t;e++)if(G.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=G.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=G.countCols();for(let o=0;o<t;o++)e.push(G.getColHeader(o));return e}let i=ne.colHeaders;const s=G.toPhysicalColumn(o),r=function(e){const t=[],o=G.countCols();let i=0;for(;i<o;i++)(0,n.isFunction)(ne.columns)&&ne.columns(i)&&t.push(i);return t[e]}(s);return!1===ne.colHeaders?i=null:ne.columns&&(0,n.isFunction)(ne.columns)&&ne.columns(r)&&ne.columns(r).title?i=ne.columns(r).title:ne.columns&&ne.columns[s]&&ne.columns[s].title?i=ne.columns[s].title:Array.isArray(ne.colHeaders)&&void 0!==ne.colHeaders[s]?i=ne.colHeaders[s]:(0,n.isFunction)(ne.colHeaders)?i=ne.colHeaders(s):ne.colHeaders&&"string"!=typeof ne.colHeaders&&"number"!=typeof ne.colHeaders&&(i=(0,E.spreadsheetColumnLabel)(o)),i=G.runHooks("modifyColumnHeaderValue",i,e,t),i},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=G.getCellMeta(0,e).width}if(void 0!==t&&t!==ne.width||(t=ne.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t},this.getColWidth=function(e,t){let o=G._getColWidthFromSettings(e);return o=G.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=_.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){var t;const o=G.stylesHandler.getDefaultRowHeight(e);let i=null!==(t=ne.rowHeights)&&void 0!==t?t:ne.minRowHeights;if(null!=i){switch(typeof i){case"object":i=i[e];break;case"function":i=i(e)}"string"==typeof i&&(i=Number.parseInt(i,10))}return null!=i&&i<o?o:i},this.getRowHeight=function(e,t){let o=G._getRowHeightFromSettings(e);return o=G.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return K.countRows()},this.countSourceCols=function(){return K.countFirstRowKeys()},this.countRows=function(){return $.getLength()},this.countCols=function(){const e=ne.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return G.view._wt.drawn?G.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return G.view._wt.drawn?G.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return G.view._wt.drawn?G.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return G.view._wt.drawn?G.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,v.rangeEachReverse)(G.countRows()-1,o=>{if(G.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,v.rangeEachReverse)(G.countCols()-1,o=>{if(G.isEmptyCol(o))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return ne.isEmptyRow.call(G,e)},this.isEmptyCol=function(e){return ne.isEmptyCol.call(G,e)},this.selectCell=function(e,t,o,i){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,r.isUndefined)(e)&&!(0,r.isUndefined)(t)&&this.selectCells([[e,t,o,i]],s,n)},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])&&J.suspend();const o=he.selectCells(e);return o&&t&&G.listen(),J.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 he.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 he.selectRows(e,t,o)},this.deselectCell=function(){he.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;J.skipNextScrollCycle(),he.selectAll(e,t,o)};const we=(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:i,col:s,considerHiddenIndexes:r}=null!=e?e:{};let a=i,l=s;if((0,n.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===r||r){const e=Number.isInteger(i)&&i>=0,t=Number.isInteger(s)&&s>=0,o=e?we(this.rowIndexMapper,i):void 0,n=t?we(this.columnIndexMapper,s):void 0;if(null===o||null===n)return!1;a=e?G.rowIndexMapper.getRenderableFromVisualIndex(o):i,l=t?G.columnIndexMapper.getRenderableFromVisualIndex(n):s}const h=Number.isInteger(a),c=Number.isInteger(l);let u=!1;return h&&a>=0&&c&&l>=0?u=G.view.scrollViewport(G._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(c&&l<0||!c)?u=G.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(h&&a<0||!h)&&(u=G.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,n.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,n.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),o=this.scrollViewportTo(t.toObject());return o?this.view.render():(0,n.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),o},this.destroy=function(){G._clearTimeouts(),G._clearImmediates(),G.view&&G.view.destroy(),K&&K.destroy(),K=null,(0,b.isRootInstance)(this)&&((0,V.uninstall)(),this.getFocusScopeManager().destroy()),this.getShortcutManager().destroy(),le.clear(),se.clearCache(),U.delete(this.guid),z.destroy(),q&&q.destroy(),G.rootContainer&&(0,s.empty)(G.rootContainer),G.rootPortalElement&&G.rootPortalElement.remove(),G.batchExecution(()=>{G.rowIndexMapper.unregisterAll(),G.columnIndexMapper.unregisterAll(),ae.getItems().forEach(e=>{let[,t]=e;t.destroy()}),ae.clear(),G.runHooks("afterDestroy")},!0),A.Hooks.getSingleton().destroy(G),(0,c.objectEach)(G,(e,t,o)=>{var i;(0,n.isFunction)(e)?o[t]=(i=t,()=>{throw new Error(`The "${i}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)}),G.isDestroyed=!0,$&&$.destroy(),$=null,X=null,he=null,q=null,G=null},this.getActiveEditor=function(){return q.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return G.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return G.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return G.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return G.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return G.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return G.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return G.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return G.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return G.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return G.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return G.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return G.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return ae.getItem((0,C.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ae.getId(e)},this.getInstance=function(){return G},this.addHook=function(e,t,o){A.Hooks.getSingleton().add(e,t,G,o)},this.hasHook=function(e){return A.Hooks.getSingleton().has(e,G)||A.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){A.Hooks.getSingleton().once(e,t,G,o)},this.removeHook=function(e,t){A.Hooks.getSingleton().remove(e,t,G)},this.runHooks=function(e,t,o,i,s,n,r){return A.Hooks.getSingleton().run(G,e,t,o,i,s,n,r)},this.getTranslatedPhrase=function(e,t){return(0,T.getTranslatedPhrase)(ne.language,e,t)},this.toHTML=()=>(0,d.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,d.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!Z;this.stylesHandler.useTheme(e);const o=this.stylesHandler.getThemeName();t||(G.render(),G.scrollViewportTo(0,0),(0,k.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),o&&(0,s.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,u.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,u.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return q};const Ce=(0,H.createShortcutManager)({handleEvent:()=>G.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||G.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&Ce.releasePressedKeys()}),this.getShortcutManager=function(){return Ce},Q=new N.FocusGridManager(G);const ve=(0,b.isRootInstance)(this)?(0,N.createFocusScopeManager)(G):null;this.getFocusManager=function(){return Q},this.getFocusScopeManager=function(){if(!(0,b.isRootInstance)(G))throw new Error("The FocusScopeManager is only available for the main Handsontable instance.");return ve},(0,f.getPluginsNames)().forEach(e=>{const t=(0,f.getPlugin)(e);ae.addItem(e,new t(this))}),(0,x.registerAllShortcutContexts)(G),(0,b.isRootInstance)(this)&&(0,N.registerAllFocusScopes)(G);Ce.setActiveContextName("grid"),A.Hooks.getSingleton().run(G,"construct")},o(22588),o(66182),o(93773),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(88633),o(14618),o(47572);var s=o(76651),n=o(99586),r=o(26599),a=o(12108),l=i(o(83338)),h=i(o(13683)),c=o(78437),u=o(94857),d=o(20479),g=o(43641),f=o(3182),p=o(83658),m=o(89640),w=o(72657),C=o(73983),v=o(58639),y=i(o(66123)),S=i(o(98110)),E=o(91718),R=o(32435),b=o(74125),_=o(24496),T=o(95820),M=o(24302),I=o(68959),O=o(59195),A=o(73764),N=o(87152),P=o(79836),H=o(66622),x=o(7037),k=o(81528),D=o(7522),L=o(49581),V=o(843),W=o(15841);let F=null;const B=new WeakSet,U=new Map;new Set},72136:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(42479),r=o(78437),a=o(58639),l=o(26599);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="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,i,s){e.getCellMeta(t,o).isSearchResult=s},f=function(e,t,o){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",f),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const i=this.hot.countRows(),s=this.hot.countCols(),n=[],r=this.hot;return(0,a.rangeEach)(0,i-1,i=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(i,s),l=this.hot.getCellMeta(i,s),h=l.search.callback||t,c=(l.search.queryMethod||o)(e,a,l);if(c){const e={row:i,col:s,data:a};n.push(e)}h&&h(r,i,s,a,c)})}),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,r.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,i,s,n){const r=n.className||[];let a=[];"string"==typeof r?a=r.split(" "):a.push(...r),this.isEnabled()&&n.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),n.className=a.join(" ")}t.Search=m},72216:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},72401:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(70270);class a extends n.BaseAction{constructor(e){let{columns:t,finalIndex:o}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,o)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveColumn(i,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),o.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},72586:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(99048),r=o(688),a=o(39761),l=o(76651),h=o(94411),c=o(52150),u=o(7037);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,f=d;(0,r.registerRootComparator)(d,h.rootComparator);class p extends n.ColumnSorting{constructor(){super(...arguments),(0,s.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,n.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&o.isHeader()},relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before",group:f})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(f)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];super.updateHeaderClasses(e,...o),(0,l.removeClass)(e,(0,c.getClassesToRemove)(e)),!1!==this.enabled&&(0,l.addClass)(e,(0,c.getClassesToAdd)(...o))}onAfterOnCellMouseDown(e,t){!1!==(0,a.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,n.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=p},72657:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered validator found under "${e}" name`);return n(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);s(e,t)},o(22588);var i=o(43641);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=r},72934:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},72992:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(39716);var i=o(41306);function s(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 r(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 l=new WeakMap,h=new WeakMap;class c extends i.StretchStrategy{constructor(){super(...arguments),s(this,l,0),s(this,h,-1)}prepare(e){super.prepare(e),r(l,this,0),r(h,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),r(h,this,e),r(l,this,t)}calculate(){if(-1===n(h,this))return;const e=Array.from(this.baseWidths).reduce((e,t)=>{let[,o]=t;return e+o},0),t=Math.max(this.viewportWidth-e+n(l,this),0);this.stretchedWidths.set(n(h,this),t)}}t.StretchLastStrategy=c},73050:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(31934);t.EDITOR_TYPE=i.EDITOR_TYPE,t.TextEditor=i.TextEditor},73094:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(78437),s=o(42732);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 r(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 l=new WeakMap;class h extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){super(e,(0,i.extend)(h.DEFAULTS,t)),n(this,l,void 0)}build(){var e,t,o;super.build(),e=l,t=this,o=this._element.firstChild,e.set(a(e,t),o)}update(){this.isBuilt()&&(r(l,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&r(l,this).focus()}activate(){r(l,this).click()}}t.LinkUI=h},73168:(e,t,o)=>{"use strict";var i={};i[o(71671)("toStringTag")]="z",e.exports="[object z]"===String(i)},73192:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},73335:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42890);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultipleSelectionHandles=i.MultipleSelectionHandles},73358:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(24496);class r extends n.Selection{constructor(e,t){super(e,null),(0,s.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:o}=e,i=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(o,-1);return null===i||null===s?null:((i.row>s.row||i.col>s.col)&&(i=t,s=o),this.settings.createCellRange(i,i,s))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===i)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===s?null:this.settings.createCellCoords(i,s)}getNearestNotHiddenIndex(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),o="N-S"===e.getVerticalDirection()?1:-1,i="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let n=null;if(null!==s&&null!==s.col&&null!==s.row||(n=this.getNearestNotHiddenCoords(t,o,i)),null!==n&&e.overlaps(n)){const t=e.highlight.clone();if(t.row>=0&&(t.row=n.row),t.col>=0&&(t.col=n.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==s&&null===n&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const o=this.settings.visualToRenderableCoords(e),i=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===i.row||null===i.col?null:this.settings.createCellRange(o,o,i)}}t.default=r},73481:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(39522),h=o(70155),c=o(13479),u=o(43832),d=o(57625),g=o(58719),f=!g&&!u("map",function(){}),p=!g&&!f&&d("map",TypeError),m=g||f||p,w=l(function(){var e=this.iterator,t=r(s(this.next,e));if(!(this.done=!!t.done))return h(e,this.mapper,[t.value,this.counter++],!0)});i({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return p?s(p,this,e):new w(a(this),{mapper:e})}})},73517:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(35529);t.AutocompleteCellType=i.AutocompleteCellType,t.CELL_TYPE=i.CELL_TYPE},73652:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124);var s=i(o(81115)),n=o(84029),r=o(58639);class a{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,n.assert)(()=>(0,r.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let o;if(t>=0)o=this.data[t],void 0===o&&(o=this.valueFactory(e),this.data[t]=o);else if(o=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=o,this.index[e]=t}else this.data.push(o),this.index[e]=this.data.length-1;return o}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=[],i=this.data.length;for(let e=0;e<t;e++)o.push(i+e),this.data.push(void 0);const s=(0,n.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...o,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=this.index.splice((0,n.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<o.length;e++){const t=o[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const o=this._getKeyByStorageIndex(t);-1!==o&&void 0!==this.data[t]&&e.push([o,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const o=e[t];return t+=1,{value:o,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=a},73678:(e,t,o)=>{"use strict";var i=o(16135),s=o(82397);e.exports=function(e,t,o){return o.get&&i(o.get,t,{getter:!0}),o.set&&i(o.set,t,{setter:!0}),s.f(e,t,o)}},73764:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i=o(28430);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var s=o(97819);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))});var n=o(81194);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))})},73793:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,i.isNumericLike)(e)){const t=(0,i.getParsedNumber)(e);return(0,s.isNullish)(t)?e:t}return e};var i=o(58639),s=o(84029)},73975:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26920),s=o(42144),n=o(45127);const r=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:r,editor:i.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:n.valueSetter}},73980:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:o}=e.getSelectedRangeActive();o.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},73983:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];let s=o.length;for(;s;){s-=1;const t=(0,n.stringify)(o[s]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isJSON=function(e){if("string"!=typeof e)return!1;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t}catch{return!1}},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=r,t.stripTags=function(e){return r(`${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(66182);var s=i(o(65166)),n=o(26599);function r(e,t){return s.default.sanitize(e,t)}},74030:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(19874);var s=o(42479),n=o(97819),r=i(o(15584)),a=i(o(29891));function l(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")}n.Hooks.getSingleton().register("beforeColumnFreeze"),n.Hooks.getSingleton().register("afterColumnFreeze"),n.Hooks.getSingleton().register("beforeColumnUnfreeze"),n.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 s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=p),t.add(e),function(e,t,o){l(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,r.default)(this),(0,a.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},74111:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(78437);const s=t.VALIDATOR_TYPE="autocomplete";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,n=e.length;t<n;t++)if((0,i.isObjectEqual)(o,e[t])){s=!0;break}t(s)}}n.VALIDATOR_TYPE=s},74116:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(15094)),n=o(76651);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=r},74125:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===i},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,i=t.rootInstanceSymbol=Symbol("rootInstance")},74419:(e,t,o)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,o){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,o)},o(22588);var i=o(9364),s=o(57103),n=o(17285),r=o(84064);const a=new Map([["collapse",i.collapseNode],["expand",s.expandNode],["hide-column",n.hideColumn],["show-column",r.showColumn]])},74425:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:o}=e.getSelectedRangeActive().highlight;let i=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===i&&(i=-1),t.setRangeStart(e._createCellCoords(i,o))}}},75356:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsTop,10),n=parseInt(e.getSettings().fixedColumnsStart,10),r=o.getNearestNotHiddenIndex(s,1),a=i.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,a)),t.markEndSource()}}},75372:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(59405),s=o(61570);class n extends i.IndexMap{insert(e,t){this.indexedValues=(0,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=n},75460:(e,t,o)=>{"use strict";var i=o(21912),s=o(82397),n=o(83640);e.exports=function(e,t,o){i?s.f(e,t,n(0,o)):e[t]=o}},75475:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(58639),r=o(94857),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),l=i(o(29087));function h(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 c(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 u=new WeakMap;class d extends l.default{constructor(){super(...arguments),(0,s.default)(this,"dataManager",this.plugin.dataManager),h(this,u,{row_above:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"above")},row_below:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedActive()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedActive();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedActive())},disabled:()=>{const e=this.hot.getSelectedActive(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,n.rangeEach)(0,e.items.length-1,o=>{if(0===o)return(0,r.arrayEach)(t,(t,i)=>{e.items.splice(o+i,0,t)}),!1}),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,n.rangeEach)(0,e.items.length-1,t=>{const o=c(u,this)[e.items[t].key];null!=o&&(e.items[t].callback=o)}),e}}t.default=d},75676:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=o(8278),s=o(58639)},75866:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(88633);var s=o(34149),n=o(78437),r=i(o(86248)),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),l=o(76651),h=o(3226);function c(e,t,o){u(e,t),t.set(e,o)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(f(e,t))}function g(e,t,o){return e.set(f(e,t),o),o}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")}var p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakSet;class b{constructor(e){let{rootElement:t,uiContainer:o,isRtl:i,themeName:s,phraseTranslator:n,shouldHaveBorder:r,a11yAnnouncer:a}=e;var l,h;u(l=this,h=R),h.add(l),c(this,p,void 0),c(this,m,void 0),c(this,w,!1),c(this,C,void 0),c(this,v,void 0),c(this,y,void 0),c(this,S,void 0),c(this,E,void 0),g(p,this,t),g(m,this,o),g(w,this,i),g(v,this,s),g(y,this,n),g(S,this,r),g(E,this,a),this.install()}install(){var e;if(null!==(e=d(C,this))&&void 0!==e&&e.container)return;const t=s.html`${'\n<div data-ref="container" class="ht-pagination handsontable">\n <div class="ht-pagination__inner">\n <div data-ref="pageSizeSection" class="ht-page-size-section">\n <span data-ref="pageSizeLabel" class="ht-page-size-section__label"></span>\n <div class="ht-page-size-section__select-wrapper">\n <select data-ref="pageSizeSelect" name="pageSize" data-hot-input></select>\n </div>\n </div>\n <div data-ref="pageCounterSection" class="ht-page-counter-section"></div>\n <nav data-ref="pageNavSection" class="ht-page-navigation-section">\n <button data-ref="first" class="ht-page-navigation-section__button ht-page-first"></button>\n <button data-ref="prev" class="ht-page-navigation-section__button ht-page-prev"></button>\n <span data-ref="pageNavLabel" class="ht-page-navigation-section__label"></span>\n <button data-ref="next" class="ht-page-navigation-section__button ht-page-next"></button>\n <button data-ref="last" class="ht-page-navigation-section__button ht-page-last"></button>\n </nav>\n </div>\n</div>\n'}`,{container:o,first:i,prev:n,next:r,last:a,pageSizeSelect:h}=t.refs;g(C,this,t.refs),o.setAttribute("dir",d(w,this)?"rtl":"ltr"),o.tabIndex=-1;const c=(e,t,o)=>{t.addEventListener(e,e=>{(e=>e.currentTarget.disabled)(e)||o()})};c("click",i,()=>this.runLocalHooks("firstPageClick")),c("click",n,()=>this.runLocalHooks("prevPageClick")),c("click",r,()=>this.runLocalHooks("nextPageClick")),c("click",a,()=>this.runLocalHooks("lastPageClick")),h.addEventListener("change",()=>{const e="auto"===h.value?"auto":Number.parseInt(h.value,10);this.runLocalHooks("pageSizeChange",e)}),this.setCounterSectionVisibility(!1),this.setNavigationSectionVisibility(!1),this.setPageSizeSectionVisibility(!1),d(m,this)?(d(m,this).appendChild(t.fragment),(0,l.addClass)(o,[d(v,this),"handsontable"])):d(p,this).after(t.fragment)}getContainer(){return d(C,this).container}getFocusableElements(){const{first:e,prev:t,next:o,last:i,pageSizeSelect:s}=d(C,this);return[s,e,t,o,i].filter(e=>!e.disabled)}updateWidth(e){return d(C,this).container.style.width=`${e}px`,this}updateTheme(e){if(g(v,this,e),d(m,this)){const{container:e}=d(C,this);(0,l.removeClass)(e,/ht-theme-.*/g),d(v,this)&&(0,l.addClass)(e,d(v,this))}return this}getHeight(){return d(C,this).container.offsetHeight}refreshBorderState(){const{container:e}=d(C,this);return d(m,this)||d(S,this).call(this)?(0,l.addClass)(e,"ht-pagination--bordered"):(0,l.removeClass)(e,"ht-pagination--bordered"),this}updateState(e){let{currentPage:t,totalPages:o,firstVisibleRowIndex:i,lastVisibleRowIndex:s,totalRenderedRows:n,pageSizeList:r,pageSize:c,autoPageSize:u}=e;const{first:g,prev:f,next:m,last:w,pageCounterSection:v,pageNavSection:S,pageNavLabel:R,pageSizeSelect:b,pageSizeLabel:_}=d(C,this),T=d(y,this).call(this,a.PAGINATION_COUNTER_SECTION,{start:i+1,end:s+1,total:n}),M=d(y,this).call(this,a.PAGINATION_NAV_SECTION,{currentPage:t,totalPages:o}),I=d(y,this).call(this,a.PAGINATION_PAGE_SIZE_SECTION);v.textContent=T,R.textContent=M,b.textContent="",_.textContent=`${I}:`,(0,l.setAttribute)(S,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_SECTION))]),(0,l.setAttribute)(b,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_PAGE_SIZE_SECTION))]),d(E,this).call(this,M),this.refreshBorderState(),r.forEach(e=>{const t="auto"===e?d(y,this).call(this,a.PAGINATION_PAGE_SIZE_AUTO):e,o=new Option(t,e);(u&&"auto"===e||!u&&e===c)&&(o.selected=!0),b.add(o)});const O=1===t,A=t===o;if("none"!==S.style.display){const e=d(p,this).ownerDocument.activeElement;O?((0,l.addClass)(g,"ht-page-navigation-section__button--disabled"),(0,l.addClass)(f,"ht-page-navigation-section__button--disabled"),g.disabled=!0,f.disabled=!0):((0,l.removeClass)(g,"ht-page-navigation-section__button--disabled"),(0,l.removeClass)(f,"ht-page-navigation-section__button--disabled"),g.disabled=!1,f.disabled=!1),A?((0,l.addClass)(m,"ht-page-navigation-section__button--disabled"),(0,l.addClass)(w,"ht-page-navigation-section__button--disabled"),m.disabled=!0,w.disabled=!0):((0,l.removeClass)(m,"ht-page-navigation-section__button--disabled"),(0,l.removeClass)(w,"ht-page-navigation-section__button--disabled"),m.disabled=!1,w.disabled=!1),[g,f,m,w].includes(e)&&(f.disabled?m.focus():m.disabled&&f.focus())}return(0,l.setAttribute)(g,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_FIRST_PAGE)),(0,h.A11Y_DISABLED)(O)]),(0,l.setAttribute)(f,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_PREV_PAGE)),(0,h.A11Y_DISABLED)(O)]),(0,l.setAttribute)(m,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_NEXT_PAGE)),(0,h.A11Y_DISABLED)(A)]),(0,l.setAttribute)(w,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_LAST_PAGE)),(0,h.A11Y_DISABLED)(A)]),this}setPageSizeSectionVisibility(e){const{pageSizeSection:t,pageSizeSelect:o}=d(C,this);return t.style.display=e?"":"none",o.disabled=!e,f(R,this,_).call(this),this}setCounterSectionVisibility(e){return d(C,this).pageCounterSection.style.display=e?"":"none",f(R,this,_).call(this),this}setNavigationSectionVisibility(e){const{pageNavSection:t,first:o,prev:i,next:s,last:n}=d(C,this);return t.style.display=e?"":"none",o.disabled=!e,i.disabled=!e,s.disabled=!e,n.disabled=!e,f(R,this,_).call(this),this}destroy(){var e;null===(e=d(C,this))||void 0===e||e.container.remove(),g(C,this,null)}}function _(){const{container:e,pageSizeSection:t,pageCounterSection:o,pageNavSection:i}=d(C,this),s="none"!==t.style.display||"none"!==o.style.display||"none"!==i.style.display;d(m,this)||(s?(0,l.addClass)(d(p,this).querySelector(".ht-wrapper"),"htPagination"):(0,l.removeClass)(d(p,this).querySelector(".ht-wrapper"),"htPagination")),e.style.display=s?"":"none"}t.PaginationUI=b,(0,n.mixin)(b,r.default)},75949:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.default=class{constructor(e,t,o){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.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))}}},75972:e=>{"use strict";e.exports=t},76030:(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,i.isFunction)(e)?e:s,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(99586);const s=e=>`'${e}' value is already declared in a unique set.`},76372:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(83379);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dropdownRenderer=i.dropdownRenderer},76400:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=o(42479),n=i(o(61521)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(60808));const a=t.PLUGIN_KEY="exportFile",l=t.PLUGIN_PRIORITY=240;class h extends s.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return l}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:o,rootWindow:i}=this.hot,s=this._createTypeFormatter(e,t),n=this._createBlob(s),r=i.URL||i.webkitURL,a=o.createElement("a"),l=`${s.options.filename}.${s.options.fileExtension}`;if(void 0!==a.download){const e=r.createObjectURL(n);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),o.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),o.body.removeChild(a),setTimeout(()=>{r.revokeObjectURL(e)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(n,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,r.default)(e,new n.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=h},76429:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,o){const i=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(o,"bottom",i)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(39469)},76432:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllFocusScopes=function(e){[i.focusGridScope].forEach(t=>t(e))};var i=o(92058)},76651:(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=a,t.closestDown=function(e,t,o){const i=[];let s=e;for(;s&&(s=a(s,t,o),s&&(!o||o.contains(s)));)i.push(s),s=s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.host:s.parentNode;const n=i.length;return n?i[n-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,i.sanitize)(t):t:p(e,t)},t.fastInnerText=p,t.findFirstParentWithClass=function(e,t){const o={element:void 0,classNames:[]};let i=e;for(;null!==i&&i!==e.ownerDocument.documentElement&&!o.element;){if("string"==typeof t&&i.classList.contains(t))o.element=i,o.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(i.classList).filter(e=>t.test(e));e.length&&(o.element=i,o.classNames.push(...e))}i=i.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=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,n.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=r,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,i=null,s=e;for(;null!==s;){if(o===t){i=s;break}s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s=s.host:(o+=1,s=s.parentNode)}return i},t.getParentWindow=function(e){return r(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 i=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:n}=s.style;if([e,t,n].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:n}=o.getComputedStyle(s)),i.includes(e)||i.includes(t)||i.includes(n))return s;if(s.clientHeight<=s.scrollHeight+1&&(i.includes(n)||i.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(i.includes(t)||i.includes(e)))return s;s=s.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,n.isSafari)()||(0,n.isMobileBrowser)()||(0,n.isIpadOS)()||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 i=t.getBoundingClientRect().width;o.style.overflow="scroll";let s=t.getBoundingClientRect().width;i===s&&(s=o.clientWidth);return(e.body||e.documentElement).removeChild(o),parseFloat((i-s).toFixed(3))}(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 i=e.style[t];if(""!==i&&void 0!==i)return i;const s=o.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let i=e.parentNode;for(;i&&i.style&&t.body!==i;){if("visible"!==i.style.overflow&&""!==i.style.overflow)return i;const e=o.getComputedStyle(i),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),n=e.getPropertyValue("overflow-y"),r=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(n)||t.includes(r))return i;i=i.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,i=[];"string"==typeof t?i=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):i.push(t);for(;null!==o;){if(i.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=v,t.isInternalElement=function(e,t){const o=e.closest(".handsontable");return!!o&&(o.parentNode===t||o===t)},t.isOutsideInput=y,t.isVisible=function e(t){const o=t.ownerDocument.documentElement,i=t.ownerDocument.defaultView;let s=t;for(;s!==o;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if("none"===i.getComputedStyle(s).display)return!1;s=s.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=S,t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let i=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?i=e.msMatchesSelector(o):e.matches&&(i=e.matches(o)));return i},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((o,i)=>{o.forEach(o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),i.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,i=t.documentElement;let s,n,r,a=e;s=a.offsetLeft,n=a.offsetTop,r=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,n+=a.offsetTop,r=a;r&&"fixed"===r.style.position&&(s+=o.pageXOffset||i.scrollLeft,n+=o.pageYOffset||i.scrollTop);return{left:s,top:n}},t.outerHeight=function(e){return e.getBoundingClientRect().height},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const i=o.parentElement.querySelector(`.ht_clone_${e}`);return i?i.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:i}=h(t,!0);o.forEach(t=>{""!==t&&e.removeAttribute(t)}),i.forEach(t=>{e.getAttributeNames().forEach(o=>{t.test(o)&&e.removeAttribute(o)})})},t.removeClass=u,t.removeContentEditableFromElementAndDeselect=E,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(),E(e,o)},t.selectElementIfAllowed=function(e){y(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(i){const s=e.parentNode,n=s.style.display;s.style.display="block",e.setSelectionRange(t,o),s.style.display=n}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(22588),o(66182),o(81396),o(81124),o(88633);var i=o(73983),s=o(3226),n=o(12108);function r(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:i,DOCUMENT_FRAGMENT_NODE:s}=Node;let n=e;for(;null!=n&&n!==o;){const{nodeType:e,nodeName:o}=n;if(e===i&&(t.includes(o)||t.includes(n)))return n;const{host:r}=n;n=r&&e===s?r:n.parentNode}return null}function l(e){return e&&e.length?e.filter(e=>!!e):[]}function h(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const o=[],i=[];return i.push(...e.filter(e=>{const i=e instanceof RegExp;return i&&t&&o.push(e),!i})),t?{regexFree:i,regexes:o}:i}function c(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(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:i}=h(t,!0);o=l(o),o.length>0&&e.classList.remove(...o),i.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(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function y(e){return v(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 i=e.ownerDocument,n=i.createRange(),r=i.defaultView.getSelection();d(e,"contenteditable",!0),o&&d(e,...(0,s.A11Y_HIDDEN)()),t&&c(e,"invisibleSelection"),n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n)}function E(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")}},76692:(e,t,o)=>{"use strict";o(22588),t.__esModule=!0,o(81396),o(88633),o(14618);var i=o(34149),s=o(76651),n=o(3226),r=o(73983);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 l(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="ht-empty-data-state",d=`<div data-ref="emptyDataStateElement" class="${u} handsontable">\n <div class="${u}__content-wrapper">\n <div data-ref="emptyDataStateInner" class="${u}__content-wrapper-inner"></div>\n </div>\n</div>`;var g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap;t.EmptyDataStateUI=class{constructor(e){let{rootElement:t,rootDocument:o}=e;a(this,g,void 0),a(this,f,void 0),a(this,p,void 0),a(this,m,void 0),h(g,this,t),h(f,this,o),this.install()}install(){var e;if(null!==(e=l(p,this))&&void 0!==e&&e.emptyDataStateElement)return;const t=i.html`${d}`;h(p,this,t.refs);const{emptyDataStateInner:o,emptyDataStateElement:r}=l(p,this);(0,s.setAttribute)(o,[(0,n.A11Y_TABINDEX)(-1)]),(0,s.setAttribute)(r,[(0,n.A11Y_TABINDEX)(-1)]),l(g,this).after(t.fragment)}getElement(){var e;return null===(e=l(p,this))||void 0===e?void 0:e.emptyDataStateElement}getFocusableElements(){const{emptyDataStateButtons:e,emptyDataStateInner:t}=l(p,this),o=Array.from(null==e?void 0:e.children);return 0===o.length?[t]:o}show(){var e;null!==(e=l(p,this))&&void 0!==e&&e.emptyDataStateElement&&(l(p,this).emptyDataStateElement.style.display="block")}hide(){var e,t;null!==(e=l(p,this))&&void 0!==e&&e.emptyDataStateElement&&(null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),l(p,this).emptyDataStateElement.style.display="none")}updateContent(e){var t;const{emptyDataStateInner:o}=l(p,this);let s="";s="string"==typeof e?{title:e}:{title:null==e?void 0:e.title,description:null==e?void 0:e.description,buttons:null==e?void 0:e.buttons};const n=i.html`${(e=>{let{title:t,description:o,buttons:i}=e;return`\n <div class="${u}__content">\n ${t?`<h2 class="${u}__title">${(0,r.stripTags)(t)}</h2>`:""}\n ${o?`<p class="${u}__description">${(0,r.stripTags)(o)}</p>`:""}\n </div>\n <div\n data-ref="emptyDataStateButtons"\n class="${u}__buttons${(null==i?void 0:i.length)>0?` ${u}__buttons--has-buttons`:""}"\n >${(null==i?void 0:i.length)>0?i.map(e=>`<button class="ht-button ht-button--${e.type}">${(0,r.stripTags)(e.text)}</button>`).join(""):""}</div>`})(s)}`;h(p,this,{...l(p,this),...n.refs}),o.innerHTML="",o.appendChild(n.fragment),(null===(t=s.buttons)||void 0===t?void 0:t.length)>0&&Array.from(l(p,this).emptyDataStateButtons.children).forEach((e,t)=>{e.addEventListener("click",s.buttons[t].callback)})}updateClassNames(e){const{emptyDataStateElement:t}=l(p,this);e.countRenderableColumns()>0&&e.getColumnHeadersCount()>0?(0,s.addClass)(t,`${u}--disable-top-border`):(0,s.removeClass)(t,`${u}--disable-top-border`),e.countRenderableRows()>0&&e.getRowHeadersCount()>0?(0,s.addClass)(t,`${u}--disable-inline-border`):(0,s.removeClass)(t,`${u}--disable-inline-border`),e.hasHorizontalScroll()&&!e.isHorizontallyScrollableByWindow()?(0,s.addClass)(t,`${u}--disable-bottom-border`):(0,s.removeClass)(t,`${u}--disable-bottom-border`)}updateSize(e){const{emptyDataStateElement:t}=l(p,this),o=e.hasHorizontalScroll()?(0,s.getScrollbarWidth)(e.hot.rootDocument):0,i=e.countRenderableRows(),n=e.countRenderableColumns();var r;(t.style.top=n>0?`${e.getColumnHeaderHeight()}px`:"0px",t.style.insetInlineStart=i>0?`${e.getRowHeaderWidth()}px`:"0px",0===i)?(l(m,this)||(h(m,this,l(f,this).createElement("div")),l(m,this).classList.add(`${u}-placeholder`),e._wt.wtTable.holder.appendChild(l(m,this))),l(m,this).style.width="100%",l(m,this).style.height="150px"):(null===(r=l(m,this))||void 0===r||r.remove(),h(m,this,null));let a=e.getWorkspaceWidth(),c=e.getTableHeight();e.isHorizontallyScrollableByWindow()?n>0?a=e.getTotalTableWidth():i>0&&(a=e.getViewportWidth()):i>0?a=e.getViewportWidth():e.getTableWidth()-e.getRowHeaderWidth()<e.getViewportWidth()&&n>0&&(a=e.getTableWidth()),e.isVerticallyScrollableByWindow()||e.hasVerticalScroll()?c=n>0?e.hot.getTableHeight()-e.getColumnHeaderHeight():e.hot.getTableHeight():0===i&&(c=e.getViewportHeight()-o),t.style.width=`${a}px`,t.style.height=`${c}px`}destroy(){var e,t;null===(e=l(p,this))||void 0===e||null===(e=e.emptyDataStateElement)||void 0===e||e.remove(),null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),h(p,this,null)}}},76742:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!i[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:o,descriptor:s}=i[e];let n=t;s.inputValuesDecorator&&(n=s.inputValuesDecorator(n));return function(e){return o.apply(e.meta.instance,[].concat([e],[n]))}},t.getConditionDescriptor=function(e){if(!i[e])throw Error(`Filter condition "${e}" does not exist.`);return i[e].descriptor},t.registerCondition=function(e,t,o){o.key=e,i[e]={condition:t,descriptor:o}},o(22588);const i=t.conditions={}},76887:(e,t,o)=>{"use strict";var i=o(21912),s=o(19617),n=o(19809),r=o(83640),a=o(56769),l=o(61989),h=o(33477),c=o(47145),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=l(t),c)try{return u(e,t)}catch(e){}if(h(e,t))return r(!s(n.f,e,t),e[t])}},76952:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=o(78437),n=i(o(86248));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 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 l=new WeakMap;class h{constructor(){r(this,l,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=l).get(a(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,i;o=this,i=e,(t=l).set(a(t,o),i)}}t.ChangesObserver=h,(0,s.mixin)(h,n.default)},76978:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(26599);const r=t.CONDITION_NAME="empty";function a(e){return(0,n.isEmpty)(e.value)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},76994:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},77284:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var i=o(42479),s=o(76651),n=o(94857),r=o(58639),a=o(32435);function l(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,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakSet;class H extends i.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=P),o.add(t),l(this,m,null),l(this,w,null),l(this,C,[]),l(this,v,null),l(this,y,null),l(this,S,null),l(this,E,null),l(this,R,null),l(this,b,this.hot.rootDocument.createElement("DIV")),l(this,_,this.hot.rootDocument.createElement("DIV")),l(this,T,null),l(this,M,!1),l(this,I,0),l(this,O,null),l(this,A,void 0),l(this,N,void 0),(0,s.addClass)(u(b,this),"manualColumnResizer"),(0,s.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(A,this,new a.PhysicalIndexToValueMap),u(A,this).addLocalHook("init",()=>d(P,this,x).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,u(A,this)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,F).call(e,...o)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,B).call(e,...o)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,U).call(e,...o)}),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(N,this,u(A,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",p,u(A,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=Math.max(t,20),i=this.hot.toPhysicalColumn(e);return u(A,this).setValueAtIndex(i,o),o}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);u(A,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode||u(I,this)>1)return;c(m,this,e);const{_wt:t}=this.hot.view,o=t.wtTable.getCoords(u(m,this)),i=o.col;if(i<0)return;const a=(0,s.outerHeight)(u(m,this)),l=u(m,this).getBoundingClientRect();let h;i<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(i)),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,n.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,o=e.getBottomEndCorner().col;(0,r.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(E,this,parseInt(l.width,10)),u(b,this).style.top=`${h.top}px`,u(b,this).style[this.inlineDir]=`${u(R,this)+u(E,this)}px`,u(b,this).style.height=`${a}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,s.outerHeight)(u(b,this)),10),t=parseInt(u(b,this).style.top,10)+e,o=this.hot.view.getTableHeight();(0,s.addClass)(u(b,this),"active"),(0,s.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,s.removeClass)(u(b,this),"active"),(0,s.removeClass)(u(_,this),"active")}checkIfColumnHeader(e){const t=(0,s.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:o,topInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.THEAD,i.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.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{const i=this.hot.runHooks("beforeColumnResize",u(y,this),t,!0);void 0!==i&&c(y,this,i),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,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.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(P,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousedown",e=>d(P,this,D).call(this,e)),this.eventManager.addEventListener(e,"mousemove",e=>d(P,this,L).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>d(P,this,V).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(P,this,W).call(this))}destroy(){super.destroy()}}function x(){const e=this.hot.getSettings()[g],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution(()=>{t.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0):Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0),c(N,this,e)):!0===e&&Array.isArray(u(N,this))&&this.hot.batchExecution(()=>{u(N,this).forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0)}function k(e){if(!(0,s.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,s.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(E,this)))}function L(e){if(u(T,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();c(v,this,u(E,this)+t),(0,n.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function V(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},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(E,this)){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.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),i=u(A,this).getValueAtIndex(e);this.hot.getSettings()[g]&&i&&(o=i)}return o}function B(e,t){const o=u(A,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof o?o:e}function U(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=H},77494:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=o(88014),a=i(o(78155)),l=o(78437),h=o(58639),c=i(o(36642)),u=o(73983),d=o(32435),g=o(76651);function f(e,t,o){p(e,t),t.set(e,o)}function p(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(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}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 v=t.PLUGIN_KEY="autoRowSize",y=t.PLUGIN_PRIORITY=40,S="htFirstDatasetColumnNotRendered",E="htAutoRowSize";var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}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 500}constructor(e){var t,o;super(e),p(t=this,o=_),o.add(t),(0,s.default)(this,"headerHeight",null),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const o=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(o))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let i;return e>=0?i=this.hot.getDataAtCell(e,t):-1===e&&(i=this.hot.getColHeader(t)),{value:i}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredRows",0),(0,s.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),f(this,R,[]),f(this,b,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>C(_,this,N).call(this,e,t,o))}isEnabled(){const e=this.hot.getSettings()[v];return!0===e||(0,l.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;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),i=0;i<t;i++)o[i]=arguments[i];return C(_,e,P).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(_,e,H).call(e,...o)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(_,e,k).call(e,...o)}),this.addHook("beforeViewRender",()=>C(_,this,O).call(this)),this.addHook("beforeRender",()=>C(_,this,A).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>C(_,this,x).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),(0,g.addClass)(this.hot.rootElement,E),super.enablePlugin()}disablePlugin(){this.headerHeight=null,(0,g.removeClass)(this.hot.rootElement,E),super.disablePlugin(),C(_,this,I).call(this,!1),this.addHook("beforeRowResize",(e,t,o)=>C(_,this,N).call(this,e,t,o))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,o)}calculateRowsHeight(){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]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,s);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(i.from,i.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),o||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,s).forEach((e,t)=>this.ghostTable.addRow(t,e))}}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)})},!0),this.measuredRows=i.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){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],o=0;const i=this.hot.countRows()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateRowsHeight({from:o,to:Math.min(o+T.CALCULATION_STEP,i)},e,t),o=o+T.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateRowsHeight({from:0,to:a},e,t),o=a+1),o<i?n():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[v];let t=T.SYNC_CALCULATION_LIMIT;const o=this.hot.countRows()-1;return(0,l.isObject)(e)&&(t=e.syncLimit,(0,u.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getRowHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.stylesHandler.getDefaultRowHeight(e);var o;if(e<0)return null!==(o=this.headerHeight)&&void 0!==o?o:t;const i=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(i))return t;const s=this.rowHeightsMap.getValueAtIndex(i);let n=t;return null!==s&&s>t&&(n=s,this.hot.stylesHandler.isClassicTheme()||e!==this.hot.view.getFirstRenderedVisibleRow()||(n+=1)),n}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:o}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution(()=>{(0,h.rangeEach)(Math.min(t,o),Math.max(t,o),e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function M(e){const t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{const o=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(o,t)})},!0),this.ghostTable.clean())}function I(e){const t=this.hot.getFirstRenderedVisibleColumn(),o=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||o===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?(0,g.removeClass)(this.hot.rootElement,S):(0,g.addClass)(this.hot.rootElement,S)}function O(){C(_,this,I).call(this)}function A(){this.calculateVisibleRowsHeight(),this.inProgress||(C(_,this,M).call(this,w(R,this)),m(R,this,[]))}function N(e,t,o){let i=e;return o&&(this.calculateRowsHeight(t,void 0,!0),i=this.getRowHeight(t)),i}function P(e,t){t||this.recalculateAllRowsHeight()}function H(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);w(R,this).push(...t)}function x(){this.recalculateAllRowsHeight(),m(b,this,!0)}function k(e){if(!w(b,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.row;if(Number.isInteger(i)){const t=this.hot.toVisualRow(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(R,this).push(...t)}t.AutoRowSize=T},77527:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.max(i.row-e.countVisibleRows(),0),n=o.getNearestNotHiddenIndex(s,1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.max(o.row-s,0);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},77564:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(94857),a=o(78437),l=o(13726),h=o(32971),c=o(76651),u=o(97718),d=o(61276),g=o(97819),f=o(50151),p=o(3226);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,S="changeType",E=v;var R=new WeakMap,b=new WeakSet;class _ extends n.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,s.default)(this,"commandExecutor",new l.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.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),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,x).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,H).call(e,...o)}),this.addHook("beforeDialogShow",()=>this.close());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 i=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",i),this.menu.setMenuItems(i),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,A).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,N).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,P).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),(0,r.arrayEach)(i,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.getSelectedRangeActive();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeActive(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),i=this.hot.getCell(-1,t.col,!0).querySelector(`.${S}`),s=i.getBoundingClientRect();this.open({left:s.left+o.left,top:s.top+i.offsetHeight+o.top},{left:s.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.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:E},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:E}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}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,a.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),i=1;i<t;i++)o[i-1]=arguments[i];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,S)){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 i=o.parentNode.childNodes,s=Array.prototype.indexOf.call(i,o);if(e<0||s!==i.length-1)return;const n=t.querySelector(`.${S}`);if(this.enabled&&n)return;if(!this.enabled)return void(n&&n.parentNode.removeChild(n));const r=this.hot.rootDocument.createElement("button");r.className=S,r.type="button",r.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(r,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),r.onclick=function(){return!1},t.firstChild.insertBefore(r,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function A(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function N(e){C(b,this,T).call(this,e)}function P(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function H(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function x(e){(0,c.hasClass)(e.target,S)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},77669:(e,t,o)=>{"use strict";var i=o(94988),s=Error,n=i("".replace),r=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(r);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=n(e,a,"");return e}},77690:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(3921);const s=t.RENDERER_TYPE="date";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},77816:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32804);t.RENDERER_TYPE=i.RENDERER_TYPE,t.handsontableRenderer=i.handsontableRenderer},77868:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(76651),s=o(99586),n=o(88014),r=o(12108),a=o(26599);function l(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,S=new WeakMap;t.default=class{constructor(e,t,o,i,s,n){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;l(this,d,void 0),l(this,g,void 0),l(this,f,void 0),l(this,p,void 0),l(this,m,void 0),l(this,w,void 0),l(this,C,void 0),l(this,v,void 0),l(this,y,[null,null]),l(this,S,[null,null]),c(d,this,o),c(g,this,t),c(f,this,s),c(p,this,n),c(m,this,r),c(w,this,i),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,r.isMobileBrowser)()?e():((0,n.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],[i,s]=[t.col,h(v,this).from.col];return e===o&&i===s}return!1}parentCell(e){const t={},o=h(f,this).TABLE,s=(0,i.closestDown)(e,["TD","TH"],o);return s?(t.coords=h(f,this).getCoords(s),t.TD=s):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"current")?(t.coords=h(p,this).getFocusSelection().cellRange.highlight,t.TD=h(f,this).getCell(t.coords)):(0,i.hasClass)(e,"wtBorder")&&(0,i.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,s.partial)(i.getParent,e.target),n=e.target;if(!["TD","TH"].includes(t.nodeName)&&(n===t||o(0)===t||o(1)===t))return;const r=this.parentCell(n);(0,i.hasClass)(n,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,n):r.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,r.coords,r.TD),(0===e.button||this.touchApplied)&&r.TD&&(h(S,this)[0]=r.TD,clearTimeout(h(y,this)[0]),h(y,this)[0]=setTimeout(()=>{h(S,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,i.closestDown)(e.target,["TD","TH"],t),s=h(m,this)||this;o&&o!==s.lastMouseOver&&(0,i.isChildOf)(o,t)&&(s.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,i.closestDown)(e.target,["TD","TH"],t),s=(0,i.closestDown)(e.relatedTarget,["TD","TH"],t),n=h(m,this)||this;o&&o!==s&&(0,i.isChildOf)(o,t)&&(this.callListener("onCellMouseOut",e,h(f,this).getCoords(o),o),null===s&&(n.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(S,this)[0]&&t.TD===h(S,this)[1]?((0,i.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),h(S,this)[0]=null,h(S,this)[1]=null):t.TD===h(S,this)[0]&&(h(S,this)[1]=t.TD,clearTimeout(h(y,this)[1]),h(y,this)[1]=setTimeout(()=>{h(S,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,i=null===(t=this.parentCell(o))||void 0===t?void 0:t.coords,s=(0,a.isDefined)(i)&&i.row>=0&&i.col>=0;if(e.cancelable&&s&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,r.isIOS)()&&((0,r.isChromeWebKit)()||(0,r.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,i){const s=h(d,this).getSettingPure(e);s&&s(t,o,i,h(C,this).call(this))}destroy(){clearTimeout(h(y,this)[0]),clearTimeout(h(y,this)[1]),h(w,this).destroy()}}},77915:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeActive().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="col_right"},78124:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command]};var i=o(76994),s=o(53394),n=o(92587),r=o(21426),a=o(56456),l=o(68295),h=o(63464),c=o(84249),u=o(64721),d=o(72216),g=o(20385),f=o(49262),p=o(19835),m=o(77527)},78155:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(76651),r=o(94857);t.default=class{constructor(e){(0,s.default)(this,"hot",null),(0,s.default)(this,"container",null),(0,s.default)(this,"injected",!1),(0,s.default)(this,"rows",[]),(0,s.default)(this,"columns",[]),(0,s.default)(this,"samples",null),(0,s.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)),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,r.arrayEach)(this.rows,t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))})}getWidths(e){this.injected||this.injectTable(),(0,r.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,r.arrayEach)(o.strings,o=>{t.appendChild(this.createColElement(o.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),i=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,i),o.appendChild(i)),this.samples.forEach(i=>{(0,r.arrayEach)(i.strings,i=>{const s=i.col,n=this.hot.getCellMeta(e,s),r=this.hot.getCellRenderer(n),a=t.createElement("td");a.setAttribute("ghost-table",1),r(this.hot,a,e,s,this.hot.colToProp(s),i.value,n),o.appendChild(a)})}),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const i=e.createElement("th");o.push([-1,i]),t.appendChild(i)}this.samples.forEach(i=>{(0,r.arrayEach)(i.strings,i=>{const s=i.col,n=e.createElement("th");o.push([s,n]),t.appendChild(n)})}),this.table.tHead.appendChild(t),(0,r.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(i=>{(0,r.arrayEach)(i.strings,i=>{const s=i.row,n=this.hot.getCellMeta(s,e),r=this.hot.getCellRenderer(n),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),r(this.hot,a,s,e,this.hot.colToProp(e),i.value,n),l.appendChild(a),o.appendChild(l)})}),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 i=0;t>=0&&e>=0&&(i=this.hot.getCellMeta(t,e).colspan);let s=this.hot.getColWidth(e);if(i>1)for(let t=e+1;t<e+i;t++)s+=this.hot.getColWidth(t);return o.style.width=`${s}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),i=t.createElement("table"),s=t.createElement("thead"),r=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&i.appendChild(a),this.isHorizontal()&&(l.appendChild(h),s.appendChild(l),i.style.tableLayout="auto",i.style.width="auto"),i.appendChild(s),this.isVertical()&&r.appendChild(l),i.appendChild(r),(0,n.addClass)(i,e),o.appendChild(i),{fragment:o,table:i,tHead:s,tBody:r,colGroup:a,tr:l,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),i=t.createElement("div"),s=`htGhostTable htAutoSize ${e.trim()}`;return(0,n.addClass)(i,s),o.appendChild(i),{fragment:o,container:i}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},78437:(e,t,o)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,o){if("object"!=typeof t||null===t)return o;if("object"!=typeof o||null===o)return t;const i={};return Object.keys(o).forEach(s=>{"object"!=typeof o[s]||null===o[s]||Array.isArray(o[s])?i[s]=a(t,s)&&void 0!==t[s]?t[s]:o[s]:i[s]=e(t[s],o[s])}),Object.keys(t).forEach(e=>{a(i,e)||(i[e]=t[e])}),i},t.clone=function(e){const t={};return r(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}`,i={_touched:!1,[o]:e,isTouched(){return this._touched}};return Object.defineProperty(i,t,{get(){return this[o]},set(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,o){r(o,(i,s)=>{o[s]&&"object"==typeof o[s]?(t[s]||(Array.isArray(o[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(o[s])?t[s]=o[s]:t[s]={}),e(t[s],o[s])):t[s]=o[s]})},t.deepObjectSize=function(e){if(!n(e))return 0;const t=function(e){let o=0;return n(e)?r(e,(e,i)=>{"__children"!==i&&(o+=t(e))}):o+=1,o};return t(e)},t.defineGetter=function(e,t,o,i){i.value=o,i.writable=!1!==i.writable,i.enumerable=!1!==i.enumerable,i.configurable=!1!==i.configurable,Object.defineProperty(e,t,i)},t.duckSchema=function e(t){let o;Array.isArray(t)?o=t.length?new Array(t.length).fill(null):[]:(o={},r(t,(t,i)=>{"__children"!==i&&(t&&"object"==typeof t&&!Array.isArray(t)?o[i]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?o[i]=[e(t[0])]:o[i]=[]:o[i]=null)}));return o},t.extend=function(e,t,o){const i=Array.isArray(o);return r(t,(t,s)=>{(!1===i||o.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const o=t.split(".");let i=e;return r(o,e=>{if(i=i[e],void 0===i)return i=void 0,!1}),i},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=n,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),a=1;a<t;a++)o[a-1]=arguments[a];return(0,i.arrayEach)(o,t=>{e.MIXINS.push(t.MIXIN_NAME),r(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 i=function(e,t){const o=`_${e}`;return function(){return void 0===this[o]&&(this[o]=(e=>{let t=e;return(Array.isArray(t)||n(t))&&(t=s(t)),t})(t)),this[o]}},r=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,o,{get:i(o,t),set:r(o),configurable:!0})}})}),e},t.objectEach=r,t.setProperty=function(e,t,o){if("string"!=typeof t)return;const i=t.split(".");let s=e;i.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==i.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=o)})},o(22588),o(66182),o(4114),o(81396),o(88633);var i=o(94857);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function r(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 a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},78644:(e,t,o)=>{"use strict";var i=o(27538),s=o(26286),n=o(72023);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:s})},78656:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},78727:(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(i.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(39469)},78822:(e,t,o)=>{"use strict";var i=o(27538),s=o(23092),n=o(89035);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("difference",function(e){return 0===e.size})||n(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:s})},78865:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(25502);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Formulas=i.Formulas},79060:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(59839),o(30417),o(81396),o(88633),o(14618);var i=o(42479),s=o(58639),n=o(76651),r=o(75866),a=o(46539),l=o(843),h=o(45074),c=o(34149),u=o(49581);function d(e,t,o){g(e,t),t.set(e,o)}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")}const w=t.PLUGIN_KEY="pagination",C=t.PLUGIN_PRIORITY=900,v=`plugin:${w}`,y=c.toSingleLine`The \`auto\` page size setting requires the \`autoRowSize\`\x20
|
|
85
|
+
or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:o,rowspan:i,colspan:s}=e;return t<0||o<0||i<0||s<0}static isSingleCell(e){let{rowspan:t,colspan:o}=e;return 1===o&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:o}=e;return 0===o||0===t}static isOutOfBounds(e,t,o){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=o||e.col+e.colspan-1>=o}normalize(e){const t=e.countRows(),o=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>o-1&&(this.col=o-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>o-1&&(this.colspan=o-this.col),l(c,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const o=e[0]||e[1],i=t+Math.abs(e[0]||e[1])-1,s=e[0]?"colspan":"rowspan",n=e[0]?"col":"row",r=Math.min(t,i),a=Math.max(t,i),h=this[n],u=this[n]+this[s]-1;if(h>=t&&(this[n]+=o),o>0)t<=u&&t>h&&(this[s]+=o);else if(o<0){if(r<=h&&a>=u)return this.removed=!0,l(c,this,null),!1;if(h>=r&&h<=a){const e=a-h+1,t=Math.abs(o)-e;this[n]-=t+o,this[s]-=e}else if(h<=r&&u>=a)this[s]+=o;else if(h<=r&&u>=r&&u<a){const e=u-r+1;this[s]-=e}}return l(c,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return a(c,this)||l(c,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),a(c,this)}}},65781:(e,t,o)=>{"use strict";var i=o(24427);e.exports="NODE"===i},66058:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="contains";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(o))>=0}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},66091:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(81124);var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:o}=e;super("filter"),(0,s.default)(this,"conditionsStack",void 0),(0,s.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=o}static startRegisteringEvents(e,t){e.addHook("beforeFilter",(e,o)=>{t.done(()=>new r({conditionsStack:e,previousConditionsStack:o}))})}undo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.importConditions(this.previousConditionsStack),o.filter()}redo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.importConditions(this.conditionsStack),o.filter()}}t.FiltersAction=r},66123:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=i(o(13683)),a=o(70667),l=i(o(24496)),h=o(52072),c=o(74125),u=o(43641),d=o(3226);function g(e,t,o){f(e,t),t.set(e,o)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(w(e,t))}function m(e,t,o){return e.set(w(e,t),o),o}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 WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function I(e){const t=w(T,this,M).call(this)+e;(0,n.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,n.addClass)(e,"htHasScrollY"):(0,n.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,n.addClass)(e,"htVerticallyScrollableByWindow"):(0,n.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,n.addClass)(e,"htHasScrollX"):(0,n.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,n.addClass)(e,"htHorizontallyScrollableByWindow"):(0,n.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,o;f(t=this,o=T),o.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,C,0),g(this,v,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,y,!1),g(this,S,void 0),g(this,E,void 0),g(this,R,0),g(this,b,0),g(this,_,null),this.hot=e,this.eventManager=new r.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),w(T,this,O).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,n.addClass)(e,"handsontable"),m(E,this,t.createElement("TABLE")),(0,n.addClass)(p(E,this),"htCore"),this.hot.getSettings().tableClassName&&(0,n.addClass)(p(E,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,n.setAttribute)(p(E,this),[(0,d.A11Y_PRESENTATION)()]),(0,n.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),p(E,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),p(E,this).appendChild(this.TBODY),this.hot.table=p(E,this),this.hot.container.insertBefore(p(E,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:o,selection:i,rootWindow:s}=this.hot,r=o.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(y,this,!0),this.isTextSelectionAllowed(e.target)||((0,n.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(y,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{p(y,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,n.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(r,"keyup",e=>{i.isInProgress()&&!e.shiftKey&&i.finish()}),this.eventManager.addEventListener(r,"mouseup",s=>{i.isInProgress()&&(0,a.isLeftClick)(s)&&i.finish(),m(S,this,!1);const r=(0,n.isOutsideInput)(o.activeElement);(0,n.isInput)(o.activeElement)&&!r||!r&&(i.isSelected()||i.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(r,"contextmenu",e=>{i.isInProgress()&&(0,a.isRightClick)(e)&&(i.finish(),m(S,this,!1))}),this.eventManager.addEventListener(r,"touchend",()=>{i.isInProgress()&&i.finish(),m(S,this,!1)}),this.eventManager.addEventListener(r,"mousedown",e=>{const i=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(p(S,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,n.getScrollbarWidth)(o);if(o.elementFromPoint(s+e,a)!==h||o.elementFromPoint(s,a+e)!==h)return}else for(;l!==r;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(i):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,n.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,n.getParentWindow)(l);this.eventManager.addEventListener(p(E,this),"selectstart",e=>{this.settings.fragmentSelection||(0,n.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,i=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===i&&(i=t),[o,i]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),i=e.getNearestNotHiddenIndex(o-1,-1);return null===i?0:e.getRenderableFromVisualIndex(i)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,i){if(isNaN(e)||e<0)return 0;const s=o.getNearestNotHiddenIndex(e,t),n=o.getRenderableFromVisualIndex(s);if(!Number.isInteger(n))return 0;let r=0;return t<0?r=n+1:t>0&&(r=i-n),r}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:p(E,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(v,this,e.length),this.hot.getSettings().ariaTags&&w(T,this,M).call(this)===this.hot.countCols()&&w(T,this,I).call(this,p(v,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(C,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),i=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(i),i,t)},cellRenderer:(e,t,o)=>{const[i,s]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.runHooks("modifyGetCellCoords",i,s,!1,"meta");let r=i,a=s;Array.isArray(n)&&([r,a]=n);const l=this.hot.getCellMeta(r,a),h=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(r,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l)),this.hot.runHooks("beforeRenderer",o,i,s,h,c,l),this.hot.getCellRenderer(l)(this.hot,o,i,s,h,c,l),this.hot.runHooks("afterRenderer",o,i,s,h,c,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,n.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=i,m(S,this,!0),m(_,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,m(S,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOut",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOver",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||(!p(S,this)||p(_,this)&&p(_,this).x===e.clientX&&p(_,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,o),this.activeWt=this._wt,m(_,this,null))},onCellMouseUp:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseUp",e,s,o),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const i=this.hot.rowIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingRowHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const i=this.hot.columnIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingColumnHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onAfterDrawSelection:(e,t,o)=>{let i;const[s,n]=this.translateFromRenderableToVisualIndex(e,t),r=this.hot.selection.getSelectedRange();if(r.size()>0){const e=r.peekByIndex(null!=o?o:0);i=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,n,i,o)},onBeforeDrawBorders:(e,t)=>{const[o,i,s,n]=e,r=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)];return this.hot.runHooks("beforeDrawBorders",r,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,i)=>{const s=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,r=t>=0?n.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,r,o,i);if(Array.isArray(l)){const[e,t,o,i]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t,o>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(o,-1)):o,i>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i,-1)):i]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,n=e>=0?o.getVisualFromRenderableIndex(e):e,r=this.hot.runHooks("modifyGetCoordsElement",n,s);if(Array.isArray(r)){const[e,t]=r;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),i=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/o*12));e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),i=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/o*6));e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:i}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,i),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,o;if((0,n.isInput)(e))return!0;const i=(0,n.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&i)return!0;const s=null!==(t=null===(o=this.hot.getSelectedRangeActive())||void 0===o?void 0:o.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!i)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return p(S,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,n.hasClass)(o,"relative"))return(0,n.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:i}=this.hot,s=o.createElement("div"),n=o.createElement("span");s.className="relative",n.className="rowHeader",this.updateCellHeader(n,e,i),s.appendChild(n),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const r=t.firstChild;(0,n.hasClass)(r,"relative")?(this.updateCellHeader(r.querySelector(".colHeader"),e,o,i),r.className="",(0,n.addClass)(r,["relative",...s()])):((0,n.empty)(t),this.appendColHeader(e,t,o,i))}else{const{rootDocument:r}=this.hot,a=r.createElement("div"),l=r.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,n.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,n.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,o,i),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,i)}updateCellHeader(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const r=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,n.hasClass)(e,"colHeader")?s=r.wtTable.columnFilter.sourceToRendered(t):(0,n.hasClass)(e,"rowHeader")&&(s=r.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,n.fastInnerHTML)(e,o(t,i)):((0,n.fastInnerText)(e,String.fromCharCode(160)),(0,n.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(b,this,t)}getLastSize(){return{width:p(R,this),height:p(b,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return p(C,this)}getRowHeadersCount(){return p(v,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getTableScrollPosition(){return{left:this._wt.wtTable.holder.scrollLeft,top:this._wt.wtTable.holder.scrollTop}}setTableScrollPosition(e){this._wt.wtTable.holder.scrollLeft=e.left,this._wt.wtTable.holder.scrollTop=e.top}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},66182:(e,t,o)=>{"use strict";var i=o(27538),s=o(87681),n=o(69946),r=o(90331),a=o(22625);i({target:"Array",proto:!0,arity:1,forced:o(89035)(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=s(this),o=n(t),i=arguments.length;a(o+i);for(var l=0;l<i;l++)t[o]=arguments[l],o++;return r(t,o),o}})},66569:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=o(8278),s=o(58639)},66578:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(29465),r=o(94857),a=o(26599);class l extends n.MapCollection{constructor(e,t){super(),(0,s.default)(this,"mergedValuesCache",[]),(0,s.default)(this,"aggregationFunction",void 0),(0,s.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,r.arrayMap)(this.get(),e=>e.getValues()),t=[],o=(0,a.isDefined)(e[0])&&e[0].length||0;for(let i=0;i<o;i+=1){const o=[];for(let t=0;t<this.getLength();t+=1)o.push(e[t][i]);t.push(o)}return(0,r.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const o=this.getMergedValues(t)[e];return(0,a.isDefined)(o)?o:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},66622:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15553);t.createShortcutManager=i.createShortcutManager},66847:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function e(t,o){if(Array.isArray(t))return t.map(t=>e(t,o));return(0,i.substitute)(t,o)},o(81396),o(14618);var i=o(73983)},67289:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(74030);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnFreeze=i.ManualColumnFreeze},67343:(e,t,o)=>{"use strict";var i=o(33477),s=o(14326),n=o(87681),r=o(26075),a=o(38815),l=r("IE_PROTO"),h=Object,c=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=n(e);if(i(t,l))return t[l];var o=t.constructor;return s(o)&&t instanceof o?o.prototype:t instanceof h?c:null}},67383:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81872),s=o(4360);const n=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:n,editor:i.PasswordEditor,renderer:s.passwordRenderer,copyable:!1}},67544:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return(0,i.isObject)(e)&&void 0!==e.value?e.value:e};var i=o(78437)},67703:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:s=()=>{},onClear:n=()=>{}}=e;const r=new Set;let a=(0,i.clamp)(t,-1,h()-1);function l(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),r.has(e))return-1;r.add(e);return!1===s(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==s(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(r.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(r.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(r.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(r.clear(),a=l(--a,-1))},getSize:h,clear:function(){r.clear(),a=t,n()}}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(58639)},68060:(e,t,o)=>{"use strict";var i,s=o(19596),n=o(99949),r=o(14326),a=o(24427),l=o(771),h=o(4660),c=o(90024),u=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((i=s.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));e.exports=function(e,t){var o=t?2:1;return d?function(i,s){var a=c(arguments.length,1)>o,l=r(i)?i:u(i),d=a?h(arguments,o):[],g=a?function(){n(l,this,d)}:l;return t?e(g,s):e(g)}:e}},68149:(e,t,o)=>{"use strict";var i=o(71671),s=o(35097),n=i("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||r[n]===e)}},68234:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(21774);t.RowHeadersRenderer=i.RowHeadersRenderer;var s=o(71662);t.ColumnHeadersRenderer=s.ColumnHeadersRenderer;var n=o(13117);t.ColGroupRenderer=n.ColGroupRenderer;var r=o(27889);t.RowsRenderer=r.RowsRenderer;var a=o(15155);t.CellsRenderer=a.CellsRenderer;var l=o(5326);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:o,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new l.TableRenderer(e,{cellRenderer:d,stylesHandler:g}),this.renderer.setRenderers({rowHeaders:new i.RowHeadersRenderer,columnHeaders:new s.ColumnHeadersRenderer(t),colGroup:new n.ColGroupRenderer(o),rows:new r.RowsRenderer(h),cells:new a.CellsRenderer}),this.renderer.setAxisUtils(c,u)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}},68295:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},68390:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(73050);const s=t.EDITOR_TYPE="time";class n extends i.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.TEXTAREA.dir="ltr"}}t.TimeEditor=n},68547:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(88205);var s=i(o(81115));t.ViewOrder=class{constructor(e,t){(0,s.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()}}},68606:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(59839),o(30417);var s=i(o(81115));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s}=t;o<=i&&(this.startRow=e),o>=i&&o<=s&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<0||o>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},68614:(e,t,o)=>{"use strict";var i=o(19617),s=o(33477),n=o(17621),r=o(84521),a=o(33895),l=RegExp.prototype;e.exports=r.correct?function(e){return e.flags}:function(e){return r.correct||!n(l,e)||s(e,"flags")?e.flags:i(a,e)}},68671:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,i.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const o=t[0],s=t.length;return(0,i.arrayMap)(e,e=>e>=o?e+s:e)},o(81396),o(81124);var i=o(94857)},68705:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),i=o?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let n=e.countVisibleRows()+i;n=0===n?-1:-n,s===-i?n=-1:s+n<i&&(n=-(s+i)),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},68750:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(14618);var s=o(42479),n=o(76651),r=o(58639),a=o(94857),l=o(50151),h=o(97819),c=i(o(18099)),u=i(o(40268)),d=o(32435);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 S extends s.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),i=0;i<t;i++)o[i]=arguments[i];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,E).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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 i=t;const s=f(v,this).getValues().slice(),n=e.length>0;if(o&&n){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(this.hot.toVisualRow(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,i,o&&n)&&(o&&n&&f(v,this).setValues(s),this.hot.runHooks("afterUnhideRows",t,i,o&&n,o&&i.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 i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,i,o,o&&i.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,a.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,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipRowOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function E(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,i,s)=>{t.push({startRow:e,endRow:o,startCol:i,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,i=0;(0,r.rangeEach)(e.startRow,e.endRow,s=>{this.isHidden(s)?(t||o(i,s-1,e.startCol,e.endCol),t=!0):(t&&(i=s),s===e.endRow&&o(i,s,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,n.addClass)(t,o)}function T(e){e.items.push({name:l.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=S},68959:(e,t,o)=>{"use strict";o(81396),o(88633);var i=o(78656);t.__esModule=!0;var s={Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},n=i(o(35221));t.Selection=n.default;var r=o(52072);t.handleMouseEvent=r.handleMouseEvent;var a=o(32634);t.detectSelectionType=a.detectSelectionType,t.normalizeSelectionFactory=a.normalizeSelectionFactory;var l=o(18328);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))})},69198:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...o}=e;return new n.default({className:"current",headerAttributes:[(0,r.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...o,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=o(24496),n=i(o(73358)),r=o(3226)},69423:(e,t,o)=>{"use strict";var i=o(39303),s=o(77669),n=o(40663),r=Error.captureStackTrace;e.exports=function(e,t,o,a){n&&(r?r(e,t):i(e,"stack",s(o,a)))}},69473:(e,t,o)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:o},()=>{const t=!!e.getSettings().colHeaders;(0,i.scrollWindowToCell)(e.getCell(t?-1:0,o,!0))})}};var i=o(57787)},69932:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(59839),o(30417);var s=i(o(81115));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s,rowHeight:n}=t;o>=i&&o+n<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=i-s&&(this.startRow-=1),e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},69946:(e,t,o)=>{"use strict";var i=o(20330);e.exports=function(e){return i(e.length)}},70155:(e,t,o)=>{"use strict";var i=o(16539),s=o(13479);e.exports=function(e,t,o,n){try{return n?t(i(o)[0],o[1]):t(o)}catch(t){s(e,"throw",t)}}},70164:(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()}}},70270:(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 i={from:e,to:t};o.forEach(e=>{const t=e.from>e.to,o=e.to<=i.from;e.from>i.from&&o&&t&&(i.from+=1)}),i.from>=t&&(t+=1),o.push(i)}),o}(e,function(e,t,o){const i=Array.from(Array(o).keys()).filter(t=>!1===e.includes(t));var s;return 0===t?null!==(s=i[t])&&void 0!==s?s:0:i[t-1]+1}(e,t,o)))},o(66182),o(81396),o(81124),o(88633)},70420:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.checkboxRenderer=v,o(66182),o(81396),o(39691),o(14618);var s=o(36814),n=i(o(13683)),r=o(76651),a=o(26599),l=o(7037),h=o(97819),c=o(3226),u=o(8278);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,i,h,C,v){const{rootDocument:S}=e,E=e.getSettings().ariaTags;s.baseRenderer.apply(this,[e,t,o,i,h,C,v]),function(e){let t=g.get(e);if(!t){const{rootElement:o}=e;t=new n.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 i=parseInt(o.getAttribute(p),10),s=parseInt(o.getAttribute(m),10),n=t.getCellMeta(i,s);n.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 i=parseInt(o.getAttribute(p),10),s=parseInt(o.getAttribute(m),10),n=t.getCellMeta(i,s);if(!n.readOnly){let o=null;o=e.target.checked?void 0===n.uncheckedTemplate||n.checkedTemplate:void 0!==n.uncheckedTemplate&&n.uncheckedTemplate,t.setDataAtCell(i,s,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)}(S);const b=v.label;let _=!1;if(void 0===v.checkedTemplate&&(v.checkedTemplate=!0),void 0===v.uncheckedTemplate&&(v.uncheckedTemplate=!1),(0,r.empty)(t),C===v.checkedTemplate||(0,a.stringify)(C).toLocaleLowerCase(v.locale)===(0,a.stringify)(v.checkedTemplate).toLocaleLowerCase(v.locale)?R.checked=!0:C===v.uncheckedTemplate||(0,a.stringify)(C).toLocaleLowerCase(v.locale)===(0,a.stringify)(v.uncheckedTemplate).toLocaleLowerCase(v.locale)?R.checked=!1:(0,a.isEmpty)(C)?(0,r.addClass)(R,"noValue"):(R.style.display="none",(0,r.addClass)(R,f),_=!0),(0,r.setAttribute)(R,[[p,o],[m,i]]),E&&(0,r.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 s="";if(b.value)s="function"==typeof b.value?b.value.call(this,o,i,h,C):b.value;else if(b.property){const t=e.getDataAtRowProp(o,b.property);s=null!==t?t:""}const n=function(e,t,o){const i=e.createElement("label");i.className="htCheckboxRendererLabel "+(o?"fullWidth":"");const s=e.createTextNode(t);if(o){const t=e.createElement("span");t.appendChild(s),i.appendChild(t)}else i.appendChild(s);return i.cloneNode(!0)}(S,s,!0!==b.separated);"before"===b.position?b.separated?(t.appendChild(n),t.appendChild(R)):(n.appendChild(R),R=n):b.position&&"after"!==b.position||(b.separated?(t.appendChild(R),t.appendChild(n)):(n.insertBefore(R,n.firstChild),R=n))}function T(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const o=e.getSelectedRange(),i=[],s=new Map;let n=[],r=0;if(o){for(let a=0;a<o.length;a++){const{row:l,col:h}=o[a].getTopStartCorner(),{row:c,col:u}=o[a].getBottomEndCorner();for(let o=l;o<=c;o+=1)for(let a=h;a<=u;a+=1){const l=e.getCellMeta(o,a);if(l.hidden)continue;const h={checkedTemplate:l.checkedTemplate,uncheckedTemplate:l.uncheckedTemplate};if("checkbox"!==l.type){!0!==t||l.readOnly||(s.has(i.length)?s.set(i.length,[...s.get(i.length),[o,a,null]]):s.set(i.length,[[o,a,null]]));continue}if(!0===l.readOnly)continue;void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);const c=e.getDataAtCell(o,a);!1===t?[l.checkedTemplate,l.checkedTemplate.toString()].includes(c)?n.push([o,a,l.uncheckedTemplate,h]):[l.uncheckedTemplate,l.uncheckedTemplate.toString(),null,void 0].includes(c)&&n.push([o,a,l.checkedTemplate,h]):n.push([o,a,l.uncheckedTemplate,h]),r+=1}i.push(r),r=0}n=n.every(e=>{let[,,t]=e;return t===n[0][2]})?n.map(e=>{let[t,o,i]=e;return[t,o,i]}):n.map(e=>{let[t,o,,i]=e;return[t,o,i.checkedTemplate]}),n.length>0&&i.forEach((t,o)=>{let i=n.splice(0,t);s.size&&s.has(o)&&(i=[...i,...s.get(o)]),e.setDataAtCell(i)})}}function M(){const t=e.getSelectedRange();if(t){for(let o=0;o<t.length;o++){const i=t[o].getTopStartCorner(),s=t[o].getBottomEndCorner();for(let t=i.row;t<=s.row;t++)for(let o=i.col;o<=s.col;o++){if(e.getCellMeta(t,o).readOnly)continue;const i=e.getCell(t,o);if((0,r.isHTMLElement)(i)){if(i.querySelectorAll("input[type=checkbox]").length>0)return!0}}}return!1}}(!b||b&&!b.separated)&&t.appendChild(R),_&&t.appendChild(S.createTextNode("#bad-value#")),d.has(e)||(d.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),o={group:w,relativeToGroup:l.EDITOR_EDIT_GROUP,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(T(),!M()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(T(),!M()),runOnlyIf:()=>{const t=e.getSelectedRangeActive();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.getSelectedRangeActive())||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:i,type:s,row:n,column:r,prop:l}=t;if(s!==C||!i)return;const{value:h,property:c}=i;let u=o;if(h)u="function"==typeof h?h(n,r,l,o):h;else if(c){const e=this.getDataAtRowProp(n,c);u=null!==e?e:o}return`${(0,a.stringify)(u).length}`}),v.RENDERER_TYPE=C},70445:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(94857),n=o(58639),r=o(76651),a=i(o(29087)),l=o(3226);class h extends a.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),i=this.dataManager.getDataObject(o);if(!i)return;const a=this.dataManager.getRowLevel(o),c=t.getElementsByTagName("DIV")[0],u=c.querySelector("span.rowHeader"),d=c.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&c.removeChild(e)}),(0,r.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=u.cloneNode(!0);c.innerHTML="",(0,n.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,r.addClass)(t,h.CSS_CLASSES.emptyIndicator),c.appendChild(t)}),c.appendChild(t)}if(this.dataManager.hasChildren(i)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,r.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,r.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(o)?((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,r.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,r.setAttribute)(t,[(0,l.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},70497:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232),r=o(32971),a=o(94857);class l extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:i,alignment:n}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=i,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,i,s)=>{t.done(()=>new l({stateBefore:e,range:o,type:i,alignment:s}))})}undo(e,t){(0,a.arrayEach)(this.range,t=>{t.forAll((t,o)=>{t>=0&&o>=0&&e.setCellMeta(t,o,"className",this.stateBefore[t][o]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,r.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,i,s)=>e.setCellMeta(t,o,i,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},70573:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(39522),h=o(70155),c=o(58719),u=o(13479),d=o(43832),g=o(57625),f=!c&&!d("filter",function(){}),p=!c&&!f&&g("filter",TypeError),m=c||f||p,w=l(function(){for(var e,t,o=this.iterator,i=this.predicate,n=this.next;;){if(e=r(s(n,o)),this.done=!!e.done)return;if(t=e.value,h(o,i,[t,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){r(this);try{n(e)}catch(e){u(this,"throw",e)}return p?s(p,this,e):new w(a(this),{predicate:e})}})},70610:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(42479),r=i(o(94797)),a=o(97819),l=o(49581);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const h=t.PLUGIN_KEY="persistentState",c=t.PLUGIN_PRIORITY=0,u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(u.has(this.hot)||(u.add(this.hot),(0,l.deprecatedWarn)("The PersistentState plugin is deprecated and will be removed in version 17.0. Please update your settings to ensure compatibility with future versions.")),this.storage||(this.storage=new r.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=d},70641:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(35734);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CollapsibleColumns=i.CollapsibleColumns},70667:(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"undefined"!=typeof TouchEvent&&e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let s=e.target;if(!(0,i.isHTMLElement)(t)||s!==t&&s.contains(t))return o;for(;s!==t;)o.x+=s.offsetLeft,o.y+=s.offsetTop,s=s.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var i=o(76651)},70923:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(46003),r=o(16539),a=o(14326),l=o(67343),h=o(73678),c=o(75460),u=o(89035),d=o(33477),g=o(71671),f=o(36053).IteratorPrototype,p=o(21912),m=o(58719),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,S=s[C],E=m||!a(S)||S.prototype!==f||!u(function(){S({})}),R=function(){if(n(this,f),l(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(r(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),!E&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,i({global:!0,constructor:!0,forced:E},{Iterator:R})},70948:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext(i.EDITOR_SCOPE),o=(0,s.createKeyboardShortcutCommandsPool)(e),n={group:i.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext(i.GRID_SCOPE),callback:(e,t)=>o.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>o.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>o.editorCloseWithoutSaving()}],n)};var i=o(26740),s=o(23268)},71154:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.autocompleteRenderer=c;var s=o(11912),n=o(28454),r=i(o(13683)),a=o(76651),l=o(3226);const h=t.RENDERER_TYPE="autocomplete";function c(e,t,o,i,h,c,u){const{rootDocument:d}=e,g=u.allowHtml?s.htmlRenderer:n.textRenderer,f=d.createElement("DIV"),p=e.getSettings().ariaTags;if(f.className="htAutocompleteArrow",p&&f.setAttribute(...(0,l.A11Y_HIDDEN)()),f.appendChild(d.createTextNode(String.fromCharCode(9660))),g.apply(this,[e,t,o,i,h,c,u]),t.firstChild||t.appendChild(d.createTextNode(String.fromCharCode(160))),t.insertBefore(f,t.firstChild),(0,a.addClass)(t,"htAutocomplete"),!e.acArrowListener){const s=new r.default(e);e.acArrowListener=function(s){(0,a.hasClass)(s.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(o,i),t)},s.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",()=>{s.destroy()})}}c.RENDERER_TYPE=h},71588:(e,t,o)=>{"use strict";t.__esModule=!0,t.timeRenderer=n;var i=o(28454);const s=t.RENDERER_TYPE="time";function n(e,t,o,s,n,r,a){i.textRenderer.apply(this,[e,t,o,s,n,r,a]),t.dir="ltr"}n.RENDERER_TYPE=s},71599:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,r.objectEach)(this.defaults,(t,o)=>{if(void 0!==e[o])this.settings[o]=e[o];else{if(void 0===t)throw new Error(`A required setting "${o}" was not provided`);this.settings[o]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,o)=>{const i=this.getSetting("data",e,t);(0,n.fastInnerText)(o,null==i?"":i)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,r.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,o,i,s){return"function"==typeof this.settings[e]?this.settings[e](t,o,i,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},71662:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76651),s=o(91338),n=o(3226);class r extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let o=this.rootNode.firstChild;if(e){const{columnsToRender:i}=this.table,s=i+t;for(let t=0,i=e;t<i;t++){for(o=this.rootNode.childNodes[t],o||(o=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(o)),this.renderedNodes=o.childNodes.length;this.renderedNodes<s;)o.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>s;)o.removeChild(o.lastChild),this.renderedNodes-=1}const n=this.rootNode.childNodes.length;if(n>e)for(let t=e;t<n;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else o&&(0,i.empty)(o)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,i.setAttribute)(this.rootNode,[(0,n.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:o,rowHeadersCount:s}=this.table,r=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,i.setAttribute)(r,[(0,n.A11Y_ROW)(),(0,n.A11Y_ROWINDEX)(t+1)]);for(let a=-1*s;a<o;a+=1){const o=this.table.renderedColumnToSource(a),l=r.childNodes[a+s];l.className="",l.removeAttribute("style"),(0,i.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,i.setAttribute)(l,[(0,n.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,n.A11Y_TABINDEX)(-1),(0,n.A11Y_COLUMNHEADER)(),...a>=0?[(0,n.A11Y_SCOPE_COL)()]:[(0,n.A11Y_GRIDCELL_BUTTON)(),(0,n.A11Y_LABEL)("Select whole grid")]]),e[t](o,l,t)}}}}t.ColumnHeadersRenderer=r},71671:(e,t,o)=>{"use strict";var i=o(19596),s=o(36405),n=o(33477),r=o(57596),a=o(71763),l=o(83916),h=i.Symbol,c=s("wks"),u=l?h.for||h:h&&h.withoutSetter||r;e.exports=function(e){return n(c,e)||(c[e]=a&&n(h,e)?h[e]:u("Symbol."+e)),c[e]}},71763:(e,t,o)=>{"use strict";var i=o(24659),s=o(89035),n=o(19596).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})},71794:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(54230),r=o(29521),a=o(43209),l=o(82719),h=s.Set,c=s.add,u=s.has;e.exports=function(e){var t=i(this),o=r(e),s=new h;return n(t)>o.size?l(o.getIterator(),function(e){u(t,e)&&c(s,e)}):a(t,function(e){o.includes(e)&&c(s,e)}),s}},71865:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(37637),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(82101),o(88633);var i=o(19518);function s(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 r(e,t,o){return e.set(l(e,t),o),o}function a(e,t){return e.get(l(e,t))}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")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),s(this,h,new Map),s(this,c,new Map),s(this,u,new Set),i.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),i.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e),n=s.find(e=>e.callback===t);if(n)return void(!0===n.skip&&(n.skip=!1));const r=Number.isInteger(o.orderIndex)?o.orderIndex:0,c=!!o.runOnce,f=!!o.initialHook;let p=!1;if(f){const e=s.find(e=>e.initialHook);e&&(e.callback=t,p=!0)}if(!p){s.push({callback:t,orderIndex:r,runOnce:c,initialHook:f,skip:!1});let o=a(u,this).has(e);o||0===r||(o=!0,a(u,this).add(e)),o&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i){let t=a(c,this).get(e);return i.skip=!0,t+=1,t>100&&(a(h,this).set(e,o.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),r(h,this,null),r(c,this,null)}}},71939:(e,t,o)=>{"use strict";var i=o(79212);e.exports=function(e,t,o){for(var s in t)i(e,s,t[s],o);return e}},72023: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}}}})}},i=t[e](o);return 1===i.size&&4===i.values().next().value}catch(e){return!1}}},72071:(e,t,o)=>{"use strict";var i=o(48651);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},72123:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.default=function(e,t){var o,i,Y=this;let j=arguments.length>2&&void 0!==arguments[2]&&arguments[2],G=this;const z=new h.default(G);let $,K,X,q,Q,J,Z=!0;const ee={...t.initialState,...t};(0,b.hasValidParameter)(j)&&(0,b.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,b.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,b.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const te=null!==(o=null==ee?void 0:ee.layoutDirection)&&void 0!==o?o:"inherit",oe=["rtl","ltr"].includes(te)?te:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",oe),null===(i=this.rootWrapperElement)||void 0===i||i.setAttribute("dir",oe),this.isRtl=function(){return"rtl"===oe},this.isLtr=function(){return!G.isRtl()},this.getDirectionFactor=function(){return G.isLtr()?1:-1},this.stylesHandler=new D.StylesHandler({hot:G,rootElement:G.rootElement,rootDocument:G.rootDocument,onThemeChange:e=>{(0,b.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,L.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),ee.language=(0,T.getValidLanguageCode)(ee.language);const ie=Object.fromEntries(Object.entries(ee).filter(e=>{let[t]=e;return!(A.Hooks.getSingleton().isRegistered(t)||A.Hooks.getSingleton().isDeprecated(t))})),se=new O.MetaManager(G,ie,[O.DynamicCellMetaMod,O.ExtendMetaPropertiesMod]),ne=se.getTableMeta(),re=se.getGlobalMeta(),ae=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,C.randomString)()}`,U.set(this.guid,this),this.columnIndexMapper=new R.IndexMapper,this.rowIndexMapper=new R.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{G.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{G.runHooks("afterRowSequenceChange",e)}),z.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{G.runHooks("beforeCompositionStart",e)}),K=new S.default(G);const le=(0,g.staticRegister)(this.guid);le.register("cellRangeMapper",new A.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let he=new I.Selection(ne,{rowIndexMapper:G.rowIndexMapper,columnIndexMapper:G.columnIndexMapper,countCols:()=>G.countCols(),countRows:()=>G.countRows(),propToCol:e=>$.propToCol(e),isEditorOpened:()=>!!G.getActiveEditor()&&G.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return Y.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return Y.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>G.getShortcutManager(),createCellCoords:(e,t)=>G._createCellCoords(e,t),createCellRange:(e,t,o)=>G._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return G._createCellCoords(t>=0?G.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?G.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return G._createCellCoords(t>=0?G.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?G.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=G.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?G.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=G.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?G.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?G.getSettings().disableVisualSelection:G.getCellMeta(e,t).disableVisualSelection});this.selection=he;const ce=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function ue(e,t){const o="className"===e?G.rootElement:G.table;if(Z)(0,s.addClass)(o,t);else{let i=[],n=[];re[e]&&(i=Array.isArray(re[e])?re[e]:(0,u.stringToArray)(re[e])),t&&(n=Array.isArray(t)?t:(0,u.stringToArray)(t));const r=(0,u.getDifferenceOfArrays)(i,n),a=(0,u.getDifferenceOfArrays)(n,i);r.length&&(0,s.removeClass)(o,r),a.length&&(0,s.addClass)(o,a)}re[e]=t}function de(){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 ge(e,t,o){if(!e.length)return void o();const i=G.getActiveEditor(),s=new de;let n=!0;s.onQueueEmpty=()=>{i&&n&&i.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[i,r,,a]=e[o],l=$.propToCol(r);let h;h=Number.isInteger(l)?G.getCellMeta(i,l):{...Object.getPrototypeOf(ne),...ne},G.getCellValidator(h)&&(s.addValidatorToQueue(),G.validateCell(a,h,function(t,o){return function(i){if("boolean"!=typeof i)throw new Error("Validation error: result is not boolean");!1===i&&!1===o.allowInvalid&&(n=!1,e.splice(t,1),o.valid=!0),s.removeValidatorFormQueue()}}(o,h),t))}s.checkIfQueueIsEmpty()}function fe(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(ne.allowInsertRow)for(;e[t][0]>G.countRows()-1;){const{delta:e}=$.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===G.dataType&&(!ne.columns||0===ne.columns.length)&&ne.allowInsertColumn)for(;$.propToCol(e[t][1])>G.countCols()-1;){const{delta:e}=$.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||$.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){X.adjustRowsAndCols(),G.runHooks("beforeChangeRender",e,t),q.closeEditor(),G.view.adjustElementsSize(),G.render(),q.prepareEditor(),G.runHooks("afterChange",e,t||"edit");const o=G.getActiveEditor();o&&(0,r.isDefined)(o.refreshValue)&&o.refreshValue()}else G.render()}function pe(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function me(e,t){const o=G.runHooks("beforeChange",e,t||"edit"),i=e.filter(e=>null!==e);var s;if(!1===o||0===i.length)return null===(s=G.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=i.length-1;e>=0;e--){const[t,o,,s]=i[e],n=$.propToCol(o);let r;r=Number.isInteger(n)?G.getCellMeta(t,n):{...Object.getPrototypeOf(ne),...ne},i[e][3]=(0,W.getValueSetterValue)(s,r)}return i}this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{ce(e),this.runHooks("afterColumnSequenceCacheUpdate",e)}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{ce(e),this.runHooks("afterRowSequenceCacheUpdate",e)}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const o=(0,c.createObjectPropListener)(!1),i=this.selection.getSelectedRange(),{from:n,to:r}=i.current(),a=i.size()-1;this.runHooks("afterSelection",n.row,n.col,r.row,r.col,o,a),this.runHooks("afterSelectionByProp",n.row,G.colToProp(n.col),r.row,G.colToProp(r.col),o,a),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&J.scrollTo(e);const l=he.isSelectedByRowHeader(),h=he.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(he.getSelectionSource())||q.closeEditor(null),"refresh"!==he.getSelectionSource()&&(G.view.render(),q.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)&&J.scrollTo(e),q.closeEditor(),G.view.render(),q.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:o,to:i}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,i.row,i.col,t),this.runHooks("afterSelectionEndByProp",o.row,G.colToProp(o.col),i.row,G.colToProp(i.col),t),"refresh"===he.getSelectionSource()&&(G.view.render(),q.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{q.closeEditor(),G.view.render(),(0,s.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Y.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Y.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Y.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.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 Y.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")),X={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const n=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[o]=e,[i]=t;return o===i?0:o>i?1:-1});return(0,u.arrayReduce)(t,(e,t)=>{let[o,i]=t;const s=e[e.length-1],[n,r]=s,a=n+r;if(o<=a){const e=Math.max(i-(a-o),0);s[1]+=e}else e.push([o,i]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=G.countSourceRows();if(ne.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=$.createRow(t,o,{source:i,mode:a});he.shiftRows(G.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?G.countSourceCols():0;const{delta:d,startPhysicalIndex:g}=$.createCol(t,o,{source:i,mode:c});if(d){if(Array.isArray(ne.colHeaders)){const e=[G.toVisualColumn(g),0];e.length+=d,Array.prototype.splice.apply(ne.colHeaders,e)}he.shiftColumns(G.toVisualColumn(g),d)}break;case"remove_row":const f=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?G.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!$.removeRow(o,s,i))return;if(he.isSelected()){const{row:e}=G.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&q.closeEditor(!0)}const a=G.countRows(),l=ne.fixedRowsTop;l>=n+1&&(ne.fixedRowsTop-=Math.min(s,l-n));const h=ne.fixedRowsBottom;if(h&&n>=a-h&&(ne.fixedRowsBottom-=Math.min(s,h)),0===a)he.deselect();else if("ContextMenu.removeRow"===i){const e=he.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),he.refresh()}else he.shiftRows(o,-s);t+=s})};Array.isArray(t)?f(n(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?G.countCols()-1:Math.max(o-t,0);let a=G.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!$.removeCol(o,s,i))return;if(he.isSelected()){const{col:e}=G.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&q.closeEditor(!0)}if(0===G.countCols())he.deselect();else if("ContextMenu.removeColumn"===i){const e=he.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),he.refresh()}else he.shiftColumns(o,-s);const l=ne.fixedColumnsStart;l>=n+1&&(ne.fixedColumnsStart-=Math.min(s,l-n)),Array.isArray(ne.colHeaders)&&(void 0===a&&(a=-1),ne.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?p(n(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}s||X.adjustRowsAndCols(),G.view.adjustElementsSize(),G.view.render()},adjustRowsAndCols(){const e=ne.minRows,t=ne.minSpareRows,o=ne.minCols,i=ne.minSpareCols;if(e){const t=G.countRows();t<e&&$.createRow(t,e-t,{source:"auto"})}if(t){const e=G.countEmptyRows(!0);if(e<t){const o=t-e,i=Math.min(o,ne.maxRows-G.countSourceRows());$.createRow(G.countRows(),i,{source:"auto"})}}{let e;(o||i)&&(e=G.countEmptyCols(!0));let t=G.countCols();if(o&&!ne.columns&&t<o){const i=o-t;e+=i,$.createCol(t,i,{source:"auto"})}if(i&&!ne.columns&&"array"===G.dataType&&e<i){t=G.countCols();const o=i-e,s=Math.min(o,ne.maxCols-t);$.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,o,i,s){let n,r,a,l;const h=[],d={},g=[],f=e.row,p=e.col;if(r=t.length,0===r)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),s){case"shift_down":const s=(0,u.pivot)(t),v=s.length,y=Math.max(v,m),S=G.getData().slice(f),E=(0,u.pivot)(S).slice(p,p+y);for(a=0;a<y;a+=1)if(a<v){for(n=0,r=s[a].length;n<w-r;n+=1)s[a].push(s[a][n%r]);a<E.length?g.push(s[a].concat(E[a])):g.push(s[a].concat(new Array(S.length).fill(null)))}else g.push(s[a%v].concat(E[a]));G.populateFromArray(f,p,(0,u.pivot)(g));break;case"shift_right":const R=t.length,b=Math.max(R,w),_=G.getData().slice(f).map(e=>e.slice(p));for(n=0;n<b;n+=1)if(n<R){for(a=0,l=t[n].length;a<m-l;a+=1)t[n].push(t[n][a%l]);if(n<_.length)for(let e=0;e<_[n].length;e+=1)t[n].push(_[n][e]);else t[n].push(...new Array(_[0].length).fill(null))}else t.push(t[n%r].slice(0,b).concat(_[n]));G.populateFromArray(f,p,t);break;default:d.row=e.row,d.col=e.col;let T,M=0,I=0,O=!0;const A=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=t[e%t.length];return null!==o?i[o%i.length]:i},N=t.length,P=o?o.row-e.row+1:0;for(r=o?P:Math.max(N,P),n=0;n<r&&!(o&&d.row>o.row&&P>N||!ne.allowInsertRow&&d.row>G.countRows()-1||d.row>=ne.maxRows);n++){const t=n-M,s=A(t).length,u=o?o.col-e.col+1:0;if(l=o?u:Math.max(s,u),d.col=e.col,T=G.getCellMeta(d.row,d.col),"CopyPaste.paste"!==i&&"Autofill.fill"!==i||!T.skipRowOnPaste){for(I=0,a=0;a<l;a++){var C;if(o&&d.col>o.col&&u>s||!ne.allowInsertColumn&&d.col>G.countCols()-1||d.col>=ne.maxCols)break;if(T=G.getCellMeta(d.row,d.col),("CopyPaste.paste"===i||"Autofill.fill"===i)&&T.skipColumnOnPaste){I+=1,d.col+=1,l+=1;continue}if(T.readOnly&&"UndoRedo.undo"!==i){d.col+=1;continue}const e=a-I,n=!!T.valueSetter;let r=A(t,e),g=null!==(C=G.getSourceDataAtCell(d.row,d.col))&&void 0!==C?C:null;if(null!==r&&"object"==typeof r)if(Array.isArray(r)&&null===g&&(g=[]),n||"object"==typeof g&&null!==g){if(null!==g){const e=(0,c.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,c.duckSchema)(Array.isArray(r)?r:r[0]||r);n||(0,c.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?r=(0,c.deepClone)(r):O=!1}}else O=!1;else n||null===g||"object"!=typeof g||(O=!1);O&&h.push([d.row,d.col,r]),O=!0,d.col+=1}d.row+=1}else M+=1,d.row+=1,r+=1}G.setDataAtCell(h,null,null,i||"populateFromArray")}}},this.init=function(){K.setData(ne.data),G.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(G.rootElement,"mobile"),this.updateSettings(ee,!0),this.view=new y.default(this),q=l.default.getInstance(G,ne,he),J=(0,A.createViewportScroller)(G),Q.init(),(0,b.isRootInstance)(this)&&((0,V.install)(G.rootPortalElement),(0,r._injectProductInfo)(ee.licenseKey,this.rootWrapperElement)),G.runHooks("init"),this.render(),Z&&null===G.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(G.rootElement,()=>{G.view._wt.wtOverlays.updateLastSpreaderSize(),G.view.adjustElementsSize(),G.render()}),"object"==typeof Z&&(G.runHooks("afterChange",Z[0],Z[1]),Z=!1),G.runHooks("afterInit")},this._createCellCoords=function(e,t){return G.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return G.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,i){let s=G.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const i=t.visualCol,s=t.visualRow,n=G.getCell(s,i,!0);if(n&&"TH"!==n.nodeName){const e=G.rowIndexMapper.getRenderableFromVisualIndex(s),t=G.columnIndexMapper.getRenderableFromVisualIndex(i);G.view._wt.getSetting("cellRenderer",e,t,n)}o(e)}var l;(0,r.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,n.isFunction)(s)?(e=G.runHooks("beforeValidate",e,t.visualRow,t.prop,i),G._registerImmediate(()=>{s.call(t,e,o=>{G&&(o=G.runHooks("afterValidate",o,e,t.visualRow,t.prop,i),t.valid=o,a(o),G.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,i))})})):G._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,o,i){const s=pe(e,t,o),n=[];let r,a,l,h=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];if("object"!=typeof s[r])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:$.colToProp(t),n.push([e,l,K.getAtCell(this.toPhysicalRow(e),t),o])}h||"object"!=typeof e||(h=t);const c=me(n,h);G.runHooks("afterSetDataAtCell",c,h),ge(c,h,()=>{fe(c,h)})},this.setDataAtRowProp=function(e,t,o,i){const s=pe(e,t,o),n=[];let r,a,l=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];n.push([e,t,K.getAtCell(this.toPhysicalRow(e),t),o])}l||"object"!=typeof e||(l=t);const h=me(n,i);G.runHooks("afterSetDataAtRowProp",h,l),ge(h,l,()=>{fe(h,l)})},this.listen=function(){G&&!G.isListening()&&(U.forEach(e=>{G!==e&&e.unlisten()}),F=G.guid,G.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(F=null,G.runHooks("afterUnlisten"))},this.isListening=function(){return F===G.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];q.closeEditor(e),G.view.render(),t&&he.isSelected()&&q.prepareEditor()},this.populateFromArray=function(e,t,o,i,s,n,r){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof i?G._createCellCoords(i,s):null;return X.populateFromArray(G._createCellCoords(e,t),o,a,n,r)},this.spliceCol=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return $.spliceCol(e,t,o,...s)},this.spliceRow=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return $.spliceRow(e,t,o,...s)},this.getSelected=function(){if(he.isSelected())return(0,u.arrayMap)(he.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.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]},this.getSelectedRange=function(){if(he.isSelected())return Array.from(he.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return he.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return he.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!he.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,u.arrayEach)(he.getSelectedRange(),e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),i=e.getBottomEndCorner();(0,v.rangeEach)(o.row,i.row,e=>{(0,v.rangeEach)(o.col,i.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||G.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||G.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(!G.view)return;const e=G.view,{width:t,height:o}=e.getLastSize(),{width:i,height:s}=G.rootElement.getBoundingClientRect(),n=i!==t||s!==o;!1===G.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:i,height:s},n)||((n||e._wt.wtOverlays.scrollableElement===G.rootWindow)&&(e.setLastSize(i,s),e.adjustElementsSize(),G.render()),G.runHooks("afterRefreshDimensions",{width:t,height:o},{width:i,height:s},n))},this.updateData=function(e,t){(0,O.replaceData)(e,e=>{$=e},e=>{$=e,G.columnIndexMapper.fitToLength(this.getInitialColumnCount()),G.rowIndexMapper.fitToLength(this.countSourceRows()),X.adjustRowsAndCols(),he.refresh()},{hotInstance:G,dataMap:$,dataSource:K,internalSource:"updateData",source:t,metaManager:se,firstRun:Z})},this.loadData=function(e,t){(0,O.replaceData)(e,e=>{$=e},()=>{se.clearCellsCache(),G.initIndexMappers(),X.adjustRowsAndCols(),he.refresh(),Z&&(Z=[null,"loadData"])},{hotInstance:G,dataMap:$,dataSource:K,internalSource:"loadData",source:t,metaManager:se,firstRun:Z})},this.getInitialColumnCount=function(){const e=ne.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,n.isFunction)(e))if("array"===G.dataType){const o=this.countSourceCols();for(let i=0;i<o;i+=1)e(i)&&(t+=1)}else"object"!==G.dataType&&"function"!==G.dataType||(t=$.colToPropCache.length);else if((0,r.isDefined)(ne.dataSchema)){const e=$.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,i){return(0,r.isUndefined)(e)?$.getAll():$.getRange(G._createCellCoords(e,t),G._createCellCoords(o,i),$.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,i){return $.getCopyableText(G._createCellCoords(e,t),G._createCellCoords(o,i))},this.getCopyableData=function(e,t){return $.getCopyable(e,$.colToProp(t))},this.getCopyableSourceData=function(e,t){return K.getCopyable(e,$.colToProp(t))},this.getSchema=function(){return $.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(Z?G.loadData:G.updateData).bind(this);let i,s,a=!1;if((0,r.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,r.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,r.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(i in(0,r.isDefined)(e.rowHeights)&&(0,r.isDefined)(e.minRowHeights)&&(0,L.warn)("Both `rowHeights` and `minRowHeights` are defined in your configuration. As one is the alias of the other, only one of them can be used at a time. `rowHeights` will be used as the row height configuration."),e)if("data"===i||"language"===i);else if("className"===i)ue("className",e.className);else if("tableClassName"===i&&G.table)ue("tableClassName",e.tableClassName),G.view._wt.wtOverlays.syncOverlayTableClassNames();else if(A.Hooks.getSingleton().isRegistered(i)||A.Hooks.getSingleton().isDeprecated(i)){const t=e[i];(0,n.isFunction)(t)?(A.Hooks.getSingleton().addAsFixed(i,t,G),ne[i]=t):Array.isArray(t)&&(A.Hooks.getSingleton().add(i,t,G),ne[i]=t)}else!t&&(0,c.hasOwnProperty)(e,i)&&(re[i]=e[i]);if(t)G.useTheme(ne.themeName||(0,k.getThemeClassName)(G.rootContainer));else{const t=G.getCurrentThemeName();(0,c.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&G.useTheme(e.themeName)}B.has(G)&&void 0!==G.stylesHandler.getThemeName()&&B.delete(G),(0,b.isRootInstance)(G)&&!B.has(G)&&G.stylesHandler.isClassicTheme()&&((0,L.deprecatedWarn)("The stylesheet you are using is deprecated and will be removed in version 17.0. Please update your theme configuration to ensure compatibility with future releases."),B.add(G)),void 0===e.data&&void 0===ne.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&($.createMap(),G.initIndexMappers()),!Z&&e.language&&function(e){const t=(0,M.normalizeLanguageCode)(e);(0,T.hasLanguageDictionary)(t)?(G.runHooks("beforeLanguageChange",t),re.language=t,G.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}(e.language);const l=G.countCols(),h=ne.columns;if(h&&(0,n.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||se.clearCache(),l>0)for(i=0,s=0;i<l;i++){if(h){const e=a?h(i):h[s];e&&se.updateColumnMeta(s,e)}s+=1}(0,r.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{G.setCellMetaObject(e.row,e.col,e)}),G.runHooks("afterCellMetaReset");let u=G.rootElement.style.height;if(""!==u&&(u=parseInt(G.rootElement.style.height,10)),t){G.rootElement.getAttribute("style")&&G.rootElement.setAttribute("data-initialstyle",G.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,n.isFunction)(d)&&(d=d()),d=G.runHooks("beforeHeightChange",d),null===d){const e=G.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?G.rootElement.setAttribute("style",e):(G.rootElement.style.height="",G.rootElement.style.overflow="")}else void 0!==d&&(G.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,G.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,n.isFunction)(t)&&(t=t()),t=G.runHooks("beforeWidthChange",t),G.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(G.view&&(G.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),G.view._wt.exportSettingsAsClassNames()),G.runHooks("afterUpdateSettings",e)),X.adjustRowsAndCols(),G.view&&!Z&&(G.render(),G.view._wt.wtOverlays.adjustElementsSize()),t||!G.view||""!==u&&""!==d&&void 0!==d||u===d||G.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=G.getSelectedRangeActive();if(ne.getValue){if((0,n.isFunction)(ne.getValue))return ne.getValue.call(G);if(e)return G.getData()[e.highlight.row][ne.getValue]}else if(e)return G.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return ne},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,i,s){X.alter(e,t,o,i,s)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;i=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===i||void 0===s||void 0===i?null:G.view.getCellAtCoords(G._createCellCoords(s,i),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:i}=t;let s=o,n=i;return o>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(o)),i>=0&&(n=this.columnIndexMapper.getVisualFromRenderableIndex(i)),G._createCellCoords(s,n)},this.colToProp=function(e){return $.colToProp(e)},this.propToCol=function(e){return $.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 $.get(e,$.colToProp(t))},this.getDataAtRowProp=function(e,t){return $.get(e,t)},this.getDataAtCol=function(e){const t=[],o=$.getRange(G._createCellCoords(0,e),G._createCellCoords(ne.data.length-1,e),$.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getDataAtProp=function(e){const t=[],o=$.getRange(G._createCellCoords(0,$.propToCol(e)),G._createCellCoords(ne.data.length-1,$.propToCol(e)),$.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getSourceData=function(e,t,o,i){let s;return s=void 0===e?K.getData():K.getByRange(G._createCellCoords(e,t),G._createCellCoords(o,i)),s},this.getSourceDataArray=function(e,t,o,i){let s;return s=void 0===e?K.getData(!0):K.getByRange(G._createCellCoords(e,t),G._createCellCoords(o,i),!0),s},this.getSourceDataAtCol=function(e){return K.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,i){const s=pe(e,t,o),n=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const o=this.toVisualRow(e),i=this.toVisualColumn(t);return Number.isInteger(i)?this.getCellMeta(o,i):{...Object.getPrototypeOf(ne),...ne}};n&&(0,u.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,W.getValueSetterValue)(i,l(t,o));a.push([t,o,K.getAtCell(t,o),s])}),(0,u.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,W.getValueSetterValue)(i,l(t,o));K.setAtCell(t,o,s)}),n&&this.runHooks("afterSetSourceDataAtCell",a,i),this.render();const h=G.getActiveEditor();h&&(0,r.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return K.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return K.getAtCell(e,t)},this.getDataAtRow=function(e){return $.getRange(G._createCellCoords(e,0),G._createCellCoords(e,this.countCols()-1),$.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,i){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,i],[n,r]=s;let[,,a,l]=s,h=null,c=null;void 0===a&&(a=n),void 0===l&&(l=r);let u="mixed";return(0,v.rangeEach)(Math.max(Math.min(n,a),0),Math.max(n,a),e=>{let t=!0;return(0,v.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),o=>{const i=this.getCellMeta(e,o);return c=i.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,o){const[i,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let n=se.getCellMetaKeyValue(i,s,o);!1!==G.runHooks("beforeRemoveCellMeta",e,t,o,n)&&(se.removeCellMeta(i,s,o),G.runHooks("afterRemoveCellMeta",e,t,o,n)),n=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(i.length>0&&!Array.isArray(i[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&se.removeRow(this.toPhysicalRow(e),t),i.length>0&&(0,u.arrayEach)(i.reverse(),t=>{se.createRow(this.toPhysicalRow(e)),(0,u.arrayEach)(t,(t,o)=>this.setCellMetaObject(e,o,t))}),G.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,(o,i)=>{this.setCellMeta(e,t,i,o)})},this.setCellMeta=function(e,t,o,i){if(!1===G.runHooks("beforeSetCellMeta",e,t,o,i))return;let s=e,n=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(n=this.toPhysicalColumn(t)),se.setCellMeta(s,n,o,i),G.runHooks("afterSetCellMeta",e,t,o,i)},this.getCellsMeta=function(){return se.getCellsMeta()},this.getCellMeta=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},i=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===i&&(i=e),null===s&&(s=t),se.getCellMeta(i,s,{visualRow:e,visualColumn:t,...o})},this.getColumnMeta=function(e){return se.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return se.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===G.dataType||ne.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,p.getRenderer)(o):(0,r.isUndefined)(o)?(0,p.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,m.getEditor)(o):(0,r.isUndefined)(o)?(0,m.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,w.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 i=new de;e&&(i.onQueueEmpty=e);let s=G.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=G.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(i.addValidatorToQueue(),G.validateCell(G.getDataAtCell(s,e),G.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(i.valid=!1),i.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}i.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=ne.rowHeaders,o=e;return void 0!==o&&(o=G.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,v.rangeEach)(G.countRows()-1,e=>{t.push(G.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,n.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!ne.rowHeaders},this.hasColHeaders=function(){if(void 0!==ne.colHeaders&&null!==ne.colHeaders)return!!ne.colHeaders;for(let e=0,t=G.countCols();e<t;e++)if(G.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=G.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=G.countCols();for(let o=0;o<t;o++)e.push(G.getColHeader(o));return e}let i=ne.colHeaders;const s=G.toPhysicalColumn(o),r=function(e){const t=[],o=G.countCols();let i=0;for(;i<o;i++)(0,n.isFunction)(ne.columns)&&ne.columns(i)&&t.push(i);return t[e]}(s);return!1===ne.colHeaders?i=null:ne.columns&&(0,n.isFunction)(ne.columns)&&ne.columns(r)&&ne.columns(r).title?i=ne.columns(r).title:ne.columns&&ne.columns[s]&&ne.columns[s].title?i=ne.columns[s].title:Array.isArray(ne.colHeaders)&&void 0!==ne.colHeaders[s]?i=ne.colHeaders[s]:(0,n.isFunction)(ne.colHeaders)?i=ne.colHeaders(s):ne.colHeaders&&"string"!=typeof ne.colHeaders&&"number"!=typeof ne.colHeaders&&(i=(0,E.spreadsheetColumnLabel)(o)),i=G.runHooks("modifyColumnHeaderValue",i,e,t),i},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=G.getCellMeta(0,e).width}if(void 0!==t&&t!==ne.width||(t=ne.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t},this.getColWidth=function(e,t){let o=G._getColWidthFromSettings(e);return o=G.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=_.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){var t;const o=G.stylesHandler.getDefaultRowHeight(e);let i=null!==(t=ne.rowHeights)&&void 0!==t?t:ne.minRowHeights;if(null!=i){switch(typeof i){case"object":i=i[e];break;case"function":i=i(e)}"string"==typeof i&&(i=Number.parseInt(i,10))}return null!=i&&i<o?o:i},this.getRowHeight=function(e,t){let o=G._getRowHeightFromSettings(e);return o=G.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return K.countRows()},this.countSourceCols=function(){return K.countFirstRowKeys()},this.countRows=function(){return $.getLength()},this.countCols=function(){const e=ne.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return G.view._wt.drawn?G.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return G.view._wt.drawn?G.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return G.view._wt.drawn?G.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return G.view._wt.drawn?G.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,v.rangeEachReverse)(G.countRows()-1,o=>{if(G.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,v.rangeEachReverse)(G.countCols()-1,o=>{if(G.isEmptyCol(o))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return ne.isEmptyRow.call(G,e)},this.isEmptyCol=function(e){return ne.isEmptyCol.call(G,e)},this.selectCell=function(e,t,o,i){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,r.isUndefined)(e)&&!(0,r.isUndefined)(t)&&this.selectCells([[e,t,o,i]],s,n)},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])&&J.suspend();const o=he.selectCells(e);return o&&t&&G.listen(),J.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 he.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 he.selectRows(e,t,o)},this.deselectCell=function(){he.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;J.skipNextScrollCycle(),he.selectAll(e,t,o)};const we=(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:i,col:s,considerHiddenIndexes:r}=null!=e?e:{};let a=i,l=s;if((0,n.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===r||r){const e=Number.isInteger(i)&&i>=0,t=Number.isInteger(s)&&s>=0,o=e?we(this.rowIndexMapper,i):void 0,n=t?we(this.columnIndexMapper,s):void 0;if(null===o||null===n)return!1;a=e?G.rowIndexMapper.getRenderableFromVisualIndex(o):i,l=t?G.columnIndexMapper.getRenderableFromVisualIndex(n):s}const h=Number.isInteger(a),c=Number.isInteger(l);let u=!1;return h&&a>=0&&c&&l>=0?u=G.view.scrollViewport(G._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(c&&l<0||!c)?u=G.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(h&&a<0||!h)&&(u=G.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,n.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,n.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),o=this.scrollViewportTo(t.toObject());return o?this.view.render():(0,n.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),o},this.destroy=function(){G._clearTimeouts(),G._clearImmediates(),G.view&&G.view.destroy(),K&&K.destroy(),K=null,(0,b.isRootInstance)(this)&&((0,V.uninstall)(),this.getFocusScopeManager().destroy()),this.getShortcutManager().destroy(),le.clear(),se.clearCache(),U.delete(this.guid),z.destroy(),q&&q.destroy(),G.rootContainer&&(0,s.empty)(G.rootContainer),G.rootPortalElement&&G.rootPortalElement.remove(),G.batchExecution(()=>{G.rowIndexMapper.unregisterAll(),G.columnIndexMapper.unregisterAll(),ae.getItems().forEach(e=>{let[,t]=e;t.destroy()}),ae.clear(),G.runHooks("afterDestroy")},!0),A.Hooks.getSingleton().destroy(G),(0,c.objectEach)(G,(e,t,o)=>{var i;(0,n.isFunction)(e)?o[t]=(i=t,()=>{throw new Error(`The "${i}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)}),G.isDestroyed=!0,$&&$.destroy(),$=null,X=null,he=null,q=null,G=null},this.getActiveEditor=function(){return q.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return G.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return G.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return G.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return G.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return G.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return G.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return G.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return G.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return G.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return G.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return G.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return G.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return ae.getItem((0,C.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ae.getId(e)},this.getInstance=function(){return G},this.addHook=function(e,t,o){A.Hooks.getSingleton().add(e,t,G,o)},this.hasHook=function(e){return A.Hooks.getSingleton().has(e,G)||A.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){A.Hooks.getSingleton().once(e,t,G,o)},this.removeHook=function(e,t){A.Hooks.getSingleton().remove(e,t,G)},this.runHooks=function(e,t,o,i,s,n,r){return A.Hooks.getSingleton().run(G,e,t,o,i,s,n,r)},this.getTranslatedPhrase=function(e,t){return(0,T.getTranslatedPhrase)(ne.language,e,t)},this.toHTML=()=>(0,d.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,d.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!Z;this.stylesHandler.useTheme(e);const o=this.stylesHandler.getThemeName();t||(G.render(),G.scrollViewportTo(0,0),(0,k.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),o&&(0,s.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,u.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,u.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return q};const Ce=(0,H.createShortcutManager)({handleEvent:()=>G.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||G.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&Ce.releasePressedKeys()}),this.getShortcutManager=function(){return Ce},Q=new N.FocusGridManager(G);const ve=(0,b.isRootInstance)(this)?(0,N.createFocusScopeManager)(G):null;this.getFocusManager=function(){return Q},this.getFocusScopeManager=function(){if(!(0,b.isRootInstance)(G))throw new Error("The FocusScopeManager is only available for the main Handsontable instance.");return ve},(0,f.getPluginsNames)().forEach(e=>{const t=(0,f.getPlugin)(e);ae.addItem(e,new t(this))}),(0,x.registerAllShortcutContexts)(G),(0,b.isRootInstance)(this)&&(0,N.registerAllFocusScopes)(G);Ce.setActiveContextName("grid"),A.Hooks.getSingleton().run(G,"construct")},o(22588),o(66182),o(93773),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(88633),o(14618),o(47572);var s=o(76651),n=o(99586),r=o(26599),a=o(12108),l=i(o(83338)),h=i(o(13683)),c=o(78437),u=o(94857),d=o(20479),g=o(43641),f=o(3182),p=o(83658),m=o(89640),w=o(72657),C=o(73983),v=o(58639),y=i(o(66123)),S=i(o(98110)),E=o(91718),R=o(32435),b=o(74125),_=o(24496),T=o(95820),M=o(24302),I=o(68959),O=o(59195),A=o(73764),N=o(87152),P=o(79836),H=o(66622),x=o(7037),k=o(81528),D=o(7522),L=o(49581),V=o(843),W=o(15841);let F=null;const B=new WeakSet,U=new Map;new Set},72136:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(42479),r=o(78437),a=o(58639),l=o(26599);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="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,i,s){e.getCellMeta(t,o).isSearchResult=s},f=function(e,t,o){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",f),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const i=this.hot.countRows(),s=this.hot.countCols(),n=[],r=this.hot;return(0,a.rangeEach)(0,i-1,i=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(i,s),l=this.hot.getCellMeta(i,s),h=l.search.callback||t,c=(l.search.queryMethod||o)(e,a,l);if(c){const e={row:i,col:s,data:a};n.push(e)}h&&h(r,i,s,a,c)})}),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,r.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,i,s,n){const r=n.className||[];let a=[];"string"==typeof r?a=r.split(" "):a.push(...r),this.isEnabled()&&n.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),n.className=a.join(" ")}t.Search=m},72216:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},72401:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(70270);class a extends n.BaseAction{constructor(e){let{columns:t,finalIndex:o}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,o)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveColumn(i,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),o.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},72586:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(99048),r=o(688),a=o(39761),l=o(76651),h=o(94411),c=o(52150),u=o(7037);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,f=d;(0,r.registerRootComparator)(d,h.rootComparator);class p extends n.ColumnSorting{constructor(){super(...arguments),(0,s.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,n.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&o.isHeader()},relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before",group:f})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(f)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];super.updateHeaderClasses(e,...o),(0,l.removeClass)(e,(0,c.getClassesToRemove)(e)),!1!==this.enabled&&(0,l.addClass)(e,(0,c.getClassesToAdd)(...o))}onAfterOnCellMouseDown(e,t){!1!==(0,a.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,n.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=p},72657:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered validator found under "${e}" name`);return n(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);s(e,t)},o(22588);var i=o(43641);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=r},72934:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},72992:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(39716);var i=o(41306);function s(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 r(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 l=new WeakMap,h=new WeakMap;class c extends i.StretchStrategy{constructor(){super(...arguments),s(this,l,0),s(this,h,-1)}prepare(e){super.prepare(e),r(l,this,0),r(h,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),r(h,this,e),r(l,this,t)}calculate(){if(-1===n(h,this))return;const e=Array.from(this.baseWidths).reduce((e,t)=>{let[,o]=t;return e+o},0),t=Math.max(this.viewportWidth-e+n(l,this),0);this.stretchedWidths.set(n(h,this),t)}}t.StretchLastStrategy=c},73050:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(31934);t.EDITOR_TYPE=i.EDITOR_TYPE,t.TextEditor=i.TextEditor},73094:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(78437),s=o(42732);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 r(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 l=new WeakMap;class h extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){super(e,(0,i.extend)(h.DEFAULTS,t)),n(this,l,void 0)}build(){var e,t,o;super.build(),e=l,t=this,o=this._element.firstChild,e.set(a(e,t),o)}update(){this.isBuilt()&&(r(l,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&r(l,this).focus()}activate(){r(l,this).click()}}t.LinkUI=h},73168:(e,t,o)=>{"use strict";var i={};i[o(71671)("toStringTag")]="z",e.exports="[object z]"===String(i)},73192:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},73335:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42890);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultipleSelectionHandles=i.MultipleSelectionHandles},73358:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(24496);class r extends n.Selection{constructor(e,t){super(e,null),(0,s.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:o}=e,i=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(o,-1);return null===i||null===s?null:((i.row>s.row||i.col>s.col)&&(i=t,s=o),this.settings.createCellRange(i,i,s))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===i)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===s?null:this.settings.createCellCoords(i,s)}getNearestNotHiddenIndex(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),o="N-S"===e.getVerticalDirection()?1:-1,i="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let n=null;if(null!==s&&null!==s.col&&null!==s.row||(n=this.getNearestNotHiddenCoords(t,o,i)),null!==n&&e.overlaps(n)){const t=e.highlight.clone();if(t.row>=0&&(t.row=n.row),t.col>=0&&(t.col=n.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==s&&null===n&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const o=this.settings.visualToRenderableCoords(e),i=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===i.row||null===i.col?null:this.settings.createCellRange(o,o,i)}}t.default=r},73481:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(39522),h=o(70155),c=o(13479),u=o(43832),d=o(57625),g=o(58719),f=!g&&!u("map",function(){}),p=!g&&!f&&d("map",TypeError),m=g||f||p,w=l(function(){var e=this.iterator,t=r(s(this.next,e));if(!(this.done=!!t.done))return h(e,this.mapper,[t.value,this.counter++],!0)});i({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return p?s(p,this,e):new w(a(this),{mapper:e})}})},73517:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(35529);t.AutocompleteCellType=i.AutocompleteCellType,t.CELL_TYPE=i.CELL_TYPE},73652:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124);var s=i(o(81115)),n=o(84029),r=o(58639);class a{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,n.assert)(()=>(0,r.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let o;if(t>=0)o=this.data[t],void 0===o&&(o=this.valueFactory(e),this.data[t]=o);else if(o=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=o,this.index[e]=t}else this.data.push(o),this.index[e]=this.data.length-1;return o}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=[],i=this.data.length;for(let e=0;e<t;e++)o.push(i+e),this.data.push(void 0);const s=(0,n.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...o,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=this.index.splice((0,n.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<o.length;e++){const t=o[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const o=this._getKeyByStorageIndex(t);-1!==o&&void 0!==this.data[t]&&e.push([o,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const o=e[t];return t+=1,{value:o,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=a},73678:(e,t,o)=>{"use strict";var i=o(16135),s=o(82397);e.exports=function(e,t,o){return o.get&&i(o.get,t,{getter:!0}),o.set&&i(o.set,t,{setter:!0}),s.f(e,t,o)}},73764:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i=o(28430);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var s=o(97819);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))});var n=o(81194);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))})},73793:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,i.isNumericLike)(e)){const t=(0,i.getParsedNumber)(e);return(0,s.isNullish)(t)?e:t}return e};var i=o(58639),s=o(84029)},73975:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26920),s=o(42144),n=o(45127);const r=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:r,editor:i.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:n.valueSetter}},73980:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:o}=e.getSelectedRangeActive();o.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},73983:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];let s=o.length;for(;s;){s-=1;const t=(0,n.stringify)(o[s]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isJSON=function(e){if("string"!=typeof e)return!1;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t}catch{return!1}},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=r,t.stripTags=function(e){return r(`${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(66182);var s=i(o(65166)),n=o(26599);function r(e,t){return s.default.sanitize(e,t)}},74030:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(19874);var s=o(42479),n=o(97819),r=i(o(15584)),a=i(o(29891));function l(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")}n.Hooks.getSingleton().register("beforeColumnFreeze"),n.Hooks.getSingleton().register("afterColumnFreeze"),n.Hooks.getSingleton().register("beforeColumnUnfreeze"),n.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 s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=p),t.add(e),function(e,t,o){l(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,r.default)(this),(0,a.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},74111:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(78437);const s=t.VALIDATOR_TYPE="autocomplete";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,n=e.length;t<n;t++)if((0,i.isObjectEqual)(o,e[t])){s=!0;break}t(s)}}n.VALIDATOR_TYPE=s},74116:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(15094)),n=o(76651);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=r},74125:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===i},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,i=t.rootInstanceSymbol=Symbol("rootInstance")},74419:(e,t,o)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,o){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,o)},o(22588);var i=o(9364),s=o(57103),n=o(17285),r=o(84064);const a=new Map([["collapse",i.collapseNode],["expand",s.expandNode],["hide-column",n.hideColumn],["show-column",r.showColumn]])},74425:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:o}=e.getSelectedRangeActive().highlight;let i=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===i&&(i=-1),t.setRangeStart(e._createCellCoords(i,o))}}},75356:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsTop,10),n=parseInt(e.getSettings().fixedColumnsStart,10),r=o.getNearestNotHiddenIndex(s,1),a=i.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,a)),t.markEndSource()}}},75372:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(59405),s=o(61570);class n extends i.IndexMap{insert(e,t){this.indexedValues=(0,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=n},75460:(e,t,o)=>{"use strict";var i=o(21912),s=o(82397),n=o(83640);e.exports=function(e,t,o){i?s.f(e,t,n(0,o)):e[t]=o}},75475:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(58639),r=o(94857),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),l=i(o(29087));function h(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 c(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 u=new WeakMap;class d extends l.default{constructor(){super(...arguments),(0,s.default)(this,"dataManager",this.plugin.dataManager),h(this,u,{row_above:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"above")},row_below:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedActive()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedActive();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedActive())},disabled:()=>{const e=this.hot.getSelectedActive(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,n.rangeEach)(0,e.items.length-1,o=>{if(0===o)return(0,r.arrayEach)(t,(t,i)=>{e.items.splice(o+i,0,t)}),!1}),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,n.rangeEach)(0,e.items.length-1,t=>{const o=c(u,this)[e.items[t].key];null!=o&&(e.items[t].callback=o)}),e}}t.default=d},75676:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=o(8278),s=o(58639)},75866:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(88633);var s=o(34149),n=o(78437),r=i(o(86248)),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),l=o(76651),h=o(3226);function c(e,t,o){u(e,t),t.set(e,o)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(f(e,t))}function g(e,t,o){return e.set(f(e,t),o),o}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")}var p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakSet;class b{constructor(e){let{rootElement:t,uiContainer:o,isRtl:i,themeName:s,phraseTranslator:n,shouldHaveBorder:r,a11yAnnouncer:a}=e;var l,h;u(l=this,h=R),h.add(l),c(this,p,void 0),c(this,m,void 0),c(this,w,!1),c(this,C,void 0),c(this,v,void 0),c(this,y,void 0),c(this,S,void 0),c(this,E,void 0),g(p,this,t),g(m,this,o),g(w,this,i),g(v,this,s),g(y,this,n),g(S,this,r),g(E,this,a),this.install()}install(){var e;if(null!==(e=d(C,this))&&void 0!==e&&e.container)return;const t=s.html`${'\n<div data-ref="container" class="ht-pagination handsontable">\n <div class="ht-pagination__inner">\n <div data-ref="pageSizeSection" class="ht-page-size-section">\n <span data-ref="pageSizeLabel" class="ht-page-size-section__label"></span>\n <div class="ht-page-size-section__select-wrapper">\n <select data-ref="pageSizeSelect" name="pageSize" data-hot-input></select>\n </div>\n </div>\n <div data-ref="pageCounterSection" class="ht-page-counter-section"></div>\n <nav data-ref="pageNavSection" class="ht-page-navigation-section">\n <button data-ref="first" class="ht-page-navigation-section__button ht-page-first"></button>\n <button data-ref="prev" class="ht-page-navigation-section__button ht-page-prev"></button>\n <span data-ref="pageNavLabel" class="ht-page-navigation-section__label"></span>\n <button data-ref="next" class="ht-page-navigation-section__button ht-page-next"></button>\n <button data-ref="last" class="ht-page-navigation-section__button ht-page-last"></button>\n </nav>\n </div>\n</div>\n'}`,{container:o,first:i,prev:n,next:r,last:a,pageSizeSelect:h}=t.refs;g(C,this,t.refs),o.setAttribute("dir",d(w,this)?"rtl":"ltr"),o.tabIndex=-1;const c=(e,t,o)=>{t.addEventListener(e,e=>{(e=>e.currentTarget.disabled)(e)||o()})};c("click",i,()=>this.runLocalHooks("firstPageClick")),c("click",n,()=>this.runLocalHooks("prevPageClick")),c("click",r,()=>this.runLocalHooks("nextPageClick")),c("click",a,()=>this.runLocalHooks("lastPageClick")),h.addEventListener("change",()=>{const e="auto"===h.value?"auto":Number.parseInt(h.value,10);this.runLocalHooks("pageSizeChange",e)}),this.setCounterSectionVisibility(!1),this.setNavigationSectionVisibility(!1),this.setPageSizeSectionVisibility(!1),d(m,this)?(d(m,this).appendChild(t.fragment),(0,l.addClass)(o,[d(v,this),"handsontable"])):d(p,this).after(t.fragment)}getContainer(){return d(C,this).container}getFocusableElements(){const{first:e,prev:t,next:o,last:i,pageSizeSelect:s}=d(C,this);return[s,e,t,o,i].filter(e=>!e.disabled)}updateWidth(e){return d(C,this).container.style.width=`${e}px`,this}updateTheme(e){if(g(v,this,e),d(m,this)){const{container:e}=d(C,this);(0,l.removeClass)(e,/ht-theme-.*/g),d(v,this)&&(0,l.addClass)(e,d(v,this))}return this}getHeight(){return d(C,this).container.offsetHeight}refreshBorderState(){const{container:e}=d(C,this);return d(m,this)||d(S,this).call(this)?(0,l.addClass)(e,"ht-pagination--bordered"):(0,l.removeClass)(e,"ht-pagination--bordered"),this}updateState(e){let{currentPage:t,totalPages:o,firstVisibleRowIndex:i,lastVisibleRowIndex:s,totalRenderedRows:n,pageSizeList:r,pageSize:c,autoPageSize:u}=e;const{first:g,prev:f,next:m,last:w,pageCounterSection:v,pageNavSection:S,pageNavLabel:R,pageSizeSelect:b,pageSizeLabel:_}=d(C,this),T=d(y,this).call(this,a.PAGINATION_COUNTER_SECTION,{start:i+1,end:s+1,total:n}),M=d(y,this).call(this,a.PAGINATION_NAV_SECTION,{currentPage:t,totalPages:o}),I=d(y,this).call(this,a.PAGINATION_PAGE_SIZE_SECTION);v.textContent=T,R.textContent=M,b.textContent="",_.textContent=`${I}:`,(0,l.setAttribute)(S,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_SECTION))]),(0,l.setAttribute)(b,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_PAGE_SIZE_SECTION))]),d(E,this).call(this,M),this.refreshBorderState(),r.forEach(e=>{const t="auto"===e?d(y,this).call(this,a.PAGINATION_PAGE_SIZE_AUTO):e,o=new Option(t,e);(u&&"auto"===e||!u&&e===c)&&(o.selected=!0),b.add(o)});const O=1===t,A=t===o;if("none"!==S.style.display){const e=d(p,this).ownerDocument.activeElement;O?((0,l.addClass)(g,"ht-page-navigation-section__button--disabled"),(0,l.addClass)(f,"ht-page-navigation-section__button--disabled"),g.disabled=!0,f.disabled=!0):((0,l.removeClass)(g,"ht-page-navigation-section__button--disabled"),(0,l.removeClass)(f,"ht-page-navigation-section__button--disabled"),g.disabled=!1,f.disabled=!1),A?((0,l.addClass)(m,"ht-page-navigation-section__button--disabled"),(0,l.addClass)(w,"ht-page-navigation-section__button--disabled"),m.disabled=!0,w.disabled=!0):((0,l.removeClass)(m,"ht-page-navigation-section__button--disabled"),(0,l.removeClass)(w,"ht-page-navigation-section__button--disabled"),m.disabled=!1,w.disabled=!1),[g,f,m,w].includes(e)&&(f.disabled?m.focus():m.disabled&&f.focus())}return(0,l.setAttribute)(g,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_FIRST_PAGE)),(0,h.A11Y_DISABLED)(O)]),(0,l.setAttribute)(f,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_PREV_PAGE)),(0,h.A11Y_DISABLED)(O)]),(0,l.setAttribute)(m,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_NEXT_PAGE)),(0,h.A11Y_DISABLED)(A)]),(0,l.setAttribute)(w,[(0,h.A11Y_LABEL)(d(y,this).call(this,a.PAGINATION_LAST_PAGE)),(0,h.A11Y_DISABLED)(A)]),this}setPageSizeSectionVisibility(e){const{pageSizeSection:t,pageSizeSelect:o}=d(C,this);return t.style.display=e?"":"none",o.disabled=!e,f(R,this,_).call(this),this}setCounterSectionVisibility(e){return d(C,this).pageCounterSection.style.display=e?"":"none",f(R,this,_).call(this),this}setNavigationSectionVisibility(e){const{pageNavSection:t,first:o,prev:i,next:s,last:n}=d(C,this);return t.style.display=e?"":"none",o.disabled=!e,i.disabled=!e,s.disabled=!e,n.disabled=!e,f(R,this,_).call(this),this}destroy(){var e;null===(e=d(C,this))||void 0===e||e.container.remove(),g(C,this,null)}}function _(){const{container:e,pageSizeSection:t,pageCounterSection:o,pageNavSection:i}=d(C,this),s="none"!==t.style.display||"none"!==o.style.display||"none"!==i.style.display;d(m,this)||(s?(0,l.addClass)(d(p,this).querySelector(".ht-wrapper"),"htPagination"):(0,l.removeClass)(d(p,this).querySelector(".ht-wrapper"),"htPagination")),e.style.display=s?"":"none"}t.PaginationUI=b,(0,n.mixin)(b,r.default)},75949:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.default=class{constructor(e,t,o){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.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))}}},75972:e=>{"use strict";e.exports=t},76030:(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,i.isFunction)(e)?e:s,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(99586);const s=e=>`'${e}' value is already declared in a unique set.`},76372:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(83379);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dropdownRenderer=i.dropdownRenderer},76400:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=o(42479),n=i(o(61521)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(60808));const a=t.PLUGIN_KEY="exportFile",l=t.PLUGIN_PRIORITY=240;class h extends s.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return l}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:o,rootWindow:i}=this.hot,s=this._createTypeFormatter(e,t),n=this._createBlob(s),r=i.URL||i.webkitURL,a=o.createElement("a"),l=`${s.options.filename}.${s.options.fileExtension}`;if(void 0!==a.download){const e=r.createObjectURL(n);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),o.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),o.body.removeChild(a),setTimeout(()=>{r.revokeObjectURL(e)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(n,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,r.default)(e,new n.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=h},76429:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,o){const i=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(o,"bottom",i)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(39469)},76432:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllFocusScopes=function(e){[i.focusGridScope].forEach(t=>t(e))};var i=o(92058)},76651:(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=a,t.closestDown=function(e,t,o){const i=[];let s=e;for(;s&&(s=a(s,t,o),s&&(!o||o.contains(s)));)i.push(s),s=s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.host:s.parentNode;const n=i.length;return n?i[n-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,i.sanitize)(t):t:p(e,t)},t.fastInnerText=p,t.findFirstParentWithClass=function(e,t){const o={element:void 0,classNames:[]};let i=e;for(;null!==i&&i!==e.ownerDocument.documentElement&&!o.element;){if("string"==typeof t&&i.classList.contains(t))o.element=i,o.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(i.classList).filter(e=>t.test(e));e.length&&(o.element=i,o.classNames.push(...e))}i=i.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=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,n.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=r,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,i=null,s=e;for(;null!==s;){if(o===t){i=s;break}s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s=s.host:(o+=1,s=s.parentNode)}return i},t.getParentWindow=function(e){return r(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 i=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:n}=s.style;if([e,t,n].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:n}=o.getComputedStyle(s)),i.includes(e)||i.includes(t)||i.includes(n))return s;if(s.clientHeight<=s.scrollHeight+1&&(i.includes(n)||i.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(i.includes(t)||i.includes(e)))return s;s=s.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,n.isSafari)()||(0,n.isMobileBrowser)()||(0,n.isIpadOS)()||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 i=t.getBoundingClientRect().width;o.style.overflow="scroll";let s=t.getBoundingClientRect().width;i===s&&(s=o.clientWidth);return(e.body||e.documentElement).removeChild(o),parseFloat((i-s).toFixed(3))}(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 i=e.style[t];if(""!==i&&void 0!==i)return i;const s=o.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let i=e.parentNode;for(;i&&i.style&&t.body!==i;){if("visible"!==i.style.overflow&&""!==i.style.overflow)return i;const e=o.getComputedStyle(i),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),n=e.getPropertyValue("overflow-y"),r=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(n)||t.includes(r))return i;i=i.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,i=[];"string"==typeof t?i=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):i.push(t);for(;null!==o;){if(i.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=v,t.isInternalElement=function(e,t){const o=e.closest(".handsontable");return!!o&&(o.parentNode===t||o===t)},t.isOutsideInput=y,t.isVisible=function e(t){const o=t.ownerDocument.documentElement,i=t.ownerDocument.defaultView;let s=t;for(;s!==o;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if("none"===i.getComputedStyle(s).display)return!1;s=s.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=S,t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let i=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?i=e.msMatchesSelector(o):e.matches&&(i=e.matches(o)));return i},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((o,i)=>{o.forEach(o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),i.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,i=t.documentElement;let s,n,r,a=e;s=a.offsetLeft,n=a.offsetTop,r=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,n+=a.offsetTop,r=a;r&&"fixed"===r.style.position&&(s+=o.pageXOffset||i.scrollLeft,n+=o.pageYOffset||i.scrollTop);return{left:s,top:n}},t.outerHeight=function(e){return e.getBoundingClientRect().height},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const i=o.parentElement.querySelector(`.ht_clone_${e}`);return i?i.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:i}=h(t,!0);o.forEach(t=>{""!==t&&e.removeAttribute(t)}),i.forEach(t=>{e.getAttributeNames().forEach(o=>{t.test(o)&&e.removeAttribute(o)})})},t.removeClass=u,t.removeContentEditableFromElementAndDeselect=E,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(),E(e,o)},t.selectElementIfAllowed=function(e){y(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(i){const s=e.parentNode,n=s.style.display;s.style.display="block",e.setSelectionRange(t,o),s.style.display=n}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(22588),o(66182),o(81396),o(81124),o(88633);var i=o(73983),s=o(3226),n=o(12108);function r(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:i,DOCUMENT_FRAGMENT_NODE:s}=Node;let n=e;for(;null!=n&&n!==o;){const{nodeType:e,nodeName:o}=n;if(e===i&&(t.includes(o)||t.includes(n)))return n;const{host:r}=n;n=r&&e===s?r:n.parentNode}return null}function l(e){return e&&e.length?e.filter(e=>!!e):[]}function h(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const o=[],i=[];return i.push(...e.filter(e=>{const i=e instanceof RegExp;return i&&t&&o.push(e),!i})),t?{regexFree:i,regexes:o}:i}function c(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(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:i}=h(t,!0);o=l(o),o.length>0&&e.classList.remove(...o),i.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(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function y(e){return v(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 i=e.ownerDocument,n=i.createRange(),r=i.defaultView.getSelection();d(e,"contenteditable",!0),o&&d(e,...(0,s.A11Y_HIDDEN)()),t&&c(e,"invisibleSelection"),n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n)}function E(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")}},76692:(e,t,o)=>{"use strict";o(22588),t.__esModule=!0,o(81396),o(88633),o(14618);var i=o(34149),s=o(76651),n=o(3226),r=o(73983);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 l(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="ht-empty-data-state",d=`<div data-ref="emptyDataStateElement" class="${u} handsontable">\n <div class="${u}__content-wrapper">\n <div data-ref="emptyDataStateInner" class="${u}__content-wrapper-inner"></div>\n </div>\n</div>`;var g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap;t.EmptyDataStateUI=class{constructor(e){let{rootElement:t,rootDocument:o}=e;a(this,g,void 0),a(this,f,void 0),a(this,p,void 0),a(this,m,void 0),h(g,this,t),h(f,this,o),this.install()}install(){var e;if(null!==(e=l(p,this))&&void 0!==e&&e.emptyDataStateElement)return;const t=i.html`${d}`;h(p,this,t.refs);const{emptyDataStateInner:o,emptyDataStateElement:r}=l(p,this);(0,s.setAttribute)(o,[(0,n.A11Y_TABINDEX)(-1)]),(0,s.setAttribute)(r,[(0,n.A11Y_TABINDEX)(-1)]),l(g,this).after(t.fragment)}getElement(){var e;return null===(e=l(p,this))||void 0===e?void 0:e.emptyDataStateElement}getFocusableElements(){const{emptyDataStateButtons:e,emptyDataStateInner:t}=l(p,this),o=Array.from(null==e?void 0:e.children);return 0===o.length?[t]:o}show(){var e;null!==(e=l(p,this))&&void 0!==e&&e.emptyDataStateElement&&(l(p,this).emptyDataStateElement.style.display="block")}hide(){var e,t;null!==(e=l(p,this))&&void 0!==e&&e.emptyDataStateElement&&(null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),l(p,this).emptyDataStateElement.style.display="none")}updateContent(e){var t;const{emptyDataStateInner:o}=l(p,this);let s="";s="string"==typeof e?{title:e}:{title:null==e?void 0:e.title,description:null==e?void 0:e.description,buttons:null==e?void 0:e.buttons};const n=i.html`${(e=>{let{title:t,description:o,buttons:i}=e;return`\n <div class="${u}__content">\n ${t?`<h2 class="${u}__title">${(0,r.stripTags)(t)}</h2>`:""}\n ${o?`<p class="${u}__description">${(0,r.stripTags)(o)}</p>`:""}\n </div>\n <div\n data-ref="emptyDataStateButtons"\n class="${u}__buttons${(null==i?void 0:i.length)>0?` ${u}__buttons--has-buttons`:""}"\n >${(null==i?void 0:i.length)>0?i.map(e=>`<button class="ht-button ht-button--${e.type}">${(0,r.stripTags)(e.text)}</button>`).join(""):""}</div>`})(s)}`;h(p,this,{...l(p,this),...n.refs}),o.innerHTML="",o.appendChild(n.fragment),(null===(t=s.buttons)||void 0===t?void 0:t.length)>0&&Array.from(l(p,this).emptyDataStateButtons.children).forEach((e,t)=>{e.addEventListener("click",s.buttons[t].callback)})}updateClassNames(e){const{emptyDataStateElement:t}=l(p,this);e.countRenderableColumns()>0&&e.getColumnHeadersCount()>0?(0,s.addClass)(t,`${u}--disable-top-border`):(0,s.removeClass)(t,`${u}--disable-top-border`),e.countRenderableRows()>0&&e.getRowHeadersCount()>0?(0,s.addClass)(t,`${u}--disable-inline-border`):(0,s.removeClass)(t,`${u}--disable-inline-border`),e.hasHorizontalScroll()&&!e.isHorizontallyScrollableByWindow()?(0,s.addClass)(t,`${u}--disable-bottom-border`):(0,s.removeClass)(t,`${u}--disable-bottom-border`)}updateSize(e){const{emptyDataStateElement:t}=l(p,this),o=e.hasHorizontalScroll()?(0,s.getScrollbarWidth)(e.hot.rootDocument):0,i=e.countRenderableRows(),n=e.countRenderableColumns(),r=e.getColumnHeadersCount();var a;(t.style.top=n>0?`${e.getColumnHeaderHeight()}px`:"0px",t.style.insetInlineStart=i>0?`${e.getRowHeaderWidth()}px`:"0px",0===i)?(l(m,this)||(h(m,this,l(f,this).createElement("div")),l(m,this).classList.add(`${u}-placeholder`),e._wt.wtTable.holder.appendChild(l(m,this))),l(m,this).style.width="100%",l(m,this).style.height="150px"):(null===(a=l(m,this))||void 0===a||a.remove(),h(m,this,null));let c=e.getWorkspaceWidth(),d=e.getTableHeight();e.isHorizontallyScrollableByWindow()?n>0?c=e.getTotalTableWidth():i>0&&(c=e.getViewportWidth()):i>0?c=e.getViewportWidth():e.getTableWidth()-e.getRowHeaderWidth()<e.getViewportWidth()&&n>0&&(c=e.getTableWidth()),e.isVerticallyScrollableByWindow()||e.hasVerticalScroll()?d=n>0?e.hot.getTableHeight()-e.getColumnHeaderHeight():e.hot.getTableHeight():r>0&&n>0?d=e.getViewportHeight()-o:r>0&&0===n&&(d=e.getWorkspaceHeight()-o),t.style.width=`${c}px`,t.style.height=`${d}px`}destroy(){var e,t;null===(e=l(p,this))||void 0===e||null===(e=e.emptyDataStateElement)||void 0===e||e.remove(),null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),h(p,this,null)}}},76742:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!i[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:o,descriptor:s}=i[e];let n=t;s.inputValuesDecorator&&(n=s.inputValuesDecorator(n));return function(e){return o.apply(e.meta.instance,[].concat([e],[n]))}},t.getConditionDescriptor=function(e){if(!i[e])throw Error(`Filter condition "${e}" does not exist.`);return i[e].descriptor},t.registerCondition=function(e,t,o){o.key=e,i[e]={condition:t,descriptor:o}},o(22588);const i=t.conditions={}},76887:(e,t,o)=>{"use strict";var i=o(21912),s=o(19617),n=o(19809),r=o(83640),a=o(56769),l=o(61989),h=o(33477),c=o(47145),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=l(t),c)try{return u(e,t)}catch(e){}if(h(e,t))return r(!s(n.f,e,t),e[t])}},76952:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=o(78437),n=i(o(86248));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 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 l=new WeakMap;class h{constructor(){r(this,l,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=l).get(a(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,i;o=this,i=e,(t=l).set(a(t,o),i)}}t.ChangesObserver=h,(0,s.mixin)(h,n.default)},76978:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(26599);const r=t.CONDITION_NAME="empty";function a(e){return(0,n.isEmpty)(e.value)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},76994:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},77284:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var i=o(42479),s=o(76651),n=o(94857),r=o(58639),a=o(32435);function l(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,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakSet;class H extends i.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=P),o.add(t),l(this,m,null),l(this,w,null),l(this,C,[]),l(this,v,null),l(this,y,null),l(this,S,null),l(this,E,null),l(this,R,null),l(this,b,this.hot.rootDocument.createElement("DIV")),l(this,_,this.hot.rootDocument.createElement("DIV")),l(this,T,null),l(this,M,!1),l(this,I,0),l(this,O,null),l(this,A,void 0),l(this,N,void 0),(0,s.addClass)(u(b,this),"manualColumnResizer"),(0,s.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(A,this,new a.PhysicalIndexToValueMap),u(A,this).addLocalHook("init",()=>d(P,this,x).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,u(A,this)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,F).call(e,...o)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,B).call(e,...o)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,U).call(e,...o)}),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(N,this,u(A,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",p,u(A,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=Math.max(t,20),i=this.hot.toPhysicalColumn(e);return u(A,this).setValueAtIndex(i,o),o}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);u(A,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode||u(I,this)>1)return;c(m,this,e);const{_wt:t}=this.hot.view,o=t.wtTable.getCoords(u(m,this)),i=o.col;if(i<0)return;const a=(0,s.outerHeight)(u(m,this)),l=u(m,this).getBoundingClientRect();let h;i<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(i)),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,n.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,o=e.getBottomEndCorner().col;(0,r.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(E,this,parseInt(l.width,10)),u(b,this).style.top=`${h.top}px`,u(b,this).style[this.inlineDir]=`${u(R,this)+u(E,this)}px`,u(b,this).style.height=`${a}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,s.outerHeight)(u(b,this)),10),t=parseInt(u(b,this).style.top,10)+e,o=this.hot.view.getTableHeight();(0,s.addClass)(u(b,this),"active"),(0,s.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,s.removeClass)(u(b,this),"active"),(0,s.removeClass)(u(_,this),"active")}checkIfColumnHeader(e){const t=(0,s.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:o,topInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.THEAD,i.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.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{const i=this.hot.runHooks("beforeColumnResize",u(y,this),t,!0);void 0!==i&&c(y,this,i),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,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.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(P,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousedown",e=>d(P,this,D).call(this,e)),this.eventManager.addEventListener(e,"mousemove",e=>d(P,this,L).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>d(P,this,V).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(P,this,W).call(this))}destroy(){super.destroy()}}function x(){const e=this.hot.getSettings()[g],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution(()=>{t.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0):Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0),c(N,this,e)):!0===e&&Array.isArray(u(N,this))&&this.hot.batchExecution(()=>{u(N,this).forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0)}function k(e){if(!(0,s.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,s.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(E,this)))}function L(e){if(u(T,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();c(v,this,u(E,this)+t),(0,n.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function V(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},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(E,this)){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.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),i=u(A,this).getValueAtIndex(e);this.hot.getSettings()[g]&&i&&(o=i)}return o}function B(e,t){const o=u(A,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof o?o:e}function U(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=H},77494:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=o(88014),a=i(o(78155)),l=o(78437),h=o(58639),c=i(o(36642)),u=o(73983),d=o(32435),g=o(76651);function f(e,t,o){p(e,t),t.set(e,o)}function p(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(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}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 v=t.PLUGIN_KEY="autoRowSize",y=t.PLUGIN_PRIORITY=40,S="htFirstDatasetColumnNotRendered",E="htAutoRowSize";var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}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 500}constructor(e){var t,o;super(e),p(t=this,o=_),o.add(t),(0,s.default)(this,"headerHeight",null),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const o=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(o))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let i;return e>=0?i=this.hot.getDataAtCell(e,t):-1===e&&(i=this.hot.getColHeader(t)),{value:i}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredRows",0),(0,s.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),f(this,R,[]),f(this,b,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>C(_,this,N).call(this,e,t,o))}isEnabled(){const e=this.hot.getSettings()[v];return!0===e||(0,l.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;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),i=0;i<t;i++)o[i]=arguments[i];return C(_,e,P).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(_,e,H).call(e,...o)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(_,e,k).call(e,...o)}),this.addHook("beforeViewRender",()=>C(_,this,O).call(this)),this.addHook("beforeRender",()=>C(_,this,A).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>C(_,this,x).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),(0,g.addClass)(this.hot.rootElement,E),super.enablePlugin()}disablePlugin(){this.headerHeight=null,(0,g.removeClass)(this.hot.rootElement,E),super.disablePlugin(),C(_,this,I).call(this,!1),this.addHook("beforeRowResize",(e,t,o)=>C(_,this,N).call(this,e,t,o))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,o)}calculateRowsHeight(){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]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,s);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(i.from,i.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),o||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,s).forEach((e,t)=>this.ghostTable.addRow(t,e))}}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)})},!0),this.measuredRows=i.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){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],o=0;const i=this.hot.countRows()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateRowsHeight({from:o,to:Math.min(o+T.CALCULATION_STEP,i)},e,t),o=o+T.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateRowsHeight({from:0,to:a},e,t),o=a+1),o<i?n():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[v];let t=T.SYNC_CALCULATION_LIMIT;const o=this.hot.countRows()-1;return(0,l.isObject)(e)&&(t=e.syncLimit,(0,u.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getRowHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.stylesHandler.getDefaultRowHeight(e);var o;if(e<0)return null!==(o=this.headerHeight)&&void 0!==o?o:t;const i=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(i))return t;const s=this.rowHeightsMap.getValueAtIndex(i);let n=t;return null!==s&&s>t&&(n=s,this.hot.stylesHandler.isClassicTheme()||e!==this.hot.view.getFirstRenderedVisibleRow()||(n+=1)),n}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:o}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution(()=>{(0,h.rangeEach)(Math.min(t,o),Math.max(t,o),e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function M(e){const t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{const o=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(o,t)})},!0),this.ghostTable.clean())}function I(e){const t=this.hot.getFirstRenderedVisibleColumn(),o=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||o===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?(0,g.removeClass)(this.hot.rootElement,S):(0,g.addClass)(this.hot.rootElement,S)}function O(){C(_,this,I).call(this)}function A(){this.calculateVisibleRowsHeight(),this.inProgress||(C(_,this,M).call(this,w(R,this)),m(R,this,[]))}function N(e,t,o){let i=e;return o&&(this.calculateRowsHeight(t,void 0,!0),i=this.getRowHeight(t)),i}function P(e,t){t||this.recalculateAllRowsHeight()}function H(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);w(R,this).push(...t)}function x(){this.recalculateAllRowsHeight(),m(b,this,!0)}function k(e){if(!w(b,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.row;if(Number.isInteger(i)){const t=this.hot.toVisualRow(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(R,this).push(...t)}t.AutoRowSize=T},77527:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.max(i.row-e.countVisibleRows(),0),n=o.getNearestNotHiddenIndex(s,1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.max(o.row-s,0);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},77564:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(94857),a=o(78437),l=o(13726),h=o(32971),c=o(76651),u=o(97718),d=o(61276),g=o(97819),f=o(50151),p=o(3226);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,S="changeType",E=v;var R=new WeakMap,b=new WeakSet;class _ extends n.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,s.default)(this,"commandExecutor",new l.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.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),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,x).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,H).call(e,...o)}),this.addHook("beforeDialogShow",()=>this.close());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 i=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",i),this.menu.setMenuItems(i),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,A).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,N).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,P).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),(0,r.arrayEach)(i,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.getSelectedRangeActive();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeActive(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),i=this.hot.getCell(-1,t.col,!0).querySelector(`.${S}`),s=i.getBoundingClientRect();this.open({left:s.left+o.left,top:s.top+i.offsetHeight+o.top},{left:s.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.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:E},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:E}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}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,a.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),i=1;i<t;i++)o[i-1]=arguments[i];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,S)){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 i=o.parentNode.childNodes,s=Array.prototype.indexOf.call(i,o);if(e<0||s!==i.length-1)return;const n=t.querySelector(`.${S}`);if(this.enabled&&n)return;if(!this.enabled)return void(n&&n.parentNode.removeChild(n));const r=this.hot.rootDocument.createElement("button");r.className=S,r.type="button",r.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(r,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),r.onclick=function(){return!1},t.firstChild.insertBefore(r,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function A(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function N(e){C(b,this,T).call(this,e)}function P(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function H(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function x(e){(0,c.hasClass)(e.target,S)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},77669:(e,t,o)=>{"use strict";var i=o(94988),s=Error,n=i("".replace),r=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(r);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=n(e,a,"");return e}},77690:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(3921);const s=t.RENDERER_TYPE="date";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},77816:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32804);t.RENDERER_TYPE=i.RENDERER_TYPE,t.handsontableRenderer=i.handsontableRenderer},77868:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(76651),s=o(99586),n=o(88014),r=o(12108),a=o(26599);function l(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,S=new WeakMap;t.default=class{constructor(e,t,o,i,s,n){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;l(this,d,void 0),l(this,g,void 0),l(this,f,void 0),l(this,p,void 0),l(this,m,void 0),l(this,w,void 0),l(this,C,void 0),l(this,v,void 0),l(this,y,[null,null]),l(this,S,[null,null]),c(d,this,o),c(g,this,t),c(f,this,s),c(p,this,n),c(m,this,r),c(w,this,i),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,r.isMobileBrowser)()?e():((0,n.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],[i,s]=[t.col,h(v,this).from.col];return e===o&&i===s}return!1}parentCell(e){const t={},o=h(f,this).TABLE,s=(0,i.closestDown)(e,["TD","TH"],o);return s?(t.coords=h(f,this).getCoords(s),t.TD=s):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"current")?(t.coords=h(p,this).getFocusSelection().cellRange.highlight,t.TD=h(f,this).getCell(t.coords)):(0,i.hasClass)(e,"wtBorder")&&(0,i.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,s.partial)(i.getParent,e.target),n=e.target;if(!["TD","TH"].includes(t.nodeName)&&(n===t||o(0)===t||o(1)===t))return;const r=this.parentCell(n);(0,i.hasClass)(n,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,n):r.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,r.coords,r.TD),(0===e.button||this.touchApplied)&&r.TD&&(h(S,this)[0]=r.TD,clearTimeout(h(y,this)[0]),h(y,this)[0]=setTimeout(()=>{h(S,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,i.closestDown)(e.target,["TD","TH"],t),s=h(m,this)||this;o&&o!==s.lastMouseOver&&(0,i.isChildOf)(o,t)&&(s.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,i.closestDown)(e.target,["TD","TH"],t),s=(0,i.closestDown)(e.relatedTarget,["TD","TH"],t),n=h(m,this)||this;o&&o!==s&&(0,i.isChildOf)(o,t)&&(this.callListener("onCellMouseOut",e,h(f,this).getCoords(o),o),null===s&&(n.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(S,this)[0]&&t.TD===h(S,this)[1]?((0,i.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),h(S,this)[0]=null,h(S,this)[1]=null):t.TD===h(S,this)[0]&&(h(S,this)[1]=t.TD,clearTimeout(h(y,this)[1]),h(y,this)[1]=setTimeout(()=>{h(S,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,i=null===(t=this.parentCell(o))||void 0===t?void 0:t.coords,s=(0,a.isDefined)(i)&&i.row>=0&&i.col>=0;if(e.cancelable&&s&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,r.isIOS)()&&((0,r.isChromeWebKit)()||(0,r.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,i){const s=h(d,this).getSettingPure(e);s&&s(t,o,i,h(C,this).call(this))}destroy(){clearTimeout(h(y,this)[0]),clearTimeout(h(y,this)[1]),h(w,this).destroy()}}},77915:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeActive().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="col_right"},78124:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command]};var i=o(76994),s=o(53394),n=o(92587),r=o(21426),a=o(56456),l=o(68295),h=o(63464),c=o(84249),u=o(64721),d=o(72216),g=o(20385),f=o(49262),p=o(19835),m=o(77527)},78155:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(76651),r=o(94857);t.default=class{constructor(e){(0,s.default)(this,"hot",null),(0,s.default)(this,"container",null),(0,s.default)(this,"injected",!1),(0,s.default)(this,"rows",[]),(0,s.default)(this,"columns",[]),(0,s.default)(this,"samples",null),(0,s.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)),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,r.arrayEach)(this.rows,t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))})}getWidths(e){this.injected||this.injectTable(),(0,r.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,r.arrayEach)(o.strings,o=>{t.appendChild(this.createColElement(o.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),i=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,i),o.appendChild(i)),this.samples.forEach(i=>{(0,r.arrayEach)(i.strings,i=>{const s=i.col,n=this.hot.getCellMeta(e,s),r=this.hot.getCellRenderer(n),a=t.createElement("td");a.setAttribute("ghost-table",1),r(this.hot,a,e,s,this.hot.colToProp(s),i.value,n),o.appendChild(a)})}),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const i=e.createElement("th");o.push([-1,i]),t.appendChild(i)}this.samples.forEach(i=>{(0,r.arrayEach)(i.strings,i=>{const s=i.col,n=e.createElement("th");o.push([s,n]),t.appendChild(n)})}),this.table.tHead.appendChild(t),(0,r.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(i=>{(0,r.arrayEach)(i.strings,i=>{const s=i.row,n=this.hot.getCellMeta(s,e),r=this.hot.getCellRenderer(n),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),r(this.hot,a,s,e,this.hot.colToProp(e),i.value,n),l.appendChild(a),o.appendChild(l)})}),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 i=0;t>=0&&e>=0&&(i=this.hot.getCellMeta(t,e).colspan);let s=this.hot.getColWidth(e);if(i>1)for(let t=e+1;t<e+i;t++)s+=this.hot.getColWidth(t);return o.style.width=`${s}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),i=t.createElement("table"),s=t.createElement("thead"),r=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&i.appendChild(a),this.isHorizontal()&&(l.appendChild(h),s.appendChild(l),i.style.tableLayout="auto",i.style.width="auto"),i.appendChild(s),this.isVertical()&&r.appendChild(l),i.appendChild(r),(0,n.addClass)(i,e),o.appendChild(i),{fragment:o,table:i,tHead:s,tBody:r,colGroup:a,tr:l,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),i=t.createElement("div"),s=`htGhostTable htAutoSize ${e.trim()}`;return(0,n.addClass)(i,s),o.appendChild(i),{fragment:o,container:i}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},78437:(e,t,o)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,o){if("object"!=typeof t||null===t)return o;if("object"!=typeof o||null===o)return t;const i={};return Object.keys(o).forEach(s=>{"object"!=typeof o[s]||null===o[s]||Array.isArray(o[s])?i[s]=a(t,s)&&void 0!==t[s]?t[s]:o[s]:i[s]=e(t[s],o[s])}),Object.keys(t).forEach(e=>{a(i,e)||(i[e]=t[e])}),i},t.clone=function(e){const t={};return r(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}`,i={_touched:!1,[o]:e,isTouched(){return this._touched}};return Object.defineProperty(i,t,{get(){return this[o]},set(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,o){r(o,(i,s)=>{o[s]&&"object"==typeof o[s]?(t[s]||(Array.isArray(o[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(o[s])?t[s]=o[s]:t[s]={}),e(t[s],o[s])):t[s]=o[s]})},t.deepObjectSize=function(e){if(!n(e))return 0;const t=function(e){let o=0;return n(e)?r(e,(e,i)=>{"__children"!==i&&(o+=t(e))}):o+=1,o};return t(e)},t.defineGetter=function(e,t,o,i){i.value=o,i.writable=!1!==i.writable,i.enumerable=!1!==i.enumerable,i.configurable=!1!==i.configurable,Object.defineProperty(e,t,i)},t.duckSchema=function e(t){let o;Array.isArray(t)?o=t.length?new Array(t.length).fill(null):[]:(o={},r(t,(t,i)=>{"__children"!==i&&(t&&"object"==typeof t&&!Array.isArray(t)?o[i]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?o[i]=[e(t[0])]:o[i]=[]:o[i]=null)}));return o},t.extend=function(e,t,o){const i=Array.isArray(o);return r(t,(t,s)=>{(!1===i||o.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const o=t.split(".");let i=e;return r(o,e=>{if(i=i[e],void 0===i)return i=void 0,!1}),i},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=n,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),a=1;a<t;a++)o[a-1]=arguments[a];return(0,i.arrayEach)(o,t=>{e.MIXINS.push(t.MIXIN_NAME),r(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 i=function(e,t){const o=`_${e}`;return function(){return void 0===this[o]&&(this[o]=(e=>{let t=e;return(Array.isArray(t)||n(t))&&(t=s(t)),t})(t)),this[o]}},r=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,o,{get:i(o,t),set:r(o),configurable:!0})}})}),e},t.objectEach=r,t.setProperty=function(e,t,o){if("string"!=typeof t)return;const i=t.split(".");let s=e;i.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==i.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=o)})},o(22588),o(66182),o(4114),o(81396),o(88633);var i=o(94857);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function r(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 a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},78644:(e,t,o)=>{"use strict";var i=o(27538),s=o(26286),n=o(72023);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:s})},78656:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},78727:(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(i.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(39469)},78822:(e,t,o)=>{"use strict";var i=o(27538),s=o(23092),n=o(89035);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("difference",function(e){return 0===e.size})||n(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:s})},78865:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(25502);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Formulas=i.Formulas},79060:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(59839),o(30417),o(81396),o(88633),o(14618);var i=o(42479),s=o(58639),n=o(76651),r=o(75866),a=o(46539),l=o(843),h=o(45074),c=o(34149),u=o(49581);function d(e,t,o){g(e,t),t.set(e,o)}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")}const w=t.PLUGIN_KEY="pagination",C=t.PLUGIN_PRIORITY=900,v=`plugin:${w}`,y=c.toSingleLine`The \`auto\` page size setting requires the \`autoRowSize\`\x20
|
|
86
86
|
plugin to be enabled. Set the \`autoRowSize: true\` in the configuration to ensure correct behavior.`;var S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakSet,O=new WeakMap;class A extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=I),t.add(e),d(this,S,null),d(this,E,1),d(this,R,10),d(this,b,null),d(this,_,null),d(this,T,!1),d(this,M,!1),d(this,O,()=>{var e;!f(T,this)&&null!==(e=this.hot)&&void 0!==e&&e.view&&m(I,this,P).call(this)})}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get DEFAULT_SETTINGS(){return{pageSize:10,pageSizeList:["auto",5,10,20,50,100],initialPage:1,showPageSize:!0,showCounter:!0,showNavigation:!0,uiContainer:null}}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e,t=this;if((0,a.checkPluginSettingsConflict)(this.hot.getSettings()))return void(this.hot.getSettings()[w]=!1);if(this.enabled)return;const o=this.hot.getSettings()[w];void 0!==(null==o?void 0:o.initialPage)&&p(E,this,this.getSetting("initialPage")),void 0!==(null==o?void 0:o.pageSize)&&p(R,this,this.getSetting("pageSize")),p(S,this,this.hot.rowIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding",!1)),"auto"!==f(R,this)||null!==(e=this.hot.getPlugin("autoRowSize"))&&void 0!==e&&e.enabled||(0,u.warn)(y),p(_,this,(0,h.createPaginatorStrategy)("auto"===f(R,this)?"auto":"fixed")),f(b,this)||(p(b,this,new r.PaginationUI({rootElement:this.hot.rootGridElement,uiContainer:this.getSetting("uiContainer"),isRtl:this.hot.isRtl(),themeName:this.hot.getSettings().themeName,phraseTranslator:function(){return t.hot.getTranslatedPhrase(...arguments)},shouldHaveBorder:()=>m(I,this,H).call(this),a11yAnnouncer:e=>(0,l.announce)(e)})),m(I,this,N).call(this),f(b,this).addLocalHook("firstPageClick",()=>this.firstPage()).addLocalHook("prevPageClick",()=>this.prevPage()).addLocalHook("nextPageClick",()=>this.nextPage()).addLocalHook("lastPageClick",()=>this.lastPage()).addLocalHook("pageSizeChange",e=>this.setPageSize(e))),this.addHook("init",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,Y).call(t,...o)},-1),this.addHook("beforeSelectAll",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,D).call(t,...o)}),this.addHook("beforeSelectColumns",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,D).call(t,...o)}),this.addHook("beforeSetRangeEnd",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,L).call(t,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,V).call(t,...o)}),this.addHook("beforePaste",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,W).call(t,...o)}),this.addHook("afterViewRender",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,F).call(t,...o)}),this.addHook("afterRender",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,B).call(t,...o)}),this.addHook("afterScrollVertically",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,j).call(t,...o)}),this.addHook("afterLanguageChange",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,G).call(t,...o)}),this.addHook("beforeHeightChange",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,U).call(t,...o)}),this.addHook("afterSetTheme",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return m(I,t,z).call(t,...o)}),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",f(O,this)),m(I,this,x).call(this),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),m(I,this,P).call(this),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",f(O,this)).unregisterMap(this.pluginName),m(I,this,k).call(this),f(b,this).destroy(),p(b,this,null),super.disablePlugin()}getPaginationData(){const e=f(_,this).getTotalPages();let t=-1,o=-1;const{pageSize:i,startIndex:s}=f(_,this).getState(f(E,this)),n=this.hot.countRows();let r=0;for(let e=s;r<i&&!(e>=n);e++)this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))||(-1===t&&(t=e),o=e,r+=1);return{currentPage:f(E,this),totalPages:e,pageSize:i,pageSizeList:[...this.getSetting("pageSizeList")],autoPageSize:"auto"===f(R,this),numberOfRenderedRows:this.hot.rowIndexMapper.getRenderableIndexesLength(),firstVisibleRowIndex:t,lastVisibleRowIndex:o}}setPage(e){const t=f(E,this);!1!==this.hot.runHooks("beforePageChange",t,e)&&(p(E,this,e),m(I,this,P).call(this),this.hot.scrollViewportTo({row:0}),this.hot.runHooks("afterPageChange",t,f(E,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPage(){this.setPage(this.getSetting("initialPage"))}setPageSize(e){var t;const o=f(R,this);!1!==this.hot.runHooks("beforePageSizeChange",o,e)&&("auto"!==e||null!==(t=this.hot.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||(0,u.warn)(y),p(_,this,(0,h.createPaginatorStrategy)("auto"===e?"auto":"fixed")),p(R,this,e),m(I,this,P).call(this),this.hot.runHooks("afterPageSizeChange",o,f(R,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPageSize(){this.setPageSize(this.getSetting("pageSize"))}resetPagination(){this.resetPage(),this.resetPageSize(),m(I,this,N).call(this)}nextPage(){this.setPage(f(E,this)+1)}prevPage(){this.setPage(f(E,this)-1)}firstPage(){this.setPage(1)}lastPage(){this.setPage(f(_,this).getTotalPages())}hasPreviousPage(){return f(E,this)>1}hasNextPage(){return f(E,this)<f(_,this).getTotalPages()}getCurrentPageData(){const{firstVisibleRowIndex:e,lastVisibleRowIndex:t}=this.getPaginationData();return-1===e||-1===t?[]:this.hot.getData(e,0,t,this.hot.countCols()-1)}showPageSizeSection(){f(b,this).setPageSizeSectionVisibility(!0),this.hot.runHooks("afterPageSizeVisibilityChange",!0)}hidePageSizeSection(){f(b,this).setPageSizeSectionVisibility(!1),this.hot.runHooks("afterPageSizeVisibilityChange",!1)}showPageCounterSection(){f(b,this).setCounterSectionVisibility(!0),this.hot.runHooks("afterPageCounterVisibilityChange",!0)}hidePageCounterSection(){f(b,this).setCounterSectionVisibility(!1),this.hot.runHooks("afterPageCounterVisibilityChange",!1)}showPageNavigationSection(){f(b,this).setNavigationSectionVisibility(!0),this.hot.runHooks("afterPageNavigationVisibilityChange",!0)}hidePageNavigationSection(){f(b,this).setNavigationSectionVisibility(!1),this.hot.runHooks("afterPageNavigationVisibilityChange",!1)}destroy(){var e;p(S,this,null),p(_,this,null),null===(e=f(b,this))||void 0===e||e.destroy(),p(b,this,null),super.destroy()}}function N(){this.getSetting("showPageSize")?this.showPageSizeSection():this.hidePageSizeSection(),this.getSetting("showCounter")?this.showPageCounterSection():this.hidePageCounterSection(),this.getSetting("showNavigation")?this.showPageNavigationSection():this.hidePageNavigationSection()}function P(){p(T,this,!0),f(S,this).clear();const e=this.hot.rowIndexMapper.getRenderableIndexes(),t=e.length,{stylesHandler:o}=this.hot;f(_,this).calculate({pageSize:f(R,this),totalItems:t,viewportSizeProvider:()=>{const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow()){const t=getComputedStyle(this.hot.rootDocument.body),o=Number.parseInt(t.marginTop,10)+Number.parseInt(t.marginBottom,10),i=this.hot.hasColHeaders()?e._wt.wtTable.getColumnHeaderHeight():0,s=f(b,this).getHeight();return e.getWorkspaceHeight()-s-i-o}const t=e.hasHorizontalScroll()?(0,n.getScrollbarWidth)():0;return e.getViewportHeight()-t},itemsSizeProvider:()=>this.hot.rowIndexMapper.getRenderableIndexes().map(e=>{var t;const i=this.hot.toVisualRow(e);return null!==(t=this.hot.getRowHeight(i))&&void 0!==t?t:o.getDefaultRowHeight(i)})});const i=f(_,this).getTotalPages();if(p(E,this,(0,s.clamp)(f(E,this),1,i)),e.length>0){const{startIndex:t,pageSize:o}=f(_,this).getState(f(E,this));e.splice(t,o)}e.length>0?this.hot.batchExecution(()=>{e.forEach(e=>f(S,this).setValueAtIndex(e,!0))},!0):this.hot.rowIndexMapper.updateCache(!0),p(T,this,!1);const r=this.getPaginationData();f(b,this).updateState({...r,totalRenderedRows:t})}function H(){if(!this.hot.view)return!0;const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow())return!1;if(e.hasHorizontalScroll()||e.getTableHeight()<e.getWorkspaceHeight())return!0;const{lastVisibleRowIndex:t}=this.getPaginationData();return e.getLastFullyVisibleRow()!==t}function x(){this.hot.getFocusScopeManager().registerScope(w,f(b,this).getContainer(),{shortcutsContextName:v,runOnlyIf:()=>this.getSetting("showPageSize")||this.getSetting("showNavigation"),onActivate:e=>{const t=f(b,this).getFocusableElements();t.length>0&&("tab_from_above"===e?t.at(0).focus():"tab_from_below"===e&&t.at(-1).focus())}})}function k(){this.hot.getFocusScopeManager().unregisterScope(w)}function D(e,t){const{firstVisibleRowIndex:o,lastVisibleRowIndex:i}=this.getPaginationData();(f(E,this)>1||e.row>=0)&&(e.row=o),t.row=i}function L(e){if(this.hot.selection.isSelectedByColumnHeader()){const{lastVisibleRowIndex:t}=this.getPaginationData();e.row=t}}function V(){if(!this.hot.getSettings().navigableHeaders)return;const e=this.hot.getSelectedRangeLast();if(!e.isSingle()){const{highlight:t}=e;t.row=(0,s.clamp)(t.row,e.getTopStartCorner().row,e.getBottomEndCorner().row)}}function W(e,t){const{firstVisibleRowIndex:o,lastVisibleRowIndex:i}=this.getPaginationData();if(-1===o||-1===i)return!1;t.forEach(t=>{let{startRow:o}=t;if(0===e.length)return;const s=Math.min(e.length-(i-o+1),e.length);e.splice(0,s)})}function F(){"auto"!==f(R,this)||f(M,this)?p(M,this,!1):(m(I,this,P).call(this),p(M,this,!0),this.hot.view.adjustElementsSize(),this.hot.render())}function B(){const{view:e}=this.hot,t=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();f(b,this).updateWidth(t).refreshBorderState()}function U(e){if(this.getSetting("uiContainer"))return e;if(!("number"==typeof e||"string"==typeof e&&/^\d+$/.test(e)||"string"==typeof e&&e.endsWith("px")))return e;return`calc(${"string"==typeof e&&e.endsWith("px")?e:`${e}px`} - ${f(b,this).getHeight()}px)`}function Y(){"auto"!==f(R,this)&&m(I,this,P).call(this)}function j(){f(b,this).refreshBorderState()}function G(){m(I,this,P).call(this)}function z(e){f(b,this).updateTheme(e)}t.Pagination=A},79098:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(59665));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 r(e,t){return e.get(l(e,t))}function a(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")}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){n(this,h,void 0),n(this,c,void 0),n(this,u,void 0),n(this,d,!1),n(this,g,!1),n(this,f,null),n(this,p,null),a(h,this,new s.default("row",e,this)),a(c,this,new s.default("column",t,this)),a(u,this,o)}getForAxis(e){return r("row"===e?h:c,this)}setPerformUndo(e){a(d,this,e)}setPerformRedo(e){a(g,this,e)}isPerformingUndoRedo(){return r(d,this)||r(g,this)}getSheetId(){return r(p,this)}getEngine(){return r(f,this)}getPostponeAction(){return r(u,this)}setupSyncEndpoint(e,t){a(f,this,e),a(p,this,t),r(h,this).init(),r(c,this).init()}}},79212:(e,t,o)=>{"use strict";var i=o(14326),s=o(82397),n=o(16135),r=o(22381);e.exports=function(e,t,o,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(i(o)&&n(o,h,a),a.global)l?e[t]=o:r(t,o);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=o:s.f(e,t,{value:o,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},79356:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));const n="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),this.hot=e}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){void 0!==e&&(this._element.style.top=e+n),void 0!==t&&(this._element.style.left=t+n)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+n),t&&(this._element.style.height=t+n)}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){e&&(this._element.style.marginTop=e+n),t&&(this._element.style.marginLeft=t+n)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}},79385:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42190);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Filters=i.Filters},79540:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=o(88014),a=i(o(78155)),l=o(97819),h=o(78437),c=o(58639),u=i(o(36642)),d=o(73983),g=o(24496),f=o(32435);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")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const y=t.PLUGIN_KEY="autoColumnSize",S=t.PLUGIN_PRIORITY=10;var E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}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,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new u.default((e,t)=>{const o=this.hot.toPhysicalRow(e),i=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(i))return!1;const s=this.hot.getCellMeta(e,t);let n="";s.spanned||(n=this.hot.getDataAtCell(e,t));let r="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(r=this.hot.runHooks("modifyAutoColumnSizeSeed",r,s,n)),{value:n,bundleSeed:r}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new f.PhysicalIndexToValueMap),p(this,E,!1),p(this,R,[]),p(this,b,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,H).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),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("beforeRender",()=>v(_,this,A).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>v(_,this,x).call(this)),super.enablePlugin()}updatePlugin(){C(b,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,H).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 i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,c.rangeEach)(i.from,i.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,s)}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.measuredColumns=i.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 i=this.hot.countCols()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:o,to:Math.min(o+T.CALCULATION_STEP,i)},e,t),o=o+T.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),o=a+1),o<i?n():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],i=t;return void 0===i&&(i=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),o&&"number"==typeof i&&(i=Math.max(i,g.DEFAULT_COLUMN_WIDTH))),i}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 i=w(R,this).length;return(i-1<o||w(R,this)[o]!==t)&&e.push(this.hot.toVisualColumn(o)),i-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 A(){this.calculateVisibleColumnsWidth(),this.inProgress||(v(_,this,M).call(this,w(b,this)),C(b,this,[]))}function N(e,t){t||this.recalculateAllColumnsWidth()}function P(e){const t=e.reduce((e,t)=>{let[,o]=t;const i=this.hot.propToCol(o);return Number.isInteger(i)&&-1===e.indexOf(i)&&e.push(i),e},[]);w(b,this).push(...t)}function H(e,t,o){let i=e;return o&&(this.calculateColumnsWidth(t,void 0,!0),i=this.getColumnWidth(t,void 0,!1)),i}function x(){C(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),C(E,this,!0)}function k(e){if(!w(E,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.col;if(Number.isInteger(i)){const t=this.hot.toVisualColumn(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(b,this).push(...t)}t.AutoColumnSize=T},79573:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4369);t.CELL_TYPE=i.CELL_TYPE,t.SelectCellType=i.SelectCellType},79596:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182);var i=o(78437),s=o(94857),n=o(1002);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 a(e,t){return e.get(h(e,t))}function l(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(){r(this,u,[]),r(this,d,0),r(this,g,1/0)}setColumnsLimit(e){l(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l(u,this,(0,n.normalizeSettings)(e,a(g,this))),l(d,this,a(u,this).length)}getData(){return a(u,this)}mergeWith(e){(0,s.arrayEach)(e,e=>{let{row:t,col:o,...s}=e;const n=this.getHeaderSettings(t,o);null!==n&&(0,i.extend)(n,s,c)})}map(e){(0,s.arrayEach)(a(u,this),t=>{(0,s.arrayEach)(t,t=>{const o=e({...t});(0,i.isObject)(o)&&(0,i.extend)(t,o,c)})})}getHeaderSettings(e,t){var o;if(e>=a(d,this)||e<0)return null;const i=a(u,this)[e];return!1===Array.isArray(i)||t>=i.length?null:null!==(o=i[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const i=[];if(e>=a(d,this)||e<0)return i;const s=a(u,this)[e];let n=0;for(let e=t;e<s.length;e++){const t=s[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(n+=t.colspan,i.push(t),t.colspan>1&&(e+=t.colspan-1),n===o)break;if(n>o)throw new Error("The last column settings cannot overlap the other header layers")}return i}getLayersCount(){return a(d,this)}getColumnsCount(){return a(d,this)>0?a(u,this)[0].length:0}clear(){l(u,this,[]),l(d,this,0)}}},79733:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},79836:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function o(){return[...t]}function n(e){return t.has(e)}return e=(0,i.isFunction)(e)?e:s,{addItem:function(o,i){if(n(o))throw new Error(e(o));t.set(o,i)},clear:function(){t.clear()},getId:function(e){const[t]=o().find(t=>{let[o,i]=t;return e===i&&o})||[null];return t},getItem:function(e){return t.get(e)},getItems:o,getValues:function(){return[...t.values()]},hasItem:n,removeItem:function(e){return t.delete(e)}}},o(22588),o(81396),o(82101);var i=o(99586);const s=e=>`The id '${e}' is already declared in a map.`},79888:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("every",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return!n(t,function(t,i){if(!e(t,o++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},80663:(e,t,o)=>{"use strict";function i(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 n(e,t){return e.get(a(e,t))}function r(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")}t.__esModule=!0,o(22588);var l=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 i=a(c,this,d).call(this,n(l,this),e.row,t);if(null===i)return null;const s=a(c,this,d).call(this,n(h,this),e.col,o);return null===s?null:e.clone().assign({row:i,col:s})}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 n,a;s(n=this,a=c),a.add(n),i(this,l,void 0),i(this,h,void 0),r(l,this,t),r(h,this,o)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,o="W-E"===e.getHorizontalDirection()?1:-1,i=a(c,this,u).call(this,e.from,t,o);if(null===i)return null;const s=a(c,this,u).call(this,e.to,-t,-o);if(null===s)return null;const n=e.clone();return n.from=i,n.to=s,n.includes(e.highlight)||(n.highlight=i),n}}},80674:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639),r=o(78437),a=o(94857);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"data",null),(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"parentReference",new WeakMap),(0,s.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,n.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,a.arrayEach)(e.__children,o=>{this.cacheNode(o,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,o,i){let s=!1,n=t;if(isNaN(n)&&n.end)return n;let r=e;return r||(r={__children:this.data},s=!0,n-=1),null!=o&&n===o?{result:r,end:!0}:null!=i&&r===i?{result:n,end:!0}:(n+=1,r.__children&&(0,a.arrayEach)(r.__children,e=>{if(this.parentReference.set(e,s?null:r),n=this.readTreeNodes(e,n,o,i),isNaN(n)&&n.end)return!1}),n)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,r.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,a.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 i=null;e&&(i=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",i+this.countChildren(e)+1,1);let s=e;e||(s=this.mockParent()),s.__children||(s.__children=[]),o||(o=this.mockNode()),s.__children.push(o),this.rewriteCache();const n=this.getRowIndex(o);this.hot.rowIndexMapper.insertIndexes(n,1),this.hot.runHooks("afterCreateRow",n,1),this.hot.runHooks("afterAddChild",e,o)}addChildAtIndex(e,t,o){let i,s=o;if(s||(s=this.mockNode()),this.hot.runHooks("beforeAddChild",e,s,t),e){const o=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",o,1),e.__children.splice(t,null,s),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),i=o}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),i=this.getRowIndex(this.data[t]);s=this.getDataObject(i),this.hot.runHooks("afterAddChild",e,s,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const o=this.translateTrimmedRow(e),i=this.getRowParent(o),s=this.getRowIndexWithinParent(o);switch(t){case"below":this.addChildAtIndex(i,s+1,null);break;case"above":this.addChildAtIndex(i,s,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=null;const i=[];Array.isArray(e)?((0,n.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);i.push(this.getDataObject(t))}),(0,n.rangeEach)(0,i.length-2,e=>{this.detachFromParent(i[e],!1)}),o=i[i.length-1]):o=e;const s=this.getRowIndex(o),r=this.countChildren(o),a=this.getRowIndexWithinParent(o),l=this.getRowParent(o),h=this.getRowParent(l),c=this.getRowIndex(h);let u=null;if(this.hot.runHooks("beforeDetachChild",l,o),null!=a){const e=Array.from(new Array(s+r+1).keys()).splice(-1*(r+1));if(this.hot.runHooks("beforeRemoveRow",s,r+1,e,this.plugin.pluginName),l.__children.splice(a,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",s,r+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,r+1,this.plugin.pluginName),h.__children.push(o)}else u=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",u-2,r+1,this.plugin.pluginName),this.data.push(o)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",u-2,r+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",l,o,this.getRowIndex(o)),t&&this.hot.render()}filterData(e,t,o){const i=[];(0,a.arrayEach)(o,e=>{i.push(this.getDataObject(e))}),(0,a.arrayEach)(i,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 i=this.getDataObject(e-1);let s=null,n=e;i&&i.__children&&0===i.__children.length?(s=i,n=0):e<this.countAllRows()&&(s=this.getRowParent(e),n=this.getRowIndexWithinParent(e)),s?o?s.__children.splice(n,t,...o):s.__children.splice(n,t):o?this.data.splice(n,t,...o):this.data.splice(n,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,i){const s=t===this.hot.countRows(),n=this.getRowParent(e),r=this.getRowIndexWithinParent(e),a=n.__children.slice(r,r+1),l=e>t;let h=s?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=s||o||i?h.__children.length:this.getRowIndexWithinParent(t),u=n===h;h.__children.splice(c,0,a[0]),n.__children.splice(r+(l&&u?1:0),1),this.syncRowWithRawSource(n),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}}},80716:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(84492);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.UndoRedo=i.UndoRedo},80729:(e,t,o)=>{"use strict";var i=o(27538),s=o(89973);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:s})},81115:(e,t,o)=>{var i=o(17802);e.exports=function(e,t,o){return(t=i(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},81124:(e,t,o)=>{"use strict";o(70573)},81194:(e,t,o)=>{"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let o=!1,c=!1;return{resume(){c=!1},suspend(){c=!0},skipNextScrollCycle(){o=!0},scrollTo(u){var d;if(o||c)return void(o=!1);let g;t.isFocusSelectionChanged()?g=(0,n.focusScrollStrategy)(e):t.isSelectedByCorner()?g=(0,s.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?g=(0,l.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?g=(0,i.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?g=(0,r.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(g=(0,a.noncontiguousScrollStrategy)(e)):g=(0,h.singleScrollStrategy)(e),null===(d=g)||void 0===d||d(u)}}};var i=o(69473),s=o(72934),n=o(38966),r=o(88306),a=o(45945),l=o(23667),h=o(91034)},81350:(e,t,o)=>{"use strict";var i=o(85921),s=String,n=TypeError;e.exports=function(e){if(i(e))return e;throw new n("Can't set "+s(e)+" as a prototype")}},81373:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(22953);class s extends i.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:o}=e.getOuterTopStartCorner(),i=this.tableApi.countRenderableColumnsInRange(0,o-1),s=this.tableApi.countRenderableRowsInRange(0,t-1),n=e.highlight.isHeader(),r=n?Math.abs(o):0,a=n?Math.abs(t):0;return{x:o<0?r:-i,y:t<0?a:-s}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){throw new Error("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=s},81386:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(59839),o(30417);var s=i(o(81115));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:i,viewportWidth:s,columnWidth:n}=t;o>=i&&o+n<=i+(i>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:o,viewportWidth:i,inlineStartOffset:s,zeroBasedScrollOffset:n,totalColumns:r,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===r-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=i&&(this.startColumn-=1),e>=i)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const c=o+i-(n>0?i+1:i),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*s||o>l.at(-1)||-1*o-i>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},81396:(e,t,o)=>{"use strict";o(70923)},81501:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.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 i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="undo"},81528:(e,t,o)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,i.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var i=o(76651)},81576:(e,t,o)=>{"use strict";var i=o(57396),s=o(19617),n=o(16539),r=o(24755),a=o(68149),l=o(69946),h=o(17621),c=o(86293),u=o(47151),d=o(13479),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,S,E,R=o&&o.that,b=!(!o||!o.AS_ENTRIES),_=!(!o||!o.IS_RECORD),T=!(!o||!o.IS_ITERATOR),M=!(!o||!o.INTERRUPTED),I=i(t,R),O=function(e){return m&&d(m,"normal"),new f(!0,e)},A=function(e){return b?(n(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(r(e)+" is not iterable");if(a(w)){for(C=0,v=l(e);v>C;C++)if((y=A(e[C]))&&h(p,y))return y;return new f(!1)}m=c(e,w)}for(S=_?e.next:m.next;!(E=s(S,m)).done;){try{y=A(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof y&&y&&h(p,y))return y}return new f(!1)}},81722:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(49581),s=o(76651),n=o(99586);function r(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 l(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 WeakMap,C=new WeakSet;function v(e){var t;const o=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!o||!l(d,this).selection.isCellVisible(o))return void e(null);const i=l(d,this).getCell(o.row,o.col,!0);null===i?l(d,this).addHookOnce("afterScroll",()=>{e(l(d,this).getCell(o.row,o.col,!0))}):e(i)}function y(){c(C,this,v).call(this,e=>{const{activeElement:t}=l(d,this).rootDocument;t&&(0,s.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function S(){c(C,this,v).call(this,e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function E(){h(w,this,!0)}function R(){l(w,this)&&(h(w,this,!1),c(C,this,y).call(this))}function b(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusGridManager=class{constructor(e){var t,o;a(t=this,o=C),o.add(t),r(this,d,void 0),r(this,g,void 0),r(this,f,1),r(this,p,null),r(this,m,new Map),r(this,w,!1),h(d,this,e)}init(){var e=this;const t=l(d,this).getSettings();h(g,this,t.imeFastEdit?u.MIXED:u.CELL),l(d,this).addHook("afterUpdateSettings",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(C,e,b).call(e,...o)}),l(d,this).addHook("afterSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(C,e,E).call(e,...o)}),l(d,this).addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(C,e,E).call(e,...o)}),l(d,this).addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(C,e,S).call(e,...o)}),l(d,this).addHook("afterRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(C,e,R).call(e,...o)})}getFocusMode(){return l(g,this)}setFocusMode(e){Object.values(u).includes(e)?h(g,this,e):(0,i.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return l(f,this)}setRefocusDelay(e){h(f,this,e)}setRefocusElementGetter(e){h(p,this,e)}getRefocusElement(){var e;return"function"==typeof l(p,this)?l(p,this).call(this):null===(e=l(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,o;const i=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!i)return;let n=l(d,this).runHooks("modifyFocusedElement",i.row,i.col,e);(0,s.isHTMLElement)(n)||(n=e),!n||null!==(o=l(d,this).getActiveEditor())&&void 0!==o&&o.isOpened()||n.focus({preventScroll:!0})};e?t(e):c(C,this,v).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(f,this);var o,i;!l(d,this).getSettings().imeFastEdit||null!==(e=l(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(o=l(d,this).getActiveEditor())||void 0===o||null===(i=o.refreshValue)||void 0===i||i.call(o),l(m,this).has(t)||l(m,this).set(t,(0,n.debounce)(()=>{var e;l(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),l(m,this).get(t)())}}},81774:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(19874);var s=o(42479),n=o(97819),r=o(94857),a=o(76651),l=o(58639),h=i(o(86965)),c=i(o(65022));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")}n.Hooks.getSingleton().register("beforeRowMove"),n.Hooks.getSingleton().register("afterRowMove");const m=t.PLUGIN_KEY="manualRowMove",w=t.PLUGIN_PRIORITY=140,C="ht__manualRowMove",v="show-ui",y="on-moving--rows",S="after-selection--rows";var E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends s.BasePlugin{constructor(){var e,t;super(...arguments),d(e=this,t=I),t.add(e),u(this,E,new h.default(this.hot)),u(this,R,new c.default(this.hot)),u(this,b,[]),u(this,_,void 0),u(this,T,{}),u(this,M,void 0)}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,A).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,P).call(e,...o)}),this.addHook("afterScrollHorizontally",()=>p(I,this,x).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,k).call(e,...o)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,C),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,C),this.unregisterEvents(),f(E,this).destroy(),f(R,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const o=f(M,this),i=this.isMovePossible(e,t),s=this.hot.runHooks("beforeRowMove",e,t,o,i);if(g(M,this,void 0),!1===s)return;i&&this.hot.rowIndexMapper.moveIndexes(e,t);const n=i&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,o,i,n),n}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const o=this.countFinalIndex(e,t);return g(M,this,t),this.moveRows(e,o)}isMovePossible(e,t){const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),i=e.length+t>o,s=t<0,n=e.some(e=>e<0),r=e.some(e=>e>=o);return!(i||s||n||r)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}countFinalIndex(e,t){const o=(0,r.arrayReduce)(e,(e,o)=>(o<t&&(e+=1),e),0);return t-o}getRowsHeight(e,t){const o=this.hot.rowIndexMapper;let i=0;for(let s=e;s<=t;s++){const e=o.getRenderableFromVisualIndex(s);null!==e&&(i+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.stylesHandler.getDefaultRowHeight())}return i}moveBySettingsOrLoad(){const e=this.hot.getSettings()[m];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeActive(),t=[];if(!e)return t;const{from:o,to:i}=e,s=Math.min(o.row,i.row),n=Math.max(o.row,i.row);return(0,l.rangeEach)(s,n,e=>{t.push(e)}),t}refreshPositions(){const e=f(T,this).coords,t=this.hot.getFirstFullyVisibleRow(),o=this.hot.getLastFullyVisibleRow(),i=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&o<i&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(o+1,1),void 0,!0);const s=this.hot.view._wt.wtTable,n=f(T,this).TD,r=this.hot.rootElement,l=(0,a.offset)(r),h=(0,a.getTrimmingContainer)(r),c=s.holder.scrollTop,u=this.hot.rootWindow!==h?h.scrollTop:0,d=l.top-u,g=f(T,this).eventPageY-d+c,p=s.hider.offsetHeight,m=s.TBODY.offsetTop,w=f(E,this).getOffset().top,C=f(E,this).getSize().height,v=n.offsetHeight/2,y=n.offsetHeight;let S=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const b=g>=S+v;this.isFixedRowTop(e.row)&&(S+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?f(T,this).row=t>0?t-1:t:b?(f(T,this).row=e.row+1,S+=0===e.row?y-1:y):f(T,this).row=e.row;let _=g,M=S;g+C+w>=p?_=p-C-w:g+w<m&&(_=m+Math.abs(w)),S>=p-1&&(M=p-1),f(E,this).setPosition(_),f(R,this).setPosition(M)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>p(I,this,N).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>p(I,this,H).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){f(E,this).build(),f(R,this).build()}destroy(){f(E,this).destroy(),f(R,this).destroy(),super.destroy()}}function A(e,t,o,i){const{wtTable:s,wtViewport:n}=this.hot.view._wt,r=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeActive();if(!l||!r||f(_,this)||0!==e.button)return g(_,this,!1),f(b,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[y,v]);const h=f(R,this).isBuilt()&&!f(R,this).isAppended(),c=f(E,this).isBuilt()&&!f(E,this).isAppended();h&&c&&(f(R,this).appendTo(s.hider),f(E,this).appendTo(s.hider));const{from:u,to:d}=l,p=Math.min(u.row,d.row),m=Math.max(u.row,d.row);if(t.col<0&&t.row>=p&&t.row<=m){i.row=!0,g(_,this,!0),f(T,this).eventPageY=e.pageY,f(T,this).coords=t,f(T,this).TD=o,g(b,this,this.prepareRowsToMoving());const r=s.holder.scrollLeft+n.getRowHeaderWidth(),l=this.getRowsHeight(p,t.row-1)+(e.clientY-o.getBoundingClientRect().top);f(E,this).setPosition(null,r),f(E,this).setSize(s.hider.offsetWidth-r,this.getRowsHeight(p,m)),f(E,this).setOffset(-l,null),(0,a.addClass)(this.hot.rootElement,y),this.refreshPositions()}else(0,a.removeClass)(this.hot.rootElement,S),g(_,this,!1),f(b,this).length=0}function N(e){f(_,this)&&(f(T,this).eventPageY=e.pageY,this.refreshPositions())}function P(e,t,o,i){this.hot.getSelectedRangeActive()&&f(_,this)&&(f(b,this).indexOf(t.row)>-1?(0,a.removeClass)(this.hot.rootElement,v):(0,a.addClass)(this.hot.rootElement,v),i.row=!0,i.column=!0,i.cell=!0,f(T,this).coords=t,f(T,this).TD=o)}function H(){const e=f(T,this).row,t=f(b,this).length;if(g(_,this,!1),(0,a.removeClass)(this.hot.rootElement,[y,v,S]),this.hot.selection.isSelectedByRowHeader()&&(0,a.addClass)(this.hot.rootElement,S),t<1||void 0===e)return;const o=f(b,this)[0],i=this.hot.toPhysicalRow(o),s=this.dragRows(f(b,this),e);if(f(b,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualRow(i),o=e+t-1;this.hot.selectRows(e,o)}}function x(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;f(E,this).setPosition(null,t),f(E,this).setSize(e.hider.offsetWidth-t)}function k(){this.moveBySettingsOrLoad()}t.ManualRowMove=O},81872:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53074);t.EDITOR_TYPE=i.EDITOR_TYPE,t.PasswordEditor=i.PasswordEditor},82066:(e,t,o)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,o,i,d){const g=e=>l.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,n.isImmediatePropagationStopped)(e))return;const r=(0,s.normalizeEventKey)(e);let l=[];g(r)||(l=f(e));const h=[r].concat(l);!d(e,h)&&((0,a.isMacOS)()&&l.includes("meta")||!(0,a.isMacOS)()&&l.includes("control"))&&d(e,[r].concat(f(e,!0))),i(e)},m=e=>{if("string"==typeof e.key){const t=(0,s.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,s.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,r.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:i}=c[e];t.document.documentElement.removeEventListener(o,i)}c.length=0}t.document.documentElement.removeEventListener("keydown",p),t.document.documentElement.removeEventListener("blur",C),t=(0,r.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},o(66182);var i=o(28095),s=o(3343),n=o(70667),r=o(76651),a=o(12108);const l=["meta","alt","shift","control"],h=(0,i.createKeysObserver)(),c=[];let u=0},82101:(e,t,o)=>{"use strict";o(54480)},82292:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(88633);var s=i(o(63342)),n=i(o(49095)),r=i(o(49731)),a=i(o(90957)),l=i(o(86248)),h=o(78437);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 s.default(e),this.tableMeta=new n.default(this.globalMeta),this.columnMeta=new r.default(this.globalMeta),this.cellMeta=new a.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 i=this.cellMeta.getMeta(e,t);return i.visualRow=o.visualRow,i.visualCol=o.visualColumn,i.row=e,i.col=t,o.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",i),i}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,i){this.cellMeta.setMeta(e,t,o,i)}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,l.default)},82397:(e,t,o)=>{"use strict";var i=o(21912),s=o(47145),n=o(37466),r=o(16539),a=o(61989),l=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",g="writable";t.f=i?n?function(e,t,o){if(r(e),t=a(t),r(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var i=c(e,t);i&&i[g]&&(e[t]=o.value,o={configurable:d in o?o[d]:i[d],enumerable:u in o?o[u]:i[u],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(r(e),t=a(t),r(o),s)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new l("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},82452:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command]};var i=o(57678),s=o(60054),n=o(51637),r=o(70164),a=o(73980),l=o(58294)},82480:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(14618);var s=o(94857),n=o(26599),r=i(o(89516));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 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")}const h=String.fromCharCode(13),c=String.fromCharCode(34),u=String.fromCharCode(10),d=String.fromCharCode(61),g=String.fromCharCode(43),f=String.fromCharCode(45),p=String.fromCharCode(64),m=String.fromCharCode(9);var w=new WeakSet;class C extends r.default{constructor(){super(...arguments),a(this,w)}static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",sanitizeValues:!1}}export(){const e=this.options,t=this.dataProvider.getData();let o=this.dataProvider.getColumnHeaders();const i=o.length>0,n=this.dataProvider.getRowHeaders(),r=n.length>0;let a=e.bom?String.fromCharCode(65279):"";return i&&(o=(0,s.arrayMap)(o,t=>this._escapeCell(t,{force:!0,sanitizeValue:e.sanitizeValues})),r&&(a+=e.columnDelimiter),a+=o.join(e.columnDelimiter),a+=e.rowDelimiter),(0,s.arrayEach)(t,(t,o)=>{o>0&&(a+=e.rowDelimiter),r&&(a+=this._escapeCell(n[o],{sanitizeValue:e.sanitizeValues}),a+=e.columnDelimiter);const i=t.map(t=>this._escapeCell(t,{sanitizeValue:e.sanitizeValues})).join(e.columnDelimiter);a+=i}),a}_escapeCell(e){let{force:t=!1,sanitizeValue:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,n.stringify)(e);return""===i||(o&&(t=!0),o instanceof RegExp?i=l(w,this,y).call(this,i,o):"function"==typeof o?i=o(i):o&&(i=l(w,this,v).call(this,i)),(t||i.indexOf(h)>=0||i.indexOf(c)>=0||i.indexOf(u)>=0||i.indexOf(this.options.columnDelimiter)>=0)&&(i=i.replace(new RegExp('"',"g"),'""'),i=`"${i}"`)),i}}function v(e){return e.startsWith(d)||e.startsWith(g)||e.startsWith(f)||e.startsWith(p)||e.startsWith(m)||e.startsWith(h)?`'${e}`:e}function y(e,t){return t.test(e)?`'${e}`:e}t.default=C},82539:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];function r(e,t){h(t).addShortcuts(e,{group:s})}function a(e,t){const i=h(t);e.forEach(e=>{let{keys:t}=e;t.forEach(e=>i.removeShortcutsByKeys(e))}),o.push({shortcuts:e,contextName:t}),r(e,t)}function l(e){return e?`${n}:${e}`:n}function h(t){var o;const i=e.hotMenu.getShortcutManager(),s=l(t);return null!==(o=i.getContext(s))&&void 0!==o?o:i.addContext(s)}return r((0,i.createDefaultShortcutsList)(e)),t.forEach(e=>{let{shortcuts:t,contextName:o}=e;a(t,o)}),{addCustomShortcuts:a,getCustomShortcuts:function(){return[...o]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(l(t))}}},o(66182),o(81396),o(88633);var i=o(41498);const s="menu",n=s},82649:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.NodesPool=class{constructor(e){(0,s.default)(this,"nodeType",void 0),(0,s.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const o="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(o))return this.pool.get(o);const i=this.rootDocument.createElement(this.nodeType);return this.pool.set(o,i),i}}},82719:(e,t,o)=>{"use strict";var i=o(19617);e.exports=function(e,t,o){for(var s,n,r=o?e:e.iterator,a=e.next;!(s=i(a,r)).done;)if(void 0!==(n=t(s.value)))return n}},82858:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CLONE_TOP="top",i=t.CLONE_BOTTOM="bottom",s=t.CLONE_INLINE_START="inline_start",n=t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner",r=t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";t.CLONE_TYPES=[o,i,s,n,r],t.CLONE_CLASS_NAMES=new Map([[o,`ht_clone_${o}`],[i,`ht_clone_${i}`],[s,`ht_clone_${s} ht_clone_left`],[n,`ht_clone_${n} ht_clone_top_left_corner`],[r,`ht_clone_${r} ht_clone_bottom_left_corner`]])},82936:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(14426);t.EDITOR_TYPE=i.EDITOR_TYPE,t.HandsontableEditor=i.HandsontableEditor},83203:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},83338:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(57455),r=o(70667),a=o(89640),l=i(o(13683));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,s.default)(this,"hot",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"selection",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"destroyed",!1),(0,s.default)(this,"activeEditor",void 0),(0,s.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new l.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.getSelectedRangeActive())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:i}=t,s=this.hot.runHooks("modifyGetCellCoords",o,i,!1,"meta");let n=o,r=i;if(Array.isArray(s)&&([n,r]=s),this.cellProperties=this.hot.getCellMeta(n,r),!this.isCellEditable())return void this.clearActiveEditor();const l=this.hot.getCell(o,i,!0);if(l){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(r),s=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n),r);this.activeEditor=(0,a.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,i,t,l,s,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 i=this.hot.getSelectedRangeActive();let s=this.hot.runHooks("beforeBeginEditing",i.highlight.row,i.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof s&&(s=0===this.hot.selection.getLayerLevel()&&i.isSingle()),!1!==s?(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.getSelectedRangeActive();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:i}=e.highlight,{rowIndexMapper:s,columnIndexMapper:n}=this.hot,r=s.isHidden(this.hot.toPhysicalRow(o))||n.isHidden(this.hot.toPhysicalColumn(i));return!(this.cellProperties.readOnly||!t||r)}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.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,r.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,i=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,n.isFunctionKey)(o)||(0,n.isCtrlMetaKey)(o)||i||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 i=p.get(e);return i||(i=new d(e,t,o),p.set(e,i)),i};t.default=d},83379:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=n;var i=o(3921);const s=t.RENDERER_TYPE="dropdown";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},83398:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(81124);var i=o(61089);const s=t.EDITOR_TYPE="dropdown";class n extends i.AutocompleteEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){n.filter=!1,n.strict=!0,super.prepare(e,t,o,i,s,n)}}t.DropdownEditor=n},83597:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(8079);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.correctFormat=i.correctFormat,t.dateValidator=i.dateValidator},83640:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},83658:(e,t,o)=>{"use strict";t.__esModule=!0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered renderer found under "${e}" name`);return n(e)},t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);s(e,t)},o(22588);var i=o(43641);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("renderers");t.getRegisteredRenderers=l,t.getRegisteredRendererNames=a,t.hasRenderer=r},83916:(e,t,o)=>{"use strict";var i=o(71763);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},84029:(e,t,o)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function o(){}(0,i.inherit)(o,e);for(let e=0;e<t.length;e++)o.prototype[t[e]]=void 0;return o},t.extendByMetaType=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const n="string"==typeof t.type?(0,s.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,i.objectEach)(t,(t,o)=>{e._automaticallyAssignedMetaProps.delete(o)});if(!(0,i.isObject)(n))return;o!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const r={};(0,i.objectEach)(n,(t,s)=>{var n;(function(e,t){var o;if("CELL_TYPE"===e)return!1;return(null===(o=t._automaticallyAssignedMetaProps)||void 0===o?void 0:o.has(e))||!(0,i.hasOwnProperty)(t,e)})(s,o)&&(r[s]=t,null===(n=e._automaticallyAssignedMetaProps)||void 0===n||n.add(s))}),(0,i.extend)(e,r)},t.isNullish=function(e){return null==e},o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(78437),s=o(9041)},84064:(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(i.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
|
87
87
|
the last node, the show column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(!o.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)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(22588);var i=o(34149)},84168:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(73975);t.CELL_TYPE=i.CELL_TYPE,t.CheckboxCellType=i.CheckboxCellType},84234:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.default=class{constructor(e,t){(0,s.default)(this,"dataAccessObject",void 0),(0,s.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 i=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==i&&(o=void 0===o?i:Math.max(o,i)),o}}},84249:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=parseInt(e.getSettings().fixedColumnsStart,10),a=o.getNearestNotHiddenIndex(r,1),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},84261:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{headerClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_HEADER_TYPE})};var s=o(24496),n=i(o(73358))},84492:(e,t,o)=>{"use strict";o(22588);var i=o(78656);t.__esModule=!0;var s=i(o(81115));o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var n=o(42479),r=o(97819),a=o(78437),l=o(34149),h=o(49581),c=o(98384);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)}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="undoRedo",f=t.PLUGIN_KEY="undoRedo",p=t.PLUGIN_PRIORITY=1e3;r.Hooks.getSingleton().register("beforeUndo"),r.Hooks.getSingleton().register("afterUndo"),r.Hooks.getSingleton().register("beforeRedo"),r.Hooks.getSingleton().register("afterRedo");const m=new Set;var w=new WeakSet;class C extends n.BasePlugin{static get PLUGIN_KEY(){return f}static get PLUGIN_PRIORITY(){return p}static get SETTING_KEYS(){return!0}constructor(e){super(e),u(this,w),(0,s.default)(this,"doneActions",[]),(0,s.default)(this,"undoneActions",[]),(0,s.default)(this,"ignoreNewActions",!1),(0,c.registerActions)(e,this)}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(w,e,v).call(e,...o)}),this.registerShortcuts(),d(w,this,y).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),d(w,this,S).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:g};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(g)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const o=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",o,t))return;const i=e(),s=this.undoneActions.slice();this.doneActions.push(i),this.hot.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",s),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",s,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const o=(0,a.deepClone)(t);if(!1===this.hot.runHooks("beforeUndo",o))return;this.ignoreNewActions=!0;const i=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",i),t.undo(this.hot,()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)}),this.hot.runHooks("afterRedoStackChange",i,this.undoneActions.slice()),this.hot.runHooks("afterUndo",o)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const o=(0,a.deepClone)(t);if(!1===this.hot.runHooks("beforeRedo",o))return;this.ignoreNewActions=!0;const i=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",i),t.redo(this.hot,()=>{this.ignoreNewActions=!1,this.doneActions.push(t)}),this.hot.runHooks("afterUndoStackChange",i,this.doneActions.slice()),this.hot.runHooks("afterRedo",o)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function v(e,t){"loadData"===t&&this.clear()}function y(){const e=e=>{m.has(e)||((0,h.warn)(l.toSingleLine`The "${e}" method is deprecated and it will be removed\x20
|
|
88
88
|
from the Core API in the future. Please use the method from the UndoRedo plugin\x20
|