@univerjs-pro/docs-table 1.3.1 → 1.4.0

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/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x29001b=_0x58d4;(function(_0x2af533,_0x4010a6){const _0x1e61ba=_0x58d4,_0x57ca5e=_0x2af533();while(!![]){try{const _0x28ba78=parseInt(_0x1e61ba(0x1ba))/0x1+-parseInt(_0x1e61ba(0x16d))/0x2*(-parseInt(_0x1e61ba(0x1c9))/0x3)+-parseInt(_0x1e61ba(0x1a1))/0x4+-parseInt(_0x1e61ba(0x1ce))/0x5*(-parseInt(_0x1e61ba(0x213))/0x6)+parseInt(_0x1e61ba(0x18c))/0x7+parseInt(_0x1e61ba(0x194))/0x8+-parseInt(_0x1e61ba(0x21e))/0x9;if(_0x28ba78===_0x4010a6)break;else _0x57ca5e['push'](_0x57ca5e['shift']());}catch(_0x1a0df5){_0x57ca5e['push'](_0x57ca5e['shift']());}}}(_0x3d34,0x2d33c),Object[_0x29001b(0x200)](exports,Symbol[_0x29001b(0x22a)],{'value':_0x29001b(0x173)}));function _0x3d34(){const _0x18222f=['compose','buildMoveTableToOffsetMutationActions','type','Inject','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','JSONX','body','DocsTableDeleteRowsCommand','AT_LEAST','buildMoveFloatingTableMutationActions','margin','findTables','cellMargin','moveTableToOffset','tableCells','constructor','tableSource','DocsTableDeleteTableCommand','getHeaderRowCount','1499379WeNfTO','setColumnWidth','moveColumn','rows','moveColumns','selectCell','Left','tableColumns','448800xuNSxF','distributeRows','_createFDocumentTable','string','DocsTableSelectionService','deleteRow','backgroundColor','getColumnCount','setStructuralSelection','buildSetTableHeaderRowCountMutationActions','getCellRange','SOLID','_serializeModel','282784ogyHZx','Tools','headerText','DashStyleType','Above','All','Below','color','function','buildMergeCellsMutationActions','getCell','getSource','getRowHeight','getCellInsertOffset','getInfo','insertRowsAfter','_row','distributeColumns','insertColumnsAfter','getMetadata','buildSetTableCellMarginMutationActions','getTableRange','TableRowHeightRule','buildSetTableCellTextMutationActions','DocsTableInsertTablePosition','223243GPrqQb','toPrimitive','symbol','getTableRangeById','getId','Row','selectRange','getText','ThemeService','mergeCells','_unitId','getCellContentRange','buildSetTableDefaultCellMarginMutationActions','getTableAtSelection','DocsTableRowInsertPosition','26661pLaFTA','selectColumns','insertRowsBefore','unmergeCells','getSnapshot','710UTUawp','insertTableFromData','buildDistributeTableColumnsMutationActions','getTables','getRowsRange','setCellBackground','_injector','columnTypes','border','FDocumentTable','getMarginOverride','setRowHeight','titleText','max','ICommandService','FEnum','DocsTableSelectionKind','_mutateActions','includes','get','clearMarginOverride','getTable','moveRows','width','buildResizeTableRowActionsFromHeight','getDefaultCellMargin','_buildBorderActions','getCellMarginOverride','endOffset','_column','moveTableBy','insertTable','FDocument','segmentId','getCellText','_getBodyPath','Right','deleteRows','buildSetTableBorderMutationActions','appendColumn','insertColumnAfter','DocsTableColumnType','decorate','describe','titleRow','getColumnsRange','dataStream','extend','preset','buildInsertTableRowsMutationActions','defineProperty','setDefaultCellMargin','documentStyle','selectRows','setTableStyle','setMargin','iterator','_commandService','unmerge','DocsTableModel','DocsTableBorderPreset','insertRowBefore','_getTables','mergeTo','buildDistributeTableRowsMutationActions','_getDocumentData','DocsTableInsertPosition','buildMoveTableColumnsMutationActions','some','9606dgtzew','getMargin','Column','getDocumentDataModel','DocsTableInsertTableCommand','syncExecuteCommand','insertRowAfter','findTableByText','prototype','_segmentId','FDocumentTableCell','4585257mnOCBM','setBorder','getTableActionBodyPath','size','insertColumnsBefore','deleteColumn','getSegmentId','setColumnType','deepClone','_table','map','default','toStringTag','DEFAULT_DOCS_TABLE_CELL_MARGIN','DocsTableColumnInsertPosition','buildUnmergeCellsMutationActions','getRowCount','length','Cell','deleteTable','getContentRange','buildInsertTableTitleRowMutationActions','buildMoveTableRowsMutationActions','object','DocsTableSetColumnTypeCommand','getStableTableSelection','startOffset','_document','actions','setText','getOwnPropertyDescriptor','text','selectTable','tableRows','_rowContainsText','executeRichTextTableActions','buildInsertTableColumnsMutationActions','from','selectColumn','buildSortTableMutationActions','getCellMargin','_tableId','_getTableDocumentData','10ipabHI','deleteColumns','cells','setHeaderRowCount','setCellMargin','buildSetTableBackgroundMutationActions','Module','replace','getRange','slice','_tableContainsText','tableId'];_0x3d34=function(){return _0x18222f;};return _0x3d34();}let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/core/facade'),r=require('@univerjs/docs/facade');var i=class extends n[_0x29001b(0x1dd)]{get[_0x29001b(0x1b9)](){const _0x18b8b4=_0x29001b;return e[_0x18b8b4(0x1b9)];}get[_0x29001b(0x1f7)](){const _0x411c93=_0x29001b;return e[_0x411c93(0x1f7)];}get[_0x29001b(0x1de)](){return e['DocsTableSelectionKind'];}get[_0x29001b(0x1c8)](){const _0x49f7d4=_0x29001b;return e[_0x49f7d4(0x1c8)];}get['DocsTableColumnInsertPosition'](){const _0x1b13d5=_0x29001b;return e[_0x1b13d5(0x22c)];}get[_0x29001b(0x20a)](){const _0x4409f6=_0x29001b;return e[_0x4409f6(0x20a)];}get['DocsTableSortDirection'](){return e['DocsTableSortDirection'];}get['DashStyleType'](){const _0x474e63=_0x29001b;return t[_0x474e63(0x1a4)];}};n[_0x29001b(0x1dd)][_0x29001b(0x1fd)](i);var a=class{constructor(_0x9ad059,_0x4524f5,_0x4a0d02){const _0x43e74c=_0x29001b;this[_0x43e74c(0x227)]=_0x9ad059,this[_0x43e74c(0x1b1)]=_0x4524f5,this[_0x43e74c(0x1eb)]=_0x4a0d02;}[_0x29001b(0x1e3)](){const _0x455e37=_0x29001b;return this[_0x455e37(0x227)];}['getRowIndex'](){const _0x3f39c9=_0x29001b;return this[_0x3f39c9(0x1b1)];}['getColumnIndex'](){const _0x1ea531=_0x29001b;return this[_0x1ea531(0x1eb)];}[_0x29001b(0x1c1)](){const _0x4ee541=_0x29001b;return this[_0x4ee541(0x227)]['getCellText'](this[_0x4ee541(0x1b1)],this[_0x4ee541(0x1eb)]);}[_0x29001b(0x232)](){const _0x20a07f=_0x29001b;return this[_0x20a07f(0x227)][_0x20a07f(0x1c5)](this['_row'],this['_column']);}['getInsertOffset'](){const _0x225fd8=_0x29001b;return this[_0x225fd8(0x227)][_0x225fd8(0x1ae)](this[_0x225fd8(0x1b1)],this[_0x225fd8(0x1eb)]);}[_0x29001b(0x214)](){const _0xfc53f1=_0x29001b;return this[_0xfc53f1(0x227)]['getCellMargin'](this[_0xfc53f1(0x1b1)],this['_column']);}[_0x29001b(0x1d8)](){const _0x1bae5f=_0x29001b;return this[_0x1bae5f(0x227)][_0x1bae5f(0x1e9)](this[_0x1bae5f(0x1b1)],this[_0x1bae5f(0x1eb)]);}[_0x29001b(0x205)](_0x4da29e){const _0x34971a=_0x29001b;return this[_0x34971a(0x227)][_0x34971a(0x171)](this[_0x34971a(0x227)][_0x34971a(0x19e)](this[_0x34971a(0x1b1)],this[_0x34971a(0x1eb)]),_0x4da29e);}[_0x29001b(0x1e2)](){const _0x3e5ab8=_0x29001b;return this['_table'][_0x3e5ab8(0x171)](this[_0x3e5ab8(0x227)]['getCellRange'](this[_0x3e5ab8(0x1b1)],this[_0x3e5ab8(0x1eb)]),null);}[_0x29001b(0x23b)](_0x7cccbc){const _0x1229c7=_0x29001b;return this[_0x1229c7(0x227)]['setCellText'](this[_0x1229c7(0x1b1)],this[_0x1229c7(0x1eb)],_0x7cccbc);}['setBackgroundColor'](_0x5e9a0c){const _0x11025c=_0x29001b;return this[_0x11025c(0x227)]['setCellBackground'](this[_0x11025c(0x227)]['getCellRange'](this['_row'],this[_0x11025c(0x1eb)]),_0x5e9a0c);}[_0x29001b(0x21f)](_0x224fa0){const _0x1a9690=_0x29001b;return this[_0x1a9690(0x227)]['setBorder'](this[_0x1a9690(0x227)][_0x1a9690(0x19e)](this[_0x1a9690(0x1b1)],this[_0x1a9690(0x1eb)]),_0x224fa0);}[_0x29001b(0x20d)](_0x16cd4a,_0x10ed2a){const _0x42d0fb=_0x29001b;return this[_0x42d0fb(0x227)]['mergeCells']({'startRow':this[_0x42d0fb(0x1b1)],'startColumn':this['_column'],'endRow':this[_0x42d0fb(0x1b1)]+_0x16cd4a-0x1,'endColumn':this[_0x42d0fb(0x1eb)]+_0x10ed2a-0x1});}[_0x29001b(0x208)](){const _0x4aeb0f=_0x29001b;return this[_0x4aeb0f(0x227)][_0x4aeb0f(0x1cc)](this[_0x4aeb0f(0x227)][_0x4aeb0f(0x19e)](this[_0x4aeb0f(0x1b1)],this[_0x4aeb0f(0x1eb)]));}};function o(_0x41dc46){'@babel/helpers - typeof';const _0x1ff24f=_0x29001b;return o=typeof Symbol=='function'&&typeof Symbol[_0x1ff24f(0x206)]==_0x1ff24f(0x1bc)?function(_0x21ac46){return typeof _0x21ac46;}:function(_0xcd8147){const _0x4526e3=_0x1ff24f;return _0xcd8147&&typeof Symbol==_0x4526e3(0x1a9)&&_0xcd8147[_0x4526e3(0x188)]===Symbol&&_0xcd8147!==Symbol[_0x4526e3(0x21b)]?'symbol':typeof _0xcd8147;},o(_0x41dc46);}function _0x58d4(_0x36ac56,_0x319c4b){_0x36ac56=_0x36ac56-0x164;const _0x3d3419=_0x3d34();let _0x58d407=_0x3d3419[_0x36ac56];return _0x58d407;}function s(_0x1f986a,_0x713c2f){const _0x281a28=_0x29001b;if(o(_0x1f986a)!=_0x281a28(0x235)||!_0x1f986a)return _0x1f986a;var _0x394e16=_0x1f986a[Symbol[_0x281a28(0x1bb)]];if(_0x394e16!==void 0x0){var _0x36f6ab=_0x394e16['call'](_0x1f986a,_0x713c2f||_0x281a28(0x229));if(o(_0x36f6ab)!=_0x281a28(0x235))return _0x36f6ab;throw TypeError(_0x281a28(0x17d));}return(_0x713c2f===_0x281a28(0x197)?String:Number)(_0x1f986a);}function c(_0x295172){const _0x4e3129=_0x29001b;var _0x37cedd=s(_0x295172,_0x4e3129(0x197));return o(_0x37cedd)==_0x4e3129(0x1bc)?_0x37cedd:_0x37cedd+'';}function l(_0x2462a9,_0x3e001a,_0x15e73f){return(_0x3e001a=c(_0x3e001a))in _0x2462a9?Object['defineProperty'](_0x2462a9,_0x3e001a,{'value':_0x15e73f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2462a9[_0x3e001a]=_0x15e73f,_0x2462a9;}function u(_0x47e732,_0x4d6550){return function(_0x453b3e,_0x30ea15){_0x4d6550(_0x453b3e,_0x30ea15,_0x47e732);};}function d(_0x12b7f7,_0x204274,_0x3c0bdd,_0x3d0a95){const _0xfe1412=_0x29001b;var _0xe9f263=arguments[_0xfe1412(0x22f)],_0x3a2689=_0xe9f263<0x3?_0x204274:_0x3d0a95===null?_0x3d0a95=Object[_0xfe1412(0x23c)](_0x204274,_0x3c0bdd):_0x3d0a95,_0x3b4aeb;if(typeof Reflect==_0xfe1412(0x235)&&typeof Reflect[_0xfe1412(0x1f8)]==_0xfe1412(0x1a9))_0x3a2689=Reflect[_0xfe1412(0x1f8)](_0x12b7f7,_0x204274,_0x3c0bdd,_0x3d0a95);else{for(var _0x5a3db7=_0x12b7f7[_0xfe1412(0x22f)]-0x1;_0x5a3db7>=0x0;_0x5a3db7--)(_0x3b4aeb=_0x12b7f7[_0x5a3db7])&&(_0x3a2689=(_0xe9f263<0x3?_0x3b4aeb(_0x3a2689):_0xe9f263>0x3?_0x3b4aeb(_0x204274,_0x3c0bdd,_0x3a2689):_0x3b4aeb(_0x204274,_0x3c0bdd))||_0x3a2689);}return _0xe9f263>0x3&&_0x3a2689&&Object[_0xfe1412(0x200)](_0x204274,_0x3c0bdd,_0x3a2689),_0x3a2689;}let f=class{constructor(_0x5d40bf,_0x156112,_0x300f56,_0x13c149,_0x213c23){const _0x14d157=_0x29001b;this['_document']=_0x5d40bf,this[_0x14d157(0x16b)]=_0x156112,this[_0x14d157(0x21c)]=_0x300f56,this[_0x14d157(0x207)]=_0x13c149,this['_injector']=_0x213c23,l(this,_0x14d157(0x1c4),void 0x0),this['_unitId']=this[_0x14d157(0x239)]['getId']();}['getId'](){const _0xa3a081=_0x29001b;return this[_0xa3a081(0x16b)];}[_0x29001b(0x224)](){const _0x25ab5c=_0x29001b;return this[_0x25ab5c(0x21c)];}[_0x29001b(0x1af)](){const _0x17aeeb=_0x29001b;return{'id':this[_0x17aeeb(0x16b)],'rowCount':this[_0x17aeeb(0x22e)](),'columnCount':this[_0x17aeeb(0x19b)](),'metadata':this['getMetadata'](),'source':this[_0x17aeeb(0x1ac)]()};}[_0x29001b(0x1f9)](){const _0x2b7539=_0x29001b;let _0x41d153=this[_0x2b7539(0x1b4)](),_0x1b8df6=this['getSource'](),_0x1ee908=this['getColumnCount']();return{'id':this['_tableId'],'rowCount':this[_0x2b7539(0x22e)](),'columnCount':_0x1ee908,'headerRowCount':(_0x41d153==null?void 0x0:_0x41d153['headerRowCount'])??0x0,'titleRow':(_0x41d153==null?void 0x0:_0x41d153[_0x2b7539(0x1fa)])??!0x1,'columns':Array[_0x2b7539(0x167)]({'length':_0x1ee908},(_0x4f7cff,_0x556800)=>{const _0x2bc76e=_0x2b7539;var _0x194246,_0x3bf431;return{'index':_0x556800,'type':_0x41d153==null||(_0x194246=_0x41d153[_0x2bc76e(0x1d5)])==null||(_0x194246=_0x194246[_0x556800])==null?void 0x0:_0x194246[_0x2bc76e(0x17b)],'width':_0x1b8df6==null||(_0x3bf431=_0x1b8df6[_0x2bc76e(0x193)][_0x556800])==null?void 0x0:_0x3bf431[_0x2bc76e(0x221)][_0x2bc76e(0x1e5)]['v']};}),'sampleRows':Array[_0x2b7539(0x167)]({'length':this[_0x2b7539(0x22e)]()},(_0x54978e,_0x1736eb)=>Array[_0x2b7539(0x167)]({'length':_0x1ee908},(_0x2c42bd,_0x3b6107)=>this['getCellText'](_0x1736eb,_0x3b6107)))['filter'](_0x1d9a86=>_0x1d9a86[_0x2b7539(0x212)](_0x317874=>_0x317874['length']>0x0))[_0x2b7539(0x176)](0x0,0x5)};}[_0x29001b(0x22e)](){const _0x12bb4b=_0x29001b;var _0x59c733;return((_0x59c733=this['getSource']())==null?void 0x0:_0x59c733[_0x12bb4b(0x23f)][_0x12bb4b(0x22f)])??0x0;}[_0x29001b(0x19b)](){const _0x1e3aaf=_0x29001b;var _0x2ad720;return((_0x2ad720=this[_0x1e3aaf(0x1ac)]())==null?void 0x0:_0x2ad720[_0x1e3aaf(0x193)][_0x1e3aaf(0x22f)])??0x0;}[_0x29001b(0x1ab)](_0xd5806,_0x327836){const _0x5ebca5=_0x29001b;var _0xf9bb3b;return(_0xf9bb3b=this['getSource']())!=null&&(_0xf9bb3b=_0xf9bb3b[_0x5ebca5(0x23f)][_0xd5806])!=null&&_0xf9bb3b[_0x5ebca5(0x187)][_0x327836]?this[_0x5ebca5(0x1d4)]['createInstance'](a,this,_0xd5806,_0x327836):null;}[_0x29001b(0x1f0)](_0x39db5e,_0x5ced05){const _0x4c8bfc=_0x29001b;var _0x21b6e0,_0x1f371b;let _0x379751=(_0x21b6e0=(0x0,e['getTableRangeById'])(this[_0x4c8bfc(0x20f)](),this['_tableId']))==null||(_0x21b6e0=_0x21b6e0['rows'][_0x39db5e])==null?void 0x0:_0x21b6e0[_0x4c8bfc(0x16f)][_0x5ced05];return _0x379751?((_0x1f371b=this[_0x4c8bfc(0x20f)]()[_0x4c8bfc(0x17f)])==null?void 0x0:_0x1f371b[_0x4c8bfc(0x1fc)][_0x4c8bfc(0x176)](_0x379751['startOffset']+0x1,_0x379751[_0x4c8bfc(0x1ea)])[_0x4c8bfc(0x174)](/\r\n$/,''))??'':'';}[_0x29001b(0x16a)](_0x4469a8,_0x4d5eba){const _0x20befe=_0x29001b;var _0x78c1ef;let _0x3b1271=this[_0x20befe(0x1ac)](),_0x157855=_0x3b1271==null||(_0x78c1ef=_0x3b1271['tableRows'][_0x4469a8])==null?void 0x0:_0x78c1ef['tableCells'][_0x4d5eba];return _0x157855?t['Tools'][_0x20befe(0x226)](_0x157855[_0x20befe(0x183)]??_0x3b1271['cellMargin']??e[_0x20befe(0x22b)]):null;}['getCellMarginOverride'](_0x7d0a50,_0x5845f7){const _0x2b5da0=_0x29001b;var _0x4596e1;let _0x1f0b59=(_0x4596e1=this[_0x2b5da0(0x1ac)]())==null||(_0x4596e1=_0x4596e1[_0x2b5da0(0x23f)][_0x7d0a50])==null?void 0x0:_0x4596e1['tableCells'][_0x5845f7];return _0x1f0b59!=null&&_0x1f0b59[_0x2b5da0(0x183)]?t[_0x2b5da0(0x1a2)]['deepClone'](_0x1f0b59['margin']):null;}[_0x29001b(0x1e7)](){const _0x4ca0fd=_0x29001b;var _0x282227;return t[_0x4ca0fd(0x1a2)]['deepClone'](((_0x282227=this[_0x4ca0fd(0x1ac)]())==null?void 0x0:_0x282227[_0x4ca0fd(0x185)])??e['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}['getDefaultCellMarginOverride'](){const _0x4a6327=_0x29001b;var _0x64817e;let _0x68cbd2=(_0x64817e=this[_0x4a6327(0x1ac)]())==null?void 0x0:_0x64817e[_0x4a6327(0x185)];return _0x68cbd2?t['Tools'][_0x4a6327(0x226)](_0x68cbd2):null;}[_0x29001b(0x1b4)](){const _0x2c6c93=_0x29001b;let _0x4e6a67=this[_0x2c6c93(0x1d4)][_0x2c6c93(0x1e1)](e[_0x2c6c93(0x209)]),_0x435087=this[_0x2c6c93(0x1ac)]();return _0x435087?_0x4e6a67['resolveTableMetadata'](this[_0x2c6c93(0x1c4)],_0x435087):void 0x0;}[_0x29001b(0x1ac)](){const _0x1f7de3=_0x29001b;var _0x1e012f;return(_0x1e012f=this[_0x1f7de3(0x20f)]()['tableSource'])==null?void 0x0:_0x1e012f[this['_tableId']];}[_0x29001b(0x175)](){const _0x244aa6=_0x29001b;return(0x0,e[_0x244aa6(0x1bd)])(this[_0x244aa6(0x20f)](),this[_0x244aa6(0x16b)]);}[_0x29001b(0x1b6)](){const _0x43a3f4=_0x29001b;return{'startRow':0x0,'endRow':Math[_0x43a3f4(0x1db)](0x0,this[_0x43a3f4(0x22e)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x43a3f4(0x19b)]()-0x1)};}[_0x29001b(0x19e)](_0x1210e0,_0x4da1e8){return{'startRow':_0x1210e0,'endRow':_0x1210e0,'startColumn':_0x4da1e8,'endColumn':_0x4da1e8};}[_0x29001b(0x1c5)](_0x39b6ea,_0x19bc9d){const _0x793066=_0x29001b;var _0x5cad4d;let _0x275afd=(_0x5cad4d=(0x0,e[_0x793066(0x1bd)])(this[_0x793066(0x20f)](),this[_0x793066(0x16b)]))==null||(_0x5cad4d=_0x5cad4d[_0x793066(0x18f)][_0x39b6ea])==null?void 0x0:_0x5cad4d['cells'][_0x19bc9d];if(!_0x275afd)return null;let _0x22f875=_0x275afd['startOffset']+0x1;return{'startOffset':_0x22f875,'endOffset':Math[_0x793066(0x1db)](_0x22f875,_0x275afd[_0x793066(0x1ea)]-0x1),'segmentId':this[_0x793066(0x21c)]};}[_0x29001b(0x1ae)](_0x431d52,_0x4341de){const _0x56067c=_0x29001b;let _0x1e6fca=this[_0x56067c(0x1c5)](_0x431d52,_0x4341de);return _0x1e6fca?Math[_0x56067c(0x1db)](_0x1e6fca[_0x56067c(0x238)],_0x1e6fca['endOffset']-0x1):null;}['getRowRange'](_0x1fc627){return this['getRowsRange'](_0x1fc627,0x1);}[_0x29001b(0x1d2)](_0x3c82d4,_0x170e79=0x1){const _0x24ef7a=_0x29001b;return{'startRow':_0x3c82d4,'endRow':_0x3c82d4+_0x170e79-0x1,'startColumn':0x0,'endColumn':Math[_0x24ef7a(0x1db)](0x0,this['getColumnCount']()-0x1)};}['getColumnRange'](_0x1c3ed4){const _0x1454f8=_0x29001b;return this[_0x1454f8(0x1fb)](_0x1c3ed4,0x1);}[_0x29001b(0x1fb)](_0x546717,_0x4b79de=0x1){const _0x5e768a=_0x29001b;return{'startRow':0x0,'endRow':Math[_0x5e768a(0x1db)](0x0,this[_0x5e768a(0x22e)]()-0x1),'startColumn':_0x546717,'endColumn':_0x546717+_0x4b79de-0x1};}[_0x29001b(0x23e)](){const _0x291efa=_0x29001b;return this[_0x291efa(0x1c0)](this['getTableRange'](),e[_0x291efa(0x1de)]['Table']);}['selectRow'](_0xec77d5){const _0x2c457b=_0x29001b;return this[_0x2c457b(0x203)](_0xec77d5,0x1);}[_0x29001b(0x203)](_0x34671a,_0x58651f=0x1){const _0x128a9c=_0x29001b;return this[_0x128a9c(0x1c0)](this[_0x128a9c(0x1d2)](_0x34671a,_0x58651f),e[_0x128a9c(0x1de)][_0x128a9c(0x1bf)]);}[_0x29001b(0x168)](_0x3d16c1){const _0x4f07c0=_0x29001b;return this[_0x4f07c0(0x1ca)](_0x3d16c1,0x1);}['selectColumns'](_0x3069d6,_0x57cdd5=0x1){const _0x543db2=_0x29001b;return this[_0x543db2(0x1c0)](this[_0x543db2(0x1fb)](_0x3069d6,_0x57cdd5),e[_0x543db2(0x1de)][_0x543db2(0x215)]);}[_0x29001b(0x191)](_0x194df2,_0x197dbc){const _0x2a0225=_0x29001b;return this[_0x2a0225(0x1c0)](this['getCellRange'](_0x194df2,_0x197dbc),e[_0x2a0225(0x1de)][_0x2a0225(0x230)]);}[_0x29001b(0x1c0)](_0x12c984,_0x5313f7=e[_0x29001b(0x1de)]['Range']){const _0x2103d5=_0x29001b;return this[_0x2103d5(0x1d4)][_0x2103d5(0x1e1)](e[_0x2103d5(0x198)])[_0x2103d5(0x19c)]({..._0x12c984,'kind':_0x5313f7,'segmentId':this[_0x2103d5(0x21c)],'tableId':this[_0x2103d5(0x16b)]}),!0x0;}[_0x29001b(0x20b)](_0x27cada){return this['insertRowsBefore'](_0x27cada,0x1);}[_0x29001b(0x219)](_0xa6d6bc){const _0x3d4a4b=_0x29001b;return this[_0x3d4a4b(0x1b0)](_0xa6d6bc,0x1);}[_0x29001b(0x1cb)](_0xe492a,_0xdcc0f8){const _0x599652=_0x29001b;let _0x1aff90=this['_getDocumentData'](),_0x15fe55=(0x0,e[_0x599652(0x1ff)])(_0x1aff90,this['_tableId'],_0xe492a,_0xdcc0f8,e[_0x599652(0x210)][_0x599652(0x1a5)],this['_getBodyPath']());return _0x15fe55?this[_0x599652(0x1df)](_0x1aff90,_0x15fe55[_0x599652(0x23a)]):!0x1;}[_0x29001b(0x1b0)](_0x108d36,_0x289837){const _0x1821bf=_0x29001b;let _0x313767=this['_getDocumentData'](),_0x1b9691=(0x0,e[_0x1821bf(0x1ff)])(_0x313767,this[_0x1821bf(0x16b)],_0x108d36,_0x289837,e[_0x1821bf(0x210)][_0x1821bf(0x1a7)],this[_0x1821bf(0x1f1)]());return _0x1b9691?this[_0x1821bf(0x1df)](_0x313767,_0x1b9691[_0x1821bf(0x23a)]):!0x1;}['appendRow'](){const _0x4ebd80=_0x29001b;return this[_0x4ebd80(0x1b0)](Math[_0x4ebd80(0x1db)](0x0,this['getRowCount']()-0x1),0x1);}['insertColumnBefore'](_0x23dee2){const _0x1514e6=_0x29001b;return this[_0x1514e6(0x222)](_0x23dee2,0x1);}[_0x29001b(0x1f6)](_0x302975){const _0x37e377=_0x29001b;return this[_0x37e377(0x1b3)](_0x302975,0x1);}[_0x29001b(0x222)](_0x1a536c,_0x409dfa){const _0xb91b7=_0x29001b;let _0xf786cd=this[_0xb91b7(0x20f)](),_0xb6f931=(0x0,e['buildInsertTableColumnsMutationActions'])(_0xf786cd,this[_0xb91b7(0x16b)],_0x1a536c,_0x409dfa,e['DocsTableInsertPosition']['Left'],{'bodyPath':this[_0xb91b7(0x1f1)]()});return _0xb6f931?this['_mutateActions'](_0xf786cd,_0xb6f931['actions']):!0x1;}[_0x29001b(0x1b3)](_0x3fc3a5,_0x583018){const _0x4ba536=_0x29001b;let _0x5e80e9=this[_0x4ba536(0x20f)](),_0x5df99a=(0x0,e[_0x4ba536(0x166)])(_0x5e80e9,this[_0x4ba536(0x16b)],_0x3fc3a5,_0x583018,e[_0x4ba536(0x210)][_0x4ba536(0x1f2)],{'bodyPath':this['_getBodyPath']()});return _0x5df99a?this['_mutateActions'](_0x5e80e9,_0x5df99a['actions']):!0x1;}[_0x29001b(0x1f5)](){const _0x3f4907=_0x29001b;return this[_0x3f4907(0x1b3)](Math[_0x3f4907(0x1db)](0x0,this['getColumnCount']()-0x1),0x1);}[_0x29001b(0x199)](_0x460fbb){return this['deleteRows'](_0x460fbb,0x1);}[_0x29001b(0x1f3)](_0x526528,_0x268cd7=0x1){const _0x453836=_0x29001b;return!!this[_0x453836(0x207)][_0x453836(0x218)](e[_0x453836(0x180)]['id'],{'endRow':_0x526528+_0x268cd7-0x1,'segmentId':this['_segmentId'],'startRow':_0x526528,'tableId':this[_0x453836(0x16b)],'unitId':this[_0x453836(0x1c4)]});}[_0x29001b(0x223)](_0x5f523c){const _0x2bb73b=_0x29001b;return this[_0x2bb73b(0x16e)](_0x5f523c,0x1);}['deleteColumns'](_0x2f0a56,_0x44215f=0x1){const _0x5852c7=_0x29001b;return!!this['_commandService'][_0x5852c7(0x218)](e['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x2f0a56+_0x44215f-0x1,'segmentId':this[_0x5852c7(0x21c)],'startColumn':_0x2f0a56,'tableId':this[_0x5852c7(0x16b)],'unitId':this[_0x5852c7(0x1c4)]});}[_0x29001b(0x231)](){const _0x358acb=_0x29001b;return!!this[_0x358acb(0x207)]['syncExecuteCommand'](e[_0x358acb(0x18a)]['id'],{'segmentId':this[_0x358acb(0x21c)],'tableId':this[_0x358acb(0x16b)],'unitId':this[_0x358acb(0x1c4)]});}[_0x29001b(0x1ec)](_0xa56820,_0x55bfd3){const _0x422aff=_0x29001b;let _0x2f4e62=this[_0x422aff(0x20f)]();return this['_mutateActions'](_0x2f4e62,(0x0,e[_0x422aff(0x182)])(_0x2f4e62,this[_0x422aff(0x16b)],_0xa56820,_0x55bfd3));}[_0x29001b(0x186)](_0x5e3822){const _0x1d7943=_0x29001b;let _0x4b2067=this['_getDocumentData']();return this[_0x1d7943(0x1df)](_0x4b2067,(0x0,e[_0x1d7943(0x17a)])(_0x4b2067,this[_0x1d7943(0x16b)],_0x5e3822,this['_getBodyPath']()));}['moveRow'](_0x2e44aa,_0x3fdfdd,_0x56b2b9=e[_0x29001b(0x210)][_0x29001b(0x1a5)]){const _0x2a22f7=_0x29001b;return this[_0x2a22f7(0x1e4)](_0x2e44aa,0x1,_0x3fdfdd,_0x56b2b9);}['moveRows'](_0x3649dd,_0xd8348b,_0xccdb5a,_0x585ba3=e[_0x29001b(0x210)]['Above']){const _0x5f1d05=_0x29001b;let _0x281f8a=this[_0x5f1d05(0x20f)](),_0x459e0d=(0x0,e[_0x5f1d05(0x234)])(_0x281f8a,this[_0x5f1d05(0x16b)],_0x3649dd,_0xccdb5a,_0xd8348b,_0x585ba3,this[_0x5f1d05(0x1f1)]());return _0x459e0d?this[_0x5f1d05(0x1df)](_0x281f8a,_0x459e0d['actions']):!0x1;}[_0x29001b(0x18e)](_0x2b0824,_0x5d9da0,_0x5f589c=e[_0x29001b(0x210)][_0x29001b(0x192)]){const _0x34d6ac=_0x29001b;return this[_0x34d6ac(0x190)](_0x2b0824,0x1,_0x5d9da0,_0x5f589c);}[_0x29001b(0x190)](_0x453e0b,_0x2b97f4,_0x4ebd9a,_0x46efa2=e[_0x29001b(0x210)][_0x29001b(0x192)]){const _0x4fe95f=_0x29001b;let _0x44b88a=this[_0x4fe95f(0x20f)](),_0x28f15e=(0x0,e[_0x4fe95f(0x211)])(_0x44b88a,this[_0x4fe95f(0x16b)],_0x453e0b,_0x4ebd9a,_0x2b97f4,_0x46efa2,this['_getBodyPath']());return _0x28f15e?this[_0x4fe95f(0x1df)](_0x44b88a,_0x28f15e[_0x4fe95f(0x23a)]):!0x1;}[_0x29001b(0x1c3)](_0x480a3e){const _0x43b4a5=_0x29001b;try{let _0x54a89a=this[_0x43b4a5(0x20f)](),_0x9daa35=(0x0,e[_0x43b4a5(0x1aa)])({'documentData':_0x54a89a,'tableId':this[_0x43b4a5(0x16b)],..._0x480a3e});return _0x9daa35?this[_0x43b4a5(0x1df)](_0x54a89a,_0x9daa35[_0x43b4a5(0x23a)],_0x480a3e):!0x1;}catch{return!0x1;}}[_0x29001b(0x1cc)](_0xb6912){const _0x3b6963=_0x29001b;try{let _0xda6417=this[_0x3b6963(0x20f)](),_0xb15620=(0x0,e[_0x3b6963(0x22d)])({'documentData':_0xda6417,'tableId':this[_0x3b6963(0x16b)],..._0xb6912});return _0xb15620?this[_0x3b6963(0x1df)](_0xda6417,_0xb15620['actions'],_0xb6912):!0x1;}catch{return!0x1;}}['setCellText'](_0xe2f180,_0x155a1b,_0x2270c4){const _0x47d21a=_0x29001b;let _0x5d3fb5=this[_0x47d21a(0x20f)](),_0x2a59ad=(0x0,e[_0x47d21a(0x220)])(this[_0x47d21a(0x239)][_0x47d21a(0x216)]()[_0x47d21a(0x1cd)](),this['_segmentId']);return this[_0x47d21a(0x1df)](_0x5d3fb5,(0x0,e[_0x47d21a(0x1b8)])({'documentData':_0x5d3fb5,'tableId':this['_tableId'],'row':_0xe2f180,'column':_0x155a1b,'text':_0x2270c4},_0x2a59ad),this[_0x47d21a(0x19e)](_0xe2f180,_0x155a1b));}[_0x29001b(0x1d3)](_0x163432,_0x2ec61b){const _0x2d9338=_0x29001b;let _0x1f470b=this['_getDocumentData']();return this['_mutateActions'](_0x1f470b,(0x0,e[_0x2d9338(0x172)])(_0x1f470b,{'tableId':this['_tableId'],..._0x163432,'value':_0x2ec61b}),_0x163432);}[_0x29001b(0x171)](_0x6ef380,_0xb1cb68){const _0xa1c2b0=_0x29001b;let _0x3a1912=this[_0xa1c2b0(0x20f)]();return this[_0xa1c2b0(0x1df)](_0x3a1912,(0x0,e[_0xa1c2b0(0x1b5)])({'documentData':_0x3a1912,'tableId':this[_0xa1c2b0(0x16b)],..._0x6ef380,'margin':_0xb1cb68}),_0x6ef380);}[_0x29001b(0x201)](_0x31b5ab){const _0x13cca9=_0x29001b;let _0x2f911e=this[_0x13cca9(0x20f)]();return this[_0x13cca9(0x1df)](_0x2f911e,(0x0,e[_0x13cca9(0x1c6)])(_0x2f911e,this[_0x13cca9(0x16b)],_0x31b5ab));}['setBorder'](_0x3fc4dc,_0x11f334){const _0x24d8dc=_0x29001b;let _0x3a2037=this[_0x24d8dc(0x20f)]();return this[_0x24d8dc(0x1df)](_0x3a2037,this[_0x24d8dc(0x1e8)](_0x3a2037,_0x3fc4dc,_0x11f334),_0x3fc4dc);}['setTableBackground'](_0x2b1b10){const _0x1164a6=_0x29001b;return this[_0x1164a6(0x1d3)](this[_0x1164a6(0x1b6)](),_0x2b1b10);}['setTableBorder'](_0x2d5e23){const _0x78898c=_0x29001b;return this[_0x78898c(0x21f)](this['getTableRange'](),_0x2d5e23);}[_0x29001b(0x204)](_0x45f64f){const _0x4cc481=_0x29001b;let _0x65bc9c=this[_0x4cc481(0x20f)](),_0x52791f=this[_0x4cc481(0x1b6)](),_0x45c0f7=_0x45f64f[_0x4cc481(0x19a)]?(0x0,e[_0x4cc481(0x172)])(_0x65bc9c,{'tableId':this[_0x4cc481(0x16b)],..._0x52791f,'value':_0x45f64f[_0x4cc481(0x19a)]}):null,_0x3aad9a=_0x45f64f[_0x4cc481(0x1d6)]?this['_buildBorderActions'](_0x65bc9c,_0x52791f,_0x45f64f['border']):null;return this[_0x4cc481(0x1df)](_0x65bc9c,t[_0x4cc481(0x17e)][_0x4cc481(0x179)](_0x45c0f7,_0x3aad9a),_0x52791f);}[_0x29001b(0x1d9)](_0x14739e,_0x5a8f86,_0x24cf49=t[_0x29001b(0x1b7)][_0x29001b(0x181)]){const _0x403aa8=_0x29001b;var _0x9dd29;let _0x444ee3=this[_0x403aa8(0x20f)]();return(_0x9dd29=_0x444ee3[_0x403aa8(0x189)])!=null&&(_0x9dd29=_0x9dd29[this[_0x403aa8(0x16b)]])!=null&&_0x9dd29[_0x403aa8(0x23f)][_0x14739e]?this[_0x403aa8(0x1df)](_0x444ee3,(0x0,e[_0x403aa8(0x1e6)])(_0x444ee3,this[_0x403aa8(0x16b)],_0x14739e,_0x5a8f86,_0x24cf49)):!0x1;}[_0x29001b(0x1ad)](_0x26dd80){const _0x28a54b=_0x29001b;var _0x28e8bc;let _0x3729d6=(_0x28e8bc=this[_0x28a54b(0x1ac)]())==null||(_0x28e8bc=_0x28e8bc['tableRows'][_0x26dd80])==null?void 0x0:_0x28e8bc['trHeight'];return _0x3729d6?t[_0x28a54b(0x1a2)][_0x28a54b(0x226)](_0x3729d6):null;}[_0x29001b(0x18d)](_0x1de02a,_0x5af1a6){const _0x338ade=_0x29001b;var _0x1e31ae;let _0x4b9fbf=this[_0x338ade(0x20f)]();return(_0x1e31ae=_0x4b9fbf['tableSource'])!=null&&(_0x1e31ae=_0x1e31ae[this['_tableId']])!=null&&_0x1e31ae[_0x338ade(0x193)][_0x1de02a]?this[_0x338ade(0x1df)](_0x4b9fbf,(0x0,e['buildResizeTableColumnActionsFromWidth'])(_0x4b9fbf,this['_tableId'],_0x1de02a,_0x5af1a6)):!0x1;}[_0x29001b(0x195)](_0x12a7d4=0x0,_0x263df2=this[_0x29001b(0x22e)]()){const _0xfe8f18=_0x29001b;let _0x495c0c=this['_getDocumentData']();return this[_0xfe8f18(0x1df)](_0x495c0c,(0x0,e[_0xfe8f18(0x20e)])(_0x495c0c,this['_tableId'],_0x12a7d4,_0x12a7d4+_0x263df2-0x1));}[_0x29001b(0x1b2)](_0x4f8e30=0x0,_0x3e66c0=this[_0x29001b(0x19b)]()){const _0x14792f=_0x29001b;let _0x49aa34=this[_0x14792f(0x20f)]();return this[_0x14792f(0x1df)](_0x49aa34,(0x0,e[_0x14792f(0x1d0)])(_0x49aa34,this[_0x14792f(0x16b)],_0x4f8e30,_0x4f8e30+_0x3e66c0-0x1));}[_0x29001b(0x18b)](){var _0x5d0b3d;return((_0x5d0b3d=this['getMetadata']())==null?void 0x0:_0x5d0b3d['headerRowCount'])??0x0;}[_0x29001b(0x170)](_0x358396){const _0x336073=_0x29001b;let _0x39d9f5=this[_0x336073(0x20f)](),_0x4e98bc=(0x0,e[_0x336073(0x19d)])(_0x39d9f5,this[_0x336073(0x16b)],_0x358396);return _0x4e98bc?this['_mutateActions'](_0x39d9f5,_0x4e98bc[_0x336073(0x23a)]):!0x1;}['pinHeaderRows'](_0x2b0773){const _0x515073=_0x29001b;return this[_0x515073(0x170)](_0x2b0773);}['hasTitleRow'](){const _0x25b6b5=_0x29001b;var _0x12888e;return((_0x12888e=this[_0x25b6b5(0x1b4)]())==null?void 0x0:_0x12888e['titleRow'])??!0x1;}['insertTitleRow'](){const _0x53c753=_0x29001b;let _0x42053c=this[_0x53c753(0x20f)](),_0x39eae0=(0x0,e[_0x53c753(0x233)])(_0x42053c,this[_0x53c753(0x16b)],this[_0x53c753(0x1f1)]());return _0x39eae0?this[_0x53c753(0x1df)](_0x42053c,_0x39eae0['actions']):!0x1;}[_0x29001b(0x225)](_0x43a391,_0x478146){const _0x569015=_0x29001b;return!!this[_0x569015(0x207)][_0x569015(0x218)](e[_0x569015(0x236)]['id'],{'unitId':this[_0x569015(0x1c4)],'tableId':this[_0x569015(0x16b)],'segmentId':this[_0x569015(0x21c)],'column':_0x43a391,'config':_0x478146});}['sortByColumn'](_0x206aca,_0x1a56d5){const _0x714534=_0x29001b;let _0x4f560a=this['_getDocumentData']();return this[_0x714534(0x1df)](_0x4f560a,(0x0,e[_0x714534(0x169)])(_0x4f560a,this['_serializeModel'](),this[_0x714534(0x16b)],_0x206aca,_0x1a56d5,this[_0x714534(0x1f1)]()));}['_buildBorderActions'](_0x55ee1e,_0xcbc4f9,_0x4ff8c5){const _0x42a77f=_0x29001b;return(0x0,e[_0x42a77f(0x1f4)])({'documentData':_0x55ee1e,'tableId':this[_0x42a77f(0x16b)],..._0xcbc4f9,'preset':_0x4ff8c5[_0x42a77f(0x1fe)]??e[_0x42a77f(0x20a)][_0x42a77f(0x1a6)],'border':_0x4ff8c5['border']??{'color':{'rgb':_0x4ff8c5[_0x42a77f(0x1a8)]??this[_0x42a77f(0x1d4)][_0x42a77f(0x1e1)](t[_0x42a77f(0x1c2)])['getColorFromTheme']('gray.900')},'width':{'v':_0x4ff8c5[_0x42a77f(0x1e5)]??0x1},'dashStyle':t['DashStyleType'][_0x42a77f(0x19f)]}});}[_0x29001b(0x20f)](){const _0x75e6cf=_0x29001b;let _0xce042f=this['_document'][_0x75e6cf(0x216)]()[_0x75e6cf(0x1cd)]();return this[_0x75e6cf(0x21c)]?{...this[_0x75e6cf(0x239)][_0x75e6cf(0x216)](this['_segmentId'])['getSnapshot'](),'documentStyle':_0xce042f[_0x75e6cf(0x202)],'tableSource':_0xce042f[_0x75e6cf(0x189)]}:_0xce042f;}[_0x29001b(0x1a0)](){const _0x4f7d51=_0x29001b;return this['_injector']['get'](e[_0x4f7d51(0x209)])['serializeDocument'](this['_unitId'],this[_0x4f7d51(0x239)][_0x4f7d51(0x216)]()[_0x4f7d51(0x1cd)]());}[_0x29001b(0x1f1)](){const _0x6ff8af=_0x29001b;return(0x0,e[_0x6ff8af(0x220)])(this[_0x6ff8af(0x239)][_0x6ff8af(0x216)]()['getSnapshot'](),this[_0x6ff8af(0x21c)]);}[_0x29001b(0x1df)](_0x159ea6,_0x2246ae,_0x1de35b){const _0x559f28=_0x29001b;return(0x0,e[_0x559f28(0x165)])(this[_0x559f28(0x207)],this[_0x559f28(0x1c4)],_0x159ea6,_0x2246ae,_0x1de35b?{'tableId':this[_0x559f28(0x16b)],'segmentId':this[_0x559f28(0x21c)],..._0x1de35b}:void 0x0);}};f=d([u(0x3,t[_0x29001b(0x1dc)]),u(0x4,(0x0,t[_0x29001b(0x17c)])(t['Injector']))],f);var p=class extends r[_0x29001b(0x1ee)]{[_0x29001b(0x1d1)](_0x1ec05f=''){const _0x129044=_0x29001b;return this[_0x129044(0x20c)](_0x1ec05f)[_0x129044(0x228)](_0x5379bf=>this[_0x129044(0x196)](_0x5379bf[_0x129044(0x178)],_0x1ec05f));}[_0x29001b(0x1e3)](_0x34ebf6,_0x3a9d3b=''){const _0x206f02=_0x29001b;return this[_0x206f02(0x20c)](_0x3a9d3b)['some'](_0x193f7d=>_0x193f7d[_0x206f02(0x178)]===_0x34ebf6)?this[_0x206f02(0x196)](_0x34ebf6,_0x3a9d3b):null;}['getTableAt'](_0x4949d7,_0x427420=''){const _0x1a966f=_0x29001b;var _0x2233cc;let _0x3d7b4d=(_0x2233cc=this[_0x1a966f(0x20c)](_0x427420)[_0x4949d7])==null?void 0x0:_0x2233cc[_0x1a966f(0x178)];return _0x3d7b4d?this[_0x1a966f(0x196)](_0x3d7b4d,_0x427420):null;}[_0x29001b(0x1c7)](){const _0x390860=_0x29001b;let _0x434eea=this[_0x390860(0x1d4)][_0x390860(0x1e1)](e['DocsTableSelectionService'])[_0x390860(0x237)]();return _0x434eea!=null&&_0x434eea[_0x390860(0x178)]?this[_0x390860(0x196)](_0x434eea[_0x390860(0x178)],_0x434eea[_0x390860(0x1ef)]):null;}[_0x29001b(0x21a)](_0x3b0605,_0x7e1ec1=''){const _0x1e583b=_0x29001b;return this[_0x1e583b(0x184)](_0x3b0605,_0x7e1ec1)[0x0]??null;}[_0x29001b(0x184)](_0xd30b11,_0x584566=''){const _0x23e753=_0x29001b;let _0x56c468=this[_0x23e753(0x16c)](_0x584566),_0x15de8a=typeof _0xd30b11=='string'?{'text':_0xd30b11}:_0xd30b11;return this[_0x23e753(0x1d1)](_0x584566)['filter'](_0x475238=>{const _0x45fcaa=_0x23e753;let _0x2b321d=_0x475238[_0x45fcaa(0x1be)]();return!(_0x15de8a['tableId']&&_0x2b321d!==_0x15de8a[_0x45fcaa(0x178)]||_0x15de8a[_0x45fcaa(0x23d)]&&!this[_0x45fcaa(0x177)](_0x56c468,_0x2b321d,_0x15de8a[_0x45fcaa(0x23d)])||_0x15de8a[_0x45fcaa(0x1a3)]&&!this[_0x45fcaa(0x164)](_0x475238,0x0,_0x15de8a[_0x45fcaa(0x1a3)])||_0x15de8a['titleText']&&!this[_0x45fcaa(0x164)](_0x475238,0x0,_0x15de8a[_0x45fcaa(0x1da)]));});}[_0x29001b(0x1ed)](_0x3d22ea,_0x2b7b02,_0x462992={}){const _0x4510c1=_0x29001b;let _0x3dd185=this[_0x4510c1(0x1d4)][_0x4510c1(0x1e1)](t[_0x4510c1(0x1dc)]),_0x16c6b8=_0x462992[_0x4510c1(0x178)]??(0x0,t['generateRandomId'])(0x6);return _0x3dd185['syncExecuteCommand'](e[_0x4510c1(0x217)]['id'],{..._0x462992,'unitId':this[_0x4510c1(0x1be)](),'rows':_0x3d22ea,'columns':_0x2b7b02,'tableId':_0x16c6b8})?this['_createFDocumentTable'](_0x16c6b8,_0x462992[_0x4510c1(0x1ef)]??''):null;}[_0x29001b(0x1cf)](_0x2daeb1,_0x1ed744={}){const _0x38bdcd=_0x29001b;let _0x30dc5c=this[_0x38bdcd(0x1d4)]['get'](t['ICommandService']),_0x54d167=_0x1ed744[_0x38bdcd(0x178)]??(0x0,t['generateRandomId'])(0x6);return _0x30dc5c['syncExecuteCommand'](e[_0x38bdcd(0x217)]['id'],{..._0x1ed744,'unitId':this[_0x38bdcd(0x1be)](),'values':_0x2daeb1,'tableId':_0x54d167})?this[_0x38bdcd(0x196)](_0x54d167,_0x1ed744['segmentId']??''):null;}['_getTables'](_0x126f90=''){let {tables:_0x5e2a0b=[]}=this['getBody'](_0x126f90);return _0x5e2a0b;}[_0x29001b(0x16c)](_0x3894ab=''){const _0x247956=_0x29001b;let _0xf00b47=this[_0x247956(0x216)]()[_0x247956(0x1cd)]();return _0x3894ab?{...this['getDocumentDataModel'](_0x3894ab)['getSnapshot'](),'documentStyle':_0xf00b47['documentStyle'],'tableSource':_0xf00b47[_0x247956(0x189)]}:_0xf00b47;}[_0x29001b(0x196)](_0x864cc6,_0x4b935b=''){const _0x1e6705=_0x29001b;return this[_0x1e6705(0x1d4)]['createInstance'](f,this,_0x864cc6,_0x4b935b);}[_0x29001b(0x177)](_0x392e00,_0x1359ff,_0x45b791){const _0x287c4f=_0x29001b;var _0x5ca83a;let _0x4da0e8=(0x0,e['getTableRangeById'])(_0x392e00,_0x1359ff);if(!_0x4da0e8)return!0x1;let _0x2cb583=(_0x5ca83a=_0x392e00[_0x287c4f(0x17f)])==null?void 0x0:_0x5ca83a[_0x287c4f(0x1fc)];return _0x2cb583?_0x2cb583[_0x287c4f(0x176)](_0x4da0e8[_0x287c4f(0x238)],_0x4da0e8[_0x287c4f(0x1ea)])['includes'](_0x45b791):!0x1;}[_0x29001b(0x164)](_0x17ca22,_0x567d3b,_0x27bc22){const _0x416266=_0x29001b;return Array[_0x416266(0x167)]({'length':_0x17ca22[_0x416266(0x19b)]()},(_0x35044d,_0x166511)=>_0x17ca22[_0x416266(0x1f0)](_0x567d3b,_0x166511))[_0x416266(0x212)](_0x312da5=>_0x312da5[_0x416266(0x1e0)](_0x27bc22));}};r[_0x29001b(0x1ee)][_0x29001b(0x1fd)](p),Object['defineProperty'](exports,_0x29001b(0x1d7),{'enumerable':!0x0,'get':function(){return f;}}),exports[_0x29001b(0x21d)]=a;
1
+ const _0x116ad5=_0x2255;(function(_0x1f79cb,_0x121f2e){const _0x4b83aa=_0x2255,_0x4b238f=_0x1f79cb();while(!![]){try{const _0x26df5c=-parseInt(_0x4b83aa(0x132))/0x1+-parseInt(_0x4b83aa(0x154))/0x2*(parseInt(_0x4b83aa(0x18e))/0x3)+-parseInt(_0x4b83aa(0xc4))/0x4*(parseInt(_0x4b83aa(0x189))/0x5)+parseInt(_0x4b83aa(0x187))/0x6*(-parseInt(_0x4b83aa(0x133))/0x7)+-parseInt(_0x4b83aa(0x122))/0x8*(parseInt(_0x4b83aa(0x167))/0x9)+-parseInt(_0x4b83aa(0x157))/0xa*(-parseInt(_0x4b83aa(0x177))/0xb)+parseInt(_0x4b83aa(0xc3))/0xc*(parseInt(_0x4b83aa(0x150))/0xd);if(_0x26df5c===_0x121f2e)break;else _0x4b238f['push'](_0x4b238f['shift']());}catch(_0x16492c){_0x4b238f['push'](_0x4b238f['shift']());}}}(_0x1aad,0xd9d31),Object['defineProperty'](exports,Symbol[_0x116ad5(0x19a)],{'value':_0x116ad5(0x196)}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/core/facade'),r=require('@univerjs/docs/facade');var i=class extends n[_0x116ad5(0x175)]{get[_0x116ad5(0x166)](){return e['DocsTableInsertTablePosition'];}get[_0x116ad5(0x136)](){const _0x41f93b=_0x116ad5;return e[_0x41f93b(0x136)];}get[_0x116ad5(0x13f)](){const _0x3f0b10=_0x116ad5;return e[_0x3f0b10(0x13f)];}get['DocsTableRowInsertPosition'](){const _0x28774a=_0x116ad5;return e[_0x28774a(0x170)];}get['DocsTableColumnInsertPosition'](){const _0x3feb16=_0x116ad5;return e[_0x3feb16(0x14e)];}get[_0x116ad5(0x106)](){const _0x4a86f4=_0x116ad5;return e[_0x4a86f4(0x106)];}get['DocsTableSortDirection'](){return e['DocsTableSortDirection'];}get[_0x116ad5(0x107)](){const _0x1b6a41=_0x116ad5;return t[_0x1b6a41(0x107)];}};function _0x2255(_0x316506,_0x30c9f4){_0x316506=_0x316506-0xbd;const _0x1aad5c=_0x1aad();let _0x2255e1=_0x1aad5c[_0x316506];return _0x2255e1;}n[_0x116ad5(0x175)]['extend'](i);var a=class{constructor(_0x3bc308,_0x3116cd,_0x262627){const _0x19c355=_0x116ad5;this[_0x19c355(0xc8)]=_0x3bc308,this[_0x19c355(0x13c)]=_0x3116cd,this['_column']=_0x262627;}['getTable'](){return this['_table'];}['getRowIndex'](){const _0x1d32ea=_0x116ad5;return this[_0x1d32ea(0x13c)];}[_0x116ad5(0x148)](){return this['_column'];}[_0x116ad5(0xff)](){const _0x47994c=_0x116ad5;return this['_table'][_0x47994c(0xda)](this['_row'],this[_0x47994c(0xce)]);}['getContentRange'](){const _0xbd10eb=_0x116ad5;return this[_0xbd10eb(0xc8)][_0xbd10eb(0x153)](this[_0xbd10eb(0x13c)],this[_0xbd10eb(0xce)]);}[_0x116ad5(0x130)](){const _0x2fdb0b=_0x116ad5;return this[_0x2fdb0b(0xc8)]['getCellInsertOffset'](this[_0x2fdb0b(0x13c)],this[_0x2fdb0b(0xce)]);}[_0x116ad5(0x120)](){const _0x76eb54=_0x116ad5;return this[_0x76eb54(0xc8)]['getCellMargin'](this[_0x76eb54(0x13c)],this['_column']);}[_0x116ad5(0xec)](){const _0x463641=_0x116ad5;return this[_0x463641(0xc8)][_0x463641(0x10d)](this[_0x463641(0x13c)],this[_0x463641(0xce)]);}[_0x116ad5(0x138)](_0x34e3eb){const _0x3a7f42=_0x116ad5;return this['_table'][_0x3a7f42(0x101)](this[_0x3a7f42(0xc8)][_0x3a7f42(0x127)](this[_0x3a7f42(0x13c)],this[_0x3a7f42(0xce)]),_0x34e3eb);}[_0x116ad5(0x11a)](){const _0x1aa9c9=_0x116ad5;return this[_0x1aa9c9(0xc8)]['setCellMargin'](this[_0x1aa9c9(0xc8)][_0x1aa9c9(0x127)](this[_0x1aa9c9(0x13c)],this['_column']),null);}['setText'](_0x5d9f39){const _0x4216a2=_0x116ad5;return this[_0x4216a2(0xc8)]['setCellText'](this[_0x4216a2(0x13c)],this[_0x4216a2(0xce)],_0x5d9f39);}[_0x116ad5(0xfb)](_0x1893c4){const _0xda0ff7=_0x116ad5;return this[_0xda0ff7(0xc8)][_0xda0ff7(0xf3)](this[_0xda0ff7(0xc8)][_0xda0ff7(0x127)](this[_0xda0ff7(0x13c)],this['_column']),_0x1893c4);}[_0x116ad5(0x176)](_0x3d4fce){const _0x46e10a=_0x116ad5;return this[_0x46e10a(0xc8)][_0x46e10a(0x176)](this[_0x46e10a(0xc8)][_0x46e10a(0x127)](this[_0x46e10a(0x13c)],this[_0x46e10a(0xce)]),_0x3d4fce);}[_0x116ad5(0x190)](_0x11d735,_0x59cbdb){const _0x522eea=_0x116ad5;return this[_0x522eea(0xc8)][_0x522eea(0x16a)]({'startRow':this[_0x522eea(0x13c)],'startColumn':this[_0x522eea(0xce)],'endRow':this[_0x522eea(0x13c)]+_0x11d735-0x1,'endColumn':this[_0x522eea(0xce)]+_0x59cbdb-0x1});}[_0x116ad5(0x114)](){const _0x569dbd=_0x116ad5;return this['_table']['unmergeCells'](this['_table']['getCellRange'](this[_0x569dbd(0x13c)],this['_column']));}};function o(_0x2e1e9e){'@babel/helpers - typeof';const _0x1e8225=_0x116ad5;return o=typeof Symbol==_0x1e8225(0x14b)&&typeof Symbol[_0x1e8225(0x124)]==_0x1e8225(0xf4)?function(_0x3bd5ea){return typeof _0x3bd5ea;}:function(_0xb7147e){const _0x12d222=_0x1e8225;return _0xb7147e&&typeof Symbol=='function'&&_0xb7147e[_0x12d222(0x109)]===Symbol&&_0xb7147e!==Symbol[_0x12d222(0x12d)]?'symbol':typeof _0xb7147e;},o(_0x2e1e9e);}function s(_0x3ab39e,_0x2765f0){const _0xfc7bd1=_0x116ad5;if(o(_0x3ab39e)!=_0xfc7bd1(0x110)||!_0x3ab39e)return _0x3ab39e;var _0x484470=_0x3ab39e[Symbol['toPrimitive']];if(_0x484470!==void 0x0){var _0x502b20=_0x484470[_0xfc7bd1(0x128)](_0x3ab39e,_0x2765f0||_0xfc7bd1(0xdf));if(o(_0x502b20)!=_0xfc7bd1(0x110))return _0x502b20;throw TypeError(_0xfc7bd1(0x195));}return(_0x2765f0===_0xfc7bd1(0x12f)?String:Number)(_0x3ab39e);}function _0x1aad(){const _0x36b435=['20628UEpCLg','body','buildMoveTableColumnsMutationActions','mergeCells','Inject','buildMoveTableToOffsetMutationActions','replace','_document','ThemeService','DocsTableRowInsertPosition','buildInsertTableTitleRowMutationActions','deleteColumns','tableRows','get','FEnum','setBorder','33qBYGuG','DocsTableInsertPosition','getOwnPropertyDescriptor','_serializeModel','insertColumnsAfter','getTableRange','insertTable','getStableTableSelection','documentStyle','tableId','Range','appendRow','buildSortTableMutationActions','selectRows','headerText','getTableActionBodyPath','6UVDKRB','headerRowCount','3055ZkmcNn','serializeDocument','getMetadata','buildInsertTableColumnsMutationActions','findTables','2925ZjWSba','TableRowHeightRule','mergeTo','buildResizeTableColumnActionsFromWidth','size','getRowRange','DocsTableDeleteTableCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Module','describe','width','setStructuralSelection','toStringTag','buildSetTableHeaderRowCountMutationActions','insertRowAfter','DocsTableModel','createInstance','_tableId','setDefaultCellMargin','getRowCount','setCellText','12BqJLee','7792VxAKwX','getBody','insertColumnsBefore','selectCell','_table','insertRowsBefore','DocsTableInsertTableCommand','insertRowsAfter','moveRows','_injector','_column','buildMoveFloatingTableMutationActions','insertTableFromData','includes','Right','_buildBorderActions','cells','buildResizeTableRowActionsFromHeight','segmentId','setHeaderRowCount','gray.900','moveColumns','getCellText','moveTableToOffset','_getBodyPath','_tableContainsText','setColumnType','default','getRowsRange','_unitId','buildDistributeTableRowsMutationActions','border','setTableStyle','getColumnsRange','tableSource','_mutateActions','selectColumns','startOffset','getSource','preset','getMarginOverride','distributeColumns','selectRow','DocsTableSelectionService','setTableBorder','getSegmentId','getTableRangeById','setCellBackground','symbol','SOLID','syncExecuteCommand','buildSetTableDefaultCellMarginMutationActions','_getDocumentData','Below','tableColumns','setBackgroundColor','text','DocsTableDeleteColumnsCommand','rows','getText','Above','setCellMargin','getDocumentDataModel','buildDistributeTableColumnsMutationActions','decorate','buildMergeCellsMutationActions','DocsTableBorderPreset','DashStyleType','_getTables','constructor','setColumnWidth','getDefaultCellMarginOverride','map','getCellMarginOverride','Row','getColumnCount','object','executeRichTextTableActions','Left','trHeight','unmerge','deleteColumn','endOffset','buildSetTableCellTextMutationActions','getId','FDocumentTableCell','clearMarginOverride','buildUnmergeCellsMutationActions','backgroundColor','_rowContainsText','dataStream','_commandService','getMargin','titleText','4608ePgnIy','deleteRow','iterator','appendColumn','selectRange','getCellRange','call','DEFAULT_DOCS_TABLE_CELL_MARGIN','getTables','titleRow','getTable','prototype','defineProperty','string','getInsertOffset','Table','108773RbEZSq','3876124jjYpOq','generateRandomId','buildSetTableBackgroundMutationActions','DocsTableColumnType','getHeaderRowCount','setMargin','extend','insertColumnAfter','getRange','_row','actions','some','DocsTableSelectionKind','AT_LEAST','cellMargin','setTableBackground','max','from','selectTable','margin','filter','getColumnIndex','getInfo','moveColumn','function','_createFDocumentTable','FDocument','DocsTableColumnInsertPosition','length','49236746bIArLI','hasTitleRow','buildSetTableBorderMutationActions','getCellContentRange','2982PTzKzX','getCellMargin','columnTypes','5771390NngvwO','_getTableDocumentData','tableCells','slice','_segmentId','buildInsertTableRowsMutationActions','insertRowBefore','getDefaultCellMargin','Tools','deepClone','deleteRows','ICommandService','pinHeaderRows','getSnapshot','selectColumn','DocsTableInsertTablePosition'];_0x1aad=function(){return _0x36b435;};return _0x1aad();}function c(_0x42004b){const _0xe26931=_0x116ad5;var _0x518beb=s(_0x42004b,_0xe26931(0x12f));return o(_0x518beb)==_0xe26931(0xf4)?_0x518beb:_0x518beb+'';}function l(_0x1abcc5,_0x5eb38e,_0x352da0){const _0x5471e6=_0x116ad5;return(_0x5eb38e=c(_0x5eb38e))in _0x1abcc5?Object[_0x5471e6(0x12e)](_0x1abcc5,_0x5eb38e,{'value':_0x352da0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1abcc5[_0x5eb38e]=_0x352da0,_0x1abcc5;}function u(_0x332af6,_0x2d989c){return function(_0x5dc8d4,_0x23b02d){_0x2d989c(_0x5dc8d4,_0x23b02d,_0x332af6);};}function d(_0x32e730,_0x264da4,_0x2af984,_0x1565cf){const _0x35d4dc=_0x116ad5;var _0x1ebe17=arguments['length'],_0x1108a9=_0x1ebe17<0x3?_0x264da4:_0x1565cf===null?_0x1565cf=Object[_0x35d4dc(0x179)](_0x264da4,_0x2af984):_0x1565cf,_0x16aff0;if(typeof Reflect==_0x35d4dc(0x110)&&typeof Reflect[_0x35d4dc(0x104)]==_0x35d4dc(0x14b))_0x1108a9=Reflect[_0x35d4dc(0x104)](_0x32e730,_0x264da4,_0x2af984,_0x1565cf);else{for(var _0x598a9e=_0x32e730['length']-0x1;_0x598a9e>=0x0;_0x598a9e--)(_0x16aff0=_0x32e730[_0x598a9e])&&(_0x1108a9=(_0x1ebe17<0x3?_0x16aff0(_0x1108a9):_0x1ebe17>0x3?_0x16aff0(_0x264da4,_0x2af984,_0x1108a9):_0x16aff0(_0x264da4,_0x2af984))||_0x1108a9);}return _0x1ebe17>0x3&&_0x1108a9&&Object[_0x35d4dc(0x12e)](_0x264da4,_0x2af984,_0x1108a9),_0x1108a9;}let f=class{constructor(_0x4013d8,_0x2843e8,_0x2fc971,_0xfdc625,_0x49f7c7){const _0x593081=_0x116ad5;this[_0x593081(0x16e)]=_0x4013d8,this[_0x593081(0xbf)]=_0x2843e8,this[_0x593081(0x15b)]=_0x2fc971,this[_0x593081(0x11f)]=_0xfdc625,this[_0x593081(0xcd)]=_0x49f7c7,l(this,_0x593081(0xe1),void 0x0),this[_0x593081(0xe1)]=this[_0x593081(0x16e)]['getId']();}[_0x116ad5(0x118)](){const _0x4c4a14=_0x116ad5;return this[_0x4c4a14(0xbf)];}[_0x116ad5(0xf1)](){const _0x47c073=_0x116ad5;return this[_0x47c073(0x15b)];}[_0x116ad5(0x149)](){const _0x28becb=_0x116ad5;return{'id':this[_0x28becb(0xbf)],'rowCount':this[_0x28becb(0xc1)](),'columnCount':this['getColumnCount'](),'metadata':this[_0x28becb(0x18b)](),'source':this['getSource']()};}[_0x116ad5(0x197)](){const _0x2e03db=_0x116ad5;let _0x105819=this[_0x2e03db(0x18b)](),_0x23b538=this[_0x2e03db(0xea)](),_0x3503a8=this[_0x2e03db(0x10f)]();return{'id':this[_0x2e03db(0xbf)],'rowCount':this[_0x2e03db(0xc1)](),'columnCount':_0x3503a8,'headerRowCount':(_0x105819==null?void 0x0:_0x105819['headerRowCount'])??0x0,'titleRow':(_0x105819==null?void 0x0:_0x105819[_0x2e03db(0x12b)])??!0x1,'columns':Array[_0x2e03db(0x144)]({'length':_0x3503a8},(_0x47b092,_0x1d91eb)=>{const _0x368e33=_0x2e03db;var _0x4f4311,_0x435951;return{'index':_0x1d91eb,'type':_0x105819==null||(_0x4f4311=_0x105819[_0x368e33(0x156)])==null||(_0x4f4311=_0x4f4311[_0x1d91eb])==null?void 0x0:_0x4f4311['type'],'width':_0x23b538==null||(_0x435951=_0x23b538[_0x368e33(0xfa)][_0x1d91eb])==null?void 0x0:_0x435951[_0x368e33(0x192)][_0x368e33(0x198)]['v']};}),'sampleRows':Array[_0x2e03db(0x144)]({'length':this[_0x2e03db(0xc1)]()},(_0x5e7371,_0x549774)=>Array[_0x2e03db(0x144)]({'length':_0x3503a8},(_0xd4bde8,_0x30c81f)=>this['getCellText'](_0x549774,_0x30c81f)))['filter'](_0x1e6c3c=>_0x1e6c3c[_0x2e03db(0x13e)](_0x5888f1=>_0x5888f1[_0x2e03db(0x14f)]>0x0))[_0x2e03db(0x15a)](0x0,0x5)};}[_0x116ad5(0xc1)](){const _0x54a4fc=_0x116ad5;var _0x354981;return((_0x354981=this[_0x54a4fc(0xea)]())==null?void 0x0:_0x354981['tableRows'][_0x54a4fc(0x14f)])??0x0;}[_0x116ad5(0x10f)](){const _0x1aa355=_0x116ad5;var _0x3e3d16;return((_0x3e3d16=this['getSource']())==null?void 0x0:_0x3e3d16[_0x1aa355(0xfa)][_0x1aa355(0x14f)])??0x0;}['getCell'](_0x4d0692,_0x4802bd){const _0x55e618=_0x116ad5;var _0x37ccf4;return(_0x37ccf4=this[_0x55e618(0xea)]())!=null&&(_0x37ccf4=_0x37ccf4[_0x55e618(0x173)][_0x4d0692])!=null&&_0x37ccf4[_0x55e618(0x159)][_0x4802bd]?this[_0x55e618(0xcd)][_0x55e618(0xbe)](a,this,_0x4d0692,_0x4802bd):null;}['getCellText'](_0x5e9a3c,_0x179bfd){const _0xe3b388=_0x116ad5;var _0x12ea52,_0x2ebb37;let _0x3b662d=(_0x12ea52=(0x0,e['getTableRangeById'])(this['_getDocumentData'](),this[_0xe3b388(0xbf)]))==null||(_0x12ea52=_0x12ea52[_0xe3b388(0xfe)][_0x5e9a3c])==null?void 0x0:_0x12ea52[_0xe3b388(0xd4)][_0x179bfd];return _0x3b662d?((_0x2ebb37=this[_0xe3b388(0xf8)]()[_0xe3b388(0x168)])==null?void 0x0:_0x2ebb37[_0xe3b388(0x11e)][_0xe3b388(0x15a)](_0x3b662d[_0xe3b388(0xe9)]+0x1,_0x3b662d[_0xe3b388(0x116)])[_0xe3b388(0x16d)](/\r\n$/,''))??'':'';}[_0x116ad5(0x155)](_0x52dab7,_0x122053){const _0x41aa84=_0x116ad5;var _0x16eb64;let _0x22f40f=this['getSource'](),_0x88e36b=_0x22f40f==null||(_0x16eb64=_0x22f40f[_0x41aa84(0x173)][_0x52dab7])==null?void 0x0:_0x16eb64['tableCells'][_0x122053];return _0x88e36b?t['Tools'][_0x41aa84(0x160)](_0x88e36b[_0x41aa84(0x146)]??_0x22f40f['cellMargin']??e[_0x41aa84(0x129)]):null;}['getCellMarginOverride'](_0x42bdc6,_0x257ac1){const _0x4cd423=_0x116ad5;var _0x5263ad;let _0x2f6927=(_0x5263ad=this['getSource']())==null||(_0x5263ad=_0x5263ad[_0x4cd423(0x173)][_0x42bdc6])==null?void 0x0:_0x5263ad['tableCells'][_0x257ac1];return _0x2f6927!=null&&_0x2f6927['margin']?t[_0x4cd423(0x15f)]['deepClone'](_0x2f6927[_0x4cd423(0x146)]):null;}[_0x116ad5(0x15e)](){const _0x43c76f=_0x116ad5;var _0x127561;return t['Tools'][_0x43c76f(0x160)](((_0x127561=this['getSource']())==null?void 0x0:_0x127561[_0x43c76f(0x141)])??e[_0x43c76f(0x129)]);}[_0x116ad5(0x10b)](){const _0x2f8b26=_0x116ad5;var _0x47ec6b;let _0x801f47=(_0x47ec6b=this[_0x2f8b26(0xea)]())==null?void 0x0:_0x47ec6b[_0x2f8b26(0x141)];return _0x801f47?t[_0x2f8b26(0x15f)][_0x2f8b26(0x160)](_0x801f47):null;}[_0x116ad5(0x18b)](){const _0x3b372c=_0x116ad5;let _0x37b9cf=this['_injector']['get'](e[_0x3b372c(0xbd)]),_0x20cdb9=this[_0x3b372c(0xea)]();return _0x20cdb9?_0x37b9cf['resolveTableMetadata'](this[_0x3b372c(0xe1)],_0x20cdb9):void 0x0;}[_0x116ad5(0xea)](){const _0x278763=_0x116ad5;var _0x1053db;return(_0x1053db=this['_getDocumentData']()[_0x278763(0xe6)])==null?void 0x0:_0x1053db[this['_tableId']];}[_0x116ad5(0x13b)](){const _0x42bb9c=_0x116ad5;return(0x0,e[_0x42bb9c(0xf2)])(this[_0x42bb9c(0xf8)](),this[_0x42bb9c(0xbf)]);}[_0x116ad5(0x17c)](){const _0x26462e=_0x116ad5;return{'startRow':0x0,'endRow':Math[_0x26462e(0x143)](0x0,this[_0x26462e(0xc1)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x26462e(0x143)](0x0,this['getColumnCount']()-0x1)};}[_0x116ad5(0x127)](_0x416f25,_0x2a8b40){return{'startRow':_0x416f25,'endRow':_0x416f25,'startColumn':_0x2a8b40,'endColumn':_0x2a8b40};}[_0x116ad5(0x153)](_0x16c42b,_0x1e2303){const _0x1e1119=_0x116ad5;var _0x2c8388;let _0x3601c2=(_0x2c8388=(0x0,e['getTableRangeById'])(this[_0x1e1119(0xf8)](),this[_0x1e1119(0xbf)]))==null||(_0x2c8388=_0x2c8388['rows'][_0x16c42b])==null?void 0x0:_0x2c8388[_0x1e1119(0xd4)][_0x1e2303];if(!_0x3601c2)return null;let _0x106176=_0x3601c2[_0x1e1119(0xe9)]+0x1;return{'startOffset':_0x106176,'endOffset':Math[_0x1e1119(0x143)](_0x106176,_0x3601c2['endOffset']-0x1),'segmentId':this[_0x1e1119(0x15b)]};}['getCellInsertOffset'](_0x481509,_0x554783){const _0x31d495=_0x116ad5;let _0x6e5f7b=this[_0x31d495(0x153)](_0x481509,_0x554783);return _0x6e5f7b?Math[_0x31d495(0x143)](_0x6e5f7b['startOffset'],_0x6e5f7b['endOffset']-0x1):null;}[_0x116ad5(0x193)](_0x14bc15){const _0x329898=_0x116ad5;return this[_0x329898(0xe0)](_0x14bc15,0x1);}['getRowsRange'](_0x1f13b7,_0x12b2e4=0x1){const _0x145695=_0x116ad5;return{'startRow':_0x1f13b7,'endRow':_0x1f13b7+_0x12b2e4-0x1,'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x145695(0x10f)]()-0x1)};}['getColumnRange'](_0xc1a17d){const _0x150a16=_0x116ad5;return this[_0x150a16(0xe5)](_0xc1a17d,0x1);}['getColumnsRange'](_0x4ecb47,_0x1e5269=0x1){const _0x2928ba=_0x116ad5;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x2928ba(0xc1)]()-0x1),'startColumn':_0x4ecb47,'endColumn':_0x4ecb47+_0x1e5269-0x1};}[_0x116ad5(0x145)](){const _0x4ca61d=_0x116ad5;return this[_0x4ca61d(0x126)](this[_0x4ca61d(0x17c)](),e['DocsTableSelectionKind'][_0x4ca61d(0x131)]);}[_0x116ad5(0xee)](_0xf32d6d){return this['selectRows'](_0xf32d6d,0x1);}[_0x116ad5(0x184)](_0x527b78,_0x96078b=0x1){const _0x17a1aa=_0x116ad5;return this[_0x17a1aa(0x126)](this['getRowsRange'](_0x527b78,_0x96078b),e[_0x17a1aa(0x13f)][_0x17a1aa(0x10e)]);}[_0x116ad5(0x165)](_0x9026c8){const _0x24a639=_0x116ad5;return this[_0x24a639(0xe8)](_0x9026c8,0x1);}[_0x116ad5(0xe8)](_0x313830,_0x3f4e9d=0x1){const _0x143fe7=_0x116ad5;return this[_0x143fe7(0x126)](this[_0x143fe7(0xe5)](_0x313830,_0x3f4e9d),e['DocsTableSelectionKind']['Column']);}[_0x116ad5(0xc7)](_0x56e85d,_0x3e3356){const _0x9c1275=_0x116ad5;return this[_0x9c1275(0x126)](this[_0x9c1275(0x127)](_0x56e85d,_0x3e3356),e[_0x9c1275(0x13f)]['Cell']);}[_0x116ad5(0x126)](_0x563538,_0x4d501a=e[_0x116ad5(0x13f)][_0x116ad5(0x181)]){const _0x3712ff=_0x116ad5;return this[_0x3712ff(0xcd)][_0x3712ff(0x174)](e[_0x3712ff(0xef)])[_0x3712ff(0x199)]({..._0x563538,'kind':_0x4d501a,'segmentId':this['_segmentId'],'tableId':this['_tableId']}),!0x0;}[_0x116ad5(0x15d)](_0x1dd21e){return this['insertRowsBefore'](_0x1dd21e,0x1);}[_0x116ad5(0x19c)](_0x46d337){const _0x517d03=_0x116ad5;return this[_0x517d03(0xcb)](_0x46d337,0x1);}[_0x116ad5(0xc9)](_0x2a38f3,_0x32cc42){const _0x2c6d02=_0x116ad5;let _0x19505b=this[_0x2c6d02(0xf8)](),_0x25ce0c=(0x0,e['buildInsertTableRowsMutationActions'])(_0x19505b,this[_0x2c6d02(0xbf)],_0x2a38f3,_0x32cc42,e['DocsTableInsertPosition'][_0x2c6d02(0x100)],this['_getBodyPath']());return _0x25ce0c?this['_mutateActions'](_0x19505b,_0x25ce0c['actions']):!0x1;}['insertRowsAfter'](_0x1602a6,_0x554f90){const _0x32982b=_0x116ad5;let _0x2051e1=this[_0x32982b(0xf8)](),_0x50baee=(0x0,e[_0x32982b(0x15c)])(_0x2051e1,this['_tableId'],_0x1602a6,_0x554f90,e['DocsTableInsertPosition'][_0x32982b(0xf9)],this['_getBodyPath']());return _0x50baee?this[_0x32982b(0xe7)](_0x2051e1,_0x50baee['actions']):!0x1;}[_0x116ad5(0x182)](){const _0x200c43=_0x116ad5;return this[_0x200c43(0xcb)](Math[_0x200c43(0x143)](0x0,this[_0x200c43(0xc1)]()-0x1),0x1);}['insertColumnBefore'](_0x43a801){const _0x41deb4=_0x116ad5;return this[_0x41deb4(0xc6)](_0x43a801,0x1);}[_0x116ad5(0x13a)](_0x23ebcc){const _0x58470e=_0x116ad5;return this[_0x58470e(0x17b)](_0x23ebcc,0x1);}['insertColumnsBefore'](_0x26337f,_0x39b67e){const _0x4e1bc1=_0x116ad5;let _0x2abdd0=this[_0x4e1bc1(0xf8)](),_0x1e95c9=(0x0,e[_0x4e1bc1(0x18c)])(_0x2abdd0,this[_0x4e1bc1(0xbf)],_0x26337f,_0x39b67e,e['DocsTableInsertPosition'][_0x4e1bc1(0x112)],{'bodyPath':this[_0x4e1bc1(0xdc)]()});return _0x1e95c9?this[_0x4e1bc1(0xe7)](_0x2abdd0,_0x1e95c9[_0x4e1bc1(0x13d)]):!0x1;}[_0x116ad5(0x17b)](_0x5e6797,_0xb963bd){const _0x3a549a=_0x116ad5;let _0x57725f=this[_0x3a549a(0xf8)](),_0x1dac0a=(0x0,e['buildInsertTableColumnsMutationActions'])(_0x57725f,this[_0x3a549a(0xbf)],_0x5e6797,_0xb963bd,e['DocsTableInsertPosition'][_0x3a549a(0xd2)],{'bodyPath':this[_0x3a549a(0xdc)]()});return _0x1dac0a?this[_0x3a549a(0xe7)](_0x57725f,_0x1dac0a[_0x3a549a(0x13d)]):!0x1;}[_0x116ad5(0x125)](){const _0x10507c=_0x116ad5;return this['insertColumnsAfter'](Math[_0x10507c(0x143)](0x0,this[_0x10507c(0x10f)]()-0x1),0x1);}[_0x116ad5(0x123)](_0x13923b){const _0x125ade=_0x116ad5;return this[_0x125ade(0x161)](_0x13923b,0x1);}[_0x116ad5(0x161)](_0x156e08,_0x47d116=0x1){const _0x2c7dc2=_0x116ad5;return!!this[_0x2c7dc2(0x11f)][_0x2c7dc2(0xf6)](e['DocsTableDeleteRowsCommand']['id'],{'endRow':_0x156e08+_0x47d116-0x1,'segmentId':this[_0x2c7dc2(0x15b)],'startRow':_0x156e08,'tableId':this[_0x2c7dc2(0xbf)],'unitId':this[_0x2c7dc2(0xe1)]});}[_0x116ad5(0x115)](_0x358036){const _0x23076d=_0x116ad5;return this[_0x23076d(0x172)](_0x358036,0x1);}['deleteColumns'](_0x3c7c7f,_0x49f3f3=0x1){const _0x44c296=_0x116ad5;return!!this['_commandService'][_0x44c296(0xf6)](e[_0x44c296(0xfd)]['id'],{'endColumn':_0x3c7c7f+_0x49f3f3-0x1,'segmentId':this[_0x44c296(0x15b)],'startColumn':_0x3c7c7f,'tableId':this[_0x44c296(0xbf)],'unitId':this[_0x44c296(0xe1)]});}['deleteTable'](){const _0x286501=_0x116ad5;return!!this[_0x286501(0x11f)][_0x286501(0xf6)](e[_0x286501(0x194)]['id'],{'segmentId':this[_0x286501(0x15b)],'tableId':this['_tableId'],'unitId':this[_0x286501(0xe1)]});}['moveTableBy'](_0x7595b6,_0x1a7de4){const _0x5b70e1=_0x116ad5;let _0xdffa69=this[_0x5b70e1(0xf8)]();return this[_0x5b70e1(0xe7)](_0xdffa69,(0x0,e[_0x5b70e1(0xcf)])(_0xdffa69,this['_tableId'],_0x7595b6,_0x1a7de4));}[_0x116ad5(0xdb)](_0x575215){const _0x15187e=_0x116ad5;let _0x316bc0=this[_0x15187e(0xf8)]();return this[_0x15187e(0xe7)](_0x316bc0,(0x0,e[_0x15187e(0x16c)])(_0x316bc0,this[_0x15187e(0xbf)],_0x575215,this[_0x15187e(0xdc)]()));}['moveRow'](_0xbb2c63,_0x35d0c0,_0x736af8=e[_0x116ad5(0x178)][_0x116ad5(0x100)]){const _0x4bb253=_0x116ad5;return this[_0x4bb253(0xcc)](_0xbb2c63,0x1,_0x35d0c0,_0x736af8);}['moveRows'](_0x35c0d2,_0x284fc8,_0x51c53c,_0x43451d=e[_0x116ad5(0x178)]['Above']){const _0x12d540=_0x116ad5;let _0x19ede2=this[_0x12d540(0xf8)](),_0x377f43=(0x0,e['buildMoveTableRowsMutationActions'])(_0x19ede2,this[_0x12d540(0xbf)],_0x35c0d2,_0x51c53c,_0x284fc8,_0x43451d,this['_getBodyPath']());return _0x377f43?this[_0x12d540(0xe7)](_0x19ede2,_0x377f43[_0x12d540(0x13d)]):!0x1;}[_0x116ad5(0x14a)](_0x250e94,_0x5665fe,_0x2959b3=e['DocsTableInsertPosition'][_0x116ad5(0x112)]){const _0xc1a8e4=_0x116ad5;return this[_0xc1a8e4(0xd9)](_0x250e94,0x1,_0x5665fe,_0x2959b3);}[_0x116ad5(0xd9)](_0x226713,_0x4bb1bf,_0x5e91ce,_0x8bf4ef=e['DocsTableInsertPosition'][_0x116ad5(0x112)]){const _0x227367=_0x116ad5;let _0x27fe6b=this['_getDocumentData'](),_0x329e60=(0x0,e[_0x227367(0x169)])(_0x27fe6b,this[_0x227367(0xbf)],_0x226713,_0x5e91ce,_0x4bb1bf,_0x8bf4ef,this['_getBodyPath']());return _0x329e60?this[_0x227367(0xe7)](_0x27fe6b,_0x329e60[_0x227367(0x13d)]):!0x1;}[_0x116ad5(0x16a)](_0x57a283){const _0x4e0b14=_0x116ad5;try{let _0x1cb87a=this['_getDocumentData'](),_0x169c26=(0x0,e[_0x4e0b14(0x105)])({'documentData':_0x1cb87a,'tableId':this[_0x4e0b14(0xbf)],..._0x57a283});return _0x169c26?this[_0x4e0b14(0xe7)](_0x1cb87a,_0x169c26[_0x4e0b14(0x13d)],_0x57a283):!0x1;}catch{return!0x1;}}['unmergeCells'](_0xbf69a4){const _0x15535f=_0x116ad5;try{let _0x5456b4=this[_0x15535f(0xf8)](),_0x5648f9=(0x0,e[_0x15535f(0x11b)])({'documentData':_0x5456b4,'tableId':this[_0x15535f(0xbf)],..._0xbf69a4});return _0x5648f9?this[_0x15535f(0xe7)](_0x5456b4,_0x5648f9[_0x15535f(0x13d)],_0xbf69a4):!0x1;}catch{return!0x1;}}[_0x116ad5(0xc2)](_0x5da046,_0x46fbf3,_0x5a0d94){const _0x32390e=_0x116ad5;let _0xbb4702=this['_getDocumentData'](),_0x30ab01=(0x0,e[_0x32390e(0x186)])(this[_0x32390e(0x16e)]['getDocumentDataModel']()['getSnapshot'](),this['_segmentId']);return this['_mutateActions'](_0xbb4702,(0x0,e[_0x32390e(0x117)])({'documentData':_0xbb4702,'tableId':this[_0x32390e(0xbf)],'row':_0x5da046,'column':_0x46fbf3,'text':_0x5a0d94},_0x30ab01),this['getCellRange'](_0x5da046,_0x46fbf3));}[_0x116ad5(0xf3)](_0x1decf6,_0x2490f5){const _0x2840aa=_0x116ad5;let _0x399c81=this[_0x2840aa(0xf8)]();return this[_0x2840aa(0xe7)](_0x399c81,(0x0,e[_0x2840aa(0x135)])(_0x399c81,{'tableId':this[_0x2840aa(0xbf)],..._0x1decf6,'value':_0x2490f5}),_0x1decf6);}[_0x116ad5(0x101)](_0x1a189a,_0x23414d){const _0x49bd93=_0x116ad5;let _0x17f990=this[_0x49bd93(0xf8)]();return this[_0x49bd93(0xe7)](_0x17f990,(0x0,e['buildSetTableCellMarginMutationActions'])({'documentData':_0x17f990,'tableId':this[_0x49bd93(0xbf)],..._0x1a189a,'margin':_0x23414d}),_0x1a189a);}[_0x116ad5(0xc0)](_0x4edf6b){const _0x5b7137=_0x116ad5;let _0x484f65=this[_0x5b7137(0xf8)]();return this[_0x5b7137(0xe7)](_0x484f65,(0x0,e[_0x5b7137(0xf7)])(_0x484f65,this[_0x5b7137(0xbf)],_0x4edf6b));}[_0x116ad5(0x176)](_0x49944d,_0x5ed147){const _0xb485e4=_0x116ad5;let _0x10f055=this[_0xb485e4(0xf8)]();return this[_0xb485e4(0xe7)](_0x10f055,this[_0xb485e4(0xd3)](_0x10f055,_0x49944d,_0x5ed147),_0x49944d);}[_0x116ad5(0x142)](_0xbcfe7f){const _0x256e4e=_0x116ad5;return this[_0x256e4e(0xf3)](this[_0x256e4e(0x17c)](),_0xbcfe7f);}[_0x116ad5(0xf0)](_0x14440a){const _0x369e91=_0x116ad5;return this['setBorder'](this[_0x369e91(0x17c)](),_0x14440a);}[_0x116ad5(0xe4)](_0x2749bb){const _0x132212=_0x116ad5;let _0x1a1020=this[_0x132212(0xf8)](),_0x597341=this[_0x132212(0x17c)](),_0x4133ec=_0x2749bb[_0x132212(0x11c)]?(0x0,e[_0x132212(0x135)])(_0x1a1020,{'tableId':this[_0x132212(0xbf)],..._0x597341,'value':_0x2749bb['backgroundColor']}):null,_0x20a0ed=_0x2749bb['border']?this[_0x132212(0xd3)](_0x1a1020,_0x597341,_0x2749bb[_0x132212(0xe3)]):null;return this[_0x132212(0xe7)](_0x1a1020,t['JSONX']['compose'](_0x4133ec,_0x20a0ed),_0x597341);}['setRowHeight'](_0x7a1514,_0x423364,_0x1053d9=t[_0x116ad5(0x18f)][_0x116ad5(0x140)]){const _0x1c28b6=_0x116ad5;var _0x2e9a65;let _0x432e18=this[_0x1c28b6(0xf8)]();return(_0x2e9a65=_0x432e18[_0x1c28b6(0xe6)])!=null&&(_0x2e9a65=_0x2e9a65[this[_0x1c28b6(0xbf)]])!=null&&_0x2e9a65[_0x1c28b6(0x173)][_0x7a1514]?this['_mutateActions'](_0x432e18,(0x0,e[_0x1c28b6(0xd5)])(_0x432e18,this[_0x1c28b6(0xbf)],_0x7a1514,_0x423364,_0x1053d9)):!0x1;}['getRowHeight'](_0x337aaf){const _0x410e12=_0x116ad5;var _0x37f19d;let _0x4e9ce1=(_0x37f19d=this['getSource']())==null||(_0x37f19d=_0x37f19d[_0x410e12(0x173)][_0x337aaf])==null?void 0x0:_0x37f19d[_0x410e12(0x113)];return _0x4e9ce1?t[_0x410e12(0x15f)][_0x410e12(0x160)](_0x4e9ce1):null;}[_0x116ad5(0x10a)](_0x1e40b9,_0x34e93b){const _0x37039a=_0x116ad5;var _0x39cab9;let _0x2bfb12=this[_0x37039a(0xf8)]();return(_0x39cab9=_0x2bfb12['tableSource'])!=null&&(_0x39cab9=_0x39cab9[this['_tableId']])!=null&&_0x39cab9['tableColumns'][_0x1e40b9]?this[_0x37039a(0xe7)](_0x2bfb12,(0x0,e[_0x37039a(0x191)])(_0x2bfb12,this[_0x37039a(0xbf)],_0x1e40b9,_0x34e93b)):!0x1;}['distributeRows'](_0x4ea7c8=0x0,_0x20caa7=this[_0x116ad5(0xc1)]()){const _0x1c3e80=_0x116ad5;let _0x30f08f=this[_0x1c3e80(0xf8)]();return this[_0x1c3e80(0xe7)](_0x30f08f,(0x0,e[_0x1c3e80(0xe2)])(_0x30f08f,this[_0x1c3e80(0xbf)],_0x4ea7c8,_0x4ea7c8+_0x20caa7-0x1));}[_0x116ad5(0xed)](_0x328c6d=0x0,_0x3099fa=this[_0x116ad5(0x10f)]()){const _0x26c36a=_0x116ad5;let _0x6acf77=this[_0x26c36a(0xf8)]();return this[_0x26c36a(0xe7)](_0x6acf77,(0x0,e[_0x26c36a(0x103)])(_0x6acf77,this[_0x26c36a(0xbf)],_0x328c6d,_0x328c6d+_0x3099fa-0x1));}[_0x116ad5(0x137)](){const _0x1f6363=_0x116ad5;var _0x21ef3e;return((_0x21ef3e=this[_0x1f6363(0x18b)]())==null?void 0x0:_0x21ef3e[_0x1f6363(0x188)])??0x0;}[_0x116ad5(0xd7)](_0x440dba){const _0x4f89ae=_0x116ad5;let _0x1fa76b=this[_0x4f89ae(0xf8)](),_0x5d6b64=(0x0,e[_0x4f89ae(0x19b)])(_0x1fa76b,this[_0x4f89ae(0xbf)],_0x440dba);return _0x5d6b64?this[_0x4f89ae(0xe7)](_0x1fa76b,_0x5d6b64['actions']):!0x1;}[_0x116ad5(0x163)](_0x3d58e4){const _0x71c9da=_0x116ad5;return this[_0x71c9da(0xd7)](_0x3d58e4);}[_0x116ad5(0x151)](){const _0x392b40=_0x116ad5;var _0x4ed2c7;return((_0x4ed2c7=this[_0x392b40(0x18b)]())==null?void 0x0:_0x4ed2c7[_0x392b40(0x12b)])??!0x1;}['insertTitleRow'](){const _0x5b0a70=_0x116ad5;let _0x39c7a6=this[_0x5b0a70(0xf8)](),_0x2170ee=(0x0,e[_0x5b0a70(0x171)])(_0x39c7a6,this[_0x5b0a70(0xbf)],this['_getBodyPath']());return _0x2170ee?this['_mutateActions'](_0x39c7a6,_0x2170ee['actions']):!0x1;}[_0x116ad5(0xde)](_0x18c28e,_0x8dde){const _0x5349f8=_0x116ad5;return!!this[_0x5349f8(0x11f)][_0x5349f8(0xf6)](e['DocsTableSetColumnTypeCommand']['id'],{'unitId':this[_0x5349f8(0xe1)],'tableId':this[_0x5349f8(0xbf)],'segmentId':this[_0x5349f8(0x15b)],'column':_0x18c28e,'config':_0x8dde});}['sortByColumn'](_0x4939cf,_0xc49a2a){const _0xd50de7=_0x116ad5;let _0x92c2ce=this['_getDocumentData']();return this['_mutateActions'](_0x92c2ce,(0x0,e[_0xd50de7(0x183)])(_0x92c2ce,this[_0xd50de7(0x17a)](),this[_0xd50de7(0xbf)],_0x4939cf,_0xc49a2a,this['_getBodyPath']()));}[_0x116ad5(0xd3)](_0x1ef39d,_0x27154c,_0x5c9bf2){const _0x519aff=_0x116ad5;return(0x0,e[_0x519aff(0x152)])({'documentData':_0x1ef39d,'tableId':this['_tableId'],..._0x27154c,'preset':_0x5c9bf2[_0x519aff(0xeb)]??e[_0x519aff(0x106)]['All'],'border':_0x5c9bf2['border']??{'color':{'rgb':_0x5c9bf2['color']??this[_0x519aff(0xcd)]['get'](t[_0x519aff(0x16f)])['getColorFromTheme'](_0x519aff(0xd8))},'width':{'v':_0x5c9bf2[_0x519aff(0x198)]??0x1},'dashStyle':t[_0x519aff(0x107)][_0x519aff(0xf5)]}});}['_getDocumentData'](){const _0x1eb53c=_0x116ad5;let _0x10b641=this['_document'][_0x1eb53c(0x102)]()[_0x1eb53c(0x164)]();return this[_0x1eb53c(0x15b)]?{...this[_0x1eb53c(0x16e)][_0x1eb53c(0x102)](this[_0x1eb53c(0x15b)])['getSnapshot'](),'documentStyle':_0x10b641[_0x1eb53c(0x17f)],'tableSource':_0x10b641[_0x1eb53c(0xe6)]}:_0x10b641;}['_serializeModel'](){const _0x4f854d=_0x116ad5;return this['_injector'][_0x4f854d(0x174)](e[_0x4f854d(0xbd)])[_0x4f854d(0x18a)](this['_unitId'],this[_0x4f854d(0x16e)]['getDocumentDataModel']()[_0x4f854d(0x164)]());}[_0x116ad5(0xdc)](){const _0x107421=_0x116ad5;return(0x0,e[_0x107421(0x186)])(this['_document'][_0x107421(0x102)]()[_0x107421(0x164)](),this[_0x107421(0x15b)]);}[_0x116ad5(0xe7)](_0x1ee003,_0xf45199,_0x4aaf48){const _0x4e3eb6=_0x116ad5;return(0x0,e[_0x4e3eb6(0x111)])(this[_0x4e3eb6(0x11f)],this[_0x4e3eb6(0xe1)],_0x1ee003,_0xf45199,_0x4aaf48?{'tableId':this['_tableId'],'segmentId':this['_segmentId'],..._0x4aaf48}:void 0x0);}};f=d([u(0x3,t[_0x116ad5(0x162)]),u(0x4,(0x0,t[_0x116ad5(0x16b)])(t['Injector']))],f);var p=class extends r[_0x116ad5(0x14d)]{[_0x116ad5(0x12a)](_0x4c92a3=''){const _0x2faef2=_0x116ad5;return this['_getTables'](_0x4c92a3)[_0x2faef2(0x10c)](_0x1a0535=>this[_0x2faef2(0x14c)](_0x1a0535[_0x2faef2(0x180)],_0x4c92a3));}[_0x116ad5(0x12c)](_0x2077f3,_0x2db386=''){const _0x292ed1=_0x116ad5;return this[_0x292ed1(0x108)](_0x2db386)['some'](_0x49bb42=>_0x49bb42[_0x292ed1(0x180)]===_0x2077f3)?this[_0x292ed1(0x14c)](_0x2077f3,_0x2db386):null;}['getTableAt'](_0x326090,_0x5cc07d=''){const _0x2699f9=_0x116ad5;var _0x567a4f;let _0x313a38=(_0x567a4f=this['_getTables'](_0x5cc07d)[_0x326090])==null?void 0x0:_0x567a4f[_0x2699f9(0x180)];return _0x313a38?this[_0x2699f9(0x14c)](_0x313a38,_0x5cc07d):null;}['getTableAtSelection'](){const _0x599153=_0x116ad5;let _0x4faaa5=this[_0x599153(0xcd)][_0x599153(0x174)](e['DocsTableSelectionService'])[_0x599153(0x17e)]();return _0x4faaa5!=null&&_0x4faaa5['tableId']?this[_0x599153(0x14c)](_0x4faaa5[_0x599153(0x180)],_0x4faaa5[_0x599153(0xd6)]):null;}['findTableByText'](_0x3ae03e,_0xf646ef=''){const _0x5b798d=_0x116ad5;return this[_0x5b798d(0x18d)](_0x3ae03e,_0xf646ef)[0x0]??null;}['findTables'](_0x407a68,_0x3ecd4b=''){const _0x43559e=_0x116ad5;let _0x5104a7=this[_0x43559e(0x158)](_0x3ecd4b),_0x276801=typeof _0x407a68==_0x43559e(0x12f)?{'text':_0x407a68}:_0x407a68;return this['getTables'](_0x3ecd4b)[_0x43559e(0x147)](_0x124050=>{const _0xf8d3d9=_0x43559e;let _0x13c670=_0x124050[_0xf8d3d9(0x118)]();return!(_0x276801[_0xf8d3d9(0x180)]&&_0x13c670!==_0x276801[_0xf8d3d9(0x180)]||_0x276801[_0xf8d3d9(0xfc)]&&!this[_0xf8d3d9(0xdd)](_0x5104a7,_0x13c670,_0x276801[_0xf8d3d9(0xfc)])||_0x276801[_0xf8d3d9(0x185)]&&!this[_0xf8d3d9(0x11d)](_0x124050,0x0,_0x276801[_0xf8d3d9(0x185)])||_0x276801[_0xf8d3d9(0x121)]&&!this[_0xf8d3d9(0x11d)](_0x124050,0x0,_0x276801[_0xf8d3d9(0x121)]));});}[_0x116ad5(0x17d)](_0x170c92,_0x1ba3e1,_0x2eaa39={}){const _0x5bd329=_0x116ad5;let _0x3f7141=this[_0x5bd329(0xcd)]['get'](t[_0x5bd329(0x162)]),_0x3844c9=_0x2eaa39['tableId']??(0x0,t[_0x5bd329(0x134)])(0x6);return _0x3f7141[_0x5bd329(0xf6)](e[_0x5bd329(0xca)]['id'],{..._0x2eaa39,'unitId':this['getId'](),'rows':_0x170c92,'columns':_0x1ba3e1,'tableId':_0x3844c9})?this[_0x5bd329(0x14c)](_0x3844c9,_0x2eaa39[_0x5bd329(0xd6)]??''):null;}[_0x116ad5(0xd0)](_0x4417dc,_0x137433={}){const _0x51a31c=_0x116ad5;let _0x183e00=this[_0x51a31c(0xcd)]['get'](t[_0x51a31c(0x162)]),_0x4ab1e7=_0x137433[_0x51a31c(0x180)]??(0x0,t['generateRandomId'])(0x6);return _0x183e00[_0x51a31c(0xf6)](e[_0x51a31c(0xca)]['id'],{..._0x137433,'unitId':this[_0x51a31c(0x118)](),'values':_0x4417dc,'tableId':_0x4ab1e7})?this[_0x51a31c(0x14c)](_0x4ab1e7,_0x137433[_0x51a31c(0xd6)]??''):null;}[_0x116ad5(0x108)](_0x327bf=''){const _0x2fe49c=_0x116ad5;let {tables:_0x4b7d89=[]}=this[_0x2fe49c(0xc5)](_0x327bf);return _0x4b7d89;}[_0x116ad5(0x158)](_0x380fbd=''){const _0xa44dfc=_0x116ad5;let _0x57a24f=this['getDocumentDataModel']()['getSnapshot']();return _0x380fbd?{...this[_0xa44dfc(0x102)](_0x380fbd)[_0xa44dfc(0x164)](),'documentStyle':_0x57a24f[_0xa44dfc(0x17f)],'tableSource':_0x57a24f[_0xa44dfc(0xe6)]}:_0x57a24f;}[_0x116ad5(0x14c)](_0x70c034,_0x3ecd06=''){const _0x2eec27=_0x116ad5;return this['_injector'][_0x2eec27(0xbe)](f,this,_0x70c034,_0x3ecd06);}[_0x116ad5(0xdd)](_0x108a8a,_0x12f6b6,_0x2d3af1){const _0x575dce=_0x116ad5;var _0x2ba746;let _0x20d06b=(0x0,e['getTableRangeById'])(_0x108a8a,_0x12f6b6);if(!_0x20d06b)return!0x1;let _0x4baabf=(_0x2ba746=_0x108a8a[_0x575dce(0x168)])==null?void 0x0:_0x2ba746['dataStream'];return _0x4baabf?_0x4baabf['slice'](_0x20d06b[_0x575dce(0xe9)],_0x20d06b[_0x575dce(0x116)])[_0x575dce(0xd1)](_0x2d3af1):!0x1;}[_0x116ad5(0x11d)](_0x3ab777,_0x756bc5,_0x1cd618){const _0x45f52a=_0x116ad5;return Array['from']({'length':_0x3ab777[_0x45f52a(0x10f)]()},(_0x588338,_0x1d2e1e)=>_0x3ab777[_0x45f52a(0xda)](_0x756bc5,_0x1d2e1e))[_0x45f52a(0x13e)](_0x2dd20c=>_0x2dd20c[_0x45f52a(0xd1)](_0x1cd618));}};r[_0x116ad5(0x14d)][_0x116ad5(0x139)](p),Object[_0x116ad5(0x12e)](exports,'FDocumentTable',{'enumerable':!0x0,'get':function(){return f;}}),exports[_0x116ad5(0x119)]=a;