@univerjs-pro/docs-table 1.0.0-beta.1 → 1.0.0-beta.2

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.
@@ -1,8 +1,9 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteColumnsCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
5
- startColumn?: number;
6
- endColumn?: number;
4
+ unitId: string;
5
+ tableId: string;
6
+ startColumn: number;
7
+ endColumn: number;
7
8
  }
8
9
  export declare const DocsTableDeleteColumnsCommand: ICommand<IDocsTableDeleteColumnsCommandParams>;
@@ -1,8 +1,9 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteRowsCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
5
- startRow?: number;
6
- endRow?: number;
4
+ unitId: string;
5
+ tableId: string;
6
+ startRow: number;
7
+ endRow: number;
7
8
  }
8
9
  export declare const DocsTableDeleteRowsCommand: ICommand<IDocsTableDeleteRowsCommandParams>;
@@ -1,6 +1,7 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteTableCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
4
+ unitId: string;
5
+ tableId: string;
5
6
  }
6
7
  export declare const DocsTableDeleteTableCommand: ICommand<IDocsTableDeleteTableCommandParams>;
@@ -1,9 +1,9 @@
1
1
  import type { DocsTableColumnInsertPosition, DocsTableRowInsertPosition, DocsTableSortDirection, IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableOffsetRange } from '@univerjs-pro/docs-table';
