@univerjs-pro/docs-table 1.0.4 → 1.2.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.
@@ -0,0 +1,3 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ import type { IRichTextEditingMutationParams } from '@univerjs/docs';
3
+ export declare const DocsTableApplyActionsCommand: ICommand<IRichTextEditingMutationParams>;
@@ -4,5 +4,7 @@ export interface IDocsTableResizeColumnCommandParams extends IDocsTableSegmentOp
4
4
  tableId?: string;
5
5
  column?: number;
6
6
  width: number;
7
+ /** Rendered grid widths before dragging, including preferred-width scaling. */
8
+ columnWidths?: number[];
7
9
  }
8
10
  export declare const DocsTableResizeColumnCommand: ICommand<IDocsTableResizeColumnCommandParams>;
@@ -1,6 +1,7 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableColumnTypeConfig, IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableSetColumnTypeCommandParams extends IDocsTableSegmentOptions {
4
+ unitId?: string;
4
5
  tableId?: string;
5
6
  column?: number;
6
7
  config: IDocsTableColumnTypeConfig;
@@ -17,7 +17,7 @@ export declare function getTableCommandRange(params?: Partial<IDocsTableCellRang
17
17
  export declare function getTableActionDocumentData(doc: DocumentDataModel, segmentId?: string): IDocumentData | null;
18
18
  export declare function buildMoveFloatingTableActions(previousDocumentData: IDocumentData, nextDocumentData: IDocumentData, tableId: string): JSONXActions | null;
19
19
  export declare function buildResizeTableColumnActions(previousDocumentData: IDocumentData, nextDocumentData: IDocumentData, tableId: string, column: number): JSONXActions | null;
20
- export declare function buildResizeTableColumnActionsFromWidth(documentData: IDocumentData, tableId: string, column: number, width: number): JSONXActions | null;
20
+ export declare function buildResizeTableColumnActionsFromWidth(documentData: IDocumentData, tableId: string, column: number, width: number, columnWidths?: number[]): JSONXActions | null;
21
21
  export declare function buildResizeTableRowActions(previousDocumentData: IDocumentData, nextDocumentData: IDocumentData, tableId: string, row: number): JSONXActions | null;
22
22
  export declare function buildMoveFloatingTableMutationActions(documentData: IDocumentData, tableId: string, deltaX: number, deltaY: number): JSONXActions | null;
23
23
  export declare function buildMoveTableToOffsetMutationActions(documentData: IDocumentData, tableId: string, requestedTargetOffset: number, bodyPath?: string[]): JSONXActions | null;
@@ -10,6 +10,7 @@ export interface ISetTableCellTextActionResult {
10
10
  nextDocumentData: IDocumentData;
11
11
  }
12
12
  export interface ITableTextReplacement {
13
+ valueRangeId?: string;
13
14
  endOffset: number;
14
15
  startOffset: number;
15
16
  text: string;
@@ -1,5 +1,22 @@
1
- import type { IDocsTableColumnTypeConfig, IDocsTableMetadataResource } from './type';
1
+ import type { IDocumentData, ITable, ITableCell, ITableRow, JSONXActions } from '@univerjs/core';
2
+ import type { IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableMetadataResource } from './type';
3
+ import { BooleanNumber } from '@univerjs/core';
2
4
  export declare function normalizeDocsTableMetadataResource(resource?: Partial<IDocsTableMetadataResource> | null): IDocsTableMetadataResource;
3
5
  export declare function setHeaderRowCountInMetadata(resource: Partial<IDocsTableMetadataResource> | undefined, tableId: string, headerRowCount: number): IDocsTableMetadataResource;
4
6
  export declare function setTitleRowInMetadata(resource: Partial<IDocsTableMetadataResource> | undefined, tableId: string, titleRow: boolean): IDocsTableMetadataResource;
5
7
  export declare function setColumnTypeInMetadata(resource: Partial<IDocsTableMetadataResource> | undefined, tableId: string, column: number, config: IDocsTableColumnTypeConfig): IDocsTableMetadataResource;
8
+ export interface IDocsTableSource extends ITable {
9
+ docsTableMetadataVersion?: 1;
10
+ }
11
+ export interface IDocsTableMetadataCell extends ITableCell {
12
+ docsTableCellId?: string;
13
+ }
14
+ export interface IDocsTableMetadataRow extends ITableRow {
15
+ docsTableTitleRow?: boolean;
16
+ docsTableLegacyTitleRow?: boolean;
17
+ docsTableLegacyHeaderRow?: BooleanNumber;
18
+ }
19
+ export declare function resolveDocsTableMetadata(table: ITable, legacy?: IDocsTableMetadata): IDocsTableMetadata;
20
+ export declare function resolveDocsTableMetadataResource(documentData: IDocumentData, legacy: IDocsTableMetadataResource): IDocsTableMetadataResource;
21
+ export declare function buildTableMetadataMigrationActions(table: ITable, legacy?: IDocsTableMetadata): JSONXActions | null;
22
+ export declare function buildSetTableColumnTypeActions(table: ITable, column: number, config: IDocsTableColumnTypeConfig, legacy?: IDocsTableMetadata): JSONXActions | null;
@@ -1,8 +1,9 @@
1
- import { Disposable, IResourceManagerService } from '@univerjs/core';
1
+ import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { DocsTableModel } from '../models/docs-table-model';
3
3
  export declare class DocsTableResourceController extends Disposable {
4
4
  private readonly _resourceManagerService;
5
5
  private readonly _docsTableModel;
6
- constructor(_resourceManagerService: IResourceManagerService, _docsTableModel: DocsTableModel);
6
+ private readonly _univerInstanceService;
7
+ constructor(_resourceManagerService: IResourceManagerService, _docsTableModel: DocsTableModel, _univerInstanceService: IUniverInstanceService);
7
8
  private _initResource;
8
9
  }
@@ -979,6 +979,7 @@ export declare class FDocumentTable {
979
979
  * ```
980
980
  */
981
981
  sortByColumn(column: number, direction: DocsTableSortDirection): boolean;
982
+ private _buildBorderActions;
982
983
  private _getDocumentData;
983
984
  private _serializeModel;
984
985
  private _getBodyPath;
@@ -1,3 +1,4 @@
1
+ import type { IDocumentData, ITable } from '@univerjs/core';
1
2
  import type { IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableMetadataResource } from '../common/type';
2
3
  import { Disposable } from '@univerjs/core';
3
4
  export declare class DocsTableModel extends Disposable {
@@ -8,6 +9,8 @@ export declare class DocsTableModel extends Disposable {
8
9
  tableId?: string;
9
10
  }>;
10
11
  getTableMetadata(unitId: string, tableId: string): IDocsTableMetadata | undefined;
12
+ resolveTableMetadata(unitId: string, table: ITable): IDocsTableMetadata;
13
+ serializeDocument(unitId: string, documentData: IDocumentData): IDocsTableMetadataResource;
11
14
  setHeaderRowCount(unitId: string, tableId: string, headerRowCount: number): void;
12
15
  setTitleRow(unitId: string, tableId: string, titleRow: boolean): void;
13
16
  setColumnType(unitId: string, tableId: string, column: number, config: IDocsTableColumnTypeConfig): void;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x38d93,_0x22c613){const _0x5b108f=_0x4df4,_0x164bf2=_0x38d93();while(!![]){try{const _0x3f5fe8=parseInt(_0x5b108f(0x231))/0x1*(-parseInt(_0x5b108f(0x190))/0x2)+parseInt(_0x5b108f(0x1f8))/0x3*(-parseInt(_0x5b108f(0x1ac))/0x4)+parseInt(_0x5b108f(0x1ae))/0x5*(-parseInt(_0x5b108f(0x187))/0x6)+parseInt(_0x5b108f(0x211))/0x7*(-parseInt(_0x5b108f(0x228))/0x8)+parseInt(_0x5b108f(0x16f))/0x9*(-parseInt(_0x5b108f(0x158))/0xa)+parseInt(_0x5b108f(0x1d2))/0xb+parseInt(_0x5b108f(0x192))/0xc*(parseInt(_0x5b108f(0x164))/0xd);if(_0x3f5fe8===_0x22c613)break;else _0x164bf2['push'](_0x164bf2['shift']());}catch(_0x30e0e2){_0x164bf2['push'](_0x164bf2['shift']());}}}(_0x4071,0xae27e),function(_0x1aa856,_0x250489){const _0x24737b=_0x4df4;typeof exports=='object'&&typeof module<'u'?_0x250489(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x24737b(0x1fb)&&define[_0x24737b(0x1b4)]?define([_0x24737b(0x1ad),_0x24737b(0x167),_0x24737b(0x1ed),'@univerjs/core/facade',_0x24737b(0x1fa)],_0x250489):(_0x1aa856=typeof globalThis<'u'?globalThis:_0x1aa856||self,_0x250489(_0x1aa856[_0x24737b(0x20f)]={},_0x1aa856[_0x24737b(0x198)],_0x1aa856[_0x24737b(0x16a)],_0x1aa856['UniverCoreFacade'],_0x1aa856[_0x24737b(0x1df)]));}(this,function(_0x2d6292,_0x5a9d6c,_0x37d77c,_0x37d7bc,_0x5cbc05){const _0xb522bb=_0x4df4;Object[_0xb522bb(0x1b6)](_0x2d6292,Symbol[_0xb522bb(0x159)],{'value':_0xb522bb(0x1f5)});var _0x475fff=class extends _0x37d7bc[_0xb522bb(0x22f)]{get['DocsTableInsertTablePosition'](){const _0x39cd69=_0xb522bb;return _0x5a9d6c[_0x39cd69(0x17f)];}get[_0xb522bb(0x20c)](){const _0x5e695e=_0xb522bb;return _0x5a9d6c[_0x5e695e(0x20c)];}get['DocsTableSelectionKind'](){const _0x3632f1=_0xb522bb;return _0x5a9d6c[_0x3632f1(0x225)];}get['DocsTableRowInsertPosition'](){const _0x32d35d=_0xb522bb;return _0x5a9d6c[_0x32d35d(0x202)];}get[_0xb522bb(0x1a6)](){const _0x2bfdb1=_0xb522bb;return _0x5a9d6c[_0x2bfdb1(0x1a6)];}get[_0xb522bb(0x233)](){const _0x460c31=_0xb522bb;return _0x5a9d6c[_0x460c31(0x233)];}get['DocsTableSortDirection'](){const _0x38beb0=_0xb522bb;return _0x5a9d6c[_0x38beb0(0x221)];}get['DashStyleType'](){const _0x5304ea=_0xb522bb;return _0x37d77c[_0x5304ea(0x1da)];}};_0x37d7bc[_0xb522bb(0x22f)][_0xb522bb(0x21a)](_0x475fff);var _0x20237e=class{constructor(_0x2f1180,_0x22aaf8,_0x1ced4e){const _0x2f3b0c=_0xb522bb;this[_0x2f3b0c(0x1d6)]=_0x2f1180,this['_row']=_0x22aaf8,this[_0x2f3b0c(0x16c)]=_0x1ced4e;}[_0xb522bb(0x1d7)](){const _0x3b13f7=_0xb522bb;return this[_0x3b13f7(0x1d6)];}[_0xb522bb(0x17e)](){const _0x42628a=_0xb522bb;return this[_0x42628a(0x1c7)];}[_0xb522bb(0x15c)](){const _0x99e272=_0xb522bb;return this[_0x99e272(0x16c)];}[_0xb522bb(0x188)](){const _0x1a6e3b=_0xb522bb;return this[_0x1a6e3b(0x1d6)]['getCellText'](this[_0x1a6e3b(0x1c7)],this[_0x1a6e3b(0x16c)]);}['getContentRange'](){const _0x10e42f=_0xb522bb;return this[_0x10e42f(0x1d6)][_0x10e42f(0x156)](this[_0x10e42f(0x1c7)],this['_column']);}[_0xb522bb(0x22d)](){const _0x4246ad=_0xb522bb;return this['_table']['getCellInsertOffset'](this[_0x4246ad(0x1c7)],this[_0x4246ad(0x16c)]);}[_0xb522bb(0x21b)](){const _0x17e942=_0xb522bb;return this[_0x17e942(0x1d6)]['getCellMargin'](this[_0x17e942(0x1c7)],this['_column']);}[_0xb522bb(0x1e2)](){const _0x4b198a=_0xb522bb;return this[_0x4b198a(0x1d6)][_0x4b198a(0x166)](this[_0x4b198a(0x1c7)],this[_0x4b198a(0x16c)]);}[_0xb522bb(0x19d)](_0x517027){const _0x2f024d=_0xb522bb;return this[_0x2f024d(0x1d6)][_0x2f024d(0x1dc)](this[_0x2f024d(0x1d6)][_0x2f024d(0x1e4)](this[_0x2f024d(0x1c7)],this[_0x2f024d(0x16c)]),_0x517027);}[_0xb522bb(0x1de)](){const _0x14d367=_0xb522bb;return this[_0x14d367(0x1d6)][_0x14d367(0x1dc)](this[_0x14d367(0x1d6)]['getCellRange'](this[_0x14d367(0x1c7)],this[_0x14d367(0x16c)]),null);}[_0xb522bb(0x18d)](_0x292b9e){const _0x417215=_0xb522bb;return this[_0x417215(0x1d6)][_0x417215(0x17c)](this['_row'],this[_0x417215(0x16c)],_0x292b9e);}['setBackgroundColor'](_0x35e961){const _0x528f9e=_0xb522bb;return this[_0x528f9e(0x1d6)][_0x528f9e(0x15f)](this['_table']['getCellRange'](this[_0x528f9e(0x1c7)],this[_0x528f9e(0x16c)]),_0x35e961);}['setBorder'](_0x5cadd9){const _0x5d3094=_0xb522bb;return this[_0x5d3094(0x1d6)][_0x5d3094(0x16e)](this[_0x5d3094(0x1d6)][_0x5d3094(0x1e4)](this[_0x5d3094(0x1c7)],this['_column']),_0x5cadd9);}[_0xb522bb(0x1d8)](_0xde87ba,_0x6221e1){const _0x52d984=_0xb522bb;return this[_0x52d984(0x1d6)]['mergeCells']({'startRow':this[_0x52d984(0x1c7)],'startColumn':this[_0x52d984(0x16c)],'endRow':this[_0x52d984(0x1c7)]+_0xde87ba-0x1,'endColumn':this[_0x52d984(0x16c)]+_0x6221e1-0x1});}[_0xb522bb(0x19c)](){const _0x3a27e5=_0xb522bb;return this[_0x3a27e5(0x1d6)]['unmergeCells'](this[_0x3a27e5(0x1d6)]['getCellRange'](this[_0x3a27e5(0x1c7)],this[_0x3a27e5(0x16c)]));}};function _0x3e1cb9(_0x4ec1e0){'@babel/helpers - typeof';const _0x1427f5=_0xb522bb;return _0x3e1cb9=typeof Symbol==_0x1427f5(0x1fb)&&typeof Symbol['iterator']==_0x1427f5(0x22a)?function(_0x5ddc57){return typeof _0x5ddc57;}:function(_0x3cd1a3){const _0x12cdfc=_0x1427f5;return _0x3cd1a3&&typeof Symbol==_0x12cdfc(0x1fb)&&_0x3cd1a3[_0x12cdfc(0x1ab)]===Symbol&&_0x3cd1a3!==Symbol[_0x12cdfc(0x217)]?_0x12cdfc(0x22a):typeof _0x3cd1a3;},_0x3e1cb9(_0x4ec1e0);}function _0x4d355f(_0x53b221,_0x5445ef){const _0x5e2ab4=_0xb522bb;if(_0x3e1cb9(_0x53b221)!=_0x5e2ab4(0x1f0)||!_0x53b221)return _0x53b221;var _0x273473=_0x53b221[Symbol['toPrimitive']];if(_0x273473!==void 0x0){var _0x412dab=_0x273473['call'](_0x53b221,_0x5445ef||_0x5e2ab4(0x1ef));if(_0x3e1cb9(_0x412dab)!=_0x5e2ab4(0x1f0))return _0x412dab;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5445ef===_0x5e2ab4(0x1a8)?String:Number)(_0x53b221);}function _0x135635(_0x17f69a){const _0x3dad4a=_0xb522bb;var _0x1b013c=_0x4d355f(_0x17f69a,_0x3dad4a(0x1a8));return _0x3e1cb9(_0x1b013c)=='symbol'?_0x1b013c:_0x1b013c+'';}function _0x8c59e2(_0x22daa7,_0x15163,_0x5f26ae){const _0x3b8027=_0xb522bb;return(_0x15163=_0x135635(_0x15163))in _0x22daa7?Object[_0x3b8027(0x1b6)](_0x22daa7,_0x15163,{'value':_0x5f26ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22daa7[_0x15163]=_0x5f26ae,_0x22daa7;}function _0x452347(_0x2f0cea,_0x4e8feb){return function(_0x5d4d6d,_0x18fd61){_0x4e8feb(_0x5d4d6d,_0x18fd61,_0x2f0cea);};}function _0x406307(_0x35d517,_0x4c7505,_0x4978a3,_0x581736){const _0x3b0627=_0xb522bb;var _0x247f9d=arguments[_0x3b0627(0x1cf)],_0x2af62e=_0x247f9d<0x3?_0x4c7505:_0x581736===null?_0x581736=Object[_0x3b0627(0x1ea)](_0x4c7505,_0x4978a3):_0x581736,_0x34acb2;if(typeof Reflect=='object'&&typeof Reflect[_0x3b0627(0x205)]=='function')_0x2af62e=Reflect[_0x3b0627(0x205)](_0x35d517,_0x4c7505,_0x4978a3,_0x581736);else{for(var _0x5977a4=_0x35d517[_0x3b0627(0x1cf)]-0x1;_0x5977a4>=0x0;_0x5977a4--)(_0x34acb2=_0x35d517[_0x5977a4])&&(_0x2af62e=(_0x247f9d<0x3?_0x34acb2(_0x2af62e):_0x247f9d>0x3?_0x34acb2(_0x4c7505,_0x4978a3,_0x2af62e):_0x34acb2(_0x4c7505,_0x4978a3))||_0x2af62e);}return _0x247f9d>0x3&&_0x2af62e&&Object[_0x3b0627(0x1b6)](_0x4c7505,_0x4978a3,_0x2af62e),_0x2af62e;}let _0x1a09fd=class{constructor(_0x4a9e34,_0x5e2698,_0x546851,_0x3bcf74,_0x3001bb){const _0x3abb0f=_0xb522bb;this[_0x3abb0f(0x1e3)]=_0x4a9e34,this[_0x3abb0f(0x18e)]=_0x5e2698,this[_0x3abb0f(0x1a7)]=_0x546851,this[_0x3abb0f(0x17b)]=_0x3bcf74,this[_0x3abb0f(0x222)]=_0x3001bb,_0x8c59e2(this,_0x3abb0f(0x185),void 0x0),this[_0x3abb0f(0x185)]=this['_document'][_0x3abb0f(0x21c)]();}[_0xb522bb(0x21c)](){return this['_tableId'];}['getSegmentId'](){const _0x4582d7=_0xb522bb;return this[_0x4582d7(0x1a7)];}[_0xb522bb(0x207)](){const _0x2fff15=_0xb522bb;return{'id':this[_0x2fff15(0x18e)],'rowCount':this['getRowCount'](),'columnCount':this[_0x2fff15(0x1dd)](),'metadata':this[_0x2fff15(0x160)](),'source':this['getSource']()};}['describe'](){const _0x11b85e=_0xb522bb;let _0x161fb1=this[_0x11b85e(0x160)](),_0x2f73cc=this[_0x11b85e(0x1ee)](),_0x46e4d0=this[_0x11b85e(0x1dd)]();return{'id':this[_0x11b85e(0x18e)],'rowCount':this[_0x11b85e(0x186)](),'columnCount':_0x46e4d0,'headerRowCount':(_0x161fb1==null?void 0x0:_0x161fb1[_0x11b85e(0x1e9)])??0x0,'titleRow':(_0x161fb1==null?void 0x0:_0x161fb1['titleRow'])??!0x1,'columns':Array[_0x11b85e(0x1c4)]({'length':_0x46e4d0},(_0x1ccd52,_0x35fdf9)=>{const _0x3ecfd4=_0x11b85e;var _0x439fd6,_0x1f4326;return{'index':_0x35fdf9,'type':_0x161fb1==null||(_0x439fd6=_0x161fb1[_0x3ecfd4(0x196)])==null||(_0x439fd6=_0x439fd6[_0x35fdf9])==null?void 0x0:_0x439fd6[_0x3ecfd4(0x210)],'width':_0x2f73cc==null||(_0x1f4326=_0x2f73cc[_0x3ecfd4(0x1f6)][_0x35fdf9])==null?void 0x0:_0x1f4326['size'][_0x3ecfd4(0x226)]['v']};}),'sampleRows':Array[_0x11b85e(0x1c4)]({'length':this[_0x11b85e(0x186)]()},(_0x3ec503,_0x5448f1)=>Array[_0x11b85e(0x1c4)]({'length':_0x46e4d0},(_0x188c00,_0x576da0)=>this[_0x11b85e(0x1a1)](_0x5448f1,_0x576da0)))['filter'](_0xe5bc2f=>_0xe5bc2f[_0x11b85e(0x1f2)](_0x1ab2bd=>_0x1ab2bd[_0x11b85e(0x1cf)]>0x0))[_0x11b85e(0x1a9)](0x0,0x5)};}[_0xb522bb(0x186)](){const _0x34ffb1=_0xb522bb;var _0x3fda3a;return((_0x3fda3a=this['getSource']())==null?void 0x0:_0x3fda3a['tableRows'][_0x34ffb1(0x1cf)])??0x0;}[_0xb522bb(0x1dd)](){const _0x4fe309=_0xb522bb;var _0x21e8e8;return((_0x21e8e8=this[_0x4fe309(0x1ee)]())==null?void 0x0:_0x21e8e8[_0x4fe309(0x1f6)][_0x4fe309(0x1cf)])??0x0;}[_0xb522bb(0x154)](_0x2573f9,_0x56019c){const _0x3b8718=_0xb522bb;var _0x4be3a3;return(_0x4be3a3=this[_0x3b8718(0x1ee)]())!=null&&(_0x4be3a3=_0x4be3a3[_0x3b8718(0x1c1)][_0x2573f9])!=null&&_0x4be3a3[_0x3b8718(0x20d)][_0x56019c]?this[_0x3b8718(0x222)][_0x3b8718(0x1d5)](_0x20237e,this,_0x2573f9,_0x56019c):null;}[_0xb522bb(0x1a1)](_0x5f19f2,_0x5aadd9){const _0x16a23f=_0xb522bb;var _0x152005,_0x36d2a4;let _0x2ed17b=(_0x152005=(0x0,_0x5a9d6c['getTableRangeById'])(this[_0x16a23f(0x1fc)](),this[_0x16a23f(0x18e)]))==null||(_0x152005=_0x152005['rows'][_0x5f19f2])==null?void 0x0:_0x152005[_0x16a23f(0x153)][_0x5aadd9];return _0x2ed17b?((_0x36d2a4=this[_0x16a23f(0x1fc)]()[_0x16a23f(0x1f3)])==null?void 0x0:_0x36d2a4[_0x16a23f(0x20b)][_0x16a23f(0x1a9)](_0x2ed17b[_0x16a23f(0x21e)]+0x1,_0x2ed17b[_0x16a23f(0x183)])['replace'](/\r\n$/,''))??'':'';}['getCellMargin'](_0x106c4b,_0x30806d){const _0x182d53=_0xb522bb;var _0x16a579;let _0x547196=this[_0x182d53(0x1ee)](),_0x374322=_0x547196==null||(_0x16a579=_0x547196[_0x182d53(0x1c1)][_0x106c4b])==null?void 0x0:_0x16a579[_0x182d53(0x20d)][_0x30806d];return _0x374322?_0x37d77c[_0x182d53(0x1a0)][_0x182d53(0x18b)](_0x374322['margin']??_0x547196[_0x182d53(0x22e)]??_0x5a9d6c['DEFAULT_DOCS_TABLE_CELL_MARGIN']):null;}[_0xb522bb(0x166)](_0x1f8497,_0x41c448){const _0x7535=_0xb522bb;var _0x4e01e4;let _0x2011b4=(_0x4e01e4=this[_0x7535(0x1ee)]())==null||(_0x4e01e4=_0x4e01e4[_0x7535(0x1c1)][_0x1f8497])==null?void 0x0:_0x4e01e4[_0x7535(0x20d)][_0x41c448];return _0x2011b4!=null&&_0x2011b4['margin']?_0x37d77c[_0x7535(0x1a0)][_0x7535(0x18b)](_0x2011b4[_0x7535(0x174)]):null;}[_0xb522bb(0x15b)](){const _0x3a4313=_0xb522bb;var _0x14449c;return _0x37d77c[_0x3a4313(0x1a0)][_0x3a4313(0x18b)](((_0x14449c=this['getSource']())==null?void 0x0:_0x14449c[_0x3a4313(0x22e)])??_0x5a9d6c[_0x3a4313(0x189)]);}[_0xb522bb(0x182)](){const _0x401d43=_0xb522bb;var _0x321fd4;let _0x106463=(_0x321fd4=this['getSource']())==null?void 0x0:_0x321fd4[_0x401d43(0x22e)];return _0x106463?_0x37d77c['Tools']['deepClone'](_0x106463):null;}[_0xb522bb(0x160)](){const _0x5349e2=_0xb522bb;return this[_0x5349e2(0x222)][_0x5349e2(0x1b8)](_0x5a9d6c['DocsTableModel'])[_0x5349e2(0x1cc)](this[_0x5349e2(0x185)],this[_0x5349e2(0x18e)]);}['getSource'](){const _0x30744d=_0xb522bb;var _0x1e3c27;return(_0x1e3c27=this[_0x30744d(0x1fc)]()['tableSource'])==null?void 0x0:_0x1e3c27[this[_0x30744d(0x18e)]];}[_0xb522bb(0x1c8)](){const _0x24f242=_0xb522bb;return(0x0,_0x5a9d6c['getTableRangeById'])(this[_0x24f242(0x1fc)](),this['_tableId']);}[_0xb522bb(0x178)](){const _0x2f04d4=_0xb522bb;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x2f04d4(0x186)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x2f04d4(0x224)](0x0,this['getColumnCount']()-0x1)};}[_0xb522bb(0x1e4)](_0x28340f,_0x54486e){return{'startRow':_0x28340f,'endRow':_0x28340f,'startColumn':_0x54486e,'endColumn':_0x54486e};}[_0xb522bb(0x156)](_0x48bad0,_0x221ddb){const _0x5379b0=_0xb522bb;var _0x45b567;let _0xae5a8=(_0x45b567=(0x0,_0x5a9d6c[_0x5379b0(0x1d3)])(this[_0x5379b0(0x1fc)](),this[_0x5379b0(0x18e)]))==null||(_0x45b567=_0x45b567['rows'][_0x48bad0])==null?void 0x0:_0x45b567[_0x5379b0(0x153)][_0x221ddb];if(!_0xae5a8)return null;let _0x13d722=_0xae5a8['startOffset']+0x1;return{'startOffset':_0x13d722,'endOffset':Math[_0x5379b0(0x224)](_0x13d722,_0xae5a8[_0x5379b0(0x183)]-0x1),'segmentId':this['_segmentId']};}[_0xb522bb(0x1ca)](_0x3e9d1b,_0x30e017){const _0x1442a4=_0xb522bb;let _0x1de544=this[_0x1442a4(0x156)](_0x3e9d1b,_0x30e017);return _0x1de544?Math[_0x1442a4(0x224)](_0x1de544['startOffset'],_0x1de544[_0x1442a4(0x183)]-0x1):null;}[_0xb522bb(0x1bd)](_0x33aa68){const _0xb410d0=_0xb522bb;return this[_0xb410d0(0x15a)](_0x33aa68,0x1);}[_0xb522bb(0x15a)](_0x483c80,_0x3a2244=0x1){const _0xe03cf1=_0xb522bb;return{'startRow':_0x483c80,'endRow':_0x483c80+_0x3a2244-0x1,'startColumn':0x0,'endColumn':Math[_0xe03cf1(0x224)](0x0,this[_0xe03cf1(0x1dd)]()-0x1)};}[_0xb522bb(0x1cd)](_0x20c3da){const _0x102bd9=_0xb522bb;return this[_0x102bd9(0x1e1)](_0x20c3da,0x1);}[_0xb522bb(0x1e1)](_0x546788,_0x3487b4=0x1){const _0x8a8237=_0xb522bb;return{'startRow':0x0,'endRow':Math[_0x8a8237(0x224)](0x0,this['getRowCount']()-0x1),'startColumn':_0x546788,'endColumn':_0x546788+_0x3487b4-0x1};}[_0xb522bb(0x229)](){const _0x7bd02=_0xb522bb;return this['selectRange'](this['getTableRange'](),_0x5a9d6c[_0x7bd02(0x225)][_0x7bd02(0x16b)]);}['selectRow'](_0x33dc6d){const _0x1a09f7=_0xb522bb;return this[_0x1a09f7(0x227)](_0x33dc6d,0x1);}['selectRows'](_0xee788c,_0xf90ed0=0x1){const _0x151553=_0xb522bb;return this['selectRange'](this[_0x151553(0x15a)](_0xee788c,_0xf90ed0),_0x5a9d6c[_0x151553(0x225)][_0x151553(0x201)]);}[_0xb522bb(0x232)](_0x23b4f3){const _0x172954=_0xb522bb;return this[_0x172954(0x15d)](_0x23b4f3,0x1);}[_0xb522bb(0x15d)](_0x44b980,_0x241440=0x1){const _0xe16c29=_0xb522bb;return this[_0xe16c29(0x1f9)](this[_0xe16c29(0x1e1)](_0x44b980,_0x241440),_0x5a9d6c[_0xe16c29(0x225)][_0xe16c29(0x1c9)]);}['selectCell'](_0x157f34,_0xe14e06){const _0x35bed0=_0xb522bb;return this[_0x35bed0(0x1f9)](this[_0x35bed0(0x1e4)](_0x157f34,_0xe14e06),_0x5a9d6c['DocsTableSelectionKind'][_0x35bed0(0x21d)]);}[_0xb522bb(0x1f9)](_0xce8421,_0x452f4e=_0x5a9d6c[_0xb522bb(0x225)]['Range']){const _0x3e7937=_0xb522bb;return this[_0x3e7937(0x222)][_0x3e7937(0x1b8)](_0x5a9d6c[_0x3e7937(0x173)])[_0x3e7937(0x203)]({..._0xce8421,'kind':_0x452f4e,'segmentId':this['_segmentId'],'tableId':this[_0x3e7937(0x18e)]}),!0x0;}['insertRowBefore'](_0x43c3cf){return this['insertRowsBefore'](_0x43c3cf,0x1);}['insertRowAfter'](_0x29d75b){const _0x234ed7=_0xb522bb;return this[_0x234ed7(0x1fe)](_0x29d75b,0x1);}[_0xb522bb(0x1b7)](_0x48a2a8,_0x41844b){const _0x2c4be5=_0xb522bb;let _0x3f316b=this['_getDocumentData'](),_0x263de7=(0x0,_0x5a9d6c[_0x2c4be5(0x1f7)])(_0x3f316b,this[_0x2c4be5(0x18e)],_0x48a2a8,_0x41844b,_0x5a9d6c[_0x2c4be5(0x1aa)][_0x2c4be5(0x171)],this['_getBodyPath']());return _0x263de7?this[_0x2c4be5(0x170)](_0x3f316b,_0x263de7[_0x2c4be5(0x1a4)]):!0x1;}[_0xb522bb(0x1fe)](_0x429f40,_0x45f1bc){const _0x24f76d=_0xb522bb;let _0xcf8502=this[_0x24f76d(0x1fc)](),_0x4fafe9=(0x0,_0x5a9d6c[_0x24f76d(0x1f7)])(_0xcf8502,this['_tableId'],_0x429f40,_0x45f1bc,_0x5a9d6c['DocsTableInsertPosition'][_0x24f76d(0x17d)],this[_0x24f76d(0x22b)]());return _0x4fafe9?this[_0x24f76d(0x170)](_0xcf8502,_0x4fafe9['actions']):!0x1;}[_0xb522bb(0x1db)](){const _0x1f274d=_0xb522bb;return this[_0x1f274d(0x1fe)](Math['max'](0x0,this['getRowCount']()-0x1),0x1);}[_0xb522bb(0x1c3)](_0x57afb0){return this['insertColumnsBefore'](_0x57afb0,0x1);}[_0xb522bb(0x200)](_0x3391bc){return this['insertColumnsAfter'](_0x3391bc,0x1);}[_0xb522bb(0x218)](_0x562d9c,_0xa99809){const _0xdc4abd=_0xb522bb;let _0x229040=this[_0xdc4abd(0x1fc)](),_0x8e8d6f=(0x0,_0x5a9d6c[_0xdc4abd(0x1ba)])(_0x229040,this[_0xdc4abd(0x18e)],_0x562d9c,_0xa99809,_0x5a9d6c[_0xdc4abd(0x1aa)]['Left'],{'bodyPath':this[_0xdc4abd(0x22b)]()});return _0x8e8d6f?this[_0xdc4abd(0x170)](_0x229040,_0x8e8d6f[_0xdc4abd(0x1a4)]):!0x1;}['insertColumnsAfter'](_0x26d857,_0x4aab80){const _0x3d6b9f=_0xb522bb;let _0x58f019=this['_getDocumentData'](),_0xb5c819=(0x0,_0x5a9d6c[_0x3d6b9f(0x1ba)])(_0x58f019,this[_0x3d6b9f(0x18e)],_0x26d857,_0x4aab80,_0x5a9d6c[_0x3d6b9f(0x1aa)][_0x3d6b9f(0x17a)],{'bodyPath':this[_0x3d6b9f(0x22b)]()});return _0xb5c819?this['_mutateActions'](_0x58f019,_0xb5c819[_0x3d6b9f(0x1a4)]):!0x1;}[_0xb522bb(0x1b5)](){const _0x1808e1=_0xb522bb;return this[_0x1808e1(0x1f1)](Math['max'](0x0,this[_0x1808e1(0x1dd)]()-0x1),0x1);}[_0xb522bb(0x1ce)](_0x4150d5){const _0x2d0fb0=_0xb522bb;return this[_0x2d0fb0(0x1a3)](_0x4150d5,0x1);}['deleteRows'](_0x51e848,_0xe75159=0x1){const _0x5ef52f=_0xb522bb;return!!this[_0x5ef52f(0x17b)][_0x5ef52f(0x1e8)](_0x5a9d6c[_0x5ef52f(0x1b3)]['id'],{'endRow':_0x51e848+_0xe75159-0x1,'segmentId':this['_segmentId'],'startRow':_0x51e848,'tableId':this['_tableId'],'unitId':this['_unitId']});}[_0xb522bb(0x180)](_0x348620){const _0x4fd98b=_0xb522bb;return this[_0x4fd98b(0x1cb)](_0x348620,0x1);}[_0xb522bb(0x1cb)](_0x3aa9cf,_0x20eb29=0x1){const _0x45492e=_0xb522bb;return!!this['_commandService'][_0x45492e(0x1e8)](_0x5a9d6c['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x3aa9cf+_0x20eb29-0x1,'segmentId':this[_0x45492e(0x1a7)],'startColumn':_0x3aa9cf,'tableId':this[_0x45492e(0x18e)],'unitId':this['_unitId']});}[_0xb522bb(0x18c)](){const _0x18bd7c=_0xb522bb;return!!this[_0x18bd7c(0x17b)][_0x18bd7c(0x1e8)](_0x5a9d6c[_0x18bd7c(0x1d0)]['id'],{'segmentId':this[_0x18bd7c(0x1a7)],'tableId':this[_0x18bd7c(0x18e)],'unitId':this[_0x18bd7c(0x185)]});}[_0xb522bb(0x1c2)](_0x391b96,_0x1de166){const _0x415a65=_0xb522bb;let _0x3dd60d=this[_0x415a65(0x1fc)]();return this[_0x415a65(0x170)](_0x3dd60d,(0x0,_0x5a9d6c[_0x415a65(0x208)])(_0x3dd60d,this[_0x415a65(0x18e)],_0x391b96,_0x1de166));}['moveTableToOffset'](_0x581573){const _0x560c4a=_0xb522bb;let _0x52391d=this[_0x560c4a(0x1fc)]();return this[_0x560c4a(0x170)](_0x52391d,(0x0,_0x5a9d6c[_0x560c4a(0x1eb)])(_0x52391d,this[_0x560c4a(0x18e)],_0x581573,this[_0x560c4a(0x22b)]()));}['moveRow'](_0x56698f,_0x51d468,_0x1648f5=_0x5a9d6c[_0xb522bb(0x1aa)][_0xb522bb(0x171)]){const _0x8e5769=_0xb522bb;return this[_0x8e5769(0x1bc)](_0x56698f,0x1,_0x51d468,_0x1648f5);}[_0xb522bb(0x1bc)](_0x5da8f7,_0x408218,_0x58a498,_0x473046=_0x5a9d6c[_0xb522bb(0x1aa)][_0xb522bb(0x171)]){const _0x197e1a=_0xb522bb;let _0x4630eb=this[_0x197e1a(0x1fc)](),_0x4cd200=(0x0,_0x5a9d6c['buildMoveTableRowsMutationActions'])(_0x4630eb,this[_0x197e1a(0x18e)],_0x5da8f7,_0x58a498,_0x408218,_0x473046,this['_getBodyPath']());return _0x4cd200?this[_0x197e1a(0x170)](_0x4630eb,_0x4cd200[_0x197e1a(0x1a4)]):!0x1;}[_0xb522bb(0x1c0)](_0xcd4208,_0x33f09e,_0x3d1222=_0x5a9d6c[_0xb522bb(0x1aa)]['Left']){const _0x2a1ad7=_0xb522bb;return this[_0x2a1ad7(0x19a)](_0xcd4208,0x1,_0x33f09e,_0x3d1222);}[_0xb522bb(0x19a)](_0x305516,_0x2d82a1,_0x3ab003,_0x20ee47=_0x5a9d6c['DocsTableInsertPosition'][_0xb522bb(0x1e5)]){const _0x189f31=_0xb522bb;let _0x5dfc3=this[_0x189f31(0x1fc)](),_0x2a2193=(0x0,_0x5a9d6c[_0x189f31(0x1ff)])(_0x5dfc3,this['_tableId'],_0x305516,_0x3ab003,_0x2d82a1,_0x20ee47,this[_0x189f31(0x22b)]());return _0x2a2193?this[_0x189f31(0x170)](_0x5dfc3,_0x2a2193[_0x189f31(0x1a4)]):!0x1;}['mergeCells'](_0x122374){const _0x5658dc=_0xb522bb;try{let _0x4c1d69=this[_0x5658dc(0x1fc)](),_0x4735b1=(0x0,_0x5a9d6c[_0x5658dc(0x181)])({'documentData':_0x4c1d69,'tableId':this['_tableId'],..._0x122374});return _0x4735b1?this[_0x5658dc(0x170)](_0x4c1d69,_0x4735b1[_0x5658dc(0x1a4)],_0x122374):!0x1;}catch{return!0x1;}}[_0xb522bb(0x161)](_0x311749){const _0x1d8498=_0xb522bb;try{let _0x27a305=this[_0x1d8498(0x1fc)](),_0x16e3ca=(0x0,_0x5a9d6c[_0x1d8498(0x168)])({'documentData':_0x27a305,'tableId':this[_0x1d8498(0x18e)],..._0x311749});return _0x16e3ca?this[_0x1d8498(0x170)](_0x27a305,_0x16e3ca['actions'],_0x311749):!0x1;}catch{return!0x1;}}['setCellText'](_0x173f2a,_0x5b4cb3,_0x22f3e9){const _0x539c30=_0xb522bb;let _0xd43004=this['_getDocumentData'](),_0x5ac4fb=(0x0,_0x5a9d6c['getTableActionBodyPath'])(this[_0x539c30(0x1e3)][_0x539c30(0x18f)]()['getSnapshot'](),this[_0x539c30(0x1a7)]);return this['_mutateActions'](_0xd43004,(0x0,_0x5a9d6c[_0x539c30(0x1a5)])({'documentData':_0xd43004,'tableId':this[_0x539c30(0x18e)],'row':_0x173f2a,'column':_0x5b4cb3,'text':_0x22f3e9},_0x5ac4fb),this['getCellRange'](_0x173f2a,_0x5b4cb3));}['setCellBackground'](_0xf0c831,_0x32263b){const _0x2acf97=_0xb522bb;let _0x59acc7=this[_0x2acf97(0x1fc)]();return this[_0x2acf97(0x170)](_0x59acc7,(0x0,_0x5a9d6c[_0x2acf97(0x1e7)])(_0x59acc7,{'tableId':this[_0x2acf97(0x18e)],..._0xf0c831,'value':_0x32263b}),_0xf0c831);}[_0xb522bb(0x1dc)](_0x5bd960,_0x1f1d54){const _0x30cc6c=_0xb522bb;let _0x13e9c1=this[_0x30cc6c(0x1fc)]();return this[_0x30cc6c(0x170)](_0x13e9c1,(0x0,_0x5a9d6c[_0x30cc6c(0x163)])({'documentData':_0x13e9c1,'tableId':this[_0x30cc6c(0x18e)],..._0x5bd960,'margin':_0x1f1d54}),_0x5bd960);}[_0xb522bb(0x157)](_0x1b5b75){const _0x178dc6=_0xb522bb;let _0x184f4f=this['_getDocumentData']();return this['_mutateActions'](_0x184f4f,(0x0,_0x5a9d6c['buildSetTableDefaultCellMarginMutationActions'])(_0x184f4f,this[_0x178dc6(0x18e)],_0x1b5b75));}['setBorder'](_0xb5ecaa,_0x445ff8){const _0x4b8242=_0xb522bb;let _0x27ecf9=this['_getDocumentData']();return this[_0x4b8242(0x170)](_0x27ecf9,(0x0,_0x5a9d6c[_0x4b8242(0x199)])({'documentData':_0x27ecf9,'tableId':this[_0x4b8242(0x18e)],..._0xb5ecaa,'preset':_0x445ff8[_0x4b8242(0x1b9)]??_0x5a9d6c[_0x4b8242(0x233)]['All'],'border':_0x445ff8[_0x4b8242(0x20e)]??{'color':{'rgb':_0x445ff8['color']??_0x4b8242(0x176)},'width':{'v':_0x445ff8['width']??0x1},'dashStyle':_0x37d77c[_0x4b8242(0x1da)]['SOLID']}}),_0xb5ecaa);}[_0xb522bb(0x1af)](_0x3f8a0a){const _0x45aead=_0xb522bb;return this[_0x45aead(0x15f)](this[_0x45aead(0x178)](),_0x3f8a0a);}[_0xb522bb(0x175)](_0x4bc810){const _0x2f6009=_0xb522bb;return this[_0x2f6009(0x16e)](this[_0x2f6009(0x178)](),_0x4bc810);}[_0xb522bb(0x197)](_0x4a1fe7){const _0x2ad967=_0xb522bb;let _0x9102a7=!_0x4a1fe7[_0x2ad967(0x204)]||this[_0x2ad967(0x1af)](_0x4a1fe7['backgroundColor']),_0x724c79=!_0x4a1fe7[_0x2ad967(0x20e)]||this[_0x2ad967(0x175)](_0x4a1fe7[_0x2ad967(0x20e)]);return _0x9102a7&&_0x724c79;}[_0xb522bb(0x214)](_0x5ef3c7,_0x50cda2,_0x1f4eb9=_0x37d77c[_0xb522bb(0x19b)][_0xb522bb(0x184)]){const _0x3f35d6=_0xb522bb;var _0x592958;let _0x2a53ef=this[_0x3f35d6(0x1fc)]();return(_0x592958=_0x2a53ef['tableSource'])!=null&&(_0x592958=_0x592958[this[_0x3f35d6(0x18e)]])!=null&&_0x592958[_0x3f35d6(0x1c1)][_0x5ef3c7]?this[_0x3f35d6(0x170)](_0x2a53ef,(0x0,_0x5a9d6c[_0x3f35d6(0x194)])(_0x2a53ef,this[_0x3f35d6(0x18e)],_0x5ef3c7,_0x50cda2,_0x1f4eb9)):!0x1;}['getRowHeight'](_0x141f10){const _0x3e25a2=_0xb522bb;var _0x25986;let _0x305aec=(_0x25986=this[_0x3e25a2(0x1ee)]())==null||(_0x25986=_0x25986['tableRows'][_0x141f10])==null?void 0x0:_0x25986[_0x3e25a2(0x155)];return _0x305aec?_0x37d77c[_0x3e25a2(0x1a0)]['deepClone'](_0x305aec):null;}['setColumnWidth'](_0x461fcc,_0x348413){const _0x222154=_0xb522bb;var _0x21175e;let _0x2e8418=this[_0x222154(0x1fc)]();return(_0x21175e=_0x2e8418[_0x222154(0x1d9)])!=null&&(_0x21175e=_0x21175e[this[_0x222154(0x18e)]])!=null&&_0x21175e[_0x222154(0x1f6)][_0x461fcc]?this['_mutateActions'](_0x2e8418,(0x0,_0x5a9d6c['buildResizeTableColumnActionsFromWidth'])(_0x2e8418,this['_tableId'],_0x461fcc,_0x348413)):!0x1;}['distributeRows'](_0x47b09b=0x0,_0x11b82d=this[_0xb522bb(0x186)]()){const _0x3e42bb=_0xb522bb;let _0x4c88aa=this[_0x3e42bb(0x1fc)]();return this[_0x3e42bb(0x170)](_0x4c88aa,(0x0,_0x5a9d6c[_0x3e42bb(0x21f)])(_0x4c88aa,this[_0x3e42bb(0x18e)],_0x47b09b,_0x47b09b+_0x11b82d-0x1));}[_0xb522bb(0x1e6)](_0x73e33f=0x0,_0x575238=this['getColumnCount']()){const _0x256e79=_0xb522bb;let _0x563bcd=this[_0x256e79(0x1fc)]();return this[_0x256e79(0x170)](_0x563bcd,(0x0,_0x5a9d6c[_0x256e79(0x19f)])(_0x563bcd,this[_0x256e79(0x18e)],_0x73e33f,_0x73e33f+_0x575238-0x1));}[_0xb522bb(0x213)](){const _0x36d731=_0xb522bb;var _0x182e53;return((_0x182e53=this[_0x36d731(0x160)]())==null?void 0x0:_0x182e53[_0x36d731(0x1e9)])??0x0;}['setHeaderRowCount'](_0x50ba23){const _0xcf5b8d=_0xb522bb;let _0x111d2e=this[_0xcf5b8d(0x222)]['get'](_0x5a9d6c[_0xcf5b8d(0x195)]),_0x3cbf92=this[_0xcf5b8d(0x1fc)](),_0x49eddc=(0x0,_0x5a9d6c[_0xcf5b8d(0x1b2)])(_0x3cbf92,this[_0xcf5b8d(0x18e)],_0x50ba23);if(!_0x49eddc)return!0x1;let _0x341e5b=this[_0xcf5b8d(0x170)](_0x3cbf92,_0x49eddc[_0xcf5b8d(0x1a4)]);return _0x341e5b&&_0x111d2e[_0xcf5b8d(0x1bf)](this[_0xcf5b8d(0x185)],this[_0xcf5b8d(0x18e)],_0x49eddc[_0xcf5b8d(0x1e9)]),_0x341e5b;}[_0xb522bb(0x1d4)](_0x5a5976){const _0xf9db94=_0xb522bb;return this[_0xf9db94(0x1bf)](_0x5a5976);}['hasTitleRow'](){const _0x2f46f3=_0xb522bb;var _0x52244e;return((_0x52244e=this[_0x2f46f3(0x160)]())==null?void 0x0:_0x52244e['titleRow'])??!0x1;}[_0xb522bb(0x177)](){const _0x1a455b=_0xb522bb;let _0x508e6e=this[_0x1a455b(0x222)][_0x1a455b(0x1b8)](_0x5a9d6c['DocsTableModel']),_0x1f0178=this[_0x1a455b(0x1fc)](),_0x107a7b=(0x0,_0x5a9d6c[_0x1a455b(0x220)])(_0x1f0178,this['_tableId'],this[_0x1a455b(0x22b)]());if(!_0x107a7b)return!0x1;let _0x1434a0=this['_mutateActions'](_0x1f0178,_0x107a7b[_0x1a455b(0x1a4)]);return _0x1434a0&&_0x508e6e['setTitleRow'](this['_unitId'],this['_tableId'],!0x0),_0x1434a0;}['setColumnType'](_0x31755c,_0x175f51){const _0x41b4d3=_0xb522bb;return this[_0x41b4d3(0x222)]['get'](_0x5a9d6c[_0x41b4d3(0x195)])[_0x41b4d3(0x1bb)](this[_0x41b4d3(0x185)],this[_0x41b4d3(0x18e)],_0x31755c,_0x175f51),!0x0;}[_0xb522bb(0x1b1)](_0x3421f0,_0x1dc402){const _0x54402d=_0xb522bb;let _0x3a0498=this['_getDocumentData']();return this[_0x54402d(0x170)](_0x3a0498,(0x0,_0x5a9d6c[_0x54402d(0x1c5)])(_0x3a0498,this[_0x54402d(0x169)](),this[_0x54402d(0x18e)],_0x3421f0,_0x1dc402,this['_getBodyPath']()));}['_getDocumentData'](){const _0x406615=_0xb522bb;let _0xc1947a=this[_0x406615(0x1e3)][_0x406615(0x18f)]()['getSnapshot']();return this[_0x406615(0x1a7)]?{...this['_document'][_0x406615(0x18f)](this[_0x406615(0x1a7)])['getSnapshot'](),'documentStyle':_0xc1947a[_0x406615(0x1c6)],'tableSource':_0xc1947a[_0x406615(0x1d9)]}:_0xc1947a;}[_0xb522bb(0x169)](){const _0x500bc3=_0xb522bb;return this[_0x500bc3(0x222)][_0x500bc3(0x1b8)](_0x5a9d6c['DocsTableModel'])[_0x500bc3(0x191)](this[_0x500bc3(0x185)]);}[_0xb522bb(0x22b)](){const _0x47e739=_0xb522bb;return(0x0,_0x5a9d6c[_0x47e739(0x22c)])(this['_document'][_0x47e739(0x18f)]()['getSnapshot'](),this[_0x47e739(0x1a7)]);}[_0xb522bb(0x170)](_0x278025,_0x935df8,_0x1773d1){const _0x5c61a6=_0xb522bb;return(0x0,_0x5a9d6c[_0x5c61a6(0x16d)])(this[_0x5c61a6(0x17b)],this[_0x5c61a6(0x185)],_0x278025,_0x935df8,_0x1773d1?{'tableId':this[_0x5c61a6(0x18e)],'segmentId':this[_0x5c61a6(0x1a7)],..._0x1773d1}:void 0x0);}};_0x1a09fd=_0x406307([_0x452347(0x3,_0x37d77c['ICommandService']),_0x452347(0x4,(0x0,_0x37d77c['Inject'])(_0x37d77c[_0xb522bb(0x206)]))],_0x1a09fd);var _0x828b44=class extends _0x5cbc05['FDocument']{[_0xb522bb(0x1f4)](_0x49c4f7=''){const _0x5b9104=_0xb522bb;return this[_0x5b9104(0x1a2)](_0x49c4f7)[_0x5b9104(0x1ec)](_0x3e9d1c=>this[_0x5b9104(0x193)](_0x3e9d1c[_0x5b9104(0x1be)],_0x49c4f7));}[_0xb522bb(0x1d7)](_0x308c4b,_0x50f47a=''){const _0xa77939=_0xb522bb;return this[_0xa77939(0x1a2)](_0x50f47a)[_0xa77939(0x1f2)](_0x41ad8b=>_0x41ad8b[_0xa77939(0x1be)]===_0x308c4b)?this[_0xa77939(0x193)](_0x308c4b,_0x50f47a):null;}['getTableAt'](_0x465e77,_0x30dfff=''){const _0x1faf7e=_0xb522bb;var _0x520009;let _0x71ce05=(_0x520009=this[_0x1faf7e(0x1a2)](_0x30dfff)[_0x465e77])==null?void 0x0:_0x520009[_0x1faf7e(0x1be)];return _0x71ce05?this[_0x1faf7e(0x193)](_0x71ce05,_0x30dfff):null;}[_0xb522bb(0x179)](){const _0x485dcf=_0xb522bb;let _0x4ad549=this[_0x485dcf(0x222)][_0x485dcf(0x1b8)](_0x5a9d6c[_0x485dcf(0x173)])[_0x485dcf(0x15e)]();return _0x4ad549!=null&&_0x4ad549['tableId']?this[_0x485dcf(0x193)](_0x4ad549[_0x485dcf(0x1be)],_0x4ad549[_0x485dcf(0x1b0)]):null;}['findTableByText'](_0x2dc032,_0x12ac5c=''){const _0x56dcdc=_0xb522bb;return this[_0x56dcdc(0x216)](_0x2dc032,_0x12ac5c)[0x0]??null;}[_0xb522bb(0x216)](_0x15030d,_0x2bd938=''){const _0x21a935=_0xb522bb;let _0x562bad=this[_0x21a935(0x1e0)](_0x2bd938),_0x6390d8=typeof _0x15030d=='string'?{'text':_0x15030d}:_0x15030d;return this[_0x21a935(0x1f4)](_0x2bd938)[_0x21a935(0x20a)](_0x5aaf7b=>{const _0x583202=_0x21a935;let _0x5994dc=_0x5aaf7b[_0x583202(0x21c)]();return!(_0x6390d8['tableId']&&_0x5994dc!==_0x6390d8[_0x583202(0x1be)]||_0x6390d8[_0x583202(0x230)]&&!this[_0x583202(0x19e)](_0x562bad,_0x5994dc,_0x6390d8[_0x583202(0x230)])||_0x6390d8['headerText']&&!this[_0x583202(0x212)](_0x5aaf7b,0x0,_0x6390d8[_0x583202(0x1fd)])||_0x6390d8[_0x583202(0x209)]&&!this[_0x583202(0x212)](_0x5aaf7b,0x0,_0x6390d8['titleText']));});}['insertTable'](_0x343964,_0x4a342f,_0x39faa3={}){const _0xb87bdd=_0xb522bb;let _0x4f973d=this[_0xb87bdd(0x222)][_0xb87bdd(0x1b8)](_0x37d77c[_0xb87bdd(0x165)]),_0x3bab90=_0x39faa3[_0xb87bdd(0x1be)]??(0x0,_0x37d77c[_0xb87bdd(0x162)])(0x6);return _0x4f973d[_0xb87bdd(0x1e8)](_0x5a9d6c[_0xb87bdd(0x219)]['id'],{..._0x39faa3,'unitId':this[_0xb87bdd(0x21c)](),'rows':_0x343964,'columns':_0x4a342f,'tableId':_0x3bab90})?this['_createFDocumentTable'](_0x3bab90,_0x39faa3[_0xb87bdd(0x1b0)]??''):null;}[_0xb522bb(0x215)](_0x135a89,_0x1e6d1d={}){const _0x8c1556=_0xb522bb;let _0x528d7e=this[_0x8c1556(0x222)][_0x8c1556(0x1b8)](_0x37d77c[_0x8c1556(0x165)]),_0x50a623=_0x1e6d1d['tableId']??(0x0,_0x37d77c[_0x8c1556(0x162)])(0x6);return _0x528d7e[_0x8c1556(0x1e8)](_0x5a9d6c[_0x8c1556(0x219)]['id'],{..._0x1e6d1d,'unitId':this['getId'](),'values':_0x135a89,'tableId':_0x50a623})?this['_createFDocumentTable'](_0x50a623,_0x1e6d1d['segmentId']??''):null;}[_0xb522bb(0x1a2)](_0x4b97cf=''){const _0x43eb0c=_0xb522bb;let {tables:_0x258ca1=[]}=this[_0x43eb0c(0x172)](_0x4b97cf);return _0x258ca1;}[_0xb522bb(0x1e0)](_0xedd4ce=''){const _0x4f1bb7=_0xb522bb;let _0x2973a6=this[_0x4f1bb7(0x18f)]()[_0x4f1bb7(0x1d1)]();return _0xedd4ce?{...this[_0x4f1bb7(0x18f)](_0xedd4ce)['getSnapshot'](),'documentStyle':_0x2973a6[_0x4f1bb7(0x1c6)],'tableSource':_0x2973a6['tableSource']}:_0x2973a6;}[_0xb522bb(0x193)](_0x463669,_0x1dcfff=''){const _0x56de11=_0xb522bb;return this[_0x56de11(0x222)]['createInstance'](_0x1a09fd,this,_0x463669,_0x1dcfff);}[_0xb522bb(0x19e)](_0x130701,_0x5ae304,_0x395fb5){const _0x3b1f1e=_0xb522bb;var _0x3e6550;let _0x515b1c=(0x0,_0x5a9d6c[_0x3b1f1e(0x1d3)])(_0x130701,_0x5ae304);if(!_0x515b1c)return!0x1;let _0x59fc2a=(_0x3e6550=_0x130701[_0x3b1f1e(0x1f3)])==null?void 0x0:_0x3e6550[_0x3b1f1e(0x20b)];return _0x59fc2a?_0x59fc2a[_0x3b1f1e(0x1a9)](_0x515b1c[_0x3b1f1e(0x21e)],_0x515b1c[_0x3b1f1e(0x183)])[_0x3b1f1e(0x223)](_0x395fb5):!0x1;}['_rowContainsText'](_0x7cd6d6,_0x57e151,_0x425293){const _0x30773b=_0xb522bb;return Array[_0x30773b(0x1c4)]({'length':_0x7cd6d6['getColumnCount']()},(_0x4d742d,_0xfabf3e)=>_0x7cd6d6[_0x30773b(0x1a1)](_0x57e151,_0xfabf3e))[_0x30773b(0x1f2)](_0x6b9da6=>_0x6b9da6[_0x30773b(0x223)](_0x425293));}};_0x5cbc05['FDocument'][_0xb522bb(0x21a)](_0x828b44),Object[_0xb522bb(0x1b6)](_0x2d6292,'FDocumentTable',{'enumerable':!0x0,'get':function(){return _0x1a09fd;}}),_0x2d6292[_0xb522bb(0x18a)]=_0x20237e;}));function _0x4df4(_0x1a6987,_0x322b80){_0x1a6987=_0x1a6987-0x153;const _0x40719f=_0x4071();let _0x4df433=_0x40719f[_0x1a6987];return _0x4df433;}function _0x4071(){const _0x354d01=['_getDocumentData','headerText','insertRowsAfter','buildMoveTableColumnsMutationActions','insertColumnAfter','Row','DocsTableRowInsertPosition','setStructuralSelection','backgroundColor','decorate','Injector','getInfo','buildMoveFloatingTableMutationActions','titleText','filter','dataStream','DocsTableColumnType','tableCells','border','UniverProDocsTableFacade','type','5208WkAsfc','_rowContainsText','getHeaderRowCount','setRowHeight','insertTableFromData','findTables','prototype','insertColumnsBefore','DocsTableInsertTableCommand','extend','getMargin','getId','Cell','startOffset','buildDistributeTableRowsMutationActions','buildInsertTableTitleRowMutationActions','DocsTableSortDirection','_injector','includes','max','DocsTableSelectionKind','width','selectRows','4048MvgKae','selectTable','symbol','_getBodyPath','getTableActionBodyPath','getInsertOffset','cellMargin','FEnum','text','1VLNhMG','selectColumn','DocsTableBorderPreset','cells','getCell','trHeight','getCellContentRange','setDefaultCellMargin','10tthwFP','toStringTag','getRowsRange','getDefaultCellMargin','getColumnIndex','selectColumns','getStableTableSelection','setCellBackground','getMetadata','unmergeCells','generateRandomId','buildSetTableCellMarginMutationActions','117laJnzy','ICommandService','getCellMarginOverride','@univerjs-pro/docs-table','buildUnmergeCellsMutationActions','_serializeModel','UniverCore','Table','_column','executeRichTextTableActions','setBorder','7651494jNweRb','_mutateActions','Above','getBody','DocsTableSelectionService','margin','setTableBorder','#1f1f1f','insertTitleRow','getTableRange','getTableAtSelection','Right','_commandService','setCellText','Below','getRowIndex','DocsTableInsertTablePosition','deleteColumn','buildMergeCellsMutationActions','getDefaultCellMarginOverride','endOffset','AT_LEAST','_unitId','getRowCount','88386ZKHCju','getText','DEFAULT_DOCS_TABLE_CELL_MARGIN','FDocumentTableCell','deepClone','deleteTable','setText','_tableId','getDocumentDataModel','2346138LcgRJC','serialize','5232324DMlxmG','_createFDocumentTable','buildResizeTableRowActionsFromHeight','DocsTableModel','columnTypes','setTableStyle','UniverProDocsTable','buildSetTableBorderMutationActions','moveColumns','TableRowHeightRule','unmerge','setMargin','_tableContainsText','buildDistributeTableColumnsMutationActions','Tools','getCellText','_getTables','deleteRows','actions','buildSetTableCellTextMutationActions','DocsTableColumnInsertPosition','_segmentId','string','slice','DocsTableInsertPosition','constructor','8VwdSZZ','exports','310iHxjgc','setTableBackground','segmentId','sortByColumn','buildSetTableHeaderRowCountMutationActions','DocsTableDeleteRowsCommand','amd','appendColumn','defineProperty','insertRowsBefore','get','preset','buildInsertTableColumnsMutationActions','setColumnType','moveRows','getRowRange','tableId','setHeaderRowCount','moveColumn','tableRows','moveTableBy','insertColumnBefore','from','buildSortTableMutationActions','documentStyle','_row','getRange','Column','getCellInsertOffset','deleteColumns','getTableMetadata','getColumnRange','deleteRow','length','DocsTableDeleteTableCommand','getSnapshot','5311922eFwmWF','getTableRangeById','pinHeaderRows','createInstance','_table','getTable','mergeTo','tableSource','DashStyleType','appendRow','setCellMargin','getColumnCount','clearMarginOverride','UniverDocsFacade','_getTableDocumentData','getColumnsRange','getMarginOverride','_document','getCellRange','Left','distributeColumns','buildSetTableBackgroundMutationActions','syncExecuteCommand','headerRowCount','getOwnPropertyDescriptor','buildMoveTableToOffsetMutationActions','map','@univerjs/core','getSource','default','object','insertColumnsAfter','some','body','getTables','Module','tableColumns','buildInsertTableRowsMutationActions','571173hGeEjy','selectRange','@univerjs/docs/facade','function'];_0x4071=function(){return _0x354d01;};return _0x4071();}
1
+ function _0x4ba7(){const _0x3c543c=['@univerjs/core','10uMVxtI','moveTableToOffset','insertColumnAfter','getSource','some','Inject','endOffset','selectRow','getRowIndex','_getTableDocumentData','insertTable','includes','DocsTableSelectionService','buildSetTableCellMarginMutationActions','string','getMarginOverride','titleRow','Right','DocsTableBorderPreset','AT_LEAST','getSegmentId','Row','getBody','appendRow','getMargin','setCellBackground','getRowsRange','type','backgroundColor','_rowContainsText','3AAHtEz','SOLID','DocsTableColumnInsertPosition','buildMergeCellsMutationActions','width','1015062ZOAZIi','text','moveColumns','DocsTableDeleteTableCommand','DashStyleType','getColumnRange','DocsTableDeleteRowsCommand','size','headerText','preset','DocsTableRowInsertPosition','setColumnType','FDocumentTable','_tableId','map','moveColumn','_table','distributeRows','Column','_getDocumentData','tableRows','setTableStyle','buildInsertTableColumnsMutationActions','getTableAt','buildSetTableHeaderRowCountMutationActions','getColumnIndex','_row','headerRowCount','pinHeaderRows','insertTableFromData','buildSortTableMutationActions','appendColumn','buildDistributeTableRowsMutationActions','UniverDocsFacade','buildDistributeTableColumnsMutationActions','getRowCount','cells','serializeDocument','slice','Tools','getTableActionBodyPath','_injector','getRowHeight','selectRange','toStringTag','buildMoveTableColumnsMutationActions','_unitId','setRowHeight','symbol','_tableContainsText','setStructuralSelection','extend','DocsTableInsertTableCommand','tableSource','selectTable','10iXaeFB','408812OvuNaO','gray.900','deleteColumns','insertRowBefore','call','buildResizeTableColumnActionsFromWidth','mergeCells','buildSetTableDefaultCellMarginMutationActions','compose','getDefaultCellMargin','getCellText','@univerjs-pro/docs-table','replace','setCellMargin','getCellContentRange','moveTableBy','setTableBorder','get','moveRow','_createFDocumentTable','464630vzNDQw','buildUnmergeCellsMutationActions','getTables','Above','tableCells','insertColumnsBefore','cellMargin','JSONX','getColorFromTheme','1389087zJAFIs','color','createInstance','documentStyle','tableId','274545WhSdWh','DocsTableSortDirection','border','deepClone','DocsTableModel','function','selectRows','insertRowAfter','distributeColumns','getColumnCount','_column','actions','buildMoveTableToOffsetMutationActions','_serializeModel','_document','Cell','_getBodyPath','getRowRange','ThemeService','DocsTableInsertPosition','decorate','startOffset','moveRows','findTableByText','@univerjs/core/facade','object','getTableRangeById','filter','findTables','FDocumentTableCell','resolveTableMetadata','buildInsertTableTitleRowMutationActions','tableColumns','1451373FlzvxV','DocsTableDeleteColumnsCommand','getOwnPropertyDescriptor','buildInsertTableRowsMutationActions','setCellText','DocsTableColumnType','ICommandService','buildMoveFloatingTableMutationActions','_commandService','FEnum','getCellInsertOffset','getDocumentDataModel','length','UniverProDocsTable','deleteRows','body','buildSetTableBackgroundMutationActions','insertColumnsAfter','dataStream','getCellRange','getInsertOffset','DocsTableSelectionKind','_buildBorderActions','getTableRange','max','getColumnsRange','Left','selectColumns','@univerjs/docs/facade','getTable','getTableAtSelection','from','exports','segmentId','buildSetTableBorderMutationActions','getSnapshot','sortByColumn','1734376PidzEu','DocsTableInsertTablePosition','getRange','insertRowsBefore','constructor','_mutateActions','clearMarginOverride','columnTypes','Injector','insertRowsAfter','toPrimitive','_getTables','syncExecuteCommand','setMargin','insertColumnBefore','generateRandomId','setBorder','rows','unmergeCells','_segmentId','getId','DEFAULT_DOCS_TABLE_CELL_MARGIN','getMetadata','getCellMarginOverride','setBackgroundColor','executeRichTextTableActions','setTableBackground','defineProperty','deleteRow','trHeight'];_0x4ba7=function(){return _0x3c543c;};return _0x4ba7();}function _0x5a67(_0x1d61ed,_0x29fa8c){_0x1d61ed=_0x1d61ed-0x106;const _0x4ba71f=_0x4ba7();let _0x5a6775=_0x4ba71f[_0x1d61ed];return _0x5a6775;}(function(_0x473398,_0x4eb9de){const _0x58cc7d=_0x5a67,_0x5526f2=_0x473398();while(!![]){try{const _0x4864f1=-parseInt(_0x58cc7d(0x10b))/0x1+parseInt(_0x58cc7d(0x1df))/0x2*(parseInt(_0x58cc7d(0x18e))/0x3)+-parseInt(_0x58cc7d(0x1cb))/0x4*(-parseInt(_0x58cc7d(0x170))/0x5)+-parseInt(_0x58cc7d(0x193))/0x6+parseInt(_0x58cc7d(0x12c))/0x7+-parseInt(_0x58cc7d(0x151))/0x8+parseInt(_0x58cc7d(0x106))/0x9*(parseInt(_0x58cc7d(0x1ca))/0xa);if(_0x4864f1===_0x4eb9de)break;else _0x5526f2['push'](_0x5526f2['shift']());}catch(_0x1bdbaf){_0x5526f2['push'](_0x5526f2['shift']());}}}(_0x4ba7,0x21a9c),function(_0x3591f4,_0x159244){const _0x7bc642=_0x5a67;typeof exports==_0x7bc642(0x124)&&typeof module<'u'?_0x159244(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x7bc642(0x110)&&define['amd']?define([_0x7bc642(0x14c),_0x7bc642(0x1d6),_0x7bc642(0x16f),_0x7bc642(0x123),_0x7bc642(0x148)],_0x159244):(_0x3591f4=typeof globalThis<'u'?globalThis:_0x3591f4||self,_0x159244(_0x3591f4['UniverProDocsTableFacade']={},_0x3591f4[_0x7bc642(0x139)],_0x3591f4['UniverCore'],_0x3591f4['UniverCoreFacade'],_0x3591f4[_0x7bc642(0x1b4)]));}(this,function(_0x245454,_0x530f09,_0x35d6ba,_0x3b1296,_0x1d09dc){const _0x547399=_0x5a67;Object[_0x547399(0x16c)](_0x245454,Symbol[_0x547399(0x1bf)],{'value':'Module'});var _0x22189d=class extends _0x3b1296[_0x547399(0x135)]{get[_0x547399(0x152)](){const _0x3469fc=_0x547399;return _0x530f09[_0x3469fc(0x152)];}get[_0x547399(0x131)](){const _0xddb2fa=_0x547399;return _0x530f09[_0xddb2fa(0x131)];}get['DocsTableSelectionKind'](){const _0x5dcb84=_0x547399;return _0x530f09[_0x5dcb84(0x141)];}get[_0x547399(0x19d)](){return _0x530f09['DocsTableRowInsertPosition'];}get[_0x547399(0x190)](){const _0x273926=_0x547399;return _0x530f09[_0x273926(0x190)];}get[_0x547399(0x182)](){const _0x25a218=_0x547399;return _0x530f09[_0x25a218(0x182)];}get[_0x547399(0x10c)](){const _0x3574e2=_0x547399;return _0x530f09[_0x3574e2(0x10c)];}get[_0x547399(0x197)](){const _0x3c1fde=_0x547399;return _0x35d6ba[_0x3c1fde(0x197)];}};_0x3b1296[_0x547399(0x135)][_0x547399(0x1c6)](_0x22189d);var _0x3b7848=class{constructor(_0x4e2648,_0x427dc7,_0x4d372b){const _0x411207=_0x547399;this[_0x411207(0x1a3)]=_0x4e2648,this['_row']=_0x427dc7,this[_0x411207(0x115)]=_0x4d372b;}[_0x547399(0x149)](){const _0x36aec8=_0x547399;return this[_0x36aec8(0x1a3)];}[_0x547399(0x178)](){const _0x45c667=_0x547399;return this[_0x45c667(0x1ad)];}[_0x547399(0x1ac)](){const _0x46aa7c=_0x547399;return this[_0x46aa7c(0x115)];}['getText'](){const _0x372192=_0x547399;return this[_0x372192(0x1a3)][_0x372192(0x1d5)](this[_0x372192(0x1ad)],this[_0x372192(0x115)]);}['getContentRange'](){const _0x560bd6=_0x547399;return this[_0x560bd6(0x1a3)][_0x560bd6(0x1d9)](this[_0x560bd6(0x1ad)],this['_column']);}[_0x547399(0x140)](){const _0x1ac599=_0x547399;return this[_0x1ac599(0x1a3)][_0x1ac599(0x136)](this[_0x1ac599(0x1ad)],this[_0x1ac599(0x115)]);}[_0x547399(0x188)](){const _0x57fc18=_0x547399;return this[_0x57fc18(0x1a3)]['getCellMargin'](this[_0x57fc18(0x1ad)],this['_column']);}[_0x547399(0x17f)](){const _0x545b68=_0x547399;return this[_0x545b68(0x1a3)][_0x545b68(0x168)](this[_0x545b68(0x1ad)],this[_0x545b68(0x115)]);}[_0x547399(0x15e)](_0x1f9bc9){const _0x59471a=_0x547399;return this[_0x59471a(0x1a3)]['setCellMargin'](this[_0x59471a(0x1a3)]['getCellRange'](this[_0x59471a(0x1ad)],this[_0x59471a(0x115)]),_0x1f9bc9);}[_0x547399(0x157)](){const _0x3eac18=_0x547399;return this[_0x3eac18(0x1a3)][_0x3eac18(0x1d8)](this[_0x3eac18(0x1a3)]['getCellRange'](this[_0x3eac18(0x1ad)],this[_0x3eac18(0x115)]),null);}['setText'](_0x48c939){const _0x49bf55=_0x547399;return this[_0x49bf55(0x1a3)]['setCellText'](this[_0x49bf55(0x1ad)],this[_0x49bf55(0x115)],_0x48c939);}[_0x547399(0x169)](_0x371731){const _0x3ca567=_0x547399;return this[_0x3ca567(0x1a3)][_0x3ca567(0x189)](this['_table'][_0x3ca567(0x13f)](this['_row'],this['_column']),_0x371731);}[_0x547399(0x161)](_0x37192b){const _0x3b2543=_0x547399;return this[_0x3b2543(0x1a3)][_0x3b2543(0x161)](this[_0x3b2543(0x1a3)][_0x3b2543(0x13f)](this[_0x3b2543(0x1ad)],this[_0x3b2543(0x115)]),_0x37192b);}['mergeTo'](_0x51d91b,_0x4f1e34){const _0x26d17d=_0x547399;return this[_0x26d17d(0x1a3)][_0x26d17d(0x1d1)]({'startRow':this[_0x26d17d(0x1ad)],'startColumn':this[_0x26d17d(0x115)],'endRow':this[_0x26d17d(0x1ad)]+_0x51d91b-0x1,'endColumn':this[_0x26d17d(0x115)]+_0x4f1e34-0x1});}['unmerge'](){const _0x5d592b=_0x547399;return this[_0x5d592b(0x1a3)][_0x5d592b(0x163)](this['_table'][_0x5d592b(0x13f)](this['_row'],this['_column']));}};function _0x5f27e3(_0x2cfc8a){'@babel/helpers - typeof';const _0x1ca03e=_0x547399;return _0x5f27e3=typeof Symbol==_0x1ca03e(0x110)&&typeof Symbol['iterator']==_0x1ca03e(0x1c3)?function(_0x5ccd14){return typeof _0x5ccd14;}:function(_0x579e2c){const _0x3eb934=_0x1ca03e;return _0x579e2c&&typeof Symbol=='function'&&_0x579e2c[_0x3eb934(0x155)]===Symbol&&_0x579e2c!==Symbol['prototype']?_0x3eb934(0x1c3):typeof _0x579e2c;},_0x5f27e3(_0x2cfc8a);}function _0xc52e15(_0x342d79,_0x35ebb3){const _0x21b150=_0x547399;if(_0x5f27e3(_0x342d79)!=_0x21b150(0x124)||!_0x342d79)return _0x342d79;var _0xe7b847=_0x342d79[Symbol[_0x21b150(0x15b)]];if(_0xe7b847!==void 0x0){var _0x1ba3ec=_0xe7b847[_0x21b150(0x1cf)](_0x342d79,_0x35ebb3||'default');if(_0x5f27e3(_0x1ba3ec)!=_0x21b150(0x124))return _0x1ba3ec;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x35ebb3==='string'?String:Number)(_0x342d79);}function _0x3f07a8(_0x32523f){const _0x10a5b7=_0x547399;var _0x291164=_0xc52e15(_0x32523f,_0x10a5b7(0x17e));return _0x5f27e3(_0x291164)==_0x10a5b7(0x1c3)?_0x291164:_0x291164+'';}function _0x29a9f9(_0xcf2945,_0xa0e450,_0x3381da){const _0x289bfa=_0x547399;return(_0xa0e450=_0x3f07a8(_0xa0e450))in _0xcf2945?Object[_0x289bfa(0x16c)](_0xcf2945,_0xa0e450,{'value':_0x3381da,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf2945[_0xa0e450]=_0x3381da,_0xcf2945;}function _0x473624(_0x202859,_0x44f043){return function(_0x50312b,_0x37dda1){_0x44f043(_0x50312b,_0x37dda1,_0x202859);};}function _0x4e3f4f(_0x42da5d,_0x3be51d,_0x2bab48,_0x511388){const _0x590954=_0x547399;var _0x4ba8d2=arguments[_0x590954(0x138)],_0x5020b1=_0x4ba8d2<0x3?_0x3be51d:_0x511388===null?_0x511388=Object[_0x590954(0x12e)](_0x3be51d,_0x2bab48):_0x511388,_0x4c0698;if(typeof Reflect==_0x590954(0x124)&&typeof Reflect[_0x590954(0x11f)]==_0x590954(0x110))_0x5020b1=Reflect['decorate'](_0x42da5d,_0x3be51d,_0x2bab48,_0x511388);else{for(var _0x11fab4=_0x42da5d[_0x590954(0x138)]-0x1;_0x11fab4>=0x0;_0x11fab4--)(_0x4c0698=_0x42da5d[_0x11fab4])&&(_0x5020b1=(_0x4ba8d2<0x3?_0x4c0698(_0x5020b1):_0x4ba8d2>0x3?_0x4c0698(_0x3be51d,_0x2bab48,_0x5020b1):_0x4c0698(_0x3be51d,_0x2bab48))||_0x5020b1);}return _0x4ba8d2>0x3&&_0x5020b1&&Object[_0x590954(0x16c)](_0x3be51d,_0x2bab48,_0x5020b1),_0x5020b1;}let _0xb5b7cc=class{constructor(_0x54e1eb,_0x578aa4,_0x3001a5,_0x1c7eb2,_0x355705){const _0x2147a9=_0x547399;this['_document']=_0x54e1eb,this[_0x2147a9(0x1a0)]=_0x578aa4,this[_0x2147a9(0x164)]=_0x3001a5,this[_0x2147a9(0x134)]=_0x1c7eb2,this[_0x2147a9(0x1bc)]=_0x355705,_0x29a9f9(this,'_unitId',void 0x0),this[_0x2147a9(0x1c1)]=this[_0x2147a9(0x119)]['getId']();}[_0x547399(0x165)](){const _0x475693=_0x547399;return this[_0x475693(0x1a0)];}[_0x547399(0x184)](){const _0x5be561=_0x547399;return this[_0x5be561(0x164)];}['getInfo'](){const _0x404584=_0x547399;return{'id':this[_0x404584(0x1a0)],'rowCount':this[_0x404584(0x1b6)](),'columnCount':this[_0x404584(0x114)](),'metadata':this[_0x404584(0x167)](),'source':this[_0x404584(0x173)]()};}['describe'](){const _0x110969=_0x547399;let _0x39c36b=this[_0x110969(0x167)](),_0x56f38b=this[_0x110969(0x173)](),_0x3b3c1d=this['getColumnCount']();return{'id':this[_0x110969(0x1a0)],'rowCount':this['getRowCount'](),'columnCount':_0x3b3c1d,'headerRowCount':(_0x39c36b==null?void 0x0:_0x39c36b[_0x110969(0x1ae)])??0x0,'titleRow':(_0x39c36b==null?void 0x0:_0x39c36b[_0x110969(0x180)])??!0x1,'columns':Array[_0x110969(0x14b)]({'length':_0x3b3c1d},(_0x56702b,_0x1b25a0)=>{const _0x37631d=_0x110969;var _0x3fb648,_0x492b24;return{'index':_0x1b25a0,'type':_0x39c36b==null||(_0x3fb648=_0x39c36b[_0x37631d(0x158)])==null||(_0x3fb648=_0x3fb648[_0x1b25a0])==null?void 0x0:_0x3fb648[_0x37631d(0x18b)],'width':_0x56f38b==null||(_0x492b24=_0x56f38b[_0x37631d(0x12b)][_0x1b25a0])==null?void 0x0:_0x492b24[_0x37631d(0x19a)][_0x37631d(0x192)]['v']};}),'sampleRows':Array[_0x110969(0x14b)]({'length':this[_0x110969(0x1b6)]()},(_0x310fb3,_0x730ad3)=>Array[_0x110969(0x14b)]({'length':_0x3b3c1d},(_0x331f2a,_0xca01d8)=>this[_0x110969(0x1d5)](_0x730ad3,_0xca01d8)))['filter'](_0x51c72a=>_0x51c72a[_0x110969(0x174)](_0x45c349=>_0x45c349[_0x110969(0x138)]>0x0))[_0x110969(0x1b9)](0x0,0x5)};}['getRowCount'](){const _0x5a715a=_0x547399;var _0x2a449c;return((_0x2a449c=this[_0x5a715a(0x173)]())==null?void 0x0:_0x2a449c[_0x5a715a(0x1a7)][_0x5a715a(0x138)])??0x0;}[_0x547399(0x114)](){const _0x45264c=_0x547399;var _0x42344a;return((_0x42344a=this['getSource']())==null?void 0x0:_0x42344a[_0x45264c(0x12b)][_0x45264c(0x138)])??0x0;}['getCell'](_0x58e682,_0x37c6ff){const _0xcb9fcb=_0x547399;var _0x19e8ad;return(_0x19e8ad=this[_0xcb9fcb(0x173)]())!=null&&(_0x19e8ad=_0x19e8ad[_0xcb9fcb(0x1a7)][_0x58e682])!=null&&_0x19e8ad['tableCells'][_0x37c6ff]?this[_0xcb9fcb(0x1bc)]['createInstance'](_0x3b7848,this,_0x58e682,_0x37c6ff):null;}[_0x547399(0x1d5)](_0x4379da,_0x4c5a64){const _0xa96bbd=_0x547399;var _0x472ef7,_0x2a5378;let _0xd5ef1d=(_0x472ef7=(0x0,_0x530f09[_0xa96bbd(0x125)])(this[_0xa96bbd(0x1a6)](),this[_0xa96bbd(0x1a0)]))==null||(_0x472ef7=_0x472ef7[_0xa96bbd(0x162)][_0x4379da])==null?void 0x0:_0x472ef7[_0xa96bbd(0x1b7)][_0x4c5a64];return _0xd5ef1d?((_0x2a5378=this[_0xa96bbd(0x1a6)]()[_0xa96bbd(0x13b)])==null?void 0x0:_0x2a5378[_0xa96bbd(0x13e)]['slice'](_0xd5ef1d['startOffset']+0x1,_0xd5ef1d['endOffset'])[_0xa96bbd(0x1d7)](/\r\n$/,''))??'':'';}['getCellMargin'](_0x1b41dc,_0x386f08){const _0x13d969=_0x547399;var _0x2fc810;let _0x4d18c6=this['getSource'](),_0x556a81=_0x4d18c6==null||(_0x2fc810=_0x4d18c6[_0x13d969(0x1a7)][_0x1b41dc])==null?void 0x0:_0x2fc810[_0x13d969(0x1e3)][_0x386f08];return _0x556a81?_0x35d6ba[_0x13d969(0x1ba)][_0x13d969(0x10e)](_0x556a81['margin']??_0x4d18c6[_0x13d969(0x1e5)]??_0x530f09[_0x13d969(0x166)]):null;}['getCellMarginOverride'](_0x38ffc2,_0x4f7d){const _0x3d9bf9=_0x547399;var _0x3cf373;let _0x128c90=(_0x3cf373=this[_0x3d9bf9(0x173)]())==null||(_0x3cf373=_0x3cf373[_0x3d9bf9(0x1a7)][_0x38ffc2])==null?void 0x0:_0x3cf373[_0x3d9bf9(0x1e3)][_0x4f7d];return _0x128c90!=null&&_0x128c90['margin']?_0x35d6ba['Tools']['deepClone'](_0x128c90['margin']):null;}[_0x547399(0x1d4)](){const _0x39a3ea=_0x547399;var _0x260298;return _0x35d6ba[_0x39a3ea(0x1ba)][_0x39a3ea(0x10e)](((_0x260298=this['getSource']())==null?void 0x0:_0x260298[_0x39a3ea(0x1e5)])??_0x530f09['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}['getDefaultCellMarginOverride'](){const _0x325110=_0x547399;var _0x467f44;let _0x4d5dd8=(_0x467f44=this[_0x325110(0x173)]())==null?void 0x0:_0x467f44[_0x325110(0x1e5)];return _0x4d5dd8?_0x35d6ba[_0x325110(0x1ba)][_0x325110(0x10e)](_0x4d5dd8):null;}[_0x547399(0x167)](){const _0x216dd2=_0x547399;let _0x4327b5=this['_injector'][_0x216dd2(0x1dc)](_0x530f09['DocsTableModel']),_0xd61d4a=this[_0x216dd2(0x173)]();return _0xd61d4a?_0x4327b5[_0x216dd2(0x129)](this[_0x216dd2(0x1c1)],_0xd61d4a):void 0x0;}[_0x547399(0x173)](){const _0x2f0a49=_0x547399;var _0x10233f;return(_0x10233f=this[_0x2f0a49(0x1a6)]()['tableSource'])==null?void 0x0:_0x10233f[this[_0x2f0a49(0x1a0)]];}[_0x547399(0x153)](){const _0x15c0e1=_0x547399;return(0x0,_0x530f09[_0x15c0e1(0x125)])(this['_getDocumentData'](),this['_tableId']);}[_0x547399(0x143)](){const _0x4d6ea5=_0x547399;return{'startRow':0x0,'endRow':Math[_0x4d6ea5(0x144)](0x0,this[_0x4d6ea5(0x1b6)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x4d6ea5(0x144)](0x0,this['getColumnCount']()-0x1)};}[_0x547399(0x13f)](_0x386ff1,_0x4d3274){return{'startRow':_0x386ff1,'endRow':_0x386ff1,'startColumn':_0x4d3274,'endColumn':_0x4d3274};}[_0x547399(0x1d9)](_0x2c42a6,_0x5f5486){const _0x3d2a65=_0x547399;var _0x39c951;let _0x5f12c3=(_0x39c951=(0x0,_0x530f09['getTableRangeById'])(this[_0x3d2a65(0x1a6)](),this[_0x3d2a65(0x1a0)]))==null||(_0x39c951=_0x39c951[_0x3d2a65(0x162)][_0x2c42a6])==null?void 0x0:_0x39c951[_0x3d2a65(0x1b7)][_0x5f5486];if(!_0x5f12c3)return null;let _0x2a781d=_0x5f12c3[_0x3d2a65(0x120)]+0x1;return{'startOffset':_0x2a781d,'endOffset':Math[_0x3d2a65(0x144)](_0x2a781d,_0x5f12c3[_0x3d2a65(0x176)]-0x1),'segmentId':this[_0x3d2a65(0x164)]};}[_0x547399(0x136)](_0x2a4df9,_0x125b54){const _0x169ecf=_0x547399;let _0x37637b=this[_0x169ecf(0x1d9)](_0x2a4df9,_0x125b54);return _0x37637b?Math[_0x169ecf(0x144)](_0x37637b['startOffset'],_0x37637b[_0x169ecf(0x176)]-0x1):null;}[_0x547399(0x11c)](_0x2b8ba6){const _0x44b68f=_0x547399;return this[_0x44b68f(0x18a)](_0x2b8ba6,0x1);}[_0x547399(0x18a)](_0x21d4b9,_0x50e31d=0x1){const _0x2d1aa5=_0x547399;return{'startRow':_0x21d4b9,'endRow':_0x21d4b9+_0x50e31d-0x1,'startColumn':0x0,'endColumn':Math[_0x2d1aa5(0x144)](0x0,this[_0x2d1aa5(0x114)]()-0x1)};}[_0x547399(0x198)](_0xa9baff){const _0x5af88e=_0x547399;return this[_0x5af88e(0x145)](_0xa9baff,0x1);}[_0x547399(0x145)](_0x19f65c,_0x47c515=0x1){const _0x1a4fe4=_0x547399;return{'startRow':0x0,'endRow':Math[_0x1a4fe4(0x144)](0x0,this[_0x1a4fe4(0x1b6)]()-0x1),'startColumn':_0x19f65c,'endColumn':_0x19f65c+_0x47c515-0x1};}[_0x547399(0x1c9)](){const _0x3c3a15=_0x547399;return this[_0x3c3a15(0x1be)](this['getTableRange'](),_0x530f09['DocsTableSelectionKind']['Table']);}[_0x547399(0x177)](_0x416bb6){const _0x44e404=_0x547399;return this[_0x44e404(0x111)](_0x416bb6,0x1);}[_0x547399(0x111)](_0x44afc5,_0x282640=0x1){const _0x2bcf59=_0x547399;return this[_0x2bcf59(0x1be)](this['getRowsRange'](_0x44afc5,_0x282640),_0x530f09[_0x2bcf59(0x141)][_0x2bcf59(0x185)]);}['selectColumn'](_0x38503f){const _0x1ec3c6=_0x547399;return this[_0x1ec3c6(0x147)](_0x38503f,0x1);}[_0x547399(0x147)](_0xc0a055,_0x19d38b=0x1){const _0x147261=_0x547399;return this[_0x147261(0x1be)](this[_0x147261(0x145)](_0xc0a055,_0x19d38b),_0x530f09[_0x147261(0x141)][_0x147261(0x1a5)]);}['selectCell'](_0x4714e2,_0x6203b2){const _0x423bd4=_0x547399;return this['selectRange'](this['getCellRange'](_0x4714e2,_0x6203b2),_0x530f09[_0x423bd4(0x141)][_0x423bd4(0x11a)]);}[_0x547399(0x1be)](_0x548adc,_0x4768cf=_0x530f09[_0x547399(0x141)]['Range']){const _0xd9005=_0x547399;return this[_0xd9005(0x1bc)][_0xd9005(0x1dc)](_0x530f09[_0xd9005(0x17c)])[_0xd9005(0x1c5)]({..._0x548adc,'kind':_0x4768cf,'segmentId':this[_0xd9005(0x164)],'tableId':this[_0xd9005(0x1a0)]}),!0x0;}[_0x547399(0x1ce)](_0x278b0b){const _0x17e198=_0x547399;return this[_0x17e198(0x154)](_0x278b0b,0x1);}[_0x547399(0x112)](_0x2c5420){const _0x1d34dc=_0x547399;return this[_0x1d34dc(0x15a)](_0x2c5420,0x1);}[_0x547399(0x154)](_0xf1e397,_0x2f21f8){const _0x9ef97=_0x547399;let _0x240640=this['_getDocumentData'](),_0x11faf2=(0x0,_0x530f09[_0x9ef97(0x12f)])(_0x240640,this['_tableId'],_0xf1e397,_0x2f21f8,_0x530f09[_0x9ef97(0x11e)]['Above'],this[_0x9ef97(0x11b)]());return _0x11faf2?this[_0x9ef97(0x156)](_0x240640,_0x11faf2[_0x9ef97(0x116)]):!0x1;}[_0x547399(0x15a)](_0x435f19,_0x5454c3){const _0x5c1f98=_0x547399;let _0x50b2b4=this['_getDocumentData'](),_0x5d59c1=(0x0,_0x530f09[_0x5c1f98(0x12f)])(_0x50b2b4,this[_0x5c1f98(0x1a0)],_0x435f19,_0x5454c3,_0x530f09[_0x5c1f98(0x11e)]['Below'],this[_0x5c1f98(0x11b)]());return _0x5d59c1?this['_mutateActions'](_0x50b2b4,_0x5d59c1[_0x5c1f98(0x116)]):!0x1;}[_0x547399(0x187)](){const _0x5c6896=_0x547399;return this['insertRowsAfter'](Math[_0x5c6896(0x144)](0x0,this[_0x5c6896(0x1b6)]()-0x1),0x1);}[_0x547399(0x15f)](_0x350c70){return this['insertColumnsBefore'](_0x350c70,0x1);}[_0x547399(0x172)](_0xd4d375){return this['insertColumnsAfter'](_0xd4d375,0x1);}[_0x547399(0x1e4)](_0x17f64b,_0x1334e5){const _0x5a0772=_0x547399;let _0x1fc2bb=this[_0x5a0772(0x1a6)](),_0x3084a3=(0x0,_0x530f09[_0x5a0772(0x1a9)])(_0x1fc2bb,this[_0x5a0772(0x1a0)],_0x17f64b,_0x1334e5,_0x530f09['DocsTableInsertPosition'][_0x5a0772(0x146)],{'bodyPath':this['_getBodyPath']()});return _0x3084a3?this['_mutateActions'](_0x1fc2bb,_0x3084a3[_0x5a0772(0x116)]):!0x1;}[_0x547399(0x13d)](_0x55b409,_0x3186a9){const _0x3bb069=_0x547399;let _0x1c724f=this[_0x3bb069(0x1a6)](),_0x2c114d=(0x0,_0x530f09[_0x3bb069(0x1a9)])(_0x1c724f,this['_tableId'],_0x55b409,_0x3186a9,_0x530f09['DocsTableInsertPosition'][_0x3bb069(0x181)],{'bodyPath':this[_0x3bb069(0x11b)]()});return _0x2c114d?this[_0x3bb069(0x156)](_0x1c724f,_0x2c114d[_0x3bb069(0x116)]):!0x1;}[_0x547399(0x1b2)](){const _0x2e771c=_0x547399;return this[_0x2e771c(0x13d)](Math['max'](0x0,this['getColumnCount']()-0x1),0x1);}[_0x547399(0x16d)](_0x36cf4a){const _0x3bd312=_0x547399;return this[_0x3bd312(0x13a)](_0x36cf4a,0x1);}[_0x547399(0x13a)](_0x289d1c,_0x3f115d=0x1){const _0x27b161=_0x547399;return!!this[_0x27b161(0x134)][_0x27b161(0x15d)](_0x530f09[_0x27b161(0x199)]['id'],{'endRow':_0x289d1c+_0x3f115d-0x1,'segmentId':this[_0x27b161(0x164)],'startRow':_0x289d1c,'tableId':this[_0x27b161(0x1a0)],'unitId':this['_unitId']});}['deleteColumn'](_0x5bd066){const _0x3c057f=_0x547399;return this[_0x3c057f(0x1cd)](_0x5bd066,0x1);}[_0x547399(0x1cd)](_0x2c49a6,_0x3242c5=0x1){const _0x489790=_0x547399;return!!this[_0x489790(0x134)]['syncExecuteCommand'](_0x530f09[_0x489790(0x12d)]['id'],{'endColumn':_0x2c49a6+_0x3242c5-0x1,'segmentId':this['_segmentId'],'startColumn':_0x2c49a6,'tableId':this['_tableId'],'unitId':this['_unitId']});}['deleteTable'](){const _0x599454=_0x547399;return!!this['_commandService'][_0x599454(0x15d)](_0x530f09[_0x599454(0x196)]['id'],{'segmentId':this[_0x599454(0x164)],'tableId':this[_0x599454(0x1a0)],'unitId':this[_0x599454(0x1c1)]});}[_0x547399(0x1da)](_0x30a399,_0x531a7b){const _0x6c3497=_0x547399;let _0x29a7ea=this[_0x6c3497(0x1a6)]();return this[_0x6c3497(0x156)](_0x29a7ea,(0x0,_0x530f09[_0x6c3497(0x133)])(_0x29a7ea,this['_tableId'],_0x30a399,_0x531a7b));}[_0x547399(0x171)](_0x1c09c4){const _0x768e73=_0x547399;let _0x5ba8b2=this['_getDocumentData']();return this[_0x768e73(0x156)](_0x5ba8b2,(0x0,_0x530f09[_0x768e73(0x117)])(_0x5ba8b2,this['_tableId'],_0x1c09c4,this[_0x768e73(0x11b)]()));}[_0x547399(0x1dd)](_0x3d6df0,_0x210578,_0x2687b5=_0x530f09[_0x547399(0x11e)][_0x547399(0x1e2)]){const _0x5dc256=_0x547399;return this[_0x5dc256(0x121)](_0x3d6df0,0x1,_0x210578,_0x2687b5);}[_0x547399(0x121)](_0x218645,_0x40514c,_0x1d5673,_0x2711d9=_0x530f09[_0x547399(0x11e)][_0x547399(0x1e2)]){const _0x106286=_0x547399;let _0x4f812f=this[_0x106286(0x1a6)](),_0x4c3192=(0x0,_0x530f09['buildMoveTableRowsMutationActions'])(_0x4f812f,this[_0x106286(0x1a0)],_0x218645,_0x1d5673,_0x40514c,_0x2711d9,this[_0x106286(0x11b)]());return _0x4c3192?this[_0x106286(0x156)](_0x4f812f,_0x4c3192[_0x106286(0x116)]):!0x1;}[_0x547399(0x1a2)](_0x208350,_0x31044e,_0x418391=_0x530f09[_0x547399(0x11e)][_0x547399(0x146)]){const _0x496543=_0x547399;return this[_0x496543(0x195)](_0x208350,0x1,_0x31044e,_0x418391);}[_0x547399(0x195)](_0x5053bf,_0x4d1943,_0x4fbabd,_0x128fd4=_0x530f09[_0x547399(0x11e)][_0x547399(0x146)]){const _0x5f492f=_0x547399;let _0x2fe660=this[_0x5f492f(0x1a6)](),_0x219084=(0x0,_0x530f09[_0x5f492f(0x1c0)])(_0x2fe660,this[_0x5f492f(0x1a0)],_0x5053bf,_0x4fbabd,_0x4d1943,_0x128fd4,this[_0x5f492f(0x11b)]());return _0x219084?this[_0x5f492f(0x156)](_0x2fe660,_0x219084['actions']):!0x1;}[_0x547399(0x1d1)](_0x2991c9){const _0x4f1a6a=_0x547399;try{let _0xfa712b=this['_getDocumentData'](),_0x170bc2=(0x0,_0x530f09[_0x4f1a6a(0x191)])({'documentData':_0xfa712b,'tableId':this['_tableId'],..._0x2991c9});return _0x170bc2?this['_mutateActions'](_0xfa712b,_0x170bc2[_0x4f1a6a(0x116)],_0x2991c9):!0x1;}catch{return!0x1;}}[_0x547399(0x163)](_0x3269dd){const _0x44c592=_0x547399;try{let _0xf6db4e=this[_0x44c592(0x1a6)](),_0x227c99=(0x0,_0x530f09[_0x44c592(0x1e0)])({'documentData':_0xf6db4e,'tableId':this['_tableId'],..._0x3269dd});return _0x227c99?this['_mutateActions'](_0xf6db4e,_0x227c99[_0x44c592(0x116)],_0x3269dd):!0x1;}catch{return!0x1;}}[_0x547399(0x130)](_0x22df21,_0x3c07ee,_0x998679){const _0x3a821f=_0x547399;let _0x983911=this['_getDocumentData'](),_0x192948=(0x0,_0x530f09[_0x3a821f(0x1bb)])(this[_0x3a821f(0x119)]['getDocumentDataModel']()[_0x3a821f(0x14f)](),this[_0x3a821f(0x164)]);return this[_0x3a821f(0x156)](_0x983911,(0x0,_0x530f09['buildSetTableCellTextMutationActions'])({'documentData':_0x983911,'tableId':this[_0x3a821f(0x1a0)],'row':_0x22df21,'column':_0x3c07ee,'text':_0x998679},_0x192948),this[_0x3a821f(0x13f)](_0x22df21,_0x3c07ee));}[_0x547399(0x189)](_0x4cab0f,_0x323200){const _0x5e955c=_0x547399;let _0xff8133=this[_0x5e955c(0x1a6)]();return this[_0x5e955c(0x156)](_0xff8133,(0x0,_0x530f09[_0x5e955c(0x13c)])(_0xff8133,{'tableId':this[_0x5e955c(0x1a0)],..._0x4cab0f,'value':_0x323200}),_0x4cab0f);}[_0x547399(0x1d8)](_0x583981,_0x2feb25){const _0x2fab62=_0x547399;let _0x3338eb=this[_0x2fab62(0x1a6)]();return this['_mutateActions'](_0x3338eb,(0x0,_0x530f09[_0x2fab62(0x17d)])({'documentData':_0x3338eb,'tableId':this[_0x2fab62(0x1a0)],..._0x583981,'margin':_0x2feb25}),_0x583981);}['setDefaultCellMargin'](_0xe2f1c6){const _0x2f1df7=_0x547399;let _0x3199e3=this[_0x2f1df7(0x1a6)]();return this['_mutateActions'](_0x3199e3,(0x0,_0x530f09[_0x2f1df7(0x1d2)])(_0x3199e3,this[_0x2f1df7(0x1a0)],_0xe2f1c6));}[_0x547399(0x161)](_0x3fb942,_0x4ce29b){const _0x4e9fa5=_0x547399;let _0x1bde6e=this['_getDocumentData']();return this[_0x4e9fa5(0x156)](_0x1bde6e,this[_0x4e9fa5(0x142)](_0x1bde6e,_0x3fb942,_0x4ce29b),_0x3fb942);}[_0x547399(0x16b)](_0x316562){const _0x25260b=_0x547399;return this['setCellBackground'](this[_0x25260b(0x143)](),_0x316562);}[_0x547399(0x1db)](_0x3e6e1b){const _0x3791ad=_0x547399;return this[_0x3791ad(0x161)](this[_0x3791ad(0x143)](),_0x3e6e1b);}[_0x547399(0x1a8)](_0x4eb5c8){const _0x278524=_0x547399;let _0x158bbf=this[_0x278524(0x1a6)](),_0x475db3=this[_0x278524(0x143)](),_0x1629a2=_0x4eb5c8[_0x278524(0x18c)]?(0x0,_0x530f09[_0x278524(0x13c)])(_0x158bbf,{'tableId':this[_0x278524(0x1a0)],..._0x475db3,'value':_0x4eb5c8['backgroundColor']}):null,_0x2863cf=_0x4eb5c8['border']?this[_0x278524(0x142)](_0x158bbf,_0x475db3,_0x4eb5c8[_0x278524(0x10d)]):null;return this[_0x278524(0x156)](_0x158bbf,_0x35d6ba[_0x278524(0x1e6)][_0x278524(0x1d3)](_0x1629a2,_0x2863cf),_0x475db3);}[_0x547399(0x1c2)](_0xbfade3,_0x29aec1,_0x9904fc=_0x35d6ba['TableRowHeightRule'][_0x547399(0x183)]){const _0x41b70e=_0x547399;var _0x4b9c1d;let _0xf7c96c=this['_getDocumentData']();return(_0x4b9c1d=_0xf7c96c['tableSource'])!=null&&(_0x4b9c1d=_0x4b9c1d[this[_0x41b70e(0x1a0)]])!=null&&_0x4b9c1d['tableRows'][_0xbfade3]?this[_0x41b70e(0x156)](_0xf7c96c,(0x0,_0x530f09['buildResizeTableRowActionsFromHeight'])(_0xf7c96c,this[_0x41b70e(0x1a0)],_0xbfade3,_0x29aec1,_0x9904fc)):!0x1;}[_0x547399(0x1bd)](_0x374a34){const _0x32e8b2=_0x547399;var _0x2ad464;let _0x2ee484=(_0x2ad464=this[_0x32e8b2(0x173)]())==null||(_0x2ad464=_0x2ad464[_0x32e8b2(0x1a7)][_0x374a34])==null?void 0x0:_0x2ad464[_0x32e8b2(0x16e)];return _0x2ee484?_0x35d6ba[_0x32e8b2(0x1ba)][_0x32e8b2(0x10e)](_0x2ee484):null;}['setColumnWidth'](_0xf55315,_0x56c521){const _0x5561f9=_0x547399;var _0x574d59;let _0x42d2df=this[_0x5561f9(0x1a6)]();return(_0x574d59=_0x42d2df[_0x5561f9(0x1c8)])!=null&&(_0x574d59=_0x574d59[this[_0x5561f9(0x1a0)]])!=null&&_0x574d59['tableColumns'][_0xf55315]?this[_0x5561f9(0x156)](_0x42d2df,(0x0,_0x530f09[_0x5561f9(0x1d0)])(_0x42d2df,this[_0x5561f9(0x1a0)],_0xf55315,_0x56c521)):!0x1;}[_0x547399(0x1a4)](_0x4a0802=0x0,_0x4a39ed=this[_0x547399(0x1b6)]()){const _0x27a788=_0x547399;let _0x44fb44=this['_getDocumentData']();return this[_0x27a788(0x156)](_0x44fb44,(0x0,_0x530f09[_0x27a788(0x1b3)])(_0x44fb44,this[_0x27a788(0x1a0)],_0x4a0802,_0x4a0802+_0x4a39ed-0x1));}[_0x547399(0x113)](_0x300deb=0x0,_0x1535b6=this['getColumnCount']()){const _0x2fc1b5=_0x547399;let _0x26b39d=this['_getDocumentData']();return this[_0x2fc1b5(0x156)](_0x26b39d,(0x0,_0x530f09[_0x2fc1b5(0x1b5)])(_0x26b39d,this[_0x2fc1b5(0x1a0)],_0x300deb,_0x300deb+_0x1535b6-0x1));}['getHeaderRowCount'](){const _0x13171c=_0x547399;var _0x1c0090;return((_0x1c0090=this[_0x13171c(0x167)]())==null?void 0x0:_0x1c0090[_0x13171c(0x1ae)])??0x0;}['setHeaderRowCount'](_0x4b89c2){const _0x414483=_0x547399;let _0x1b8242=this['_getDocumentData'](),_0x25cee7=(0x0,_0x530f09[_0x414483(0x1ab)])(_0x1b8242,this[_0x414483(0x1a0)],_0x4b89c2);return _0x25cee7?this[_0x414483(0x156)](_0x1b8242,_0x25cee7['actions']):!0x1;}[_0x547399(0x1af)](_0xf2b72){return this['setHeaderRowCount'](_0xf2b72);}['hasTitleRow'](){const _0x55b6bb=_0x547399;var _0x562260;return((_0x562260=this[_0x55b6bb(0x167)]())==null?void 0x0:_0x562260[_0x55b6bb(0x180)])??!0x1;}['insertTitleRow'](){const _0x1d89c9=_0x547399;let _0x5c8948=this[_0x1d89c9(0x1a6)](),_0x5e02f4=(0x0,_0x530f09[_0x1d89c9(0x12a)])(_0x5c8948,this[_0x1d89c9(0x1a0)],this[_0x1d89c9(0x11b)]());return _0x5e02f4?this[_0x1d89c9(0x156)](_0x5c8948,_0x5e02f4[_0x1d89c9(0x116)]):!0x1;}[_0x547399(0x19e)](_0x2fa2f5,_0x39baf4){const _0x3c52c7=_0x547399;return!!this[_0x3c52c7(0x134)][_0x3c52c7(0x15d)](_0x530f09['DocsTableSetColumnTypeCommand']['id'],{'unitId':this[_0x3c52c7(0x1c1)],'tableId':this['_tableId'],'segmentId':this[_0x3c52c7(0x164)],'column':_0x2fa2f5,'config':_0x39baf4});}[_0x547399(0x150)](_0x21bac7,_0x57a517){const _0x47e676=_0x547399;let _0x51ed1c=this[_0x47e676(0x1a6)]();return this[_0x47e676(0x156)](_0x51ed1c,(0x0,_0x530f09[_0x47e676(0x1b1)])(_0x51ed1c,this[_0x47e676(0x118)](),this[_0x47e676(0x1a0)],_0x21bac7,_0x57a517,this[_0x47e676(0x11b)]()));}[_0x547399(0x142)](_0x207da5,_0x19bf49,_0x3260af){const _0x91e3e6=_0x547399;return(0x0,_0x530f09[_0x91e3e6(0x14e)])({'documentData':_0x207da5,'tableId':this[_0x91e3e6(0x1a0)],..._0x19bf49,'preset':_0x3260af[_0x91e3e6(0x19c)]??_0x530f09[_0x91e3e6(0x182)]['All'],'border':_0x3260af['border']??{'color':{'rgb':_0x3260af[_0x91e3e6(0x107)]??this[_0x91e3e6(0x1bc)]['get'](_0x35d6ba[_0x91e3e6(0x11d)])[_0x91e3e6(0x1e7)](_0x91e3e6(0x1cc))},'width':{'v':_0x3260af[_0x91e3e6(0x192)]??0x1},'dashStyle':_0x35d6ba['DashStyleType'][_0x91e3e6(0x18f)]}});}['_getDocumentData'](){const _0x7f35d5=_0x547399;let _0x3a0026=this[_0x7f35d5(0x119)][_0x7f35d5(0x137)]()['getSnapshot']();return this['_segmentId']?{...this[_0x7f35d5(0x119)][_0x7f35d5(0x137)](this[_0x7f35d5(0x164)])[_0x7f35d5(0x14f)](),'documentStyle':_0x3a0026[_0x7f35d5(0x109)],'tableSource':_0x3a0026[_0x7f35d5(0x1c8)]}:_0x3a0026;}['_serializeModel'](){const _0x56215c=_0x547399;return this[_0x56215c(0x1bc)][_0x56215c(0x1dc)](_0x530f09[_0x56215c(0x10f)])[_0x56215c(0x1b8)](this[_0x56215c(0x1c1)],this[_0x56215c(0x119)][_0x56215c(0x137)]()[_0x56215c(0x14f)]());}[_0x547399(0x11b)](){const _0x2f3cf1=_0x547399;return(0x0,_0x530f09[_0x2f3cf1(0x1bb)])(this[_0x2f3cf1(0x119)][_0x2f3cf1(0x137)]()[_0x2f3cf1(0x14f)](),this[_0x2f3cf1(0x164)]);}[_0x547399(0x156)](_0x36487c,_0x193502,_0x2821bd){const _0x2eec5b=_0x547399;return(0x0,_0x530f09[_0x2eec5b(0x16a)])(this[_0x2eec5b(0x134)],this['_unitId'],_0x36487c,_0x193502,_0x2821bd?{'tableId':this[_0x2eec5b(0x1a0)],'segmentId':this['_segmentId'],..._0x2821bd}:void 0x0);}};_0xb5b7cc=_0x4e3f4f([_0x473624(0x3,_0x35d6ba[_0x547399(0x132)]),_0x473624(0x4,(0x0,_0x35d6ba[_0x547399(0x175)])(_0x35d6ba[_0x547399(0x159)]))],_0xb5b7cc);var _0x4d38ab=class extends _0x1d09dc['FDocument']{[_0x547399(0x1e1)](_0x4dc651=''){const _0x404a59=_0x547399;return this['_getTables'](_0x4dc651)[_0x404a59(0x1a1)](_0x59aad5=>this['_createFDocumentTable'](_0x59aad5[_0x404a59(0x10a)],_0x4dc651));}[_0x547399(0x149)](_0x30af3c,_0x4ca4d0=''){const _0x558ca4=_0x547399;return this[_0x558ca4(0x15c)](_0x4ca4d0)[_0x558ca4(0x174)](_0x57e5a1=>_0x57e5a1[_0x558ca4(0x10a)]===_0x30af3c)?this[_0x558ca4(0x1de)](_0x30af3c,_0x4ca4d0):null;}[_0x547399(0x1aa)](_0x54916f,_0x9ab656=''){const _0xd79862=_0x547399;var _0x131b34;let _0x35f2af=(_0x131b34=this[_0xd79862(0x15c)](_0x9ab656)[_0x54916f])==null?void 0x0:_0x131b34[_0xd79862(0x10a)];return _0x35f2af?this[_0xd79862(0x1de)](_0x35f2af,_0x9ab656):null;}[_0x547399(0x14a)](){const _0x486567=_0x547399;let _0x15ee92=this[_0x486567(0x1bc)][_0x486567(0x1dc)](_0x530f09['DocsTableSelectionService'])['getStableTableSelection']();return _0x15ee92!=null&&_0x15ee92[_0x486567(0x10a)]?this[_0x486567(0x1de)](_0x15ee92['tableId'],_0x15ee92[_0x486567(0x14d)]):null;}[_0x547399(0x122)](_0x36ca18,_0x2d3531=''){const _0x32a8e8=_0x547399;return this[_0x32a8e8(0x127)](_0x36ca18,_0x2d3531)[0x0]??null;}[_0x547399(0x127)](_0x2ce3ba,_0x517a5b=''){const _0x53cee0=_0x547399;let _0x14c528=this['_getTableDocumentData'](_0x517a5b),_0x184bf6=typeof _0x2ce3ba==_0x53cee0(0x17e)?{'text':_0x2ce3ba}:_0x2ce3ba;return this[_0x53cee0(0x1e1)](_0x517a5b)[_0x53cee0(0x126)](_0x2c8fd9=>{const _0x56636d=_0x53cee0;let _0x274b44=_0x2c8fd9[_0x56636d(0x165)]();return!(_0x184bf6['tableId']&&_0x274b44!==_0x184bf6[_0x56636d(0x10a)]||_0x184bf6[_0x56636d(0x194)]&&!this[_0x56636d(0x1c4)](_0x14c528,_0x274b44,_0x184bf6[_0x56636d(0x194)])||_0x184bf6[_0x56636d(0x19b)]&&!this['_rowContainsText'](_0x2c8fd9,0x0,_0x184bf6[_0x56636d(0x19b)])||_0x184bf6['titleText']&&!this['_rowContainsText'](_0x2c8fd9,0x0,_0x184bf6['titleText']));});}[_0x547399(0x17a)](_0x122730,_0x15bc64,_0x74fe2a={}){const _0x428deb=_0x547399;let _0x42d0ed=this[_0x428deb(0x1bc)]['get'](_0x35d6ba[_0x428deb(0x132)]),_0x55a254=_0x74fe2a[_0x428deb(0x10a)]??(0x0,_0x35d6ba[_0x428deb(0x160)])(0x6);return _0x42d0ed[_0x428deb(0x15d)](_0x530f09[_0x428deb(0x1c7)]['id'],{..._0x74fe2a,'unitId':this['getId'](),'rows':_0x122730,'columns':_0x15bc64,'tableId':_0x55a254})?this[_0x428deb(0x1de)](_0x55a254,_0x74fe2a[_0x428deb(0x14d)]??''):null;}[_0x547399(0x1b0)](_0x238f59,_0x1b4726={}){const _0x45c561=_0x547399;let _0x579830=this[_0x45c561(0x1bc)][_0x45c561(0x1dc)](_0x35d6ba[_0x45c561(0x132)]),_0x3f4f19=_0x1b4726[_0x45c561(0x10a)]??(0x0,_0x35d6ba[_0x45c561(0x160)])(0x6);return _0x579830[_0x45c561(0x15d)](_0x530f09[_0x45c561(0x1c7)]['id'],{..._0x1b4726,'unitId':this[_0x45c561(0x165)](),'values':_0x238f59,'tableId':_0x3f4f19})?this[_0x45c561(0x1de)](_0x3f4f19,_0x1b4726[_0x45c561(0x14d)]??''):null;}[_0x547399(0x15c)](_0x12deab=''){const _0x2463b2=_0x547399;let {tables:_0x5cc3ee=[]}=this[_0x2463b2(0x186)](_0x12deab);return _0x5cc3ee;}[_0x547399(0x179)](_0x519db5=''){const _0x2b856f=_0x547399;let _0x149e48=this[_0x2b856f(0x137)]()[_0x2b856f(0x14f)]();return _0x519db5?{...this[_0x2b856f(0x137)](_0x519db5)[_0x2b856f(0x14f)](),'documentStyle':_0x149e48['documentStyle'],'tableSource':_0x149e48[_0x2b856f(0x1c8)]}:_0x149e48;}['_createFDocumentTable'](_0x11bf4f,_0x57a724=''){const _0x326d4e=_0x547399;return this[_0x326d4e(0x1bc)][_0x326d4e(0x108)](_0xb5b7cc,this,_0x11bf4f,_0x57a724);}['_tableContainsText'](_0x1ca27e,_0x4309dd,_0x4c7036){const _0x42a129=_0x547399;var _0x1ceb30;let _0x27197f=(0x0,_0x530f09[_0x42a129(0x125)])(_0x1ca27e,_0x4309dd);if(!_0x27197f)return!0x1;let _0x16e378=(_0x1ceb30=_0x1ca27e[_0x42a129(0x13b)])==null?void 0x0:_0x1ceb30['dataStream'];return _0x16e378?_0x16e378[_0x42a129(0x1b9)](_0x27197f[_0x42a129(0x120)],_0x27197f['endOffset'])[_0x42a129(0x17b)](_0x4c7036):!0x1;}[_0x547399(0x18d)](_0x466522,_0x2ec364,_0x35c987){const _0x284794=_0x547399;return Array['from']({'length':_0x466522[_0x284794(0x114)]()},(_0x4a5225,_0x200656)=>_0x466522[_0x284794(0x1d5)](_0x2ec364,_0x200656))[_0x284794(0x174)](_0x4d48fb=>_0x4d48fb[_0x284794(0x17b)](_0x35c987));}};_0x1d09dc['FDocument'][_0x547399(0x1c6)](_0x4d38ab),Object[_0x547399(0x16c)](_0x245454,_0x547399(0x19f),{'enumerable':!0x0,'get':function(){return _0xb5b7cc;}}),_0x245454[_0x547399(0x128)]=_0x3b7848;}));