handsontable 16.1.0-next-1494b74-20250909 → 16.1.0-next-75c35bc-20250911
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/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +12 -14
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +12 -14
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +5 -5
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +1 -1
- package/plugins/autoRowSize/autoRowSize.js +6 -8
- package/plugins/autoRowSize/autoRowSize.mjs +6 -8
- package/styles/handsontable.css +8 -5
- package/styles/handsontable.min.css +3 -3
- package/styles/ht-theme-classic.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.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,12 +25,12 @@
|
|
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.1.0-next-
|
29
|
-
* Release date:
|
28
|
+
* Version: 16.1.0-next-75c35bc-20250911
|
29
|
+
* Release date: 15/09/2025 (built at 11/09/2025 08:34:03)
|
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={55:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=i(o(99771)),a=o(65820),l=o(91342),h=o(66649);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},329:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},367:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10582);t.OrderView=i.OrderView;var s=o(11963);t.SharedOrderView=s.SharedOrderView},495:(e,t,o)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,i.arrayEach)(e,e=>{e.walkDown(e=>{const o=e.data,{origColspan:i,columnIndex:r,headerLevel:a,crossHiddenColumns:l}=o,h=function(e,t){let o;Array.isArray(e[t])?o=e[t]:(o=[],e[t]=o);return o}(t,a);let c=!1;for(let e=r;e<r+i;e++){if(l.includes(e)||c)h.push((0,s.createPlaceholderHeaderSettings)(o));else{const e=n(o);e.isRoot=!0,h.push(e),c=!0}}})}),t},o(99356);var i=o(94576),s=o(14680);function n(e){const{crossHiddenColumns:t,...o}=(0,s.createDefaultHeaderSettings)(e);return o}},631:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300));t.BaseAction=class{constructor(e){(0,s.default)(this,"actionType",""),this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}},887:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(4138),r=o(94576),a=o(92641),l=o(61654),h=o(89211),c=o(88181),u=o(36780),d=i(o(59468)),g=o(7120);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){const t=this.constructor.DEFAULT_SETTINGS;if(void 0===e)return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),t):w(b,this);var o;if((Array.isArray(w(b,this))||(0,n.isObject)(w(b,this)))&&t[y]===e)return Array.isArray(w(b,this))?w(b,this):null!==(o=w(b,this)[e])&&void 0!==o?o:t[e];if(e.includes(".")){const o=(0,n.getProperty)(w(b,this),e),i=(0,n.getProperty)(t,e);return(0,n.isObject)(o)?(0,n.assignObjectDefaults)(o,i):void 0!==o?o:i}return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),t)[e]:t[e]}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}}},940:(e,t,o)=>{"use strict";o(60791)},1011:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var i=o(26808),s=o(78966),n=o(94576),r=o(58604),a=o(55656);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="manualRowResize",f=t.PLUGIN_PRIORITY=30,p="manualRowHeights";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,!1),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),"manualRowResizer"),(0,s.addClass)(u(_,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){this.enabled||(c(A,this,new a.PhysicalIndexToValueMap),u(A,this).addLocalHook("init",()=>d(P,this,F).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,u(A,this)),this.addHook("modifyRowHeight",(e,t)=>d(P,this,W).call(this,e,t)),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(N,this,u(A,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",p,u(A,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=this.hot.toPhysicalRow(e),i=Math.max(t,this.hot.stylesHandler.getDefaultRowHeight());return u(A,this).setValueAtIndex(o,i),i}getLastDesiredRowHeight(){return u(v,this)}setupHandlePosition(e){if(u(I,this)>1)return;c(m,this,e);const{view:t}=this.hot,{_wt:o}=t,i=o.wtTable.getCoords(u(m,this)),a=i.row;if(a<0)return;const l=(0,s.outerWidth)(u(m,this)),h=u(m,this).getBoundingClientRect(),d=a<o.getSetting("fixedRowsTop"),g=a>=t.countNotHiddenRowIndexes(0,1)-o.getSetting("fixedRowsBottom");let f;d?f=o.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),i.row,i.col):g&&(f=o.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),i.row,i.col)),f||(f=o.wtOverlays.inlineStartOverlay.getRelativeCellPosition(u(m,this),i.row,i.col)),c(w,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(a)),c(C,this,[]);const p=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&p){const e=this.hot.getSelectedRange();(0,n.arrayEach)(e,e=>{const t=e.getTopStartCorner().row,o=e.getBottomStartCorner().row;(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,f.top-6),c(E,this,parseInt(h.height,10)),u(b,this).style.top=`${u(R,this)+u(E,this)}px`,u(b,this).style[this.inlineDir]=`${f.start}px`,u(b,this).style.width=`${l}px`,this.hot.rootElement.appendChild(u(b,this))}refreshHandlePosition(){u(b,this).style.top=`${u(R,this)+u(v,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerWidth)(u(b,this)),10),t=parseInt(u(b,this).style[this.inlineDir],10)+e,o=this.hot.view.getTableWidth();(0,s.addClass)(u(b,this),"active"),(0,s.addClass)(u(_,this),"active"),u(_,this).style.top=u(b,this).style.top,u(_,this).style[this.inlineDir]=`${t}px`,u(_,this).style.width=o-e+"px",this.hot.rootElement.appendChild(u(_,this))}refreshGuidePosition(){u(_,this).style.top=u(b,this).style.top}hideHandleAndGuide(){(0,s.removeClass)(u(b,this),"active"),(0,s.removeClass)(u(_,this),"active")}checkIfRowHeader(e){const t=(0,s.closest)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:o,topInlineStartCornerOverlay:i,bottomInlineStartCornerOverlay:n}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.TBODY,i.clone.wtTable.TBODY,n.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&u(y,this)<t?t:u(y,this)}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{const i=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==i&&c(y,this,i),this.setManualSize(t,u(y,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),o&&e()};if(u(I,this)>=2){u(C,this).length>1?((0,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{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",e=>d(P,this,x).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>d(P,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousemove",e=>d(P,this,D).call(this,e)),this.eventManager.addEventListener(t,"mouseup",()=>d(P,this,L).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(P,this,V).call(this))}destroy(){super.destroy()}}function x(e){if(!(0,s.isDetached)(e.target)&&!0!==u(M,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(u(T,this)||this.setupHandlePosition(t))}}function k(e){(0,s.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(u(m,this)),this.setupGuidePosition(),c(T,this,!0),null===u(O,this)&&(c(O,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(u(O,this))),c(I,this,u(I,this)+1),c(S,this,e.pageY),c(y,this,u(E,this)))}function D(e){u(T,this)&&(c(v,this,u(E,this)+(e.pageY-u(S,this))),(0,n.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition())}function L(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),o&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};if(u(T,this)){if(this.hideHandleAndGuide(),c(T,this,!1),u(y,this)!==u(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 V(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(u(b,this)),this.hot.rootElement.removeChild(u(_,this)),c(T,this,!1),c(M,this,!0),this.hot._registerImmediate(()=>{c(M,this,!1)})}function W(e,t){let o=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),i=u(A,this).getValueAtIndex(e);this.hot.getSettings()[g]&&i&&(o=i)}return o}function F(){const e=this.hot.getSettings()[g],t=this.loadManualRowHeights();this.hot.batchExecution(()=>{void 0!==t?t.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)}):Array.isArray(e)?(e.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)}),c(N,this,e)):!0===e&&Array.isArray(u(N,this))&&u(N,this).forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0)}t.ManualRowResize=H},1471:(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(34478),o(940);var i=o(81761),s=o(94576)},1796:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(47271);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultiColumnSorting=i.MultiColumnSorting},1880:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,o,r,a,l,h)=>{const c=t.getSourceDataAtRow(r),u=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof c.ariaLabel?c.ariaLabel.call(e):c.ariaLabel,f="function"==typeof c.ariaChecked?c.ariaChecked.call(e):c.ariaChecked;if((0,s.empty)(o),(0,s.addClass)(u,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,i.isItemDisabled)(c,e)&&!(0,i.isItemSelectionDisabled)(c)&&!(0,i.isItemSeparator)(c);(0,s.setAttribute)(o,[...(0,i.isItemCheckable)(c)?[(0,n.A11Y_MENU_ITEM_CHECKBOX)(),(0,n.A11Y_LABEL)(g),(0,n.A11Y_CHECKED)(f)]:[(0,n.A11Y_MENU_ITEM)(),(0,n.A11Y_LABEL)(d)],...t?[(0,n.A11Y_TABINDEX)(-1)]:[],...(0,i.isItemDisabled)(c,e)?[(0,n.A11Y_DISABLED)()]:[],...(0,i.isItemSubMenu)(c)?[(0,n.A11Y_EXPANDED)(!1)]:[]])}o.className="",o.appendChild(u),(0,i.isItemSeparator)(c)?(0,s.addClass)(o,"htSeparator"):"function"==typeof c.renderer?((0,s.addClass)(o,"htCustomMenuRenderer"),o.appendChild(c.renderer(t,u,r,a,l,d))):(0,s.fastInnerHTML)(u,d),(0,i.isItemDisabled)(c,e)?(0,s.addClass)(o,"htDisabled"):(0,i.isItemSelectionDisabled)(c)?(0,s.addClass)(o,"htSelectionDisabled"):(0,i.isItemSubMenu)(c)&&(0,s.addClass)(o,"htSubmenu")}};var i=o(30386),s=o(78966),n=o(72609)},2373:(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(37994);t.AutocompleteCellType=i.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=i.CELL_TYPE;var s=o(9967);t.CheckboxCellType=s.CheckboxCellType,t.CHECKBOX_TYPE=s.CELL_TYPE;var n=o(26814);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var r=o(26539);t.DropdownCellType=r.DropdownCellType,t.DROPDOWN_TYPE=r.CELL_TYPE;var a=o(56479);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=o(25561);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var h=o(9807);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(78938);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(5997);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(24827);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(61654);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},2382:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2459:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(78966),n=i(o(75407)),r=o(65820),a=o(91342),l=o(66649);class h extends r.Overlay{constructor(e,t,o,i){super(e,t,l.CLONE_INLINE_START,o,i)}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,o=this.clone.wtTable.holder.parentNode,i=this.wtSettings.getSetting("preventOverflow");let n=0;this.trimmingContainer!==t||i&&"horizontal"===i?(n=this.getScrollPosition(),(0,s.resetCssTransform)(o)):(n=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(o,`${n}px`,"0px"));const r=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let o=!1;this.isRtl()&&(e=-e);const i=this.mainTableScrollableElement;if(i===t&&e!==t.scrollX){const i=t.scrollX;t.scrollTo(e,(0,s.getWindowScrollTop)(t)),o=i!==t.scrollX}else if(e!==i.scrollLeft){const t=i.scrollLeft;i.scrollLeft=e,o=t!==i.scrollLeft}return o}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("defaultColumnWidth");let i=e,s=0;for(;i<t;)s+=this.wot.wtTable.getColumnWidth(i)||o,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,n=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"vertical"===r){let i=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(i-=(0,s.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollHeight),n.height=`${i}px`}else n.height="";this.clone.wtTable.holder.style.height=n.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);n.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:o}=this,i=o.getSetting("rowHeaders"),n=o.getSetting("fixedColumnsStart"),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===n&&i.length>0&&!(0,s.hasClass)(r.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&r.offsetWidth!==r.clientWidth&&(h=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,s.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,s.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){o=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);o>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(o=0)}return o}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,o=this.wot.wtTable.holder.parentNode,i=t.getSetting("rowHeaders"),n=t.getSetting("fixedColumnsStart"),r=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");r?(0,s.removeClass)(o,"emptyRows"):(0,s.addClass)(o,"emptyRows");let l=!1;if(!a)if(n&&!i.length)(0,s.addClass)(o,"innerBorderLeft innerBorderInlineStart");else if(!n&&i.length){const t=(0,s.hasClass)(o,"innerBorderInlineStart");e?((0,s.addClass)(o,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,s.removeClass)(o,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=h},2470:(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(44481)),s=o(3720)},2744:(e,t,o)=>{"use strict";var i=o(73805);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(99356);var s=i(o(65166)),n=o(7886);function r(e,t){return s.default.sanitize(e,t)}},2754:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));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}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},2847:(e,t,o)=>{"use strict";var i=o(94266),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}},2907:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(94576),n=i(o(3458));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(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;t.default=class{constructor(e){var t,o,i;r(this,h,new Map),r(this,c,new Map),r(this,u,null),o=this,i=e,(t=u).set(l(t,o),i)}getRoots(){return Array.from(a(h,this).values())}getRootByColumn(e){let t;return a(c,this).has(e)&&(t=a(h,this).get(a(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const i=t-a(c,this).get(t);let s,n=0;return o.walkDown(o=>{const{data:{origColspan:r,headerLevel:a}}=o;if(e===a){if(i>=n&&i<=n+r-1)return s=o,s.data.isRoot=t===s.data.columnIndex,!1;n+=r}}),s}rebuildTreeIndex(){let e=0;a(c,this).clear(),(0,s.arrayEach)(a(h,this),t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)a(c,this).set(t,e);e+=o})}buildTree(){this.clear();const e=a(u,this).getColumnsCount();let t=0;for(;t<e;){const e=a(u,this).getHeaderSettings(0,t),o=new n.default;a(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=a(u,this).getHeadersSettings(o,t,i);o+=1,(0,s.arrayEach)(r,i=>{const s={...i,headerLevel:o-1,columnIndex:t};let r;1===o?(e.data=s,r=e):(r=new n.default(s),e.addChild(r)),o<a(u,this).getLayersCount()&&this.buildLeaves(r,t,o,i.origColspan),t+=i.origColspan})}clear(){a(h,this).clear(),a(c,this).clear()}}},2979:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(78966),s=o(4138),n=o(26911);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},3161:(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}},3176:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedActive();if(t){const o=e.mergedCellsCollection.get(t[0],t[1]);if(o.row===t[0]&&o.col===t[1]&&o.row+o.rowspan-1===t[2]&&o.col+o.colspan-1===t[3])return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeActive();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:o,to:i}=t;e.toggleMerge(t),this.selectCell(o.row,o.col,i.row,i.col,!1)},disabled(){const e=this.getSelectedActive();if(!e)return!0;return n.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var 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(44481)),n=i(o(60860))},3196:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(56259);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},3417:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return function(t,n){const r=parseFloat(t),a=parseFloat(n),{sortEmptyCells:l}=o;if(r===a||isNaN(r)&&isNaN(a))return s.DO_NOT_SWAP;if(l){if((0,i.isEmpty)(t))return"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND;if((0,i.isEmpty)(n))return"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND}return isNaN(r)?s.FIRST_AFTER_SECOND:isNaN(a)?s.FIRST_BEFORE_SECOND:r<a?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:r>a?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var i=o(7886),s=o(70705);t.COLUMN_DATA_TYPE="numeric"},3458:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.depthFirstPreOrder=r;var s=i(o(24300));o(52490),o(99356);const n=t.TRAVERSAL_DF_PRE="DF-pre-order";function r(e,t){let o=e.call(t,this);for(let i=0;i<this.childs.length;i++){if(!1===o)return!1;o=r.call(this.childs[i],e,t)}return o}const a=t.TRAVERSAL_DF_POST="DF-post-order";const l=t.TRAVERSAL_BF="BF";const h=l,c=new Map([[n,r],[a,function e(t,o){for(let i=0;i<this.childs.length;i++){if(!1===e.call(this.childs[i],t,o))return!1}return t.call(o,this)}],[l,function(e,t){const o=[this];!function i(){if(0===o.length)return;const s=o.shift();o.push(...s.childs),!1!==e.call(t,s)&&i()}()}]]);class u{constructor(e){(0,s.default)(this,"data",{}),(0,s.default)(this,"parent",null),(0,s.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=i=>{!1!==e.call(t,i)&&null!==i.parent&&o(i.parent)};o(this)}}t.default=u},3518:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("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}})},3631:(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(78966)},3639:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(78966),r=o(81761),a=i(o(64034)),l=i(o(2754)),h=o(97095),c=i(o(33183)),u=i(o(30041)),d=o(99700),g=o(72609);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}}},3715:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(12793);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`}}},3720:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){let o=!1;return(0,n.arrayEach)(e.getSelectedRange(),s=>{s.forAll((s,n)=>{if(s<0||n<0)return;const r=e.getCellMeta(s,n).borders;if(r){if(!t)return o=!0,!1;if(!(0,i.hasOwnProperty)(r[t],"hide")||!1===r[t].hide)return o=!0,!1}})}),o},t.createDefaultCustomBorder=a,t.createDefaultHtBorder=h,t.createEmptyBorders=function(e,t){return{id:r(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=r,t.createSingleEmptyBorder=l,t.denormalizeBorder=function(e){(0,s.isDefined)(e.start)&&(e.left=e.start);(0,s.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,i.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,i.hasOwnProperty)(t,"top")&&(0,s.isDefined)(t.top)&&(t.top?((0,i.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,i.hasOwnProperty)(t,"bottom")&&(0,s.isDefined)(t.bottom)&&(t.bottom?((0,i.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,i.hasOwnProperty)(t,"start")&&(0,s.isDefined)(t.start)&&(t.start?((0,i.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,i.hasOwnProperty)(t,"end")&&(0,s.isDefined)(t.end)&&(t.end?((0,i.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some(e=>(0,s.isDefined)(e.left)||(0,s.isDefined)(e.right))},t.hasStartEndTypeOptions=function(e){return e.some(e=>(0,s.isDefined)(e.start)||(0,s.isDefined)(e.end))},t.markSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.normalizeBorder=function(e){var t,o;((0,s.isDefined)(e.start)||(0,s.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,s.isDefined)(e.end)||(0,s.isDefined)(e.right))&&(e.end=null!==(o=e.end)&&void 0!==o?o:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},o(34478),o(81056);var i=o(4138),s=o(7886),n=o(94576);function r(e,t){return`border_row${e}col${t}`}function a(){return{width:1,color:"#000"}}function l(){return{hide:!0}}function h(){return{width:1,color:"#000",cornerVisible:!1}}const c=new Map([["left","start"],["right","end"]])},3771:(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(7886),s=o(70705);t.COLUMN_DATA_TYPE="default"},3797:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(26808),s=o(13421);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},3993:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);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},4138:(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(52490),o(99356),o(58584),o(34478),o(31143);var i=o(94576);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)}},4462:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(96127).clear;i({global:!0,bind:!0,enumerable:!0,forced:s.clearImmediate!==n},{clearImmediate:n})},4655:(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(44481)),s=o(23895);const n=t.CONDITION_NAME="lte";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_OR_EQUAL,inputsCount:1,showOperators:!0})},5008:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}}},5085:(e,t,o)=>{"use strict";o.r(t)},5247:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(48969);t.RENDERER_TYPE=i.RENDERER_TYPE,t.passwordRenderer=i.passwordRenderer},5300:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(82328),o(34478),o(29810),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(30738),l=o(7120),h=o(58604),c=o(78966),u=o(38830),d=o(58226),g=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(44481)),f=o(47845),p=o(19209),m=o(9609),w=o(65835),C=i(o(34645)),v=i(o(32120)),y=i(o(73734)),S=o(56013),E=o(68970),R=o(65865),b=o(55656);function _(e,t,o){T(e,t),t.set(e,o)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t,o){return e.set(O(e,t),o),o}function I(e,t){return e.get(O(e,t))}function O(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const A=t.PLUGIN_KEY="filters",N=t.PLUGIN_PRIORITY=250,P=A;var H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends n.BasePlugin{static get PLUGIN_KEY(){return A}static get PLUGIN_PRIORITY(){return N}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,o,i;super(e),t=this,T(o=this,i=D),i.add(o),(0,s.default)(this,"dropdownMenuPlugin",null),(0,s.default)(this,"conditionCollection",null),(0,s.default)(this,"conditionUpdateObserver",null),(0,s.default)(this,"components",new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]])),(0,s.default)(this,"filtersRowsMap",null),_(this,H,void 0),_(this,x,new WeakSet),_(this,k,[]),this.hot.addHook("afterGetColHeader",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return O(D,t,G).call(t,...o)})}isEnabled(){return!!this.hot.getSettings()[A]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new b.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,o=t&&t.uiContainer||this.hot.rootPortalElement,i=e=>(e.addLocalHook("accept",()=>O(D,this,Y).call(this,"accept")),e.addLocalHook("cancel",()=>O(D,this,Y).call(this,"cancel")),e.addLocalHook("change",t=>O(D,this,j).call(this,e,t)),e),s=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_CONDITION)}:`,n=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_VALUE)}:`;if(!this.components.get("filter_by_condition")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition",name:s,addSeparator:!1,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition",i(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new p.OperatorsComponent(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition2",i(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",i(new m.ValueComponent(this.hot,{id:"filter_by_value",name:n}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",i(new w.ActionBarComponent(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new C.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new y.default(this.hot,this.conditionCollection,e=>this.getDataMapAtColumn(e)),this.conditionUpdateObserver.addLocalHook("update",e=>O(D,this,$).call(this,e))),this.components.forEach(e=>e.show()),this.addHook("afterDropdownMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return O(D,e,U).call(e,...o)}),this.addHook("beforeDropdownMenuShow",()=>O(D,this,B).call(this)),this.addHook("afterDropdownMenuShow",()=>O(D,this,W).call(this)),this.addHook("afterDropdownMenuHide",()=>O(D,this,F).call(this)),this.addHook("afterChange",e=>O(D,this,V).call(this,e)),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!I(H,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=I(H,this).getMenu(),t=e.getNavigator(),o=I(H,this).getLastMenuPage();e.focus(),o>0?t.setCurrentPage(o):t.toFirstItem()}},...Array.from(this.components).map(e=>{let[,t]=e;return t.getElements()}).flat()];M(H,this,(0,E.createMenuFocusController)(this.dropdownMenuPlugin.menu,e));const t=e=>{I(H,this).listen(),e.preventDefault(),(0,u.isKey)(e.keyCode,"TAB")&&(e.shiftKey?I(H,this).toPreviousItem():I(H,this).toNextItem())};this.components.get("filter_by_value").addLocalHook("listTabKeydown",t),this.components.get("filter_by_condition").addLocalHook("selectTabKeydown",t)}this.registerShortcuts(),super.enablePlugin()}disablePlugin(){var e;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((e,t)=>{e.destroy(),this.components.set(t,null)}),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Alt","A"]],stopPropagation:!0,callback:()=>{const e=this.hot.getSelected();this.clearConditions(),this.filter(),e&&this.hot.selectCells(e)},group:P})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(P)}addCondition(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R.OPERATION_AND;const s=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(s,{command:{key:t},args:o},i)}removeConditions(e){const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}clearConditions(e){if(void 0===e)this.conditionCollection.clean();else{const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}importConditions(e){this.conditionCollection.importAllConditions(e)}exportConditions(){return this.conditionCollection.exportAllConditions()}filter(){const{navigableHeaders:e}=this.hot.getSettings(),t=this._createDataFilter(),o=!this.conditionCollection.isEmpty();let i=[];const s=this.exportConditions(),n=this.hot.runHooks("beforeFilter",s,I(k,this));if(!1!==n&&o){const o=[];this.hot.batchExecution(()=>{this.filtersRowsMap.clear(),i=(0,r.arrayMap)(t.filter(),e=>e.meta.visualRow);const e=(0,S.createArrayAssertion)(i);(0,h.rangeEach)(this.hot.countSourceRows()-1,t=>{e(t)||o.push(t)}),(0,r.arrayEach)(o,e=>{this.filtersRowsMap.setValueAtIndex(e,!0)})},!0),e||i.length||this.hot.deselectCell(),M(k,this,this.exportConditions())}else!1===n||o?this.importConditions(I(k,this)):(M(k,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeActive().highlight.col),!1!==n&&(this.hot.runHooks("afterFilter",s),this.hot.view.adjustElementsSize(),this.hot.render())}getSelectedColumn(){var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}getDataMapAtColumn(e){const t=this.hot.toVisualColumn(e),o=[];return(0,r.arrayEach)(this.hot.getSourceDataAtCol(t),(e,i)=>{var s;const{row:n,col:r,visualCol:a,visualRow:l,type:h,instance:c,dateFormat:u,locale:d}=this.hot.getCellMeta(i,t),g=null!==(s=this.hot.getDataAtCell(this.hot.toVisualRow(i),t))&&void 0!==s?s:e;o.push({meta:{row:n,col:r,visualCol:a,visualRow:l,type:h,instance:c,dateFormat:u,locale:d},value:(0,S.toEmptyString)(g)})}),o}updateValueComponentCondition(e){const t=this.hot.getDataAtCol(e),o=(0,S.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,o)}restoreComponents(e){var t;const o=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach(e=>{e.isHidden()||e.restoreState(o)}),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,o,i){let s=e;return s===R.OPERATION_OR&&t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE&&i.command.key!==R.CONDITION_NONE?s=R.OPERATION_OR_THEN_VARIABLE:i.command.key!==R.CONDITION_NONE&&(t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE||(s=R.OPERATION_AND)),s}setListeningDropdownMenu(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}updateDependentComponentsVisibility(){const e=this.components.get("filter_by_condition"),{command:t}=e.getState(),o=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...o):this.hideComponents(...o)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new v.default(e,e=>this.getDataMapAtColumn(e))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(0,r.arrayEach)(i,o=>{(0,r.arrayEach)(t.menuItems,(t,i)=>{t.key===o.getMenuItemDescriptor().key&&e.push(i)})}),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,o=t.getPlugin("hiddenRows");for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];const r=this.getIndexesOfComponents(...s);e?o.showRows(r):o.hideRows(r),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!0,...t)}destroy(){this.enabled&&(this.components.forEach((e,t)=>{null!==e&&(e.destroy(),this.components.set(t,null))}),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),super.destroy()}}function V(e){e&&(0,r.arrayEach)(e,e=>{const[,t]=e,o=this.hot.propToCol(t);this.conditionCollection.hasConditions(o)&&this.updateValueComponentCondition(o)})}function W(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function F(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function B(){const e=this.dropdownMenuPlugin.menu;I(x,this).has(e)||I(H,this).setMenu(e),I(x,this).add(e)}function U(e){e.items.push({name:d.SEPARATOR}),this.components.forEach(t=>{e.items.push(t.getMenuItemDescriptor())})}function Y(e){var t;if("accept"===e){const e=this.getSelectedColumn();var o;if(null===e)return void(null===(o=this.dropdownMenuPlugin)||void 0===o||o.close());const{physicalIndex:t}=e,i=this.components.get("filter_by_condition").getState(),s=this.components.get("filter_by_condition2").getState(),n=this.components.get("filter_by_value").getState(),r=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),i,s,n);this.conditionUpdateObserver.groupChanges();let a=this.conditionCollection.getColumnStackPosition(t);-1===a&&(a=void 0),this.conditionCollection.removeConditions(t),i.command.key!==R.CONDITION_NONE&&(this.conditionCollection.addCondition(t,i,r,a),s.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,s,r,a)),n.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,n,r,a),this.conditionUpdateObserver.flush(),this.components.forEach(e=>e.saveState(t)),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function j(e,t){const o=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==f.ConditionComponent||t.inputsCount||this.setListeningDropdownMenu(),o.updateMenuDimensions()}function z(){this.setListeningDropdownMenu()}function G(e,t,o){const i=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(i)&&o===this.hot.view.getColumnHeadersCount()-1?(0,c.addClass)(t,"htFiltersActive"):(0,c.removeClass)(t,"htFiltersActive")}function $(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:o,column:i},conditionArgsChange:s}=e;Array.isArray(s)&&M(k,this,I(k,this).map(e=>(e.column===i&&o.length>0&&e.conditions.forEach(e=>{"by_value"===e.name&&(e.args=[[...s]])}),e)));const n=o.filter(e=>e.name===R.CONDITION_BY_VALUE),r=o.filter(e=>e.name!==R.CONDITION_BY_VALUE);if(n.length>=2||r.length>=3)(0,l.warn)(a.toSingleLine`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
|
32
32
|
The overall amount of conditions exceed the capability of the dropdown menu.\x20
|
33
|
-
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},5448:(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()}}}},5665:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(52490),o(34478),o(81056);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(44481)),s=o(13280);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)},5676:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var i=o(58604);const s=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,i.isNumeric)(e))}n.VALIDATOR_TYPE=s},5705:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},5714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(91376));t.DataMap=s.default;var n=i(o(81053));t.MetaManager=n.default;var r=i(o(86491));t.metaSchemaFactory=r.default;var a=o(56782);t.replaceData=a.replaceData;var l=o(9383);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(5919);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},5869:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(18514),r=o(22746);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}}},5879:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(78790);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},5895:(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(44481)),s=o(23895),n=o(8562);const r=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},5908:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var i=o(40492);const s=t.VALIDATOR_TYPE="dropdown";function n(e,t){i.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=s},5919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var s=i(o(24300));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(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 a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,a,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:i,onChange:s}=e,n="string"==typeof i,l=n?i:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),n&&this.installPropWatcher(i,h,s)):o&&(this.installPropWatcher(t,h,r(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const n=!i.usageTracker.has(e);i.usageTracker.add(e),o.call(i,e,s,n),this[t]=s},enumerable:!0,configurable:!0})}}},5994:(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(83914),s=o(94576),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(44481));const r=t.KEY="make_read_only"},5997:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15686);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},6098:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631),r=o(83914),a=o(94576);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},6239:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},6310:(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(44481)),s=o(7886),n=o(23895);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})},6711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(13743);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},6745:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(4138),n=i(o(18805));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)},6941:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.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(38491),s=o(70787),n=o(7255),r=o(5008),a=o(23552),l=o(8517),h=o(36416),c=o(11453);const u=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command]},6942:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return i.valueGetter.call(this,e)};var i=o(20737)},7120:(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(7886)},7255:(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,w.command,C.command]};var i=o(22823),s=o(31235),n=o(80393),r=o(93112),a=o(99710),l=o(329),h=o(28730),c=o(44806),u=o(37547),d=o(30390),g=o(56020),f=o(33999),p=o(68294),m=o(31743),w=o(30498),C=o(46802)},7569:(e,t,o)=>{"use strict";var i=o(73805);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(13743),n=i(o(6711))},7743:(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"},7857:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);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},7869:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53341);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ExportFile=i.ExportFile},7886:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.1.0-next-1494b74-20250909";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)("11/09/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.getMostBottomEndPosition=function(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)},t.getMostTopStartPosition=function(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;0===s&&(s=t.getVisualFromRenderableIndex(s));0===n&&(n=o.getVisualFromRenderableIndex(n));if(null===s||null===n)return null;return e._createCellCoords(s,n)},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(30738);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`
|
33
|
+
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},5448:(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()}}}},5665:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(52490),o(34478),o(81056);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(44481)),s=o(13280);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)},5676:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var i=o(58604);const s=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,i.isNumeric)(e))}n.VALIDATOR_TYPE=s},5705:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},5714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(91376));t.DataMap=s.default;var n=i(o(81053));t.MetaManager=n.default;var r=i(o(86491));t.metaSchemaFactory=r.default;var a=o(56782);t.replaceData=a.replaceData;var l=o(9383);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(5919);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},5869:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(18514),r=o(22746);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}}},5879:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(78790);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},5895:(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(44481)),s=o(23895),n=o(8562);const r=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},5908:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var i=o(40492);const s=t.VALIDATOR_TYPE="dropdown";function n(e,t){i.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=s},5919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var s=i(o(24300));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(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 a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,a,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:i,onChange:s}=e,n="string"==typeof i,l=n?i:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),n&&this.installPropWatcher(i,h,s)):o&&(this.installPropWatcher(t,h,r(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const n=!i.usageTracker.has(e);i.usageTracker.add(e),o.call(i,e,s,n),this[t]=s},enumerable:!0,configurable:!0})}}},5994:(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(83914),s=o(94576),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(44481));const r=t.KEY="make_read_only"},5997:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15686);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},6098:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631),r=o(83914),a=o(94576);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},6239:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},6310:(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(44481)),s=o(7886),n=o(23895);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})},6711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(13743);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},6745:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(4138),n=i(o(18805));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)},6941:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.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(38491),s=o(70787),n=o(7255),r=o(5008),a=o(23552),l=o(8517),h=o(36416),c=o(11453);const u=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command]},6942:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return i.valueGetter.call(this,e)};var i=o(20737)},7120:(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(7886)},7255:(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,w.command,C.command]};var i=o(22823),s=o(31235),n=o(80393),r=o(93112),a=o(99710),l=o(329),h=o(28730),c=o(44806),u=o(37547),d=o(30390),g=o(56020),f=o(33999),p=o(68294),m=o(31743),w=o(30498),C=o(46802)},7569:(e,t,o)=>{"use strict";var i=o(73805);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(13743),n=i(o(6711))},7743:(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"},7857:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);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},7869:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53341);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ExportFile=i.ExportFile},7886:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.1.0-next-75c35bc-20250911";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)("15/09/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.getMostBottomEndPosition=function(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)},t.getMostTopStartPosition=function(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;0===s&&(s=t.getVisualFromRenderableIndex(s));0===n&&(n=o.getVisualFromRenderableIndex(n));if(null===s||null===n)return null;return e._createCellCoords(s,n)},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(30738);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`
|
34
34
|
The license key for Handsontable is invalid.\x20
|
35
35
|
If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return n.toSingleLine`
|
36
36
|
The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
|
@@ -63,8 +63,8 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
|
|
63
63
|
Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
|
64
64
|
use it consequently for a particular column).`)}else if((0,u.isUndefined)(c.operations[o]))throw new Error(r.toSingleLine`Unexpected operation named \`${o}\`. Possible ones are\x20
|
65
65
|
\`disjunction\` and \`conjunction\`.`);const g=this.getConditions(e);0===g.length?this.filteringStates.setValueAtIndex(e,{operation:o,conditions:[{name:a,args:n,func:(0,l.getCondition)(a,n)}]},i):g.push({name:a,args:n,func:(0,l.getCondition)(a,n)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,o;return null!==(t=null===(o=this.filteringStates.getValueAtIndex(e))||void 0===o?void 0:o.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[t]=e;return t})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce((e,t)=>{let[o,{operation:i,conditions:s}]=t;return e.push({column:o,operation:i,conditions:s.map(e=>{let{name:t,args:o}=e;return{name:t,args:[...o]}})}),e},[])}importAllConditions(e){this.clean(),e.forEach(e=>{e.conditions.forEach(t=>this.addCondition(e.column,t))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const o=this.getConditions(e);return t?o.some(e=>e.name===t):o.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(g),this.filteringStates=null,this.clearLocalHooks()}}(0,n.mixin)(f,a.default);t.default=f},34650:(e,t,o)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const o=[];let i=0,s=0;for(;i<e.length&&s<t.length;i++,s++)e[i]!==t[s]&&o.push({op:"replace",index:s,oldValue:e[i],newValue:t[s]});for(;i<t.length;i++)o.push({op:"insert",index:i,oldValue:void 0,newValue:t[i]});for(;s<e.length;s++)o.push({op:"remove",index:s,oldValue:e[s],newValue:void 0});return o},o(99356)},34651:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(26808),s=o(51798),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(44481));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="loading",u=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${c}`;var g=new WeakMap,f=new WeakSet;class p extends i.BasePlugin{constructor(){var e,t;super(...arguments),r(e=this,t=f),t.add(e),function(e,t,o){r(e,t),t.set(e,o)}(this,g,null)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get DEFAULT_SETTINGS(){return{icon:`<svg class="${d}__icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-width="2" d="M15 8a7 7 0 1 1-3.5-6.062"></path></svg>`,title:void 0,description:""}}static get SETTINGS_VALIDATORS(){return{icon:e=>"string"==typeof e,title:e=>"string"==typeof e,description:e=>"string"==typeof e}}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){if(!this.enabled){var e;if(null===l(g,this))a(g,this,this.hot.getPlugin("dialog")),null!==(e=l(g,this))&&void 0!==e&&e.isEnabled()||(this.hot.getSettings().dialog=!0),this.hot.addHook("afterDialogFocus",()=>h(f,this,m).call(this));super.enablePlugin()}}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),super.disablePlugin()}isVisible(){var e,t;return null!==(e=null===(t=l(g,this))||void 0===t?void 0:t.isVisible())&&void 0!==e&&e}show(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isEnabled()||!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled())return;if(this.isVisible())return void this.update(t);!1!==this.hot.runHooks("beforeLoadingShow")&&(this.update(t),l(g,this).show(),this.hot.runHooks("afterLoadingShow"))}hide(){var e;if(!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled()||!this.isVisible())return;!1!==this.hot.runHooks("beforeLoadingHide")&&(l(g,this).hide(),this.hot.runHooks("afterLoadingHide"))}update(e){var t,o;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const i=this.hot.guid,r=this.getSetting("icon"),a=null!==(o=this.getSetting("title"))&&void 0!==o?o:this.hot.getTranslatedPhrase(n.LOADING_TITLE),h=this.getSetting("description"),u=(0,s.loadingContent)({id:i,icon:r,title:a,description:h});l(g,this).update({content:u,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${i}-${c}-title`,ariaDescribedby:h?`${i}-${c}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=p},34679:e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?o:t)(i)}},34695:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=n;var i=o(54657);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},34701: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}}},34738:(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(52490),o(34478),o(940);var i=o(58604),s=o(81761);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.`},34758:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34695);t.RENDERER_TYPE=i.RENDERER_TYPE,t.selectRenderer=i.selectRenderer},34822:(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(83166),s=o(30386)},34832:(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(44481)),s=o(23895);const n=t.CONDITION_NAME="gte";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_OR_EQUAL,inputsCount:1,showOperators:!0})},35234:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10721);t.EDITOR_TYPE=i.EDITOR_TYPE,t.SelectEditor=i.SelectEditor},35315:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[i.CellAlignmentAction,s.ColumnMoveAction,n.ColumnSortAction,r.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,c.MergeCellsAction,u.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,f.UnmergeCellsAction].forEach(o=>o.startRegisteringEvents(e,t))};var i=o(6098),s=o(3196),n=o(43605),r=o(81921),a=o(25727),l=o(95367),h=o(11808),c=o(99962),u=o(21077),d=o(75299),g=o(89426),f=o(7857)},35394:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(940);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()}},35450:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(4138),s=o(26911);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;class u extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,i.extend)(u.DEFAULTS,t)),n(this,h,void 0),n(this,c,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),a(c,this,e),a(h,this,this._element.firstChild),r(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(r(c,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&r(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(r(h,this).checked=e)}focus(){this.isBuilt()&&r(h,this).focus()}}t.RadioInputUI=u},35701:(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
|
66
|
-
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(7886),s=o(4138),n=o(7120),r=o(30738)},35734:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(940);var s=i(o(24300)),n=o(30286),r=o(1471),a=o(69425),l=o(25884),h=o(81761);class c extends n.IndexMap{constructor(){super(...arguments),(0,s.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map(e=>this.indexedValues[e])}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(o,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,r.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,r.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},35738:(e,t,o)=>{"use strict";var i=o(94266);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},35775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));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(){}}},36062:(e,t)=>{"use strict";function o(e,t,o){e.addEventListener(t,o,!1)}function i(e,t,o){e.removeEventListener(t,o,!1)}function s(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,r=e.createTextNode(""),a=e.createElement("span");let l;function h(){var e,o;r.textContent=t.textContent(l),a.style.position="absolute",a.style.fontSize=s(l).fontSize,a.style.fontFamily=s(l).fontFamily,a.style.whiteSpace="pre",n.appendChild(a);const i=parseInt((null===(e=s(l))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(o=s(l))||void 0===o?void 0:o.paddingInlineEnd)||0,10),c=a.clientWidth+i+h+1;n.removeChild(a);const u=l.style;u.height=`${t.minHeight}px`,t.minWidth>c?u.width=`${t.minWidth}px`:c>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${c}px`;const d=l.scrollHeight?l.scrollHeight-1:0;t.minHeight>d?u.height=`${t.minHeight}px`:t.maxHeight<d?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function c(){e.defaultView.setTimeout(h,0)}return{init:function(e,i){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=l.clientHeight;else{const o=parseInt(e.minHeight,10);isNaN(o)||(t.minHeight=o)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=l.clientHeight;else{const o=parseInt(e.maxHeight,10);isNaN(o)||(t.maxHeight=o)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=l.clientWidth;else{const o=parseInt(e.minWidth,10);isNaN(o)||(t.minWidth=o)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=l.clientWidth;else{const o=parseInt(e.maxWidth,10);isNaN(o)||(t.maxWidth=o)}a.firstChild||(a.className="autoResize",a.style.display="inline-block",a.appendChild(r))}(i),"TEXTAREA"===l.nodeName&&(l.style.resize="none",l.style.height=`${t.minHeight}px`,l.style.minWidth=`${t.minWidth}px`,l.style.maxWidth=`${t.maxWidth}px`,l.style.overflowY="hidden"),s&&(o(l,"input",h),o(l,"keydown",c)),h()},resize:h,unObserve(){i(l,"input",h),i(l,"keydown",c)}}}},36117:(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(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(81761);const s=e=>`'${e}' value is already declared in a unique set.`},36416:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}}},36547:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));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}}}},36714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=i(o(8323)),r=i(o(24699));class a extends r.default{constructor(e,t,o){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const i=this.wtSettings.getSetting("facade",this);this.cloneSource=o.source,this.cloneOverlay=o.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),i,this.domBindings,this.wtSettings),this.wtViewport=o.viewport,this.selectionManager=o.selectionManager,this.wtEvent=new n.default(i,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,o.event),this.findOriginalHeaders()}}t.default=a},36780:(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(52490);var i=o(25854);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=r},37069:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(17725);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},37334:(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(31970)},37359:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67347),s=o(78966);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},37368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(11847);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnMove=i.ManualColumnMove},37547:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,o.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},37961:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:r}=t,a=new Map;return{before:function(){},after:function(l,h,c){const u=e.mergedCellsCollection.get(h,c);if(!(0,i.isObject)(u))return l.removeAttribute("rowspan"),l.removeAttribute("colspan"),a.has(h)&&!t.getSettings().rowHeaders&&(l.style.height=`${a.get(h)}px`,a.delete(h)),void(l.style.display="");const{row:d,col:g,colspan:f,rowspan:p}=u,[m,w]=e.translateMergedCellToRenderable(d,p,g,f),C=e.getSetting("virtualized");if(0===g&&!t.getSettings().rowHeaders){const e=t._getRowHeightFromSettings(h);if(void 0!==e){const o=t.stylesHandler.areCellsBorderBox()?0:1;a.set(h,e-o)}else if((0,s.isSafari)()){const e=(0,n.sumCellsHeights)(t,d,p);a.set(h,e/p)}}const v=m-o.getRenderableFromVisualIndex(h)+1,y=w-r.getRenderableFromVisualIndex(c)+1;let S=o.getNearestNotHiddenIndex(d,1),E=r.getNearestNotHiddenIndex(g,1);if(C){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(E=Math.max(E,t.getFirstRenderedVisibleColumn()))}const R=Math.min(p,v),b=Math.min(f,y);S===h&&E===c?(l.setAttribute("rowspan",R),l.setAttribute("colspan",b)):(l.removeAttribute("rowspan"),l.removeAttribute("colspan"),l.style.display="none")}}};var i=o(4138),s=o(40929),n=o(56097)},37994:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(98532);t.AutocompleteCellType=i.AutocompleteCellType,t.CELL_TYPE=i.CELL_TYPE},38221:(e,t,o)=>{"use strict";var i=o(72820),s=o(87913);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},38465:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(93868),r=o(79420),a=o(62678),l=o(7569),h=o(71883),c=o(38784),u=o(48622),d=o(26826),g=o(76623),f=o(13743);t.ACTIVE_HEADER_TYPE=f.HIGHLIGHT_ACTIVE_HEADER_TYPE,t.AREA_TYPE=f.HIGHLIGHT_AREA_TYPE,t.FOCUS_TYPE=f.HIGHLIGHT_FOCUS_TYPE,t.CUSTOM_SELECTION_TYPE=f.HIGHLIGHT_CUSTOM_SELECTION_TYPE,t.FILL_TYPE=f.HIGHLIGHT_FILL_TYPE,t.HEADER_TYPE=f.HIGHLIGHT_HEADER_TYPE,t.ROW_TYPE=f.HIGHLIGHT_ROW_TYPE,t.COLUMN_TYPE=f.HIGHLIGHT_COLUMN_TYPE;var p=o(94576);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{constructor(e){m(this,C),(0,s.default)(this,"options",void 0),(0,s.default)(this,"layerLevel",0),(0,s.default)(this,"focus",void 0),(0,s.default)(this,"fill",void 0),(0,s.default)(this,"layeredAreas",new Map),(0,s.default)(this,"areas",new Map),(0,s.default)(this,"rowHeaders",new Map),(0,s.default)(this,"columnHeaders",new Map),(0,s.default)(this,"activeRowHeaders",new Map),(0,s.default)(this,"activeColumnHeaders",new Map),(0,s.default)(this,"activeCornerHeaders",new Map),(0,s.default)(this,"rowHighlights",new Map),(0,s.default)(this,"columnHighlights",new Map),(0,s.default)(this,"customSelections",[]),this.options=e,this.focus=(0,h.createHighlight)(e),this.fill=(0,u.createHighlight)(e)}isEnabledFor(e,t){let o=e;e===f.HIGHLIGHT_FOCUS_TYPE&&(o="current");let i=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof i&&(i=[i]),!1===i||Array.isArray(i)&&!i.includes(o)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return w(C,this,y).call(this,this.layeredAreas,r.createHighlight)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return w(C,this,y).call(this,this.areas,a.createHighlight)}getAreas(){return[...this.areas.values()]}createRowHeader(){return w(C,this,y).call(this,this.rowHeaders,d.createHighlight)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return w(C,this,y).call(this,this.columnHeaders,d.createHighlight)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return w(C,this,y).call(this,this.activeRowHeaders,n.createHighlight)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return w(C,this,y).call(this,this.activeColumnHeaders,n.createHighlight)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return w(C,this,y).call(this,this.activeCornerHeaders,n.createHighlight)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return w(C,this,y).call(this,this.rowHighlights,g.createHighlight)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return w(C,this,y).call(this,this.columnHighlights,l.createHighlight)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push((0,c.createHighlight)({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),(0,p.arrayEach)(this.areas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.layeredAreas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeRowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeColumnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeCornerHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHighlights.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHighlights.values(),e=>{e.clear()})}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function y(e,t){const o=this.layerLevel;if(e.has(o))return e.get(o);const i=t({layerLevel:o,...this.options});return e.set(o,i),i}t.default=v},38491:(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(99063),s=o(60541),n=o(67606),r=o(64369),a=o(46553),l=o(88855)},38775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=o(79035),a=i(o(30164)),l=o(4138),h=o(58604),c=i(o(65165)),u=o(2744),d=o(55656),g=o(78966);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";var E=new WeakMap,R=new WeakMap,b=new WeakSet;class _ 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=b),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,E,[]),f(this,R,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).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(b,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 C(b,e,P).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(b,e,x).call(e,...o)}),this.addHook("beforeViewRender",()=>C(b,this,I).call(this)),this.addHook("beforeRender",()=>C(b,this,O).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>C(b,this,H).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),C(b,this,M).call(this,!1),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).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+_.CALCULATION_STEP,i)},e,t),o=o+_.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=_.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();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),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 T(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 M(e){if(this.hot.stylesHandler.isClassicTheme()){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 I(){C(b,this,M).call(this)}function O(){this.calculateVisibleRowsHeight(),this.inProgress||(C(b,this,T).call(this,w(E,this)),m(E,this,[]))}function A(e,t,o){let i=e;return o&&(this.calculateRowsHeight(t,void 0,!0),i=this.getRowHeight(t)),i}function N(e,t){t||this.recalculateAllRowsHeight()}function P(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);w(E,this).push(...t)}function H(){this.recalculateAllRowsHeight(),m(R,this,!0)}function x(e){if(!w(R,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(E,this).push(...t)}t.AutoRowSize=_},38784:(e,t,o)=>{"use strict";var i=o(73805);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(13743),n=i(o(6711))},38829:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=r;var i=o(85439),s=o(78966);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},38830:(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(99356);var i=o(94576),s=o(40929);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]},38950:(e,t,o)=>{"use strict";o(4462),o(52695)},39225:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=s},39372:(e,t,o)=>{"use strict";var i=o(30617),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},39393:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},39411:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(78966),r=o(94576),a=o(26808),l=o(79035);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},39572:(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(52490);var i=o(60269),s=o(84686),n=o(46848),r=o(18253);const a=new Map([["collapse",i.collapseNode],["expand",s.expandNode],["hide-column",n.hideColumn],["show-column",r.showColumn]])},39604:(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
|
67
|
-
This combination is not supported. The plugin will remain disabled.`),o})};var i=o(30738),s=o(7120);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},39710:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.unfreezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var 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(44481))},39748:(e,t,o)=>{"use strict";o(52653)},39872:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(4138),n=i(o(18805));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},39888:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(59188),r=o(94811),a=o(26023),l=o(48369),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}},39969:(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(44481));const s=t.KEY="row_above"},40041:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43181);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Search=i.Search},40059:(e,t,o)=>{"use strict";o(49463)("flatMap")},40492:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(4138);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},40550:(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()}}}},40591:(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(32234);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},40761:(e,t,o)=>{"use strict";var i=o(2382),s=o(33266),n=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40920:(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(99356),o(26648),o(34478),o(29810),o(940),o(33098);var i=o(7886);const s={" ":" ","&":"&","<":"<",">":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},40929:(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(4138),s=o(79035);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())},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41145:(e,t,o)=>{"use strict";var i=o(73805);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(44481)),r=o(23895);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})},41462:(e,t,o)=>{"use strict";var i=o(31520).has;e.exports=function(e){return i(e),e}},41595:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(25854),a=o(7120),l=o(58604),h=o(7886),c=o(32040),u=o(24879),d=o(12516),g=o(9013),f=o(2744),p=o(23228),m=i(o(81045));function w(e,t,o){C(e,t),t.set(e,o)}function C(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,o){return e.set(S(e,t),o),o}function y(e,t){return e.get(S(e,t))}function S(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 E=t.PLUGIN_KEY="formulas",R=t.SETTING_KEYS=["maxRows","maxColumns","language"],b=t.PLUGIN_PRIORITY=260;p.Hooks.getSingleton().register("afterNamedExpressionAdded"),p.Hooks.getSingleton().register("afterNamedExpressionRemoved"),p.Hooks.getSingleton().register("afterSheetAdded"),p.Hooks.getSingleton().register("afterSheetRemoved"),p.Hooks.getSingleton().register("afterSheetRenamed"),p.Hooks.getSingleton().register("afterFormulasValuesUpdate");const _=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakSet;class A extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,C(t=this,o=O),o.add(t),w(this,T,!1),w(this,M,!1),w(this,I,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,te).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 E}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[E,...R]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.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,this.hot.getSourceDataArray());!1!==e&&S(O,this,N).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 S(O,t,x).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 S(O,t,D).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 S(O,t,x).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 S(O,t,D).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 S(O,t,L).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 S(O,t,V).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 S(O,t,P).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 S(O,t,F).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 S(O,t,W).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 S(O,t,W).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 S(O,t,B).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 S(O,t,U).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 S(O,t,z).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 S(O,t,G).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 S(O,t,Y).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 S(O,t,j).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 S(O,t,$).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 S(O,t,K).call(t,...o)}),this.indexSyncer=new m.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 S(O,t,k).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 S(O,t,X).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 S(O,t,H).call(t,...o)}),y(I,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(){y(I,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,d.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,d.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[E];if((0,h.isDefined)(o)&&(0,h.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[E].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());S(O,this,N).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),v(I,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,h.isDefined)(t)&&!(0,g.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.`);S(O,this,N).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(E)}.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,c.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,h.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,h.isDefined)(n)||!1===(0,h.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,c.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,u.isDate)(o,s.type)&&((0,u.isDateValid)(o,s.dateFormat)?o=(0,u.getDateInHfFormat)(o,s.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function N(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(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,u.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function H(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(),d={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(d,g),{row:p,col:m}=d.start,{row:w,col:C}=d.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,u.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,n.dateFormat)))}return f}function x(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(E))||v(M,this,(0,h.isUndefined)(this.hot.getSettings().data))}function k(){if(y(M,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,u.isDate)(t,s.type)&&((0,u.isDateValid)(t,n)?e[o][i]=(0,u.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}function D(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,f.toUpperCaseFirst)(E)))return;const i=(0,c.setupSheet)(this.engine,this.hot.getSettings()[E].sheetName);if(S(O,this,N).call(this,i),"updateSettings"!==o)if(y(M,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}}}function L(e,t,o,i){if("get"!==i||y(T,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,u.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,u.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function V(e,t,o,i){if("get"!==i||y(T,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 W(e,t){if(_(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};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 F(e,t){if(_(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 B(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 U(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 Y(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function j(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function z(e,t,o){if(_(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function G(e,t,o){if(_(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function $(e,t,o,i){if(_(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 K(e,t,o,i){if(_(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 X(e,t,o){var i;v(T,this,!0);const s=this.hot.getSourceDataArray(o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());v(T,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function q(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Q(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function J(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function Z(e){this.hot.runHooks("afterSheetAdded",e)}function ee(e,t){S(O,this,N).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=A},41691:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=r},42207:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(78966),a=o(47802),l=o(4138),h=o(13390);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n);const r=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&r.setValue(o),r.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,n.handsontable),this.htOptions=a}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedActive()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;o=Math.max(o+t,0)}const i=this.getDropdownHeight(),s=e.getWorkspaceHeight()-o-t.height,n=i>s&&o>s+t.height;return n?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:n,spaceAbove:o,spaceBelow:s}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;o=Math.max(o+t,0)}const i=this.getDropdownWidth(),s=e.getWorkspaceWidth()-o+t.width,n=i>s&&o>s;return n?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:n,spaceInlineStart:o,spaceInlineEnd:s}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let i,s;return!t.getSelectedActive()&&this.isFlippedVertically?i=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],i=Math.max(0,s-1)):(s=t.getSelectedActive()[0],i=s-1)),o(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let i,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)i=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],i=Math.min(e,s+1)}}else i=0;return o(i,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},42299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(86491));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)}}},42326:(e,t,o)=>{"use strict";var i=o(19098),s=o(19451),n=o(66431),r=o(62283).indexOf,a=o(48099),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}},42328:(e,t,o)=>{"use strict";var i=o(19098),s=o(70792);e.exports=function(e,t,o){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},42559:(e,t,o)=>{"use strict";var i=o(15105),s=o(19451),n=o(20637),r=o(14815),a=o(79937),l=o(31622),h=o(17374),c=o(59549),u=o(82497),d=o(92434),g=o(22849),f=o(2382),p=o(33973);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}}},42595:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18385);t.EDITOR_TYPE=i.EDITOR_TYPE,t.NumericEditor=i.NumericEditor},42888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(3715),r=o(34822),a=o(86092),l=o(58226),h=o(30386),c=i(o(59468)),u=o(94576),d=o(40929),g=o(78966),f=o(47802),p=o(81761),m=o(7886),w=o(4138),C=i(o(18805)),v=o(1880),y=o(72609);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)},43181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(7886);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},43290:(e,t,o)=>{"use strict";var i=o(60606),s=o(19098);e.exports=function(e){if("Function"===i(e))return s(e)}},43502:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(5085);var s=i(o(50236)),n=o(88422),r=o(5714),a=o(23228),l=o(63061),h=o(61654),c=o(5997),u=o(67347),d=o(13743);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="09/09/2025 12:56:53",g.version="16.1.0-next-1494b74-20250909",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},43605:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,o,i)=>{i&&t.done(()=>new r({currentSortState:e,newSortState:o}))})}undo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting"),s=i.isEnabled()?i:o;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting");(i.isEnabled()?i:o).sort(this.nextSortState),t()}}t.ColumnSortAction=r},43619:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},43713:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(47802),a=o(78966);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},44013:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},44031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=i(o(8625)),a=i(o(39710));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},44251:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34651);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Loading=i.Loading},44270:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(28666);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},44423:(e,t,o)=>{"use strict";var i=o(2382),s=o(60072),n=o(98363),r=o(90501),a=o(66431),l=o(61674);t.f=i&&!s?Object.defineProperties:function(e,t){r(e);for(var o,i=a(t),s=l(t),h=s.length,c=0;h>c;)n.f(e,o=s[c++],i[o]);return e}},44481:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",i=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${o}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${o}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${o}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${o}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${o}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${o}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${o}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${o}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${o}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${o}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${o}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${o}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${o}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${o}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${o}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${o}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${o}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${o}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${o}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${o}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${o}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${o}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${o}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${o}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${o}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${o}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${o}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${o}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${o}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${o}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${o}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${o}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${o}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${o}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${o}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${o}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${o}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${o}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${o}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${o}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${o}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${o}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${o}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${o}.showRow`,t.FILTERS_NAMESPACE="Filters:"),s=t.FILTERS_CONDITIONS_NAMESPACE=`${i}conditions`,n=(t.FILTERS_CONDITIONS_NONE=`${s}.none`,t.FILTERS_CONDITIONS_EMPTY=`${s}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${s}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${s}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${s}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${s}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${s}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${s}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${s}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${s}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${s}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${s}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${s}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${s}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${s}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${s}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${s}.after`,t.FILTERS_CONDITIONS_BEFORE=`${s}.before`,t.FILTERS_CONDITIONS_TODAY=`${s}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${s}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${s}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${i}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${i}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${i}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${i}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${i}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${i}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${i}buttons.clear`,t.FILTERS_BUTTONS_OK=`${i}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${i}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${i}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${i}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${i}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),r=(t.PAGINATION_SECTION=`${n}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${n}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${n}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${n}section.counter`,t.PAGINATION_NAV_SECTION=`${n}section.navigation`,t.PAGINATION_FIRST_PAGE=`${n}firstPage`,t.PAGINATION_PREV_PAGE=`${n}prevPage`,t.PAGINATION_NEXT_PAGE=`${n}nextPage`,t.PAGINATION_LAST_PAGE=`${n}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),a=(t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`,t.LOADING_NAMESPACE="Loading:");t.LOADING_TITLE=`${a}title`},44624:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(82515),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(90643),o(31143);var i=o(79521);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);if(s.find(e=>e.callback===t))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,r=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:n,runOnce:r,initialHook:c,skip:!1});let o=a(u,this).has(e);o||0===n||(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)}}},44806:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-s-1,-1),r=i.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));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)}}},45007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76439);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},45084:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,n.isObject)(e))return!1;const{column:t,sortOrder:o}=e;return Number.isInteger(t)&&[u,d].includes(o)}(e)))return!1;const t=e.map(e=>{let{column:t}=e;return t});return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,o){return function(i,n){const{sortEmptyCells:r}=o;if(i===n)return l.DO_NOT_SWAP;if((0,a.isEmpty)(i))return(0,a.isEmpty)(n)?l.DO_NOT_SWAP:r&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(n))return r&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(i,t),c=(0,s.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${g}`)},t.getNextSortOrder=function(e){if(e===d)return;if(e===u)return d;return u},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const o=t.parentNode.parentNode.childNodes;if(Array.from(o).indexOf(t.parentNode)-o.length!==-1)return!1;return!0},t.warnAboutPluginsConflict=function(e,t){(0,h.warn)(c.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
|
66
|
+
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(7886),s=o(4138),n=o(7120),r=o(30738)},35734:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(940);var s=i(o(24300)),n=o(30286),r=o(1471),a=o(69425),l=o(25884),h=o(81761);class c extends n.IndexMap{constructor(){super(...arguments),(0,s.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map(e=>this.indexedValues[e])}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(o,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,r.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,r.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},35738:(e,t,o)=>{"use strict";var i=o(94266);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},35775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));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(){}}},36062:(e,t)=>{"use strict";function o(e,t,o){e.addEventListener(t,o,!1)}function i(e,t,o){e.removeEventListener(t,o,!1)}function s(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,r=e.createTextNode(""),a=e.createElement("span");let l;function h(){var e,o;r.textContent=t.textContent(l),a.style.position="absolute",a.style.fontSize=s(l).fontSize,a.style.fontFamily=s(l).fontFamily,a.style.whiteSpace="pre",n.appendChild(a);const i=parseInt((null===(e=s(l))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(o=s(l))||void 0===o?void 0:o.paddingInlineEnd)||0,10),c=a.clientWidth+i+h+1;n.removeChild(a);const u=l.style;u.height=`${t.minHeight}px`,t.minWidth>c?u.width=`${t.minWidth}px`:c>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${c}px`;const d=l.scrollHeight?l.scrollHeight-1:0;t.minHeight>d?u.height=`${t.minHeight}px`:t.maxHeight<d?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function c(){e.defaultView.setTimeout(h,0)}return{init:function(e,i){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=l.clientHeight;else{const o=parseInt(e.minHeight,10);isNaN(o)||(t.minHeight=o)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=l.clientHeight;else{const o=parseInt(e.maxHeight,10);isNaN(o)||(t.maxHeight=o)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=l.clientWidth;else{const o=parseInt(e.minWidth,10);isNaN(o)||(t.minWidth=o)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=l.clientWidth;else{const o=parseInt(e.maxWidth,10);isNaN(o)||(t.maxWidth=o)}a.firstChild||(a.className="autoResize",a.style.display="inline-block",a.appendChild(r))}(i),"TEXTAREA"===l.nodeName&&(l.style.resize="none",l.style.height=`${t.minHeight}px`,l.style.minWidth=`${t.minWidth}px`,l.style.maxWidth=`${t.maxWidth}px`,l.style.overflowY="hidden"),s&&(o(l,"input",h),o(l,"keydown",c)),h()},resize:h,unObserve(){i(l,"input",h),i(l,"keydown",c)}}}},36117:(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(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(81761);const s=e=>`'${e}' value is already declared in a unique set.`},36416:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}}},36547:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));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}}}},36714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=i(o(8323)),r=i(o(24699));class a extends r.default{constructor(e,t,o){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const i=this.wtSettings.getSetting("facade",this);this.cloneSource=o.source,this.cloneOverlay=o.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),i,this.domBindings,this.wtSettings),this.wtViewport=o.viewport,this.selectionManager=o.selectionManager,this.wtEvent=new n.default(i,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,o.event),this.findOriginalHeaders()}}t.default=a},36780:(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(52490);var i=o(25854);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=r},37069:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(17725);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},37334:(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(31970)},37359:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67347),s=o(78966);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},37368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(11847);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnMove=i.ManualColumnMove},37547:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,o.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},37961:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:r}=t,a=new Map;return{before:function(){},after:function(l,h,c){const u=e.mergedCellsCollection.get(h,c);if(!(0,i.isObject)(u))return l.removeAttribute("rowspan"),l.removeAttribute("colspan"),a.has(h)&&!t.getSettings().rowHeaders&&(l.style.height=`${a.get(h)}px`,a.delete(h)),void(l.style.display="");const{row:d,col:g,colspan:f,rowspan:p}=u,[m,w]=e.translateMergedCellToRenderable(d,p,g,f),C=e.getSetting("virtualized");if(0===g&&!t.getSettings().rowHeaders){const e=t._getRowHeightFromSettings(h);if(void 0!==e){const o=t.stylesHandler.areCellsBorderBox()?0:1;a.set(h,e-o)}else if((0,s.isSafari)()){const e=(0,n.sumCellsHeights)(t,d,p);a.set(h,e/p)}}const v=m-o.getRenderableFromVisualIndex(h)+1,y=w-r.getRenderableFromVisualIndex(c)+1;let S=o.getNearestNotHiddenIndex(d,1),E=r.getNearestNotHiddenIndex(g,1);if(C){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(E=Math.max(E,t.getFirstRenderedVisibleColumn()))}const R=Math.min(p,v),b=Math.min(f,y);S===h&&E===c?(l.setAttribute("rowspan",R),l.setAttribute("colspan",b)):(l.removeAttribute("rowspan"),l.removeAttribute("colspan"),l.style.display="none")}}};var i=o(4138),s=o(40929),n=o(56097)},37994:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(98532);t.AutocompleteCellType=i.AutocompleteCellType,t.CELL_TYPE=i.CELL_TYPE},38221:(e,t,o)=>{"use strict";var i=o(72820),s=o(87913);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},38465:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(93868),r=o(79420),a=o(62678),l=o(7569),h=o(71883),c=o(38784),u=o(48622),d=o(26826),g=o(76623),f=o(13743);t.ACTIVE_HEADER_TYPE=f.HIGHLIGHT_ACTIVE_HEADER_TYPE,t.AREA_TYPE=f.HIGHLIGHT_AREA_TYPE,t.FOCUS_TYPE=f.HIGHLIGHT_FOCUS_TYPE,t.CUSTOM_SELECTION_TYPE=f.HIGHLIGHT_CUSTOM_SELECTION_TYPE,t.FILL_TYPE=f.HIGHLIGHT_FILL_TYPE,t.HEADER_TYPE=f.HIGHLIGHT_HEADER_TYPE,t.ROW_TYPE=f.HIGHLIGHT_ROW_TYPE,t.COLUMN_TYPE=f.HIGHLIGHT_COLUMN_TYPE;var p=o(94576);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{constructor(e){m(this,C),(0,s.default)(this,"options",void 0),(0,s.default)(this,"layerLevel",0),(0,s.default)(this,"focus",void 0),(0,s.default)(this,"fill",void 0),(0,s.default)(this,"layeredAreas",new Map),(0,s.default)(this,"areas",new Map),(0,s.default)(this,"rowHeaders",new Map),(0,s.default)(this,"columnHeaders",new Map),(0,s.default)(this,"activeRowHeaders",new Map),(0,s.default)(this,"activeColumnHeaders",new Map),(0,s.default)(this,"activeCornerHeaders",new Map),(0,s.default)(this,"rowHighlights",new Map),(0,s.default)(this,"columnHighlights",new Map),(0,s.default)(this,"customSelections",[]),this.options=e,this.focus=(0,h.createHighlight)(e),this.fill=(0,u.createHighlight)(e)}isEnabledFor(e,t){let o=e;e===f.HIGHLIGHT_FOCUS_TYPE&&(o="current");let i=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof i&&(i=[i]),!1===i||Array.isArray(i)&&!i.includes(o)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return w(C,this,y).call(this,this.layeredAreas,r.createHighlight)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return w(C,this,y).call(this,this.areas,a.createHighlight)}getAreas(){return[...this.areas.values()]}createRowHeader(){return w(C,this,y).call(this,this.rowHeaders,d.createHighlight)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return w(C,this,y).call(this,this.columnHeaders,d.createHighlight)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return w(C,this,y).call(this,this.activeRowHeaders,n.createHighlight)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return w(C,this,y).call(this,this.activeColumnHeaders,n.createHighlight)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return w(C,this,y).call(this,this.activeCornerHeaders,n.createHighlight)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return w(C,this,y).call(this,this.rowHighlights,g.createHighlight)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return w(C,this,y).call(this,this.columnHighlights,l.createHighlight)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push((0,c.createHighlight)({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),(0,p.arrayEach)(this.areas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.layeredAreas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeRowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeColumnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeCornerHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHighlights.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHighlights.values(),e=>{e.clear()})}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function y(e,t){const o=this.layerLevel;if(e.has(o))return e.get(o);const i=t({layerLevel:o,...this.options});return e.set(o,i),i}t.default=v},38491:(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(99063),s=o(60541),n=o(67606),r=o(64369),a=o(46553),l=o(88855)},38775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=o(79035),a=i(o(30164)),l=o(4138),h=o(58604),c=i(o(65165)),u=o(2744),d=o(55656),g=o(78966);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";var E=new WeakMap,R=new WeakMap,b=new WeakSet;class _ 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=b),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,E,[]),f(this,R,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).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(b,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 C(b,e,P).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(b,e,x).call(e,...o)}),this.addHook("beforeViewRender",()=>C(b,this,I).call(this)),this.addHook("beforeRender",()=>C(b,this,O).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>C(b,this,H).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),C(b,this,M).call(this,!1),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).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+_.CALCULATION_STEP,i)},e,t),o=o+_.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=_.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();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),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 T(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 M(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 I(){C(b,this,M).call(this)}function O(){this.calculateVisibleRowsHeight(),this.inProgress||(C(b,this,T).call(this,w(E,this)),m(E,this,[]))}function A(e,t,o){let i=e;return o&&(this.calculateRowsHeight(t,void 0,!0),i=this.getRowHeight(t)),i}function N(e,t){t||this.recalculateAllRowsHeight()}function P(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);w(E,this).push(...t)}function H(){this.recalculateAllRowsHeight(),m(R,this,!0)}function x(e){if(!w(R,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(E,this).push(...t)}t.AutoRowSize=_},38784:(e,t,o)=>{"use strict";var i=o(73805);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(13743),n=i(o(6711))},38829:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=r;var i=o(85439),s=o(78966);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},38830:(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(99356);var i=o(94576),s=o(40929);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]},38950:(e,t,o)=>{"use strict";o(4462),o(52695)},39225:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=s},39372:(e,t,o)=>{"use strict";var i=o(30617),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},39393:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},39411:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(78966),r=o(94576),a=o(26808),l=o(79035);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},39572:(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(52490);var i=o(60269),s=o(84686),n=o(46848),r=o(18253);const a=new Map([["collapse",i.collapseNode],["expand",s.expandNode],["hide-column",n.hideColumn],["show-column",r.showColumn]])},39604:(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
|
67
|
+
This combination is not supported. The plugin will remain disabled.`),o})};var i=o(30738),s=o(7120);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},39710:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.unfreezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var 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(44481))},39748:(e,t,o)=>{"use strict";o(52653)},39872:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(4138),n=i(o(18805));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},39888:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(59188),r=o(94811),a=o(26023),l=o(48369),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}},39969:(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(44481));const s=t.KEY="row_above"},40041:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43181);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Search=i.Search},40059:(e,t,o)=>{"use strict";o(49463)("flatMap")},40492:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(4138);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},40550:(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()}}}},40591:(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(32234);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},40761:(e,t,o)=>{"use strict";var i=o(2382),s=o(33266),n=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40920:(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(99356),o(26648),o(34478),o(29810),o(940),o(33098);var i=o(7886);const s={" ":" ","&":"&","<":"<",">":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},40929:(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(4138),s=o(79035);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())},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41145:(e,t,o)=>{"use strict";var i=o(73805);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(44481)),r=o(23895);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})},41462:(e,t,o)=>{"use strict";var i=o(31520).has;e.exports=function(e){return i(e),e}},41595:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(25854),a=o(7120),l=o(58604),h=o(7886),c=o(32040),u=o(24879),d=o(12516),g=o(9013),f=o(2744),p=o(23228),m=i(o(81045));function w(e,t,o){C(e,t),t.set(e,o)}function C(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,o){return e.set(S(e,t),o),o}function y(e,t){return e.get(S(e,t))}function S(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 E=t.PLUGIN_KEY="formulas",R=t.SETTING_KEYS=["maxRows","maxColumns","language"],b=t.PLUGIN_PRIORITY=260;p.Hooks.getSingleton().register("afterNamedExpressionAdded"),p.Hooks.getSingleton().register("afterNamedExpressionRemoved"),p.Hooks.getSingleton().register("afterSheetAdded"),p.Hooks.getSingleton().register("afterSheetRemoved"),p.Hooks.getSingleton().register("afterSheetRenamed"),p.Hooks.getSingleton().register("afterFormulasValuesUpdate");const _=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakSet;class A extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,C(t=this,o=O),o.add(t),w(this,T,!1),w(this,M,!1),w(this,I,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,te).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 E}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[E,...R]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.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,this.hot.getSourceDataArray());!1!==e&&S(O,this,N).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 S(O,t,x).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 S(O,t,D).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 S(O,t,x).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 S(O,t,D).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 S(O,t,L).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 S(O,t,V).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 S(O,t,P).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 S(O,t,F).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 S(O,t,W).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 S(O,t,W).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 S(O,t,B).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 S(O,t,U).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 S(O,t,z).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 S(O,t,G).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 S(O,t,Y).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 S(O,t,j).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 S(O,t,$).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 S(O,t,K).call(t,...o)}),this.indexSyncer=new m.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 S(O,t,k).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 S(O,t,X).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 S(O,t,H).call(t,...o)}),y(I,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(){y(I,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,d.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,d.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[E];if((0,h.isDefined)(o)&&(0,h.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[E].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());S(O,this,N).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),v(I,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,h.isDefined)(t)&&!(0,g.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.`);S(O,this,N).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(E)}.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,c.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,h.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,h.isDefined)(n)||!1===(0,h.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,c.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,u.isDate)(o,s.type)&&((0,u.isDateValid)(o,s.dateFormat)?o=(0,u.getDateInHfFormat)(o,s.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function N(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(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,u.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function H(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(),d={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(d,g),{row:p,col:m}=d.start,{row:w,col:C}=d.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,u.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,n.dateFormat)))}return f}function x(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(E))||v(M,this,(0,h.isUndefined)(this.hot.getSettings().data))}function k(){if(y(M,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,u.isDate)(t,s.type)&&((0,u.isDateValid)(t,n)?e[o][i]=(0,u.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}function D(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,f.toUpperCaseFirst)(E)))return;const i=(0,c.setupSheet)(this.engine,this.hot.getSettings()[E].sheetName);if(S(O,this,N).call(this,i),"updateSettings"!==o)if(y(M,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}}}function L(e,t,o,i){if("get"!==i||y(T,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,u.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,u.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function V(e,t,o,i){if("get"!==i||y(T,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 W(e,t){if(_(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};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 F(e,t){if(_(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 B(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 U(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 Y(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function j(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function z(e,t,o){if(_(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function G(e,t,o){if(_(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function $(e,t,o,i){if(_(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 K(e,t,o,i){if(_(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 X(e,t,o){var i;v(T,this,!0);const s=this.hot.getSourceDataArray(o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());v(T,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function q(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Q(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function J(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function Z(e){this.hot.runHooks("afterSheetAdded",e)}function ee(e,t){S(O,this,N).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=A},41691:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=r},42207:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(78966),a=o(47802),l=o(4138),h=o(13390);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n);const r=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&r.setValue(o),r.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,n.handsontable),this.htOptions=a}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedActive()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;o=Math.max(o+t,0)}const i=this.getDropdownHeight(),s=e.getWorkspaceHeight()-o-t.height,n=i>s&&o>s+t.height;return n?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:n,spaceAbove:o,spaceBelow:s}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;o=Math.max(o+t,0)}const i=this.getDropdownWidth(),s=e.getWorkspaceWidth()-o+t.width,n=i>s&&o>s;return n?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:n,spaceInlineStart:o,spaceInlineEnd:s}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let i,s;return!t.getSelectedActive()&&this.isFlippedVertically?i=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],i=Math.max(0,s-1)):(s=t.getSelectedActive()[0],i=s-1)),o(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let i,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)i=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],i=Math.min(e,s+1)}}else i=0;return o(i,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},42299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(86491));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)}}},42326:(e,t,o)=>{"use strict";var i=o(19098),s=o(19451),n=o(66431),r=o(62283).indexOf,a=o(48099),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}},42328:(e,t,o)=>{"use strict";var i=o(19098),s=o(70792);e.exports=function(e,t,o){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},42559:(e,t,o)=>{"use strict";var i=o(15105),s=o(19451),n=o(20637),r=o(14815),a=o(79937),l=o(31622),h=o(17374),c=o(59549),u=o(82497),d=o(92434),g=o(22849),f=o(2382),p=o(33973);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}}},42595:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18385);t.EDITOR_TYPE=i.EDITOR_TYPE,t.NumericEditor=i.NumericEditor},42888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(3715),r=o(34822),a=o(86092),l=o(58226),h=o(30386),c=i(o(59468)),u=o(94576),d=o(40929),g=o(78966),f=o(47802),p=o(81761),m=o(7886),w=o(4138),C=i(o(18805)),v=o(1880),y=o(72609);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)},43181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(7886);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},43290:(e,t,o)=>{"use strict";var i=o(60606),s=o(19098);e.exports=function(e){if("Function"===i(e))return s(e)}},43502:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(5085);var s=i(o(50236)),n=o(88422),r=o(5714),a=o(23228),l=o(63061),h=o(61654),c=o(5997),u=o(67347),d=o(13743);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="11/09/2025 08:34:03",g.version="16.1.0-next-75c35bc-20250911",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},43605:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,o,i)=>{i&&t.done(()=>new r({currentSortState:e,newSortState:o}))})}undo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting"),s=i.isEnabled()?i:o;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting");(i.isEnabled()?i:o).sort(this.nextSortState),t()}}t.ColumnSortAction=r},43619:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},43713:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(47802),a=o(78966);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},44013:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},44031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=i(o(8625)),a=i(o(39710));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},44251:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34651);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Loading=i.Loading},44270:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(28666);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},44423:(e,t,o)=>{"use strict";var i=o(2382),s=o(60072),n=o(98363),r=o(90501),a=o(66431),l=o(61674);t.f=i&&!s?Object.defineProperties:function(e,t){r(e);for(var o,i=a(t),s=l(t),h=s.length,c=0;h>c;)n.f(e,o=s[c++],i[o]);return e}},44481:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",i=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${o}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${o}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${o}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${o}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${o}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${o}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${o}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${o}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${o}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${o}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${o}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${o}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${o}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${o}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${o}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${o}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${o}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${o}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${o}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${o}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${o}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${o}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${o}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${o}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${o}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${o}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${o}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${o}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${o}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${o}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${o}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${o}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${o}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${o}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${o}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${o}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${o}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${o}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${o}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${o}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${o}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${o}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${o}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${o}.showRow`,t.FILTERS_NAMESPACE="Filters:"),s=t.FILTERS_CONDITIONS_NAMESPACE=`${i}conditions`,n=(t.FILTERS_CONDITIONS_NONE=`${s}.none`,t.FILTERS_CONDITIONS_EMPTY=`${s}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${s}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${s}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${s}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${s}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${s}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${s}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${s}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${s}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${s}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${s}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${s}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${s}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${s}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${s}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${s}.after`,t.FILTERS_CONDITIONS_BEFORE=`${s}.before`,t.FILTERS_CONDITIONS_TODAY=`${s}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${s}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${s}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${i}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${i}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${i}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${i}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${i}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${i}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${i}buttons.clear`,t.FILTERS_BUTTONS_OK=`${i}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${i}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${i}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${i}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${i}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),r=(t.PAGINATION_SECTION=`${n}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${n}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${n}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${n}section.counter`,t.PAGINATION_NAV_SECTION=`${n}section.navigation`,t.PAGINATION_FIRST_PAGE=`${n}firstPage`,t.PAGINATION_PREV_PAGE=`${n}prevPage`,t.PAGINATION_NEXT_PAGE=`${n}nextPage`,t.PAGINATION_LAST_PAGE=`${n}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),a=(t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`,t.LOADING_NAMESPACE="Loading:");t.LOADING_TITLE=`${a}title`},44624:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(82515),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(90643),o(31143);var i=o(79521);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);if(s.find(e=>e.callback===t))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,r=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:n,runOnce:r,initialHook:c,skip:!1});let o=a(u,this).has(e);o||0===n||(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)}}},44806:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-s-1,-1),r=i.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));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)}}},45007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76439);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},45084:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,n.isObject)(e))return!1;const{column:t,sortOrder:o}=e;return Number.isInteger(t)&&[u,d].includes(o)}(e)))return!1;const t=e.map(e=>{let{column:t}=e;return t});return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,o){return function(i,n){const{sortEmptyCells:r}=o;if(i===n)return l.DO_NOT_SWAP;if((0,a.isEmpty)(i))return(0,a.isEmpty)(n)?l.DO_NOT_SWAP:r&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(n))return r&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(i,t),c=(0,s.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${g}`)},t.getNextSortOrder=function(e){if(e===d)return;if(e===u)return d;return u},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const o=t.parentNode.parentNode.childNodes;if(Array.from(o).indexOf(t.parentNode)-o.length!==-1)return!1;return!0},t.warnAboutPluginsConflict=function(e,t){(0,h.warn)(c.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
|
68
68
|
Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`)},t.wasHeaderClickedProperly=function(e,t,o){return-1===e&&t>=0&&!1===(0,r.isRightClick)(o)},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(940),o(81056);var s=i(o(86798)),n=o(4138),r=o(47802),a=o(7886),l=o(70705),h=o(7120),c=o(30738);const u=t.ASC_SORT_STATE="asc",d=t.DESC_SORT_STATE="desc",g=t.HEADER_SPAN_CLASS="colHeader"},45463:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(69213);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Autofill=i.Autofill},45972:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(94576),n=o(58604),r=o(78966),a=i(o(78918)),l=o(72609);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},46337:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(4138),r=o(94576),a=o(58226);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"predefinedItems",(0,a.predefinedItems)()),(0,s.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,n.objectEach)(e,(e,o)=>{let i="";e.name===a.SEPARATOR?(t[a.SEPARATOR]=e,i=a.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,t[o]=e,i=e.key):(t[e.key]=e,i=e.key),this.defaultOrderPattern.push(i)}),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];let s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,n.isObject)(s)?(0,n.objectEach)(s,(e,t)=>{let s=o["string"==typeof e?e:t];s||(s=e),(0,n.isObject)(e)?(0,n.extend)(s,e):"string"==typeof s&&(s={name:s}),void 0===s.key&&(s.key=t),i.push(s)}):(0,r.arrayEach)(s,(e,t)=>{let s=o[e];!s&&a.ITEMS.indexOf(e)>=0||(s||(s={name:e,key:`${t}`}),(0,n.isObject)(e)&&(0,n.extend)(s,e),void 0===s.key&&(s.key=t),i.push(s))});return i}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},46367:(e,t,o)=>{"use strict";var i=o(19098),s=o(33266),n=o(44827),r=o(60606),a=o(84677),l=i([].push);e.exports=function(e){if(n(e))return e;if(s(e)){for(var t=e.length,o=[],i=0;i<t;i++){var h=e[i];"string"==typeof h?l(o,h):"number"!=typeof h&&"Number"!==r(h)&&"String"!==r(h)||l(o,a(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(s(this))return t;for(var i=0;i<c;i++)if(o[i]===e)return t}}}},46410:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(82467)),n=o(78966);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=r},46553:(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)}}},46700:(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(44481)),s=o(83914),n=o(67837)},46802:(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})}}},46848:(e,t,o)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(i.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
69
69
|
the last node, the hide 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.push(t),o.colspan>1?o.colspan-=1:o.isHidden=!0})},o(52490),o(99356);var i=o(30738)},47057:(e,t,o)=>{"use strict";var i=o(88786),s=o(44827),n=o(60606),r=o(12033)("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}},47150: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}}},47271:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(9137),r=o(70705),a=o(45084),l=o(78966),h=o(29430),c=o(14207),u=o(13390);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},47343:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));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":""}}}}},47520:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(23895);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},47742:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724)},47763:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78966),s=o(29779),n=o(72609);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},47802:(e,t,o)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let 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(78966)},47833:(e,t,o)=>{"use strict";var i=o(61546);e.exports=function(e,t,o){for(var s in t)i(e,s,t[s],o);return e}},47845:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810);var s=i(o(24300)),n=o(78966),r=o(47802),a=o(94576),l=o(38830),h=o(4138),c=m(o(44481)),u=o(69572),d=m(o(65865)),g=o(2979),f=o(30095),p=o(23895);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},47865:(e,t,o)=>{"use strict";var i=o(94266),s=o(15176),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},47927:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(99640)),n=i(o(24699));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},48099:e=>{"use strict";e.exports={}},48360:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){this.indexedValues=s(this.indexedValues,e,t,(e,t)=>this.getNextValue(t)),super.insert(e,t)}remove(e){this.indexedValues=n(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=r},48369:(e,t,o)=>{"use strict";var i=o(77439);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}},48370:(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},48404:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(78966),r=o(58604),a=o(30738),l=o(47802),h=o(7120),c=o(79930),u=o(26808),d=i(o(15981)),g=i(o(24181));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="nestedHeaders",y=t.PLUGIN_PRIORITY=280;var S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakSet;class I extends u.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=M),t.add(e),f(this,S,new d.default),f(this,E,null),f(this,R,null),f(this,b,!1),f(this,_,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),f(this,T,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:o}=t;if(o.isHeader()&&o.col>=0){const e=w(S,this).findLeftMostColumnIndex(o.row,o.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}})}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(a.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
|
70
70
|
passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>C(M,this,j).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 C(M,e,z).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 C(M,e,P).call(e,...o)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,H).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 C(M,e,x).call(e,...o)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,k).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 C(M,e,D).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 C(M,e,L).call(e,...o)}),this.addHook("afterSelection",()=>w(T,this).call(this)),this.addHook("afterSelectionFocusSet",()=>w(T,this).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,O).call(e,...o)}),this.addHook("afterGetColumnHeaderRenderers",e=>C(M,this,W).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,B).call(e,...o)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,U).call(e,...o)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,A).call(e,...o)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,N).call(e,...o)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,V).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 C(M,e,F).call(e,...o)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,Y).call(e,...o)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",w(T,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",w(T,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(S,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(S,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(a.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
|