@univerjs-pro/docs-table 1.0.0-alpha.2 → 1.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # @univerjs-pro/docs-table
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@univerjs-pro/docs-table?style=flat-square)](https://npmjs.com/package/@univerjs-pro/docs-table)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/docs-table?style=flat-square)](https://npmjs.com/package/@univerjs-pro/docs-table)
4
5
  [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/docs-table?style=flat-square)](https://npmjs.com/package/@univerjs-pro/docs-table)
5
6
 
6
- `@univerjs-pro/docs-table` provides enhanced table model integration for Univer Docs.
7
+ `@univerjs-pro/docs-table` is part of Univer Pro. Enhanced table model integration for Univer Docs.
7
8
 
8
9
  ## Package Overview
9
10
 
@@ -31,7 +32,8 @@ univer.registerPlugin(UniverDocsTablePlugin);
31
32
 
32
33
  ## Integration Notes
33
34
 
34
- Use this package with `@univerjs-pro/docs-table-ui` when the application needs table UI.
35
+ - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
36
+ - Use the facade entry when integrating through Univer Facade APIs.
35
37
 
36
38
  ## Resources
37
39
 
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3edddc=_0x5726;(function(_0x58bbde,_0x239a7a){var _0x293279=_0x5726,_0x429d86=_0x58bbde();while(!![]){try{var _0x327150=parseInt(_0x293279(0x11c))/0x1+parseInt(_0x293279(0x64))/0x2+-parseInt(_0x293279(0xe6))/0x3*(parseInt(_0x293279(0xd5))/0x4)+parseInt(_0x293279(0x100))/0x5*(-parseInt(_0x293279(0xf2))/0x6)+-parseInt(_0x293279(0xd1))/0x7+-parseInt(_0x293279(0xb1))/0x8+parseInt(_0x293279(0x113))/0x9;if(_0x327150===_0x239a7a)break;else _0x429d86['push'](_0x429d86['shift']());}catch(_0x5f8398){_0x429d86['push'](_0x429d86['shift']());}}}(_0x4314,0x26fdf),Object[_0x3edddc(0xe8)](exports,Symbol[_0x3edddc(0xcf)],{'value':_0x3edddc(0xc3)}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/core/facade'),r=require('@univerjs/docs/facade');var i=class extends n[_0x3edddc(0xa4)]{get[_0x3edddc(0x7a)](){var _0x17209b=_0x3edddc;return e[_0x17209b(0x7a)];}get[_0x3edddc(0x107)](){var _0x3ddfd0=_0x3edddc;return e[_0x3ddfd0(0x107)];}get[_0x3edddc(0xfa)](){var _0x4dc687=_0x3edddc;return e[_0x4dc687(0xfa)];}get[_0x3edddc(0x68)](){var _0xe38f21=_0x3edddc;return e[_0xe38f21(0x68)];}get[_0x3edddc(0xb3)](){var _0x164475=_0x3edddc;return e[_0x164475(0xb3)];}get[_0x3edddc(0x7c)](){var _0x495a45=_0x3edddc;return e[_0x495a45(0x7c)];}get[_0x3edddc(0x109)](){var _0x3f06b2=_0x3edddc;return e[_0x3f06b2(0x109)];}get['DashStyleType'](){var _0x587dd8=_0x3edddc;return t[_0x587dd8(0x111)];}};n[_0x3edddc(0xa4)][_0x3edddc(0xab)](i);var a=class{constructor(_0x1a2e31,_0x5594f3,_0x3b4770){var _0x42d479=_0x3edddc;this['_table']=_0x1a2e31,this[_0x42d479(0x9a)]=_0x5594f3,this[_0x42d479(0x108)]=_0x3b4770;}[_0x3edddc(0x6c)](){var _0x25bc83=_0x3edddc;return this[_0x25bc83(0xbc)];}[_0x3edddc(0xdb)](){return this['_row'];}[_0x3edddc(0xc1)](){var _0x5ca490=_0x3edddc;return this[_0x5ca490(0x108)];}[_0x3edddc(0x123)](){var _0x1e4eb4=_0x3edddc;return this[_0x1e4eb4(0xbc)][_0x1e4eb4(0x99)](this[_0x1e4eb4(0x9a)],this[_0x1e4eb4(0x108)]);}[_0x3edddc(0xd0)](){var _0x35e4ea=_0x3edddc;return this[_0x35e4ea(0xbc)]['getCellContentRange'](this[_0x35e4ea(0x9a)],this[_0x35e4ea(0x108)]);}[_0x3edddc(0xc6)](){var _0x54a8eb=_0x3edddc;return this['_table']['getCellInsertOffset'](this[_0x54a8eb(0x9a)],this['_column']);}[_0x3edddc(0x77)](_0x2eaf4c){var _0x1b9e5b=_0x3edddc;return this[_0x1b9e5b(0xbc)][_0x1b9e5b(0xa6)](this[_0x1b9e5b(0x9a)],this[_0x1b9e5b(0x108)],_0x2eaf4c);}[_0x3edddc(0xad)](_0x3d608b){var _0x3213ec=_0x3edddc;return this[_0x3213ec(0xbc)]['setCellBackground'](this[_0x3213ec(0xbc)]['getCellRange'](this['_row'],this[_0x3213ec(0x108)]),_0x3d608b);}['setBorder'](_0x469ab5){var _0x154122=_0x3edddc;return this[_0x154122(0xbc)][_0x154122(0xe1)](this[_0x154122(0xbc)][_0x154122(0xc7)](this[_0x154122(0x9a)],this[_0x154122(0x108)]),_0x469ab5);}[_0x3edddc(0x9f)](_0x5bcdfc,_0xc9d92b){var _0x58a776=_0x3edddc;return this[_0x58a776(0xbc)][_0x58a776(0xce)]({'startRow':this[_0x58a776(0x9a)],'startColumn':this[_0x58a776(0x108)],'endRow':this[_0x58a776(0x9a)]+_0x5bcdfc-0x1,'endColumn':this[_0x58a776(0x108)]+_0xc9d92b-0x1});}['unmerge'](){var _0x42ee59=_0x3edddc;return this[_0x42ee59(0xbc)][_0x42ee59(0xb9)](this[_0x42ee59(0xbc)]['getCellRange'](this['_row'],this[_0x42ee59(0x108)]));}};function o(_0x5d3068){'@babel/helpers - typeof';var _0x3d1ecf=_0x3edddc;return o=typeof Symbol=='function'&&typeof Symbol[_0x3d1ecf(0xb2)]==_0x3d1ecf(0xec)?function(_0x11d064){return typeof _0x11d064;}:function(_0x57a868){var _0x5c999d=_0x3d1ecf;return _0x57a868&&typeof Symbol==_0x5c999d(0x7e)&&_0x57a868[_0x5c999d(0xea)]===Symbol&&_0x57a868!==Symbol[_0x5c999d(0x124)]?'symbol':typeof _0x57a868;},o(_0x5d3068);}function s(_0x15813d,_0x493eba){var _0x1762c9=_0x3edddc;if(o(_0x15813d)!=_0x1762c9(0x82)||!_0x15813d)return _0x15813d;var _0x15c380=_0x15813d[Symbol[_0x1762c9(0x80)]];if(_0x15c380!==void 0x0){var _0x38b5e7=_0x15c380[_0x1762c9(0xe2)](_0x15813d,_0x493eba||_0x1762c9(0xa0));if(o(_0x38b5e7)!=_0x1762c9(0x82))return _0x38b5e7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x493eba==='string'?String:Number)(_0x15813d);}function _0x5726(_0x33ab62,_0xb4feba){_0x33ab62=_0x33ab62-0x64;var _0x431446=_0x4314();var _0x57262f=_0x431446[_0x33ab62];return _0x57262f;}function _0x4314(){var _0x18f8ce=['deleteColumns','getRowIndex','selectRange','buildSetHeaderRowCountActions','selectCell','Left','FDocument','setBorder','call','titleText','getCell','columnTypes','22677ycNADr','DocsTableSelectionService','defineProperty','syncExecuteCommand','constructor','sortByColumn','symbol','color','SOLID','Above','getSource','describe','60402MGcPfv','createInstance','ICommandService','slice','setHeaderRowCount','getSnapshot','moveColumns','body','DocsTableSelectionKind','tableColumns','Below','border','preset','DocsTableModel','130shIuDu','getCellInsertOffset','#1f1f1f','distributeRows','buildMoveRowsActions','from','titleRow','DocsTableColumnType','_column','DocsTableSortDirection','_tableId','buildDeleteColumnsActions','getBody','buildMoveTableActions','selectColumns','headerText','_getTables','DashStyleType','_document','5581809bMsMeB','setCellBackground','FDocumentTable','startOffset','insertRowsBefore','appendColumn','selectRows','dataStream','deleteRow','208273FEIHEG','_segmentId','Right','findTableByText','setStructuralSelection','moveColumn','_getDocumentData','getText','prototype','200020USYNFn','getTableRangeById','_mutate','_injector','DocsTableRowInsertPosition','distributeColumns','hasTitleRow','Cell','getTable','headerRowCount','selectTable','tableId','FDocumentTableCell','buildResizeColumnActions','deleteColumn','segmentId','getColumnsRange','moveTableToOffset','_tableContainsText','setText','findTables','insertTitleRow','DocsTableInsertTablePosition','length','DocsTableBorderPreset','_unitId','function','insertRowBefore','toPrimitive','size','object','endOffset','type','pinHeaderRows','documentStyle','setTableStyle','buildDistributeColumnsActions','buildUnmergeCellsActions','getDocumentDataModel','setTableBorder','setColumnType','string','getRowCount','setRowHeight','insertTable','getCellContentRange','insertColumnsBefore','getTableAtSelection','buildInsertColumnsActions','replace','getRowRange','DocsTableInsertPosition','insertRowsAfter','getCellText','_row','getTableRange','tableSource','Table','_createFDocumentTable','mergeTo','default','setTitleRow','_getTableDocumentData','moveTableBy','FEnum','DocsTableInsertTableCommand','setCellText','_rowContainsText','getColumnCount','cells','tableRows','extend','max','setBackgroundColor','buildDeleteTableActions','deleteRows','some','1300576jLNxJK','iterator','DocsTableColumnInsertPosition','generateRandomId','text','setColumnWidth','includes','getColumnRange','unmergeCells','buildInsertRowsActions','_serializeModel','_table','insertColumnsAfter','selectColumn','Row','getRowsRange','getColumnIndex','getMetadata','Module','buildSortTableActions','deleteTable','getInsertOffset','getCellRange','moveRow','insertColumnAfter','getTables','moveRows','buildSetTableCellTextActions','width','mergeCells','toStringTag','getContentRange','770910FjCGhQ','serialize','getId','getSegmentId','124kXXCty','getHeaderRowCount','get','filter','setTableBackground'];_0x4314=function(){return _0x18f8ce;};return _0x4314();}function c(_0xccf4fd){var _0x97ca62=_0x3edddc,_0x455b66=s(_0xccf4fd,_0x97ca62(0x8d));return o(_0x455b66)==_0x97ca62(0xec)?_0x455b66:_0x455b66+'';}function l(_0x3a5f8d,_0x251b67,_0x25856e){var _0x16a78a=_0x3edddc;return(_0x251b67=c(_0x251b67))in _0x3a5f8d?Object[_0x16a78a(0xe8)](_0x3a5f8d,_0x251b67,{'value':_0x25856e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a5f8d[_0x251b67]=_0x25856e,_0x3a5f8d;}var u=class{constructor(_0x379893,_0x3c0894,_0x54a675='',_0x485a4d){var _0x2dd049=_0x3edddc;this[_0x2dd049(0x112)]=_0x379893,this[_0x2dd049(0x10a)]=_0x3c0894,this[_0x2dd049(0x11d)]=_0x54a675,this[_0x2dd049(0x67)]=_0x485a4d,l(this,_0x2dd049(0x7d),void 0x0),this[_0x2dd049(0x7d)]=this[_0x2dd049(0x112)][_0x2dd049(0xd3)]();}[_0x3edddc(0xd3)](){var _0x2460d8=_0x3edddc;return this[_0x2460d8(0x10a)];}[_0x3edddc(0xd4)](){var _0x40709e=_0x3edddc;return this[_0x40709e(0x11d)];}['getInfo'](){var _0xda850f=_0x3edddc;return{'id':this[_0xda850f(0x10a)],'rowCount':this['getRowCount'](),'columnCount':this[_0xda850f(0xa8)](),'metadata':this['getMetadata'](),'source':this['getSource']()};}[_0x3edddc(0xf1)](){var _0x116853=_0x3edddc,_0x166757,_0x183730;let _0x419809=this[_0x116853(0xc2)](),_0x324a73=this[_0x116853(0xf0)](),_0xe7d0aa=this['getColumnCount']();return{'id':this[_0x116853(0x10a)],'rowCount':this[_0x116853(0x8e)](),'columnCount':_0xe7d0aa,'headerRowCount':(_0x166757=_0x419809==null?void 0x0:_0x419809[_0x116853(0x6d)])==null?0x0:_0x166757,'titleRow':(_0x183730=_0x419809==null?void 0x0:_0x419809['titleRow'])==null?!0x1:_0x183730,'columns':Array[_0x116853(0x105)]({'length':_0xe7d0aa},(_0x4f156c,_0x45b00c)=>{var _0x3a9989=_0x116853,_0x4d1e42,_0x115eba;return{'index':_0x45b00c,'type':_0x419809==null||(_0x4d1e42=_0x419809[_0x3a9989(0xe5)])==null||(_0x4d1e42=_0x4d1e42[_0x45b00c])==null?void 0x0:_0x4d1e42[_0x3a9989(0x84)],'width':_0x324a73==null||(_0x115eba=_0x324a73[_0x3a9989(0xfb)][_0x45b00c])==null?void 0x0:_0x115eba[_0x3a9989(0x81)][_0x3a9989(0xcd)]['v']};}),'sampleRows':Array['from']({'length':this[_0x116853(0x8e)]()},(_0x3bb6f0,_0x22fa57)=>Array[_0x116853(0x105)]({'length':_0xe7d0aa},(_0x2bba68,_0x5a9d3a)=>this[_0x116853(0x99)](_0x22fa57,_0x5a9d3a)))['filter'](_0x57645c=>_0x57645c[_0x116853(0xb0)](_0x35456e=>_0x35456e[_0x116853(0x7b)]>0x0))[_0x116853(0xf5)](0x0,0x5)};}[_0x3edddc(0x8e)](){var _0x90fce1=_0x3edddc,_0x40c8ce,_0x378d04;return(_0x40c8ce=(_0x378d04=this[_0x90fce1(0xf0)]())==null?void 0x0:_0x378d04['tableRows']['length'])==null?0x0:_0x40c8ce;}[_0x3edddc(0xa8)](){var _0xfe25d4=_0x3edddc,_0x444e3f,_0xb0dca8;return(_0x444e3f=(_0xb0dca8=this[_0xfe25d4(0xf0)]())==null?void 0x0:_0xb0dca8[_0xfe25d4(0xfb)][_0xfe25d4(0x7b)])==null?0x0:_0x444e3f;}[_0x3edddc(0xe4)](_0x10653e,_0x33dac5){var _0xf25467=_0x3edddc,_0x21d2b3;return!((_0x21d2b3=this[_0xf25467(0xf0)]())==null||(_0x21d2b3=_0x21d2b3[_0xf25467(0xaa)][_0x10653e])==null)&&_0x21d2b3['tableCells'][_0x33dac5]?this['_injector'][_0xf25467(0xf3)](a,this,_0x10653e,_0x33dac5):null;}[_0x3edddc(0x99)](_0xd5b263,_0x551132){var _0x31cfb9=_0x3edddc,_0x357e5c,_0x3c0358,_0x21d1a7;let _0x33d439=(_0x357e5c=(0x0,e[_0x31cfb9(0x65)])(this[_0x31cfb9(0x122)](),this[_0x31cfb9(0x10a)]))==null||(_0x357e5c=_0x357e5c['rows'][_0xd5b263])==null?void 0x0:_0x357e5c[_0x31cfb9(0xa9)][_0x551132];return _0x33d439?(_0x3c0358=(_0x21d1a7=this[_0x31cfb9(0x122)]()[_0x31cfb9(0xf9)])==null?void 0x0:_0x21d1a7[_0x31cfb9(0x11a)]['slice'](_0x33d439['startOffset']+0x1,_0x33d439[_0x31cfb9(0x83)])[_0x31cfb9(0x95)](/\r\n$/,''))==null?'':_0x3c0358:'';}['getMetadata'](){var _0x4ae3e4=_0x3edddc;return this[_0x4ae3e4(0x67)][_0x4ae3e4(0xd7)](e[_0x4ae3e4(0xff)])['getTableMetadata'](this[_0x4ae3e4(0x7d)],this[_0x4ae3e4(0x10a)]);}[_0x3edddc(0xf0)](){var _0x29ef43=_0x3edddc,_0x177b83;return(_0x177b83=this[_0x29ef43(0x122)]()[_0x29ef43(0x9c)])==null?void 0x0:_0x177b83[this[_0x29ef43(0x10a)]];}['getRange'](){var _0x2a0cab=_0x3edddc;return(0x0,e[_0x2a0cab(0x65)])(this['_getDocumentData'](),this[_0x2a0cab(0x10a)]);}[_0x3edddc(0x9b)](){var _0x1f6cb5=_0x3edddc;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x1f6cb5(0x8e)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x1f6cb5(0xac)](0x0,this['getColumnCount']()-0x1)};}[_0x3edddc(0xc7)](_0x3f277d,_0x51468e){return{'startRow':_0x3f277d,'endRow':_0x3f277d,'startColumn':_0x51468e,'endColumn':_0x51468e};}[_0x3edddc(0x91)](_0x1496c8,_0x1faa88){var _0x371bde=_0x3edddc,_0x3cc840;let _0x18464a=(_0x3cc840=(0x0,e[_0x371bde(0x65)])(this[_0x371bde(0x122)](),this[_0x371bde(0x10a)]))==null||(_0x3cc840=_0x3cc840['rows'][_0x1496c8])==null?void 0x0:_0x3cc840[_0x371bde(0xa9)][_0x1faa88];if(!_0x18464a)return null;let _0x9899a2=_0x18464a[_0x371bde(0x116)]+0x1;return{'startOffset':_0x9899a2,'endOffset':Math[_0x371bde(0xac)](_0x9899a2,_0x18464a['endOffset']-0x1),'segmentId':this[_0x371bde(0x11d)]};}[_0x3edddc(0x101)](_0x485496,_0x40806e){var _0x389e2e=_0x3edddc,_0x51ca26,_0x1b0892;return(_0x51ca26=(_0x1b0892=this[_0x389e2e(0x91)](_0x485496,_0x40806e))==null?void 0x0:_0x1b0892[_0x389e2e(0x83)])==null?null:_0x51ca26;}[_0x3edddc(0x96)](_0x758720){var _0x176e34=_0x3edddc;return this[_0x176e34(0xc0)](_0x758720,0x1);}['getRowsRange'](_0x4e326b,_0xb936d6=0x1){var _0x4925c0=_0x3edddc;return{'startRow':_0x4e326b,'endRow':_0x4e326b+_0xb936d6-0x1,'startColumn':0x0,'endColumn':Math[_0x4925c0(0xac)](0x0,this[_0x4925c0(0xa8)]()-0x1)};}[_0x3edddc(0xb8)](_0x5570a5){var _0x5ca3dc=_0x3edddc;return this[_0x5ca3dc(0x74)](_0x5570a5,0x1);}[_0x3edddc(0x74)](_0x8647d1,_0x26eaf9=0x1){var _0x3b7a8f=_0x3edddc;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x3b7a8f(0x8e)]()-0x1),'startColumn':_0x8647d1,'endColumn':_0x8647d1+_0x26eaf9-0x1};}[_0x3edddc(0x6e)](){var _0x1b9dcd=_0x3edddc;return this['selectRange'](this[_0x1b9dcd(0x9b)](),e['DocsTableSelectionKind'][_0x1b9dcd(0x9d)]);}['selectRow'](_0x66474c){var _0x272233=_0x3edddc;return this[_0x272233(0x119)](_0x66474c,0x1);}[_0x3edddc(0x119)](_0x2036a5,_0x2f227e=0x1){var _0x176544=_0x3edddc;return this[_0x176544(0xdc)](this[_0x176544(0xc0)](_0x2036a5,_0x2f227e),e[_0x176544(0xfa)][_0x176544(0xbf)]);}[_0x3edddc(0xbe)](_0x4bb4f6){return this['selectColumns'](_0x4bb4f6,0x1);}[_0x3edddc(0x10e)](_0x39cc6b,_0x1fcf25=0x1){var _0x3c5f4d=_0x3edddc;return this['selectRange'](this[_0x3c5f4d(0x74)](_0x39cc6b,_0x1fcf25),e['DocsTableSelectionKind']['Column']);}[_0x3edddc(0xde)](_0x8c8583,_0x18abba){var _0x2920e5=_0x3edddc;return this['selectRange'](this[_0x2920e5(0xc7)](_0x8c8583,_0x18abba),e[_0x2920e5(0xfa)][_0x2920e5(0x6b)]);}[_0x3edddc(0xdc)](_0x193dcb,_0x12729a=e['DocsTableSelectionKind']['Range']){var _0x3e3064=_0x3edddc;return this['_injector'][_0x3e3064(0xd7)](e[_0x3e3064(0xe7)])[_0x3e3064(0x120)]({..._0x193dcb,'kind':_0x12729a,'segmentId':this[_0x3e3064(0x11d)],'tableId':this[_0x3e3064(0x10a)]}),!0x0;}[_0x3edddc(0x7f)](_0x172775){var _0x433c09=_0x3edddc;return this[_0x433c09(0x117)](_0x172775,0x1);}['insertRowAfter'](_0x328b49){var _0x9f52b0=_0x3edddc;return this[_0x9f52b0(0x98)](_0x328b49,0x1);}[_0x3edddc(0x117)](_0x88aa20,_0x3946bd){var _0x5efbce=_0x3edddc;return this['_mutate']((0x0,e[_0x5efbce(0xba)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x5efbce(0x10a)],'row':_0x88aa20,'count':_0x3946bd,'position':e['DocsTableInsertPosition'][_0x5efbce(0xef)]}));}[_0x3edddc(0x98)](_0x3dc403,_0xa1cc8b){var _0x40765a=_0x3edddc;return this[_0x40765a(0x66)]((0x0,e[_0x40765a(0xba)])({'documentData':this[_0x40765a(0x122)](),'tableId':this[_0x40765a(0x10a)],'row':_0x3dc403,'count':_0xa1cc8b,'position':e[_0x40765a(0x97)][_0x40765a(0xfc)]}));}['appendRow'](){var _0x4e5d6a=_0x3edddc;return this[_0x4e5d6a(0x98)](Math[_0x4e5d6a(0xac)](0x0,this['getRowCount']()-0x1),0x1);}['insertColumnBefore'](_0x1b49bb){var _0x1bfb04=_0x3edddc;return this[_0x1bfb04(0x92)](_0x1b49bb,0x1);}[_0x3edddc(0xc9)](_0x536e8a){return this['insertColumnsAfter'](_0x536e8a,0x1);}[_0x3edddc(0x92)](_0x14350c,_0x1d943a){var _0x4dece9=_0x3edddc;return this[_0x4dece9(0x66)]((0x0,e[_0x4dece9(0x94)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x4dece9(0x10a)],'column':_0x14350c,'count':_0x1d943a,'position':e['DocsTableInsertPosition'][_0x4dece9(0xdf)]}));}[_0x3edddc(0xbd)](_0x26e2c5,_0xca127a){var _0x5ba91b=_0x3edddc;return this['_mutate']((0x0,e['buildInsertColumnsActions'])({'documentData':this['_getDocumentData'](),'tableId':this[_0x5ba91b(0x10a)],'column':_0x26e2c5,'count':_0xca127a,'position':e[_0x5ba91b(0x97)][_0x5ba91b(0x11e)]}));}[_0x3edddc(0x118)](){var _0x2db448=_0x3edddc;return this[_0x2db448(0xbd)](Math[_0x2db448(0xac)](0x0,this[_0x2db448(0xa8)]()-0x1),0x1);}[_0x3edddc(0x11b)](_0x313b7a){var _0x429e51=_0x3edddc;return this[_0x429e51(0xaf)](_0x313b7a,0x1);}[_0x3edddc(0xaf)](_0x11fd6c,_0x1fcf90=0x1){var _0x5c71f9=_0x3edddc;return this['_mutate']((0x0,e['buildDeleteRowsActions'])({'documentData':this[_0x5c71f9(0x122)](),'tableId':this[_0x5c71f9(0x10a)],'startRow':_0x11fd6c,'endRow':_0x11fd6c+_0x1fcf90-0x1}));}[_0x3edddc(0x72)](_0x52f03a){var _0x8d0247=_0x3edddc;return this[_0x8d0247(0xda)](_0x52f03a,0x1);}['deleteColumns'](_0x23df2e,_0x363d7c=0x1){var _0x193e93=_0x3edddc;return this[_0x193e93(0x66)]((0x0,e[_0x193e93(0x10b)])({'documentData':this[_0x193e93(0x122)](),'tableId':this[_0x193e93(0x10a)],'startColumn':_0x23df2e,'endColumn':_0x23df2e+_0x363d7c-0x1}));}[_0x3edddc(0xc5)](){var _0x398e17=_0x3edddc;return this[_0x398e17(0x66)]((0x0,e[_0x398e17(0xae)])({'documentData':this[_0x398e17(0x122)](),'tableId':this['_tableId']}));}[_0x3edddc(0xa3)](_0x3fc0a5,_0x13f9c9){var _0x34ff3b=_0x3edddc;return this[_0x34ff3b(0x66)]((0x0,e[_0x34ff3b(0x10d)])({'documentData':this[_0x34ff3b(0x122)](),'tableId':this[_0x34ff3b(0x10a)],'deltaX':_0x3fc0a5,'deltaY':_0x13f9c9}));}[_0x3edddc(0x75)](_0x108f7f){var _0x77d707=_0x3edddc;return this['_mutate']((0x0,e['buildMoveTableActions'])({'documentData':this[_0x77d707(0x122)](),'tableId':this[_0x77d707(0x10a)],'targetOffset':_0x108f7f}));}[_0x3edddc(0xc8)](_0x546df9,_0x54b40b,_0x15e65d=e[_0x3edddc(0x97)][_0x3edddc(0xef)]){var _0xe32ee7=_0x3edddc;return this[_0xe32ee7(0xcb)](_0x546df9,0x1,_0x54b40b,_0x15e65d);}[_0x3edddc(0xcb)](_0x341330,_0x255408,_0x5e5052,_0x224814=e['DocsTableInsertPosition'][_0x3edddc(0xef)]){var _0x23e8d2=_0x3edddc;return this[_0x23e8d2(0x66)]((0x0,e[_0x23e8d2(0x104)])({'documentData':this[_0x23e8d2(0x122)](),'tableId':this['_tableId'],'fromRow':_0x341330,'count':_0x255408,'toRow':_0x5e5052,'position':_0x224814}));}[_0x3edddc(0x121)](_0x24c38e,_0x2b1fa6,_0x1f966d=e[_0x3edddc(0x97)][_0x3edddc(0xdf)]){var _0x3f46c6=_0x3edddc;return this[_0x3f46c6(0xf8)](_0x24c38e,0x1,_0x2b1fa6,_0x1f966d);}[_0x3edddc(0xf8)](_0x57ed1b,_0x3c9132,_0x5decc0,_0x5ec255=e[_0x3edddc(0x97)][_0x3edddc(0xdf)]){var _0x2637eb=_0x3edddc;return this[_0x2637eb(0x66)]((0x0,e['buildMoveColumnsActions'])({'documentData':this['_getDocumentData'](),'tableId':this['_tableId'],'fromColumn':_0x57ed1b,'count':_0x3c9132,'toColumn':_0x5decc0,'position':_0x5ec255}));}['mergeCells'](_0x2bea46){var _0x293424=_0x3edddc;try{return this['_mutate']((0x0,e['buildMergeCellsActions'])({'documentData':this[_0x293424(0x122)](),'tableId':this[_0x293424(0x10a)],..._0x2bea46}),_0x2bea46);}catch{return!0x1;}}[_0x3edddc(0xb9)](_0x5f2426){var _0x5f2029=_0x3edddc;try{return this[_0x5f2029(0x66)]((0x0,e[_0x5f2029(0x89)])({'documentData':this[_0x5f2029(0x122)](),'tableId':this[_0x5f2029(0x10a)],..._0x5f2426}),_0x5f2426);}catch{return!0x1;}}[_0x3edddc(0xa6)](_0x10d41c,_0x1e8931,_0x109c1c){var _0x284a7b=_0x3edddc;return this[_0x284a7b(0x66)]((0x0,e[_0x284a7b(0xcc)])({'documentData':this[_0x284a7b(0x122)](),'tableId':this[_0x284a7b(0x10a)],'row':_0x10d41c,'column':_0x1e8931,'text':_0x109c1c}),this[_0x284a7b(0xc7)](_0x10d41c,_0x1e8931));}[_0x3edddc(0x114)](_0x284929,_0x3e6234){var _0x4fb684=_0x3edddc;return this[_0x4fb684(0x66)]((0x0,e['buildSetTableCellBackgroundActions'])({'documentData':this[_0x4fb684(0x122)](),'tableId':this[_0x4fb684(0x10a)],..._0x284929,'color':_0x3e6234}),_0x284929);}[_0x3edddc(0xe1)](_0x4cb034,_0xb3096b){var _0x421492=_0x3edddc,_0x5a9807,_0xe85a11,_0x21bceb,_0x38f552;return this[_0x421492(0x66)]((0x0,e['buildSetTableBorderActions'])({'documentData':this[_0x421492(0x122)](),'tableId':this['_tableId'],..._0x4cb034,'preset':(_0x5a9807=_0xb3096b[_0x421492(0xfe)])==null?e[_0x421492(0x7c)]['All']:_0x5a9807,'border':(_0xe85a11=_0xb3096b[_0x421492(0xfd)])==null?{'color':{'rgb':(_0x21bceb=_0xb3096b[_0x421492(0xed)])==null?_0x421492(0x102):_0x21bceb},'width':{'v':(_0x38f552=_0xb3096b[_0x421492(0xcd)])==null?0x1:_0x38f552},'dashStyle':t[_0x421492(0x111)][_0x421492(0xee)]}:_0xe85a11}),_0x4cb034);}['setTableBackground'](_0x5747bc){var _0x479e21=_0x3edddc;return this[_0x479e21(0x114)](this[_0x479e21(0x9b)](),_0x5747bc);}[_0x3edddc(0x8b)](_0x41f2e8){var _0x2dbd69=_0x3edddc;return this['setBorder'](this[_0x2dbd69(0x9b)](),_0x41f2e8);}[_0x3edddc(0x87)](_0x3b46bd){var _0x729030=_0x3edddc;let _0x10a372=_0x3b46bd['backgroundColor']?this[_0x729030(0xd9)](_0x3b46bd['backgroundColor']):!0x0,_0xcfd82c=_0x3b46bd[_0x729030(0xfd)]?this[_0x729030(0x8b)](_0x3b46bd[_0x729030(0xfd)]):!0x0;return _0x10a372&&_0xcfd82c;}[_0x3edddc(0x8f)](_0x4baa85,_0x3b8cca){var _0x13e2bf=_0x3edddc;return this[_0x13e2bf(0x66)]((0x0,e['buildResizeRowActions'])({'documentData':this[_0x13e2bf(0x122)](),'tableId':this[_0x13e2bf(0x10a)],'row':_0x4baa85,'height':_0x3b8cca}));}[_0x3edddc(0xb6)](_0x159260,_0x211039){var _0x2dec4f=_0x3edddc;return this[_0x2dec4f(0x66)]((0x0,e[_0x2dec4f(0x71)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x2dec4f(0x10a)],'column':_0x159260,'width':_0x211039}));}[_0x3edddc(0x103)](_0x867caf=0x0,_0x5b4ae9=this[_0x3edddc(0x8e)]()){var _0x1c8576=_0x3edddc;return this[_0x1c8576(0x66)]((0x0,e['buildDistributeRowsActions'])({'documentData':this[_0x1c8576(0x122)](),'tableId':this['_tableId'],'startRow':_0x867caf,'endRow':_0x867caf+_0x5b4ae9-0x1}));}[_0x3edddc(0x69)](_0x477214=0x0,_0x38f08e=this[_0x3edddc(0xa8)]()){var _0x25a295=_0x3edddc;return this[_0x25a295(0x66)]((0x0,e[_0x25a295(0x88)])({'documentData':this[_0x25a295(0x122)](),'tableId':this[_0x25a295(0x10a)],'startColumn':_0x477214,'endColumn':_0x477214+_0x38f08e-0x1}));}[_0x3edddc(0xd6)](){var _0x376e74=_0x3edddc,_0x54be25,_0x48a8a4;return(_0x54be25=(_0x48a8a4=this[_0x376e74(0xc2)]())==null?void 0x0:_0x48a8a4[_0x376e74(0x6d)])==null?0x0:_0x54be25;}[_0x3edddc(0xf6)](_0x2aa774){var _0x282111=_0x3edddc;let _0x15f31d=this[_0x282111(0x67)][_0x282111(0xd7)](e[_0x282111(0xff)]),_0x2bb8db=(0x0,e[_0x282111(0xdd)])({'documentData':this[_0x282111(0x122)](),'metadata':this[_0x282111(0xbb)](),'tableId':this['_tableId'],'headerRowCount':_0x2aa774}),_0x4872d6=this[_0x282111(0x66)](_0x2bb8db);return _0x4872d6&&_0x15f31d['setHeaderRowCount'](this[_0x282111(0x7d)],this[_0x282111(0x10a)],_0x2aa774),_0x4872d6;}[_0x3edddc(0x85)](_0x36d57b){var _0x48fc5f=_0x3edddc;return this[_0x48fc5f(0xf6)](_0x36d57b);}[_0x3edddc(0x6a)](){var _0x8cb4a1=_0x3edddc,_0x2afc1c,_0x3dbb37;return(_0x2afc1c=(_0x3dbb37=this[_0x8cb4a1(0xc2)]())==null?void 0x0:_0x3dbb37[_0x8cb4a1(0x106)])==null?!0x1:_0x2afc1c;}[_0x3edddc(0x79)](){var _0x3a65ea=_0x3edddc;let _0x5e7ecc=this[_0x3a65ea(0x67)]['get'](e[_0x3a65ea(0xff)]),_0x36c939=(0x0,e['buildInsertTitleRowActions'])({'documentData':this['_getDocumentData'](),'metadata':this[_0x3a65ea(0xbb)](),'tableId':this[_0x3a65ea(0x10a)]}),_0x34e261=this['_mutate'](_0x36c939);return _0x34e261&&_0x5e7ecc[_0x3a65ea(0xa1)](this[_0x3a65ea(0x7d)],this[_0x3a65ea(0x10a)],!0x0),_0x34e261;}[_0x3edddc(0x8c)](_0x4cc287,_0x169f14){var _0x13250b=_0x3edddc;return this[_0x13250b(0x67)][_0x13250b(0xd7)](e['DocsTableModel'])[_0x13250b(0x8c)](this[_0x13250b(0x7d)],this['_tableId'],_0x4cc287,_0x169f14),!0x0;}[_0x3edddc(0xeb)](_0x254741,_0x3dd51c){var _0x4e9851=_0x3edddc;return this[_0x4e9851(0x66)]((0x0,e[_0x4e9851(0xc4)])({'documentData':this[_0x4e9851(0x122)](),'metadata':this[_0x4e9851(0xbb)](),'tableId':this['_tableId'],'column':_0x254741,'direction':_0x3dd51c}));}[_0x3edddc(0x122)](){var _0x1d03b0=_0x3edddc;let _0xcb885=this[_0x1d03b0(0x112)][_0x1d03b0(0x8a)]()['getSnapshot']();return this[_0x1d03b0(0x11d)]?{...this[_0x1d03b0(0x112)][_0x1d03b0(0x8a)](this[_0x1d03b0(0x11d)])[_0x1d03b0(0xf7)](),'documentStyle':_0xcb885['documentStyle'],'tableSource':_0xcb885[_0x1d03b0(0x9c)]}:_0xcb885;}[_0x3edddc(0xbb)](){var _0xfd30b2=_0x3edddc;return this[_0xfd30b2(0x67)]['get'](e[_0xfd30b2(0xff)])[_0xfd30b2(0xd2)](this[_0xfd30b2(0x7d)]);}['_mutate'](_0x5bf7f9,_0x19c414){var _0x2e6966=_0x3edddc;return(0x0,e['executeRichTextTableMutation'])(this[_0x2e6966(0x67)][_0x2e6966(0xd7)](t[_0x2e6966(0xf4)]),this[_0x2e6966(0x7d)],this[_0x2e6966(0x112)][_0x2e6966(0x8a)]()[_0x2e6966(0xf7)](),_0x5bf7f9['nextDocumentData'],_0x19c414?{'tableId':this['_tableId'],'segmentId':this['_segmentId'],..._0x19c414}:void 0x0,this[_0x2e6966(0x11d)]);}},d=class extends r[_0x3edddc(0xe0)]{['getTables'](_0xff7837=''){var _0x16d628=_0x3edddc;return this[_0x16d628(0x110)](_0xff7837)['map'](_0xe5e9d4=>this[_0x16d628(0x9e)](_0xe5e9d4[_0x16d628(0x6f)],_0xff7837));}['getTable'](_0x1c2ece,_0x2c3a58=''){var _0x115b0d=_0x3edddc;return this[_0x115b0d(0x110)](_0x2c3a58)['some'](_0x2e704f=>_0x2e704f[_0x115b0d(0x6f)]===_0x1c2ece)?this[_0x115b0d(0x9e)](_0x1c2ece,_0x2c3a58):null;}['getTableAt'](_0x18cbd6,_0x4fd478=''){var _0x1768da=_0x3edddc,_0x3ab98e;let _0x545519=(_0x3ab98e=this['_getTables'](_0x4fd478)[_0x18cbd6])==null?void 0x0:_0x3ab98e['tableId'];return _0x545519?this[_0x1768da(0x9e)](_0x545519,_0x4fd478):null;}[_0x3edddc(0x93)](){var _0x4b6b9e=_0x3edddc;let _0x5981f9=this['_injector'][_0x4b6b9e(0xd7)](e['DocsTableSelectionService'])['getStableTableSelection']();return _0x5981f9!=null&&_0x5981f9[_0x4b6b9e(0x6f)]?this[_0x4b6b9e(0x9e)](_0x5981f9[_0x4b6b9e(0x6f)],_0x5981f9['segmentId']):null;}[_0x3edddc(0x11f)](_0x511336,_0x46d058=''){var _0x1a5b72=_0x3edddc,_0x88c9a2;return(_0x88c9a2=this[_0x1a5b72(0x78)](_0x511336,_0x46d058)[0x0])==null?null:_0x88c9a2;}[_0x3edddc(0x78)](_0x4cefe6,_0x38bacc=''){var _0x1a5d4a=_0x3edddc;let _0x1cdf22=this[_0x1a5d4a(0xa2)](_0x38bacc),_0x5ee3a9=typeof _0x4cefe6==_0x1a5d4a(0x8d)?{'text':_0x4cefe6}:_0x4cefe6;return this[_0x1a5d4a(0xca)](_0x38bacc)[_0x1a5d4a(0xd8)](_0x179ce0=>{var _0x25e5f4=_0x1a5d4a;let _0x5c5466=_0x179ce0[_0x25e5f4(0xd3)]();return!(_0x5ee3a9[_0x25e5f4(0x6f)]&&_0x5c5466!==_0x5ee3a9[_0x25e5f4(0x6f)]||_0x5ee3a9[_0x25e5f4(0xb5)]&&!this[_0x25e5f4(0x76)](_0x1cdf22,_0x5c5466,_0x5ee3a9[_0x25e5f4(0xb5)])||_0x5ee3a9['headerText']&&!this[_0x25e5f4(0xa7)](_0x179ce0,0x0,_0x5ee3a9[_0x25e5f4(0x10f)])||_0x5ee3a9[_0x25e5f4(0xe3)]&&!this[_0x25e5f4(0xa7)](_0x179ce0,0x0,_0x5ee3a9[_0x25e5f4(0xe3)]));});}[_0x3edddc(0x90)](_0x71d834,_0x757e78,_0xe0617b={}){var _0x49e0e2=_0x3edddc,_0x496c0a,_0x51f904;let _0x381a2a=this[_0x49e0e2(0x67)][_0x49e0e2(0xd7)](t['ICommandService']),_0x442cb9=(_0x496c0a=_0xe0617b[_0x49e0e2(0x6f)])==null?(0x0,t['generateRandomId'])(0x6):_0x496c0a;return _0x381a2a[_0x49e0e2(0xe9)](e[_0x49e0e2(0xa5)]['id'],{..._0xe0617b,'unitId':this[_0x49e0e2(0xd3)](),'rows':_0x71d834,'columns':_0x757e78,'tableId':_0x442cb9})?this[_0x49e0e2(0x9e)](_0x442cb9,(_0x51f904=_0xe0617b['segmentId'])==null?'':_0x51f904):null;}['insertTableFromData'](_0x51613e,_0x2d5cbb={}){var _0x3a8f34=_0x3edddc,_0x1e7d61,_0x566d2a;let _0x24c367=this[_0x3a8f34(0x67)][_0x3a8f34(0xd7)](t[_0x3a8f34(0xf4)]),_0x70f832=(_0x1e7d61=_0x2d5cbb[_0x3a8f34(0x6f)])==null?(0x0,t[_0x3a8f34(0xb4)])(0x6):_0x1e7d61;return _0x24c367[_0x3a8f34(0xe9)](e['DocsTableInsertTableCommand']['id'],{..._0x2d5cbb,'unitId':this[_0x3a8f34(0xd3)](),'values':_0x51613e,'tableId':_0x70f832})?this['_createFDocumentTable'](_0x70f832,(_0x566d2a=_0x2d5cbb[_0x3a8f34(0x73)])==null?'':_0x566d2a):null;}['_getTables'](_0x33d6fd=''){var _0xeb2e8=_0x3edddc;let {tables:_0x4ee2bb=[]}=this[_0xeb2e8(0x10c)](_0x33d6fd);return _0x4ee2bb;}['_getTableDocumentData'](_0x4ee7e1=''){var _0x283482=_0x3edddc;let _0x5afb84=this['getDocumentDataModel']()[_0x283482(0xf7)]();return _0x4ee7e1?{...this[_0x283482(0x8a)](_0x4ee7e1)[_0x283482(0xf7)](),'documentStyle':_0x5afb84[_0x283482(0x86)],'tableSource':_0x5afb84[_0x283482(0x9c)]}:_0x5afb84;}['_createFDocumentTable'](_0x3b02d9,_0x2873f6=''){var _0x385bdb=_0x3edddc;return this[_0x385bdb(0x67)][_0x385bdb(0xf3)](u,this,_0x3b02d9,_0x2873f6,this[_0x385bdb(0x67)]);}['_tableContainsText'](_0x242e52,_0x323f6d,_0x1659d5){var _0x39b833=_0x3edddc,_0x22b4e4;let _0x3f8f5e=(0x0,e['getTableRangeById'])(_0x242e52,_0x323f6d);if(!_0x3f8f5e)return!0x1;let _0x1d0f2a=(_0x22b4e4=_0x242e52[_0x39b833(0xf9)])==null?void 0x0:_0x22b4e4[_0x39b833(0x11a)];return _0x1d0f2a?_0x1d0f2a[_0x39b833(0xf5)](_0x3f8f5e['startOffset'],_0x3f8f5e[_0x39b833(0x83)])[_0x39b833(0xb7)](_0x1659d5):!0x1;}[_0x3edddc(0xa7)](_0x27d3f1,_0x3cc80a,_0x28097e){var _0x471a83=_0x3edddc;return Array['from']({'length':_0x27d3f1[_0x471a83(0xa8)]()},(_0x366c86,_0x27035f)=>_0x27d3f1[_0x471a83(0x99)](_0x3cc80a,_0x27035f))[_0x471a83(0xb0)](_0x32b219=>_0x32b219['includes'](_0x28097e));}};r[_0x3edddc(0xe0)]['extend'](d),exports[_0x3edddc(0x115)]=u,exports[_0x3edddc(0x70)]=a;
1
+ function _0x36b7(_0xa4257b,_0x1a3ce2){_0xa4257b=_0xa4257b-0xea;const _0x44d3c6=_0x44d3();let _0x36b7d0=_0x44d3c6[_0xa4257b];return _0x36b7d0;}const _0x55ceb7=_0x36b7;(function(_0x4461e0,_0x378ca6){const _0xf6db03=_0x36b7,_0x1dcde6=_0x4461e0();while(!![]){try{const _0x2f50dd=parseInt(_0xf6db03(0x15c))/0x1+-parseInt(_0xf6db03(0x10f))/0x2+parseInt(_0xf6db03(0x178))/0x3*(parseInt(_0xf6db03(0x18c))/0x4)+-parseInt(_0xf6db03(0x104))/0x5+-parseInt(_0xf6db03(0xec))/0x6+parseInt(_0xf6db03(0x10b))/0x7+-parseInt(_0xf6db03(0x121))/0x8;if(_0x2f50dd===_0x378ca6)break;else _0x1dcde6['push'](_0x1dcde6['shift']());}catch(_0x54d2ad){_0x1dcde6['push'](_0x1dcde6['shift']());}}}(_0x44d3,0xc67a6),Object[_0x55ceb7(0x161)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/docs-table'),t=require('@univerjs/core'),n=require('@univerjs/core/facade'),r=require('@univerjs/docs/facade');function _0x44d3(){const _0x27247b=['extend','segmentId','DocsTableRowInsertPosition','getDefaultCellMarginOverride','FDocumentTableCell','createInstance','executeRichTextTableActions','tableCells','FEnum','_document','_table','_getBodyPath','color','max','setBackgroundColor','getCell','some','constructor','width','getTables','setStructuralSelection','map','DocsTableInsertTablePosition','Tools','setCellMargin','setColumnType','1501563cJVKsw','tableColumns','buildSortTableMutationActions','deleteRow','DashStyleType','defineProperty','findTableByText','deleteColumns','insertRowsAfter','iterator','columnTypes','tableSource','border','distributeRows','setDefaultCellMargin','cellMargin','_getTables','setTableBackground','mergeCells','getColumnsRange','moveRows','insertColumnsAfter','from','dataStream','getCellText','_getDocumentData','selectRow','actions','4453206wYtmCy','insertRowBefore','getCellRange','buildDistributeTableRowsMutationActions','DocsTableSortDirection','deepClone','Cell','setHeaderRowCount','titleRow','insertColumnBefore','setCellText','getDefaultCellMargin','getInsertOffset','length','buildMoveTableColumnsMutationActions','getRowCount','buildDistributeTableColumnsMutationActions','string','buildMoveTableToOffsetMutationActions','_mutateActions','4vTdqna','body','endOffset','getContentRange','toPrimitive','buildDeleteTableMutationActions','slice','filter','preset','getCellInsertOffset','buildInsertTableTitleRowMutationActions','Right','buildDeleteTableColumnsMutationActions','unmergeCells','getColumnIndex','selectColumns','getSnapshot','includes','insertTable','backgroundColor','AT_LEAST','getMetadata','selectRows','getDocumentDataModel','selectTable','DEFAULT_DOCS_TABLE_CELL_MARGIN','_getTableDocumentData','get','Column','appendColumn','getTableRangeById','sortByColumn','getColumnRange','getStableTableSelection','cells','findTables','getCellMarginOverride','getMarginOverride','getSource','Range','moveColumn','appendRow','insertRowsBefore','getTableRange','clearMarginOverride','getRowIndex','_unitId','moveColumns','buildResizeTableColumnActionsFromWidth','getRange','distributeColumns','moveRow','_rowContainsText','tableId','symbol','pinHeaderRows','6823428MzKcQd','DocsTableColumnType','getRowRange','Left','DocsTableSelectionKind','insertColumnsBefore','text','getRowsRange','size','DocsTableInsertPosition','buildSetTableBorderMutationActions','Below','describe','margin','moveTableToOffset','_tableId','DocsTableModel','documentStyle','buildMoveFloatingTableMutationActions','selectRange','_createFDocumentTable','getMargin','FDocument','buildSetTableHeaderRowCountMutationActions','103410QdvFRN','prototype','getHeaderRowCount','Row','Table','DocsTableBorderPreset','_injector','2648681RFdGup','_column','buildUnmergeCellsMutationActions','setTableBorder','609816kVYGZK','getText','buildSetTableDefaultCellMarginMutationActions','moveTableBy','default','setColumnWidth','startOffset','DocsTableInsertTableCommand','headerRowCount','deleteRows','object','deleteColumn','_serializeModel','getColumnCount','unmerge','rows','SOLID','getInfo','8708432xwATpi','getBody','buildSetTableCellTextMutationActions','_segmentId','ICommandService','buildSetTableCellMarginMutationActions','call','serialize','selectColumn','buildInsertTableColumnsMutationActions','#1f1f1f','buildDeleteTableRowsMutationActions','buildMergeCellsMutationActions','trHeight','_row','Above','buildInsertTableRowsMutationActions','getId','type','headerText','DocsTableSelectionService','getTableActionBodyPath','getCellMargin','deleteTable','setCellBackground','setTitleRow','DocsTableColumnInsertPosition','setBorder','titleText','insertTableFromData','getTableAtSelection','tableRows','getTableAt'];_0x44d3=function(){return _0x27247b;};return _0x44d3();}var i=class extends n[_0x55ceb7(0x14a)]{get[_0x55ceb7(0x158)](){const _0x4169f8=_0x55ceb7;return e[_0x4169f8(0x158)];}get[_0x55ceb7(0xed)](){const _0x707ede=_0x55ceb7;return e[_0x707ede(0xed)];}get[_0x55ceb7(0xf0)](){const _0x3f90f2=_0x55ceb7;return e[_0x3f90f2(0xf0)];}get[_0x55ceb7(0x144)](){const _0x58b633=_0x55ceb7;return e[_0x58b633(0x144)];}get[_0x55ceb7(0x13b)](){const _0x21a862=_0x55ceb7;return e[_0x21a862(0x13b)];}get[_0x55ceb7(0x109)](){const _0x5150de=_0x55ceb7;return e[_0x5150de(0x109)];}get[_0x55ceb7(0x17c)](){const _0x2b0431=_0x55ceb7;return e[_0x2b0431(0x17c)];}get['DashStyleType'](){const _0x34249=_0x55ceb7;return t[_0x34249(0x160)];}};n[_0x55ceb7(0x14a)]['extend'](i);var a=class{constructor(_0x5b54a2,_0x180713,_0x12f4ca){const _0x9e4930=_0x55ceb7;this['_table']=_0x5b54a2,this['_row']=_0x180713,this[_0x9e4930(0x10c)]=_0x12f4ca;}['getTable'](){const _0x28b9bb=_0x55ceb7;return this[_0x28b9bb(0x14c)];}[_0x55ceb7(0x1b9)](){const _0x6e3041=_0x55ceb7;return this[_0x6e3041(0x12f)];}[_0x55ceb7(0x19a)](){const _0x33cbc9=_0x55ceb7;return this[_0x33cbc9(0x10c)];}[_0x55ceb7(0x110)](){const _0x5b6e44=_0x55ceb7;return this[_0x5b6e44(0x14c)][_0x5b6e44(0x174)](this[_0x5b6e44(0x12f)],this[_0x5b6e44(0x10c)]);}[_0x55ceb7(0x18f)](){const _0x1aa06f=_0x55ceb7;return this[_0x1aa06f(0x14c)]['getCellContentRange'](this[_0x1aa06f(0x12f)],this[_0x1aa06f(0x10c)]);}[_0x55ceb7(0x184)](){const _0x5b0975=_0x55ceb7;return this['_table'][_0x5b0975(0x195)](this['_row'],this[_0x5b0975(0x10c)]);}[_0x55ceb7(0x101)](){const _0x2468e5=_0x55ceb7;return this[_0x2468e5(0x14c)][_0x2468e5(0x137)](this[_0x2468e5(0x12f)],this[_0x2468e5(0x10c)]);}[_0x55ceb7(0x1b1)](){const _0x4492cd=_0x55ceb7;return this[_0x4492cd(0x14c)][_0x4492cd(0x1b0)](this['_row'],this['_column']);}['setMargin'](_0x5f20b7){const _0x136590=_0x55ceb7;return this[_0x136590(0x14c)][_0x136590(0x15a)](this[_0x136590(0x14c)]['getCellRange'](this['_row'],this[_0x136590(0x10c)]),_0x5f20b7);}[_0x55ceb7(0x1b8)](){const _0x4ca742=_0x55ceb7;return this['_table'][_0x4ca742(0x15a)](this[_0x4ca742(0x14c)][_0x4ca742(0x17a)](this[_0x4ca742(0x12f)],this['_column']),null);}['setText'](_0x255179){const _0x3a92b0=_0x55ceb7;return this[_0x3a92b0(0x14c)][_0x3a92b0(0x182)](this[_0x3a92b0(0x12f)],this['_column'],_0x255179);}[_0x55ceb7(0x150)](_0x5b098c){const _0x2eef8f=_0x55ceb7;return this[_0x2eef8f(0x14c)][_0x2eef8f(0x139)](this['_table'][_0x2eef8f(0x17a)](this[_0x2eef8f(0x12f)],this[_0x2eef8f(0x10c)]),_0x5b098c);}[_0x55ceb7(0x13c)](_0x2ab3e9){const _0x28be26=_0x55ceb7;return this[_0x28be26(0x14c)][_0x28be26(0x13c)](this[_0x28be26(0x14c)][_0x28be26(0x17a)](this[_0x28be26(0x12f)],this['_column']),_0x2ab3e9);}['mergeTo'](_0x236179,_0x9751d2){const _0x122df1=_0x55ceb7;return this[_0x122df1(0x14c)][_0x122df1(0x16e)]({'startRow':this[_0x122df1(0x12f)],'startColumn':this['_column'],'endRow':this['_row']+_0x236179-0x1,'endColumn':this[_0x122df1(0x10c)]+_0x9751d2-0x1});}[_0x55ceb7(0x11d)](){const _0x5ba23f=_0x55ceb7;return this['_table']['unmergeCells'](this['_table']['getCellRange'](this[_0x5ba23f(0x12f)],this[_0x5ba23f(0x10c)]));}};function o(_0x203e61){'@babel/helpers - typeof';const _0x5c9a7b=_0x55ceb7;return o=typeof Symbol=='function'&&typeof Symbol[_0x5c9a7b(0x165)]==_0x5c9a7b(0xea)?function(_0x540904){return typeof _0x540904;}:function(_0x1f7f2b){const _0x369f8f=_0x5c9a7b;return _0x1f7f2b&&typeof Symbol=='function'&&_0x1f7f2b[_0x369f8f(0x153)]===Symbol&&_0x1f7f2b!==Symbol[_0x369f8f(0x105)]?'symbol':typeof _0x1f7f2b;},o(_0x203e61);}function s(_0x403b57,_0x24c01a){const _0x436119=_0x55ceb7;if(o(_0x403b57)!=_0x436119(0x119)||!_0x403b57)return _0x403b57;var _0x465fc1=_0x403b57[Symbol[_0x436119(0x190)]];if(_0x465fc1!==void 0x0){var _0x474da6=_0x465fc1[_0x436119(0x127)](_0x403b57,_0x24c01a||_0x436119(0x113));if(o(_0x474da6)!=_0x436119(0x119))return _0x474da6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x24c01a===_0x436119(0x189)?String:Number)(_0x403b57);}function c(_0x57715f){const _0x30b498=_0x55ceb7;var _0x3d9050=s(_0x57715f,'string');return o(_0x3d9050)==_0x30b498(0xea)?_0x3d9050:_0x3d9050+'';}function l(_0x330f67,_0x2007f2,_0x44a59a){const _0x35f753=_0x55ceb7;return(_0x2007f2=c(_0x2007f2))in _0x330f67?Object[_0x35f753(0x161)](_0x330f67,_0x2007f2,{'value':_0x44a59a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x330f67[_0x2007f2]=_0x44a59a,_0x330f67;}var u=class{constructor(_0x8e1fe7,_0x5e3176,_0x320ba3='',_0x219e9d){const _0x3db583=_0x55ceb7;this['_document']=_0x8e1fe7,this[_0x3db583(0xfb)]=_0x5e3176,this[_0x3db583(0x124)]=_0x320ba3,this['_injector']=_0x219e9d,l(this,_0x3db583(0x1ba),void 0x0),this[_0x3db583(0x1ba)]=this[_0x3db583(0x14b)][_0x3db583(0x132)]();}[_0x55ceb7(0x132)](){const _0x1f66af=_0x55ceb7;return this[_0x1f66af(0xfb)];}['getSegmentId'](){const _0x4d6edc=_0x55ceb7;return this[_0x4d6edc(0x124)];}[_0x55ceb7(0x120)](){const _0x57d08f=_0x55ceb7;return{'id':this[_0x57d08f(0xfb)],'rowCount':this[_0x57d08f(0x187)](),'columnCount':this[_0x57d08f(0x11c)](),'metadata':this[_0x57d08f(0x1a1)](),'source':this[_0x57d08f(0x1b2)]()};}[_0x55ceb7(0xf8)](){const _0x5b582b=_0x55ceb7;var _0x2df8df,_0x588cbb;let _0x457646=this[_0x5b582b(0x1a1)](),_0x433d43=this[_0x5b582b(0x1b2)](),_0x5c9dc1=this[_0x5b582b(0x11c)]();return{'id':this[_0x5b582b(0xfb)],'rowCount':this[_0x5b582b(0x187)](),'columnCount':_0x5c9dc1,'headerRowCount':(_0x2df8df=_0x457646==null?void 0x0:_0x457646['headerRowCount'])==null?0x0:_0x2df8df,'titleRow':(_0x588cbb=_0x457646==null?void 0x0:_0x457646[_0x5b582b(0x180)])==null?!0x1:_0x588cbb,'columns':Array[_0x5b582b(0x172)]({'length':_0x5c9dc1},(_0x1adbd,_0x54d632)=>{const _0xe9e989=_0x5b582b;var _0x15ebb7,_0x284722;return{'index':_0x54d632,'type':_0x457646==null||(_0x15ebb7=_0x457646[_0xe9e989(0x166)])==null||(_0x15ebb7=_0x15ebb7[_0x54d632])==null?void 0x0:_0x15ebb7[_0xe9e989(0x133)],'width':_0x433d43==null||(_0x284722=_0x433d43[_0xe9e989(0x15d)][_0x54d632])==null?void 0x0:_0x284722[_0xe9e989(0xf4)][_0xe9e989(0x154)]['v']};}),'sampleRows':Array[_0x5b582b(0x172)]({'length':this[_0x5b582b(0x187)]()},(_0x316af7,_0x43b57c)=>Array[_0x5b582b(0x172)]({'length':_0x5c9dc1},(_0x50b2c9,_0x69aed9)=>this['getCellText'](_0x43b57c,_0x69aed9)))[_0x5b582b(0x193)](_0x394092=>_0x394092[_0x5b582b(0x152)](_0x3d77df=>_0x3d77df[_0x5b582b(0x185)]>0x0))[_0x5b582b(0x192)](0x0,0x5)};}['getRowCount'](){const _0x271b7f=_0x55ceb7;var _0x2cba9a,_0x2ab933;return(_0x2cba9a=(_0x2ab933=this[_0x271b7f(0x1b2)]())==null?void 0x0:_0x2ab933[_0x271b7f(0x140)][_0x271b7f(0x185)])==null?0x0:_0x2cba9a;}[_0x55ceb7(0x11c)](){const _0x2c79b7=_0x55ceb7;var _0x46a066,_0x1ea090;return(_0x46a066=(_0x1ea090=this['getSource']())==null?void 0x0:_0x1ea090[_0x2c79b7(0x15d)][_0x2c79b7(0x185)])==null?0x0:_0x46a066;}[_0x55ceb7(0x151)](_0x4ff4e2,_0x5c211a){const _0x409833=_0x55ceb7;var _0x5a45ee;return!((_0x5a45ee=this[_0x409833(0x1b2)]())==null||(_0x5a45ee=_0x5a45ee['tableRows'][_0x4ff4e2])==null)&&_0x5a45ee[_0x409833(0x149)][_0x5c211a]?this[_0x409833(0x10a)][_0x409833(0x147)](a,this,_0x4ff4e2,_0x5c211a):null;}[_0x55ceb7(0x174)](_0x296e90,_0x220a37){const _0x4fb0b6=_0x55ceb7;var _0x2025f4,_0x2337c5,_0x2285b6;let _0x35a7b4=(_0x2025f4=(0x0,e[_0x4fb0b6(0x1aa)])(this[_0x4fb0b6(0x175)](),this[_0x4fb0b6(0xfb)]))==null||(_0x2025f4=_0x2025f4[_0x4fb0b6(0x11e)][_0x296e90])==null?void 0x0:_0x2025f4[_0x4fb0b6(0x1ae)][_0x220a37];return _0x35a7b4?(_0x2337c5=(_0x2285b6=this[_0x4fb0b6(0x175)]()[_0x4fb0b6(0x18d)])==null?void 0x0:_0x2285b6[_0x4fb0b6(0x173)][_0x4fb0b6(0x192)](_0x35a7b4['startOffset']+0x1,_0x35a7b4[_0x4fb0b6(0x18e)])['replace'](/\r\n$/,''))==null?'':_0x2337c5:'';}[_0x55ceb7(0x137)](_0x25cc1b,_0xb6597){const _0x59f91c=_0x55ceb7;var _0x572628,_0xe3561e,_0x405ed4;let _0x454919=this[_0x59f91c(0x1b2)](),_0x17cee8=_0x454919==null||(_0x572628=_0x454919[_0x59f91c(0x140)][_0x25cc1b])==null?void 0x0:_0x572628[_0x59f91c(0x149)][_0xb6597];return _0x17cee8?t[_0x59f91c(0x159)][_0x59f91c(0x17d)]((_0xe3561e=(_0x405ed4=_0x17cee8['margin'])==null?_0x454919[_0x59f91c(0x16b)]:_0x405ed4)==null?e[_0x59f91c(0x1a5)]:_0xe3561e):null;}[_0x55ceb7(0x1b0)](_0x43512e,_0x208154){const _0x3616a1=_0x55ceb7;var _0x4f8acf;let _0x355c42=(_0x4f8acf=this[_0x3616a1(0x1b2)]())==null||(_0x4f8acf=_0x4f8acf[_0x3616a1(0x140)][_0x43512e])==null?void 0x0:_0x4f8acf['tableCells'][_0x208154];return _0x355c42!=null&&_0x355c42[_0x3616a1(0xf9)]?t[_0x3616a1(0x159)][_0x3616a1(0x17d)](_0x355c42[_0x3616a1(0xf9)]):null;}[_0x55ceb7(0x183)](){const _0x2492ac=_0x55ceb7;var _0x22c737,_0x4c8fe1;return t[_0x2492ac(0x159)][_0x2492ac(0x17d)]((_0x22c737=(_0x4c8fe1=this[_0x2492ac(0x1b2)]())==null?void 0x0:_0x4c8fe1[_0x2492ac(0x16b)])==null?e[_0x2492ac(0x1a5)]:_0x22c737);}[_0x55ceb7(0x145)](){const _0xbce412=_0x55ceb7;var _0x24763c;let _0x54064a=(_0x24763c=this[_0xbce412(0x1b2)]())==null?void 0x0:_0x24763c[_0xbce412(0x16b)];return _0x54064a?t[_0xbce412(0x159)][_0xbce412(0x17d)](_0x54064a):null;}[_0x55ceb7(0x1a1)](){const _0x35d09a=_0x55ceb7;return this['_injector']['get'](e[_0x35d09a(0xfc)])['getTableMetadata'](this[_0x35d09a(0x1ba)],this[_0x35d09a(0xfb)]);}['getSource'](){const _0x3d60db=_0x55ceb7;var _0x1331d4;return(_0x1331d4=this[_0x3d60db(0x175)]()[_0x3d60db(0x167)])==null?void 0x0:_0x1331d4[this[_0x3d60db(0xfb)]];}[_0x55ceb7(0x1bd)](){const _0x13f839=_0x55ceb7;return(0x0,e['getTableRangeById'])(this[_0x13f839(0x175)](),this[_0x13f839(0xfb)]);}[_0x55ceb7(0x1b7)](){const _0x176716=_0x55ceb7;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x176716(0x187)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x176716(0x11c)]()-0x1)};}[_0x55ceb7(0x17a)](_0x1fab61,_0x32d5cb){return{'startRow':_0x1fab61,'endRow':_0x1fab61,'startColumn':_0x32d5cb,'endColumn':_0x32d5cb};}['getCellContentRange'](_0x5d2fdc,_0x188f58){const _0x3f5aaf=_0x55ceb7;var _0x8e258e;let _0x39efcc=(_0x8e258e=(0x0,e[_0x3f5aaf(0x1aa)])(this['_getDocumentData'](),this[_0x3f5aaf(0xfb)]))==null||(_0x8e258e=_0x8e258e['rows'][_0x5d2fdc])==null?void 0x0:_0x8e258e['cells'][_0x188f58];if(!_0x39efcc)return null;let _0x498170=_0x39efcc[_0x3f5aaf(0x115)]+0x1;return{'startOffset':_0x498170,'endOffset':Math[_0x3f5aaf(0x14f)](_0x498170,_0x39efcc[_0x3f5aaf(0x18e)]-0x1),'segmentId':this[_0x3f5aaf(0x124)]};}[_0x55ceb7(0x195)](_0x3d3b06,_0x2e8b62){const _0x3a99ee=_0x55ceb7;var _0x548105,_0x2c0b75;return(_0x548105=(_0x2c0b75=this['getCellContentRange'](_0x3d3b06,_0x2e8b62))==null?void 0x0:_0x2c0b75[_0x3a99ee(0x18e)])==null?null:_0x548105;}[_0x55ceb7(0xee)](_0x3af980){const _0x18be1d=_0x55ceb7;return this[_0x18be1d(0xf3)](_0x3af980,0x1);}[_0x55ceb7(0xf3)](_0x536279,_0x4b87f5=0x1){const _0x1fcdac=_0x55ceb7;return{'startRow':_0x536279,'endRow':_0x536279+_0x4b87f5-0x1,'startColumn':0x0,'endColumn':Math[_0x1fcdac(0x14f)](0x0,this[_0x1fcdac(0x11c)]()-0x1)};}[_0x55ceb7(0x1ac)](_0x11cd33){const _0x856e5b=_0x55ceb7;return this[_0x856e5b(0x16f)](_0x11cd33,0x1);}[_0x55ceb7(0x16f)](_0x9f7078,_0x52204e=0x1){return{'startRow':0x0,'endRow':Math['max'](0x0,this['getRowCount']()-0x1),'startColumn':_0x9f7078,'endColumn':_0x9f7078+_0x52204e-0x1};}[_0x55ceb7(0x1a4)](){const _0x5940dc=_0x55ceb7;return this[_0x5940dc(0xff)](this['getTableRange'](),e[_0x5940dc(0xf0)][_0x5940dc(0x108)]);}[_0x55ceb7(0x176)](_0x2fada9){const _0x3f5598=_0x55ceb7;return this[_0x3f5598(0x1a2)](_0x2fada9,0x1);}[_0x55ceb7(0x1a2)](_0x4c38c6,_0x1770ea=0x1){const _0xe5ae5b=_0x55ceb7;return this[_0xe5ae5b(0xff)](this[_0xe5ae5b(0xf3)](_0x4c38c6,_0x1770ea),e['DocsTableSelectionKind'][_0xe5ae5b(0x107)]);}[_0x55ceb7(0x129)](_0x4e4e2d){return this['selectColumns'](_0x4e4e2d,0x1);}[_0x55ceb7(0x19b)](_0x4bae58,_0x529e3c=0x1){const _0x547477=_0x55ceb7;return this[_0x547477(0xff)](this[_0x547477(0x16f)](_0x4bae58,_0x529e3c),e['DocsTableSelectionKind'][_0x547477(0x1a8)]);}['selectCell'](_0x40506d,_0x589568){const _0x5361dc=_0x55ceb7;return this[_0x5361dc(0xff)](this[_0x5361dc(0x17a)](_0x40506d,_0x589568),e[_0x5361dc(0xf0)][_0x5361dc(0x17e)]);}[_0x55ceb7(0xff)](_0x32a93a,_0x398381=e[_0x55ceb7(0xf0)][_0x55ceb7(0x1b3)]){const _0x5e0cdc=_0x55ceb7;return this[_0x5e0cdc(0x10a)][_0x5e0cdc(0x1a7)](e[_0x5e0cdc(0x135)])[_0x5e0cdc(0x156)]({..._0x32a93a,'kind':_0x398381,'segmentId':this[_0x5e0cdc(0x124)],'tableId':this[_0x5e0cdc(0xfb)]}),!0x0;}[_0x55ceb7(0x179)](_0x2bc79d){const _0x4ca5bf=_0x55ceb7;return this[_0x4ca5bf(0x1b6)](_0x2bc79d,0x1);}['insertRowAfter'](_0x3dff4a){return this['insertRowsAfter'](_0x3dff4a,0x1);}[_0x55ceb7(0x1b6)](_0x54cc25,_0x55851e){const _0x24f98b=_0x55ceb7;let _0x435c91=this['_getDocumentData'](),_0x1ad82f=(0x0,e['buildInsertTableRowsMutationActions'])(_0x435c91,this[_0x24f98b(0xfb)],_0x54cc25,_0x55851e,e[_0x24f98b(0xf5)][_0x24f98b(0x130)],this[_0x24f98b(0x14d)]());return _0x1ad82f?this['_mutateActions'](_0x435c91,_0x1ad82f[_0x24f98b(0x177)]):!0x1;}[_0x55ceb7(0x164)](_0x485c79,_0xbe09e8){const _0x1be6af=_0x55ceb7;let _0x39d049=this[_0x1be6af(0x175)](),_0x3292b=(0x0,e[_0x1be6af(0x131)])(_0x39d049,this['_tableId'],_0x485c79,_0xbe09e8,e[_0x1be6af(0xf5)][_0x1be6af(0xf7)],this['_getBodyPath']());return _0x3292b?this[_0x1be6af(0x18b)](_0x39d049,_0x3292b[_0x1be6af(0x177)]):!0x1;}[_0x55ceb7(0x1b5)](){const _0x2d1702=_0x55ceb7;return this['insertRowsAfter'](Math[_0x2d1702(0x14f)](0x0,this[_0x2d1702(0x187)]()-0x1),0x1);}[_0x55ceb7(0x181)](_0xc71f51){return this['insertColumnsBefore'](_0xc71f51,0x1);}['insertColumnAfter'](_0x344108){const _0x286389=_0x55ceb7;return this[_0x286389(0x171)](_0x344108,0x1);}[_0x55ceb7(0xf1)](_0x138789,_0x529328){const _0x284c15=_0x55ceb7;let _0x28e4de=this['_getDocumentData'](),_0x4cb08e=(0x0,e['buildInsertTableColumnsMutationActions'])(_0x28e4de,this[_0x284c15(0xfb)],_0x138789,_0x529328,e[_0x284c15(0xf5)]['Left'],{'bodyPath':this[_0x284c15(0x14d)]()});return _0x4cb08e?this['_mutateActions'](_0x28e4de,_0x4cb08e[_0x284c15(0x177)]):!0x1;}[_0x55ceb7(0x171)](_0x4f43ec,_0x1075ea){const _0x6be6f1=_0x55ceb7;let _0x444d69=this[_0x6be6f1(0x175)](),_0x445d95=(0x0,e[_0x6be6f1(0x12a)])(_0x444d69,this[_0x6be6f1(0xfb)],_0x4f43ec,_0x1075ea,e['DocsTableInsertPosition'][_0x6be6f1(0x197)],{'bodyPath':this['_getBodyPath']()});return _0x445d95?this[_0x6be6f1(0x18b)](_0x444d69,_0x445d95[_0x6be6f1(0x177)]):!0x1;}[_0x55ceb7(0x1a9)](){const _0x48aac3=_0x55ceb7;return this[_0x48aac3(0x171)](Math[_0x48aac3(0x14f)](0x0,this[_0x48aac3(0x11c)]()-0x1),0x1);}[_0x55ceb7(0x15f)](_0x557147){const _0x1d6df3=_0x55ceb7;return this[_0x1d6df3(0x118)](_0x557147,0x1);}[_0x55ceb7(0x118)](_0x5440ce,_0x246eda=0x1){const _0x42f78b=_0x55ceb7;let _0x3cc04d=this[_0x42f78b(0x175)](),_0x34d2cc=(0x0,e[_0x42f78b(0x12c)])(_0x3cc04d,this[_0x42f78b(0xfb)],_0x5440ce,_0x5440ce+_0x246eda-0x1,this['_getBodyPath']());return _0x34d2cc?this['_mutateActions'](_0x3cc04d,_0x34d2cc[_0x42f78b(0x177)]):!0x1;}[_0x55ceb7(0x11a)](_0x5f4423){const _0x178efb=_0x55ceb7;return this[_0x178efb(0x163)](_0x5f4423,0x1);}[_0x55ceb7(0x163)](_0x34fd78,_0x672c67=0x1){const _0x2ac25c=_0x55ceb7;let _0x5cdf35=this[_0x2ac25c(0x175)](),_0x2552ee=(0x0,e[_0x2ac25c(0x198)])(_0x5cdf35,this[_0x2ac25c(0xfb)],_0x34fd78,_0x34fd78+_0x672c67-0x1,this[_0x2ac25c(0x14d)]());return _0x2552ee?this[_0x2ac25c(0x18b)](_0x5cdf35,_0x2552ee[_0x2ac25c(0x177)]):!0x1;}[_0x55ceb7(0x138)](){const _0x109842=_0x55ceb7;let _0x67bb35=this['_getDocumentData'](),_0x27201a=(0x0,e[_0x109842(0x191)])(_0x67bb35,this[_0x109842(0xfb)],this[_0x109842(0x14d)]());return _0x27201a?this[_0x109842(0x18b)](_0x67bb35,_0x27201a[_0x109842(0x177)]):!0x1;}[_0x55ceb7(0x112)](_0x35108b,_0x2486d3){const _0x410b79=_0x55ceb7;let _0x579f63=this['_getDocumentData']();return this['_mutateActions'](_0x579f63,(0x0,e[_0x410b79(0xfe)])(_0x579f63,this[_0x410b79(0xfb)],_0x35108b,_0x2486d3));}[_0x55ceb7(0xfa)](_0x11f30d){const _0x570422=_0x55ceb7;let _0x11d159=this[_0x570422(0x175)]();return this[_0x570422(0x18b)](_0x11d159,(0x0,e[_0x570422(0x18a)])(_0x11d159,this[_0x570422(0xfb)],_0x11f30d,this[_0x570422(0x14d)]()));}[_0x55ceb7(0x1bf)](_0x37c8e6,_0x3ec7ac,_0x381aec=e[_0x55ceb7(0xf5)]['Above']){const _0x51dba3=_0x55ceb7;return this[_0x51dba3(0x170)](_0x37c8e6,0x1,_0x3ec7ac,_0x381aec);}['moveRows'](_0x1c24d0,_0x5b0950,_0x86f081,_0x390b61=e['DocsTableInsertPosition'][_0x55ceb7(0x130)]){const _0x167277=_0x55ceb7;let _0x3dbecf=this['_getDocumentData'](),_0xc2828f=(0x0,e['buildMoveTableRowsMutationActions'])(_0x3dbecf,this[_0x167277(0xfb)],_0x1c24d0,_0x86f081,_0x5b0950,_0x390b61,this['_getBodyPath']());return _0xc2828f?this[_0x167277(0x18b)](_0x3dbecf,_0xc2828f[_0x167277(0x177)]):!0x1;}[_0x55ceb7(0x1b4)](_0x5a251a,_0x5f960a,_0x2f596c=e[_0x55ceb7(0xf5)][_0x55ceb7(0xef)]){return this['moveColumns'](_0x5a251a,0x1,_0x5f960a,_0x2f596c);}[_0x55ceb7(0x1bb)](_0x17831b,_0x473ab8,_0x6f4eab,_0x56b648=e['DocsTableInsertPosition'][_0x55ceb7(0xef)]){const _0x59c502=_0x55ceb7;let _0x55476e=this[_0x59c502(0x175)](),_0x4d06b8=(0x0,e[_0x59c502(0x186)])(_0x55476e,this[_0x59c502(0xfb)],_0x17831b,_0x6f4eab,_0x473ab8,_0x56b648,this[_0x59c502(0x14d)]());return _0x4d06b8?this[_0x59c502(0x18b)](_0x55476e,_0x4d06b8[_0x59c502(0x177)]):!0x1;}[_0x55ceb7(0x16e)](_0x41da11){const _0x56aa60=_0x55ceb7;try{let _0x5d05de=this[_0x56aa60(0x175)](),_0x10634d=(0x0,e[_0x56aa60(0x12d)])({'documentData':_0x5d05de,'tableId':this['_tableId'],..._0x41da11});return _0x10634d?this[_0x56aa60(0x18b)](_0x5d05de,_0x10634d['actions'],_0x41da11):!0x1;}catch{return!0x1;}}[_0x55ceb7(0x199)](_0x19b243){const _0x274aa1=_0x55ceb7;try{let _0x54eedd=this['_getDocumentData'](),_0x69a7c5=(0x0,e[_0x274aa1(0x10d)])({'documentData':_0x54eedd,'tableId':this['_tableId'],..._0x19b243});return _0x69a7c5?this['_mutateActions'](_0x54eedd,_0x69a7c5[_0x274aa1(0x177)],_0x19b243):!0x1;}catch{return!0x1;}}[_0x55ceb7(0x182)](_0x1ef0f6,_0x34571d,_0x1db62f){const _0x4db131=_0x55ceb7;let _0x140f03=this[_0x4db131(0x175)](),_0x20eac0=(0x0,e[_0x4db131(0x136)])(this[_0x4db131(0x14b)][_0x4db131(0x1a3)]()[_0x4db131(0x19c)](),this[_0x4db131(0x124)]);return this['_mutateActions'](_0x140f03,(0x0,e[_0x4db131(0x123)])({'documentData':_0x140f03,'tableId':this['_tableId'],'row':_0x1ef0f6,'column':_0x34571d,'text':_0x1db62f},_0x20eac0),this['getCellRange'](_0x1ef0f6,_0x34571d));}[_0x55ceb7(0x139)](_0x4bdf8b,_0x4e6e91){const _0x38c1d7=_0x55ceb7;let _0x369ff0=this['_getDocumentData']();return this[_0x38c1d7(0x18b)](_0x369ff0,(0x0,e['buildSetTableBackgroundMutationActions'])(_0x369ff0,{'tableId':this['_tableId'],..._0x4bdf8b,'value':_0x4e6e91}),_0x4bdf8b);}['setCellMargin'](_0x548174,_0x30eca1){const _0x4e46e6=_0x55ceb7;let _0x1d215c=this['_getDocumentData']();return this[_0x4e46e6(0x18b)](_0x1d215c,(0x0,e[_0x4e46e6(0x126)])({'documentData':_0x1d215c,'tableId':this[_0x4e46e6(0xfb)],..._0x548174,'margin':_0x30eca1}),_0x548174);}[_0x55ceb7(0x16a)](_0x324301){const _0x38b79e=_0x55ceb7;let _0x1702a8=this[_0x38b79e(0x175)]();return this['_mutateActions'](_0x1702a8,(0x0,e[_0x38b79e(0x111)])(_0x1702a8,this['_tableId'],_0x324301));}['setBorder'](_0x39fa65,_0x2bb78f){const _0x5e360b=_0x55ceb7;var _0x1bebdd,_0x1bd67d,_0x37122a,_0x3aabca;let _0x5078db=this['_getDocumentData']();return this['_mutateActions'](_0x5078db,(0x0,e[_0x5e360b(0xf6)])({'documentData':_0x5078db,'tableId':this['_tableId'],..._0x39fa65,'preset':(_0x1bebdd=_0x2bb78f[_0x5e360b(0x194)])==null?e[_0x5e360b(0x109)]['All']:_0x1bebdd,'border':(_0x1bd67d=_0x2bb78f[_0x5e360b(0x168)])==null?{'color':{'rgb':(_0x37122a=_0x2bb78f[_0x5e360b(0x14e)])==null?_0x5e360b(0x12b):_0x37122a},'width':{'v':(_0x3aabca=_0x2bb78f['width'])==null?0x1:_0x3aabca},'dashStyle':t[_0x5e360b(0x160)][_0x5e360b(0x11f)]}:_0x1bd67d}),_0x39fa65);}[_0x55ceb7(0x16d)](_0x226116){const _0xf87a9f=_0x55ceb7;return this[_0xf87a9f(0x139)](this['getTableRange'](),_0x226116);}[_0x55ceb7(0x10e)](_0x3fa7dd){const _0x580009=_0x55ceb7;return this['setBorder'](this[_0x580009(0x1b7)](),_0x3fa7dd);}['setTableStyle'](_0x327d50){const _0x43c4f0=_0x55ceb7;let _0x58d3e4=_0x327d50[_0x43c4f0(0x19f)]?this[_0x43c4f0(0x16d)](_0x327d50[_0x43c4f0(0x19f)]):!0x0,_0xb9f98c=_0x327d50[_0x43c4f0(0x168)]?this[_0x43c4f0(0x10e)](_0x327d50[_0x43c4f0(0x168)]):!0x0;return _0x58d3e4&&_0xb9f98c;}['setRowHeight'](_0x3c79f1,_0x3b17d4,_0xad20ed=t['TableRowHeightRule'][_0x55ceb7(0x1a0)]){const _0x476f7d=_0x55ceb7;var _0x2adb83;let _0x13dcd=this[_0x476f7d(0x175)]();return!((_0x2adb83=_0x13dcd[_0x476f7d(0x167)])==null||(_0x2adb83=_0x2adb83[this[_0x476f7d(0xfb)]])==null)&&_0x2adb83[_0x476f7d(0x140)][_0x3c79f1]?this[_0x476f7d(0x18b)](_0x13dcd,(0x0,e['buildResizeTableRowActionsFromHeight'])(_0x13dcd,this[_0x476f7d(0xfb)],_0x3c79f1,_0x3b17d4,_0xad20ed)):!0x1;}['getRowHeight'](_0x5ce400){const _0x2721f0=_0x55ceb7;var _0x4d784c;let _0x1397c9=(_0x4d784c=this[_0x2721f0(0x1b2)]())==null||(_0x4d784c=_0x4d784c[_0x2721f0(0x140)][_0x5ce400])==null?void 0x0:_0x4d784c[_0x2721f0(0x12e)];return _0x1397c9?t['Tools'][_0x2721f0(0x17d)](_0x1397c9):null;}[_0x55ceb7(0x114)](_0x248251,_0x230665){const _0x5c2b0a=_0x55ceb7;var _0x5a4f57;let _0x4882c0=this['_getDocumentData']();return!((_0x5a4f57=_0x4882c0[_0x5c2b0a(0x167)])==null||(_0x5a4f57=_0x5a4f57[this[_0x5c2b0a(0xfb)]])==null)&&_0x5a4f57[_0x5c2b0a(0x15d)][_0x248251]?this[_0x5c2b0a(0x18b)](_0x4882c0,(0x0,e[_0x5c2b0a(0x1bc)])(_0x4882c0,this[_0x5c2b0a(0xfb)],_0x248251,_0x230665)):!0x1;}[_0x55ceb7(0x169)](_0x32f35f=0x0,_0x5f148c=this['getRowCount']()){const _0x5ae7a9=_0x55ceb7;let _0x56df2b=this[_0x5ae7a9(0x175)]();return this['_mutateActions'](_0x56df2b,(0x0,e[_0x5ae7a9(0x17b)])(_0x56df2b,this[_0x5ae7a9(0xfb)],_0x32f35f,_0x32f35f+_0x5f148c-0x1));}[_0x55ceb7(0x1be)](_0x467e8d=0x0,_0x362ec3=this[_0x55ceb7(0x11c)]()){const _0x135af3=_0x55ceb7;let _0x3ac3a1=this[_0x135af3(0x175)]();return this[_0x135af3(0x18b)](_0x3ac3a1,(0x0,e[_0x135af3(0x188)])(_0x3ac3a1,this[_0x135af3(0xfb)],_0x467e8d,_0x467e8d+_0x362ec3-0x1));}[_0x55ceb7(0x106)](){const _0x3d637e=_0x55ceb7;var _0x24a15a,_0xbce2a9;return(_0x24a15a=(_0xbce2a9=this[_0x3d637e(0x1a1)]())==null?void 0x0:_0xbce2a9[_0x3d637e(0x117)])==null?0x0:_0x24a15a;}[_0x55ceb7(0x17f)](_0x1093e1){const _0xf9b7c4=_0x55ceb7;let _0x5cc90f=this[_0xf9b7c4(0x10a)][_0xf9b7c4(0x1a7)](e['DocsTableModel']),_0x2fe9dc=this['_getDocumentData'](),_0x25f520=(0x0,e[_0xf9b7c4(0x103)])(_0x2fe9dc,this[_0xf9b7c4(0xfb)],_0x1093e1);if(!_0x25f520)return!0x1;let _0x5b2a9b=this['_mutateActions'](_0x2fe9dc,_0x25f520[_0xf9b7c4(0x177)]);return _0x5b2a9b&&_0x5cc90f['setHeaderRowCount'](this['_unitId'],this[_0xf9b7c4(0xfb)],_0x25f520[_0xf9b7c4(0x117)]),_0x5b2a9b;}[_0x55ceb7(0xeb)](_0x3b6bb2){return this['setHeaderRowCount'](_0x3b6bb2);}['hasTitleRow'](){const _0x16bf81=_0x55ceb7;var _0x18b32f,_0x2ea1a0;return(_0x18b32f=(_0x2ea1a0=this['getMetadata']())==null?void 0x0:_0x2ea1a0[_0x16bf81(0x180)])==null?!0x1:_0x18b32f;}['insertTitleRow'](){const _0x936966=_0x55ceb7;let _0x2dbd4e=this['_injector']['get'](e[_0x936966(0xfc)]),_0x3ad3b9=this[_0x936966(0x175)](),_0x130346=(0x0,e[_0x936966(0x196)])(_0x3ad3b9,this['_tableId'],this['_getBodyPath']());if(!_0x130346)return!0x1;let _0x4d1a5e=this['_mutateActions'](_0x3ad3b9,_0x130346[_0x936966(0x177)]);return _0x4d1a5e&&_0x2dbd4e[_0x936966(0x13a)](this[_0x936966(0x1ba)],this['_tableId'],!0x0),_0x4d1a5e;}[_0x55ceb7(0x15b)](_0x24ce6c,_0x3603e9){const _0x507382=_0x55ceb7;return this[_0x507382(0x10a)][_0x507382(0x1a7)](e['DocsTableModel'])[_0x507382(0x15b)](this[_0x507382(0x1ba)],this['_tableId'],_0x24ce6c,_0x3603e9),!0x0;}[_0x55ceb7(0x1ab)](_0x40e72d,_0x2d4dd2){const _0x2a61de=_0x55ceb7;let _0x24f4a3=this[_0x2a61de(0x175)]();return this[_0x2a61de(0x18b)](_0x24f4a3,(0x0,e[_0x2a61de(0x15e)])(_0x24f4a3,this['_serializeModel'](),this[_0x2a61de(0xfb)],_0x40e72d,_0x2d4dd2,this[_0x2a61de(0x14d)]()));}[_0x55ceb7(0x175)](){const _0x4778e9=_0x55ceb7;let _0x51c886=this[_0x4778e9(0x14b)][_0x4778e9(0x1a3)]()['getSnapshot']();return this[_0x4778e9(0x124)]?{...this['_document'][_0x4778e9(0x1a3)](this['_segmentId'])['getSnapshot'](),'documentStyle':_0x51c886[_0x4778e9(0xfd)],'tableSource':_0x51c886[_0x4778e9(0x167)]}:_0x51c886;}[_0x55ceb7(0x11b)](){const _0x208d64=_0x55ceb7;return this['_injector'][_0x208d64(0x1a7)](e[_0x208d64(0xfc)])[_0x208d64(0x128)](this[_0x208d64(0x1ba)]);}[_0x55ceb7(0x14d)](){const _0x2af906=_0x55ceb7;return(0x0,e[_0x2af906(0x136)])(this['_document'][_0x2af906(0x1a3)]()[_0x2af906(0x19c)](),this[_0x2af906(0x124)]);}[_0x55ceb7(0x18b)](_0x23d37e,_0x2c44e4,_0x38850f){const _0x414b53=_0x55ceb7;return(0x0,e[_0x414b53(0x148)])(this[_0x414b53(0x10a)][_0x414b53(0x1a7)](t[_0x414b53(0x125)]),this[_0x414b53(0x1ba)],_0x23d37e,_0x2c44e4,_0x38850f?{'tableId':this[_0x414b53(0xfb)],'segmentId':this['_segmentId'],..._0x38850f}:void 0x0);}},d=class extends r[_0x55ceb7(0x102)]{[_0x55ceb7(0x155)](_0x2108d9=''){const _0x3fb7e9=_0x55ceb7;return this['_getTables'](_0x2108d9)[_0x3fb7e9(0x157)](_0x364135=>this[_0x3fb7e9(0x100)](_0x364135['tableId'],_0x2108d9));}['getTable'](_0x51724e,_0x5b2b02=''){const _0x144e38=_0x55ceb7;return this['_getTables'](_0x5b2b02)[_0x144e38(0x152)](_0x227f8a=>_0x227f8a[_0x144e38(0x1c1)]===_0x51724e)?this[_0x144e38(0x100)](_0x51724e,_0x5b2b02):null;}[_0x55ceb7(0x141)](_0x5a876e,_0x347fc9=''){const _0x31ec1a=_0x55ceb7;var _0x342ac5;let _0x51dd2d=(_0x342ac5=this[_0x31ec1a(0x16c)](_0x347fc9)[_0x5a876e])==null?void 0x0:_0x342ac5[_0x31ec1a(0x1c1)];return _0x51dd2d?this[_0x31ec1a(0x100)](_0x51dd2d,_0x347fc9):null;}[_0x55ceb7(0x13f)](){const _0x1e2aaf=_0x55ceb7;let _0xeccda2=this[_0x1e2aaf(0x10a)][_0x1e2aaf(0x1a7)](e[_0x1e2aaf(0x135)])[_0x1e2aaf(0x1ad)]();return _0xeccda2!=null&&_0xeccda2['tableId']?this[_0x1e2aaf(0x100)](_0xeccda2[_0x1e2aaf(0x1c1)],_0xeccda2['segmentId']):null;}[_0x55ceb7(0x162)](_0x40b179,_0x87f6ab=''){const _0x30b6c5=_0x55ceb7;var _0x16be08;return(_0x16be08=this[_0x30b6c5(0x1af)](_0x40b179,_0x87f6ab)[0x0])==null?null:_0x16be08;}['findTables'](_0x4c316c,_0x18628f=''){const _0x15264a=_0x55ceb7;let _0x1853d2=this[_0x15264a(0x1a6)](_0x18628f),_0x16a045=typeof _0x4c316c==_0x15264a(0x189)?{'text':_0x4c316c}:_0x4c316c;return this[_0x15264a(0x155)](_0x18628f)[_0x15264a(0x193)](_0x468677=>{const _0x5a581e=_0x15264a;let _0x369f2=_0x468677['getId']();return!(_0x16a045[_0x5a581e(0x1c1)]&&_0x369f2!==_0x16a045['tableId']||_0x16a045[_0x5a581e(0xf2)]&&!this['_tableContainsText'](_0x1853d2,_0x369f2,_0x16a045[_0x5a581e(0xf2)])||_0x16a045['headerText']&&!this[_0x5a581e(0x1c0)](_0x468677,0x0,_0x16a045[_0x5a581e(0x134)])||_0x16a045[_0x5a581e(0x13d)]&&!this[_0x5a581e(0x1c0)](_0x468677,0x0,_0x16a045[_0x5a581e(0x13d)]));});}[_0x55ceb7(0x19e)](_0x411fb8,_0x32b3ed,_0x244bfa={}){const _0x59c1ca=_0x55ceb7;var _0xaa97d4,_0x5aaf32;let _0x1e7369=this[_0x59c1ca(0x10a)][_0x59c1ca(0x1a7)](t[_0x59c1ca(0x125)]),_0x1ea13a=(_0xaa97d4=_0x244bfa['tableId'])==null?(0x0,t['generateRandomId'])(0x6):_0xaa97d4;return _0x1e7369['syncExecuteCommand'](e[_0x59c1ca(0x116)]['id'],{..._0x244bfa,'unitId':this['getId'](),'rows':_0x411fb8,'columns':_0x32b3ed,'tableId':_0x1ea13a})?this[_0x59c1ca(0x100)](_0x1ea13a,(_0x5aaf32=_0x244bfa[_0x59c1ca(0x143)])==null?'':_0x5aaf32):null;}[_0x55ceb7(0x13e)](_0x56c19c,_0x490068={}){const _0x37c8ab=_0x55ceb7;var _0x4174a3,_0x4ccda7;let _0x3a47c6=this['_injector'][_0x37c8ab(0x1a7)](t[_0x37c8ab(0x125)]),_0x21d43d=(_0x4174a3=_0x490068[_0x37c8ab(0x1c1)])==null?(0x0,t['generateRandomId'])(0x6):_0x4174a3;return _0x3a47c6['syncExecuteCommand'](e[_0x37c8ab(0x116)]['id'],{..._0x490068,'unitId':this['getId'](),'values':_0x56c19c,'tableId':_0x21d43d})?this['_createFDocumentTable'](_0x21d43d,(_0x4ccda7=_0x490068[_0x37c8ab(0x143)])==null?'':_0x4ccda7):null;}['_getTables'](_0x5b39a7=''){const _0x1934aa=_0x55ceb7;let {tables:_0x435f9f=[]}=this[_0x1934aa(0x122)](_0x5b39a7);return _0x435f9f;}['_getTableDocumentData'](_0x38fb59=''){const _0x516e37=_0x55ceb7;let _0x3726e7=this[_0x516e37(0x1a3)]()[_0x516e37(0x19c)]();return _0x38fb59?{...this[_0x516e37(0x1a3)](_0x38fb59)[_0x516e37(0x19c)](),'documentStyle':_0x3726e7['documentStyle'],'tableSource':_0x3726e7[_0x516e37(0x167)]}:_0x3726e7;}[_0x55ceb7(0x100)](_0x42d0b8,_0x38c76b=''){const _0x169003=_0x55ceb7;return this[_0x169003(0x10a)]['createInstance'](u,this,_0x42d0b8,_0x38c76b,this[_0x169003(0x10a)]);}['_tableContainsText'](_0x1916a2,_0x4c406e,_0x246541){const _0x2f0ce4=_0x55ceb7;var _0x107367;let _0x3106c6=(0x0,e[_0x2f0ce4(0x1aa)])(_0x1916a2,_0x4c406e);if(!_0x3106c6)return!0x1;let _0x2541c9=(_0x107367=_0x1916a2[_0x2f0ce4(0x18d)])==null?void 0x0:_0x107367['dataStream'];return _0x2541c9?_0x2541c9[_0x2f0ce4(0x192)](_0x3106c6[_0x2f0ce4(0x115)],_0x3106c6[_0x2f0ce4(0x18e)])[_0x2f0ce4(0x19d)](_0x246541):!0x1;}[_0x55ceb7(0x1c0)](_0x3269f8,_0x3e9fd9,_0x52b47c){const _0x428ffc=_0x55ceb7;return Array['from']({'length':_0x3269f8['getColumnCount']()},(_0x41aa4f,_0x5b5f4f)=>_0x3269f8['getCellText'](_0x3e9fd9,_0x5b5f4f))[_0x428ffc(0x152)](_0x5a4f06=>_0x5a4f06[_0x428ffc(0x19d)](_0x52b47c));}};r['FDocument'][_0x55ceb7(0x142)](d),exports['FDocumentTable']=u,exports[_0x55ceb7(0x146)]=a;