@univerjs-pro/docs-table 1.0.3 → 1.1.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 _0x18610f=_0x1d5f;function _0x1d5f(_0x1ac73a,_0x4aae7d){_0x1ac73a=_0x1ac73a-0x171;const _0x2dcf9a=_0x2dcf();let _0x1d5f5b=_0x2dcf9a[_0x1ac73a];return _0x1d5f5b;}(function(_0x54872d,_0x4728a2){const _0x6c4d09=_0x1d5f,_0x354d4c=_0x54872d();while(!![]){try{const _0xf3c99f=parseInt(_0x6c4d09(0x17e))/0x1*(-parseInt(_0x6c4d09(0x177))/0x2)+parseInt(_0x6c4d09(0x1a6))/0x3*(-parseInt(_0x6c4d09(0x224))/0x4)+parseInt(_0x6c4d09(0x226))/0x5+-parseInt(_0x6c4d09(0x1cb))/0x6*(-parseInt(_0x6c4d09(0x221))/0x7)+parseInt(_0x6c4d09(0x1c5))/0x8+-parseInt(_0x6c4d09(0x1d0))/0x9*(parseInt(_0x6c4d09(0x233))/0xa)+-parseInt(_0x6c4d09(0x1f3))/0xb*(-parseInt(_0x6c4d09(0x1a4))/0xc);if(_0xf3c99f===_0x4728a2)break;else _0x354d4c['push'](_0x354d4c['shift']());}catch(_0x50cae2){_0x354d4c['push'](_0x354d4c['shift']());}}}(_0x2dcf,0xe203a),Object['defineProperty'](exports,Symbol[_0x18610f(0x21b)],{'value':'Module'}));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[_0x18610f(0x1be)]{get[_0x18610f(0x171)](){const _0xf0b7ca=_0x18610f;return e[_0xf0b7ca(0x171)];}get[_0x18610f(0x1a9)](){const _0x4a1a17=_0x18610f;return e[_0x4a1a17(0x1a9)];}get[_0x18610f(0x20b)](){const _0x3c6017=_0x18610f;return e[_0x3c6017(0x20b)];}get['DocsTableRowInsertPosition'](){const _0x1e5dfd=_0x18610f;return e[_0x1e5dfd(0x247)];}get[_0x18610f(0x174)](){const _0x1fd951=_0x18610f;return e[_0x1fd951(0x174)];}get[_0x18610f(0x1dd)](){return e['DocsTableBorderPreset'];}get[_0x18610f(0x209)](){const _0x544a8e=_0x18610f;return e[_0x544a8e(0x209)];}get[_0x18610f(0x182)](){const _0x30a8e5=_0x18610f;return t[_0x30a8e5(0x182)];}};n[_0x18610f(0x1be)]['extend'](i);var a=class{constructor(_0x58f47e,_0x4ae1fc,_0x57ef82){const _0x515f6d=_0x18610f;this[_0x515f6d(0x1bd)]=_0x58f47e,this['_row']=_0x4ae1fc,this[_0x515f6d(0x18c)]=_0x57ef82;}[_0x18610f(0x24b)](){const _0x5031af=_0x18610f;return this[_0x5031af(0x1bd)];}[_0x18610f(0x1e1)](){const _0x392130=_0x18610f;return this[_0x392130(0x202)];}[_0x18610f(0x199)](){const _0x44b892=_0x18610f;return this[_0x44b892(0x18c)];}[_0x18610f(0x239)](){const _0x301e52=_0x18610f;return this[_0x301e52(0x1bd)][_0x301e52(0x1c9)](this[_0x301e52(0x202)],this[_0x301e52(0x18c)]);}['getContentRange'](){const _0x40f2dc=_0x18610f;return this['_table'][_0x40f2dc(0x21e)](this[_0x40f2dc(0x202)],this[_0x40f2dc(0x18c)]);}[_0x18610f(0x197)](){const _0x318cc4=_0x18610f;return this['_table'][_0x318cc4(0x21f)](this[_0x318cc4(0x202)],this['_column']);}[_0x18610f(0x218)](){const _0x12a43b=_0x18610f;return this[_0x12a43b(0x1bd)]['getCellMargin'](this['_row'],this['_column']);}[_0x18610f(0x23b)](){const _0x4a8f5a=_0x18610f;return this[_0x4a8f5a(0x1bd)][_0x4a8f5a(0x230)](this['_row'],this[_0x4a8f5a(0x18c)]);}[_0x18610f(0x1d8)](_0x32b4a8){const _0x52c8f7=_0x18610f;return this[_0x52c8f7(0x1bd)][_0x52c8f7(0x1f8)](this['_table'][_0x52c8f7(0x1c1)](this[_0x52c8f7(0x202)],this[_0x52c8f7(0x18c)]),_0x32b4a8);}[_0x18610f(0x1d4)](){const _0x41c662=_0x18610f;return this[_0x41c662(0x1bd)]['setCellMargin'](this['_table'][_0x41c662(0x1c1)](this[_0x41c662(0x202)],this[_0x41c662(0x18c)]),null);}[_0x18610f(0x1c4)](_0x31b9ca){const _0x56040c=_0x18610f;return this[_0x56040c(0x1bd)][_0x56040c(0x1e2)](this[_0x56040c(0x202)],this[_0x56040c(0x18c)],_0x31b9ca);}[_0x18610f(0x23e)](_0x1af1c2){const _0x315e4d=_0x18610f;return this[_0x315e4d(0x1bd)][_0x315e4d(0x1b9)](this['_table'][_0x315e4d(0x1c1)](this['_row'],this[_0x315e4d(0x18c)]),_0x1af1c2);}['setBorder'](_0x53d600){const _0x538573=_0x18610f;return this[_0x538573(0x1bd)][_0x538573(0x1e0)](this['_table'][_0x538573(0x1c1)](this[_0x538573(0x202)],this[_0x538573(0x18c)]),_0x53d600);}[_0x18610f(0x1c3)](_0x1791bc,_0x3e6bad){const _0x5bcb3b=_0x18610f;return this[_0x5bcb3b(0x1bd)][_0x5bcb3b(0x227)]({'startRow':this[_0x5bcb3b(0x202)],'startColumn':this[_0x5bcb3b(0x18c)],'endRow':this[_0x5bcb3b(0x202)]+_0x1791bc-0x1,'endColumn':this[_0x5bcb3b(0x18c)]+_0x3e6bad-0x1});}['unmerge'](){const _0x106f54=_0x18610f;return this['_table']['unmergeCells'](this[_0x106f54(0x1bd)][_0x106f54(0x1c1)](this[_0x106f54(0x202)],this['_column']));}};function o(_0x1e4ecf){'@babel/helpers - typeof';const _0x3a32c2=_0x18610f;return o=typeof Symbol==_0x3a32c2(0x190)&&typeof Symbol[_0x3a32c2(0x19e)]=='symbol'?function(_0x552a6d){return typeof _0x552a6d;}:function(_0x4baa31){const _0x29ac6f=_0x3a32c2;return _0x4baa31&&typeof Symbol=='function'&&_0x4baa31[_0x29ac6f(0x193)]===Symbol&&_0x4baa31!==Symbol[_0x29ac6f(0x1aa)]?_0x29ac6f(0x1e8):typeof _0x4baa31;},o(_0x1e4ecf);}function s(_0x542dff,_0x3ad517){const _0xcbd990=_0x18610f;if(o(_0x542dff)!='object'||!_0x542dff)return _0x542dff;var _0x521cd9=_0x542dff[Symbol['toPrimitive']];if(_0x521cd9!==void 0x0){var _0x58908e=_0x521cd9[_0xcbd990(0x187)](_0x542dff,_0x3ad517||'default');if(o(_0x58908e)!=_0xcbd990(0x22e))return _0x58908e;throw TypeError(_0xcbd990(0x219));}return(_0x3ad517==='string'?String:Number)(_0x542dff);}function c(_0x2431a7){const _0x31640a=_0x18610f;var _0x5bfa0b=s(_0x2431a7,_0x31640a(0x1a0));return o(_0x5bfa0b)==_0x31640a(0x1e8)?_0x5bfa0b:_0x5bfa0b+'';}function l(_0x3660fa,_0x578bd4,_0x343785){return(_0x578bd4=c(_0x578bd4))in _0x3660fa?Object['defineProperty'](_0x3660fa,_0x578bd4,{'value':_0x343785,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3660fa[_0x578bd4]=_0x343785,_0x3660fa;}function u(_0x51e859,_0x506b58){return function(_0x3a2bef,_0x317a79){_0x506b58(_0x3a2bef,_0x317a79,_0x51e859);};}function d(_0x5e2acc,_0x181e22,_0x5e8862,_0x592ad4){const _0x183f4e=_0x18610f;var _0x37c251=arguments[_0x183f4e(0x20d)],_0x23976b=_0x37c251<0x3?_0x181e22:_0x592ad4===null?_0x592ad4=Object[_0x183f4e(0x1cc)](_0x181e22,_0x5e8862):_0x592ad4,_0x3d5d50;if(typeof Reflect=='object'&&typeof Reflect[_0x183f4e(0x236)]==_0x183f4e(0x190))_0x23976b=Reflect[_0x183f4e(0x236)](_0x5e2acc,_0x181e22,_0x5e8862,_0x592ad4);else{for(var _0x4c5842=_0x5e2acc['length']-0x1;_0x4c5842>=0x0;_0x4c5842--)(_0x3d5d50=_0x5e2acc[_0x4c5842])&&(_0x23976b=(_0x37c251<0x3?_0x3d5d50(_0x23976b):_0x37c251>0x3?_0x3d5d50(_0x181e22,_0x5e8862,_0x23976b):_0x3d5d50(_0x181e22,_0x5e8862))||_0x23976b);}return _0x37c251>0x3&&_0x23976b&&Object[_0x183f4e(0x183)](_0x181e22,_0x5e8862,_0x23976b),_0x23976b;}function _0x2dcf(){const _0xfd55cc=['getText','buildSetTableBackgroundMutationActions','getMarginOverride','_getBodyPath','preset','setBackgroundColor','getTables','buildMergeCellsMutationActions','_getTables','getMetadata','text','getSource','getRange','get','DocsTableRowInsertPosition','getSnapshot','deepClone','buildSetTableCellTextMutationActions','getTable','getColumnCount','DocsTableInsertTablePosition','buildMoveTableColumnsMutationActions','Tools','DocsTableColumnInsertPosition','max','deleteRows','8DnKthd','DocsTableDeleteTableCommand','backgroundColor','deleteColumns','setTitleRow','getRowCount','findTableByText','31996KrQZCp','setDefaultCellMargin','getDocumentDataModel','startOffset','DashStyleType','defineProperty','_serializeModel','documentStyle','getDefaultCellMarginOverride','call','getTableRange','setRowHeight','getId','_createFDocumentTable','_column','distributeColumns','from','actions','function','some','hasTitleRow','constructor','endOffset','_rowContainsText','_tableContainsText','getInsertOffset','tableColumns','getColumnIndex','getInfo','DocsTableInsertTableCommand','DocsTableDeleteRowsCommand','setColumnType','iterator','getRowHeight','string','_injector','titleText','insertRowsBefore','24IsblBu','DocsTableSelectionService','3CSGtFU','buildInsertTableColumnsMutationActions','insertRowBefore','DocsTableColumnType','prototype','selectRow','getHeaderRowCount','selectColumns','buildMoveTableRowsMutationActions','buildInsertTableTitleRowMutationActions','tableCells','executeRichTextTableActions','width','insertColumnAfter','body','serialize','dataStream','AT_LEAST','buildMoveFloatingTableMutationActions','setCellBackground','selectRows','appendColumn','buildInsertTableRowsMutationActions','_table','FEnum','margin','FDocument','getCellRange','DocsTableModel','mergeTo','setText','5917200oGVqDI','generateRandomId','getColumnRange','selectRange','getCellText','Left','1251294uJNpLI','getOwnPropertyDescriptor','pinHeaderRows','ICommandService','buildSetTableBorderMutationActions','99vmNNFo','setTableBackground','_getDocumentData','All','clearMarginOverride','type','getColumnsRange','buildSetTableDefaultCellMarginMutationActions','setMargin','getDefaultCellMargin','setColumnWidth','moveRows','Range','DocsTableBorderPreset','insertColumnsAfter','headerRowCount','setBorder','getRowIndex','setCellText','Column','createInstance','_document','selectColumn','getTableAtSelection','symbol','FDocumentTableCell','_mutateActions','insertTitleRow','_getTableDocumentData','tableSource','Above','moveColumn','tableId','setStructuralSelection','Table','5545122WlUExp','moveRow','setTableBorder','describe','trHeight','setCellMargin','#1f1f1f','setHeaderRowCount','buildSortTableMutationActions','getCell','buildResizeTableColumnActionsFromWidth','getSegmentId','columnTypes','segmentId','unmergeCells','_row','getTableActionBodyPath','replace','getTableAt','slice','includes','getTableMetadata','DocsTableSortDirection','insertTableFromData','DocsTableSelectionKind','DEFAULT_DOCS_TABLE_CELL_MARGIN','length','findTables','getRowRange','filter','syncExecuteCommand','buildResizeTableRowActionsFromHeight','deleteColumn','_commandService','_segmentId','getRowsRange','DocsTableInsertPosition','getMargin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','buildSetTableCellMarginMutationActions','toStringTag','_unitId','titleRow','getCellContentRange','getCellInsertOffset','getTableRangeById','35neBgCR','Inject','insertColumnBefore','3358552gCTljd','rows','1930350CPRaQG','mergeCells','Cell','insertRowAfter','cells','tableRows','border','cellMargin','object','selectTable','getCellMarginOverride','color','insertRowsAfter','1166630wJEfep','TableRowHeightRule','insertColumnsBefore','decorate','_tableId','appendRow'];_0x2dcf=function(){return _0xfd55cc;};return _0x2dcf();}let f=class{constructor(_0x34cc5c,_0x2d8106,_0x3ee438,_0x586c02,_0x12cec4){const _0x4d50eb=_0x18610f;this[_0x4d50eb(0x1e5)]=_0x34cc5c,this[_0x4d50eb(0x237)]=_0x2d8106,this[_0x4d50eb(0x215)]=_0x3ee438,this['_commandService']=_0x586c02,this[_0x4d50eb(0x1a1)]=_0x12cec4,l(this,_0x4d50eb(0x21c),void 0x0),this[_0x4d50eb(0x21c)]=this[_0x4d50eb(0x1e5)][_0x4d50eb(0x18a)]();}[_0x18610f(0x18a)](){const _0x4f634d=_0x18610f;return this[_0x4f634d(0x237)];}[_0x18610f(0x1fe)](){const _0x44f639=_0x18610f;return this[_0x44f639(0x215)];}[_0x18610f(0x19a)](){const _0x445e50=_0x18610f;return{'id':this[_0x445e50(0x237)],'rowCount':this[_0x445e50(0x17c)](),'columnCount':this[_0x445e50(0x24c)](),'metadata':this[_0x445e50(0x242)](),'source':this[_0x445e50(0x244)]()};}[_0x18610f(0x1f6)](){const _0x59ce85=_0x18610f;let _0x4282f5=this[_0x59ce85(0x242)](),_0x5374c3=this[_0x59ce85(0x244)](),_0x57e5a2=this['getColumnCount']();return{'id':this[_0x59ce85(0x237)],'rowCount':this[_0x59ce85(0x17c)](),'columnCount':_0x57e5a2,'headerRowCount':(_0x4282f5==null?void 0x0:_0x4282f5[_0x59ce85(0x1df)])??0x0,'titleRow':(_0x4282f5==null?void 0x0:_0x4282f5[_0x59ce85(0x21d)])??!0x1,'columns':Array['from']({'length':_0x57e5a2},(_0x4d4edd,_0x519b3b)=>{const _0x9a3e81=_0x59ce85;var _0x276db0,_0xcb75f7;return{'index':_0x519b3b,'type':_0x4282f5==null||(_0x276db0=_0x4282f5[_0x9a3e81(0x1ff)])==null||(_0x276db0=_0x276db0[_0x519b3b])==null?void 0x0:_0x276db0[_0x9a3e81(0x1d5)],'width':_0x5374c3==null||(_0xcb75f7=_0x5374c3['tableColumns'][_0x519b3b])==null?void 0x0:_0xcb75f7['size'][_0x9a3e81(0x1b2)]['v']};}),'sampleRows':Array[_0x59ce85(0x18e)]({'length':this[_0x59ce85(0x17c)]()},(_0x2fe94d,_0x1f9cb8)=>Array['from']({'length':_0x57e5a2},(_0x2013a8,_0x2d7ddc)=>this[_0x59ce85(0x1c9)](_0x1f9cb8,_0x2d7ddc)))['filter'](_0x41c5e5=>_0x41c5e5['some'](_0x3b820a=>_0x3b820a[_0x59ce85(0x20d)]>0x0))[_0x59ce85(0x206)](0x0,0x5)};}[_0x18610f(0x17c)](){const _0x51a92d=_0x18610f;var _0xf00e31;return((_0xf00e31=this['getSource']())==null?void 0x0:_0xf00e31[_0x51a92d(0x22b)]['length'])??0x0;}[_0x18610f(0x24c)](){const _0x3b222c=_0x18610f;var _0x364b3d;return((_0x364b3d=this[_0x3b222c(0x244)]())==null?void 0x0:_0x364b3d[_0x3b222c(0x198)]['length'])??0x0;}[_0x18610f(0x1fc)](_0x3a36dd,_0xdc180f){const _0x2bc096=_0x18610f;var _0x35aace;return(_0x35aace=this[_0x2bc096(0x244)]())!=null&&(_0x35aace=_0x35aace[_0x2bc096(0x22b)][_0x3a36dd])!=null&&_0x35aace[_0x2bc096(0x1b0)][_0xdc180f]?this[_0x2bc096(0x1a1)]['createInstance'](a,this,_0x3a36dd,_0xdc180f):null;}[_0x18610f(0x1c9)](_0x385b00,_0x11d539){const _0x5cc3d6=_0x18610f;var _0x236e76,_0x1396e2;let _0x5aaaf0=(_0x236e76=(0x0,e[_0x5cc3d6(0x220)])(this[_0x5cc3d6(0x1d2)](),this['_tableId']))==null||(_0x236e76=_0x236e76[_0x5cc3d6(0x225)][_0x385b00])==null?void 0x0:_0x236e76['cells'][_0x11d539];return _0x5aaaf0?((_0x1396e2=this[_0x5cc3d6(0x1d2)]()[_0x5cc3d6(0x1b4)])==null?void 0x0:_0x1396e2[_0x5cc3d6(0x1b6)][_0x5cc3d6(0x206)](_0x5aaaf0[_0x5cc3d6(0x181)]+0x1,_0x5aaaf0[_0x5cc3d6(0x194)])[_0x5cc3d6(0x204)](/\r\n$/,''))??'':'';}['getCellMargin'](_0x2231b7,_0x34f8bd){const _0x3a54a8=_0x18610f;var _0x5b9e1b;let _0x49b87f=this[_0x3a54a8(0x244)](),_0x449502=_0x49b87f==null||(_0x5b9e1b=_0x49b87f[_0x3a54a8(0x22b)][_0x2231b7])==null?void 0x0:_0x5b9e1b[_0x3a54a8(0x1b0)][_0x34f8bd];return _0x449502?t['Tools'][_0x3a54a8(0x249)](_0x449502[_0x3a54a8(0x1bf)]??_0x49b87f[_0x3a54a8(0x22d)]??e[_0x3a54a8(0x20c)]):null;}[_0x18610f(0x230)](_0x257e81,_0x10a77b){const _0x1ada23=_0x18610f;var _0xba71f9;let _0x3498b0=(_0xba71f9=this[_0x1ada23(0x244)]())==null||(_0xba71f9=_0xba71f9[_0x1ada23(0x22b)][_0x257e81])==null?void 0x0:_0xba71f9[_0x1ada23(0x1b0)][_0x10a77b];return _0x3498b0!=null&&_0x3498b0[_0x1ada23(0x1bf)]?t['Tools'][_0x1ada23(0x249)](_0x3498b0[_0x1ada23(0x1bf)]):null;}[_0x18610f(0x1d9)](){const _0x4354a5=_0x18610f;var _0x32be52;return t[_0x4354a5(0x173)][_0x4354a5(0x249)](((_0x32be52=this[_0x4354a5(0x244)]())==null?void 0x0:_0x32be52[_0x4354a5(0x22d)])??e[_0x4354a5(0x20c)]);}[_0x18610f(0x186)](){const _0x139a18=_0x18610f;var _0x4066c2;let _0x39964b=(_0x4066c2=this['getSource']())==null?void 0x0:_0x4066c2[_0x139a18(0x22d)];return _0x39964b?t[_0x139a18(0x173)][_0x139a18(0x249)](_0x39964b):null;}[_0x18610f(0x242)](){const _0x30c609=_0x18610f;return this[_0x30c609(0x1a1)]['get'](e['DocsTableModel'])[_0x30c609(0x208)](this[_0x30c609(0x21c)],this['_tableId']);}[_0x18610f(0x244)](){const _0x450912=_0x18610f;var _0x1cbcb6;return(_0x1cbcb6=this[_0x450912(0x1d2)]()[_0x450912(0x1ed)])==null?void 0x0:_0x1cbcb6[this[_0x450912(0x237)]];}[_0x18610f(0x245)](){const _0x153982=_0x18610f;return(0x0,e[_0x153982(0x220)])(this[_0x153982(0x1d2)](),this['_tableId']);}[_0x18610f(0x188)](){const _0x251cc0=_0x18610f;return{'startRow':0x0,'endRow':Math[_0x251cc0(0x175)](0x0,this[_0x251cc0(0x17c)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x251cc0(0x175)](0x0,this[_0x251cc0(0x24c)]()-0x1)};}[_0x18610f(0x1c1)](_0x41991d,_0x59a187){return{'startRow':_0x41991d,'endRow':_0x41991d,'startColumn':_0x59a187,'endColumn':_0x59a187};}['getCellContentRange'](_0x3102f7,_0x5ec018){const _0x1beccb=_0x18610f;var _0x305918;let _0x5d54ce=(_0x305918=(0x0,e[_0x1beccb(0x220)])(this['_getDocumentData'](),this['_tableId']))==null||(_0x305918=_0x305918[_0x1beccb(0x225)][_0x3102f7])==null?void 0x0:_0x305918[_0x1beccb(0x22a)][_0x5ec018];if(!_0x5d54ce)return null;let _0x5ed4be=_0x5d54ce[_0x1beccb(0x181)]+0x1;return{'startOffset':_0x5ed4be,'endOffset':Math[_0x1beccb(0x175)](_0x5ed4be,_0x5d54ce[_0x1beccb(0x194)]-0x1),'segmentId':this[_0x1beccb(0x215)]};}[_0x18610f(0x21f)](_0x7ee094,_0x46ea6a){const _0x126778=_0x18610f;let _0x45a830=this[_0x126778(0x21e)](_0x7ee094,_0x46ea6a);return _0x45a830?Math[_0x126778(0x175)](_0x45a830[_0x126778(0x181)],_0x45a830[_0x126778(0x194)]-0x1):null;}[_0x18610f(0x20f)](_0x29b19a){return this['getRowsRange'](_0x29b19a,0x1);}[_0x18610f(0x216)](_0x3e7d74,_0x35c7fa=0x1){const _0x1b0848=_0x18610f;return{'startRow':_0x3e7d74,'endRow':_0x3e7d74+_0x35c7fa-0x1,'startColumn':0x0,'endColumn':Math[_0x1b0848(0x175)](0x0,this['getColumnCount']()-0x1)};}[_0x18610f(0x1c7)](_0x4b0aa9){const _0x5c0bd9=_0x18610f;return this[_0x5c0bd9(0x1d6)](_0x4b0aa9,0x1);}[_0x18610f(0x1d6)](_0x6d47bf,_0xdfcc6f=0x1){const _0x17a054=_0x18610f;return{'startRow':0x0,'endRow':Math[_0x17a054(0x175)](0x0,this['getRowCount']()-0x1),'startColumn':_0x6d47bf,'endColumn':_0x6d47bf+_0xdfcc6f-0x1};}[_0x18610f(0x22f)](){const _0x5e1657=_0x18610f;return this[_0x5e1657(0x1c8)](this[_0x5e1657(0x188)](),e['DocsTableSelectionKind'][_0x5e1657(0x1f2)]);}[_0x18610f(0x1ab)](_0x3c0ae2){const _0x16b2d9=_0x18610f;return this[_0x16b2d9(0x1ba)](_0x3c0ae2,0x1);}[_0x18610f(0x1ba)](_0x397bec,_0x3fa0a0=0x1){const _0xb5420c=_0x18610f;return this[_0xb5420c(0x1c8)](this[_0xb5420c(0x216)](_0x397bec,_0x3fa0a0),e['DocsTableSelectionKind']['Row']);}[_0x18610f(0x1e6)](_0x5142a4){const _0x3723ba=_0x18610f;return this[_0x3723ba(0x1ad)](_0x5142a4,0x1);}[_0x18610f(0x1ad)](_0x1e32d4,_0x4b802a=0x1){const _0x25990b=_0x18610f;return this[_0x25990b(0x1c8)](this[_0x25990b(0x1d6)](_0x1e32d4,_0x4b802a),e[_0x25990b(0x20b)][_0x25990b(0x1e3)]);}['selectCell'](_0x299ec7,_0x4c5c6a){const _0x4c6c7f=_0x18610f;return this[_0x4c6c7f(0x1c8)](this[_0x4c6c7f(0x1c1)](_0x299ec7,_0x4c5c6a),e['DocsTableSelectionKind'][_0x4c6c7f(0x228)]);}[_0x18610f(0x1c8)](_0x1c1569,_0x56dc23=e[_0x18610f(0x20b)][_0x18610f(0x1dc)]){const _0x1036aa=_0x18610f;return this[_0x1036aa(0x1a1)][_0x1036aa(0x246)](e[_0x1036aa(0x1a5)])[_0x1036aa(0x1f1)]({..._0x1c1569,'kind':_0x56dc23,'segmentId':this[_0x1036aa(0x215)],'tableId':this[_0x1036aa(0x237)]}),!0x0;}[_0x18610f(0x1a8)](_0x1718b1){const _0x4aac97=_0x18610f;return this[_0x4aac97(0x1a3)](_0x1718b1,0x1);}[_0x18610f(0x229)](_0x2084e6){return this['insertRowsAfter'](_0x2084e6,0x1);}['insertRowsBefore'](_0x4ff8e0,_0x443ceb){const _0x3f3a3b=_0x18610f;let _0x4e6146=this[_0x3f3a3b(0x1d2)](),_0x4240c3=(0x0,e[_0x3f3a3b(0x1bc)])(_0x4e6146,this[_0x3f3a3b(0x237)],_0x4ff8e0,_0x443ceb,e['DocsTableInsertPosition']['Above'],this[_0x3f3a3b(0x23c)]());return _0x4240c3?this[_0x3f3a3b(0x1ea)](_0x4e6146,_0x4240c3[_0x3f3a3b(0x18f)]):!0x1;}[_0x18610f(0x232)](_0x30f66e,_0x11c6ee){const _0x9cff93=_0x18610f;let _0x520b98=this['_getDocumentData'](),_0x415f6e=(0x0,e[_0x9cff93(0x1bc)])(_0x520b98,this['_tableId'],_0x30f66e,_0x11c6ee,e[_0x9cff93(0x217)]['Below'],this[_0x9cff93(0x23c)]());return _0x415f6e?this[_0x9cff93(0x1ea)](_0x520b98,_0x415f6e[_0x9cff93(0x18f)]):!0x1;}[_0x18610f(0x238)](){const _0x414d32=_0x18610f;return this['insertRowsAfter'](Math[_0x414d32(0x175)](0x0,this[_0x414d32(0x17c)]()-0x1),0x1);}[_0x18610f(0x223)](_0x396aba){const _0x7af2ab=_0x18610f;return this[_0x7af2ab(0x235)](_0x396aba,0x1);}[_0x18610f(0x1b3)](_0x25fd9f){const _0x1394ba=_0x18610f;return this[_0x1394ba(0x1de)](_0x25fd9f,0x1);}[_0x18610f(0x235)](_0x2deba7,_0x44ac47){const _0x3da80d=_0x18610f;let _0x233c62=this['_getDocumentData'](),_0x4258be=(0x0,e['buildInsertTableColumnsMutationActions'])(_0x233c62,this[_0x3da80d(0x237)],_0x2deba7,_0x44ac47,e['DocsTableInsertPosition']['Left'],{'bodyPath':this['_getBodyPath']()});return _0x4258be?this[_0x3da80d(0x1ea)](_0x233c62,_0x4258be['actions']):!0x1;}[_0x18610f(0x1de)](_0x89e2d7,_0x575183){const _0x473ae0=_0x18610f;let _0x1b16ee=this['_getDocumentData'](),_0xe5d194=(0x0,e[_0x473ae0(0x1a7)])(_0x1b16ee,this['_tableId'],_0x89e2d7,_0x575183,e[_0x473ae0(0x217)]['Right'],{'bodyPath':this['_getBodyPath']()});return _0xe5d194?this[_0x473ae0(0x1ea)](_0x1b16ee,_0xe5d194[_0x473ae0(0x18f)]):!0x1;}[_0x18610f(0x1bb)](){const _0x54fca5=_0x18610f;return this[_0x54fca5(0x1de)](Math[_0x54fca5(0x175)](0x0,this[_0x54fca5(0x24c)]()-0x1),0x1);}['deleteRow'](_0xbcc4d2){const _0x2e6283=_0x18610f;return this[_0x2e6283(0x176)](_0xbcc4d2,0x1);}['deleteRows'](_0x50562b,_0x273388=0x1){const _0x48888b=_0x18610f;return!!this[_0x48888b(0x214)][_0x48888b(0x211)](e[_0x48888b(0x19c)]['id'],{'endRow':_0x50562b+_0x273388-0x1,'segmentId':this[_0x48888b(0x215)],'startRow':_0x50562b,'tableId':this[_0x48888b(0x237)],'unitId':this['_unitId']});}[_0x18610f(0x213)](_0x56f287){const _0x5a6d13=_0x18610f;return this[_0x5a6d13(0x17a)](_0x56f287,0x1);}[_0x18610f(0x17a)](_0x3e3cc9,_0x2eb396=0x1){const _0x55b39f=_0x18610f;return!!this['_commandService'][_0x55b39f(0x211)](e['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x3e3cc9+_0x2eb396-0x1,'segmentId':this[_0x55b39f(0x215)],'startColumn':_0x3e3cc9,'tableId':this[_0x55b39f(0x237)],'unitId':this[_0x55b39f(0x21c)]});}['deleteTable'](){const _0x5b485e=_0x18610f;return!!this[_0x5b485e(0x214)]['syncExecuteCommand'](e[_0x5b485e(0x178)]['id'],{'segmentId':this[_0x5b485e(0x215)],'tableId':this[_0x5b485e(0x237)],'unitId':this[_0x5b485e(0x21c)]});}['moveTableBy'](_0x9ff092,_0x335036){const _0x32f6d4=_0x18610f;let _0x1e4a68=this['_getDocumentData']();return this['_mutateActions'](_0x1e4a68,(0x0,e[_0x32f6d4(0x1b8)])(_0x1e4a68,this[_0x32f6d4(0x237)],_0x9ff092,_0x335036));}['moveTableToOffset'](_0x407c11){const _0x1f5239=_0x18610f;let _0x5ebc91=this[_0x1f5239(0x1d2)]();return this[_0x1f5239(0x1ea)](_0x5ebc91,(0x0,e['buildMoveTableToOffsetMutationActions'])(_0x5ebc91,this['_tableId'],_0x407c11,this['_getBodyPath']()));}[_0x18610f(0x1f4)](_0x3c17d0,_0x597267,_0x3b174c=e['DocsTableInsertPosition'][_0x18610f(0x1ee)]){const _0x22c3c8=_0x18610f;return this[_0x22c3c8(0x1db)](_0x3c17d0,0x1,_0x597267,_0x3b174c);}[_0x18610f(0x1db)](_0x5c9444,_0x51a4b8,_0x5b9a7b,_0x5990ce=e['DocsTableInsertPosition'][_0x18610f(0x1ee)]){const _0x363a96=_0x18610f;let _0x28d1ce=this[_0x363a96(0x1d2)](),_0x37743e=(0x0,e[_0x363a96(0x1ae)])(_0x28d1ce,this[_0x363a96(0x237)],_0x5c9444,_0x5b9a7b,_0x51a4b8,_0x5990ce,this['_getBodyPath']());return _0x37743e?this[_0x363a96(0x1ea)](_0x28d1ce,_0x37743e[_0x363a96(0x18f)]):!0x1;}[_0x18610f(0x1ef)](_0x423816,_0x2600ff,_0x5b8168=e[_0x18610f(0x217)]['Left']){return this['moveColumns'](_0x423816,0x1,_0x2600ff,_0x5b8168);}['moveColumns'](_0x533665,_0x5e547e,_0x10af4f,_0x9e525=e['DocsTableInsertPosition'][_0x18610f(0x1ca)]){const _0xdce2df=_0x18610f;let _0x13643f=this[_0xdce2df(0x1d2)](),_0xc4d349=(0x0,e[_0xdce2df(0x172)])(_0x13643f,this[_0xdce2df(0x237)],_0x533665,_0x10af4f,_0x5e547e,_0x9e525,this[_0xdce2df(0x23c)]());return _0xc4d349?this[_0xdce2df(0x1ea)](_0x13643f,_0xc4d349[_0xdce2df(0x18f)]):!0x1;}['mergeCells'](_0x4a1b4d){const _0x1cad8b=_0x18610f;try{let _0x1b1c54=this['_getDocumentData'](),_0x522ac4=(0x0,e[_0x1cad8b(0x240)])({'documentData':_0x1b1c54,'tableId':this[_0x1cad8b(0x237)],..._0x4a1b4d});return _0x522ac4?this[_0x1cad8b(0x1ea)](_0x1b1c54,_0x522ac4[_0x1cad8b(0x18f)],_0x4a1b4d):!0x1;}catch{return!0x1;}}[_0x18610f(0x201)](_0x10cdd9){const _0x351614=_0x18610f;try{let _0x3d3ee0=this['_getDocumentData'](),_0x138239=(0x0,e['buildUnmergeCellsMutationActions'])({'documentData':_0x3d3ee0,'tableId':this[_0x351614(0x237)],..._0x10cdd9});return _0x138239?this[_0x351614(0x1ea)](_0x3d3ee0,_0x138239['actions'],_0x10cdd9):!0x1;}catch{return!0x1;}}[_0x18610f(0x1e2)](_0x1fd3d7,_0x58df73,_0x44843a){const _0x5e42ce=_0x18610f;let _0x36bd64=this[_0x5e42ce(0x1d2)](),_0x3831d3=(0x0,e[_0x5e42ce(0x203)])(this[_0x5e42ce(0x1e5)][_0x5e42ce(0x180)]()[_0x5e42ce(0x248)](),this[_0x5e42ce(0x215)]);return this[_0x5e42ce(0x1ea)](_0x36bd64,(0x0,e[_0x5e42ce(0x24a)])({'documentData':_0x36bd64,'tableId':this[_0x5e42ce(0x237)],'row':_0x1fd3d7,'column':_0x58df73,'text':_0x44843a},_0x3831d3),this['getCellRange'](_0x1fd3d7,_0x58df73));}[_0x18610f(0x1b9)](_0x57d3e9,_0x126824){const _0x41f198=_0x18610f;let _0x3c3409=this[_0x41f198(0x1d2)]();return this[_0x41f198(0x1ea)](_0x3c3409,(0x0,e[_0x41f198(0x23a)])(_0x3c3409,{'tableId':this[_0x41f198(0x237)],..._0x57d3e9,'value':_0x126824}),_0x57d3e9);}[_0x18610f(0x1f8)](_0x108e52,_0x53d3e3){const _0x28b9a0=_0x18610f;let _0xe5c25a=this[_0x28b9a0(0x1d2)]();return this['_mutateActions'](_0xe5c25a,(0x0,e[_0x28b9a0(0x21a)])({'documentData':_0xe5c25a,'tableId':this[_0x28b9a0(0x237)],..._0x108e52,'margin':_0x53d3e3}),_0x108e52);}[_0x18610f(0x17f)](_0x4c3625){const _0x35b84c=_0x18610f;let _0x4eea15=this['_getDocumentData']();return this['_mutateActions'](_0x4eea15,(0x0,e[_0x35b84c(0x1d7)])(_0x4eea15,this[_0x35b84c(0x237)],_0x4c3625));}[_0x18610f(0x1e0)](_0x4f2059,_0x6622f){const _0x37e367=_0x18610f;let _0x20ca6d=this['_getDocumentData']();return this[_0x37e367(0x1ea)](_0x20ca6d,(0x0,e[_0x37e367(0x1cf)])({'documentData':_0x20ca6d,'tableId':this[_0x37e367(0x237)],..._0x4f2059,'preset':_0x6622f[_0x37e367(0x23d)]??e[_0x37e367(0x1dd)][_0x37e367(0x1d3)],'border':_0x6622f['border']??{'color':{'rgb':_0x6622f[_0x37e367(0x231)]??_0x37e367(0x1f9)},'width':{'v':_0x6622f[_0x37e367(0x1b2)]??0x1},'dashStyle':t[_0x37e367(0x182)]['SOLID']}}),_0x4f2059);}[_0x18610f(0x1d1)](_0x18a67f){const _0x3e9c2b=_0x18610f;return this[_0x3e9c2b(0x1b9)](this['getTableRange'](),_0x18a67f);}[_0x18610f(0x1f5)](_0x1990ae){const _0x7a723b=_0x18610f;return this[_0x7a723b(0x1e0)](this[_0x7a723b(0x188)](),_0x1990ae);}['setTableStyle'](_0x308274){const _0xa9d482=_0x18610f;let _0x38df5e=!_0x308274['backgroundColor']||this[_0xa9d482(0x1d1)](_0x308274[_0xa9d482(0x179)]),_0x5e5511=!_0x308274[_0xa9d482(0x22c)]||this[_0xa9d482(0x1f5)](_0x308274[_0xa9d482(0x22c)]);return _0x38df5e&&_0x5e5511;}[_0x18610f(0x189)](_0x2c40b5,_0xb650f3,_0xe4249c=t[_0x18610f(0x234)][_0x18610f(0x1b7)]){const _0x441936=_0x18610f;var _0x4b3f85;let _0x313368=this[_0x441936(0x1d2)]();return(_0x4b3f85=_0x313368[_0x441936(0x1ed)])!=null&&(_0x4b3f85=_0x4b3f85[this[_0x441936(0x237)]])!=null&&_0x4b3f85[_0x441936(0x22b)][_0x2c40b5]?this[_0x441936(0x1ea)](_0x313368,(0x0,e[_0x441936(0x212)])(_0x313368,this[_0x441936(0x237)],_0x2c40b5,_0xb650f3,_0xe4249c)):!0x1;}[_0x18610f(0x19f)](_0x57205a){const _0x53b9c0=_0x18610f;var _0x4aa2f2;let _0x327a9c=(_0x4aa2f2=this[_0x53b9c0(0x244)]())==null||(_0x4aa2f2=_0x4aa2f2[_0x53b9c0(0x22b)][_0x57205a])==null?void 0x0:_0x4aa2f2[_0x53b9c0(0x1f7)];return _0x327a9c?t['Tools'][_0x53b9c0(0x249)](_0x327a9c):null;}[_0x18610f(0x1da)](_0x2f2f95,_0x1b49df){const _0x2f7109=_0x18610f;var _0x148a30;let _0x3ed17a=this[_0x2f7109(0x1d2)]();return(_0x148a30=_0x3ed17a[_0x2f7109(0x1ed)])!=null&&(_0x148a30=_0x148a30[this[_0x2f7109(0x237)]])!=null&&_0x148a30[_0x2f7109(0x198)][_0x2f2f95]?this[_0x2f7109(0x1ea)](_0x3ed17a,(0x0,e[_0x2f7109(0x1fd)])(_0x3ed17a,this['_tableId'],_0x2f2f95,_0x1b49df)):!0x1;}['distributeRows'](_0x4fd610=0x0,_0x190999=this['getRowCount']()){const _0x385b4c=_0x18610f;let _0x248d17=this[_0x385b4c(0x1d2)]();return this[_0x385b4c(0x1ea)](_0x248d17,(0x0,e['buildDistributeTableRowsMutationActions'])(_0x248d17,this[_0x385b4c(0x237)],_0x4fd610,_0x4fd610+_0x190999-0x1));}[_0x18610f(0x18d)](_0x4d2967=0x0,_0x3fa1e2=this[_0x18610f(0x24c)]()){const _0x9f7f0a=_0x18610f;let _0x5ca51e=this[_0x9f7f0a(0x1d2)]();return this[_0x9f7f0a(0x1ea)](_0x5ca51e,(0x0,e['buildDistributeTableColumnsMutationActions'])(_0x5ca51e,this[_0x9f7f0a(0x237)],_0x4d2967,_0x4d2967+_0x3fa1e2-0x1));}[_0x18610f(0x1ac)](){const _0x3707f1=_0x18610f;var _0x1ea80a;return((_0x1ea80a=this['getMetadata']())==null?void 0x0:_0x1ea80a[_0x3707f1(0x1df)])??0x0;}['setHeaderRowCount'](_0x1933e0){const _0x466917=_0x18610f;let _0xb98caa=this[_0x466917(0x1a1)][_0x466917(0x246)](e['DocsTableModel']),_0x51656c=this[_0x466917(0x1d2)](),_0xb6dc3b=(0x0,e['buildSetTableHeaderRowCountMutationActions'])(_0x51656c,this[_0x466917(0x237)],_0x1933e0);if(!_0xb6dc3b)return!0x1;let _0x158086=this[_0x466917(0x1ea)](_0x51656c,_0xb6dc3b['actions']);return _0x158086&&_0xb98caa['setHeaderRowCount'](this['_unitId'],this[_0x466917(0x237)],_0xb6dc3b[_0x466917(0x1df)]),_0x158086;}[_0x18610f(0x1cd)](_0x4b69ac){const _0x1f5829=_0x18610f;return this[_0x1f5829(0x1fa)](_0x4b69ac);}[_0x18610f(0x192)](){const _0x1d91b0=_0x18610f;var _0x382906;return((_0x382906=this[_0x1d91b0(0x242)]())==null?void 0x0:_0x382906[_0x1d91b0(0x21d)])??!0x1;}[_0x18610f(0x1eb)](){const _0x548069=_0x18610f;let _0x3b21e7=this['_injector'][_0x548069(0x246)](e['DocsTableModel']),_0x21692d=this[_0x548069(0x1d2)](),_0x29bba5=(0x0,e[_0x548069(0x1af)])(_0x21692d,this[_0x548069(0x237)],this['_getBodyPath']());if(!_0x29bba5)return!0x1;let _0x48e85f=this['_mutateActions'](_0x21692d,_0x29bba5['actions']);return _0x48e85f&&_0x3b21e7[_0x548069(0x17b)](this[_0x548069(0x21c)],this[_0x548069(0x237)],!0x0),_0x48e85f;}[_0x18610f(0x19d)](_0x142c6c,_0x47453e){const _0x2ee92e=_0x18610f;return this[_0x2ee92e(0x1a1)][_0x2ee92e(0x246)](e['DocsTableModel'])[_0x2ee92e(0x19d)](this[_0x2ee92e(0x21c)],this[_0x2ee92e(0x237)],_0x142c6c,_0x47453e),!0x0;}['sortByColumn'](_0x16ba46,_0x4f73cb){const _0x2b90f7=_0x18610f;let _0x4869d4=this['_getDocumentData']();return this[_0x2b90f7(0x1ea)](_0x4869d4,(0x0,e[_0x2b90f7(0x1fb)])(_0x4869d4,this[_0x2b90f7(0x184)](),this[_0x2b90f7(0x237)],_0x16ba46,_0x4f73cb,this['_getBodyPath']()));}[_0x18610f(0x1d2)](){const _0xcb170=_0x18610f;let _0xdb0eea=this[_0xcb170(0x1e5)][_0xcb170(0x180)]()[_0xcb170(0x248)]();return this[_0xcb170(0x215)]?{...this[_0xcb170(0x1e5)]['getDocumentDataModel'](this['_segmentId'])[_0xcb170(0x248)](),'documentStyle':_0xdb0eea[_0xcb170(0x185)],'tableSource':_0xdb0eea['tableSource']}:_0xdb0eea;}[_0x18610f(0x184)](){const _0x3d5726=_0x18610f;return this['_injector'][_0x3d5726(0x246)](e[_0x3d5726(0x1c2)])[_0x3d5726(0x1b5)](this['_unitId']);}[_0x18610f(0x23c)](){const _0x264e40=_0x18610f;return(0x0,e['getTableActionBodyPath'])(this[_0x264e40(0x1e5)]['getDocumentDataModel']()['getSnapshot'](),this[_0x264e40(0x215)]);}[_0x18610f(0x1ea)](_0x516434,_0x532377,_0xd9587c){const _0x4ce604=_0x18610f;return(0x0,e[_0x4ce604(0x1b1)])(this['_commandService'],this['_unitId'],_0x516434,_0x532377,_0xd9587c?{'tableId':this[_0x4ce604(0x237)],'segmentId':this[_0x4ce604(0x215)],..._0xd9587c}:void 0x0);}};f=d([u(0x3,t[_0x18610f(0x1ce)]),u(0x4,(0x0,t[_0x18610f(0x222)])(t['Injector']))],f);var p=class extends r[_0x18610f(0x1c0)]{[_0x18610f(0x23f)](_0x471a31=''){const _0xec6f45=_0x18610f;return this['_getTables'](_0x471a31)['map'](_0x408dd1=>this['_createFDocumentTable'](_0x408dd1[_0xec6f45(0x1f0)],_0x471a31));}['getTable'](_0x4f78b1,_0x1f7681=''){const _0x5d87a7=_0x18610f;return this['_getTables'](_0x1f7681)[_0x5d87a7(0x191)](_0x5c024c=>_0x5c024c[_0x5d87a7(0x1f0)]===_0x4f78b1)?this[_0x5d87a7(0x18b)](_0x4f78b1,_0x1f7681):null;}[_0x18610f(0x205)](_0x3017e1,_0xc1e1ef=''){const _0x15b9a3=_0x18610f;var _0x121275;let _0x5572b6=(_0x121275=this[_0x15b9a3(0x241)](_0xc1e1ef)[_0x3017e1])==null?void 0x0:_0x121275[_0x15b9a3(0x1f0)];return _0x5572b6?this[_0x15b9a3(0x18b)](_0x5572b6,_0xc1e1ef):null;}[_0x18610f(0x1e7)](){const _0x59a474=_0x18610f;let _0x558c9c=this['_injector'][_0x59a474(0x246)](e[_0x59a474(0x1a5)])['getStableTableSelection']();return _0x558c9c!=null&&_0x558c9c[_0x59a474(0x1f0)]?this[_0x59a474(0x18b)](_0x558c9c['tableId'],_0x558c9c[_0x59a474(0x200)]):null;}[_0x18610f(0x17d)](_0x3c9ad3,_0xde88ea=''){const _0x876dbd=_0x18610f;return this[_0x876dbd(0x20e)](_0x3c9ad3,_0xde88ea)[0x0]??null;}[_0x18610f(0x20e)](_0x499b9f,_0x3116e9=''){const _0x21ec7f=_0x18610f;let _0x407339=this[_0x21ec7f(0x1ec)](_0x3116e9),_0x1a33ae=typeof _0x499b9f==_0x21ec7f(0x1a0)?{'text':_0x499b9f}:_0x499b9f;return this[_0x21ec7f(0x23f)](_0x3116e9)[_0x21ec7f(0x210)](_0x5e15e3=>{const _0x37eefb=_0x21ec7f;let _0x4d1cfd=_0x5e15e3[_0x37eefb(0x18a)]();return!(_0x1a33ae[_0x37eefb(0x1f0)]&&_0x4d1cfd!==_0x1a33ae[_0x37eefb(0x1f0)]||_0x1a33ae['text']&&!this['_tableContainsText'](_0x407339,_0x4d1cfd,_0x1a33ae[_0x37eefb(0x243)])||_0x1a33ae['headerText']&&!this[_0x37eefb(0x195)](_0x5e15e3,0x0,_0x1a33ae['headerText'])||_0x1a33ae[_0x37eefb(0x1a2)]&&!this[_0x37eefb(0x195)](_0x5e15e3,0x0,_0x1a33ae['titleText']));});}['insertTable'](_0x6b5f4,_0x503076,_0x1d0afd={}){const _0x34c597=_0x18610f;let _0x518bab=this['_injector'][_0x34c597(0x246)](t[_0x34c597(0x1ce)]),_0x5ea770=_0x1d0afd[_0x34c597(0x1f0)]??(0x0,t[_0x34c597(0x1c6)])(0x6);return _0x518bab[_0x34c597(0x211)](e[_0x34c597(0x19b)]['id'],{..._0x1d0afd,'unitId':this[_0x34c597(0x18a)](),'rows':_0x6b5f4,'columns':_0x503076,'tableId':_0x5ea770})?this[_0x34c597(0x18b)](_0x5ea770,_0x1d0afd[_0x34c597(0x200)]??''):null;}[_0x18610f(0x20a)](_0x169fef,_0x2e521e={}){const _0x1424ed=_0x18610f;let _0x218559=this['_injector']['get'](t[_0x1424ed(0x1ce)]),_0x264bea=_0x2e521e['tableId']??(0x0,t[_0x1424ed(0x1c6)])(0x6);return _0x218559[_0x1424ed(0x211)](e[_0x1424ed(0x19b)]['id'],{..._0x2e521e,'unitId':this[_0x1424ed(0x18a)](),'values':_0x169fef,'tableId':_0x264bea})?this['_createFDocumentTable'](_0x264bea,_0x2e521e[_0x1424ed(0x200)]??''):null;}[_0x18610f(0x241)](_0x2e3115=''){let {tables:_0x2a68d0=[]}=this['getBody'](_0x2e3115);return _0x2a68d0;}['_getTableDocumentData'](_0x585c85=''){const _0x5d6236=_0x18610f;let _0x5409d1=this[_0x5d6236(0x180)]()[_0x5d6236(0x248)]();return _0x585c85?{...this[_0x5d6236(0x180)](_0x585c85)['getSnapshot'](),'documentStyle':_0x5409d1[_0x5d6236(0x185)],'tableSource':_0x5409d1['tableSource']}:_0x5409d1;}[_0x18610f(0x18b)](_0x10d150,_0x497f01=''){const _0x517e5a=_0x18610f;return this['_injector'][_0x517e5a(0x1e4)](f,this,_0x10d150,_0x497f01);}[_0x18610f(0x196)](_0x44f33d,_0x32c424,_0x56db33){const _0x1157d2=_0x18610f;var _0x12f298;let _0x3e6f11=(0x0,e[_0x1157d2(0x220)])(_0x44f33d,_0x32c424);if(!_0x3e6f11)return!0x1;let _0x2b7023=(_0x12f298=_0x44f33d['body'])==null?void 0x0:_0x12f298[_0x1157d2(0x1b6)];return _0x2b7023?_0x2b7023[_0x1157d2(0x206)](_0x3e6f11['startOffset'],_0x3e6f11[_0x1157d2(0x194)])[_0x1157d2(0x207)](_0x56db33):!0x1;}[_0x18610f(0x195)](_0x579e5f,_0x23e6f4,_0x3ec879){const _0x11f53d=_0x18610f;return Array['from']({'length':_0x579e5f['getColumnCount']()},(_0x4d1c91,_0x30faad)=>_0x579e5f['getCellText'](_0x23e6f4,_0x30faad))[_0x11f53d(0x191)](_0x26de79=>_0x26de79[_0x11f53d(0x207)](_0x3ec879));}};r[_0x18610f(0x1c0)]['extend'](p),Object[_0x18610f(0x183)](exports,'FDocumentTable',{'enumerable':!0x0,'get':function(){return f;}}),exports[_0x18610f(0x1e9)]=a;
1
+ const _0x285656=_0x2244;(function(_0x1faee7,_0x3f9a01){const _0x54c0b1=_0x2244,_0x4fb083=_0x1faee7();while(!![]){try{const _0x5a4982=parseInt(_0x54c0b1(0x7a))/0x1*(-parseInt(_0x54c0b1(0xe0))/0x2)+-parseInt(_0x54c0b1(0xb9))/0x3+parseInt(_0x54c0b1(0xe1))/0x4+parseInt(_0x54c0b1(0x12a))/0x5*(parseInt(_0x54c0b1(0x6c))/0x6)+parseInt(_0x54c0b1(0x11c))/0x7+parseInt(_0x54c0b1(0x7c))/0x8*(-parseInt(_0x54c0b1(0x82))/0x9)+parseInt(_0x54c0b1(0xc0))/0xa*(parseInt(_0x54c0b1(0x119))/0xb);if(_0x5a4982===_0x3f9a01)break;else _0x4fb083['push'](_0x4fb083['shift']());}catch(_0x3bd1e2){_0x4fb083['push'](_0x4fb083['shift']());}}}(_0x2eec,0x85817),Object[_0x285656(0xec)](exports,Symbol['toStringTag'],{'value':'Module'}));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['FEnum']{get[_0x285656(0xca)](){const _0x403b99=_0x285656;return e[_0x403b99(0xca)];}get[_0x285656(0x100)](){const _0x2ac19a=_0x285656;return e[_0x2ac19a(0x100)];}get[_0x285656(0xce)](){return e['DocsTableSelectionKind'];}get[_0x285656(0x101)](){const _0x31dcb5=_0x285656;return e[_0x31dcb5(0x101)];}get[_0x285656(0xa9)](){const _0x366163=_0x285656;return e[_0x366163(0xa9)];}get[_0x285656(0x9d)](){return e['DocsTableBorderPreset'];}get['DocsTableSortDirection'](){const _0x41a3bd=_0x285656;return e[_0x41a3bd(0xef)];}get[_0x285656(0x8a)](){const _0x33f132=_0x285656;return t[_0x33f132(0x8a)];}};n[_0x285656(0x131)][_0x285656(0x87)](i);var a=class{constructor(_0x253934,_0x1d8bd2,_0x32d5df){const _0x180ed9=_0x285656;this[_0x180ed9(0x113)]=_0x253934,this[_0x180ed9(0xb3)]=_0x1d8bd2,this[_0x180ed9(0xf7)]=_0x32d5df;}[_0x285656(0x96)](){const _0x18d647=_0x285656;return this[_0x18d647(0x113)];}['getRowIndex'](){const _0x3ab760=_0x285656;return this[_0x3ab760(0xb3)];}['getColumnIndex'](){const _0xf34bf=_0x285656;return this[_0xf34bf(0xf7)];}[_0x285656(0x111)](){const _0x24a3b4=_0x285656;return this[_0x24a3b4(0x113)][_0x24a3b4(0x88)](this[_0x24a3b4(0xb3)],this[_0x24a3b4(0xf7)]);}[_0x285656(0x6b)](){const _0x3d67f9=_0x285656;return this['_table'][_0x3d67f9(0x121)](this[_0x3d67f9(0xb3)],this['_column']);}[_0x285656(0x11a)](){const _0x3403f3=_0x285656;return this[_0x3403f3(0x113)][_0x3403f3(0x109)](this[_0x3403f3(0xb3)],this['_column']);}[_0x285656(0x112)](){const _0x251718=_0x285656;return this[_0x251718(0x113)][_0x251718(0xdf)](this['_row'],this[_0x251718(0xf7)]);}[_0x285656(0x80)](){const _0x281b8f=_0x285656;return this[_0x281b8f(0x113)]['getCellMarginOverride'](this[_0x281b8f(0xb3)],this['_column']);}[_0x285656(0x10b)](_0x18725d){const _0x59f8e0=_0x285656;return this[_0x59f8e0(0x113)][_0x59f8e0(0x8e)](this[_0x59f8e0(0x113)]['getCellRange'](this[_0x59f8e0(0xb3)],this[_0x59f8e0(0xf7)]),_0x18725d);}[_0x285656(0xdd)](){const _0x9d59d0=_0x285656;return this[_0x9d59d0(0x113)][_0x9d59d0(0x8e)](this[_0x9d59d0(0x113)][_0x9d59d0(0x79)](this[_0x9d59d0(0xb3)],this[_0x9d59d0(0xf7)]),null);}[_0x285656(0xcf)](_0x3903bf){const _0x3b8559=_0x285656;return this[_0x3b8559(0x113)][_0x3b8559(0x122)](this[_0x3b8559(0xb3)],this['_column'],_0x3903bf);}[_0x285656(0xd4)](_0x1ce1c9){const _0x3aad40=_0x285656;return this[_0x3aad40(0x113)]['setCellBackground'](this[_0x3aad40(0x113)][_0x3aad40(0x79)](this[_0x3aad40(0xb3)],this[_0x3aad40(0xf7)]),_0x1ce1c9);}[_0x285656(0xae)](_0x4b3a4b){return this['_table']['setBorder'](this['_table']['getCellRange'](this['_row'],this['_column']),_0x4b3a4b);}[_0x285656(0x10e)](_0xd3f4f,_0x21cf68){const _0x2daaf5=_0x285656;return this[_0x2daaf5(0x113)][_0x2daaf5(0xb2)]({'startRow':this[_0x2daaf5(0xb3)],'startColumn':this['_column'],'endRow':this[_0x2daaf5(0xb3)]+_0xd3f4f-0x1,'endColumn':this[_0x2daaf5(0xf7)]+_0x21cf68-0x1});}['unmerge'](){const _0x23f6eb=_0x285656;return this[_0x23f6eb(0x113)][_0x23f6eb(0xd2)](this[_0x23f6eb(0x113)][_0x23f6eb(0x79)](this['_row'],this[_0x23f6eb(0xf7)]));}};function o(_0x23251e){'@babel/helpers - typeof';const _0x3c2f7f=_0x285656;return o=typeof Symbol==_0x3c2f7f(0x140)&&typeof Symbol['iterator']==_0x3c2f7f(0x10f)?function(_0x424e96){return typeof _0x424e96;}:function(_0x5f56c5){const _0x12277f=_0x3c2f7f;return _0x5f56c5&&typeof Symbol==_0x12277f(0x140)&&_0x5f56c5['constructor']===Symbol&&_0x5f56c5!==Symbol[_0x12277f(0xeb)]?_0x12277f(0x10f):typeof _0x5f56c5;},o(_0x23251e);}function s(_0x453b07,_0x4f1edf){const _0x4025c9=_0x285656;if(o(_0x453b07)!=_0x4025c9(0xb1)||!_0x453b07)return _0x453b07;var _0x25ac0e=_0x453b07[Symbol['toPrimitive']];if(_0x25ac0e!==void 0x0){var _0x335924=_0x25ac0e[_0x4025c9(0xee)](_0x453b07,_0x4f1edf||_0x4025c9(0xa0));if(o(_0x335924)!=_0x4025c9(0xb1))return _0x335924;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4f1edf===_0x4025c9(0xb8)?String:Number)(_0x453b07);}function _0x2244(_0x5f3b3f,_0x11ce90){_0x5f3b3f=_0x5f3b3f-0x6a;const _0x2eec3a=_0x2eec();let _0x224496=_0x2eec3a[_0x5f3b3f];return _0x224496;}function _0x2eec(){const _0x11146f=['selectColumns','DocsTableBorderPreset','headerText','_segmentId','default','startOffset','syncExecuteCommand','appendRow','some','Right','DocsTableInsertPosition','getInfo','includes','DocsTableColumnInsertPosition','tableColumns','buildMoveTableColumnsMutationActions','moveTableToOffset','getId','setBorder','selectRange','insertTable','object','mergeCells','_row','tableRows','hasTitleRow','moveColumns','ICommandService','string','2228283wTqLub','buildSetTableBackgroundMutationActions','FDocument','setColumnWidth','deleteColumns','Injector','buildInsertTableTitleRowMutationActions','10haSbNZ','_document','setDefaultCellMargin','tableCells','getDefaultCellMargin','body','insertRowsAfter','buildSetTableDefaultCellMarginMutationActions','insertColumnsBefore','_getDocumentData','DocsTableInsertTablePosition','deleteRow','Above','_createFDocumentTable','DocsTableSelectionKind','setText','getRowsRange','titleText','unmergeCells','backgroundColor','setBackgroundColor','Table','getStableTableSelection','border','length','documentStyle','size','Range','getTableAtSelection','clearMarginOverride','buildMoveFloatingTableMutationActions','getCellMargin','10mVoiXt','2864092LUsHca','selectColumn','color','getTableAt','getRowHeight','_tableContainsText','dataStream','insertColumnBefore','buildDistributeTableColumnsMutationActions','_getBodyPath','prototype','defineProperty','appendColumn','call','DocsTableSortDirection','Below','insertRowsBefore','insertTitleRow','insertColumnsAfter','setTableBackground','deepClone','buildUnmergeCellsMutationActions','_column','getSegmentId','slice','buildResizeTableRowActionsFromHeight','titleRow','getCell','_commandService','Row','buildDistributeTableRowsMutationActions','DocsTableColumnType','DocsTableRowInsertPosition','getColumnRange','selectTable','generateRandomId','setRowHeight','insertRowBefore','buildMoveTableToOffsetMutationActions','map','getCellInsertOffset','getTableRange','setMargin','headerRowCount','getColumnCount','mergeTo','symbol','deleteRows','getText','getMargin','_table','cellMargin','SOLID','_rowContainsText','_serializeModel','cells','5598395UsXZsN','getInsertOffset','moveColumn','6675214XcLIqZ','buildSetTableHeaderRowCountMutationActions','getOwnPropertyDescriptor','from','Cell','getCellContentRange','setCellText','DocsTableModel','setCellBackground','setHeaderRowCount','filter','columnTypes','pinHeaderRows','buildInsertTableRowsMutationActions','2458210srGPec','DocsTableDeleteTableCommand','selectRows','getTables','trHeight','margin','getSnapshot','FEnum','getHeaderRowCount','buildInsertTableColumnsMutationActions','rows','DocsTableSelectionService','findTableByText','getTableActionBodyPath','All','insertTableFromData','decorate','_getTableDocumentData','getSource','distributeRows','getTableRangeById','getDocumentDataModel','function','tableId','getContentRange','6wvOKNh','setTableStyle','Inject','setStructuralSelection','getMetadata','max','moveTableBy','_injector','segmentId','actions','Left','buildMoveTableRowsMutationActions','AT_LEAST','getCellRange','210652VcBDfa','_mutateActions','45152gvMgGZ','findTables','buildMergeCellsMutationActions','insertColumnAfter','getMarginOverride','moveRows','522jzPOKo','replace','_getTables','selectRow','getTableMetadata','extend','getCellText','createInstance','DashStyleType','getDefaultCellMarginOverride','tableSource','preset','setCellMargin','DocsTableDeleteColumnsCommand','get','Tools','getRowCount','_unitId','getColumnsRange','width','getTable','DEFAULT_DOCS_TABLE_CELL_MARGIN','buildSortTableMutationActions','endOffset','_tableId','setTableBorder'];_0x2eec=function(){return _0x11146f;};return _0x2eec();}function c(_0x38f632){const _0x4cfc38=_0x285656;var _0x5df887=s(_0x38f632,_0x4cfc38(0xb8));return o(_0x5df887)==_0x4cfc38(0x10f)?_0x5df887:_0x5df887+'';}function l(_0x204376,_0x2849b6,_0x3dacfd){return(_0x2849b6=c(_0x2849b6))in _0x204376?Object['defineProperty'](_0x204376,_0x2849b6,{'value':_0x3dacfd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x204376[_0x2849b6]=_0x3dacfd,_0x204376;}function u(_0x33e7a0,_0x4e171b){return function(_0x5e5e2f,_0x1cfbbd){_0x4e171b(_0x5e5e2f,_0x1cfbbd,_0x33e7a0);};}function d(_0x1e60be,_0x3d6863,_0x2116bc,_0x1c6dcb){const _0x38ca85=_0x285656;var _0x2f4366=arguments[_0x38ca85(0xd8)],_0x20cf86=_0x2f4366<0x3?_0x3d6863:_0x1c6dcb===null?_0x1c6dcb=Object[_0x38ca85(0x11e)](_0x3d6863,_0x2116bc):_0x1c6dcb,_0x3e9d27;if(typeof Reflect==_0x38ca85(0xb1)&&typeof Reflect[_0x38ca85(0x13a)]=='function')_0x20cf86=Reflect[_0x38ca85(0x13a)](_0x1e60be,_0x3d6863,_0x2116bc,_0x1c6dcb);else{for(var _0x19d961=_0x1e60be[_0x38ca85(0xd8)]-0x1;_0x19d961>=0x0;_0x19d961--)(_0x3e9d27=_0x1e60be[_0x19d961])&&(_0x20cf86=(_0x2f4366<0x3?_0x3e9d27(_0x20cf86):_0x2f4366>0x3?_0x3e9d27(_0x3d6863,_0x2116bc,_0x20cf86):_0x3e9d27(_0x3d6863,_0x2116bc))||_0x20cf86);}return _0x2f4366>0x3&&_0x20cf86&&Object[_0x38ca85(0xec)](_0x3d6863,_0x2116bc,_0x20cf86),_0x20cf86;}let f=class{constructor(_0x2c03b7,_0x33d5b7,_0x5122e2,_0x4bed76,_0x32b0f2){const _0x3f2887=_0x285656;this[_0x3f2887(0xc1)]=_0x2c03b7,this[_0x3f2887(0x9a)]=_0x33d5b7,this[_0x3f2887(0x9f)]=_0x5122e2,this[_0x3f2887(0xfd)]=_0x4bed76,this[_0x3f2887(0x73)]=_0x32b0f2,l(this,'_unitId',void 0x0),this[_0x3f2887(0x93)]=this['_document']['getId']();}[_0x285656(0xad)](){const _0x3abd0f=_0x285656;return this[_0x3abd0f(0x9a)];}[_0x285656(0xf8)](){const _0x597dfa=_0x285656;return this[_0x597dfa(0x9f)];}[_0x285656(0xa7)](){const _0x1f0a1f=_0x285656;return{'id':this['_tableId'],'rowCount':this[_0x1f0a1f(0x92)](),'columnCount':this[_0x1f0a1f(0x10d)](),'metadata':this[_0x1f0a1f(0x70)](),'source':this[_0x1f0a1f(0x13c)]()};}['describe'](){const _0x5753cc=_0x285656;let _0x1dd817=this['getMetadata'](),_0x2ec604=this['getSource'](),_0x668765=this[_0x5753cc(0x10d)]();return{'id':this[_0x5753cc(0x9a)],'rowCount':this[_0x5753cc(0x92)](),'columnCount':_0x668765,'headerRowCount':(_0x1dd817==null?void 0x0:_0x1dd817['headerRowCount'])??0x0,'titleRow':(_0x1dd817==null?void 0x0:_0x1dd817['titleRow'])??!0x1,'columns':Array['from']({'length':_0x668765},(_0x4036ff,_0x345490)=>{const _0x4fc20a=_0x5753cc;var _0x508e50,_0x3c617f;return{'index':_0x345490,'type':_0x1dd817==null||(_0x508e50=_0x1dd817[_0x4fc20a(0x127)])==null||(_0x508e50=_0x508e50[_0x345490])==null?void 0x0:_0x508e50['type'],'width':_0x2ec604==null||(_0x3c617f=_0x2ec604['tableColumns'][_0x345490])==null?void 0x0:_0x3c617f[_0x4fc20a(0xda)][_0x4fc20a(0x95)]['v']};}),'sampleRows':Array['from']({'length':this[_0x5753cc(0x92)]()},(_0x56a135,_0x468816)=>Array[_0x5753cc(0x11f)]({'length':_0x668765},(_0x473be1,_0x2c6cfe)=>this['getCellText'](_0x468816,_0x2c6cfe)))['filter'](_0x14cbee=>_0x14cbee[_0x5753cc(0xa4)](_0x280c89=>_0x280c89[_0x5753cc(0xd8)]>0x0))['slice'](0x0,0x5)};}[_0x285656(0x92)](){const _0x2bef5f=_0x285656;var _0x102e84;return((_0x102e84=this[_0x2bef5f(0x13c)]())==null?void 0x0:_0x102e84[_0x2bef5f(0xb4)][_0x2bef5f(0xd8)])??0x0;}['getColumnCount'](){const _0x32205a=_0x285656;var _0x31b69c;return((_0x31b69c=this[_0x32205a(0x13c)]())==null?void 0x0:_0x31b69c[_0x32205a(0xaa)][_0x32205a(0xd8)])??0x0;}[_0x285656(0xfc)](_0x175861,_0xe72ff8){const _0x3fa16c=_0x285656;var _0xc65480;return(_0xc65480=this[_0x3fa16c(0x13c)]())!=null&&(_0xc65480=_0xc65480[_0x3fa16c(0xb4)][_0x175861])!=null&&_0xc65480[_0x3fa16c(0xc3)][_0xe72ff8]?this[_0x3fa16c(0x73)][_0x3fa16c(0x89)](a,this,_0x175861,_0xe72ff8):null;}[_0x285656(0x88)](_0x485e50,_0xfb56a6){const _0x5c647a=_0x285656;var _0x49d377,_0x186801;let _0x19c8c4=(_0x49d377=(0x0,e[_0x5c647a(0x13e)])(this['_getDocumentData'](),this[_0x5c647a(0x9a)]))==null||(_0x49d377=_0x49d377[_0x5c647a(0x134)][_0x485e50])==null?void 0x0:_0x49d377[_0x5c647a(0x118)][_0xfb56a6];return _0x19c8c4?((_0x186801=this[_0x5c647a(0xc9)]()[_0x5c647a(0xc5)])==null?void 0x0:_0x186801[_0x5c647a(0xe7)][_0x5c647a(0xf9)](_0x19c8c4['startOffset']+0x1,_0x19c8c4['endOffset'])[_0x5c647a(0x83)](/\r\n$/,''))??'':'';}[_0x285656(0xdf)](_0x5ad943,_0x2b568f){const _0x423645=_0x285656;var _0x53b68e;let _0x2f93c1=this['getSource'](),_0x378800=_0x2f93c1==null||(_0x53b68e=_0x2f93c1[_0x423645(0xb4)][_0x5ad943])==null?void 0x0:_0x53b68e[_0x423645(0xc3)][_0x2b568f];return _0x378800?t['Tools'][_0x423645(0xf5)](_0x378800[_0x423645(0x12f)]??_0x2f93c1[_0x423645(0x114)]??e[_0x423645(0x97)]):null;}['getCellMarginOverride'](_0x515ea7,_0x333935){const _0x1a4ad2=_0x285656;var _0xb63f21;let _0x28bba8=(_0xb63f21=this[_0x1a4ad2(0x13c)]())==null||(_0xb63f21=_0xb63f21[_0x1a4ad2(0xb4)][_0x515ea7])==null?void 0x0:_0xb63f21['tableCells'][_0x333935];return _0x28bba8!=null&&_0x28bba8[_0x1a4ad2(0x12f)]?t[_0x1a4ad2(0x91)][_0x1a4ad2(0xf5)](_0x28bba8[_0x1a4ad2(0x12f)]):null;}[_0x285656(0xc4)](){const _0x1a1b0e=_0x285656;var _0x22cec4;return t[_0x1a1b0e(0x91)]['deepClone'](((_0x22cec4=this[_0x1a1b0e(0x13c)]())==null?void 0x0:_0x22cec4['cellMargin'])??e['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}[_0x285656(0x8b)](){const _0x39ca71=_0x285656;var _0x316312;let _0x5d9498=(_0x316312=this['getSource']())==null?void 0x0:_0x316312['cellMargin'];return _0x5d9498?t[_0x39ca71(0x91)][_0x39ca71(0xf5)](_0x5d9498):null;}[_0x285656(0x70)](){const _0x52bf13=_0x285656;return this[_0x52bf13(0x73)][_0x52bf13(0x90)](e[_0x52bf13(0x123)])[_0x52bf13(0x86)](this[_0x52bf13(0x93)],this['_tableId']);}[_0x285656(0x13c)](){const _0x25d3ca=_0x285656;var _0x530bb8;return(_0x530bb8=this[_0x25d3ca(0xc9)]()[_0x25d3ca(0x8c)])==null?void 0x0:_0x530bb8[this[_0x25d3ca(0x9a)]];}['getRange'](){const _0x10b1fb=_0x285656;return(0x0,e[_0x10b1fb(0x13e)])(this['_getDocumentData'](),this[_0x10b1fb(0x9a)]);}['getTableRange'](){const _0x52dac5=_0x285656;return{'startRow':0x0,'endRow':Math[_0x52dac5(0x71)](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x52dac5(0x71)](0x0,this[_0x52dac5(0x10d)]()-0x1)};}[_0x285656(0x79)](_0x5c8165,_0x99e1db){return{'startRow':_0x5c8165,'endRow':_0x5c8165,'startColumn':_0x99e1db,'endColumn':_0x99e1db};}[_0x285656(0x121)](_0x29d313,_0x57dd62){const _0x59fb16=_0x285656;var _0x557fef;let _0x23a75d=(_0x557fef=(0x0,e[_0x59fb16(0x13e)])(this[_0x59fb16(0xc9)](),this[_0x59fb16(0x9a)]))==null||(_0x557fef=_0x557fef[_0x59fb16(0x134)][_0x29d313])==null?void 0x0:_0x557fef[_0x59fb16(0x118)][_0x57dd62];if(!_0x23a75d)return null;let _0x1edcf3=_0x23a75d[_0x59fb16(0xa1)]+0x1;return{'startOffset':_0x1edcf3,'endOffset':Math['max'](_0x1edcf3,_0x23a75d[_0x59fb16(0x99)]-0x1),'segmentId':this[_0x59fb16(0x9f)]};}[_0x285656(0x109)](_0x532f50,_0x38de12){const _0x171877=_0x285656;let _0x45baef=this['getCellContentRange'](_0x532f50,_0x38de12);return _0x45baef?Math[_0x171877(0x71)](_0x45baef[_0x171877(0xa1)],_0x45baef['endOffset']-0x1):null;}['getRowRange'](_0x29f3b5){const _0x5d4d4a=_0x285656;return this[_0x5d4d4a(0xd0)](_0x29f3b5,0x1);}[_0x285656(0xd0)](_0x305cbb,_0x556454=0x1){const _0x1cc7ae=_0x285656;return{'startRow':_0x305cbb,'endRow':_0x305cbb+_0x556454-0x1,'startColumn':0x0,'endColumn':Math[_0x1cc7ae(0x71)](0x0,this['getColumnCount']()-0x1)};}[_0x285656(0x102)](_0x5c1f33){const _0x4ec35c=_0x285656;return this[_0x4ec35c(0x94)](_0x5c1f33,0x1);}[_0x285656(0x94)](_0x295dea,_0x3330da=0x1){const _0x46c262=_0x285656;return{'startRow':0x0,'endRow':Math[_0x46c262(0x71)](0x0,this[_0x46c262(0x92)]()-0x1),'startColumn':_0x295dea,'endColumn':_0x295dea+_0x3330da-0x1};}[_0x285656(0x103)](){const _0x54f604=_0x285656;return this['selectRange'](this[_0x54f604(0x10a)](),e[_0x54f604(0xce)][_0x54f604(0xd5)]);}[_0x285656(0x85)](_0x381663){const _0x2569c7=_0x285656;return this[_0x2569c7(0x12c)](_0x381663,0x1);}['selectRows'](_0x49f884,_0x454740=0x1){const _0x1ce3cc=_0x285656;return this[_0x1ce3cc(0xaf)](this['getRowsRange'](_0x49f884,_0x454740),e[_0x1ce3cc(0xce)][_0x1ce3cc(0xfe)]);}[_0x285656(0xe2)](_0x468215){const _0x2b6cf7=_0x285656;return this[_0x2b6cf7(0x9c)](_0x468215,0x1);}[_0x285656(0x9c)](_0x179a9d,_0x2955a9=0x1){const _0x4e49a2=_0x285656;return this[_0x4e49a2(0xaf)](this['getColumnsRange'](_0x179a9d,_0x2955a9),e['DocsTableSelectionKind']['Column']);}['selectCell'](_0x2f6f16,_0x514821){const _0x1b8427=_0x285656;return this[_0x1b8427(0xaf)](this[_0x1b8427(0x79)](_0x2f6f16,_0x514821),e[_0x1b8427(0xce)][_0x1b8427(0x120)]);}[_0x285656(0xaf)](_0x2d1d2b,_0x46bf3b=e[_0x285656(0xce)][_0x285656(0xdb)]){const _0x5da1a3=_0x285656;return this[_0x5da1a3(0x73)]['get'](e[_0x5da1a3(0x135)])[_0x5da1a3(0x6f)]({..._0x2d1d2b,'kind':_0x46bf3b,'segmentId':this[_0x5da1a3(0x9f)],'tableId':this[_0x5da1a3(0x9a)]}),!0x0;}[_0x285656(0x106)](_0x126647){const _0x4ccd4e=_0x285656;return this[_0x4ccd4e(0xf1)](_0x126647,0x1);}['insertRowAfter'](_0x4331a4){const _0x2bcc04=_0x285656;return this[_0x2bcc04(0xc6)](_0x4331a4,0x1);}[_0x285656(0xf1)](_0x394de6,_0x117b42){const _0x58e4b7=_0x285656;let _0x2cc9f1=this['_getDocumentData'](),_0x3eed1b=(0x0,e[_0x58e4b7(0x129)])(_0x2cc9f1,this[_0x58e4b7(0x9a)],_0x394de6,_0x117b42,e[_0x58e4b7(0xa6)][_0x58e4b7(0xcc)],this[_0x58e4b7(0xea)]());return _0x3eed1b?this[_0x58e4b7(0x7b)](_0x2cc9f1,_0x3eed1b[_0x58e4b7(0x75)]):!0x1;}['insertRowsAfter'](_0x360646,_0x1fdc1e){const _0x182725=_0x285656;let _0x1d8c0c=this[_0x182725(0xc9)](),_0x57a48d=(0x0,e['buildInsertTableRowsMutationActions'])(_0x1d8c0c,this['_tableId'],_0x360646,_0x1fdc1e,e[_0x182725(0xa6)][_0x182725(0xf0)],this['_getBodyPath']());return _0x57a48d?this[_0x182725(0x7b)](_0x1d8c0c,_0x57a48d[_0x182725(0x75)]):!0x1;}[_0x285656(0xa3)](){const _0x2a93b8=_0x285656;return this[_0x2a93b8(0xc6)](Math[_0x2a93b8(0x71)](0x0,this[_0x2a93b8(0x92)]()-0x1),0x1);}[_0x285656(0xe8)](_0x24b696){const _0x497020=_0x285656;return this[_0x497020(0xc8)](_0x24b696,0x1);}[_0x285656(0x7f)](_0x5912b8){const _0x41c17d=_0x285656;return this[_0x41c17d(0xf3)](_0x5912b8,0x1);}[_0x285656(0xc8)](_0x5d0900,_0x2be802){const _0x4fa56b=_0x285656;let _0x15811f=this['_getDocumentData'](),_0x3d6c22=(0x0,e[_0x4fa56b(0x133)])(_0x15811f,this['_tableId'],_0x5d0900,_0x2be802,e[_0x4fa56b(0xa6)][_0x4fa56b(0x76)],{'bodyPath':this[_0x4fa56b(0xea)]()});return _0x3d6c22?this[_0x4fa56b(0x7b)](_0x15811f,_0x3d6c22[_0x4fa56b(0x75)]):!0x1;}['insertColumnsAfter'](_0x4c0583,_0x490801){const _0x959be8=_0x285656;let _0x43d110=this[_0x959be8(0xc9)](),_0x31d0a0=(0x0,e[_0x959be8(0x133)])(_0x43d110,this[_0x959be8(0x9a)],_0x4c0583,_0x490801,e['DocsTableInsertPosition'][_0x959be8(0xa5)],{'bodyPath':this['_getBodyPath']()});return _0x31d0a0?this[_0x959be8(0x7b)](_0x43d110,_0x31d0a0[_0x959be8(0x75)]):!0x1;}[_0x285656(0xed)](){const _0x5297cb=_0x285656;return this[_0x5297cb(0xf3)](Math['max'](0x0,this[_0x5297cb(0x10d)]()-0x1),0x1);}[_0x285656(0xcb)](_0x44985d){const _0x286e30=_0x285656;return this[_0x286e30(0x110)](_0x44985d,0x1);}[_0x285656(0x110)](_0x18680f,_0x5d94eb=0x1){const _0x283d05=_0x285656;return!!this[_0x283d05(0xfd)][_0x283d05(0xa2)](e['DocsTableDeleteRowsCommand']['id'],{'endRow':_0x18680f+_0x5d94eb-0x1,'segmentId':this[_0x283d05(0x9f)],'startRow':_0x18680f,'tableId':this[_0x283d05(0x9a)],'unitId':this[_0x283d05(0x93)]});}['deleteColumn'](_0x5cd34b){const _0x1b0228=_0x285656;return this[_0x1b0228(0xbd)](_0x5cd34b,0x1);}[_0x285656(0xbd)](_0x1dbf37,_0x1cb4f5=0x1){const _0xe0bc18=_0x285656;return!!this[_0xe0bc18(0xfd)][_0xe0bc18(0xa2)](e[_0xe0bc18(0x8f)]['id'],{'endColumn':_0x1dbf37+_0x1cb4f5-0x1,'segmentId':this[_0xe0bc18(0x9f)],'startColumn':_0x1dbf37,'tableId':this[_0xe0bc18(0x9a)],'unitId':this[_0xe0bc18(0x93)]});}['deleteTable'](){const _0x1d00c0=_0x285656;return!!this[_0x1d00c0(0xfd)]['syncExecuteCommand'](e[_0x1d00c0(0x12b)]['id'],{'segmentId':this[_0x1d00c0(0x9f)],'tableId':this[_0x1d00c0(0x9a)],'unitId':this[_0x1d00c0(0x93)]});}[_0x285656(0x72)](_0x105ae0,_0x581d67){const _0x9841a=_0x285656;let _0x470767=this[_0x9841a(0xc9)]();return this[_0x9841a(0x7b)](_0x470767,(0x0,e[_0x9841a(0xde)])(_0x470767,this['_tableId'],_0x105ae0,_0x581d67));}[_0x285656(0xac)](_0x545b9a){const _0xc92101=_0x285656;let _0x5a05ae=this[_0xc92101(0xc9)]();return this[_0xc92101(0x7b)](_0x5a05ae,(0x0,e[_0xc92101(0x107)])(_0x5a05ae,this[_0xc92101(0x9a)],_0x545b9a,this[_0xc92101(0xea)]()));}['moveRow'](_0x14aa2c,_0x66b999,_0x101d57=e[_0x285656(0xa6)][_0x285656(0xcc)]){const _0x526518=_0x285656;return this[_0x526518(0x81)](_0x14aa2c,0x1,_0x66b999,_0x101d57);}['moveRows'](_0x4a525a,_0x1bf9c2,_0x4dd493,_0x2d28df=e[_0x285656(0xa6)][_0x285656(0xcc)]){const _0x13a22d=_0x285656;let _0x3d099e=this[_0x13a22d(0xc9)](),_0x21f6c3=(0x0,e[_0x13a22d(0x77)])(_0x3d099e,this[_0x13a22d(0x9a)],_0x4a525a,_0x4dd493,_0x1bf9c2,_0x2d28df,this[_0x13a22d(0xea)]());return _0x21f6c3?this[_0x13a22d(0x7b)](_0x3d099e,_0x21f6c3['actions']):!0x1;}[_0x285656(0x11b)](_0x2e4e0c,_0x426ef6,_0x391613=e[_0x285656(0xa6)][_0x285656(0x76)]){return this['moveColumns'](_0x2e4e0c,0x1,_0x426ef6,_0x391613);}[_0x285656(0xb6)](_0x584b61,_0x13b194,_0x141d5e,_0x54b898=e[_0x285656(0xa6)]['Left']){const _0xe35db1=_0x285656;let _0x405a94=this[_0xe35db1(0xc9)](),_0x57bde4=(0x0,e[_0xe35db1(0xab)])(_0x405a94,this[_0xe35db1(0x9a)],_0x584b61,_0x141d5e,_0x13b194,_0x54b898,this[_0xe35db1(0xea)]());return _0x57bde4?this[_0xe35db1(0x7b)](_0x405a94,_0x57bde4['actions']):!0x1;}[_0x285656(0xb2)](_0x57d76e){const _0x4d293d=_0x285656;try{let _0x589278=this['_getDocumentData'](),_0x2c3438=(0x0,e[_0x4d293d(0x7e)])({'documentData':_0x589278,'tableId':this['_tableId'],..._0x57d76e});return _0x2c3438?this[_0x4d293d(0x7b)](_0x589278,_0x2c3438[_0x4d293d(0x75)],_0x57d76e):!0x1;}catch{return!0x1;}}[_0x285656(0xd2)](_0x37a789){const _0x41a2a8=_0x285656;try{let _0x119459=this[_0x41a2a8(0xc9)](),_0x13de1b=(0x0,e[_0x41a2a8(0xf6)])({'documentData':_0x119459,'tableId':this[_0x41a2a8(0x9a)],..._0x37a789});return _0x13de1b?this[_0x41a2a8(0x7b)](_0x119459,_0x13de1b[_0x41a2a8(0x75)],_0x37a789):!0x1;}catch{return!0x1;}}[_0x285656(0x122)](_0xb3a063,_0x572d00,_0x54a87b){const _0x326de6=_0x285656;let _0x144326=this['_getDocumentData'](),_0x4ac35d=(0x0,e[_0x326de6(0x137)])(this[_0x326de6(0xc1)]['getDocumentDataModel']()['getSnapshot'](),this[_0x326de6(0x9f)]);return this[_0x326de6(0x7b)](_0x144326,(0x0,e['buildSetTableCellTextMutationActions'])({'documentData':_0x144326,'tableId':this['_tableId'],'row':_0xb3a063,'column':_0x572d00,'text':_0x54a87b},_0x4ac35d),this[_0x326de6(0x79)](_0xb3a063,_0x572d00));}[_0x285656(0x124)](_0x4bcf69,_0x2089bd){const _0x2d1cb9=_0x285656;let _0x1f041a=this[_0x2d1cb9(0xc9)]();return this[_0x2d1cb9(0x7b)](_0x1f041a,(0x0,e[_0x2d1cb9(0xba)])(_0x1f041a,{'tableId':this[_0x2d1cb9(0x9a)],..._0x4bcf69,'value':_0x2089bd}),_0x4bcf69);}[_0x285656(0x8e)](_0x1fef6f,_0x48fb68){const _0x579695=_0x285656;let _0x101f3e=this[_0x579695(0xc9)]();return this[_0x579695(0x7b)](_0x101f3e,(0x0,e['buildSetTableCellMarginMutationActions'])({'documentData':_0x101f3e,'tableId':this[_0x579695(0x9a)],..._0x1fef6f,'margin':_0x48fb68}),_0x1fef6f);}[_0x285656(0xc2)](_0x1af64f){const _0x50d548=_0x285656;let _0x20b452=this['_getDocumentData']();return this[_0x50d548(0x7b)](_0x20b452,(0x0,e[_0x50d548(0xc7)])(_0x20b452,this[_0x50d548(0x9a)],_0x1af64f));}[_0x285656(0xae)](_0xee6112,_0x40db9e){const _0x52a63b=_0x285656;let _0x1b6084=this[_0x52a63b(0xc9)]();return this[_0x52a63b(0x7b)](_0x1b6084,(0x0,e['buildSetTableBorderMutationActions'])({'documentData':_0x1b6084,'tableId':this[_0x52a63b(0x9a)],..._0xee6112,'preset':_0x40db9e[_0x52a63b(0x8d)]??e[_0x52a63b(0x9d)][_0x52a63b(0x138)],'border':_0x40db9e[_0x52a63b(0xd7)]??{'color':{'rgb':_0x40db9e[_0x52a63b(0xe3)]??'#1f1f1f'},'width':{'v':_0x40db9e[_0x52a63b(0x95)]??0x1},'dashStyle':t[_0x52a63b(0x8a)][_0x52a63b(0x115)]}}),_0xee6112);}['setTableBackground'](_0x57aedb){const _0x379137=_0x285656;return this[_0x379137(0x124)](this['getTableRange'](),_0x57aedb);}[_0x285656(0x9b)](_0x37839a){const _0x3555e9=_0x285656;return this[_0x3555e9(0xae)](this[_0x3555e9(0x10a)](),_0x37839a);}[_0x285656(0x6d)](_0x50999d){const _0x5124bc=_0x285656;let _0x4d8a21=!_0x50999d[_0x5124bc(0xd3)]||this[_0x5124bc(0xf4)](_0x50999d['backgroundColor']),_0x3c9d27=!_0x50999d['border']||this[_0x5124bc(0x9b)](_0x50999d[_0x5124bc(0xd7)]);return _0x4d8a21&&_0x3c9d27;}[_0x285656(0x105)](_0x451b99,_0x3b3462,_0x5d6d75=t['TableRowHeightRule'][_0x285656(0x78)]){const _0x5f0159=_0x285656;var _0x5bbe7b;let _0x47af76=this[_0x5f0159(0xc9)]();return(_0x5bbe7b=_0x47af76[_0x5f0159(0x8c)])!=null&&(_0x5bbe7b=_0x5bbe7b[this[_0x5f0159(0x9a)]])!=null&&_0x5bbe7b[_0x5f0159(0xb4)][_0x451b99]?this[_0x5f0159(0x7b)](_0x47af76,(0x0,e[_0x5f0159(0xfa)])(_0x47af76,this[_0x5f0159(0x9a)],_0x451b99,_0x3b3462,_0x5d6d75)):!0x1;}[_0x285656(0xe5)](_0x53c086){const _0x20bbba=_0x285656;var _0x55e1ac;let _0x2d8a8a=(_0x55e1ac=this[_0x20bbba(0x13c)]())==null||(_0x55e1ac=_0x55e1ac[_0x20bbba(0xb4)][_0x53c086])==null?void 0x0:_0x55e1ac[_0x20bbba(0x12e)];return _0x2d8a8a?t[_0x20bbba(0x91)][_0x20bbba(0xf5)](_0x2d8a8a):null;}[_0x285656(0xbc)](_0x477581,_0x132bf4){const _0x5d2319=_0x285656;var _0x544f27;let _0x110296=this[_0x5d2319(0xc9)]();return(_0x544f27=_0x110296[_0x5d2319(0x8c)])!=null&&(_0x544f27=_0x544f27[this[_0x5d2319(0x9a)]])!=null&&_0x544f27[_0x5d2319(0xaa)][_0x477581]?this['_mutateActions'](_0x110296,(0x0,e['buildResizeTableColumnActionsFromWidth'])(_0x110296,this[_0x5d2319(0x9a)],_0x477581,_0x132bf4)):!0x1;}[_0x285656(0x13d)](_0x325bb5=0x0,_0x19e0a2=this['getRowCount']()){const _0x294c18=_0x285656;let _0x4685b7=this['_getDocumentData']();return this[_0x294c18(0x7b)](_0x4685b7,(0x0,e[_0x294c18(0xff)])(_0x4685b7,this[_0x294c18(0x9a)],_0x325bb5,_0x325bb5+_0x19e0a2-0x1));}['distributeColumns'](_0x2b7a5c=0x0,_0x39679c=this[_0x285656(0x10d)]()){const _0x5e552f=_0x285656;let _0x567119=this[_0x5e552f(0xc9)]();return this[_0x5e552f(0x7b)](_0x567119,(0x0,e[_0x5e552f(0xe9)])(_0x567119,this[_0x5e552f(0x9a)],_0x2b7a5c,_0x2b7a5c+_0x39679c-0x1));}[_0x285656(0x132)](){const _0x19796e=_0x285656;var _0xe6d347;return((_0xe6d347=this[_0x19796e(0x70)]())==null?void 0x0:_0xe6d347[_0x19796e(0x10c)])??0x0;}[_0x285656(0x125)](_0x4cde4e){const _0x5c2972=_0x285656;let _0xbad594=this[_0x5c2972(0x73)][_0x5c2972(0x90)](e['DocsTableModel']),_0xc7164c=this[_0x5c2972(0xc9)](),_0x2a064b=(0x0,e[_0x5c2972(0x11d)])(_0xc7164c,this[_0x5c2972(0x9a)],_0x4cde4e);if(!_0x2a064b)return!0x1;let _0xcde947=this[_0x5c2972(0x7b)](_0xc7164c,_0x2a064b[_0x5c2972(0x75)]);return _0xcde947&&_0xbad594[_0x5c2972(0x125)](this[_0x5c2972(0x93)],this[_0x5c2972(0x9a)],_0x2a064b[_0x5c2972(0x10c)]),_0xcde947;}[_0x285656(0x128)](_0x450f94){const _0x44db29=_0x285656;return this[_0x44db29(0x125)](_0x450f94);}[_0x285656(0xb5)](){const _0x18bec1=_0x285656;var _0x1ceca4;return((_0x1ceca4=this[_0x18bec1(0x70)]())==null?void 0x0:_0x1ceca4[_0x18bec1(0xfb)])??!0x1;}[_0x285656(0xf2)](){const _0x494cd1=_0x285656;let _0x16fbe0=this[_0x494cd1(0x73)][_0x494cd1(0x90)](e[_0x494cd1(0x123)]),_0xa5d190=this[_0x494cd1(0xc9)](),_0x459c1e=(0x0,e[_0x494cd1(0xbf)])(_0xa5d190,this['_tableId'],this[_0x494cd1(0xea)]());if(!_0x459c1e)return!0x1;let _0x2d1a25=this['_mutateActions'](_0xa5d190,_0x459c1e[_0x494cd1(0x75)]);return _0x2d1a25&&_0x16fbe0['setTitleRow'](this[_0x494cd1(0x93)],this[_0x494cd1(0x9a)],!0x0),_0x2d1a25;}['setColumnType'](_0x226bf6,_0x23bae2){const _0x14b24d=_0x285656;return this[_0x14b24d(0x73)][_0x14b24d(0x90)](e[_0x14b24d(0x123)])['setColumnType'](this[_0x14b24d(0x93)],this[_0x14b24d(0x9a)],_0x226bf6,_0x23bae2),!0x0;}['sortByColumn'](_0xe2ac3a,_0x22ca80){const _0x1d72df=_0x285656;let _0x12bef4=this[_0x1d72df(0xc9)]();return this[_0x1d72df(0x7b)](_0x12bef4,(0x0,e[_0x1d72df(0x98)])(_0x12bef4,this[_0x1d72df(0x117)](),this[_0x1d72df(0x9a)],_0xe2ac3a,_0x22ca80,this[_0x1d72df(0xea)]()));}['_getDocumentData'](){const _0x2df13b=_0x285656;let _0x67ba09=this[_0x2df13b(0xc1)]['getDocumentDataModel']()[_0x2df13b(0x130)]();return this[_0x2df13b(0x9f)]?{...this[_0x2df13b(0xc1)][_0x2df13b(0x13f)](this[_0x2df13b(0x9f)])['getSnapshot'](),'documentStyle':_0x67ba09[_0x2df13b(0xd9)],'tableSource':_0x67ba09['tableSource']}:_0x67ba09;}[_0x285656(0x117)](){const _0x3ef688=_0x285656;return this[_0x3ef688(0x73)][_0x3ef688(0x90)](e['DocsTableModel'])['serialize'](this[_0x3ef688(0x93)]);}[_0x285656(0xea)](){const _0x5a8eb2=_0x285656;return(0x0,e[_0x5a8eb2(0x137)])(this[_0x5a8eb2(0xc1)]['getDocumentDataModel']()[_0x5a8eb2(0x130)](),this[_0x5a8eb2(0x9f)]);}[_0x285656(0x7b)](_0x24eb08,_0x34a3a3,_0x1bb0e3){const _0x5602c6=_0x285656;return(0x0,e['executeRichTextTableActions'])(this['_commandService'],this['_unitId'],_0x24eb08,_0x34a3a3,_0x1bb0e3?{'tableId':this[_0x5602c6(0x9a)],'segmentId':this['_segmentId'],..._0x1bb0e3}:void 0x0);}};f=d([u(0x3,t[_0x285656(0xb7)]),u(0x4,(0x0,t[_0x285656(0x6e)])(t[_0x285656(0xbe)]))],f);var p=class extends r[_0x285656(0xbb)]{[_0x285656(0x12d)](_0x2a6f4d=''){const _0x49ccaa=_0x285656;return this['_getTables'](_0x2a6f4d)[_0x49ccaa(0x108)](_0x1e760f=>this[_0x49ccaa(0xcd)](_0x1e760f['tableId'],_0x2a6f4d));}[_0x285656(0x96)](_0x9dd400,_0x488efe=''){const _0x8c58f=_0x285656;return this[_0x8c58f(0x84)](_0x488efe)[_0x8c58f(0xa4)](_0x15fe36=>_0x15fe36[_0x8c58f(0x6a)]===_0x9dd400)?this[_0x8c58f(0xcd)](_0x9dd400,_0x488efe):null;}[_0x285656(0xe4)](_0x432a74,_0x4c9455=''){const _0x5ce775=_0x285656;var _0xebb1bc;let _0x33192b=(_0xebb1bc=this['_getTables'](_0x4c9455)[_0x432a74])==null?void 0x0:_0xebb1bc['tableId'];return _0x33192b?this[_0x5ce775(0xcd)](_0x33192b,_0x4c9455):null;}[_0x285656(0xdc)](){const _0x3939fa=_0x285656;let _0x1d73bf=this['_injector']['get'](e[_0x3939fa(0x135)])[_0x3939fa(0xd6)]();return _0x1d73bf!=null&&_0x1d73bf[_0x3939fa(0x6a)]?this[_0x3939fa(0xcd)](_0x1d73bf[_0x3939fa(0x6a)],_0x1d73bf[_0x3939fa(0x74)]):null;}[_0x285656(0x136)](_0x4854fa,_0x189c0d=''){const _0x1355ca=_0x285656;return this[_0x1355ca(0x7d)](_0x4854fa,_0x189c0d)[0x0]??null;}[_0x285656(0x7d)](_0x5f1adb,_0x1dc006=''){const _0x4c0faf=_0x285656;let _0x441960=this[_0x4c0faf(0x13b)](_0x1dc006),_0x35709a=typeof _0x5f1adb==_0x4c0faf(0xb8)?{'text':_0x5f1adb}:_0x5f1adb;return this['getTables'](_0x1dc006)[_0x4c0faf(0x126)](_0x2472af=>{const _0x1dcb94=_0x4c0faf;let _0x529d34=_0x2472af[_0x1dcb94(0xad)]();return!(_0x35709a[_0x1dcb94(0x6a)]&&_0x529d34!==_0x35709a['tableId']||_0x35709a['text']&&!this['_tableContainsText'](_0x441960,_0x529d34,_0x35709a['text'])||_0x35709a[_0x1dcb94(0x9e)]&&!this[_0x1dcb94(0x116)](_0x2472af,0x0,_0x35709a[_0x1dcb94(0x9e)])||_0x35709a[_0x1dcb94(0xd1)]&&!this[_0x1dcb94(0x116)](_0x2472af,0x0,_0x35709a[_0x1dcb94(0xd1)]));});}[_0x285656(0xb0)](_0x4dfe34,_0x4aa6d9,_0x5bf9d6={}){const _0x2d5508=_0x285656;let _0x54120a=this[_0x2d5508(0x73)]['get'](t[_0x2d5508(0xb7)]),_0xd83732=_0x5bf9d6[_0x2d5508(0x6a)]??(0x0,t['generateRandomId'])(0x6);return _0x54120a['syncExecuteCommand'](e['DocsTableInsertTableCommand']['id'],{..._0x5bf9d6,'unitId':this['getId'](),'rows':_0x4dfe34,'columns':_0x4aa6d9,'tableId':_0xd83732})?this[_0x2d5508(0xcd)](_0xd83732,_0x5bf9d6['segmentId']??''):null;}[_0x285656(0x139)](_0x303532,_0x23277a={}){const _0x50c8bc=_0x285656;let _0x14345e=this['_injector']['get'](t[_0x50c8bc(0xb7)]),_0x37c502=_0x23277a['tableId']??(0x0,t[_0x50c8bc(0x104)])(0x6);return _0x14345e[_0x50c8bc(0xa2)](e['DocsTableInsertTableCommand']['id'],{..._0x23277a,'unitId':this[_0x50c8bc(0xad)](),'values':_0x303532,'tableId':_0x37c502})?this[_0x50c8bc(0xcd)](_0x37c502,_0x23277a[_0x50c8bc(0x74)]??''):null;}[_0x285656(0x84)](_0x5196f8=''){let {tables:_0x58111a=[]}=this['getBody'](_0x5196f8);return _0x58111a;}[_0x285656(0x13b)](_0x453a0e=''){const _0xc57987=_0x285656;let _0xf10396=this[_0xc57987(0x13f)]()[_0xc57987(0x130)]();return _0x453a0e?{...this[_0xc57987(0x13f)](_0x453a0e)['getSnapshot'](),'documentStyle':_0xf10396[_0xc57987(0xd9)],'tableSource':_0xf10396[_0xc57987(0x8c)]}:_0xf10396;}[_0x285656(0xcd)](_0x3d96b9,_0x3face8=''){const _0x162f3b=_0x285656;return this[_0x162f3b(0x73)][_0x162f3b(0x89)](f,this,_0x3d96b9,_0x3face8);}[_0x285656(0xe6)](_0x5e1301,_0x57172a,_0x503714){const _0x59490f=_0x285656;var _0x27f2a5;let _0x118f36=(0x0,e[_0x59490f(0x13e)])(_0x5e1301,_0x57172a);if(!_0x118f36)return!0x1;let _0x2bd00f=(_0x27f2a5=_0x5e1301[_0x59490f(0xc5)])==null?void 0x0:_0x27f2a5['dataStream'];return _0x2bd00f?_0x2bd00f[_0x59490f(0xf9)](_0x118f36[_0x59490f(0xa1)],_0x118f36['endOffset'])[_0x59490f(0xa8)](_0x503714):!0x1;}[_0x285656(0x116)](_0x3da879,_0x1d4a00,_0x264fbd){const _0x3aa9d9=_0x285656;return Array[_0x3aa9d9(0x11f)]({'length':_0x3da879[_0x3aa9d9(0x10d)]()},(_0x12e2ae,_0x852190)=>_0x3da879['getCellText'](_0x1d4a00,_0x852190))['some'](_0x466bff=>_0x466bff[_0x3aa9d9(0xa8)](_0x264fbd));}};r[_0x285656(0xbb)][_0x285656(0x87)](p),Object[_0x285656(0xec)](exports,'FDocumentTable',{'enumerable':!0x0,'get':function(){return f;}}),exports['FDocumentTableCell']=a;