@univerjs-pro/docs-table 1.1.0 → 1.3.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>;
@@ -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;
@@ -0,0 +1,8 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ import { TableAlignmentType } from '@univerjs/core';
3
+ export interface IDocsTableSetTableAlignCommandParams {
4
+ unitId: string;
5
+ tableId: string;
6
+ value: TableAlignmentType;
7
+ }
8
+ export declare const DocsTableSetTableAlignCommand: ICommand<IDocsTableSetTableAlignCommandParams>;
@@ -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;
@@ -16,6 +16,7 @@ export { DocsTableResizeColumnCommand } from './commands/resize-column.command';
16
16
  export { DocsTableResizeRowCommand } from './commands/resize-row.command';
17
17
  export { DocsTableSetColumnTypeCommand } from './commands/set-column-type.command';
18
18
  export { DocsTableSetHeaderRowCountCommand } from './commands/set-header-row-count.command';
19
+ export { DocsTableSetTableAlignCommand } from './commands/set-table-align.command';
19
20
  export { buildSetTableBackgroundMutationActions, DocsTableSetTableBackgroundCommand } from './commands/set-table-background.command';
20
21
  export { DocsTableSetTableBorderColorCommand } from './commands/set-table-border-color.command';
21
22
  export { DocsTableSetTableBorderStyleCommand } from './commands/set-table-border-style.command';