2
- import type { Injector, ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
2
+ import type { ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
3
3
  import type { FDocument } from '@univerjs/docs/facade';
4
4
  import type { IDocsTableBorderOptions, IDocsTableCellContentRange, IDocsTableDescription, IDocsTableInfo, IDocsTableStyle } from './types';
5
5
  import { DocsTableSelectionKind } from '@univerjs-pro/docs-table';
6
- import { TableRowHeightRule } from '@univerjs/core';
6
+ import { ICommandService, Injector, TableRowHeightRule } from '@univerjs/core';
7
7
  import { FDocumentTableCell } from './f-document-table-cell';
8
8
  /**
9
9
  * Facade object for a single enhanced docs table.
@@ -25,9 +25,10 @@ export declare class FDocumentTable {
25
25
  private readonly _document;
26
26
  private readonly _tableId;
27
27
  private readonly _segmentId;
28
+ private readonly _commandService;
28
29
  private readonly _injector;
29
30
  private readonly _unitId;
30
- constructor(_document: FDocument, _tableId: string, _segmentId: string | undefined, _injector: Injector);
31
+ constructor(_document: FDocument, _tableId: string, _segmentId: string, _commandService: ICommandService, _injector: Injector);
31
32
  /**
32
33
  * Returns the table id.
33
34
  * @returns {string} The table id stored in the document snapshot.
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4383(){const _0x158172=['_column','_table','dataStream','buildInsertTableRowsMutationActions','distributeColumns','@univerjs-pro/docs-table','1eGOCun','Table','33wXAqHY','getCellMarginOverride','_tableId','deleteColumn','_serializeModel','defineProperty','DocsTableSelectionService','DocsTableInsertTableCommand','SOLID','default','UniverCoreFacade','getTableRange','insertRowsBefore','_rowContainsText','getCell','iterator','getCellText','getRowsRange','toStringTag','setColumnType','getInsertOffset','buildMergeCellsMutationActions','Row','setHeaderRowCount','headerRowCount','#1f1f1f','4336392mwlyFn','4cuPfrs','actions','UniverProDocsTable','tableRows','moveTableToOffset','buildResizeTableColumnActionsFromWidth','buildMoveTableColumnsMutationActions','insertColumnBefore','getCellContentRange','getStableTableSelection','getTables','mergeCells','getTable','moveRows','tableId','getColumnIndex','DocsTableBorderPreset','appendRow','setTableBackground','getRowCount','_unitId','_getDocumentData','getMetadata','selectRows','slice','moveTableBy','selectTable','buildMoveTableToOffsetMutationActions','text','getSegmentId','getInfo','replace','map','width','buildSetTableDefaultCellMarginMutationActions','6990155zQgyXw','insertTableFromData','buildSetTableHeaderRowCountMutationActions','sortByColumn','3596194yCGjFC','AT_LEAST','object','insertColumnsAfter','buildInsertTableColumnsMutationActions','Below','Cell','deleteRows','selectRow','mergeTo','string','getCellMargin','DocsTableColumnInsertPosition','buildDeleteTableMutationActions','_injector','some','rows','clearMarginOverride','UniverCore','_segmentId','size','function','margin','buildInsertTableTitleRowMutationActions','from','syncExecuteCommand','DocsTableSortDirection','_row','getSnapshot','color','tableColumns','titleRow','_getTables','UniverProDocsTableFacade','getTableActionBodyPath','setBorder','unmerge','setTitleRow','_mutateActions','DEFAULT_DOCS_TABLE_CELL_MARGIN','endOffset','buildDistributeTableRowsMutationActions','buildDeleteTableRowsMutationActions','toPrimitive','705816puLlAy','titleText','moveColumn','@univerjs/core/facade','insertRowBefore','startOffset','filter','generateRandomId','getBody','moveColumns','@univerjs/core','backgroundColor','segmentId','documentStyle','@univerjs/docs/facade','max','DocsTableInsertPosition','getText','Tools','getCellInsertOffset','buildUnmergeCellsMutationActions','_getBodyPath','get','14489310fSFxCe','getRowIndex','unmergeCells','insertTitleRow','includes','getDocumentDataModel','tableCells','DocsTableModel','getContentRange','length','5168736ihddxu','DashStyleType','cells','body','getSource','All','_getTableDocumentData','getColumnsRange','setTableBorder','14609joHMRP','setColumnWidth','getCellRange','setCellBackground','buildDistributeTableColumnsMutationActions','selectRange','moveRow','Right','FDocument','_tableContainsText','columnTypes','FEnum','getId','DocsTableInsertTablePosition','insertColumnsBefore','symbol','setCellText','insertRowsAfter','exports','getColumnCount','getTableRangeById','selectColumns','deleteColumns','deleteRow','findTableByText','Range','border','call','deepClone','_document','setStructuralSelection','getTableMetadata','constructor','buildMoveFloatingTableMutationActions','Column','setCellMargin','cellMargin','getRange','getMargin','1794LLsBPi','ICommandService','setMargin','getTableAt','_createFDocumentTable','amd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FDocumentTable','Left','setBackgroundColor','prototype','hasTitleRow','buildSetTableBorderMutationActions','describe','Above','setText','buildSetTableBackgroundMutationActions','insertTable','distributeRows','extend','buildResizeTableRowActionsFromHeight','trHeight','findTables','FDocumentTableCell','tableSource','DocsTableSelectionKind','selectCell'];_0x4383=function(){return _0x158172;};return _0x4383();}function _0x3ddf(_0x998dd1,_0x51487a){_0x998dd1=_0x998dd1-0x14b;const _0x43839d=_0x4383();let _0x3ddfe6=_0x43839d[_0x998dd1];return _0x3ddfe6;}(function(_0x46ae4a,_0x853408){const _0x599722=_0x3ddf,_0x17b420=_0x46ae4a();while(!![]){try{const _0x4a5a65=-parseInt(_0x599722(0x21a))/0x1*(parseInt(_0x599722(0x17c))/0x2)+-parseInt(_0x599722(0x1c9))/0x3+parseInt(_0x599722(0x155))/0x4*(parseInt(_0x599722(0x178))/0x5)+parseInt(_0x599722(0x1f9))/0x6*(-parseInt(_0x599722(0x1d2))/0x7)+-parseInt(_0x599722(0x154))/0x8+-parseInt(_0x599722(0x1a8))/0x9+-parseInt(_0x599722(0x1bf))/0xa*(-parseInt(_0x599722(0x21c))/0xb);if(_0x4a5a65===_0x853408)break;else _0x17b420['push'](_0x17b420['shift']());}catch(_0x37d16d){_0x17b420['push'](_0x17b420['shift']());}}}(_0x4383,0xef181),function(_0x53502e,_0x25718f){const _0x41739f=_0x3ddf;typeof exports==_0x41739f(0x17e)&&typeof module<'u'?_0x25718f(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x41739f(0x191)&&define[_0x41739f(0x1fe)]?define([_0x41739f(0x1e4),_0x41739f(0x219),_0x41739f(0x1b2),_0x41739f(0x1ab),_0x41739f(0x1b6)],_0x25718f):(_0x53502e=typeof globalThis<'u'?globalThis:_0x53502e||self,_0x25718f(_0x53502e[_0x41739f(0x19d)]={},_0x53502e[_0x41739f(0x157)],_0x53502e[_0x41739f(0x18e)],_0x53502e[_0x41739f(0x226)],_0x53502e['UniverDocsFacade']));}(this,function(_0x53987e,_0x4351dd,_0x500470,_0x557e5a,_0x1f8921){const _0x2e5aff=_0x3ddf;Object[_0x2e5aff(0x221)](_0x53987e,Symbol[_0x2e5aff(0x14c)],{'value':'Module'});var _0x3a0586=class extends _0x557e5a[_0x2e5aff(0x1dd)]{get[_0x2e5aff(0x1df)](){const _0x2a3b00=_0x2e5aff;return _0x4351dd[_0x2a3b00(0x1df)];}get['DocsTableColumnType'](){return _0x4351dd['DocsTableColumnType'];}get['DocsTableSelectionKind'](){return _0x4351dd['DocsTableSelectionKind'];}get['DocsTableRowInsertPosition'](){return _0x4351dd['DocsTableRowInsertPosition'];}get['DocsTableColumnInsertPosition'](){const _0x1e2adf=_0x2e5aff;return _0x4351dd[_0x1e2adf(0x188)];}get[_0x2e5aff(0x165)](){const _0x1e179a=_0x2e5aff;return _0x4351dd[_0x1e179a(0x165)];}get['DocsTableSortDirection'](){const _0x34c990=_0x2e5aff;return _0x4351dd[_0x34c990(0x196)];}get[_0x2e5aff(0x1ca)](){const _0x565134=_0x2e5aff;return _0x500470[_0x565134(0x1ca)];}};_0x557e5a[_0x2e5aff(0x1dd)][_0x2e5aff(0x20c)](_0x3a0586);var _0x11660d=class{constructor(_0x37ae68,_0x3254a8,_0x5e0eb1){const _0x555711=_0x2e5aff;this[_0x555711(0x215)]=_0x37ae68,this[_0x555711(0x197)]=_0x3254a8,this[_0x555711(0x214)]=_0x5e0eb1;}['getTable'](){const _0x2d351e=_0x2e5aff;return this[_0x2d351e(0x215)];}[_0x2e5aff(0x1c0)](){const _0x12e16b=_0x2e5aff;return this[_0x12e16b(0x197)];}[_0x2e5aff(0x164)](){const _0x33d4a3=_0x2e5aff;return this[_0x33d4a3(0x214)];}[_0x2e5aff(0x1b9)](){const _0x443ec3=_0x2e5aff;return this[_0x443ec3(0x215)]['getCellText'](this[_0x443ec3(0x197)],this[_0x443ec3(0x214)]);}[_0x2e5aff(0x1c7)](){const _0x43749d=_0x2e5aff;return this[_0x43749d(0x215)][_0x43749d(0x15d)](this[_0x43749d(0x197)],this['_column']);}[_0x2e5aff(0x14e)](){const _0xe7589b=_0x2e5aff;return this[_0xe7589b(0x215)][_0xe7589b(0x1bb)](this[_0xe7589b(0x197)],this[_0xe7589b(0x214)]);}[_0x2e5aff(0x1f8)](){const _0x369eda=_0x2e5aff;return this['_table'][_0x369eda(0x187)](this[_0x369eda(0x197)],this[_0x369eda(0x214)]);}['getMarginOverride'](){const _0x1554c6=_0x2e5aff;return this[_0x1554c6(0x215)][_0x1554c6(0x21d)](this[_0x1554c6(0x197)],this[_0x1554c6(0x214)]);}[_0x2e5aff(0x1fb)](_0x56b1eb){const _0x42547b=_0x2e5aff;return this['_table']['setCellMargin'](this[_0x42547b(0x215)][_0x42547b(0x1d4)](this['_row'],this['_column']),_0x56b1eb);}[_0x2e5aff(0x18d)](){const _0x19d9a0=_0x2e5aff;return this[_0x19d9a0(0x215)][_0x19d9a0(0x1f5)](this[_0x19d9a0(0x215)][_0x19d9a0(0x1d4)](this['_row'],this[_0x19d9a0(0x214)]),null);}[_0x2e5aff(0x208)](_0x40e097){const _0x5531a6=_0x2e5aff;return this[_0x5531a6(0x215)][_0x5531a6(0x1e2)](this[_0x5531a6(0x197)],this['_column'],_0x40e097);}[_0x2e5aff(0x202)](_0x442092){const _0x207820=_0x2e5aff;return this['_table'][_0x207820(0x1d5)](this[_0x207820(0x215)][_0x207820(0x1d4)](this[_0x207820(0x197)],this['_column']),_0x442092);}[_0x2e5aff(0x19f)](_0x369347){const _0x5a5c2a=_0x2e5aff;return this[_0x5a5c2a(0x215)]['setBorder'](this[_0x5a5c2a(0x215)][_0x5a5c2a(0x1d4)](this['_row'],this['_column']),_0x369347);}[_0x2e5aff(0x185)](_0x3ef9f4,_0x3e71f7){const _0x37551c=_0x2e5aff;return this[_0x37551c(0x215)][_0x37551c(0x160)]({'startRow':this[_0x37551c(0x197)],'startColumn':this['_column'],'endRow':this[_0x37551c(0x197)]+_0x3ef9f4-0x1,'endColumn':this['_column']+_0x3e71f7-0x1});}[_0x2e5aff(0x1a0)](){const _0x4db691=_0x2e5aff;return this['_table'][_0x4db691(0x1c1)](this[_0x4db691(0x215)]['getCellRange'](this[_0x4db691(0x197)],this[_0x4db691(0x214)]));}};function _0x21a7a2(_0x42443a){'@babel/helpers - typeof';const _0x4e1bc9=_0x2e5aff;return _0x21a7a2=typeof Symbol==_0x4e1bc9(0x191)&&typeof Symbol[_0x4e1bc9(0x22b)]==_0x4e1bc9(0x1e1)?function(_0x249833){return typeof _0x249833;}:function(_0x37afc0){const _0x493ae6=_0x4e1bc9;return _0x37afc0&&typeof Symbol==_0x493ae6(0x191)&&_0x37afc0[_0x493ae6(0x1f2)]===Symbol&&_0x37afc0!==Symbol[_0x493ae6(0x203)]?_0x493ae6(0x1e1):typeof _0x37afc0;},_0x21a7a2(_0x42443a);}function _0x18e745(_0x25f394,_0x256024){const _0xd408c6=_0x2e5aff;if(_0x21a7a2(_0x25f394)!=_0xd408c6(0x17e)||!_0x25f394)return _0x25f394;var _0x41d788=_0x25f394[Symbol[_0xd408c6(0x1a7)]];if(_0x41d788!==void 0x0){var _0x74d08b=_0x41d788[_0xd408c6(0x1ed)](_0x25f394,_0x256024||_0xd408c6(0x225));if(_0x21a7a2(_0x74d08b)!=_0xd408c6(0x17e))return _0x74d08b;throw TypeError(_0xd408c6(0x1ff));}return(_0x256024==='string'?String:Number)(_0x25f394);}function _0xb9b2f1(_0x317a9d){const _0x1f9d77=_0x2e5aff;var _0x12983f=_0x18e745(_0x317a9d,_0x1f9d77(0x186));return _0x21a7a2(_0x12983f)=='symbol'?_0x12983f:_0x12983f+'';}function _0x2877d4(_0x5ade30,_0x142e60,_0x370183){return(_0x142e60=_0xb9b2f1(_0x142e60))in _0x5ade30?Object['defineProperty'](_0x5ade30,_0x142e60,{'value':_0x370183,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ade30[_0x142e60]=_0x370183,_0x5ade30;}var _0x29c538=class{constructor(_0x9ce7a9,_0x7ac21,_0xf01269='',_0x1b467f){const _0x46251d=_0x2e5aff;this[_0x46251d(0x1ef)]=_0x9ce7a9,this[_0x46251d(0x21e)]=_0x7ac21,this['_segmentId']=_0xf01269,this['_injector']=_0x1b467f,_0x2877d4(this,_0x46251d(0x169),void 0x0),this[_0x46251d(0x169)]=this[_0x46251d(0x1ef)][_0x46251d(0x1de)]();}['getId'](){const _0x1f5049=_0x2e5aff;return this[_0x1f5049(0x21e)];}[_0x2e5aff(0x172)](){const _0x5389a4=_0x2e5aff;return this[_0x5389a4(0x18f)];}[_0x2e5aff(0x173)](){const _0xcb0e6b=_0x2e5aff;return{'id':this[_0xcb0e6b(0x21e)],'rowCount':this[_0xcb0e6b(0x168)](),'columnCount':this[_0xcb0e6b(0x1e5)](),'metadata':this[_0xcb0e6b(0x16b)](),'source':this[_0xcb0e6b(0x1cd)]()};}[_0x2e5aff(0x206)](){const _0x28d6ce=_0x2e5aff;let _0x38350f=this[_0x28d6ce(0x16b)](),_0x542f5c=this[_0x28d6ce(0x1cd)](),_0x925417=this['getColumnCount']();return{'id':this['_tableId'],'rowCount':this[_0x28d6ce(0x168)](),'columnCount':_0x925417,'headerRowCount':(_0x38350f==null?void 0x0:_0x38350f[_0x28d6ce(0x152)])??0x0,'titleRow':(_0x38350f==null?void 0x0:_0x38350f[_0x28d6ce(0x19b)])??!0x1,'columns':Array['from']({'length':_0x925417},(_0x389e5c,_0x3da096)=>{const _0x15c335=_0x28d6ce;var _0x4f9ffd,_0x1f6529;return{'index':_0x3da096,'type':_0x38350f==null||(_0x4f9ffd=_0x38350f[_0x15c335(0x1dc)])==null||(_0x4f9ffd=_0x4f9ffd[_0x3da096])==null?void 0x0:_0x4f9ffd['type'],'width':_0x542f5c==null||(_0x1f6529=_0x542f5c[_0x15c335(0x19a)][_0x3da096])==null?void 0x0:_0x1f6529[_0x15c335(0x190)]['width']['v']};}),'sampleRows':Array[_0x28d6ce(0x194)]({'length':this['getRowCount']()},(_0xe7a476,_0x285bb1)=>Array[_0x28d6ce(0x194)]({'length':_0x925417},(_0x462640,_0x220d9e)=>this[_0x28d6ce(0x22c)](_0x285bb1,_0x220d9e)))[_0x28d6ce(0x1ae)](_0x15dc34=>_0x15dc34[_0x28d6ce(0x18b)](_0x4dfa2a=>_0x4dfa2a[_0x28d6ce(0x1c8)]>0x0))[_0x28d6ce(0x16d)](0x0,0x5)};}[_0x2e5aff(0x168)](){const _0x480963=_0x2e5aff;var _0x4d7085;return((_0x4d7085=this['getSource']())==null?void 0x0:_0x4d7085['tableRows'][_0x480963(0x1c8)])??0x0;}[_0x2e5aff(0x1e5)](){const _0x1fcb11=_0x2e5aff;var _0x366cd0;return((_0x366cd0=this['getSource']())==null?void 0x0:_0x366cd0['tableColumns'][_0x1fcb11(0x1c8)])??0x0;}[_0x2e5aff(0x22a)](_0x5a5a3c,_0x48a868){const _0x5a18ed=_0x2e5aff;var _0x105016;return(_0x105016=this[_0x5a18ed(0x1cd)]())!=null&&(_0x105016=_0x105016[_0x5a18ed(0x158)][_0x5a5a3c])!=null&&_0x105016['tableCells'][_0x48a868]?this['_injector']['createInstance'](_0x11660d,this,_0x5a5a3c,_0x48a868):null;}[_0x2e5aff(0x22c)](_0x3ceaf8,_0x439fdb){const _0x10611e=_0x2e5aff;var _0x2228a4,_0x4e05ea;let _0x365621=(_0x2228a4=(0x0,_0x4351dd[_0x10611e(0x1e6)])(this['_getDocumentData'](),this[_0x10611e(0x21e)]))==null||(_0x2228a4=_0x2228a4[_0x10611e(0x18c)][_0x3ceaf8])==null?void 0x0:_0x2228a4[_0x10611e(0x1cb)][_0x439fdb];return _0x365621?((_0x4e05ea=this['_getDocumentData']()[_0x10611e(0x1cc)])==null?void 0x0:_0x4e05ea[_0x10611e(0x216)]['slice'](_0x365621[_0x10611e(0x1ad)]+0x1,_0x365621[_0x10611e(0x1a4)])[_0x10611e(0x174)](/\r\n$/,''))??'':'';}[_0x2e5aff(0x187)](_0x214c34,_0x522c64){const _0x41c4cf=_0x2e5aff;var _0x34a2e6;let _0x306628=this[_0x41c4cf(0x1cd)](),_0x3c7a7b=_0x306628==null||(_0x34a2e6=_0x306628['tableRows'][_0x214c34])==null?void 0x0:_0x34a2e6['tableCells'][_0x522c64];return _0x3c7a7b?_0x500470[_0x41c4cf(0x1ba)][_0x41c4cf(0x1ee)](_0x3c7a7b[_0x41c4cf(0x192)]??_0x306628[_0x41c4cf(0x1f6)]??_0x4351dd[_0x41c4cf(0x1a3)]):null;}[_0x2e5aff(0x21d)](_0x21429d,_0x4d23c5){const _0x2a5fe3=_0x2e5aff;var _0x163690;let _0x390e18=(_0x163690=this['getSource']())==null||(_0x163690=_0x163690['tableRows'][_0x21429d])==null?void 0x0:_0x163690[_0x2a5fe3(0x1c5)][_0x4d23c5];return _0x390e18!=null&&_0x390e18[_0x2a5fe3(0x192)]?_0x500470[_0x2a5fe3(0x1ba)]['deepClone'](_0x390e18['margin']):null;}['getDefaultCellMargin'](){const _0x57aa79=_0x2e5aff;var _0x4a104d;return _0x500470[_0x57aa79(0x1ba)][_0x57aa79(0x1ee)](((_0x4a104d=this[_0x57aa79(0x1cd)]())==null?void 0x0:_0x4a104d[_0x57aa79(0x1f6)])??_0x4351dd[_0x57aa79(0x1a3)]);}['getDefaultCellMarginOverride'](){const _0x49dbf7=_0x2e5aff;var _0x243b61;let _0x20bfa9=(_0x243b61=this[_0x49dbf7(0x1cd)]())==null?void 0x0:_0x243b61['cellMargin'];return _0x20bfa9?_0x500470[_0x49dbf7(0x1ba)][_0x49dbf7(0x1ee)](_0x20bfa9):null;}[_0x2e5aff(0x16b)](){const _0x43f143=_0x2e5aff;return this[_0x43f143(0x18a)]['get'](_0x4351dd[_0x43f143(0x1c6)])[_0x43f143(0x1f1)](this['_unitId'],this[_0x43f143(0x21e)]);}[_0x2e5aff(0x1cd)](){const _0x42c8a1=_0x2e5aff;var _0x38d0a9;return(_0x38d0a9=this[_0x42c8a1(0x16a)]()[_0x42c8a1(0x211)])==null?void 0x0:_0x38d0a9[this[_0x42c8a1(0x21e)]];}[_0x2e5aff(0x1f7)](){const _0x3d0388=_0x2e5aff;return(0x0,_0x4351dd[_0x3d0388(0x1e6)])(this[_0x3d0388(0x16a)](),this['_tableId']);}[_0x2e5aff(0x227)](){const _0x1232e1=_0x2e5aff;return{'startRow':0x0,'endRow':Math[_0x1232e1(0x1b7)](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x1232e1(0x1e5)]()-0x1)};}[_0x2e5aff(0x1d4)](_0x11ca8d,_0xfdc073){return{'startRow':_0x11ca8d,'endRow':_0x11ca8d,'startColumn':_0xfdc073,'endColumn':_0xfdc073};}['getCellContentRange'](_0x2a4890,_0x53b126){const _0x356074=_0x2e5aff;var _0x68c889;let _0x458542=(_0x68c889=(0x0,_0x4351dd['getTableRangeById'])(this['_getDocumentData'](),this[_0x356074(0x21e)]))==null||(_0x68c889=_0x68c889[_0x356074(0x18c)][_0x2a4890])==null?void 0x0:_0x68c889['cells'][_0x53b126];if(!_0x458542)return null;let _0x3438d1=_0x458542['startOffset']+0x1;return{'startOffset':_0x3438d1,'endOffset':Math[_0x356074(0x1b7)](_0x3438d1,_0x458542[_0x356074(0x1a4)]-0x1),'segmentId':this[_0x356074(0x18f)]};}['getCellInsertOffset'](_0x2b927d,_0x1d694a){const _0x1c31f1=_0x2e5aff;let _0x126bea=this['getCellContentRange'](_0x2b927d,_0x1d694a);return _0x126bea?Math[_0x1c31f1(0x1b7)](_0x126bea['startOffset'],_0x126bea['endOffset']-0x1):null;}['getRowRange'](_0x4b3334){const _0x32e6ff=_0x2e5aff;return this[_0x32e6ff(0x14b)](_0x4b3334,0x1);}['getRowsRange'](_0x3d2bb6,_0x5038e5=0x1){const _0x1bb028=_0x2e5aff;return{'startRow':_0x3d2bb6,'endRow':_0x3d2bb6+_0x5038e5-0x1,'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x1bb028(0x1e5)]()-0x1)};}['getColumnRange'](_0x4b6385){const _0x273d7f=_0x2e5aff;return this[_0x273d7f(0x1d0)](_0x4b6385,0x1);}['getColumnsRange'](_0x4c11e0,_0x51c7f8=0x1){const _0x5db868=_0x2e5aff;return{'startRow':0x0,'endRow':Math[_0x5db868(0x1b7)](0x0,this[_0x5db868(0x168)]()-0x1),'startColumn':_0x4c11e0,'endColumn':_0x4c11e0+_0x51c7f8-0x1};}[_0x2e5aff(0x16f)](){const _0x2d2c9c=_0x2e5aff;return this[_0x2d2c9c(0x1d7)](this[_0x2d2c9c(0x227)](),_0x4351dd['DocsTableSelectionKind'][_0x2d2c9c(0x21b)]);}[_0x2e5aff(0x184)](_0x438a55){const _0x3b6eea=_0x2e5aff;return this[_0x3b6eea(0x16c)](_0x438a55,0x1);}[_0x2e5aff(0x16c)](_0x5c15e1,_0x56f320=0x1){const _0xce430e=_0x2e5aff;return this[_0xce430e(0x1d7)](this[_0xce430e(0x14b)](_0x5c15e1,_0x56f320),_0x4351dd[_0xce430e(0x212)][_0xce430e(0x150)]);}['selectColumn'](_0x5cb521){const _0x20689f=_0x2e5aff;return this[_0x20689f(0x1e7)](_0x5cb521,0x1);}[_0x2e5aff(0x1e7)](_0x2aeecb,_0x4dec87=0x1){const _0x37bbfe=_0x2e5aff;return this[_0x37bbfe(0x1d7)](this[_0x37bbfe(0x1d0)](_0x2aeecb,_0x4dec87),_0x4351dd[_0x37bbfe(0x212)][_0x37bbfe(0x1f4)]);}[_0x2e5aff(0x213)](_0x299465,_0x46f11c){const _0x43bea3=_0x2e5aff;return this[_0x43bea3(0x1d7)](this[_0x43bea3(0x1d4)](_0x299465,_0x46f11c),_0x4351dd[_0x43bea3(0x212)][_0x43bea3(0x182)]);}[_0x2e5aff(0x1d7)](_0x4af4a5,_0x4dbd0a=_0x4351dd['DocsTableSelectionKind'][_0x2e5aff(0x1eb)]){const _0x2883ca=_0x2e5aff;return this[_0x2883ca(0x18a)][_0x2883ca(0x1be)](_0x4351dd[_0x2883ca(0x222)])[_0x2883ca(0x1f0)]({..._0x4af4a5,'kind':_0x4dbd0a,'segmentId':this[_0x2883ca(0x18f)],'tableId':this[_0x2883ca(0x21e)]}),!0x0;}[_0x2e5aff(0x1ac)](_0x3f2c84){const _0x101c57=_0x2e5aff;return this[_0x101c57(0x228)](_0x3f2c84,0x1);}['insertRowAfter'](_0x1dea3c){const _0x4a1aa0=_0x2e5aff;return this[_0x4a1aa0(0x1e3)](_0x1dea3c,0x1);}[_0x2e5aff(0x228)](_0xd6104f,_0xa54425){const _0x439b7a=_0x2e5aff;let _0x52a173=this[_0x439b7a(0x16a)](),_0x4478de=(0x0,_0x4351dd[_0x439b7a(0x217)])(_0x52a173,this[_0x439b7a(0x21e)],_0xd6104f,_0xa54425,_0x4351dd[_0x439b7a(0x1b8)][_0x439b7a(0x207)],this[_0x439b7a(0x1bd)]());return _0x4478de?this[_0x439b7a(0x1a2)](_0x52a173,_0x4478de[_0x439b7a(0x156)]):!0x1;}[_0x2e5aff(0x1e3)](_0x5714c2,_0x1bdee2){const _0x1dba34=_0x2e5aff;let _0x12286f=this['_getDocumentData'](),_0x3a3847=(0x0,_0x4351dd[_0x1dba34(0x217)])(_0x12286f,this[_0x1dba34(0x21e)],_0x5714c2,_0x1bdee2,_0x4351dd[_0x1dba34(0x1b8)][_0x1dba34(0x181)],this[_0x1dba34(0x1bd)]());return _0x3a3847?this[_0x1dba34(0x1a2)](_0x12286f,_0x3a3847[_0x1dba34(0x156)]):!0x1;}[_0x2e5aff(0x166)](){const _0x2f2f4e=_0x2e5aff;return this['insertRowsAfter'](Math[_0x2f2f4e(0x1b7)](0x0,this[_0x2f2f4e(0x168)]()-0x1),0x1);}[_0x2e5aff(0x15c)](_0x24f5ae){const _0x5d2d43=_0x2e5aff;return this[_0x5d2d43(0x1e0)](_0x24f5ae,0x1);}['insertColumnAfter'](_0x1af26a){const _0xc873f=_0x2e5aff;return this[_0xc873f(0x17f)](_0x1af26a,0x1);}[_0x2e5aff(0x1e0)](_0x1a1ae1,_0x1501d0){const _0x575e71=_0x2e5aff;let _0x59eecf=this[_0x575e71(0x16a)](),_0x756db5=(0x0,_0x4351dd[_0x575e71(0x180)])(_0x59eecf,this['_tableId'],_0x1a1ae1,_0x1501d0,_0x4351dd['DocsTableInsertPosition']['Left'],{'bodyPath':this[_0x575e71(0x1bd)]()});return _0x756db5?this[_0x575e71(0x1a2)](_0x59eecf,_0x756db5[_0x575e71(0x156)]):!0x1;}[_0x2e5aff(0x17f)](_0x3e5edb,_0x3c3c3d){const _0x54891b=_0x2e5aff;let _0x2402f6=this[_0x54891b(0x16a)](),_0x551880=(0x0,_0x4351dd[_0x54891b(0x180)])(_0x2402f6,this['_tableId'],_0x3e5edb,_0x3c3c3d,_0x4351dd[_0x54891b(0x1b8)][_0x54891b(0x1d9)],{'bodyPath':this[_0x54891b(0x1bd)]()});return _0x551880?this['_mutateActions'](_0x2402f6,_0x551880[_0x54891b(0x156)]):!0x1;}['appendColumn'](){const _0x4da1a8=_0x2e5aff;return this[_0x4da1a8(0x17f)](Math['max'](0x0,this[_0x4da1a8(0x1e5)]()-0x1),0x1);}[_0x2e5aff(0x1e9)](_0x3634ec){const _0x232bd1=_0x2e5aff;return this[_0x232bd1(0x183)](_0x3634ec,0x1);}[_0x2e5aff(0x183)](_0x2bafbb,_0x1eb23d=0x1){const _0x1d5dec=_0x2e5aff;let _0x1f833a=this[_0x1d5dec(0x16a)](),_0x1845ee=(0x0,_0x4351dd[_0x1d5dec(0x1a6)])(_0x1f833a,this[_0x1d5dec(0x21e)],_0x2bafbb,_0x2bafbb+_0x1eb23d-0x1,this['_getBodyPath']());return _0x1845ee?this[_0x1d5dec(0x1a2)](_0x1f833a,_0x1845ee[_0x1d5dec(0x156)]):!0x1;}[_0x2e5aff(0x21f)](_0x4e9d4b){const _0x1921a4=_0x2e5aff;return this[_0x1921a4(0x1e8)](_0x4e9d4b,0x1);}[_0x2e5aff(0x1e8)](_0x45704a,_0x445314=0x1){const _0x4d9e85=_0x2e5aff;let _0x3e05b6=this[_0x4d9e85(0x16a)](),_0x1271b8=(0x0,_0x4351dd['buildDeleteTableColumnsMutationActions'])(_0x3e05b6,this['_tableId'],_0x45704a,_0x45704a+_0x445314-0x1,this[_0x4d9e85(0x1bd)]());return _0x1271b8?this['_mutateActions'](_0x3e05b6,_0x1271b8['actions']):!0x1;}['deleteTable'](){const _0x1e3a7a=_0x2e5aff;let _0x2ee90e=this[_0x1e3a7a(0x16a)](),_0x236ce8=(0x0,_0x4351dd[_0x1e3a7a(0x189)])(_0x2ee90e,this[_0x1e3a7a(0x21e)],this[_0x1e3a7a(0x1bd)]());return _0x236ce8?this['_mutateActions'](_0x2ee90e,_0x236ce8[_0x1e3a7a(0x156)]):!0x1;}[_0x2e5aff(0x16e)](_0x3d431a,_0x341047){const _0x34587c=_0x2e5aff;let _0x34e110=this[_0x34587c(0x16a)]();return this[_0x34587c(0x1a2)](_0x34e110,(0x0,_0x4351dd[_0x34587c(0x1f3)])(_0x34e110,this[_0x34587c(0x21e)],_0x3d431a,_0x341047));}[_0x2e5aff(0x159)](_0x265a98){const _0x5066ff=_0x2e5aff;let _0xaa6672=this[_0x5066ff(0x16a)]();return this['_mutateActions'](_0xaa6672,(0x0,_0x4351dd[_0x5066ff(0x170)])(_0xaa6672,this['_tableId'],_0x265a98,this[_0x5066ff(0x1bd)]()));}[_0x2e5aff(0x1d8)](_0x246228,_0x458f9b,_0x4ce127=_0x4351dd[_0x2e5aff(0x1b8)]['Above']){const _0x93e6d2=_0x2e5aff;return this[_0x93e6d2(0x162)](_0x246228,0x1,_0x458f9b,_0x4ce127);}['moveRows'](_0x5648c1,_0x30334,_0x4422fc,_0x553aa4=_0x4351dd['DocsTableInsertPosition'][_0x2e5aff(0x207)]){const _0xb5c3d1=_0x2e5aff;let _0x11e539=this[_0xb5c3d1(0x16a)](),_0x2b3f87=(0x0,_0x4351dd['buildMoveTableRowsMutationActions'])(_0x11e539,this[_0xb5c3d1(0x21e)],_0x5648c1,_0x4422fc,_0x30334,_0x553aa4,this[_0xb5c3d1(0x1bd)]());return _0x2b3f87?this[_0xb5c3d1(0x1a2)](_0x11e539,_0x2b3f87[_0xb5c3d1(0x156)]):!0x1;}[_0x2e5aff(0x1aa)](_0x1f66cd,_0x4c413d,_0x1b74b8=_0x4351dd[_0x2e5aff(0x1b8)][_0x2e5aff(0x201)]){const _0x288de6=_0x2e5aff;return this[_0x288de6(0x1b1)](_0x1f66cd,0x1,_0x4c413d,_0x1b74b8);}[_0x2e5aff(0x1b1)](_0x450588,_0x4f80a0,_0x146daa,_0x42663f=_0x4351dd[_0x2e5aff(0x1b8)]['Left']){const _0x4c0555=_0x2e5aff;let _0x4ab7ed=this[_0x4c0555(0x16a)](),_0x2a2904=(0x0,_0x4351dd[_0x4c0555(0x15b)])(_0x4ab7ed,this['_tableId'],_0x450588,_0x146daa,_0x4f80a0,_0x42663f,this[_0x4c0555(0x1bd)]());return _0x2a2904?this['_mutateActions'](_0x4ab7ed,_0x2a2904[_0x4c0555(0x156)]):!0x1;}[_0x2e5aff(0x160)](_0x3d8392){const _0x3de8cc=_0x2e5aff;try{let _0x2f7c93=this['_getDocumentData'](),_0x17148a=(0x0,_0x4351dd[_0x3de8cc(0x14f)])({'documentData':_0x2f7c93,'tableId':this[_0x3de8cc(0x21e)],..._0x3d8392});return _0x17148a?this['_mutateActions'](_0x2f7c93,_0x17148a[_0x3de8cc(0x156)],_0x3d8392):!0x1;}catch{return!0x1;}}[_0x2e5aff(0x1c1)](_0x28377e){const _0xc06778=_0x2e5aff;try{let _0x38aca4=this[_0xc06778(0x16a)](),_0x262c3a=(0x0,_0x4351dd[_0xc06778(0x1bc)])({'documentData':_0x38aca4,'tableId':this[_0xc06778(0x21e)],..._0x28377e});return _0x262c3a?this[_0xc06778(0x1a2)](_0x38aca4,_0x262c3a[_0xc06778(0x156)],_0x28377e):!0x1;}catch{return!0x1;}}[_0x2e5aff(0x1e2)](_0x4e1686,_0x2b5105,_0x34b19c){const _0x38e0c9=_0x2e5aff;let _0x1a9bbc=this[_0x38e0c9(0x16a)](),_0x3a7179=(0x0,_0x4351dd['getTableActionBodyPath'])(this[_0x38e0c9(0x1ef)][_0x38e0c9(0x1c4)]()[_0x38e0c9(0x198)](),this['_segmentId']);return this[_0x38e0c9(0x1a2)](_0x1a9bbc,(0x0,_0x4351dd['buildSetTableCellTextMutationActions'])({'documentData':_0x1a9bbc,'tableId':this[_0x38e0c9(0x21e)],'row':_0x4e1686,'column':_0x2b5105,'text':_0x34b19c},_0x3a7179),this[_0x38e0c9(0x1d4)](_0x4e1686,_0x2b5105));}[_0x2e5aff(0x1d5)](_0x2b27e0,_0x2ea1ba){const _0x3ff3e7=_0x2e5aff;let _0x4cc1f1=this['_getDocumentData']();return this[_0x3ff3e7(0x1a2)](_0x4cc1f1,(0x0,_0x4351dd[_0x3ff3e7(0x209)])(_0x4cc1f1,{'tableId':this[_0x3ff3e7(0x21e)],..._0x2b27e0,'value':_0x2ea1ba}),_0x2b27e0);}[_0x2e5aff(0x1f5)](_0x1f76d2,_0x2346e2){const _0x12b01a=_0x2e5aff;let _0x33d2f9=this[_0x12b01a(0x16a)]();return this[_0x12b01a(0x1a2)](_0x33d2f9,(0x0,_0x4351dd['buildSetTableCellMarginMutationActions'])({'documentData':_0x33d2f9,'tableId':this[_0x12b01a(0x21e)],..._0x1f76d2,'margin':_0x2346e2}),_0x1f76d2);}['setDefaultCellMargin'](_0x4c23f7){const _0xc3c6cc=_0x2e5aff;let _0x63f462=this['_getDocumentData']();return this[_0xc3c6cc(0x1a2)](_0x63f462,(0x0,_0x4351dd[_0xc3c6cc(0x177)])(_0x63f462,this['_tableId'],_0x4c23f7));}[_0x2e5aff(0x19f)](_0x2a716b,_0x4b251e){const _0x37823a=_0x2e5aff;let _0x9513be=this[_0x37823a(0x16a)]();return this['_mutateActions'](_0x9513be,(0x0,_0x4351dd[_0x37823a(0x205)])({'documentData':_0x9513be,'tableId':this[_0x37823a(0x21e)],..._0x2a716b,'preset':_0x4b251e['preset']??_0x4351dd['DocsTableBorderPreset'][_0x37823a(0x1ce)],'border':_0x4b251e['border']??{'color':{'rgb':_0x4b251e[_0x37823a(0x199)]??_0x37823a(0x153)},'width':{'v':_0x4b251e[_0x37823a(0x176)]??0x1},'dashStyle':_0x500470[_0x37823a(0x1ca)][_0x37823a(0x224)]}}),_0x2a716b);}[_0x2e5aff(0x167)](_0x5d1ac3){const _0x4a1576=_0x2e5aff;return this[_0x4a1576(0x1d5)](this[_0x4a1576(0x227)](),_0x5d1ac3);}[_0x2e5aff(0x1d1)](_0x1de702){const _0x392d16=_0x2e5aff;return this[_0x392d16(0x19f)](this[_0x392d16(0x227)](),_0x1de702);}['setTableStyle'](_0xda1252){const _0x22d34=_0x2e5aff;let _0x4cbd17=!_0xda1252[_0x22d34(0x1b3)]||this[_0x22d34(0x167)](_0xda1252[_0x22d34(0x1b3)]),_0x4c19e0=!_0xda1252[_0x22d34(0x1ec)]||this[_0x22d34(0x1d1)](_0xda1252[_0x22d34(0x1ec)]);return _0x4cbd17&&_0x4c19e0;}['setRowHeight'](_0x20ef1b,_0x33397b,_0x57e92b=_0x500470['TableRowHeightRule'][_0x2e5aff(0x17d)]){const _0x4c6cc5=_0x2e5aff;var _0x18a119;let _0x249de0=this[_0x4c6cc5(0x16a)]();return(_0x18a119=_0x249de0[_0x4c6cc5(0x211)])!=null&&(_0x18a119=_0x18a119[this[_0x4c6cc5(0x21e)]])!=null&&_0x18a119[_0x4c6cc5(0x158)][_0x20ef1b]?this[_0x4c6cc5(0x1a2)](_0x249de0,(0x0,_0x4351dd[_0x4c6cc5(0x20d)])(_0x249de0,this[_0x4c6cc5(0x21e)],_0x20ef1b,_0x33397b,_0x57e92b)):!0x1;}['getRowHeight'](_0x59179f){const _0x59f75a=_0x2e5aff;var _0x594a08;let _0x105a15=(_0x594a08=this[_0x59f75a(0x1cd)]())==null||(_0x594a08=_0x594a08[_0x59f75a(0x158)][_0x59179f])==null?void 0x0:_0x594a08[_0x59f75a(0x20e)];return _0x105a15?_0x500470[_0x59f75a(0x1ba)]['deepClone'](_0x105a15):null;}[_0x2e5aff(0x1d3)](_0x1cdd4f,_0x5bcc36){const _0x510dc1=_0x2e5aff;var _0x45044b;let _0x25d835=this[_0x510dc1(0x16a)]();return(_0x45044b=_0x25d835[_0x510dc1(0x211)])!=null&&(_0x45044b=_0x45044b[this['_tableId']])!=null&&_0x45044b['tableColumns'][_0x1cdd4f]?this[_0x510dc1(0x1a2)](_0x25d835,(0x0,_0x4351dd[_0x510dc1(0x15a)])(_0x25d835,this[_0x510dc1(0x21e)],_0x1cdd4f,_0x5bcc36)):!0x1;}[_0x2e5aff(0x20b)](_0x427322=0x0,_0x14050e=this[_0x2e5aff(0x168)]()){const _0x8c83b=_0x2e5aff;let _0x512b3c=this[_0x8c83b(0x16a)]();return this[_0x8c83b(0x1a2)](_0x512b3c,(0x0,_0x4351dd[_0x8c83b(0x1a5)])(_0x512b3c,this[_0x8c83b(0x21e)],_0x427322,_0x427322+_0x14050e-0x1));}[_0x2e5aff(0x218)](_0x29a90c=0x0,_0x52ffc7=this[_0x2e5aff(0x1e5)]()){const _0x56171b=_0x2e5aff;let _0x496175=this[_0x56171b(0x16a)]();return this['_mutateActions'](_0x496175,(0x0,_0x4351dd[_0x56171b(0x1d6)])(_0x496175,this['_tableId'],_0x29a90c,_0x29a90c+_0x52ffc7-0x1));}['getHeaderRowCount'](){const _0x119c8d=_0x2e5aff;var _0xb8a6a4;return((_0xb8a6a4=this[_0x119c8d(0x16b)]())==null?void 0x0:_0xb8a6a4[_0x119c8d(0x152)])??0x0;}[_0x2e5aff(0x151)](_0x305317){const _0xf186d4=_0x2e5aff;let _0x17b6f7=this['_injector'][_0xf186d4(0x1be)](_0x4351dd[_0xf186d4(0x1c6)]),_0x303b93=this[_0xf186d4(0x16a)](),_0x4115e7=(0x0,_0x4351dd[_0xf186d4(0x17a)])(_0x303b93,this['_tableId'],_0x305317);if(!_0x4115e7)return!0x1;let _0x2b4381=this[_0xf186d4(0x1a2)](_0x303b93,_0x4115e7['actions']);return _0x2b4381&&_0x17b6f7['setHeaderRowCount'](this[_0xf186d4(0x169)],this[_0xf186d4(0x21e)],_0x4115e7[_0xf186d4(0x152)]),_0x2b4381;}['pinHeaderRows'](_0x588bcb){const _0x363ec1=_0x2e5aff;return this[_0x363ec1(0x151)](_0x588bcb);}[_0x2e5aff(0x204)](){const _0x113d2c=_0x2e5aff;var _0x3ed690;return((_0x3ed690=this[_0x113d2c(0x16b)]())==null?void 0x0:_0x3ed690[_0x113d2c(0x19b)])??!0x1;}[_0x2e5aff(0x1c2)](){const _0x23441a=_0x2e5aff;let _0x312ac0=this['_injector'][_0x23441a(0x1be)](_0x4351dd[_0x23441a(0x1c6)]),_0x1e2170=this[_0x23441a(0x16a)](),_0x5d1d13=(0x0,_0x4351dd[_0x23441a(0x193)])(_0x1e2170,this['_tableId'],this[_0x23441a(0x1bd)]());if(!_0x5d1d13)return!0x1;let _0x5e1bdf=this[_0x23441a(0x1a2)](_0x1e2170,_0x5d1d13[_0x23441a(0x156)]);return _0x5e1bdf&&_0x312ac0[_0x23441a(0x1a1)](this['_unitId'],this[_0x23441a(0x21e)],!0x0),_0x5e1bdf;}[_0x2e5aff(0x14d)](_0x522ed7,_0x455201){const _0x5efba8=_0x2e5aff;return this[_0x5efba8(0x18a)]['get'](_0x4351dd['DocsTableModel'])[_0x5efba8(0x14d)](this[_0x5efba8(0x169)],this[_0x5efba8(0x21e)],_0x522ed7,_0x455201),!0x0;}[_0x2e5aff(0x17b)](_0x1dbedb,_0x5307a1){const _0x2ccfee=_0x2e5aff;let _0x513b21=this['_getDocumentData']();return this[_0x2ccfee(0x1a2)](_0x513b21,(0x0,_0x4351dd['buildSortTableMutationActions'])(_0x513b21,this['_serializeModel'](),this[_0x2ccfee(0x21e)],_0x1dbedb,_0x5307a1,this['_getBodyPath']()));}[_0x2e5aff(0x16a)](){const _0x5f274e=_0x2e5aff;let _0x3c211e=this[_0x5f274e(0x1ef)]['getDocumentDataModel']()[_0x5f274e(0x198)]();return this[_0x5f274e(0x18f)]?{...this[_0x5f274e(0x1ef)][_0x5f274e(0x1c4)](this['_segmentId'])[_0x5f274e(0x198)](),'documentStyle':_0x3c211e[_0x5f274e(0x1b5)],'tableSource':_0x3c211e[_0x5f274e(0x211)]}:_0x3c211e;}[_0x2e5aff(0x220)](){const _0x35cb86=_0x2e5aff;return this[_0x35cb86(0x18a)][_0x35cb86(0x1be)](_0x4351dd[_0x35cb86(0x1c6)])['serialize'](this[_0x35cb86(0x169)]);}[_0x2e5aff(0x1bd)](){const _0x3b198c=_0x2e5aff;return(0x0,_0x4351dd[_0x3b198c(0x19e)])(this[_0x3b198c(0x1ef)][_0x3b198c(0x1c4)]()[_0x3b198c(0x198)](),this[_0x3b198c(0x18f)]);}[_0x2e5aff(0x1a2)](_0x3ced4b,_0x41089f,_0x402626){const _0x40b6be=_0x2e5aff;return(0x0,_0x4351dd['executeRichTextTableActions'])(this[_0x40b6be(0x18a)][_0x40b6be(0x1be)](_0x500470[_0x40b6be(0x1fa)]),this['_unitId'],_0x3ced4b,_0x41089f,_0x402626?{'tableId':this[_0x40b6be(0x21e)],'segmentId':this[_0x40b6be(0x18f)],..._0x402626}:void 0x0);}},_0xfaef3f=class extends _0x1f8921['FDocument']{[_0x2e5aff(0x15f)](_0x5c3a22=''){const _0x10fea4=_0x2e5aff;return this['_getTables'](_0x5c3a22)[_0x10fea4(0x175)](_0x5351f9=>this[_0x10fea4(0x1fd)](_0x5351f9[_0x10fea4(0x163)],_0x5c3a22));}[_0x2e5aff(0x161)](_0x177310,_0x5839fc=''){const _0x594c15=_0x2e5aff;return this[_0x594c15(0x19c)](_0x5839fc)[_0x594c15(0x18b)](_0x3e3bbc=>_0x3e3bbc[_0x594c15(0x163)]===_0x177310)?this[_0x594c15(0x1fd)](_0x177310,_0x5839fc):null;}[_0x2e5aff(0x1fc)](_0x393fc4,_0x332c42=''){const _0xe2862a=_0x2e5aff;var _0x23bbb5;let _0x31500c=(_0x23bbb5=this['_getTables'](_0x332c42)[_0x393fc4])==null?void 0x0:_0x23bbb5[_0xe2862a(0x163)];return _0x31500c?this[_0xe2862a(0x1fd)](_0x31500c,_0x332c42):null;}['getTableAtSelection'](){const _0x494287=_0x2e5aff;let _0xcb1154=this['_injector'][_0x494287(0x1be)](_0x4351dd[_0x494287(0x222)])[_0x494287(0x15e)]();return _0xcb1154!=null&&_0xcb1154[_0x494287(0x163)]?this[_0x494287(0x1fd)](_0xcb1154[_0x494287(0x163)],_0xcb1154[_0x494287(0x1b4)]):null;}[_0x2e5aff(0x1ea)](_0x2b76c2,_0x122796=''){const _0x23ac1b=_0x2e5aff;return this[_0x23ac1b(0x20f)](_0x2b76c2,_0x122796)[0x0]??null;}[_0x2e5aff(0x20f)](_0x10e2e2,_0x304868=''){const _0x2ab534=_0x2e5aff;let _0x1f89a0=this['_getTableDocumentData'](_0x304868),_0x5a9804=typeof _0x10e2e2==_0x2ab534(0x186)?{'text':_0x10e2e2}:_0x10e2e2;return this[_0x2ab534(0x15f)](_0x304868)[_0x2ab534(0x1ae)](_0x58ceac=>{const _0x58c153=_0x2ab534;let _0x439df1=_0x58ceac[_0x58c153(0x1de)]();return!(_0x5a9804[_0x58c153(0x163)]&&_0x439df1!==_0x5a9804[_0x58c153(0x163)]||_0x5a9804[_0x58c153(0x171)]&&!this[_0x58c153(0x1db)](_0x1f89a0,_0x439df1,_0x5a9804[_0x58c153(0x171)])||_0x5a9804['headerText']&&!this[_0x58c153(0x229)](_0x58ceac,0x0,_0x5a9804['headerText'])||_0x5a9804['titleText']&&!this[_0x58c153(0x229)](_0x58ceac,0x0,_0x5a9804[_0x58c153(0x1a9)]));});}[_0x2e5aff(0x20a)](_0x5a2ae4,_0x7f5698,_0x5a8bd5={}){const _0x28364d=_0x2e5aff;let _0x2bed9b=this['_injector'][_0x28364d(0x1be)](_0x500470['ICommandService']),_0x10063d=_0x5a8bd5['tableId']??(0x0,_0x500470[_0x28364d(0x1af)])(0x6);return _0x2bed9b[_0x28364d(0x195)](_0x4351dd[_0x28364d(0x223)]['id'],{..._0x5a8bd5,'unitId':this[_0x28364d(0x1de)](),'rows':_0x5a2ae4,'columns':_0x7f5698,'tableId':_0x10063d})?this[_0x28364d(0x1fd)](_0x10063d,_0x5a8bd5[_0x28364d(0x1b4)]??''):null;}[_0x2e5aff(0x179)](_0x8864e4,_0x2d5cd6={}){const _0x5662ac=_0x2e5aff;let _0xc20a40=this[_0x5662ac(0x18a)][_0x5662ac(0x1be)](_0x500470[_0x5662ac(0x1fa)]),_0x35709f=_0x2d5cd6[_0x5662ac(0x163)]??(0x0,_0x500470[_0x5662ac(0x1af)])(0x6);return _0xc20a40[_0x5662ac(0x195)](_0x4351dd[_0x5662ac(0x223)]['id'],{..._0x2d5cd6,'unitId':this[_0x5662ac(0x1de)](),'values':_0x8864e4,'tableId':_0x35709f})?this[_0x5662ac(0x1fd)](_0x35709f,_0x2d5cd6['segmentId']??''):null;}[_0x2e5aff(0x19c)](_0x3e0106=''){const _0x28bc31=_0x2e5aff;let {tables:_0x2b3cf8=[]}=this[_0x28bc31(0x1b0)](_0x3e0106);return _0x2b3cf8;}[_0x2e5aff(0x1cf)](_0x395e24=''){const _0x3dd85b=_0x2e5aff;let _0x57053b=this['getDocumentDataModel']()['getSnapshot']();return _0x395e24?{...this['getDocumentDataModel'](_0x395e24)[_0x3dd85b(0x198)](),'documentStyle':_0x57053b[_0x3dd85b(0x1b5)],'tableSource':_0x57053b[_0x3dd85b(0x211)]}:_0x57053b;}[_0x2e5aff(0x1fd)](_0xa86138,_0x43f28d=''){const _0x573348=_0x2e5aff;return this[_0x573348(0x18a)]['createInstance'](_0x29c538,this,_0xa86138,_0x43f28d,this[_0x573348(0x18a)]);}[_0x2e5aff(0x1db)](_0x58bc4d,_0x5706f3,_0x3d30b8){const _0x3a825c=_0x2e5aff;var _0x5e448d;let _0xa58ae1=(0x0,_0x4351dd[_0x3a825c(0x1e6)])(_0x58bc4d,_0x5706f3);if(!_0xa58ae1)return!0x1;let _0x37f27d=(_0x5e448d=_0x58bc4d[_0x3a825c(0x1cc)])==null?void 0x0:_0x5e448d[_0x3a825c(0x216)];return _0x37f27d?_0x37f27d[_0x3a825c(0x16d)](_0xa58ae1['startOffset'],_0xa58ae1[_0x3a825c(0x1a4)])[_0x3a825c(0x1c3)](_0x3d30b8):!0x1;}['_rowContainsText'](_0x3200e3,_0x16b781,_0x18d06d){const _0x516a19=_0x2e5aff;return Array[_0x516a19(0x194)]({'length':_0x3200e3[_0x516a19(0x1e5)]()},(_0x3fa9a5,_0x41759a)=>_0x3200e3[_0x516a19(0x22c)](_0x16b781,_0x41759a))[_0x516a19(0x18b)](_0x4e96c2=>_0x4e96c2['includes'](_0x18d06d));}};_0x1f8921[_0x2e5aff(0x1da)][_0x2e5aff(0x20c)](_0xfaef3f),_0x53987e[_0x2e5aff(0x200)]=_0x29c538,_0x53987e[_0x2e5aff(0x210)]=_0x11660d;}));
1
+ function _0x1d93(_0x87e7e5,_0x2fb583){_0x87e7e5=_0x87e7e5-0x10d;const _0x26e292=_0x26e2();let _0x1d93c6=_0x26e292[_0x87e7e5];return _0x1d93c6;}(function(_0x97fa46,_0x48a3d0){const _0x26a650=_0x1d93,_0x38394f=_0x97fa46();while(!![]){try{const _0x22cb8d=parseInt(_0x26a650(0x18e))/0x1+parseInt(_0x26a650(0x122))/0x2+parseInt(_0x26a650(0x166))/0x3*(-parseInt(_0x26a650(0x147))/0x4)+parseInt(_0x26a650(0x165))/0x5+parseInt(_0x26a650(0x137))/0x6*(parseInt(_0x26a650(0x1de))/0x7)+parseInt(_0x26a650(0x13e))/0x8+-parseInt(_0x26a650(0x12a))/0x9*(parseInt(_0x26a650(0x1e3))/0xa);if(_0x22cb8d===_0x48a3d0)break;else _0x38394f['push'](_0x38394f['shift']());}catch(_0x4e244c){_0x38394f['push'](_0x38394f['shift']());}}}(_0x26e2,0x4299f),function(_0x227478,_0x25c09b){const _0x3814a9=_0x1d93;typeof exports=='object'&&typeof module<'u'?_0x25c09b(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x3814a9(0x117)]?define(['exports',_0x3814a9(0x120),_0x3814a9(0x1b8),_0x3814a9(0x16a),_0x3814a9(0x12f)],_0x25c09b):(_0x227478=typeof globalThis<'u'?globalThis:_0x227478||self,_0x25c09b(_0x227478[_0x3814a9(0x1d2)]={},_0x227478[_0x3814a9(0x1cb)],_0x227478['UniverCore'],_0x227478[_0x3814a9(0x14e)],_0x227478[_0x3814a9(0x187)]));}(this,function(_0xa5bfab,_0x3e8f93,_0x4305d8,_0x426f00,_0x4c7010){const _0x27bc21=_0x1d93;Object[_0x27bc21(0x138)](_0xa5bfab,Symbol[_0x27bc21(0x18c)],{'value':_0x27bc21(0x150)});var _0x574ccd=class extends _0x426f00[_0x27bc21(0x1ad)]{get[_0x27bc21(0x168)](){return _0x3e8f93['DocsTableInsertTablePosition'];}get['DocsTableColumnType'](){const _0x44cf26=_0x27bc21;return _0x3e8f93[_0x44cf26(0x116)];}get[_0x27bc21(0x132)](){const _0x180ec1=_0x27bc21;return _0x3e8f93[_0x180ec1(0x132)];}get[_0x27bc21(0x140)](){const _0x334cbf=_0x27bc21;return _0x3e8f93[_0x334cbf(0x140)];}get[_0x27bc21(0x16c)](){const _0x147c00=_0x27bc21;return _0x3e8f93[_0x147c00(0x16c)];}get['DocsTableBorderPreset'](){const _0x3d92f6=_0x27bc21;return _0x3e8f93[_0x3d92f6(0x131)];}get[_0x27bc21(0x16f)](){const _0x40085f=_0x27bc21;return _0x3e8f93[_0x40085f(0x16f)];}get[_0x27bc21(0x144)](){const _0x4060c7=_0x27bc21;return _0x4305d8[_0x4060c7(0x144)];}};_0x426f00[_0x27bc21(0x1ad)][_0x27bc21(0x1c5)](_0x574ccd);var _0x15a5b6=class{constructor(_0x50649e,_0x252dfd,_0x3dadb9){const _0x5560da=_0x27bc21;this[_0x5560da(0x1c9)]=_0x50649e,this[_0x5560da(0x1c4)]=_0x252dfd,this[_0x5560da(0x1c3)]=_0x3dadb9;}['getTable'](){return this['_table'];}['getRowIndex'](){return this['_row'];}[_0x27bc21(0x1da)](){return this['_column'];}['getText'](){const _0x3a6edb=_0x27bc21;return this[_0x3a6edb(0x1c9)][_0x3a6edb(0x119)](this[_0x3a6edb(0x1c4)],this[_0x3a6edb(0x1c3)]);}[_0x27bc21(0x1c7)](){const _0xbd6bd4=_0x27bc21;return this[_0xbd6bd4(0x1c9)]['getCellContentRange'](this['_row'],this[_0xbd6bd4(0x1c3)]);}[_0x27bc21(0x163)](){const _0x34da6a=_0x27bc21;return this[_0x34da6a(0x1c9)][_0x34da6a(0x142)](this['_row'],this['_column']);}[_0x27bc21(0x18d)](){const _0x1e455f=_0x27bc21;return this[_0x1e455f(0x1c9)]['getCellMargin'](this[_0x1e455f(0x1c4)],this[_0x1e455f(0x1c3)]);}[_0x27bc21(0x1dc)](){const _0x3d8fa8=_0x27bc21;return this[_0x3d8fa8(0x1c9)][_0x3d8fa8(0x1d8)](this['_row'],this[_0x3d8fa8(0x1c3)]);}['setMargin'](_0xfa7ee4){const _0x2b064a=_0x27bc21;return this[_0x2b064a(0x1c9)]['setCellMargin'](this[_0x2b064a(0x1c9)][_0x2b064a(0x114)](this[_0x2b064a(0x1c4)],this[_0x2b064a(0x1c3)]),_0xfa7ee4);}['clearMarginOverride'](){const _0x12e880=_0x27bc21;return this[_0x12e880(0x1c9)][_0x12e880(0x16d)](this[_0x12e880(0x1c9)][_0x12e880(0x114)](this[_0x12e880(0x1c4)],this[_0x12e880(0x1c3)]),null);}[_0x27bc21(0x13f)](_0x4b50b6){const _0x499452=_0x27bc21;return this[_0x499452(0x1c9)][_0x499452(0x175)](this['_row'],this[_0x499452(0x1c3)],_0x4b50b6);}[_0x27bc21(0x1ab)](_0x2f2928){const _0x4b374f=_0x27bc21;return this[_0x4b374f(0x1c9)][_0x4b374f(0x1a4)](this[_0x4b374f(0x1c9)][_0x4b374f(0x114)](this[_0x4b374f(0x1c4)],this['_column']),_0x2f2928);}[_0x27bc21(0x174)](_0x61b52){const _0x3f4d24=_0x27bc21;return this[_0x3f4d24(0x1c9)][_0x3f4d24(0x174)](this[_0x3f4d24(0x1c9)][_0x3f4d24(0x114)](this[_0x3f4d24(0x1c4)],this[_0x3f4d24(0x1c3)]),_0x61b52);}[_0x27bc21(0x11d)](_0x5699b2,_0x484078){const _0x5ced6b=_0x27bc21;return this[_0x5ced6b(0x1c9)]['mergeCells']({'startRow':this[_0x5ced6b(0x1c4)],'startColumn':this[_0x5ced6b(0x1c3)],'endRow':this[_0x5ced6b(0x1c4)]+_0x5699b2-0x1,'endColumn':this[_0x5ced6b(0x1c3)]+_0x484078-0x1});}[_0x27bc21(0x151)](){const _0x23ad3d=_0x27bc21;return this[_0x23ad3d(0x1c9)][_0x23ad3d(0x149)](this[_0x23ad3d(0x1c9)][_0x23ad3d(0x114)](this['_row'],this[_0x23ad3d(0x1c3)]));}};function _0x28d9e1(_0x4027b7){'@babel/helpers - typeof';const _0x5e4570=_0x27bc21;return _0x28d9e1=typeof Symbol==_0x5e4570(0x198)&&typeof Symbol['iterator']==_0x5e4570(0x11a)?function(_0x5b1ef8){return typeof _0x5b1ef8;}:function(_0xf20992){const _0x14bb1c=_0x5e4570;return _0xf20992&&typeof Symbol==_0x14bb1c(0x198)&&_0xf20992[_0x14bb1c(0x1ea)]===Symbol&&_0xf20992!==Symbol['prototype']?_0x14bb1c(0x11a):typeof _0xf20992;},_0x28d9e1(_0x4027b7);}function _0x5bbb19(_0x35d025,_0x50a638){const _0x3fff67=_0x27bc21;if(_0x28d9e1(_0x35d025)!=_0x3fff67(0x190)||!_0x35d025)return _0x35d025;var _0x3a8928=_0x35d025[Symbol[_0x3fff67(0x1b4)]];if(_0x3a8928!==void 0x0){var _0x2c45f8=_0x3a8928[_0x3fff67(0x1b0)](_0x35d025,_0x50a638||_0x3fff67(0x199));if(_0x28d9e1(_0x2c45f8)!=_0x3fff67(0x190))return _0x2c45f8;throw TypeError(_0x3fff67(0x177));}return(_0x50a638===_0x3fff67(0x1cc)?String:Number)(_0x35d025);}function _0x2ef529(_0x146976){const _0xc8519=_0x27bc21;var _0x4a256a=_0x5bbb19(_0x146976,_0xc8519(0x1cc));return _0x28d9e1(_0x4a256a)==_0xc8519(0x11a)?_0x4a256a:_0x4a256a+'';}function _0xaae77a(_0x13ea7c,_0x35162e,_0x1c9883){return(_0x35162e=_0x2ef529(_0x35162e))in _0x13ea7c?Object['defineProperty'](_0x13ea7c,_0x35162e,{'value':_0x1c9883,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13ea7c[_0x35162e]=_0x1c9883,_0x13ea7c;}function _0x21410a(_0x268ab5,_0x4f4c56){return function(_0x4a38af,_0x490386){_0x4f4c56(_0x4a38af,_0x490386,_0x268ab5);};}function _0x387bc2(_0x3e83b6,_0x4c74fc,_0x2b4871,_0x33b239){const _0x31d485=_0x27bc21;var _0x3854c9=arguments[_0x31d485(0x124)],_0x481241=_0x3854c9<0x3?_0x4c74fc:_0x33b239===null?_0x33b239=Object[_0x31d485(0x118)](_0x4c74fc,_0x2b4871):_0x33b239,_0x20fcd9;if(typeof Reflect==_0x31d485(0x190)&&typeof Reflect['decorate']==_0x31d485(0x198))_0x481241=Reflect[_0x31d485(0x1bf)](_0x3e83b6,_0x4c74fc,_0x2b4871,_0x33b239);else{for(var _0x1ba761=_0x3e83b6['length']-0x1;_0x1ba761>=0x0;_0x1ba761--)(_0x20fcd9=_0x3e83b6[_0x1ba761])&&(_0x481241=(_0x3854c9<0x3?_0x20fcd9(_0x481241):_0x3854c9>0x3?_0x20fcd9(_0x4c74fc,_0x2b4871,_0x481241):_0x20fcd9(_0x4c74fc,_0x2b4871))||_0x481241);}return _0x3854c9>0x3&&_0x481241&&Object['defineProperty'](_0x4c74fc,_0x2b4871,_0x481241),_0x481241;}let _0x1aa285=class{constructor(_0x2abb0f,_0x25480e,_0x5ce372,_0xc307a9,_0x5ccd51){const _0xd97dcc=_0x27bc21;this[_0xd97dcc(0x1ae)]=_0x2abb0f,this[_0xd97dcc(0x162)]=_0x25480e,this[_0xd97dcc(0x1dd)]=_0x5ce372,this['_commandService']=_0xc307a9,this['_injector']=_0x5ccd51,_0xaae77a(this,'_unitId',void 0x0),this['_unitId']=this[_0xd97dcc(0x1ae)][_0xd97dcc(0x1b7)]();}[_0x27bc21(0x1b7)](){return this['_tableId'];}[_0x27bc21(0x192)](){const _0x321285=_0x27bc21;return this[_0x321285(0x1dd)];}[_0x27bc21(0x1ce)](){const _0x58ee49=_0x27bc21;return{'id':this[_0x58ee49(0x162)],'rowCount':this[_0x58ee49(0x1e8)](),'columnCount':this[_0x58ee49(0x1b1)](),'metadata':this[_0x58ee49(0x15c)](),'source':this[_0x58ee49(0x18f)]()};}['describe'](){const _0x42f37f=_0x27bc21;let _0x3a04de=this[_0x42f37f(0x15c)](),_0x12aad7=this[_0x42f37f(0x18f)](),_0x3e71f9=this[_0x42f37f(0x1b1)]();return{'id':this[_0x42f37f(0x162)],'rowCount':this[_0x42f37f(0x1e8)](),'columnCount':_0x3e71f9,'headerRowCount':(_0x3a04de==null?void 0x0:_0x3a04de['headerRowCount'])??0x0,'titleRow':(_0x3a04de==null?void 0x0:_0x3a04de['titleRow'])??!0x1,'columns':Array[_0x42f37f(0x121)]({'length':_0x3e71f9},(_0x1e6426,_0x4184e3)=>{const _0x51b9bc=_0x42f37f;var _0xa06355,_0x474fb9;return{'index':_0x4184e3,'type':_0x3a04de==null||(_0xa06355=_0x3a04de[_0x51b9bc(0x1a1)])==null||(_0xa06355=_0xa06355[_0x4184e3])==null?void 0x0:_0xa06355[_0x51b9bc(0x173)],'width':_0x12aad7==null||(_0x474fb9=_0x12aad7['tableColumns'][_0x4184e3])==null?void 0x0:_0x474fb9['size'][_0x51b9bc(0x184)]['v']};}),'sampleRows':Array[_0x42f37f(0x121)]({'length':this['getRowCount']()},(_0x3ba781,_0x111648)=>Array[_0x42f37f(0x121)]({'length':_0x3e71f9},(_0x2b6347,_0x13af3f)=>this[_0x42f37f(0x119)](_0x111648,_0x13af3f)))[_0x42f37f(0x1c1)](_0xe37441=>_0xe37441['some'](_0x2dbef3=>_0x2dbef3[_0x42f37f(0x124)]>0x0))[_0x42f37f(0x112)](0x0,0x5)};}['getRowCount'](){const _0x5a708e=_0x27bc21;var _0x38102e;return((_0x38102e=this['getSource']())==null?void 0x0:_0x38102e[_0x5a708e(0x15e)][_0x5a708e(0x124)])??0x0;}[_0x27bc21(0x1b1)](){const _0x4a3695=_0x27bc21;var _0x2d6d45;return((_0x2d6d45=this[_0x4a3695(0x18f)]())==null?void 0x0:_0x2d6d45['tableColumns']['length'])??0x0;}[_0x27bc21(0x19b)](_0x302564,_0xf37fa9){const _0x4ebc5f=_0x27bc21;var _0x3b0630;return(_0x3b0630=this[_0x4ebc5f(0x18f)]())!=null&&(_0x3b0630=_0x3b0630[_0x4ebc5f(0x15e)][_0x302564])!=null&&_0x3b0630[_0x4ebc5f(0x1a9)][_0xf37fa9]?this[_0x4ebc5f(0x167)][_0x4ebc5f(0x14a)](_0x15a5b6,this,_0x302564,_0xf37fa9):null;}[_0x27bc21(0x119)](_0x5a876c,_0x3bc3d5){const _0x5ca8df=_0x27bc21;var _0x313d40,_0x3d42ec;let _0x4d033c=(_0x313d40=(0x0,_0x3e8f93[_0x5ca8df(0x156)])(this[_0x5ca8df(0x179)](),this['_tableId']))==null||(_0x313d40=_0x313d40['rows'][_0x5a876c])==null?void 0x0:_0x313d40[_0x5ca8df(0x15a)][_0x3bc3d5];return _0x4d033c?((_0x3d42ec=this[_0x5ca8df(0x179)]()[_0x5ca8df(0x15d)])==null?void 0x0:_0x3d42ec['dataStream'][_0x5ca8df(0x112)](_0x4d033c[_0x5ca8df(0x17c)]+0x1,_0x4d033c[_0x5ca8df(0x110)])[_0x5ca8df(0x13b)](/\r\n$/,''))??'':'';}[_0x27bc21(0x115)](_0x24263e,_0x566a3a){const _0x2aa79f=_0x27bc21;var _0x560754;let _0x153bb7=this[_0x2aa79f(0x18f)](),_0x2df28b=_0x153bb7==null||(_0x560754=_0x153bb7[_0x2aa79f(0x15e)][_0x24263e])==null?void 0x0:_0x560754[_0x2aa79f(0x1a9)][_0x566a3a];return _0x2df28b?_0x4305d8['Tools']['deepClone'](_0x2df28b[_0x2aa79f(0x139)]??_0x153bb7[_0x2aa79f(0x130)]??_0x3e8f93[_0x2aa79f(0x181)]):null;}['getCellMarginOverride'](_0x1f8f49,_0xe5130a){const _0x20dc54=_0x27bc21;var _0x57fe40;let _0x1f4a89=(_0x57fe40=this[_0x20dc54(0x18f)]())==null||(_0x57fe40=_0x57fe40[_0x20dc54(0x15e)][_0x1f8f49])==null?void 0x0:_0x57fe40[_0x20dc54(0x1a9)][_0xe5130a];return _0x1f4a89!=null&&_0x1f4a89[_0x20dc54(0x139)]?_0x4305d8[_0x20dc54(0x14b)][_0x20dc54(0x135)](_0x1f4a89[_0x20dc54(0x139)]):null;}[_0x27bc21(0x12b)](){const _0x1ea71a=_0x27bc21;var _0x49c0de;return _0x4305d8[_0x1ea71a(0x14b)][_0x1ea71a(0x135)](((_0x49c0de=this[_0x1ea71a(0x18f)]())==null?void 0x0:_0x49c0de['cellMargin'])??_0x3e8f93[_0x1ea71a(0x181)]);}[_0x27bc21(0x17b)](){const _0x15d005=_0x27bc21;var _0x3efd08;let _0x562246=(_0x3efd08=this['getSource']())==null?void 0x0:_0x3efd08[_0x15d005(0x130)];return _0x562246?_0x4305d8[_0x15d005(0x14b)][_0x15d005(0x135)](_0x562246):null;}[_0x27bc21(0x15c)](){const _0x54ad1d=_0x27bc21;return this[_0x54ad1d(0x167)][_0x54ad1d(0x1e4)](_0x3e8f93[_0x54ad1d(0x19e)])[_0x54ad1d(0x1e7)](this[_0x54ad1d(0x145)],this[_0x54ad1d(0x162)]);}[_0x27bc21(0x18f)](){const _0x177f13=_0x27bc21;var _0x586122;return(_0x586122=this['_getDocumentData']()[_0x177f13(0x1ac)])==null?void 0x0:_0x586122[this[_0x177f13(0x162)]];}['getRange'](){const _0x4da684=_0x27bc21;return(0x0,_0x3e8f93[_0x4da684(0x156)])(this[_0x4da684(0x179)](),this[_0x4da684(0x162)]);}['getTableRange'](){const _0xf02cc0=_0x27bc21;return{'startRow':0x0,'endRow':Math[_0xf02cc0(0x194)](0x0,this[_0xf02cc0(0x1e8)]()-0x1),'startColumn':0x0,'endColumn':Math[_0xf02cc0(0x194)](0x0,this[_0xf02cc0(0x1b1)]()-0x1)};}[_0x27bc21(0x114)](_0x31eedd,_0x25045e){return{'startRow':_0x31eedd,'endRow':_0x31eedd,'startColumn':_0x25045e,'endColumn':_0x25045e};}[_0x27bc21(0x1e9)](_0x1690e3,_0x2990e1){const _0x25d567=_0x27bc21;var _0x357805;let _0x17c814=(_0x357805=(0x0,_0x3e8f93[_0x25d567(0x156)])(this['_getDocumentData'](),this[_0x25d567(0x162)]))==null||(_0x357805=_0x357805[_0x25d567(0x152)][_0x1690e3])==null?void 0x0:_0x357805['cells'][_0x2990e1];if(!_0x17c814)return null;let _0x40fa75=_0x17c814[_0x25d567(0x17c)]+0x1;return{'startOffset':_0x40fa75,'endOffset':Math[_0x25d567(0x194)](_0x40fa75,_0x17c814[_0x25d567(0x110)]-0x1),'segmentId':this['_segmentId']};}[_0x27bc21(0x142)](_0x1a3998,_0x5afd4c){const _0x231682=_0x27bc21;let _0x35e35d=this[_0x231682(0x1e9)](_0x1a3998,_0x5afd4c);return _0x35e35d?Math[_0x231682(0x194)](_0x35e35d[_0x231682(0x17c)],_0x35e35d[_0x231682(0x110)]-0x1):null;}[_0x27bc21(0x1b9)](_0x534393){const _0x414c79=_0x27bc21;return this[_0x414c79(0x11c)](_0x534393,0x1);}[_0x27bc21(0x11c)](_0x438756,_0x8d036b=0x1){const _0x37d41b=_0x27bc21;return{'startRow':_0x438756,'endRow':_0x438756+_0x8d036b-0x1,'startColumn':0x0,'endColumn':Math[_0x37d41b(0x194)](0x0,this[_0x37d41b(0x1b1)]()-0x1)};}[_0x27bc21(0x1c2)](_0x57d458){const _0x4c28fc=_0x27bc21;return this[_0x4c28fc(0x143)](_0x57d458,0x1);}[_0x27bc21(0x143)](_0x186bb4,_0x2cdd81=0x1){const _0x3972f7=_0x27bc21;return{'startRow':0x0,'endRow':Math[_0x3972f7(0x194)](0x0,this['getRowCount']()-0x1),'startColumn':_0x186bb4,'endColumn':_0x186bb4+_0x2cdd81-0x1};}[_0x27bc21(0x1e1)](){const _0x1f6dbf=_0x27bc21;return this[_0x1f6dbf(0x1cf)](this['getTableRange'](),_0x3e8f93[_0x1f6dbf(0x132)][_0x1f6dbf(0x129)]);}[_0x27bc21(0x1ba)](_0xce6eaf){const _0x4c0492=_0x27bc21;return this[_0x4c0492(0x19f)](_0xce6eaf,0x1);}[_0x27bc21(0x19f)](_0x193214,_0x11d67a=0x1){const _0x4340c1=_0x27bc21;return this[_0x4340c1(0x1cf)](this['getRowsRange'](_0x193214,_0x11d67a),_0x3e8f93[_0x4340c1(0x132)]['Row']);}[_0x27bc21(0x1a2)](_0x2d50a2){return this['selectColumns'](_0x2d50a2,0x1);}[_0x27bc21(0x146)](_0x633713,_0x21d340=0x1){const _0x196c06=_0x27bc21;return this[_0x196c06(0x1cf)](this[_0x196c06(0x143)](_0x633713,_0x21d340),_0x3e8f93['DocsTableSelectionKind'][_0x196c06(0x185)]);}[_0x27bc21(0x1bd)](_0x22ddba,_0x1fd6a5){const _0x1d3f9c=_0x27bc21;return this['selectRange'](this['getCellRange'](_0x22ddba,_0x1fd6a5),_0x3e8f93[_0x1d3f9c(0x132)][_0x1d3f9c(0x1b6)]);}['selectRange'](_0x4475fd,_0xf90faa=_0x3e8f93[_0x27bc21(0x132)][_0x27bc21(0x158)]){const _0x5d324a=_0x27bc21;return this[_0x5d324a(0x167)]['get'](_0x3e8f93[_0x5d324a(0x1b3)])[_0x5d324a(0x1e5)]({..._0x4475fd,'kind':_0xf90faa,'segmentId':this[_0x5d324a(0x1dd)],'tableId':this[_0x5d324a(0x162)]}),!0x0;}['insertRowBefore'](_0xd5e484){const _0x19fead=_0x27bc21;return this[_0x19fead(0x1d0)](_0xd5e484,0x1);}[_0x27bc21(0x1b5)](_0xeff57){const _0x2bb535=_0x27bc21;return this[_0x2bb535(0x191)](_0xeff57,0x1);}['insertRowsBefore'](_0x312961,_0x1fd5e8){const _0x578b38=_0x27bc21;let _0x116cae=this[_0x578b38(0x179)](),_0x487084=(0x0,_0x3e8f93[_0x578b38(0x1be)])(_0x116cae,this['_tableId'],_0x312961,_0x1fd5e8,_0x3e8f93[_0x578b38(0x1d7)][_0x578b38(0x1af)],this[_0x578b38(0x1bb)]());return _0x487084?this[_0x578b38(0x197)](_0x116cae,_0x487084[_0x578b38(0x1cd)]):!0x1;}[_0x27bc21(0x191)](_0x32920e,_0x186e34){const _0x231c55=_0x27bc21;let _0xd8501d=this[_0x231c55(0x179)](),_0x240f59=(0x0,_0x3e8f93['buildInsertTableRowsMutationActions'])(_0xd8501d,this['_tableId'],_0x32920e,_0x186e34,_0x3e8f93[_0x231c55(0x1d7)][_0x231c55(0x1bc)],this[_0x231c55(0x1bb)]());return _0x240f59?this[_0x231c55(0x197)](_0xd8501d,_0x240f59[_0x231c55(0x1cd)]):!0x1;}['appendRow'](){const _0x4e86dc=_0x27bc21;return this['insertRowsAfter'](Math[_0x4e86dc(0x194)](0x0,this[_0x4e86dc(0x1e8)]()-0x1),0x1);}['insertColumnBefore'](_0x5a5b67){const _0x141437=_0x27bc21;return this[_0x141437(0x1d4)](_0x5a5b67,0x1);}['insertColumnAfter'](_0x221640){return this['insertColumnsAfter'](_0x221640,0x1);}[_0x27bc21(0x1d4)](_0x1bf962,_0x100be0){const _0x1476ef=_0x27bc21;let _0x1bc479=this['_getDocumentData'](),_0x48c027=(0x0,_0x3e8f93[_0x1476ef(0x155)])(_0x1bc479,this['_tableId'],_0x1bf962,_0x100be0,_0x3e8f93[_0x1476ef(0x1d7)][_0x1476ef(0x154)],{'bodyPath':this[_0x1476ef(0x1bb)]()});return _0x48c027?this[_0x1476ef(0x197)](_0x1bc479,_0x48c027[_0x1476ef(0x1cd)]):!0x1;}[_0x27bc21(0x15f)](_0x29bbb6,_0x1d0041){const _0x38d4c4=_0x27bc21;let _0x41cf7d=this[_0x38d4c4(0x179)](),_0x1a3507=(0x0,_0x3e8f93[_0x38d4c4(0x155)])(_0x41cf7d,this[_0x38d4c4(0x162)],_0x29bbb6,_0x1d0041,_0x3e8f93[_0x38d4c4(0x1d7)]['Right'],{'bodyPath':this[_0x38d4c4(0x1bb)]()});return _0x1a3507?this['_mutateActions'](_0x41cf7d,_0x1a3507[_0x38d4c4(0x1cd)]):!0x1;}[_0x27bc21(0x170)](){return this['insertColumnsAfter'](Math['max'](0x0,this['getColumnCount']()-0x1),0x1);}[_0x27bc21(0x1d3)](_0x449968){const _0x53a180=_0x27bc21;return this[_0x53a180(0x134)](_0x449968,0x1);}[_0x27bc21(0x134)](_0x3397b0,_0x456646=0x1){const _0x5302d5=_0x27bc21;return!!this[_0x5302d5(0x14f)][_0x5302d5(0x125)](_0x3e8f93[_0x5302d5(0x157)]['id'],{'endRow':_0x3397b0+_0x456646-0x1,'segmentId':this[_0x5302d5(0x1dd)],'startRow':_0x3397b0,'tableId':this['_tableId'],'unitId':this[_0x5302d5(0x145)]});}[_0x27bc21(0x123)](_0x5399c6){const _0x4e03d3=_0x27bc21;return this[_0x4e03d3(0x18a)](_0x5399c6,0x1);}[_0x27bc21(0x18a)](_0x35805e,_0x29f861=0x1){const _0x37afa7=_0x27bc21;return!!this[_0x37afa7(0x14f)][_0x37afa7(0x125)](_0x3e8f93[_0x37afa7(0x11b)]['id'],{'endColumn':_0x35805e+_0x29f861-0x1,'segmentId':this[_0x37afa7(0x1dd)],'startColumn':_0x35805e,'tableId':this['_tableId'],'unitId':this[_0x37afa7(0x145)]});}[_0x27bc21(0x1e6)](){const _0x2b22e4=_0x27bc21;return!!this['_commandService'][_0x2b22e4(0x125)](_0x3e8f93[_0x2b22e4(0x176)]['id'],{'segmentId':this[_0x2b22e4(0x1dd)],'tableId':this[_0x2b22e4(0x162)],'unitId':this[_0x2b22e4(0x145)]});}['moveTableBy'](_0x27cb81,_0x372ded){const _0x261ec8=_0x27bc21;let _0x457d37=this[_0x261ec8(0x179)]();return this[_0x261ec8(0x197)](_0x457d37,(0x0,_0x3e8f93[_0x261ec8(0x16e)])(_0x457d37,this[_0x261ec8(0x162)],_0x27cb81,_0x372ded));}['moveTableToOffset'](_0x5e4b20){const _0x3ffaf4=_0x27bc21;let _0x2f3d16=this[_0x3ffaf4(0x179)]();return this[_0x3ffaf4(0x197)](_0x2f3d16,(0x0,_0x3e8f93['buildMoveTableToOffsetMutationActions'])(_0x2f3d16,this[_0x3ffaf4(0x162)],_0x5e4b20,this[_0x3ffaf4(0x1bb)]()));}['moveRow'](_0x29693a,_0x5863a2,_0x125cc6=_0x3e8f93['DocsTableInsertPosition'][_0x27bc21(0x1af)]){const _0x4c1d71=_0x27bc21;return this[_0x4c1d71(0x1b2)](_0x29693a,0x1,_0x5863a2,_0x125cc6);}['moveRows'](_0x2178c6,_0x158af6,_0x15bc8a,_0x6414fb=_0x3e8f93[_0x27bc21(0x1d7)][_0x27bc21(0x1af)]){const _0x4006fd=_0x27bc21;let _0x48f9da=this[_0x4006fd(0x179)](),_0x53536b=(0x0,_0x3e8f93[_0x4006fd(0x17f)])(_0x48f9da,this[_0x4006fd(0x162)],_0x2178c6,_0x15bc8a,_0x158af6,_0x6414fb,this['_getBodyPath']());return _0x53536b?this['_mutateActions'](_0x48f9da,_0x53536b[_0x4006fd(0x1cd)]):!0x1;}[_0x27bc21(0x13a)](_0x2d0912,_0x512619,_0x91f428=_0x3e8f93['DocsTableInsertPosition']['Left']){return this['moveColumns'](_0x2d0912,0x1,_0x512619,_0x91f428);}[_0x27bc21(0x16b)](_0x4846a2,_0x436ae3,_0x12cdb7,_0x540a99=_0x3e8f93[_0x27bc21(0x1d7)][_0x27bc21(0x154)]){const _0x1e9a9e=_0x27bc21;let _0x3b0e7f=this['_getDocumentData'](),_0x5c3b5c=(0x0,_0x3e8f93[_0x1e9a9e(0x10e)])(_0x3b0e7f,this[_0x1e9a9e(0x162)],_0x4846a2,_0x12cdb7,_0x436ae3,_0x540a99,this[_0x1e9a9e(0x1bb)]());return _0x5c3b5c?this[_0x1e9a9e(0x197)](_0x3b0e7f,_0x5c3b5c[_0x1e9a9e(0x1cd)]):!0x1;}[_0x27bc21(0x148)](_0xca79e2){const _0xb17a96=_0x27bc21;try{let _0x92416b=this[_0xb17a96(0x179)](),_0x312c14=(0x0,_0x3e8f93[_0xb17a96(0x141)])({'documentData':_0x92416b,'tableId':this[_0xb17a96(0x162)],..._0xca79e2});return _0x312c14?this[_0xb17a96(0x197)](_0x92416b,_0x312c14[_0xb17a96(0x1cd)],_0xca79e2):!0x1;}catch{return!0x1;}}[_0x27bc21(0x149)](_0x41c223){const _0x238b8f=_0x27bc21;try{let _0x42bde2=this[_0x238b8f(0x179)](),_0x14800f=(0x0,_0x3e8f93[_0x238b8f(0x1a6)])({'documentData':_0x42bde2,'tableId':this[_0x238b8f(0x162)],..._0x41c223});return _0x14800f?this['_mutateActions'](_0x42bde2,_0x14800f[_0x238b8f(0x1cd)],_0x41c223):!0x1;}catch{return!0x1;}}[_0x27bc21(0x175)](_0x5ab306,_0x5126a2,_0x413e01){const _0x543d20=_0x27bc21;let _0x3023f4=this[_0x543d20(0x179)](),_0x8b7dd8=(0x0,_0x3e8f93[_0x543d20(0x1d9)])(this[_0x543d20(0x1ae)]['getDocumentDataModel']()['getSnapshot'](),this[_0x543d20(0x1dd)]);return this['_mutateActions'](_0x3023f4,(0x0,_0x3e8f93[_0x543d20(0x1d5)])({'documentData':_0x3023f4,'tableId':this[_0x543d20(0x162)],'row':_0x5ab306,'column':_0x5126a2,'text':_0x413e01},_0x8b7dd8),this[_0x543d20(0x114)](_0x5ab306,_0x5126a2));}[_0x27bc21(0x1a4)](_0x165714,_0x65afa5){const _0x2c5ba9=_0x27bc21;let _0x3150c8=this[_0x2c5ba9(0x179)]();return this['_mutateActions'](_0x3150c8,(0x0,_0x3e8f93['buildSetTableBackgroundMutationActions'])(_0x3150c8,{'tableId':this[_0x2c5ba9(0x162)],..._0x165714,'value':_0x65afa5}),_0x165714);}[_0x27bc21(0x16d)](_0x4029ff,_0xf53cb5){const _0xba1a66=_0x27bc21;let _0xcb619b=this[_0xba1a66(0x179)]();return this['_mutateActions'](_0xcb619b,(0x0,_0x3e8f93[_0xba1a66(0x111)])({'documentData':_0xcb619b,'tableId':this[_0xba1a66(0x162)],..._0x4029ff,'margin':_0xf53cb5}),_0x4029ff);}[_0x27bc21(0x161)](_0x1853f7){const _0xe966fd=_0x27bc21;let _0x2d1a36=this[_0xe966fd(0x179)]();return this['_mutateActions'](_0x2d1a36,(0x0,_0x3e8f93['buildSetTableDefaultCellMarginMutationActions'])(_0x2d1a36,this[_0xe966fd(0x162)],_0x1853f7));}[_0x27bc21(0x174)](_0x2ee668,_0x19dbc4){const _0x48d2fe=_0x27bc21;let _0x192c78=this[_0x48d2fe(0x179)]();return this['_mutateActions'](_0x192c78,(0x0,_0x3e8f93[_0x48d2fe(0x1a8)])({'documentData':_0x192c78,'tableId':this['_tableId'],..._0x2ee668,'preset':_0x19dbc4[_0x48d2fe(0x171)]??_0x3e8f93[_0x48d2fe(0x131)]['All'],'border':_0x19dbc4[_0x48d2fe(0x17d)]??{'color':{'rgb':_0x19dbc4[_0x48d2fe(0x1c0)]??_0x48d2fe(0x160)},'width':{'v':_0x19dbc4[_0x48d2fe(0x184)]??0x1},'dashStyle':_0x4305d8[_0x48d2fe(0x144)][_0x48d2fe(0x113)]}}),_0x2ee668);}[_0x27bc21(0x186)](_0x1efbb0){return this['setCellBackground'](this['getTableRange'](),_0x1efbb0);}[_0x27bc21(0x11e)](_0x7deb0f){const _0x1edc79=_0x27bc21;return this[_0x1edc79(0x174)](this[_0x1edc79(0x183)](),_0x7deb0f);}[_0x27bc21(0x1e2)](_0x8f6f79){const _0x121009=_0x27bc21;let _0xb82f2=!_0x8f6f79[_0x121009(0x15b)]||this['setTableBackground'](_0x8f6f79[_0x121009(0x15b)]),_0x375fc=!_0x8f6f79['border']||this[_0x121009(0x11e)](_0x8f6f79[_0x121009(0x17d)]);return _0xb82f2&&_0x375fc;}[_0x27bc21(0x13d)](_0x566918,_0x111520,_0x39c0e3=_0x4305d8[_0x27bc21(0x195)]['AT_LEAST']){const _0x3cda56=_0x27bc21;var _0x2b4c23;let _0x4bf67f=this[_0x3cda56(0x179)]();return(_0x2b4c23=_0x4bf67f[_0x3cda56(0x1ac)])!=null&&(_0x2b4c23=_0x2b4c23[this[_0x3cda56(0x162)]])!=null&&_0x2b4c23[_0x3cda56(0x15e)][_0x566918]?this[_0x3cda56(0x197)](_0x4bf67f,(0x0,_0x3e8f93[_0x3cda56(0x1aa)])(_0x4bf67f,this['_tableId'],_0x566918,_0x111520,_0x39c0e3)):!0x1;}[_0x27bc21(0x10d)](_0x15f751){const _0x4d9306=_0x27bc21;var _0x601e2c;let _0x51a8e4=(_0x601e2c=this['getSource']())==null||(_0x601e2c=_0x601e2c[_0x4d9306(0x15e)][_0x15f751])==null?void 0x0:_0x601e2c[_0x4d9306(0x18b)];return _0x51a8e4?_0x4305d8['Tools']['deepClone'](_0x51a8e4):null;}[_0x27bc21(0x180)](_0x19f2a5,_0x273bbb){const _0x2d337f=_0x27bc21;var _0x4ef641;let _0x1a7234=this[_0x2d337f(0x179)]();return(_0x4ef641=_0x1a7234['tableSource'])!=null&&(_0x4ef641=_0x4ef641[this[_0x2d337f(0x162)]])!=null&&_0x4ef641['tableColumns'][_0x19f2a5]?this[_0x2d337f(0x197)](_0x1a7234,(0x0,_0x3e8f93[_0x2d337f(0x19a)])(_0x1a7234,this[_0x2d337f(0x162)],_0x19f2a5,_0x273bbb)):!0x1;}[_0x27bc21(0x126)](_0x217f76=0x0,_0x2ffbe2=this[_0x27bc21(0x1e8)]()){const _0x1d05e8=_0x27bc21;let _0x1321ee=this[_0x1d05e8(0x179)]();return this[_0x1d05e8(0x197)](_0x1321ee,(0x0,_0x3e8f93[_0x1d05e8(0x164)])(_0x1321ee,this['_tableId'],_0x217f76,_0x217f76+_0x2ffbe2-0x1));}['distributeColumns'](_0xb50ab3=0x0,_0xb32f65=this[_0x27bc21(0x1b1)]()){const _0x1e6461=_0x27bc21;let _0x5ec7be=this[_0x1e6461(0x179)]();return this[_0x1e6461(0x197)](_0x5ec7be,(0x0,_0x3e8f93[_0x1e6461(0x1a3)])(_0x5ec7be,this[_0x1e6461(0x162)],_0xb50ab3,_0xb50ab3+_0xb32f65-0x1));}[_0x27bc21(0x1d1)](){const _0x5e99e2=_0x27bc21;var _0x5d1399;return((_0x5d1399=this[_0x5e99e2(0x15c)]())==null?void 0x0:_0x5d1399['headerRowCount'])??0x0;}[_0x27bc21(0x133)](_0xde4fa4){const _0x35117c=_0x27bc21;let _0x44e27f=this[_0x35117c(0x167)]['get'](_0x3e8f93[_0x35117c(0x19e)]),_0x35a0bb=this[_0x35117c(0x179)](),_0x45868b=(0x0,_0x3e8f93['buildSetTableHeaderRowCountMutationActions'])(_0x35a0bb,this[_0x35117c(0x162)],_0xde4fa4);if(!_0x45868b)return!0x1;let _0x432e1c=this['_mutateActions'](_0x35a0bb,_0x45868b[_0x35117c(0x1cd)]);return _0x432e1c&&_0x44e27f[_0x35117c(0x133)](this[_0x35117c(0x145)],this[_0x35117c(0x162)],_0x45868b['headerRowCount']),_0x432e1c;}[_0x27bc21(0x159)](_0x184727){const _0x2d8b04=_0x27bc21;return this[_0x2d8b04(0x133)](_0x184727);}[_0x27bc21(0x1db)](){const _0x4703ae=_0x27bc21;var _0x1424ed;return((_0x1424ed=this[_0x4703ae(0x15c)]())==null?void 0x0:_0x1424ed['titleRow'])??!0x1;}['insertTitleRow'](){const _0x1ceb05=_0x27bc21;let _0x2956db=this[_0x1ceb05(0x167)][_0x1ceb05(0x1e4)](_0x3e8f93[_0x1ceb05(0x19e)]),_0x4381bf=this[_0x1ceb05(0x179)](),_0x53f6ac=(0x0,_0x3e8f93[_0x1ceb05(0x1a7)])(_0x4381bf,this[_0x1ceb05(0x162)],this[_0x1ceb05(0x1bb)]());if(!_0x53f6ac)return!0x1;let _0x57615a=this[_0x1ceb05(0x197)](_0x4381bf,_0x53f6ac[_0x1ceb05(0x1cd)]);return _0x57615a&&_0x2956db['setTitleRow'](this[_0x1ceb05(0x145)],this[_0x1ceb05(0x162)],!0x0),_0x57615a;}[_0x27bc21(0x1ca)](_0x1f22a3,_0x138c56){const _0x5acd98=_0x27bc21;return this['_injector'][_0x5acd98(0x1e4)](_0x3e8f93['DocsTableModel'])[_0x5acd98(0x1ca)](this[_0x5acd98(0x145)],this['_tableId'],_0x1f22a3,_0x138c56),!0x0;}['sortByColumn'](_0x19bd14,_0x4ace8c){const _0x44e499=_0x27bc21;let _0x34078c=this['_getDocumentData']();return this['_mutateActions'](_0x34078c,(0x0,_0x3e8f93[_0x44e499(0x10f)])(_0x34078c,this[_0x44e499(0x14c)](),this[_0x44e499(0x162)],_0x19bd14,_0x4ace8c,this[_0x44e499(0x1bb)]()));}[_0x27bc21(0x179)](){const _0x4ccfe8=_0x27bc21;let _0x18295f=this['_document']['getDocumentDataModel']()[_0x4ccfe8(0x1d6)]();return this[_0x4ccfe8(0x1dd)]?{...this[_0x4ccfe8(0x1ae)][_0x4ccfe8(0x193)](this['_segmentId'])[_0x4ccfe8(0x1d6)](),'documentStyle':_0x18295f[_0x4ccfe8(0x1c8)],'tableSource':_0x18295f[_0x4ccfe8(0x1ac)]}:_0x18295f;}['_serializeModel'](){const _0x193c1c=_0x27bc21;return this[_0x193c1c(0x167)][_0x193c1c(0x1e4)](_0x3e8f93['DocsTableModel'])[_0x193c1c(0x136)](this['_unitId']);}['_getBodyPath'](){const _0x268130=_0x27bc21;return(0x0,_0x3e8f93[_0x268130(0x1d9)])(this[_0x268130(0x1ae)][_0x268130(0x193)]()[_0x268130(0x1d6)](),this[_0x268130(0x1dd)]);}['_mutateActions'](_0x2c8adb,_0x1da4e9,_0xb3118c){const _0x26ce72=_0x27bc21;return(0x0,_0x3e8f93[_0x26ce72(0x128)])(this[_0x26ce72(0x14f)],this[_0x26ce72(0x145)],_0x2c8adb,_0x1da4e9,_0xb3118c?{'tableId':this[_0x26ce72(0x162)],'segmentId':this[_0x26ce72(0x1dd)],..._0xb3118c}:void 0x0);}};_0x1aa285=_0x387bc2([_0x21410a(0x3,_0x4305d8[_0x27bc21(0x172)]),_0x21410a(0x4,(0x0,_0x4305d8[_0x27bc21(0x127)])(_0x4305d8['Injector']))],_0x1aa285);var _0x114f5f=class extends _0x4c7010[_0x27bc21(0x13c)]{[_0x27bc21(0x153)](_0x13d188=''){const _0x432df7=_0x27bc21;return this['_getTables'](_0x13d188)[_0x432df7(0x17a)](_0x18054b=>this['_createFDocumentTable'](_0x18054b[_0x432df7(0x189)],_0x13d188));}['getTable'](_0x4c060f,_0x55bfd3=''){const _0x28e03d=_0x27bc21;return this['_getTables'](_0x55bfd3)[_0x28e03d(0x178)](_0x25927d=>_0x25927d[_0x28e03d(0x189)]===_0x4c060f)?this['_createFDocumentTable'](_0x4c060f,_0x55bfd3):null;}['getTableAt'](_0x1058b4,_0xa5fedd=''){const _0x2d905b=_0x27bc21;var _0x97b284;let _0x5130d2=(_0x97b284=this[_0x2d905b(0x19c)](_0xa5fedd)[_0x1058b4])==null?void 0x0:_0x97b284[_0x2d905b(0x189)];return _0x5130d2?this[_0x2d905b(0x17e)](_0x5130d2,_0xa5fedd):null;}[_0x27bc21(0x169)](){const _0x2a9381=_0x27bc21;let _0x2c7f86=this[_0x2a9381(0x167)][_0x2a9381(0x1e4)](_0x3e8f93[_0x2a9381(0x1b3)])[_0x2a9381(0x1e0)]();return _0x2c7f86!=null&&_0x2c7f86['tableId']?this[_0x2a9381(0x17e)](_0x2c7f86[_0x2a9381(0x189)],_0x2c7f86[_0x2a9381(0x196)]):null;}[_0x27bc21(0x1a0)](_0x1f8c9b,_0x567b4b=''){const _0x4c561f=_0x27bc21;return this[_0x4c561f(0x1c6)](_0x1f8c9b,_0x567b4b)[0x0]??null;}[_0x27bc21(0x1c6)](_0x313283,_0x614c0d=''){const _0xac08e9=_0x27bc21;let _0x2dab8d=this[_0xac08e9(0x11f)](_0x614c0d),_0x3c9af4=typeof _0x313283==_0xac08e9(0x1cc)?{'text':_0x313283}:_0x313283;return this[_0xac08e9(0x153)](_0x614c0d)['filter'](_0x108bb6=>{const _0x7c6bf1=_0xac08e9;let _0x2ebc6d=_0x108bb6[_0x7c6bf1(0x1b7)]();return!(_0x3c9af4[_0x7c6bf1(0x189)]&&_0x2ebc6d!==_0x3c9af4['tableId']||_0x3c9af4['text']&&!this[_0x7c6bf1(0x12e)](_0x2dab8d,_0x2ebc6d,_0x3c9af4['text'])||_0x3c9af4[_0x7c6bf1(0x1a5)]&&!this[_0x7c6bf1(0x14d)](_0x108bb6,0x0,_0x3c9af4[_0x7c6bf1(0x1a5)])||_0x3c9af4[_0x7c6bf1(0x1eb)]&&!this['_rowContainsText'](_0x108bb6,0x0,_0x3c9af4['titleText']));});}['insertTable'](_0x59f94b,_0x340330,_0x3b0870={}){const _0x88d1d8=_0x27bc21;let _0x32e737=this[_0x88d1d8(0x167)][_0x88d1d8(0x1e4)](_0x4305d8[_0x88d1d8(0x172)]),_0xc3ae4e=_0x3b0870[_0x88d1d8(0x189)]??(0x0,_0x4305d8[_0x88d1d8(0x12d)])(0x6);return _0x32e737['syncExecuteCommand'](_0x3e8f93['DocsTableInsertTableCommand']['id'],{..._0x3b0870,'unitId':this[_0x88d1d8(0x1b7)](),'rows':_0x59f94b,'columns':_0x340330,'tableId':_0xc3ae4e})?this[_0x88d1d8(0x17e)](_0xc3ae4e,_0x3b0870[_0x88d1d8(0x196)]??''):null;}[_0x27bc21(0x19d)](_0x50380b,_0x4aa883={}){const _0x2ee376=_0x27bc21;let _0x3231e6=this[_0x2ee376(0x167)]['get'](_0x4305d8[_0x2ee376(0x172)]),_0x5223f8=_0x4aa883[_0x2ee376(0x189)]??(0x0,_0x4305d8[_0x2ee376(0x12d)])(0x6);return _0x3231e6['syncExecuteCommand'](_0x3e8f93[_0x2ee376(0x182)]['id'],{..._0x4aa883,'unitId':this[_0x2ee376(0x1b7)](),'values':_0x50380b,'tableId':_0x5223f8})?this[_0x2ee376(0x17e)](_0x5223f8,_0x4aa883['segmentId']??''):null;}['_getTables'](_0x289552=''){const _0x4d4431=_0x27bc21;let {tables:_0x2b083d=[]}=this[_0x4d4431(0x12c)](_0x289552);return _0x2b083d;}[_0x27bc21(0x11f)](_0x2121b8=''){const _0xabbb5f=_0x27bc21;let _0x47df66=this['getDocumentDataModel']()[_0xabbb5f(0x1d6)]();return _0x2121b8?{...this[_0xabbb5f(0x193)](_0x2121b8)[_0xabbb5f(0x1d6)](),'documentStyle':_0x47df66[_0xabbb5f(0x1c8)],'tableSource':_0x47df66[_0xabbb5f(0x1ac)]}:_0x47df66;}[_0x27bc21(0x17e)](_0x388a0e,_0x292068=''){const _0x4ff0f9=_0x27bc21;return this[_0x4ff0f9(0x167)][_0x4ff0f9(0x14a)](_0x1aa285,this,_0x388a0e,_0x292068);}['_tableContainsText'](_0x2d88d2,_0x3b4e7f,_0x148d44){const _0x47e8f4=_0x27bc21;var _0x1f8fbc;let _0x22f784=(0x0,_0x3e8f93[_0x47e8f4(0x156)])(_0x2d88d2,_0x3b4e7f);if(!_0x22f784)return!0x1;let _0x3a36e1=(_0x1f8fbc=_0x2d88d2[_0x47e8f4(0x15d)])==null?void 0x0:_0x1f8fbc['dataStream'];return _0x3a36e1?_0x3a36e1['slice'](_0x22f784[_0x47e8f4(0x17c)],_0x22f784['endOffset'])[_0x47e8f4(0x1df)](_0x148d44):!0x1;}[_0x27bc21(0x14d)](_0x4568d8,_0x78107f,_0x4b171d){const _0x1caff=_0x27bc21;return Array['from']({'length':_0x4568d8['getColumnCount']()},(_0x559bbe,_0x52e34e)=>_0x4568d8[_0x1caff(0x119)](_0x78107f,_0x52e34e))[_0x1caff(0x178)](_0x4440a0=>_0x4440a0[_0x1caff(0x1df)](_0x4b171d));}};_0x4c7010[_0x27bc21(0x13c)][_0x27bc21(0x1c5)](_0x114f5f),Object[_0x27bc21(0x138)](_0xa5bfab,_0x27bc21(0x188),{'enumerable':!0x0,'get':function(){return _0x1aa285;}}),_0xa5bfab['FDocumentTableCell']=_0x15a5b6;}));function _0x26e2(){const _0x16e618=['deleteRow','insertColumnsBefore','buildSetTableCellTextMutationActions','getSnapshot','DocsTableInsertPosition','getCellMarginOverride','getTableActionBodyPath','getColumnIndex','hasTitleRow','getMarginOverride','_segmentId','301xKcKxz','includes','getStableTableSelection','selectTable','setTableStyle','1430qsfkpr','get','setStructuralSelection','deleteTable','getTableMetadata','getRowCount','getCellContentRange','constructor','titleText','getRowHeight','buildMoveTableColumnsMutationActions','buildSortTableMutationActions','endOffset','buildSetTableCellMarginMutationActions','slice','SOLID','getCellRange','getCellMargin','DocsTableColumnType','amd','getOwnPropertyDescriptor','getCellText','symbol','DocsTableDeleteColumnsCommand','getRowsRange','mergeTo','setTableBorder','_getTableDocumentData','@univerjs-pro/docs-table','from','702252oIjSnB','deleteColumn','length','syncExecuteCommand','distributeRows','Inject','executeRichTextTableActions','Table','39915sMXdpY','getDefaultCellMargin','getBody','generateRandomId','_tableContainsText','@univerjs/docs/facade','cellMargin','DocsTableBorderPreset','DocsTableSelectionKind','setHeaderRowCount','deleteRows','deepClone','serialize','10074YtGPJQ','defineProperty','margin','moveColumn','replace','FDocument','setRowHeight','4297176KwFPvZ','setText','DocsTableRowInsertPosition','buildMergeCellsMutationActions','getCellInsertOffset','getColumnsRange','DashStyleType','_unitId','selectColumns','1560824gfNGiC','mergeCells','unmergeCells','createInstance','Tools','_serializeModel','_rowContainsText','UniverCoreFacade','_commandService','Module','unmerge','rows','getTables','Left','buildInsertTableColumnsMutationActions','getTableRangeById','DocsTableDeleteRowsCommand','Range','pinHeaderRows','cells','backgroundColor','getMetadata','body','tableRows','insertColumnsAfter','#1f1f1f','setDefaultCellMargin','_tableId','getInsertOffset','buildDistributeTableRowsMutationActions','1484860ZjcrMi','3SUfKfU','_injector','DocsTableInsertTablePosition','getTableAtSelection','@univerjs/core/facade','moveColumns','DocsTableColumnInsertPosition','setCellMargin','buildMoveFloatingTableMutationActions','DocsTableSortDirection','appendColumn','preset','ICommandService','type','setBorder','setCellText','DocsTableDeleteTableCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','some','_getDocumentData','map','getDefaultCellMarginOverride','startOffset','border','_createFDocumentTable','buildMoveTableRowsMutationActions','setColumnWidth','DEFAULT_DOCS_TABLE_CELL_MARGIN','DocsTableInsertTableCommand','getTableRange','width','Column','setTableBackground','UniverDocsFacade','FDocumentTable','tableId','deleteColumns','trHeight','toStringTag','getMargin','39768EfskBz','getSource','object','insertRowsAfter','getSegmentId','getDocumentDataModel','max','TableRowHeightRule','segmentId','_mutateActions','function','default','buildResizeTableColumnActionsFromWidth','getCell','_getTables','insertTableFromData','DocsTableModel','selectRows','findTableByText','columnTypes','selectColumn','buildDistributeTableColumnsMutationActions','setCellBackground','headerText','buildUnmergeCellsMutationActions','buildInsertTableTitleRowMutationActions','buildSetTableBorderMutationActions','tableCells','buildResizeTableRowActionsFromHeight','setBackgroundColor','tableSource','FEnum','_document','Above','call','getColumnCount','moveRows','DocsTableSelectionService','toPrimitive','insertRowAfter','Cell','getId','@univerjs/core','getRowRange','selectRow','_getBodyPath','Below','selectCell','buildInsertTableRowsMutationActions','decorate','color','filter','getColumnRange','_column','_row','extend','findTables','getContentRange','documentStyle','_table','setColumnType','UniverProDocsTable','string','actions','getInfo','selectRange','insertRowsBefore','getHeaderRowCount','UniverProDocsTableFacade'];_0x26e2=function(){return _0x16e618;};return _0x26e2();}