@@ -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;
@@ -1,5 +1,5 @@
1
- import type { IUniverDocsTableConfig } from './config/config';
2
1
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import type { IUniverDocsTableConfig } from './config/config';
3
3
  export declare class UniverDocsTablePlugin extends Plugin {
4
4
  private readonly _config;
5
5
  readonly _injector: Injector;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3be5ec,_0x33afdb){const _0x5e81a5=_0x4034,_0x1baf22=_0x3be5ec();while(!![]){try{const _0x13724b=-parseInt(_0x5e81a5(0x19d))/0x1*(parseInt(_0x5e81a5(0x138))/0x2)+parseInt(_0x5e81a5(0x154))/0x3*(parseInt(_0x5e81a5(0x1b0))/0x4)+-parseInt(_0x5e81a5(0x131))/0x5+parseInt(_0x5e81a5(0x120))/0x6*(parseInt(_0x5e81a5(0x19c))/0x7)+-parseInt(_0x5e81a5(0x17c))/0x8+parseInt(_0x5e81a5(0x13f))/0x9+-parseInt(_0x5e81a5(0x13a))/0xa*(parseInt(_0x5e81a5(0xf5))/0xb);if(_0x13724b===_0x33afdb)break;else _0x1baf22['push'](_0x1baf22['shift']());}catch(_0xe23716){_0x1baf22['push'](_0x1baf22['shift']());}}}(_0x36e0,0x35def),function(_0x448dcf,_0x326d97){const _0x4d0364=_0x4034;typeof exports==_0x4d0364(0x195)&&typeof module<'u'?_0x326d97(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x4d0364(0x178)&&define['amd']?define([_0x4d0364(0x133),'@univerjs-pro/docs-table',_0x4d0364(0x152),_0x4d0364(0x16a),_0x4d0364(0x1c6)],_0x326d97):(_0x448dcf=typeof globalThis<'u'?globalThis:_0x448dcf||self,_0x326d97(_0x448dcf[_0x4d0364(0x12c)]={},_0x448dcf[_0x4d0364(0x137)],_0x448dcf['UniverCore'],_0x448dcf['UniverCoreFacade'],_0x448dcf[_0x4d0364(0x1bf)]));}(this,function(_0x510155,_0x4dd93b,_0x1999b9,_0x487c0e,_0x5a829b){const _0x32e825=_0x4034;Object[_0x32e825(0x188)](_0x510155,Symbol[_0x32e825(0xe3)],{'value':_0x32e825(0x14c)});var _0x1692e1=class extends _0x487c0e['FEnum']{get[_0x32e825(0x123)](){const _0xd6cd39=_0x32e825;return _0x4dd93b[_0xd6cd39(0x123)];}get[_0x32e825(0x15f)](){const _0x4cc9b0=_0x32e825;return _0x4dd93b[_0x4cc9b0(0x15f)];}get[_0x32e825(0x1c4)](){return _0x4dd93b['DocsTableSelectionKind'];}get[_0x32e825(0x115)](){return _0x4dd93b['DocsTableRowInsertPosition'];}get['DocsTableColumnInsertPosition'](){const _0xe1ce75=_0x32e825;return _0x4dd93b[_0xe1ce75(0x14e)];}get[_0x32e825(0x147)](){const _0x52b441=_0x32e825;return _0x4dd93b[_0x52b441(0x147)];}get['DocsTableSortDirection'](){const _0x5238b1=_0x32e825;return _0x4dd93b[_0x5238b1(0x136)];}get[_0x32e825(0x130)](){const _0x3092c4=_0x32e825;return _0x1999b9[_0x3092c4(0x130)];}};_0x487c0e[_0x32e825(0x164)][_0x32e825(0x1b5)](_0x1692e1);var _0x47a610=class{constructor(_0x51bd48,_0x53c6b3,_0x1cf9b7){const _0x53dbc9=_0x32e825;this[_0x53dbc9(0x194)]=_0x51bd48,this[_0x53dbc9(0x13b)]=_0x53c6b3,this[_0x53dbc9(0xef)]=_0x1cf9b7;}[_0x32e825(0x15d)](){const _0x388152=_0x32e825;return this[_0x388152(0x194)];}['getRowIndex'](){return this['_row'];}[_0x32e825(0x18f)](){const _0x5d158d=_0x32e825;return this[_0x5d158d(0xef)];}['getText'](){const _0x569028=_0x32e825;return this[_0x569028(0x194)][_0x569028(0x1a0)](this[_0x569028(0x13b)],this[_0x569028(0xef)]);}[_0x32e825(0x1b4)](){const _0x9e070f=_0x32e825;return this[_0x9e070f(0x194)][_0x9e070f(0x1bc)](this[_0x9e070f(0x13b)],this[_0x9e070f(0xef)]);}[_0x32e825(0x199)](){const _0x1c7aeb=_0x32e825;return this['_table'][_0x1c7aeb(0x106)](this['_row'],this[_0x1c7aeb(0xef)]);}[_0x32e825(0x180)](){const _0x391b87=_0x32e825;return this[_0x391b87(0x194)][_0x391b87(0x102)](this[_0x391b87(0x13b)],this[_0x391b87(0xef)]);}[_0x32e825(0x196)](){const _0xe94355=_0x32e825;return this[_0xe94355(0x194)][_0xe94355(0x1a4)](this[_0xe94355(0x13b)],this[_0xe94355(0xef)]);}[_0x32e825(0x1c5)](_0x2fa238){const _0x26c2cd=_0x32e825;return this[_0x26c2cd(0x194)]['setCellMargin'](this[_0x26c2cd(0x194)][_0x26c2cd(0x1c1)](this[_0x26c2cd(0x13b)],this[_0x26c2cd(0xef)]),_0x2fa238);}['clearMarginOverride'](){const _0x21a382=_0x32e825;return this[_0x21a382(0x194)][_0x21a382(0x167)](this[_0x21a382(0x194)][_0x21a382(0x1c1)](this[_0x21a382(0x13b)],this[_0x21a382(0xef)]),null);}[_0x32e825(0x13c)](_0x42e83f){const _0x49b371=_0x32e825;return this[_0x49b371(0x194)][_0x49b371(0x18a)](this[_0x49b371(0x13b)],this[_0x49b371(0xef)],_0x42e83f);}[_0x32e825(0x144)](_0x12169d){const _0x494d0b=_0x32e825;return this['_table'][_0x494d0b(0xe8)](this[_0x494d0b(0x194)][_0x494d0b(0x1c1)](this[_0x494d0b(0x13b)],this['_column']),_0x12169d);}['setBorder'](_0x18ebba){const _0x267910=_0x32e825;return this[_0x267910(0x194)]['setBorder'](this[_0x267910(0x194)]['getCellRange'](this[_0x267910(0x13b)],this[_0x267910(0xef)]),_0x18ebba);}[_0x32e825(0xfb)](_0x5c42be,_0x4af02f){const _0x425f0c=_0x32e825;return this['_table'][_0x425f0c(0x1ab)]({'startRow':this[_0x425f0c(0x13b)],'startColumn':this[_0x425f0c(0xef)],'endRow':this[_0x425f0c(0x13b)]+_0x5c42be-0x1,'endColumn':this[_0x425f0c(0xef)]+_0x4af02f-0x1});}[_0x32e825(0x103)](){const _0x383562=_0x32e825;return this[_0x383562(0x194)][_0x383562(0x135)](this[_0x383562(0x194)]['getCellRange'](this[_0x383562(0x13b)],this[_0x383562(0xef)]));}};function _0x25391f(_0x1a52b9){'@babel/helpers - typeof';const _0x4eb6e5=_0x32e825;return _0x25391f=typeof Symbol==_0x4eb6e5(0x178)&&typeof Symbol[_0x4eb6e5(0x109)]==_0x4eb6e5(0x19b)?function(_0x2218bd){return typeof _0x2218bd;}:function(_0x13fef5){const _0x498d7b=_0x4eb6e5;return _0x13fef5&&typeof Symbol==_0x498d7b(0x178)&&_0x13fef5[_0x498d7b(0x192)]===Symbol&&_0x13fef5!==Symbol[_0x498d7b(0x126)]?_0x498d7b(0x19b):typeof _0x13fef5;},_0x25391f(_0x1a52b9);}function _0x1cc609(_0x48ed84,_0x150135){const _0x296620=_0x32e825;if(_0x25391f(_0x48ed84)!=_0x296620(0x195)||!_0x48ed84)return _0x48ed84;var _0x1088f9=_0x48ed84[Symbol[_0x296620(0xec)]];if(_0x1088f9!==void 0x0){var _0x5021a7=_0x1088f9[_0x296620(0x101)](_0x48ed84,_0x150135||'default');if(_0x25391f(_0x5021a7)!=_0x296620(0x195))return _0x5021a7;throw TypeError(_0x296620(0x1bb));}return(_0x150135===_0x296620(0xfe)?String:Number)(_0x48ed84);}function _0x2b7648(_0x98c6cd){const _0x4ed628=_0x32e825;var _0x39f00c=_0x1cc609(_0x98c6cd,_0x4ed628(0xfe));return _0x25391f(_0x39f00c)=='symbol'?_0x39f00c:_0x39f00c+'';}function _0x3dd63e(_0x5b9d17,_0x2bce51,_0x21e4c7){const _0x53050a=_0x32e825;return(_0x2bce51=_0x2b7648(_0x2bce51))in _0x5b9d17?Object[_0x53050a(0x188)](_0x5b9d17,_0x2bce51,{'value':_0x21e4c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b9d17[_0x2bce51]=_0x21e4c7,_0x5b9d17;}function _0x3c73a1(_0x37aa40,_0x3d1789){return function(_0x19103f,_0x195241){_0x3d1789(_0x19103f,_0x195241,_0x37aa40);};}function _0x3e3bd3(_0x40eab4,_0x49c82a,_0x1c7b64,_0x3eea08){const _0x21097c=_0x32e825;var _0x1226f8=arguments[_0x21097c(0x193)],_0x4127d6=_0x1226f8<0x3?_0x49c82a:_0x3eea08===null?_0x3eea08=Object[_0x21097c(0xe1)](_0x49c82a,_0x1c7b64):_0x3eea08,_0x199c8f;if(typeof Reflect==_0x21097c(0x195)&&typeof Reflect[_0x21097c(0x169)]=='function')_0x4127d6=Reflect[_0x21097c(0x169)](_0x40eab4,_0x49c82a,_0x1c7b64,_0x3eea08);else{for(var _0x50d880=_0x40eab4[_0x21097c(0x193)]-0x1;_0x50d880>=0x0;_0x50d880--)(_0x199c8f=_0x40eab4[_0x50d880])&&(_0x4127d6=(_0x1226f8<0x3?_0x199c8f(_0x4127d6):_0x1226f8>0x3?_0x199c8f(_0x49c82a,_0x1c7b64,_0x4127d6):_0x199c8f(_0x49c82a,_0x1c7b64))||_0x4127d6);}return _0x1226f8>0x3&&_0x4127d6&&Object[_0x21097c(0x188)](_0x49c82a,_0x1c7b64,_0x4127d6),_0x4127d6;}let _0x57145d=class{constructor(_0x652a10,_0x5d355c,_0x2ea9b4,_0x5a15eb,_0x38e2c2){const _0x3cf676=_0x32e825;this[_0x3cf676(0xfa)]=_0x652a10,this[_0x3cf676(0xe2)]=_0x5d355c,this[_0x3cf676(0xf1)]=_0x2ea9b4,this['_commandService']=_0x5a15eb,this[_0x3cf676(0x171)]=_0x38e2c2,_0x3dd63e(this,'_unitId',void 0x0),this[_0x3cf676(0x1a6)]=this[_0x3cf676(0xfa)][_0x3cf676(0x149)]();}[_0x32e825(0x149)](){const _0x43661d=_0x32e825;return this[_0x43661d(0xe2)];}[_0x32e825(0x100)](){const _0x209aae=_0x32e825;return this[_0x209aae(0xf1)];}[_0x32e825(0x179)](){const _0x58096c=_0x32e825;return{'id':this['_tableId'],'rowCount':this['getRowCount'](),'columnCount':this[_0x58096c(0x1ae)](),'metadata':this[_0x58096c(0x148)](),'source':this[_0x58096c(0x142)]()};}['describe'](){const _0x55747c=_0x32e825;let _0x108582=this[_0x55747c(0x148)](),_0x24c067=this[_0x55747c(0x142)](),_0xf2e1b=this[_0x55747c(0x1ae)]();return{'id':this[_0x55747c(0xe2)],'rowCount':this[_0x55747c(0x176)](),'columnCount':_0xf2e1b,'headerRowCount':(_0x108582==null?void 0x0:_0x108582[_0x55747c(0xe9)])??0x0,'titleRow':(_0x108582==null?void 0x0:_0x108582[_0x55747c(0x11e)])??!0x1,'columns':Array['from']({'length':_0xf2e1b},(_0x55defc,_0x420d4a)=>{const _0x3d2c64=_0x55747c;var _0x3f43af,_0x297788;return{'index':_0x420d4a,'type':_0x108582==null||(_0x3f43af=_0x108582['columnTypes'])==null||(_0x3f43af=_0x3f43af[_0x420d4a])==null?void 0x0:_0x3f43af[_0x3d2c64(0x18b)],'width':_0x24c067==null||(_0x297788=_0x24c067[_0x3d2c64(0x1b8)][_0x420d4a])==null?void 0x0:_0x297788[_0x3d2c64(0x119)][_0x3d2c64(0x12b)]['v']};}),'sampleRows':Array[_0x55747c(0x17f)]({'length':this[_0x55747c(0x176)]()},(_0x4d72ba,_0x1396da)=>Array[_0x55747c(0x17f)]({'length':_0xf2e1b},(_0x441de4,_0x1d2964)=>this['getCellText'](_0x1396da,_0x1d2964)))[_0x55747c(0x139)](_0x5033fe=>_0x5033fe['some'](_0x48878a=>_0x48878a['length']>0x0))['slice'](0x0,0x5)};}[_0x32e825(0x176)](){const _0x5caa0a=_0x32e825;var _0x8c01d7;return((_0x8c01d7=this[_0x5caa0a(0x142)]())==null?void 0x0:_0x8c01d7['tableRows'][_0x5caa0a(0x193)])??0x0;}[_0x32e825(0x1ae)](){const _0x412aed=_0x32e825;var _0xac8379;return((_0xac8379=this[_0x412aed(0x142)]())==null?void 0x0:_0xac8379['tableColumns']['length'])??0x0;}[_0x32e825(0x10f)](_0x2065cc,_0x297dd2){const _0x505dbb=_0x32e825;var _0x353eaa;return(_0x353eaa=this[_0x505dbb(0x142)]())!=null&&(_0x353eaa=_0x353eaa[_0x505dbb(0x1be)][_0x2065cc])!=null&&_0x353eaa[_0x505dbb(0x189)][_0x297dd2]?this[_0x505dbb(0x171)][_0x505dbb(0x1a2)](_0x47a610,this,_0x2065cc,_0x297dd2):null;}[_0x32e825(0x1a0)](_0x199cb4,_0x3b32e7){const _0xe710=_0x32e825;var _0x3ee614,_0x56a159;let _0x28ad1f=(_0x3ee614=(0x0,_0x4dd93b[_0xe710(0x1af)])(this[_0xe710(0x14f)](),this[_0xe710(0xe2)]))==null||(_0x3ee614=_0x3ee614[_0xe710(0x1a8)][_0x199cb4])==null?void 0x0:_0x3ee614['cells'][_0x3b32e7];return _0x28ad1f?((_0x56a159=this[_0xe710(0x14f)]()[_0xe710(0x155)])==null?void 0x0:_0x56a159['dataStream'][_0xe710(0xe4)](_0x28ad1f[_0xe710(0x1ac)]+0x1,_0x28ad1f[_0xe710(0x1ba)])[_0xe710(0x1aa)](/\r\n$/,''))??'':'';}[_0x32e825(0x102)](_0x3324a2,_0x54d285){const _0x31928c=_0x32e825;var _0x207ec4;let _0x325352=this['getSource'](),_0x1a8dce=_0x325352==null||(_0x207ec4=_0x325352[_0x31928c(0x1be)][_0x3324a2])==null?void 0x0:_0x207ec4['tableCells'][_0x54d285];return _0x1a8dce?_0x1999b9[_0x31928c(0x19e)][_0x31928c(0x113)](_0x1a8dce[_0x31928c(0x151)]??_0x325352[_0x31928c(0x1a1)]??_0x4dd93b[_0x31928c(0xf9)]):null;}[_0x32e825(0x1a4)](_0x2a6494,_0x11d55f){const _0x39fa6d=_0x32e825;var _0x113b6b;let _0x36c260=(_0x113b6b=this['getSource']())==null||(_0x113b6b=_0x113b6b['tableRows'][_0x2a6494])==null?void 0x0:_0x113b6b[_0x39fa6d(0x189)][_0x11d55f];return _0x36c260!=null&&_0x36c260[_0x39fa6d(0x151)]?_0x1999b9[_0x39fa6d(0x19e)][_0x39fa6d(0x113)](_0x36c260[_0x39fa6d(0x151)]):null;}[_0x32e825(0xe7)](){const _0x403928=_0x32e825;var _0x39ce3e;return _0x1999b9[_0x403928(0x19e)][_0x403928(0x113)](((_0x39ce3e=this[_0x403928(0x142)]())==null?void 0x0:_0x39ce3e[_0x403928(0x1a1)])??_0x4dd93b[_0x403928(0xf9)]);}[_0x32e825(0xe5)](){const _0xdbea79=_0x32e825;var _0x571d19;let _0x1f95f4=(_0x571d19=this[_0xdbea79(0x142)]())==null?void 0x0:_0x571d19[_0xdbea79(0x1a1)];return _0x1f95f4?_0x1999b9[_0xdbea79(0x19e)][_0xdbea79(0x113)](_0x1f95f4):null;}[_0x32e825(0x148)](){const _0x1d25d2=_0x32e825;return this[_0x1d25d2(0x171)][_0x1d25d2(0x1b6)](_0x4dd93b[_0x1d25d2(0x18e)])[_0x1d25d2(0x118)](this['_unitId'],this[_0x1d25d2(0xe2)]);}['getSource'](){const _0x173efc=_0x32e825;var _0x28f12e;return(_0x28f12e=this[_0x173efc(0x14f)]()[_0x173efc(0x181)])==null?void 0x0:_0x28f12e[this[_0x173efc(0xe2)]];}['getRange'](){const _0x4c4103=_0x32e825;return(0x0,_0x4dd93b[_0x4c4103(0x1af)])(this[_0x4c4103(0x14f)](),this['_tableId']);}[_0x32e825(0x10e)](){const _0x22526b=_0x32e825;return{'startRow':0x0,'endRow':Math[_0x22526b(0x1b2)](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x22526b(0x1b2)](0x0,this[_0x22526b(0x1ae)]()-0x1)};}['getCellRange'](_0x3f13a3,_0x1098ce){return{'startRow':_0x3f13a3,'endRow':_0x3f13a3,'startColumn':_0x1098ce,'endColumn':_0x1098ce};}[_0x32e825(0x1bc)](_0x46ccef,_0xcaab5){const _0xc394dd=_0x32e825;var _0x51511c;let _0x425b1c=(_0x51511c=(0x0,_0x4dd93b[_0xc394dd(0x1af)])(this[_0xc394dd(0x14f)](),this['_tableId']))==null||(_0x51511c=_0x51511c[_0xc394dd(0x1a8)][_0x46ccef])==null?void 0x0:_0x51511c[_0xc394dd(0x165)][_0xcaab5];if(!_0x425b1c)return null;let _0x11bf1f=_0x425b1c[_0xc394dd(0x1ac)]+0x1;return{'startOffset':_0x11bf1f,'endOffset':Math['max'](_0x11bf1f,_0x425b1c['endOffset']-0x1),'segmentId':this[_0xc394dd(0xf1)]};}['getCellInsertOffset'](_0x29cf2d,_0x2df425){const _0x339cc0=_0x32e825;let _0x1251bb=this[_0x339cc0(0x1bc)](_0x29cf2d,_0x2df425);return _0x1251bb?Math[_0x339cc0(0x1b2)](_0x1251bb[_0x339cc0(0x1ac)],_0x1251bb[_0x339cc0(0x1ba)]-0x1):null;}['getRowRange'](_0x3c6dcb){return this['getRowsRange'](_0x3c6dcb,0x1);}[_0x32e825(0x140)](_0x521814,_0x5e47ce=0x1){const _0x1bf070=_0x32e825;return{'startRow':_0x521814,'endRow':_0x521814+_0x5e47ce-0x1,'startColumn':0x0,'endColumn':Math[_0x1bf070(0x1b2)](0x0,this[_0x1bf070(0x1ae)]()-0x1)};}[_0x32e825(0x156)](_0x32bd04){const _0x5c60d6=_0x32e825;return this[_0x5c60d6(0x17d)](_0x32bd04,0x1);}['getColumnsRange'](_0x3ae2e5,_0x366e9b=0x1){const _0x382e61=_0x32e825;return{'startRow':0x0,'endRow':Math[_0x382e61(0x1b2)](0x0,this['getRowCount']()-0x1),'startColumn':_0x3ae2e5,'endColumn':_0x3ae2e5+_0x366e9b-0x1};}[_0x32e825(0x10c)](){const _0x5e9a4d=_0x32e825;return this[_0x5e9a4d(0x173)](this[_0x5e9a4d(0x10e)](),_0x4dd93b['DocsTableSelectionKind'][_0x5e9a4d(0x19f)]);}[_0x32e825(0xed)](_0x753fd5){const _0x188d1b=_0x32e825;return this[_0x188d1b(0x182)](_0x753fd5,0x1);}[_0x32e825(0x182)](_0x9c5dfc,_0x3a4bd8=0x1){const _0x122a9f=_0x32e825;return this['selectRange'](this[_0x122a9f(0x140)](_0x9c5dfc,_0x3a4bd8),_0x4dd93b[_0x122a9f(0x1c4)][_0x122a9f(0x159)]);}[_0x32e825(0x17b)](_0x4c62f3){const _0x2814ec=_0x32e825;return this[_0x2814ec(0x1b9)](_0x4c62f3,0x1);}[_0x32e825(0x1b9)](_0x15b9d5,_0x51a738=0x1){const _0x1b9c0a=_0x32e825;return this[_0x1b9c0a(0x173)](this[_0x1b9c0a(0x17d)](_0x15b9d5,_0x51a738),_0x4dd93b['DocsTableSelectionKind'][_0x1b9c0a(0x111)]);}[_0x32e825(0x17e)](_0xa188a2,_0x103230){const _0x59c23e=_0x32e825;return this[_0x59c23e(0x173)](this[_0x59c23e(0x1c1)](_0xa188a2,_0x103230),_0x4dd93b[_0x59c23e(0x1c4)][_0x59c23e(0xfd)]);}[_0x32e825(0x173)](_0x2cae25,_0x5d697d=_0x4dd93b[_0x32e825(0x1c4)][_0x32e825(0x1c2)]){const _0x1d3968=_0x32e825;return this[_0x1d3968(0x171)][_0x1d3968(0x1b6)](_0x4dd93b[_0x1d3968(0x15c)])[_0x1d3968(0x110)]({..._0x2cae25,'kind':_0x5d697d,'segmentId':this[_0x1d3968(0xf1)],'tableId':this[_0x1d3968(0xe2)]}),!0x0;}[_0x32e825(0x190)](_0x368a13){return this['insertRowsBefore'](_0x368a13,0x1);}[_0x32e825(0x143)](_0x534eb2){return this['insertRowsAfter'](_0x534eb2,0x1);}['insertRowsBefore'](_0x1d0065,_0x9ade64){const _0x1581df=_0x32e825;let _0x18d6d1=this[_0x1581df(0x14f)](),_0x2a657c=(0x0,_0x4dd93b[_0x1581df(0x125)])(_0x18d6d1,this[_0x1581df(0xe2)],_0x1d0065,_0x9ade64,_0x4dd93b['DocsTableInsertPosition'][_0x1581df(0x184)],this['_getBodyPath']());return _0x2a657c?this[_0x1581df(0x1a5)](_0x18d6d1,_0x2a657c[_0x1581df(0x170)]):!0x1;}[_0x32e825(0xf2)](_0x6775e7,_0x3f49ac){const _0x250f9f=_0x32e825;let _0x417bfe=this[_0x250f9f(0x14f)](),_0x1c672a=(0x0,_0x4dd93b['buildInsertTableRowsMutationActions'])(_0x417bfe,this[_0x250f9f(0xe2)],_0x6775e7,_0x3f49ac,_0x4dd93b[_0x250f9f(0x185)]['Below'],this[_0x250f9f(0xf4)]());return _0x1c672a?this[_0x250f9f(0x1a5)](_0x417bfe,_0x1c672a[_0x250f9f(0x170)]):!0x1;}[_0x32e825(0xeb)](){const _0x41f237=_0x32e825;return this[_0x41f237(0xf2)](Math['max'](0x0,this[_0x41f237(0x176)]()-0x1),0x1);}[_0x32e825(0xff)](_0x24cd33){const _0x4245f5=_0x32e825;return this[_0x4245f5(0x1c0)](_0x24cd33,0x1);}['insertColumnAfter'](_0x5c21f9){return this['insertColumnsAfter'](_0x5c21f9,0x1);}[_0x32e825(0x1c0)](_0x18abf3,_0x258644){const _0x2a7bb7=_0x32e825;let _0x3ea2b8=this[_0x2a7bb7(0x14f)](),_0x45e971=(0x0,_0x4dd93b[_0x2a7bb7(0xee)])(_0x3ea2b8,this['_tableId'],_0x18abf3,_0x258644,_0x4dd93b[_0x2a7bb7(0x185)][_0x2a7bb7(0x186)],{'bodyPath':this[_0x2a7bb7(0xf4)]()});return _0x45e971?this[_0x2a7bb7(0x1a5)](_0x3ea2b8,_0x45e971[_0x2a7bb7(0x170)]):!0x1;}[_0x32e825(0x172)](_0x50bfe9,_0xb741e4){const _0x123eaa=_0x32e825;let _0x4d83ea=this[_0x123eaa(0x14f)](),_0x5be21d=(0x0,_0x4dd93b[_0x123eaa(0xee)])(_0x4d83ea,this['_tableId'],_0x50bfe9,_0xb741e4,_0x4dd93b['DocsTableInsertPosition'][_0x123eaa(0x16b)],{'bodyPath':this[_0x123eaa(0xf4)]()});return _0x5be21d?this['_mutateActions'](_0x4d83ea,_0x5be21d[_0x123eaa(0x170)]):!0x1;}['appendColumn'](){const _0x308d8d=_0x32e825;return this['insertColumnsAfter'](Math['max'](0x0,this[_0x308d8d(0x1ae)]()-0x1),0x1);}[_0x32e825(0x14a)](_0x33915b){const _0x299cd1=_0x32e825;return this[_0x299cd1(0x105)](_0x33915b,0x1);}[_0x32e825(0x105)](_0x22d85b,_0x7c05f8=0x1){const _0x5f4558=_0x32e825;return!!this[_0x5f4558(0x12d)][_0x5f4558(0x174)](_0x4dd93b[_0x5f4558(0x18c)]['id'],{'endRow':_0x22d85b+_0x7c05f8-0x1,'segmentId':this[_0x5f4558(0xf1)],'startRow':_0x22d85b,'tableId':this[_0x5f4558(0xe2)],'unitId':this['_unitId']});}['deleteColumn'](_0x437ab4){const _0x50bf41=_0x32e825;return this[_0x50bf41(0x114)](_0x437ab4,0x1);}[_0x32e825(0x114)](_0x5b34d1,_0x59b0ce=0x1){const _0x10f9bb=_0x32e825;return!!this['_commandService']['syncExecuteCommand'](_0x4dd93b['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x5b34d1+_0x59b0ce-0x1,'segmentId':this['_segmentId'],'startColumn':_0x5b34d1,'tableId':this['_tableId'],'unitId':this[_0x10f9bb(0x1a6)]});}[_0x32e825(0x150)](){const _0x6142a5=_0x32e825;return!!this[_0x6142a5(0x12d)][_0x6142a5(0x174)](_0x4dd93b['DocsTableDeleteTableCommand']['id'],{'segmentId':this['_segmentId'],'tableId':this['_tableId'],'unitId':this[_0x6142a5(0x1a6)]});}[_0x32e825(0x15e)](_0x34af5f,_0x15e38e){const _0x330692=_0x32e825;let _0x1a53c7=this['_getDocumentData']();return this[_0x330692(0x1a5)](_0x1a53c7,(0x0,_0x4dd93b[_0x330692(0x1ad)])(_0x1a53c7,this[_0x330692(0xe2)],_0x34af5f,_0x15e38e));}[_0x32e825(0x12f)](_0x159141){const _0x2ceaa2=_0x32e825;let _0xcd2972=this[_0x2ceaa2(0x14f)]();return this['_mutateActions'](_0xcd2972,(0x0,_0x4dd93b[_0x2ceaa2(0x124)])(_0xcd2972,this['_tableId'],_0x159141,this[_0x2ceaa2(0xf4)]()));}['moveRow'](_0x5e33ac,_0x4d5150,_0x7e80ef=_0x4dd93b[_0x32e825(0x185)][_0x32e825(0x184)]){const _0x5664bc=_0x32e825;return this[_0x5664bc(0x168)](_0x5e33ac,0x1,_0x4d5150,_0x7e80ef);}[_0x32e825(0x168)](_0x1ec6d9,_0x2ab9e9,_0x57eaea,_0x59d323=_0x4dd93b['DocsTableInsertPosition'][_0x32e825(0x184)]){const _0x25c6cc=_0x32e825;let _0x2def04=this['_getDocumentData'](),_0x4c3da8=(0x0,_0x4dd93b[_0x25c6cc(0x16e)])(_0x2def04,this[_0x25c6cc(0xe2)],_0x1ec6d9,_0x57eaea,_0x2ab9e9,_0x59d323,this[_0x25c6cc(0xf4)]());return _0x4c3da8?this[_0x25c6cc(0x1a5)](_0x2def04,_0x4c3da8[_0x25c6cc(0x170)]):!0x1;}[_0x32e825(0x13e)](_0x3f71a6,_0xe04848,_0x15cc2d=_0x4dd93b[_0x32e825(0x185)][_0x32e825(0x186)]){const _0xa60ce8=_0x32e825;return this[_0xa60ce8(0x1c3)](_0x3f71a6,0x1,_0xe04848,_0x15cc2d);}[_0x32e825(0x1c3)](_0x6bfe98,_0x42e7d1,_0x1a4019,_0x2eadea=_0x4dd93b[_0x32e825(0x185)][_0x32e825(0x186)]){const _0x383c92=_0x32e825;let _0x2899b3=this[_0x383c92(0x14f)](),_0x8c95e1=(0x0,_0x4dd93b[_0x383c92(0x1a3)])(_0x2899b3,this['_tableId'],_0x6bfe98,_0x1a4019,_0x42e7d1,_0x2eadea,this[_0x383c92(0xf4)]());return _0x8c95e1?this[_0x383c92(0x1a5)](_0x2899b3,_0x8c95e1[_0x383c92(0x170)]):!0x1;}[_0x32e825(0x1ab)](_0x5c721a){const _0x1b25ff=_0x32e825;try{let _0x3925b8=this[_0x1b25ff(0x14f)](),_0x281ee8=(0x0,_0x4dd93b[_0x1b25ff(0x10a)])({'documentData':_0x3925b8,'tableId':this[_0x1b25ff(0xe2)],..._0x5c721a});return _0x281ee8?this[_0x1b25ff(0x1a5)](_0x3925b8,_0x281ee8[_0x1b25ff(0x170)],_0x5c721a):!0x1;}catch{return!0x1;}}[_0x32e825(0x135)](_0xe6d2fd){const _0x5060c7=_0x32e825;try{let _0x2e5162=this[_0x5060c7(0x14f)](),_0x34152e=(0x0,_0x4dd93b[_0x5060c7(0x141)])({'documentData':_0x2e5162,'tableId':this[_0x5060c7(0xe2)],..._0xe6d2fd});return _0x34152e?this[_0x5060c7(0x1a5)](_0x2e5162,_0x34152e[_0x5060c7(0x170)],_0xe6d2fd):!0x1;}catch{return!0x1;}}[_0x32e825(0x18a)](_0x4a7dc7,_0x3af6a2,_0x51a55e){const _0x141857=_0x32e825;let _0x53f68b=this[_0x141857(0x14f)](),_0x564613=(0x0,_0x4dd93b['getTableActionBodyPath'])(this[_0x141857(0xfa)][_0x141857(0x1b3)]()[_0x141857(0x12e)](),this[_0x141857(0xf1)]);return this[_0x141857(0x1a5)](_0x53f68b,(0x0,_0x4dd93b[_0x141857(0x183)])({'documentData':_0x53f68b,'tableId':this[_0x141857(0xe2)],'row':_0x4a7dc7,'column':_0x3af6a2,'text':_0x51a55e},_0x564613),this['getCellRange'](_0x4a7dc7,_0x3af6a2));}[_0x32e825(0xe8)](_0x371e2d,_0x553ed6){const _0x2e386a=_0x32e825;let _0x344748=this[_0x2e386a(0x14f)]();return this[_0x2e386a(0x1a5)](_0x344748,(0x0,_0x4dd93b[_0x2e386a(0x187)])(_0x344748,{'tableId':this[_0x2e386a(0xe2)],..._0x371e2d,'value':_0x553ed6}),_0x371e2d);}[_0x32e825(0x167)](_0x52f316,_0x3d33fa){const _0x3e55a5=_0x32e825;let _0x1df72f=this[_0x3e55a5(0x14f)]();return this['_mutateActions'](_0x1df72f,(0x0,_0x4dd93b[_0x3e55a5(0x1a7)])({'documentData':_0x1df72f,'tableId':this[_0x3e55a5(0xe2)],..._0x52f316,'margin':_0x3d33fa}),_0x52f316);}[_0x32e825(0xea)](_0xc7b070){const _0x52fafa=_0x32e825;let _0x4f55f4=this['_getDocumentData']();return this[_0x52fafa(0x1a5)](_0x4f55f4,(0x0,_0x4dd93b['buildSetTableDefaultCellMarginMutationActions'])(_0x4f55f4,this[_0x52fafa(0xe2)],_0xc7b070));}[_0x32e825(0x161)](_0x1d85ac,_0x34dd6b){const _0x15fc92=_0x32e825;let _0xb2190f=this['_getDocumentData']();return this['_mutateActions'](_0xb2190f,(0x0,_0x4dd93b['buildSetTableBorderMutationActions'])({'documentData':_0xb2190f,'tableId':this['_tableId'],..._0x1d85ac,'preset':_0x34dd6b[_0x15fc92(0x14d)]??_0x4dd93b[_0x15fc92(0x147)]['All'],'border':_0x34dd6b[_0x15fc92(0x108)]??{'color':{'rgb':_0x34dd6b[_0x15fc92(0x10b)]??_0x15fc92(0xf7)},'width':{'v':_0x34dd6b[_0x15fc92(0x12b)]??0x1},'dashStyle':_0x1999b9[_0x15fc92(0x130)]['SOLID']}}),_0x1d85ac);}[_0x32e825(0xf8)](_0x3c4346){const _0x4350da=_0x32e825;return this[_0x4350da(0xe8)](this[_0x4350da(0x10e)](),_0x3c4346);}[_0x32e825(0x121)](_0x4cfb1a){const _0x2f84ce=_0x32e825;return this[_0x2f84ce(0x161)](this['getTableRange'](),_0x4cfb1a);}[_0x32e825(0x16f)](_0x32b1cb){const _0x5089c7=_0x32e825;let _0x65b242=!_0x32b1cb[_0x5089c7(0x11f)]||this[_0x5089c7(0xf8)](_0x32b1cb[_0x5089c7(0x11f)]),_0x3c1158=!_0x32b1cb[_0x5089c7(0x108)]||this[_0x5089c7(0x121)](_0x32b1cb[_0x5089c7(0x108)]);return _0x65b242&&_0x3c1158;}[_0x32e825(0x1bd)](_0x184ab3,_0x4f4e1c,_0x37d5fa=_0x1999b9[_0x32e825(0x13d)][_0x32e825(0xf0)]){const _0x264af6=_0x32e825;var _0x2694bf;let _0xdca0dc=this['_getDocumentData']();return(_0x2694bf=_0xdca0dc[_0x264af6(0x181)])!=null&&(_0x2694bf=_0x2694bf[this[_0x264af6(0xe2)]])!=null&&_0x2694bf[_0x264af6(0x1be)][_0x184ab3]?this[_0x264af6(0x1a5)](_0xdca0dc,(0x0,_0x4dd93b[_0x264af6(0x162)])(_0xdca0dc,this[_0x264af6(0xe2)],_0x184ab3,_0x4f4e1c,_0x37d5fa)):!0x1;}[_0x32e825(0x10d)](_0x1c62a7){const _0x4af1b4=_0x32e825;var _0x1f7b38;let _0x43ab42=(_0x1f7b38=this[_0x4af1b4(0x142)]())==null||(_0x1f7b38=_0x1f7b38['tableRows'][_0x1c62a7])==null?void 0x0:_0x1f7b38[_0x4af1b4(0x157)];return _0x43ab42?_0x1999b9[_0x4af1b4(0x19e)][_0x4af1b4(0x113)](_0x43ab42):null;}['setColumnWidth'](_0x47eba9,_0x14f9f5){const _0x3f2d6b=_0x32e825;var _0x56ac64;let _0x39b09f=this[_0x3f2d6b(0x14f)]();return(_0x56ac64=_0x39b09f['tableSource'])!=null&&(_0x56ac64=_0x56ac64[this[_0x3f2d6b(0xe2)]])!=null&&_0x56ac64['tableColumns'][_0x47eba9]?this['_mutateActions'](_0x39b09f,(0x0,_0x4dd93b['buildResizeTableColumnActionsFromWidth'])(_0x39b09f,this[_0x3f2d6b(0xe2)],_0x47eba9,_0x14f9f5)):!0x1;}['distributeRows'](_0x232684=0x0,_0x570b49=this[_0x32e825(0x176)]()){const _0x1686ec=_0x32e825;let _0x5a9f5a=this[_0x1686ec(0x14f)]();return this[_0x1686ec(0x1a5)](_0x5a9f5a,(0x0,_0x4dd93b[_0x1686ec(0x122)])(_0x5a9f5a,this[_0x1686ec(0xe2)],_0x232684,_0x232684+_0x570b49-0x1));}[_0x32e825(0x175)](_0x134284=0x0,_0x5dce10=this[_0x32e825(0x1ae)]()){const _0x21556e=_0x32e825;let _0x3c4b39=this[_0x21556e(0x14f)]();return this[_0x21556e(0x1a5)](_0x3c4b39,(0x0,_0x4dd93b[_0x21556e(0x145)])(_0x3c4b39,this[_0x21556e(0xe2)],_0x134284,_0x134284+_0x5dce10-0x1));}['getHeaderRowCount'](){const _0x40512c=_0x32e825;var _0x570a6a;return((_0x570a6a=this[_0x40512c(0x148)]())==null?void 0x0:_0x570a6a[_0x40512c(0xe9)])??0x0;}['setHeaderRowCount'](_0x3a2833){const _0x48b693=_0x32e825;let _0x1fc180=this[_0x48b693(0x171)][_0x48b693(0x1b6)](_0x4dd93b[_0x48b693(0x18e)]),_0xddf6e7=this[_0x48b693(0x14f)](),_0x45bb78=(0x0,_0x4dd93b['buildSetTableHeaderRowCountMutationActions'])(_0xddf6e7,this[_0x48b693(0xe2)],_0x3a2833);if(!_0x45bb78)return!0x1;let _0x5a28f3=this[_0x48b693(0x1a5)](_0xddf6e7,_0x45bb78[_0x48b693(0x170)]);return _0x5a28f3&&_0x1fc180[_0x48b693(0x153)](this[_0x48b693(0x1a6)],this[_0x48b693(0xe2)],_0x45bb78[_0x48b693(0xe9)]),_0x5a28f3;}[_0x32e825(0x19a)](_0x1bb7c5){const _0x32e045=_0x32e825;return this[_0x32e045(0x153)](_0x1bb7c5);}[_0x32e825(0x116)](){const _0x1c008e=_0x32e825;var _0x36ec78;return((_0x36ec78=this[_0x1c008e(0x148)]())==null?void 0x0:_0x36ec78['titleRow'])??!0x1;}[_0x32e825(0x134)](){const _0x197f33=_0x32e825;let _0x26975c=this[_0x197f33(0x171)]['get'](_0x4dd93b['DocsTableModel']),_0x4c27ee=this['_getDocumentData'](),_0x3c711f=(0x0,_0x4dd93b[_0x197f33(0x146)])(_0x4c27ee,this[_0x197f33(0xe2)],this['_getBodyPath']());if(!_0x3c711f)return!0x1;let _0x3b59d8=this[_0x197f33(0x1a5)](_0x4c27ee,_0x3c711f[_0x197f33(0x170)]);return _0x3b59d8&&_0x26975c['setTitleRow'](this[_0x197f33(0x1a6)],this[_0x197f33(0xe2)],!0x0),_0x3b59d8;}[_0x32e825(0x198)](_0xde166b,_0x43d84b){const _0x1a8ce4=_0x32e825;return this['_injector'][_0x1a8ce4(0x1b6)](_0x4dd93b[_0x1a8ce4(0x18e)])[_0x1a8ce4(0x198)](this[_0x1a8ce4(0x1a6)],this[_0x1a8ce4(0xe2)],_0xde166b,_0x43d84b),!0x0;}['sortByColumn'](_0x34e7d1,_0x2880c9){const _0x5dfd08=_0x32e825;let _0x3e7351=this[_0x5dfd08(0x14f)]();return this[_0x5dfd08(0x1a5)](_0x3e7351,(0x0,_0x4dd93b[_0x5dfd08(0x197)])(_0x3e7351,this[_0x5dfd08(0xf3)](),this['_tableId'],_0x34e7d1,_0x2880c9,this[_0x5dfd08(0xf4)]()));}[_0x32e825(0x14f)](){const _0x2363d1=_0x32e825;let _0x2bd978=this[_0x2363d1(0xfa)]['getDocumentDataModel']()[_0x2363d1(0x12e)]();return this[_0x2363d1(0xf1)]?{...this[_0x2363d1(0xfa)][_0x2363d1(0x1b3)](this[_0x2363d1(0xf1)])[_0x2363d1(0x12e)](),'documentStyle':_0x2bd978['documentStyle'],'tableSource':_0x2bd978['tableSource']}:_0x2bd978;}[_0x32e825(0xf3)](){const _0x59bd4c=_0x32e825;return this['_injector'][_0x59bd4c(0x1b6)](_0x4dd93b[_0x59bd4c(0x18e)])[_0x59bd4c(0x1b7)](this['_unitId']);}[_0x32e825(0xf4)](){const _0x584f9b=_0x32e825;return(0x0,_0x4dd93b[_0x584f9b(0x18d)])(this['_document'][_0x584f9b(0x1b3)]()['getSnapshot'](),this[_0x584f9b(0xf1)]);}['_mutateActions'](_0x165848,_0x268c70,_0x5e662d){const _0x46c18e=_0x32e825;return(0x0,_0x4dd93b[_0x46c18e(0x128)])(this[_0x46c18e(0x12d)],this[_0x46c18e(0x1a6)],_0x165848,_0x268c70,_0x5e662d?{'tableId':this['_tableId'],'segmentId':this[_0x46c18e(0xf1)],..._0x5e662d}:void 0x0);}};_0x57145d=_0x3e3bd3([_0x3c73a1(0x3,_0x1999b9[_0x32e825(0x14b)]),_0x3c73a1(0x4,(0x0,_0x1999b9[_0x32e825(0x160)])(_0x1999b9[_0x32e825(0x15a)]))],_0x57145d);var _0x5368c0=class extends _0x5a829b[_0x32e825(0xfc)]{[_0x32e825(0x16d)](_0x1444d4=''){const _0x42f408=_0x32e825;return this['_getTables'](_0x1444d4)[_0x42f408(0x127)](_0x5acd40=>this['_createFDocumentTable'](_0x5acd40[_0x42f408(0x11a)],_0x1444d4));}[_0x32e825(0x15d)](_0x787f55,_0x543bc0=''){const _0x46a1c8=_0x32e825;return this[_0x46a1c8(0x166)](_0x543bc0)[_0x46a1c8(0xf6)](_0x11d99b=>_0x11d99b[_0x46a1c8(0x11a)]===_0x787f55)?this[_0x46a1c8(0x107)](_0x787f55,_0x543bc0):null;}[_0x32e825(0x1b1)](_0x121088,_0x2cff34=''){const _0x477972=_0x32e825;var _0x2e8eb3;let _0x39cb0d=(_0x2e8eb3=this['_getTables'](_0x2cff34)[_0x121088])==null?void 0x0:_0x2e8eb3[_0x477972(0x11a)];return _0x39cb0d?this[_0x477972(0x107)](_0x39cb0d,_0x2cff34):null;}['getTableAtSelection'](){const _0x5c1c49=_0x32e825;let _0x5cca13=this['_injector']['get'](_0x4dd93b['DocsTableSelectionService'])[_0x5c1c49(0x1a9)]();return _0x5cca13!=null&&_0x5cca13['tableId']?this[_0x5c1c49(0x107)](_0x5cca13['tableId'],_0x5cca13[_0x5c1c49(0x158)]):null;}['findTableByText'](_0x5a96d0,_0x24cef4=''){const _0xdd64c1=_0x32e825;return this[_0xdd64c1(0x191)](_0x5a96d0,_0x24cef4)[0x0]??null;}[_0x32e825(0x191)](_0xa6c07,_0x563c95=''){const _0x1715e=_0x32e825;let _0x5137f5=this['_getTableDocumentData'](_0x563c95),_0x2b1536=typeof _0xa6c07==_0x1715e(0xfe)?{'text':_0xa6c07}:_0xa6c07;return this[_0x1715e(0x16d)](_0x563c95)[_0x1715e(0x139)](_0x3836a6=>{const _0x5df888=_0x1715e;let _0x486bf7=_0x3836a6[_0x5df888(0x149)]();return!(_0x2b1536[_0x5df888(0x11a)]&&_0x486bf7!==_0x2b1536[_0x5df888(0x11a)]||_0x2b1536[_0x5df888(0x117)]&&!this[_0x5df888(0x11c)](_0x5137f5,_0x486bf7,_0x2b1536['text'])||_0x2b1536[_0x5df888(0x11b)]&&!this[_0x5df888(0x132)](_0x3836a6,0x0,_0x2b1536[_0x5df888(0x11b)])||_0x2b1536['titleText']&&!this[_0x5df888(0x132)](_0x3836a6,0x0,_0x2b1536[_0x5df888(0x16c)]));});}[_0x32e825(0x11d)](_0x28ad30,_0x4ae311,_0x4dddcb={}){const _0x1fccfb=_0x32e825;let _0x3d9b10=this[_0x1fccfb(0x171)][_0x1fccfb(0x1b6)](_0x1999b9['ICommandService']),_0x20c0b9=_0x4dddcb[_0x1fccfb(0x11a)]??(0x0,_0x1999b9[_0x1fccfb(0x12a)])(0x6);return _0x3d9b10['syncExecuteCommand'](_0x4dd93b[_0x1fccfb(0x112)]['id'],{..._0x4dddcb,'unitId':this[_0x1fccfb(0x149)](),'rows':_0x28ad30,'columns':_0x4ae311,'tableId':_0x20c0b9})?this[_0x1fccfb(0x107)](_0x20c0b9,_0x4dddcb[_0x1fccfb(0x158)]??''):null;}['insertTableFromData'](_0x4884a1,_0x24059e={}){const _0x29636a=_0x32e825;let _0x3df6e2=this['_injector'][_0x29636a(0x1b6)](_0x1999b9[_0x29636a(0x14b)]),_0x225ac2=_0x24059e[_0x29636a(0x11a)]??(0x0,_0x1999b9[_0x29636a(0x12a)])(0x6);return _0x3df6e2['syncExecuteCommand'](_0x4dd93b['DocsTableInsertTableCommand']['id'],{..._0x24059e,'unitId':this[_0x29636a(0x149)](),'values':_0x4884a1,'tableId':_0x225ac2})?this[_0x29636a(0x107)](_0x225ac2,_0x24059e['segmentId']??''):null;}[_0x32e825(0x166)](_0x4b282f=''){const _0x704708=_0x32e825;let {tables:_0x59dc9a=[]}=this[_0x704708(0x129)](_0x4b282f);return _0x59dc9a;}[_0x32e825(0x104)](_0x341f36=''){const _0x31c90b=_0x32e825;let _0x102886=this[_0x31c90b(0x1b3)]()[_0x31c90b(0x12e)]();return _0x341f36?{...this[_0x31c90b(0x1b3)](_0x341f36)[_0x31c90b(0x12e)](),'documentStyle':_0x102886[_0x31c90b(0x163)],'tableSource':_0x102886['tableSource']}:_0x102886;}[_0x32e825(0x107)](_0x5378bd,_0x592007=''){const _0x55ff02=_0x32e825;return this[_0x55ff02(0x171)][_0x55ff02(0x1a2)](_0x57145d,this,_0x5378bd,_0x592007);}['_tableContainsText'](_0x400265,_0x282137,_0xa7715){const _0xbf99b9=_0x32e825;var _0x11b652;let _0x580793=(0x0,_0x4dd93b['getTableRangeById'])(_0x400265,_0x282137);if(!_0x580793)return!0x1;let _0x11835a=(_0x11b652=_0x400265[_0xbf99b9(0x155)])==null?void 0x0:_0x11b652[_0xbf99b9(0xe6)];return _0x11835a?_0x11835a[_0xbf99b9(0xe4)](_0x580793['startOffset'],_0x580793[_0xbf99b9(0x1ba)])[_0xbf99b9(0x177)](_0xa7715):!0x1;}[_0x32e825(0x132)](_0x2f689a,_0x562e95,_0x1ecd42){const _0xcf5879=_0x32e825;return Array[_0xcf5879(0x17f)]({'length':_0x2f689a[_0xcf5879(0x1ae)]()},(_0xef1e1,_0x353ac5)=>_0x2f689a[_0xcf5879(0x1a0)](_0x562e95,_0x353ac5))[_0xcf5879(0xf6)](_0x1efe37=>_0x1efe37[_0xcf5879(0x177)](_0x1ecd42));}};_0x5a829b[_0x32e825(0xfc)][_0x32e825(0x1b5)](_0x5368c0),Object['defineProperty'](_0x510155,_0x32e825(0x15b),{'enumerable':!0x0,'get':function(){return _0x57145d;}}),_0x510155[_0x32e825(0x17a)]=_0x47a610;}));function _0x4034(_0x234f82,_0x37a220){_0x234f82=_0x234f82-0xe1;const _0x36e082=_0x36e0();let _0x4034f6=_0x36e082[_0x234f82];return _0x4034f6;}function _0x36e0(){const _0x92cd71=['3157344LjvVcU','getRowsRange','buildUnmergeCellsMutationActions','getSource','insertRowAfter','setBackgroundColor','buildDistributeTableColumnsMutationActions','buildInsertTableTitleRowMutationActions','DocsTableBorderPreset','getMetadata','getId','deleteRow','ICommandService','Module','preset','DocsTableColumnInsertPosition','_getDocumentData','deleteTable','margin','@univerjs/core','setHeaderRowCount','3HvBfCu','body','getColumnRange','trHeight','segmentId','Row','Injector','FDocumentTable','DocsTableSelectionService','getTable','moveTableBy','DocsTableColumnType','Inject','setBorder','buildResizeTableRowActionsFromHeight','documentStyle','FEnum','cells','_getTables','setCellMargin','moveRows','decorate','@univerjs/core/facade','Right','titleText','getTables','buildMoveTableRowsMutationActions','setTableStyle','actions','_injector','insertColumnsAfter','selectRange','syncExecuteCommand','distributeColumns','getRowCount','includes','function','getInfo','FDocumentTableCell','selectColumn','214400bxwKvk','getColumnsRange','selectCell','from','getMargin','tableSource','selectRows','buildSetTableCellTextMutationActions','Above','DocsTableInsertPosition','Left','buildSetTableBackgroundMutationActions','defineProperty','tableCells','setCellText','type','DocsTableDeleteRowsCommand','getTableActionBodyPath','DocsTableModel','getColumnIndex','insertRowBefore','findTables','constructor','length','_table','object','getMarginOverride','buildSortTableMutationActions','setColumnType','getInsertOffset','pinHeaderRows','symbol','182EudRNN','2dGDMMw','Tools','Table','getCellText','cellMargin','createInstance','buildMoveTableColumnsMutationActions','getCellMarginOverride','_mutateActions','_unitId','buildSetTableCellMarginMutationActions','rows','getStableTableSelection','replace','mergeCells','startOffset','buildMoveFloatingTableMutationActions','getColumnCount','getTableRangeById','888356EzwbwD','getTableAt','max','getDocumentDataModel','getContentRange','extend','get','serialize','tableColumns','selectColumns','endOffset','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getCellContentRange','setRowHeight','tableRows','UniverDocsFacade','insertColumnsBefore','getCellRange','Range','moveColumns','DocsTableSelectionKind','setMargin','@univerjs/docs/facade','getOwnPropertyDescriptor','_tableId','toStringTag','slice','getDefaultCellMarginOverride','dataStream','getDefaultCellMargin','setCellBackground','headerRowCount','setDefaultCellMargin','appendRow','toPrimitive','selectRow','buildInsertTableColumnsMutationActions','_column','AT_LEAST','_segmentId','insertRowsAfter','_serializeModel','_getBodyPath','77LqTiDX','some','#1f1f1f','setTableBackground','DEFAULT_DOCS_TABLE_CELL_MARGIN','_document','mergeTo','FDocument','Cell','string','insertColumnBefore','getSegmentId','call','getCellMargin','unmerge','_getTableDocumentData','deleteRows','getCellInsertOffset','_createFDocumentTable','border','iterator','buildMergeCellsMutationActions','color','selectTable','getRowHeight','getTableRange','getCell','setStructuralSelection','Column','DocsTableInsertTableCommand','deepClone','deleteColumns','DocsTableRowInsertPosition','hasTitleRow','text','getTableMetadata','size','tableId','headerText','_tableContainsText','insertTable','titleRow','backgroundColor','77778uTlmaE','setTableBorder','buildDistributeTableRowsMutationActions','DocsTableInsertTablePosition','buildMoveTableToOffsetMutationActions','buildInsertTableRowsMutationActions','prototype','map','executeRichTextTableActions','getBody','generateRandomId','width','UniverProDocsTableFacade','_commandService','getSnapshot','moveTableToOffset','DashStyleType','364035NCdsCH','_rowContainsText','exports','insertTitleRow','unmergeCells','DocsTableSortDirection','UniverProDocsTable','179054EbdXxR','filter','586610RuNcXP','_row','setText','TableRowHeightRule','moveColumn'];_0x36e0=function(){return _0x92cd71;};return _0x36e0();}
1
+ (function(_0x879461,_0x365a63){const _0x40aa39=_0x38aa,_0xd1fa82=_0x879461();while(!![]){try{const _0x9e04f=-parseInt(_0x40aa39(0x202))/0x1+-parseInt(_0x40aa39(0x243))/0x2+-parseInt(_0x40aa39(0x250))/0x3*(parseInt(_0x40aa39(0x23e))/0x4)+parseInt(_0x40aa39(0x24d))/0x5+parseInt(_0x40aa39(0x226))/0x6*(-parseInt(_0x40aa39(0x1f2))/0x7)+parseInt(_0x40aa39(0x223))/0x8+parseInt(_0x40aa39(0x1b1))/0x9*(parseInt(_0x40aa39(0x24a))/0xa);if(_0x9e04f===_0x365a63)break;else _0xd1fa82['push'](_0xd1fa82['shift']());}catch(_0x162010){_0xd1fa82['push'](_0xd1fa82['shift']());}}}(_0x15f3,0x2b9eb),function(_0x5affbf,_0x598a1f){const _0x247a23=_0x38aa;typeof exports==_0x247a23(0x28a)&&typeof module<'u'?_0x598a1f(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x247a23(0x1e5)&&define[_0x247a23(0x1f8)]?define(['exports',_0x247a23(0x221),'@univerjs/core',_0x247a23(0x1bb),'@univerjs/docs/facade'],_0x598a1f):(_0x5affbf=typeof globalThis<'u'?globalThis:_0x5affbf||self,_0x598a1f(_0x5affbf[_0x247a23(0x24c)]={},_0x5affbf[_0x247a23(0x1e4)],_0x5affbf['UniverCore'],_0x5affbf['UniverCoreFacade'],_0x5affbf[_0x247a23(0x1d9)]));}(this,function(_0x31d60b,_0x23f840,_0x35ecf7,_0x1e0e66,_0x5a9859){const _0x55d57c=_0x38aa;Object[_0x55d57c(0x206)](_0x31d60b,Symbol[_0x55d57c(0x207)],{'value':_0x55d57c(0x289)});var _0x2b5fd0=class extends _0x1e0e66['FEnum']{get[_0x55d57c(0x25c)](){const _0x579bd4=_0x55d57c;return _0x23f840[_0x579bd4(0x25c)];}get['DocsTableColumnType'](){return _0x23f840['DocsTableColumnType'];}get[_0x55d57c(0x25e)](){const _0x1a1a7b=_0x55d57c;return _0x23f840[_0x1a1a7b(0x25e)];}get[_0x55d57c(0x272)](){return _0x23f840['DocsTableRowInsertPosition'];}get[_0x55d57c(0x24f)](){const _0x2d64aa=_0x55d57c;return _0x23f840[_0x2d64aa(0x24f)];}get[_0x55d57c(0x22c)](){const _0x17a4f4=_0x55d57c;return _0x23f840[_0x17a4f4(0x22c)];}get[_0x55d57c(0x22b)](){return _0x23f840['DocsTableSortDirection'];}get[_0x55d57c(0x265)](){return _0x35ecf7['DashStyleType'];}};_0x1e0e66[_0x55d57c(0x1e0)][_0x55d57c(0x1fd)](_0x2b5fd0);var _0x375d01=class{constructor(_0x2740e5,_0x2269a6,_0xa0bc6c){const _0x349359=_0x55d57c;this[_0x349359(0x1dc)]=_0x2740e5,this['_row']=_0x2269a6,this[_0x349359(0x1f0)]=_0xa0bc6c;}[_0x55d57c(0x23f)](){const _0x21f100=_0x55d57c;return this[_0x21f100(0x1dc)];}[_0x55d57c(0x209)](){const _0x4c6ee2=_0x55d57c;return this[_0x4c6ee2(0x1db)];}[_0x55d57c(0x1ac)](){const _0x235d4f=_0x55d57c;return this[_0x235d4f(0x1f0)];}['getText'](){const _0x1d676b=_0x55d57c;return this['_table'][_0x1d676b(0x271)](this[_0x1d676b(0x1db)],this[_0x1d676b(0x1f0)]);}['getContentRange'](){const _0x561f46=_0x55d57c;return this['_table'][_0x561f46(0x1c0)](this[_0x561f46(0x1db)],this[_0x561f46(0x1f0)]);}['getInsertOffset'](){const _0x42a58f=_0x55d57c;return this[_0x42a58f(0x1dc)][_0x42a58f(0x205)](this[_0x42a58f(0x1db)],this[_0x42a58f(0x1f0)]);}[_0x55d57c(0x236)](){const _0x2abb01=_0x55d57c;return this[_0x2abb01(0x1dc)][_0x2abb01(0x25a)](this[_0x2abb01(0x1db)],this['_column']);}[_0x55d57c(0x283)](){const _0x219a6=_0x55d57c;return this[_0x219a6(0x1dc)][_0x219a6(0x1ed)](this['_row'],this[_0x219a6(0x1f0)]);}[_0x55d57c(0x241)](_0x21eeea){const _0x187719=_0x55d57c;return this['_table'][_0x187719(0x246)](this[_0x187719(0x1dc)][_0x187719(0x1fb)](this[_0x187719(0x1db)],this[_0x187719(0x1f0)]),_0x21eeea);}['clearMarginOverride'](){const _0x103076=_0x55d57c;return this[_0x103076(0x1dc)][_0x103076(0x246)](this['_table'][_0x103076(0x1fb)](this[_0x103076(0x1db)],this[_0x103076(0x1f0)]),null);}[_0x55d57c(0x24b)](_0x486b20){const _0x11d76f=_0x55d57c;return this[_0x11d76f(0x1dc)][_0x11d76f(0x264)](this['_row'],this['_column'],_0x486b20);}[_0x55d57c(0x229)](_0x4cf455){const _0x53e0e4=_0x55d57c;return this[_0x53e0e4(0x1dc)]['setCellBackground'](this[_0x53e0e4(0x1dc)][_0x53e0e4(0x1fb)](this[_0x53e0e4(0x1db)],this['_column']),_0x4cf455);}[_0x55d57c(0x275)](_0x5dbcc1){const _0x528754=_0x55d57c;return this[_0x528754(0x1dc)]['setBorder'](this[_0x528754(0x1dc)][_0x528754(0x1fb)](this[_0x528754(0x1db)],this[_0x528754(0x1f0)]),_0x5dbcc1);}[_0x55d57c(0x1c1)](_0x3f21d6,_0x35c5b9){const _0x1bbd63=_0x55d57c;return this[_0x1bbd63(0x1dc)][_0x1bbd63(0x1da)]({'startRow':this[_0x1bbd63(0x1db)],'startColumn':this['_column'],'endRow':this['_row']+_0x3f21d6-0x1,'endColumn':this[_0x1bbd63(0x1f0)]+_0x35c5b9-0x1});}[_0x55d57c(0x1b9)](){const _0x559222=_0x55d57c;return this[_0x559222(0x1dc)]['unmergeCells'](this[_0x559222(0x1dc)][_0x559222(0x1fb)](this[_0x559222(0x1db)],this[_0x559222(0x1f0)]));}};function _0x5ea136(_0x96605c){'@babel/helpers - typeof';const _0x51dbfe=_0x55d57c;return _0x5ea136=typeof Symbol=='function'&&typeof Symbol[_0x51dbfe(0x23d)]==_0x51dbfe(0x237)?function(_0x3cdd3b){return typeof _0x3cdd3b;}:function(_0x81c67e){const _0x41729d=_0x51dbfe;return _0x81c67e&&typeof Symbol==_0x41729d(0x1e5)&&_0x81c67e[_0x41729d(0x1b4)]===Symbol&&_0x81c67e!==Symbol[_0x41729d(0x1e6)]?_0x41729d(0x237):typeof _0x81c67e;},_0x5ea136(_0x96605c);}function _0x5f0774(_0xe16acc,_0x2a0a6d){const _0x6e7c18=_0x55d57c;if(_0x5ea136(_0xe16acc)!=_0x6e7c18(0x28a)||!_0xe16acc)return _0xe16acc;var _0x1bfb0d=_0xe16acc[Symbol['toPrimitive']];if(_0x1bfb0d!==void 0x0){var _0x1189dd=_0x1bfb0d[_0x6e7c18(0x228)](_0xe16acc,_0x2a0a6d||_0x6e7c18(0x25d));if(_0x5ea136(_0x1189dd)!=_0x6e7c18(0x28a))return _0x1189dd;throw TypeError(_0x6e7c18(0x1ea));}return(_0x2a0a6d==='string'?String:Number)(_0xe16acc);}function _0x5db300(_0xa66c9c){const _0x5dc9b3=_0x55d57c;var _0x444030=_0x5f0774(_0xa66c9c,_0x5dc9b3(0x277));return _0x5ea136(_0x444030)==_0x5dc9b3(0x237)?_0x444030:_0x444030+'';}function _0x5a6c5e(_0x4aeca7,_0x216d1a,_0x5536d7){const _0x294135=_0x55d57c;return(_0x216d1a=_0x5db300(_0x216d1a))in _0x4aeca7?Object[_0x294135(0x206)](_0x4aeca7,_0x216d1a,{'value':_0x5536d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4aeca7[_0x216d1a]=_0x5536d7,_0x4aeca7;}function _0xb58257(_0x57dad4,_0x139b8d){return function(_0x3dc339,_0x47e703){_0x139b8d(_0x3dc339,_0x47e703,_0x57dad4);};}function _0x4e5de4(_0x56b8df,_0x54b5f3,_0x2312e3,_0x432806){const _0x256cb9=_0x55d57c;var _0x46bc92=arguments[_0x256cb9(0x1fa)],_0x126ae6=_0x46bc92<0x3?_0x54b5f3:_0x432806===null?_0x432806=Object[_0x256cb9(0x22a)](_0x54b5f3,_0x2312e3):_0x432806,_0x99a03b;if(typeof Reflect=='object'&&typeof Reflect[_0x256cb9(0x1d7)]==_0x256cb9(0x1e5))_0x126ae6=Reflect[_0x256cb9(0x1d7)](_0x56b8df,_0x54b5f3,_0x2312e3,_0x432806);else{for(var _0x46157e=_0x56b8df[_0x256cb9(0x1fa)]-0x1;_0x46157e>=0x0;_0x46157e--)(_0x99a03b=_0x56b8df[_0x46157e])&&(_0x126ae6=(_0x46bc92<0x3?_0x99a03b(_0x126ae6):_0x46bc92>0x3?_0x99a03b(_0x54b5f3,_0x2312e3,_0x126ae6):_0x99a03b(_0x54b5f3,_0x2312e3))||_0x126ae6);}return _0x46bc92>0x3&&_0x126ae6&&Object[_0x256cb9(0x206)](_0x54b5f3,_0x2312e3,_0x126ae6),_0x126ae6;}let _0x4d92f2=class{constructor(_0x1aa666,_0x3a9be7,_0x322a15,_0x1d7a9f,_0xeff840){const _0xa85aa8=_0x55d57c;this['_document']=_0x1aa666,this[_0xa85aa8(0x247)]=_0x3a9be7,this[_0xa85aa8(0x1de)]=_0x322a15,this[_0xa85aa8(0x23c)]=_0x1d7a9f,this[_0xa85aa8(0x278)]=_0xeff840,_0x5a6c5e(this,_0xa85aa8(0x284),void 0x0),this[_0xa85aa8(0x284)]=this[_0xa85aa8(0x27c)][_0xa85aa8(0x222)]();}['getId'](){const _0x92af4c=_0x55d57c;return this[_0x92af4c(0x247)];}[_0x55d57c(0x28b)](){const _0x274191=_0x55d57c;return this[_0x274191(0x1de)];}['getInfo'](){const _0x1c449c=_0x55d57c;return{'id':this[_0x1c449c(0x247)],'rowCount':this[_0x1c449c(0x1c9)](),'columnCount':this[_0x1c449c(0x220)](),'metadata':this[_0x1c449c(0x254)](),'source':this[_0x1c449c(0x1e2)]()};}[_0x55d57c(0x26d)](){const _0x472acf=_0x55d57c;let _0x17ef48=this[_0x472acf(0x254)](),_0x1a821e=this[_0x472acf(0x1e2)](),_0x3f41fa=this['getColumnCount']();return{'id':this['_tableId'],'rowCount':this['getRowCount'](),'columnCount':_0x3f41fa,'headerRowCount':(_0x17ef48==null?void 0x0:_0x17ef48[_0x472acf(0x249)])??0x0,'titleRow':(_0x17ef48==null?void 0x0:_0x17ef48[_0x472acf(0x1b6)])??!0x1,'columns':Array['from']({'length':_0x3f41fa},(_0x5a3e69,_0x36bbbd)=>{const _0x5478f4=_0x472acf;var _0x13caf9,_0x518990;return{'index':_0x36bbbd,'type':_0x17ef48==null||(_0x13caf9=_0x17ef48[_0x5478f4(0x274)])==null||(_0x13caf9=_0x13caf9[_0x36bbbd])==null?void 0x0:_0x13caf9[_0x5478f4(0x23b)],'width':_0x1a821e==null||(_0x518990=_0x1a821e['tableColumns'][_0x36bbbd])==null?void 0x0:_0x518990['size'][_0x5478f4(0x1e9)]['v']};}),'sampleRows':Array[_0x472acf(0x1ad)]({'length':this['getRowCount']()},(_0x3f2b81,_0xc1696a)=>Array[_0x472acf(0x1ad)]({'length':_0x3f41fa},(_0x5cbd28,_0x250650)=>this[_0x472acf(0x271)](_0xc1696a,_0x250650)))[_0x472acf(0x1f1)](_0x3f71d0=>_0x3f71d0[_0x472acf(0x26c)](_0x8d027f=>_0x8d027f[_0x472acf(0x1fa)]>0x0))[_0x472acf(0x231)](0x0,0x5)};}[_0x55d57c(0x1c9)](){const _0x241687=_0x55d57c;var _0x27d528;return((_0x27d528=this[_0x241687(0x1e2)]())==null?void 0x0:_0x27d528[_0x241687(0x1af)][_0x241687(0x1fa)])??0x0;}[_0x55d57c(0x220)](){const _0x5b823d=_0x55d57c;var _0xfe24d;return((_0xfe24d=this[_0x5b823d(0x1e2)]())==null?void 0x0:_0xfe24d[_0x5b823d(0x1ee)][_0x5b823d(0x1fa)])??0x0;}['getCell'](_0x23536e,_0x44df00){const _0x1079cf=_0x55d57c;var _0x12f00b;return(_0x12f00b=this[_0x1079cf(0x1e2)]())!=null&&(_0x12f00b=_0x12f00b[_0x1079cf(0x1af)][_0x23536e])!=null&&_0x12f00b[_0x1079cf(0x20b)][_0x44df00]?this[_0x1079cf(0x278)][_0x1079cf(0x25b)](_0x375d01,this,_0x23536e,_0x44df00):null;}[_0x55d57c(0x271)](_0xc24a3,_0x31b860){const _0x2a352e=_0x55d57c;var _0x2dc595,_0x80977c;let _0x15b48b=(_0x2dc595=(0x0,_0x23f840[_0x2a352e(0x276)])(this[_0x2a352e(0x27b)](),this[_0x2a352e(0x247)]))==null||(_0x2dc595=_0x2dc595[_0x2a352e(0x20a)][_0xc24a3])==null?void 0x0:_0x2dc595[_0x2a352e(0x286)][_0x31b860];return _0x15b48b?((_0x80977c=this[_0x2a352e(0x27b)]()[_0x2a352e(0x20f)])==null?void 0x0:_0x80977c[_0x2a352e(0x260)]['slice'](_0x15b48b['startOffset']+0x1,_0x15b48b[_0x2a352e(0x212)])['replace'](/\r\n$/,''))??'':'';}[_0x55d57c(0x25a)](_0x219f91,_0x535637){const _0x5f40bb=_0x55d57c;var _0x2c3839;let _0x4b65f3=this[_0x5f40bb(0x1e2)](),_0x3a8875=_0x4b65f3==null||(_0x2c3839=_0x4b65f3[_0x5f40bb(0x1af)][_0x219f91])==null?void 0x0:_0x2c3839[_0x5f40bb(0x20b)][_0x535637];return _0x3a8875?_0x35ecf7[_0x5f40bb(0x1b7)][_0x5f40bb(0x1ca)](_0x3a8875[_0x5f40bb(0x287)]??_0x4b65f3[_0x5f40bb(0x1fc)]??_0x23f840[_0x5f40bb(0x267)]):null;}[_0x55d57c(0x1ed)](_0x5133fc,_0x61116){const _0x548539=_0x55d57c;var _0xb8388f;let _0x20b9ee=(_0xb8388f=this[_0x548539(0x1e2)]())==null||(_0xb8388f=_0xb8388f[_0x548539(0x1af)][_0x5133fc])==null?void 0x0:_0xb8388f['tableCells'][_0x61116];return _0x20b9ee!=null&&_0x20b9ee[_0x548539(0x287)]?_0x35ecf7[_0x548539(0x1b7)][_0x548539(0x1ca)](_0x20b9ee[_0x548539(0x287)]):null;}[_0x55d57c(0x1bf)](){const _0x5d43c3=_0x55d57c;var _0x46d2df;return _0x35ecf7[_0x5d43c3(0x1b7)][_0x5d43c3(0x1ca)](((_0x46d2df=this['getSource']())==null?void 0x0:_0x46d2df[_0x5d43c3(0x1fc)])??_0x23f840[_0x5d43c3(0x267)]);}[_0x55d57c(0x261)](){const _0xb42f30=_0x55d57c;var _0xf1187c;let _0x34f15a=(_0xf1187c=this[_0xb42f30(0x1e2)]())==null?void 0x0:_0xf1187c[_0xb42f30(0x1fc)];return _0x34f15a?_0x35ecf7['Tools']['deepClone'](_0x34f15a):null;}[_0x55d57c(0x254)](){const _0x3408ae=_0x55d57c;let _0x7c085c=this[_0x3408ae(0x278)][_0x3408ae(0x1d6)](_0x23f840[_0x3408ae(0x1f5)]),_0x4bc7ee=this[_0x3408ae(0x1e2)]();return _0x4bc7ee?_0x7c085c[_0x3408ae(0x1c3)](this[_0x3408ae(0x284)],_0x4bc7ee):void 0x0;}[_0x55d57c(0x1e2)](){const _0x62272d=_0x55d57c;var _0x2255f0;return(_0x2255f0=this[_0x62272d(0x27b)]()[_0x62272d(0x22d)])==null?void 0x0:_0x2255f0[this[_0x62272d(0x247)]];}[_0x55d57c(0x1cd)](){const _0x31cacf=_0x55d57c;return(0x0,_0x23f840['getTableRangeById'])(this[_0x31cacf(0x27b)](),this[_0x31cacf(0x247)]);}[_0x55d57c(0x1d4)](){const _0x48c458=_0x55d57c;return{'startRow':0x0,'endRow':Math[_0x48c458(0x27d)](0x0,this[_0x48c458(0x1c9)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x48c458(0x27d)](0x0,this[_0x48c458(0x220)]()-0x1)};}[_0x55d57c(0x1fb)](_0xac6a9c,_0x3775b9){return{'startRow':_0xac6a9c,'endRow':_0xac6a9c,'startColumn':_0x3775b9,'endColumn':_0x3775b9};}[_0x55d57c(0x1c0)](_0x4a0e4a,_0x48d5e4){const _0x14ea3c=_0x55d57c;var _0x1f9463;let _0x473ef1=(_0x1f9463=(0x0,_0x23f840[_0x14ea3c(0x276)])(this[_0x14ea3c(0x27b)](),this[_0x14ea3c(0x247)]))==null||(_0x1f9463=_0x1f9463['rows'][_0x4a0e4a])==null?void 0x0:_0x1f9463[_0x14ea3c(0x286)][_0x48d5e4];if(!_0x473ef1)return null;let _0xceb7ca=_0x473ef1[_0x14ea3c(0x270)]+0x1;return{'startOffset':_0xceb7ca,'endOffset':Math[_0x14ea3c(0x27d)](_0xceb7ca,_0x473ef1[_0x14ea3c(0x212)]-0x1),'segmentId':this[_0x14ea3c(0x1de)]};}[_0x55d57c(0x205)](_0x23d739,_0x5dcb4d){const _0x5a4f61=_0x55d57c;let _0x22dc0f=this[_0x5a4f61(0x1c0)](_0x23d739,_0x5dcb4d);return _0x22dc0f?Math[_0x5a4f61(0x27d)](_0x22dc0f[_0x5a4f61(0x270)],_0x22dc0f[_0x5a4f61(0x212)]-0x1):null;}[_0x55d57c(0x1ce)](_0x2edd03){return this['getRowsRange'](_0x2edd03,0x1);}['getRowsRange'](_0x3118ad,_0x153fa9=0x1){const _0x513c35=_0x55d57c;return{'startRow':_0x3118ad,'endRow':_0x3118ad+_0x153fa9-0x1,'startColumn':0x0,'endColumn':Math[_0x513c35(0x27d)](0x0,this[_0x513c35(0x220)]()-0x1)};}['getColumnRange'](_0x5f29a5){const _0x571d97=_0x55d57c;return this[_0x571d97(0x24e)](_0x5f29a5,0x1);}[_0x55d57c(0x24e)](_0xdd3aea,_0x1296d2=0x1){const _0x797043=_0x55d57c;return{'startRow':0x0,'endRow':Math[_0x797043(0x27d)](0x0,this[_0x797043(0x1c9)]()-0x1),'startColumn':_0xdd3aea,'endColumn':_0xdd3aea+_0x1296d2-0x1};}[_0x55d57c(0x1c4)](){const _0x266ea5=_0x55d57c;return this[_0x266ea5(0x235)](this[_0x266ea5(0x1d4)](),_0x23f840['DocsTableSelectionKind'][_0x266ea5(0x225)]);}[_0x55d57c(0x252)](_0x110e66){return this['selectRows'](_0x110e66,0x1);}['selectRows'](_0x1daf4a,_0x54e27a=0x1){const _0xa96936=_0x55d57c;return this[_0xa96936(0x235)](this[_0xa96936(0x1c5)](_0x1daf4a,_0x54e27a),_0x23f840['DocsTableSelectionKind'][_0xa96936(0x234)]);}[_0x55d57c(0x244)](_0xf59cc8){const _0x4076f1=_0x55d57c;return this[_0x4076f1(0x208)](_0xf59cc8,0x1);}[_0x55d57c(0x208)](_0xdfbdf8,_0x1cb253=0x1){const _0xd7a860=_0x55d57c;return this[_0xd7a860(0x235)](this[_0xd7a860(0x24e)](_0xdfbdf8,_0x1cb253),_0x23f840[_0xd7a860(0x25e)][_0xd7a860(0x218)]);}[_0x55d57c(0x203)](_0x2a71a1,_0x58f3ae){const _0x4a3f86=_0x55d57c;return this[_0x4a3f86(0x235)](this[_0x4a3f86(0x1fb)](_0x2a71a1,_0x58f3ae),_0x23f840[_0x4a3f86(0x25e)][_0x4a3f86(0x1d8)]);}['selectRange'](_0x40da7c,_0x4e5d4a=_0x23f840['DocsTableSelectionKind'][_0x55d57c(0x204)]){const _0x50440a=_0x55d57c;return this[_0x50440a(0x278)][_0x50440a(0x1d6)](_0x23f840[_0x50440a(0x1e1)])['setStructuralSelection']({..._0x40da7c,'kind':_0x4e5d4a,'segmentId':this[_0x50440a(0x1de)],'tableId':this['_tableId']}),!0x0;}[_0x55d57c(0x20e)](_0x633d15){const _0x4c7ccc=_0x55d57c;return this[_0x4c7ccc(0x263)](_0x633d15,0x1);}[_0x55d57c(0x21e)](_0x301cd1){const _0x270e6a=_0x55d57c;return this[_0x270e6a(0x27e)](_0x301cd1,0x1);}[_0x55d57c(0x263)](_0x5d8a7a,_0x15d977){const _0x3cc906=_0x55d57c;let _0x6349eb=this[_0x3cc906(0x27b)](),_0x374904=(0x0,_0x23f840['buildInsertTableRowsMutationActions'])(_0x6349eb,this['_tableId'],_0x5d8a7a,_0x15d977,_0x23f840[_0x3cc906(0x269)][_0x3cc906(0x1f7)],this[_0x3cc906(0x1c8)]());return _0x374904?this['_mutateActions'](_0x6349eb,_0x374904[_0x3cc906(0x211)]):!0x1;}['insertRowsAfter'](_0x54a28f,_0x3cc08e){const _0x21b655=_0x55d57c;let _0x4b9367=this['_getDocumentData'](),_0x4d8fa6=(0x0,_0x23f840['buildInsertTableRowsMutationActions'])(_0x4b9367,this[_0x21b655(0x247)],_0x54a28f,_0x3cc08e,_0x23f840[_0x21b655(0x269)][_0x21b655(0x21c)],this[_0x21b655(0x1c8)]());return _0x4d8fa6?this[_0x21b655(0x1e3)](_0x4b9367,_0x4d8fa6['actions']):!0x1;}[_0x55d57c(0x240)](){const _0x6b0e97=_0x55d57c;return this[_0x6b0e97(0x27e)](Math[_0x6b0e97(0x27d)](0x0,this[_0x6b0e97(0x1c9)]()-0x1),0x1);}['insertColumnBefore'](_0x7c6d7f){const _0x21f965=_0x55d57c;return this[_0x21f965(0x20d)](_0x7c6d7f,0x1);}[_0x55d57c(0x230)](_0x22ffba){const _0x5eb673=_0x55d57c;return this[_0x5eb673(0x22f)](_0x22ffba,0x1);}[_0x55d57c(0x20d)](_0xe0fa4,_0x3862ff){const _0x521e4e=_0x55d57c;let _0x16b4f5=this[_0x521e4e(0x27b)](),_0x1e39af=(0x0,_0x23f840[_0x521e4e(0x1ba)])(_0x16b4f5,this[_0x521e4e(0x247)],_0xe0fa4,_0x3862ff,_0x23f840[_0x521e4e(0x269)]['Left'],{'bodyPath':this[_0x521e4e(0x1c8)]()});return _0x1e39af?this[_0x521e4e(0x1e3)](_0x16b4f5,_0x1e39af[_0x521e4e(0x211)]):!0x1;}[_0x55d57c(0x22f)](_0x225040,_0x31a63e){const _0x9a6ac9=_0x55d57c;let _0x5bdf69=this['_getDocumentData'](),_0x56611f=(0x0,_0x23f840['buildInsertTableColumnsMutationActions'])(_0x5bdf69,this[_0x9a6ac9(0x247)],_0x225040,_0x31a63e,_0x23f840[_0x9a6ac9(0x269)][_0x9a6ac9(0x213)],{'bodyPath':this[_0x9a6ac9(0x1c8)]()});return _0x56611f?this[_0x9a6ac9(0x1e3)](_0x5bdf69,_0x56611f[_0x9a6ac9(0x211)]):!0x1;}[_0x55d57c(0x26f)](){const _0x30292d=_0x55d57c;return this[_0x30292d(0x22f)](Math[_0x30292d(0x27d)](0x0,this[_0x30292d(0x220)]()-0x1),0x1);}[_0x55d57c(0x21b)](_0x2fa22c){const _0x15f222=_0x55d57c;return this[_0x15f222(0x1f4)](_0x2fa22c,0x1);}[_0x55d57c(0x1f4)](_0x106a46,_0x45ca2=0x1){const _0x3fca0d=_0x55d57c;return!!this[_0x3fca0d(0x23c)][_0x3fca0d(0x214)](_0x23f840[_0x3fca0d(0x227)]['id'],{'endRow':_0x106a46+_0x45ca2-0x1,'segmentId':this['_segmentId'],'startRow':_0x106a46,'tableId':this[_0x3fca0d(0x247)],'unitId':this[_0x3fca0d(0x284)]});}[_0x55d57c(0x242)](_0x18bbaa){const _0x5b39f7=_0x55d57c;return this[_0x5b39f7(0x1c7)](_0x18bbaa,0x1);}[_0x55d57c(0x1c7)](_0x51e2fa,_0x144ea8=0x1){const _0x3d2979=_0x55d57c;return!!this[_0x3d2979(0x23c)][_0x3d2979(0x214)](_0x23f840[_0x3d2979(0x1e7)]['id'],{'endColumn':_0x51e2fa+_0x144ea8-0x1,'segmentId':this['_segmentId'],'startColumn':_0x51e2fa,'tableId':this[_0x3d2979(0x247)],'unitId':this[_0x3d2979(0x284)]});}['deleteTable'](){const _0x217704=_0x55d57c;return!!this[_0x217704(0x23c)][_0x217704(0x214)](_0x23f840[_0x217704(0x1ef)]['id'],{'segmentId':this[_0x217704(0x1de)],'tableId':this[_0x217704(0x247)],'unitId':this[_0x217704(0x284)]});}['moveTableBy'](_0x1cc351,_0x5cb087){const _0x139fce=_0x55d57c;let _0x26187d=this['_getDocumentData']();return this[_0x139fce(0x1e3)](_0x26187d,(0x0,_0x23f840[_0x139fce(0x217)])(_0x26187d,this[_0x139fce(0x247)],_0x1cc351,_0x5cb087));}[_0x55d57c(0x1dd)](_0x5ecf2f){const _0x20a0ca=_0x55d57c;let _0x52a97d=this[_0x20a0ca(0x27b)]();return this[_0x20a0ca(0x1e3)](_0x52a97d,(0x0,_0x23f840[_0x20a0ca(0x201)])(_0x52a97d,this[_0x20a0ca(0x247)],_0x5ecf2f,this[_0x20a0ca(0x1c8)]()));}[_0x55d57c(0x1ff)](_0x1b368d,_0x29e5a0,_0x13a020=_0x23f840['DocsTableInsertPosition'][_0x55d57c(0x1f7)]){const _0x27368d=_0x55d57c;return this[_0x27368d(0x266)](_0x1b368d,0x1,_0x29e5a0,_0x13a020);}[_0x55d57c(0x266)](_0x4d7e1c,_0xba0c7b,_0x3b3f70,_0x2d8d00=_0x23f840[_0x55d57c(0x269)][_0x55d57c(0x1f7)]){const _0x1ae373=_0x55d57c;let _0xb08399=this[_0x1ae373(0x27b)](),_0x5c89ea=(0x0,_0x23f840['buildMoveTableRowsMutationActions'])(_0xb08399,this[_0x1ae373(0x247)],_0x4d7e1c,_0x3b3f70,_0xba0c7b,_0x2d8d00,this[_0x1ae373(0x1c8)]());return _0x5c89ea?this['_mutateActions'](_0xb08399,_0x5c89ea[_0x1ae373(0x211)]):!0x1;}['moveColumn'](_0x5ed3ed,_0x229550,_0xccaa5a=_0x23f840[_0x55d57c(0x269)]['Left']){return this['moveColumns'](_0x5ed3ed,0x1,_0x229550,_0xccaa5a);}[_0x55d57c(0x21a)](_0x473483,_0x4668ad,_0x4fcd9f,_0x4eb25d=_0x23f840[_0x55d57c(0x269)][_0x55d57c(0x285)]){const _0x136e1a=_0x55d57c;let _0x3d5a83=this[_0x136e1a(0x27b)](),_0x1994f2=(0x0,_0x23f840[_0x136e1a(0x256)])(_0x3d5a83,this[_0x136e1a(0x247)],_0x473483,_0x4fcd9f,_0x4668ad,_0x4eb25d,this[_0x136e1a(0x1c8)]());return _0x1994f2?this[_0x136e1a(0x1e3)](_0x3d5a83,_0x1994f2[_0x136e1a(0x211)]):!0x1;}[_0x55d57c(0x1da)](_0x429d73){const _0xd7f4b2=_0x55d57c;try{let _0x9f2b44=this[_0xd7f4b2(0x27b)](),_0x144a84=(0x0,_0x23f840[_0xd7f4b2(0x238)])({'documentData':_0x9f2b44,'tableId':this[_0xd7f4b2(0x247)],..._0x429d73});return _0x144a84?this[_0xd7f4b2(0x1e3)](_0x9f2b44,_0x144a84[_0xd7f4b2(0x211)],_0x429d73):!0x1;}catch{return!0x1;}}[_0x55d57c(0x1ab)](_0x403351){const _0x4e98b3=_0x55d57c;try{let _0x2fefdb=this[_0x4e98b3(0x27b)](),_0x14d7ce=(0x0,_0x23f840[_0x4e98b3(0x268)])({'documentData':_0x2fefdb,'tableId':this[_0x4e98b3(0x247)],..._0x403351});return _0x14d7ce?this[_0x4e98b3(0x1e3)](_0x2fefdb,_0x14d7ce[_0x4e98b3(0x211)],_0x403351):!0x1;}catch{return!0x1;}}[_0x55d57c(0x264)](_0x17c373,_0x509bb4,_0x59297d){const _0x136355=_0x55d57c;let _0x5556ee=this[_0x136355(0x27b)](),_0x35fc88=(0x0,_0x23f840['getTableActionBodyPath'])(this['_document']['getDocumentDataModel']()[_0x136355(0x1bc)](),this[_0x136355(0x1de)]);return this[_0x136355(0x1e3)](_0x5556ee,(0x0,_0x23f840[_0x136355(0x1c2)])({'documentData':_0x5556ee,'tableId':this[_0x136355(0x247)],'row':_0x17c373,'column':_0x509bb4,'text':_0x59297d},_0x35fc88),this[_0x136355(0x1fb)](_0x17c373,_0x509bb4));}['setCellBackground'](_0x37bd1c,_0x5275f4){const _0x3c84bb=_0x55d57c;let _0xc5c428=this['_getDocumentData']();return this[_0x3c84bb(0x1e3)](_0xc5c428,(0x0,_0x23f840[_0x3c84bb(0x288)])(_0xc5c428,{'tableId':this[_0x3c84bb(0x247)],..._0x37bd1c,'value':_0x5275f4}),_0x37bd1c);}[_0x55d57c(0x246)](_0x4df4ed,_0x2db6ad){const _0x223418=_0x55d57c;let _0x51163d=this[_0x223418(0x27b)]();return this['_mutateActions'](_0x51163d,(0x0,_0x23f840[_0x223418(0x255)])({'documentData':_0x51163d,'tableId':this['_tableId'],..._0x4df4ed,'margin':_0x2db6ad}),_0x4df4ed);}[_0x55d57c(0x216)](_0x1f2b81){const _0x29cf33=_0x55d57c;let _0xb3c9fa=this[_0x29cf33(0x27b)]();return this['_mutateActions'](_0xb3c9fa,(0x0,_0x23f840[_0x29cf33(0x251)])(_0xb3c9fa,this['_tableId'],_0x1f2b81));}[_0x55d57c(0x275)](_0x3fa136,_0x1c77c0){const _0x3b2dfb=_0x55d57c;let _0x43abbd=this[_0x3b2dfb(0x27b)]();return this[_0x3b2dfb(0x1e3)](_0x43abbd,this[_0x3b2dfb(0x1f9)](_0x43abbd,_0x3fa136,_0x1c77c0),_0x3fa136);}[_0x55d57c(0x233)](_0xd0e87){const _0x3e462d=_0x55d57c;return this[_0x3e462d(0x215)](this[_0x3e462d(0x1d4)](),_0xd0e87);}[_0x55d57c(0x28c)](_0x39e4fe){const _0x1f4091=_0x55d57c;return this[_0x1f4091(0x275)](this['getTableRange'](),_0x39e4fe);}['setTableStyle'](_0x19837a){const _0x49a02e=_0x55d57c;let _0x17b833=this['_getDocumentData'](),_0x5f48c9=this[_0x49a02e(0x1d4)](),_0x533de4=_0x19837a['backgroundColor']?(0x0,_0x23f840[_0x49a02e(0x288)])(_0x17b833,{'tableId':this['_tableId'],..._0x5f48c9,'value':_0x19837a[_0x49a02e(0x25f)]}):null,_0x5b0fb8=_0x19837a['border']?this[_0x49a02e(0x1f9)](_0x17b833,_0x5f48c9,_0x19837a[_0x49a02e(0x1c6)]):null;return this[_0x49a02e(0x1e3)](_0x17b833,_0x35ecf7[_0x49a02e(0x21f)][_0x49a02e(0x281)](_0x533de4,_0x5b0fb8),_0x5f48c9);}[_0x55d57c(0x210)](_0x3d7331,_0x124276,_0x150728=_0x35ecf7[_0x55d57c(0x1cb)][_0x55d57c(0x1fe)]){const _0x4fb865=_0x55d57c;var _0x3b0466;let _0x41b0dc=this[_0x4fb865(0x27b)]();return(_0x3b0466=_0x41b0dc['tableSource'])!=null&&(_0x3b0466=_0x3b0466[this[_0x4fb865(0x247)]])!=null&&_0x3b0466[_0x4fb865(0x1af)][_0x3d7331]?this[_0x4fb865(0x1e3)](_0x41b0dc,(0x0,_0x23f840[_0x4fb865(0x279)])(_0x41b0dc,this['_tableId'],_0x3d7331,_0x124276,_0x150728)):!0x1;}[_0x55d57c(0x273)](_0x2c390f){const _0x246d95=_0x55d57c;var _0x34fc46;let _0x5d3ea8=(_0x34fc46=this[_0x246d95(0x1e2)]())==null||(_0x34fc46=_0x34fc46[_0x246d95(0x1af)][_0x2c390f])==null?void 0x0:_0x34fc46[_0x246d95(0x1cc)];return _0x5d3ea8?_0x35ecf7[_0x246d95(0x1b7)]['deepClone'](_0x5d3ea8):null;}['setColumnWidth'](_0x29590d,_0xd7dde9){const _0x1c9b67=_0x55d57c;var _0x49c326;let _0x379015=this[_0x1c9b67(0x27b)]();return(_0x49c326=_0x379015[_0x1c9b67(0x22d)])!=null&&(_0x49c326=_0x49c326[this[_0x1c9b67(0x247)]])!=null&&_0x49c326[_0x1c9b67(0x1ee)][_0x29590d]?this[_0x1c9b67(0x1e3)](_0x379015,(0x0,_0x23f840[_0x1c9b67(0x1b5)])(_0x379015,this[_0x1c9b67(0x247)],_0x29590d,_0xd7dde9)):!0x1;}['distributeRows'](_0x13ec56=0x0,_0x10db6c=this[_0x55d57c(0x1c9)]()){const _0x5265a0=_0x55d57c;let _0x539efa=this[_0x5265a0(0x27b)]();return this[_0x5265a0(0x1e3)](_0x539efa,(0x0,_0x23f840[_0x5265a0(0x1b8)])(_0x539efa,this[_0x5265a0(0x247)],_0x13ec56,_0x13ec56+_0x10db6c-0x1));}['distributeColumns'](_0x106150=0x0,_0x2466e8=this[_0x55d57c(0x220)]()){const _0x4f57d7=_0x55d57c;let _0x4142d3=this[_0x4f57d7(0x27b)]();return this[_0x4f57d7(0x1e3)](_0x4142d3,(0x0,_0x23f840[_0x4f57d7(0x1be)])(_0x4142d3,this[_0x4f57d7(0x247)],_0x106150,_0x106150+_0x2466e8-0x1));}[_0x55d57c(0x1eb)](){var _0x6ce3f;return((_0x6ce3f=this['getMetadata']())==null?void 0x0:_0x6ce3f['headerRowCount'])??0x0;}['setHeaderRowCount'](_0x98c4f2){const _0x362e42=_0x55d57c;let _0x19e9c5=this['_getDocumentData'](),_0x451488=(0x0,_0x23f840[_0x362e42(0x1d0)])(_0x19e9c5,this[_0x362e42(0x247)],_0x98c4f2);return _0x451488?this['_mutateActions'](_0x19e9c5,_0x451488[_0x362e42(0x211)]):!0x1;}[_0x55d57c(0x224)](_0x300f0f){const _0x55d154=_0x55d57c;return this[_0x55d154(0x21d)](_0x300f0f);}[_0x55d57c(0x1ae)](){const _0x453b6d=_0x55d57c;var _0x19b7a7;return((_0x19b7a7=this[_0x453b6d(0x254)]())==null?void 0x0:_0x19b7a7[_0x453b6d(0x1b6)])??!0x1;}[_0x55d57c(0x258)](){const _0x56c358=_0x55d57c;let _0x2f5d8f=this[_0x56c358(0x27b)](),_0x119245=(0x0,_0x23f840['buildInsertTableTitleRowMutationActions'])(_0x2f5d8f,this[_0x56c358(0x247)],this[_0x56c358(0x1c8)]());return _0x119245?this[_0x56c358(0x1e3)](_0x2f5d8f,_0x119245[_0x56c358(0x211)]):!0x1;}[_0x55d57c(0x1b2)](_0x1cc8db,_0x12751a){const _0x979ba8=_0x55d57c;return!!this[_0x979ba8(0x23c)][_0x979ba8(0x214)](_0x23f840[_0x979ba8(0x27f)]['id'],{'unitId':this[_0x979ba8(0x284)],'tableId':this[_0x979ba8(0x247)],'segmentId':this['_segmentId'],'column':_0x1cc8db,'config':_0x12751a});}[_0x55d57c(0x23a)](_0x384ea8,_0x553a11){const _0x2f8b52=_0x55d57c;let _0x10d8d9=this[_0x2f8b52(0x27b)]();return this[_0x2f8b52(0x1e3)](_0x10d8d9,(0x0,_0x23f840[_0x2f8b52(0x22e)])(_0x10d8d9,this[_0x2f8b52(0x1d3)](),this['_tableId'],_0x384ea8,_0x553a11,this['_getBodyPath']()));}[_0x55d57c(0x1f9)](_0x80a343,_0x424f3e,_0x3e171d){const _0x29e109=_0x55d57c;return(0x0,_0x23f840[_0x29e109(0x262)])({'documentData':_0x80a343,'tableId':this['_tableId'],..._0x424f3e,'preset':_0x3e171d['preset']??_0x23f840['DocsTableBorderPreset'][_0x29e109(0x1d1)],'border':_0x3e171d[_0x29e109(0x1c6)]??{'color':{'rgb':_0x3e171d['color']??this[_0x29e109(0x278)][_0x29e109(0x1d6)](_0x35ecf7['ThemeService'])[_0x29e109(0x26b)]('gray.900')},'width':{'v':_0x3e171d[_0x29e109(0x1e9)]??0x1},'dashStyle':_0x35ecf7['DashStyleType']['SOLID']}});}['_getDocumentData'](){const _0x41afe1=_0x55d57c;let _0x36aa02=this['_document']['getDocumentDataModel']()[_0x41afe1(0x1bc)]();return this[_0x41afe1(0x1de)]?{...this[_0x41afe1(0x27c)][_0x41afe1(0x1d5)](this[_0x41afe1(0x1de)])[_0x41afe1(0x1bc)](),'documentStyle':_0x36aa02[_0x41afe1(0x232)],'tableSource':_0x36aa02[_0x41afe1(0x22d)]}:_0x36aa02;}[_0x55d57c(0x1d3)](){const _0x403169=_0x55d57c;return this[_0x403169(0x278)][_0x403169(0x1d6)](_0x23f840[_0x403169(0x1f5)])[_0x403169(0x1df)](this['_unitId'],this['_document'][_0x403169(0x1d5)]()['getSnapshot']());}[_0x55d57c(0x1c8)](){const _0x296de8=_0x55d57c;return(0x0,_0x23f840[_0x296de8(0x239)])(this['_document'][_0x296de8(0x1d5)]()[_0x296de8(0x1bc)](),this['_segmentId']);}['_mutateActions'](_0x3a4def,_0x57181d,_0x3331f9){const _0x4e706a=_0x55d57c;return(0x0,_0x23f840[_0x4e706a(0x282)])(this[_0x4e706a(0x23c)],this[_0x4e706a(0x284)],_0x3a4def,_0x57181d,_0x3331f9?{'tableId':this[_0x4e706a(0x247)],'segmentId':this[_0x4e706a(0x1de)],..._0x3331f9}:void 0x0);}};_0x4d92f2=_0x4e5de4([_0xb58257(0x3,_0x35ecf7['ICommandService']),_0xb58257(0x4,(0x0,_0x35ecf7[_0x55d57c(0x1bd)])(_0x35ecf7[_0x55d57c(0x1f6)]))],_0x4d92f2);var _0x21f137=class extends _0x5a9859[_0x55d57c(0x27a)]{[_0x55d57c(0x1e8)](_0x314f14=''){const _0x24c95f=_0x55d57c;return this[_0x24c95f(0x259)](_0x314f14)[_0x24c95f(0x219)](_0x133451=>this[_0x24c95f(0x280)](_0x133451[_0x24c95f(0x1b3)],_0x314f14));}[_0x55d57c(0x23f)](_0x311f9f,_0x5d72d5=''){const _0x22edde=_0x55d57c;return this[_0x22edde(0x259)](_0x5d72d5)[_0x22edde(0x26c)](_0xbfff4d=>_0xbfff4d[_0x22edde(0x1b3)]===_0x311f9f)?this[_0x22edde(0x280)](_0x311f9f,_0x5d72d5):null;}['getTableAt'](_0x4f8fbd,_0x53d0f1=''){const _0x58f074=_0x55d57c;var _0xb4a9e6;let _0x2024eb=(_0xb4a9e6=this[_0x58f074(0x259)](_0x53d0f1)[_0x4f8fbd])==null?void 0x0:_0xb4a9e6['tableId'];return _0x2024eb?this['_createFDocumentTable'](_0x2024eb,_0x53d0f1):null;}[_0x55d57c(0x253)](){const _0x5216f7=_0x55d57c;let _0xccc1e6=this[_0x5216f7(0x278)][_0x5216f7(0x1d6)](_0x23f840['DocsTableSelectionService'])['getStableTableSelection']();return _0xccc1e6!=null&&_0xccc1e6['tableId']?this[_0x5216f7(0x280)](_0xccc1e6[_0x5216f7(0x1b3)],_0xccc1e6['segmentId']):null;}[_0x55d57c(0x245)](_0x553573,_0x428792=''){return this['findTables'](_0x553573,_0x428792)[0x0]??null;}[_0x55d57c(0x26a)](_0x392e2f,_0x53d503=''){const _0xb3889=_0x55d57c;let _0x136811=this['_getTableDocumentData'](_0x53d503),_0xaefb28=typeof _0x392e2f==_0xb3889(0x277)?{'text':_0x392e2f}:_0x392e2f;return this[_0xb3889(0x1e8)](_0x53d503)[_0xb3889(0x1f1)](_0x3e36f8=>{const _0x3cb74c=_0xb3889;let _0x2f3aca=_0x3e36f8[_0x3cb74c(0x222)]();return!(_0xaefb28[_0x3cb74c(0x1b3)]&&_0x2f3aca!==_0xaefb28[_0x3cb74c(0x1b3)]||_0xaefb28[_0x3cb74c(0x1cf)]&&!this[_0x3cb74c(0x1ec)](_0x136811,_0x2f3aca,_0xaefb28[_0x3cb74c(0x1cf)])||_0xaefb28[_0x3cb74c(0x1b0)]&&!this[_0x3cb74c(0x248)](_0x3e36f8,0x0,_0xaefb28[_0x3cb74c(0x1b0)])||_0xaefb28['titleText']&&!this['_rowContainsText'](_0x3e36f8,0x0,_0xaefb28['titleText']));});}['insertTable'](_0x17849b,_0x31fb8a,_0x1c3aef={}){const _0x4bc663=_0x55d57c;let _0x57399b=this[_0x4bc663(0x278)][_0x4bc663(0x1d6)](_0x35ecf7['ICommandService']),_0x2b6818=_0x1c3aef[_0x4bc663(0x1b3)]??(0x0,_0x35ecf7[_0x4bc663(0x26e)])(0x6);return _0x57399b[_0x4bc663(0x214)](_0x23f840['DocsTableInsertTableCommand']['id'],{..._0x1c3aef,'unitId':this[_0x4bc663(0x222)](),'rows':_0x17849b,'columns':_0x31fb8a,'tableId':_0x2b6818})?this[_0x4bc663(0x280)](_0x2b6818,_0x1c3aef['segmentId']??''):null;}[_0x55d57c(0x257)](_0x44edce,_0x2e729c={}){const _0x509f66=_0x55d57c;let _0x28c56f=this[_0x509f66(0x278)]['get'](_0x35ecf7[_0x509f66(0x1d2)]),_0xdb79ff=_0x2e729c[_0x509f66(0x1b3)]??(0x0,_0x35ecf7[_0x509f66(0x26e)])(0x6);return _0x28c56f['syncExecuteCommand'](_0x23f840[_0x509f66(0x200)]['id'],{..._0x2e729c,'unitId':this[_0x509f66(0x222)](),'values':_0x44edce,'tableId':_0xdb79ff})?this[_0x509f66(0x280)](_0xdb79ff,_0x2e729c[_0x509f66(0x1f3)]??''):null;}[_0x55d57c(0x259)](_0x3ee237=''){let {tables:_0x232f6b=[]}=this['getBody'](_0x3ee237);return _0x232f6b;}['_getTableDocumentData'](_0x511331=''){const _0x182a44=_0x55d57c;let _0x171130=this[_0x182a44(0x1d5)]()[_0x182a44(0x1bc)]();return _0x511331?{...this['getDocumentDataModel'](_0x511331)[_0x182a44(0x1bc)](),'documentStyle':_0x171130['documentStyle'],'tableSource':_0x171130[_0x182a44(0x22d)]}:_0x171130;}['_createFDocumentTable'](_0x777a10,_0x521f28=''){const _0x6c014c=_0x55d57c;return this[_0x6c014c(0x278)][_0x6c014c(0x25b)](_0x4d92f2,this,_0x777a10,_0x521f28);}[_0x55d57c(0x1ec)](_0x43c148,_0x448505,_0x3596df){const _0x3a614f=_0x55d57c;var _0x3485a3;let _0x416b20=(0x0,_0x23f840['getTableRangeById'])(_0x43c148,_0x448505);if(!_0x416b20)return!0x1;let _0x4d171e=(_0x3485a3=_0x43c148['body'])==null?void 0x0:_0x3485a3[_0x3a614f(0x260)];return _0x4d171e?_0x4d171e[_0x3a614f(0x231)](_0x416b20[_0x3a614f(0x270)],_0x416b20['endOffset'])['includes'](_0x3596df):!0x1;}[_0x55d57c(0x248)](_0x105679,_0x5d12b9,_0x2be7b7){const _0x2f98a6=_0x55d57c;return Array['from']({'length':_0x105679[_0x2f98a6(0x220)]()},(_0x2c65cb,_0x1e143c)=>_0x105679[_0x2f98a6(0x271)](_0x5d12b9,_0x1e143c))[_0x2f98a6(0x26c)](_0x496b04=>_0x496b04['includes'](_0x2be7b7));}};_0x5a9859[_0x55d57c(0x27a)][_0x55d57c(0x1fd)](_0x21f137),Object[_0x55d57c(0x206)](_0x31d60b,_0x55d57c(0x20c),{'enumerable':!0x0,'get':function(){return _0x4d92f2;}}),_0x31d60b['FDocumentTableCell']=_0x375d01;}));function _0x38aa(_0x249eaf,_0x3f207b){_0x249eaf=_0x249eaf-0x1ab;const _0x15f3a2=_0x15f3();let _0x38aa1=_0x15f3a2[_0x249eaf];return _0x38aa1;}function _0x15f3(){const _0x48b43f=['insertColumnsBefore','insertRowBefore','body','setRowHeight','actions','endOffset','Right','syncExecuteCommand','setCellBackground','setDefaultCellMargin','buildMoveFloatingTableMutationActions','Column','map','moveColumns','deleteRow','Below','setHeaderRowCount','insertRowAfter','JSONX','getColumnCount','@univerjs-pro/docs-table','getId','959048aLzssF','pinHeaderRows','Table','12lTwDIY','DocsTableDeleteRowsCommand','call','setBackgroundColor','getOwnPropertyDescriptor','DocsTableSortDirection','DocsTableBorderPreset','tableSource','buildSortTableMutationActions','insertColumnsAfter','insertColumnAfter','slice','documentStyle','setTableBackground','Row','selectRange','getMargin','symbol','buildMergeCellsMutationActions','getTableActionBodyPath','sortByColumn','type','_commandService','iterator','344LINcmr','getTable','appendRow','setMargin','deleteColumn','39244KmnHOL','selectColumn','findTableByText','setCellMargin','_tableId','_rowContainsText','headerRowCount','40vXpbee','setText','UniverProDocsTableFacade','1606565SGzauu','getColumnsRange','DocsTableColumnInsertPosition','3279IaCCpB','buildSetTableDefaultCellMarginMutationActions','selectRow','getTableAtSelection','getMetadata','buildSetTableCellMarginMutationActions','buildMoveTableColumnsMutationActions','insertTableFromData','insertTitleRow','_getTables','getCellMargin','createInstance','DocsTableInsertTablePosition','default','DocsTableSelectionKind','backgroundColor','dataStream','getDefaultCellMarginOverride','buildSetTableBorderMutationActions','insertRowsBefore','setCellText','DashStyleType','moveRows','DEFAULT_DOCS_TABLE_CELL_MARGIN','buildUnmergeCellsMutationActions','DocsTableInsertPosition','findTables','getColorFromTheme','some','describe','generateRandomId','appendColumn','startOffset','getCellText','DocsTableRowInsertPosition','getRowHeight','columnTypes','setBorder','getTableRangeById','string','_injector','buildResizeTableRowActionsFromHeight','FDocument','_getDocumentData','_document','max','insertRowsAfter','DocsTableSetColumnTypeCommand','_createFDocumentTable','compose','executeRichTextTableActions','getMarginOverride','_unitId','Left','cells','margin','buildSetTableBackgroundMutationActions','Module','object','getSegmentId','setTableBorder','unmergeCells','getColumnIndex','from','hasTitleRow','tableRows','headerText','567531KuBUve','setColumnType','tableId','constructor','buildResizeTableColumnActionsFromWidth','titleRow','Tools','buildDistributeTableRowsMutationActions','unmerge','buildInsertTableColumnsMutationActions','@univerjs/core/facade','getSnapshot','Inject','buildDistributeTableColumnsMutationActions','getDefaultCellMargin','getCellContentRange','mergeTo','buildSetTableCellTextMutationActions','resolveTableMetadata','selectTable','getRowsRange','border','deleteColumns','_getBodyPath','getRowCount','deepClone','TableRowHeightRule','trHeight','getRange','getRowRange','text','buildSetTableHeaderRowCountMutationActions','All','ICommandService','_serializeModel','getTableRange','getDocumentDataModel','get','decorate','Cell','UniverDocsFacade','mergeCells','_row','_table','moveTableToOffset','_segmentId','serializeDocument','FEnum','DocsTableSelectionService','getSource','_mutateActions','UniverProDocsTable','function','prototype','DocsTableDeleteColumnsCommand','getTables','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getHeaderRowCount','_tableContainsText','getCellMarginOverride','tableColumns','DocsTableDeleteTableCommand','_column','filter','254422mTGnLZ','segmentId','deleteRows','DocsTableModel','Injector','Above','amd','_buildBorderActions','length','getCellRange','cellMargin','extend','AT_LEAST','moveRow','DocsTableInsertTableCommand','buildMoveTableToOffsetMutationActions','328451LXwumB','selectCell','Range','getCellInsertOffset','defineProperty','toStringTag','selectColumns','getRowIndex','rows','tableCells','FDocumentTable'];_0x15f3=function(){return _0x48b43f;};return _0x15f3();}