@univerjs-pro/edit-history-loader 0.21.1 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ea0aa=_0x4708;(function(_0x17bbac,_0x320fbe){const _0x1d8f0d=_0x4708,_0x240972=_0x17bbac();while(!![]){try{const _0x4adec0=parseInt(_0x1d8f0d(0x1fe))/0x1*(-parseInt(_0x1d8f0d(0x1ab))/0x2)+-parseInt(_0x1d8f0d(0x172))/0x3*(-parseInt(_0x1d8f0d(0x1eb))/0x4)+-parseInt(_0x1d8f0d(0x1d5))/0x5*(parseInt(_0x1d8f0d(0x1fb))/0x6)+parseInt(_0x1d8f0d(0x1a3))/0x7*(-parseInt(_0x1d8f0d(0x1e2))/0x8)+parseInt(_0x1d8f0d(0x186))/0x9+-parseInt(_0x1d8f0d(0x193))/0xa+parseInt(_0x1d8f0d(0x1ff))/0xb;if(_0x4adec0===_0x320fbe)break;else _0x240972['push'](_0x240972['shift']());}catch(_0x2883df){_0x240972['push'](_0x240972['shift']());}}}(_0x14cb,0x24566));import{CommandType,DependentOn,Disposable,DisposableCollection,IAuthzIoService,ICommandService,IConfigService,IPermissionService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,RxDisposable,ThemeService,Univer,UniverInstanceType,Workbook,merge,toDisposable}from'@univerjs/core';import{RangeProtectionPermissionEditPoint,RangeProtectionRuleModel,SetWorksheetActivateCommand,UniverSheetsPlugin,WorkbookEditablePermission,WorkbookRecoverHistoryPermission,WorkbookViewHistoryPermission,WorksheetEditPermission,getSheetCommandTarget}from'@univerjs/sheets';import{CollaborationEvent,RevertRevisionMutation,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{AuthzIoHttpService,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationController,CollaborationStatus,DataLoaderService,ILocalCacheService}from'@univerjs-pro/collaboration-client';import{HistoryManagerService,HistoryModeStatus,UniverEditHistoryViewerMobilePlugin,UniverEditHistoryViewerPlugin}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY,UniverLicensePlugin}from'@univerjs-pro/license';import{UniverSheetsChartPlugin}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin}from'@univerjs/data-validation';import{MessageType}from'@univerjs/design';import{UniverDocsPlugin}from'@univerjs/docs';import{UniverDocsUIPlugin}from'@univerjs/docs-ui';import{IImageIoService,UniverDrawingPlugin}from'@univerjs/drawing';import{UniverDrawingUIPlugin}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin}from'@univerjs/engine-render';function _0x4708(_0xde87eb,_0x3cdea1){_0xde87eb=_0xde87eb-0x16d;const _0x14cbaf=_0x14cb();let _0x470820=_0x14cbaf[_0xde87eb];return _0x470820;}import{UniverNetworkPlugin}from'@univerjs/network';import{IRemoteInstanceService,UniverRPCMainThreadPlugin}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin,UniverSheetsDataValidationUIPlugin}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin,UniverSheetsUIPlugin,getCurrentRangeDisable$}from'@univerjs/sheets-ui';import{ComponentManager,IDialogService,IMenuManagerService,IMessageService,ISidebarService,MenuItemType,RibbonStartGroup,UniverMobileUIPlugin,UniverUIPlugin,getMenuHiddenObservable}from'@univerjs/ui';import{BehaviorSubject,combineLatest,takeUntil}from'rxjs';import{IURLService}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon}from'@univerjs/icons';const EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY='edit-history-loader.config',configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x109ef8){'@babel/helpers - typeof';const _0x55b099=_0x4708;return _typeof=_0x55b099(0x1f2)==typeof Symbol&&_0x55b099(0x1cb)==typeof Symbol[_0x55b099(0x1e0)]?function(_0x5a0e95){return typeof _0x5a0e95;}:function(_0x226571){const _0x507747=_0x55b099;return _0x226571&&'function'==typeof Symbol&&_0x226571[_0x507747(0x1e8)]===Symbol&&_0x226571!==Symbol['prototype']?_0x507747(0x1cb):typeof _0x226571;},_typeof(_0x109ef8);}function toPrimitive(_0x5dfed0,_0x21b6e8){const _0x433fde=_0x4708;if(_0x433fde(0x195)!=_typeof(_0x5dfed0)||!_0x5dfed0)return _0x5dfed0;var _0x14afc3=_0x5dfed0[Symbol[_0x433fde(0x1d3)]];if(void 0x0!==_0x14afc3){var _0x3c12fa=_0x14afc3[_0x433fde(0x1d2)](_0x5dfed0,_0x21b6e8||_0x433fde(0x1cc));if('object'!=_typeof(_0x3c12fa))return _0x3c12fa;throw new TypeError(_0x433fde(0x1a1));}return(_0x433fde(0x216)===_0x21b6e8?String:Number)(_0x5dfed0);}function toPropertyKey(_0x40fd3a){const _0x44298c=_0x4708;var _0x6e6a5d=toPrimitive(_0x40fd3a,_0x44298c(0x216));return _0x44298c(0x1cb)==_typeof(_0x6e6a5d)?_0x6e6a5d:_0x6e6a5d+'';}function _defineProperty(_0x354e7b,_0x2e26e5,_0x3ea75b){const _0x649c4e=_0x4708;return(_0x2e26e5=toPropertyKey(_0x2e26e5))in _0x354e7b?Object[_0x649c4e(0x176)](_0x354e7b,_0x2e26e5,{'value':_0x3ea75b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x354e7b[_0x2e26e5]=_0x3ea75b,_0x354e7b;}function __decorateParam(_0x10fb6d,_0x30892b){return function(_0x308f53,_0x2d1c10){_0x30892b(_0x308f53,_0x2d1c10,_0x10fb6d);};}function __decorate(_0x24a819,_0x131aef,_0x2d010e,_0x236a62){const _0x5defbf=_0x4708;var _0x2a1fe6=arguments[_0x5defbf(0x20f)],_0xed24ad=_0x2a1fe6<0x3?_0x131aef:_0x236a62===null?_0x236a62=Object['getOwnPropertyDescriptor'](_0x131aef,_0x2d010e):_0x236a62,_0x149a8f;if(typeof Reflect==='object'&&typeof Reflect[_0x5defbf(0x19e)]===_0x5defbf(0x1f2))_0xed24ad=Reflect[_0x5defbf(0x19e)](_0x24a819,_0x131aef,_0x2d010e,_0x236a62);else{for(var _0x583d71=_0x24a819['length']-0x1;_0x583d71>=0x0;_0x583d71--)if(_0x149a8f=_0x24a819[_0x583d71])_0xed24ad=(_0x2a1fe6<0x3?_0x149a8f(_0xed24ad):_0x2a1fe6>0x3?_0x149a8f(_0x131aef,_0x2d010e,_0xed24ad):_0x149a8f(_0x131aef,_0x2d010e))||_0xed24ad;}return _0x2a1fe6>0x3&&_0xed24ad&&Object[_0x5defbf(0x176)](_0x131aef,_0x2d010e,_0xed24ad),_0xed24ad;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x1ea0aa(0x1de),UNIVER_CONTAINER_ID_KEY=_0x1ea0aa(0x1c6),UNIVER_HISTORY_CONTAINER_ID='univer-history-container';let HistoryLoaderService=class HistoryLoaderService extends Disposable{constructor(_0x2c958f,_0x3cfb4d,_0x5e0262,_0x47c679,_0x266b68,_0xea6073,_0x431045,_0x565d40,_0x52ff44,_0x163071){const _0x3e2556=_0x1ea0aa;super(),this[_0x3e2556(0x171)]=_0x2c958f,this['_univerInstanceService']=_0x3cfb4d,this[_0x3e2556(0x1a6)]=_0x5e0262,this[_0x3e2556(0x205)]=_0x47c679,this[_0x3e2556(0x197)]=_0x266b68,this[_0x3e2556(0x1df)]=_0xea6073,this['_selectionProtectionRuleModel']=_0x431045,this[_0x3e2556(0x1c5)]=_0x565d40,this[_0x3e2556(0x1c8)]=_0x52ff44,this[_0x3e2556(0x1fc)]=_0x163071,_defineProperty(this,_0x3e2556(0x212),new BehaviorSubject(null)),_defineProperty(this,_0x3e2556(0x1e9),this[_0x3e2556(0x212)][_0x3e2556(0x220)]()),_defineProperty(this,'_disposableCollection',new DisposableCollection()),_defineProperty(this,_0x3e2556(0x184),new Map()),_defineProperty(this,_0x3e2556(0x1ca),null),this[_0x3e2556(0x18d)]();}get[_0x1ea0aa(0x190)](){const _0x2d79f8=_0x1ea0aa;return this[_0x2d79f8(0x212)]['value'];}['_init'](){const _0x3e49ab=_0x1ea0aa;this['_initContainer'](),this[_0x3e49ab(0x22e)]();}[_0x1ea0aa(0x1ad)](){const _0xd33ffd=_0x1ea0aa;var _0x435297;const _0x3f622b=(_0x435297=this[_0xd33ffd(0x1a6)][_0xd33ffd(0x22c)](_0xd33ffd(0x1c6)))!==null&&_0x435297!==void 0x0?_0x435297:DEFAULT_UNIVER_CONTAINER_ID$1,_0x4305b4=document[_0xd33ffd(0x226)](_0x3f622b);if(!_0x4305b4)return;const _0x4ac13b=document[_0xd33ffd(0x224)](_0xd33ffd(0x1ac));_0x4ac13b['id']=UNIVER_HISTORY_CONTAINER_ID,_0x4ac13b[_0xd33ffd(0x1c2)]['uComp']=_0xd33ffd(0x185),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x223)]=_0xd33ffd(0x227),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x1e7)]='0',_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x173)]='0',_0x4ac13b[_0xd33ffd(0x1bd)]['width']=_0xd33ffd(0x1dc),_0x4ac13b[_0xd33ffd(0x1bd)][_0xd33ffd(0x213)]=_0xd33ffd(0x1dc),_0x4ac13b['style'][_0xd33ffd(0x20b)]='49',_0x4ac13b[_0xd33ffd(0x1bd)]['display']=_0xd33ffd(0x187),_0x4305b4[_0xd33ffd(0x1fa)](_0x4ac13b);}[_0x1ea0aa(0x22e)](){const _0x36806e=_0x1ea0aa;[[UniverRenderEnginePlugin],[UniverUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsFilterUIPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsConditionalFormattingUIPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]]['forEach'](([_0x13ad2c,_0x344784])=>this[_0x36806e(0x1bc)](_0x13ad2c,_0x344784));}[_0x1ea0aa(0x1e5)](){const _0x2143f8=_0x1ea0aa;super['dispose'](),this[_0x2143f8(0x1aa)](),this[_0x2143f8(0x184)]['clear']();}[_0x1ea0aa(0x1bc)](_0x36e25e,_0x5bec81,_0x11b6f2){const _0x527580=_0x1ea0aa;if(this['_pluginMap']['has'](_0x36e25e[_0x527580(0x1b4)])&&!_0x11b6f2)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x36e25e[_0x527580(0x1b4)]+_0x527580(0x17e));this['_pluginMap'][_0x527580(0x1f4)](_0x36e25e[_0x527580(0x1b4)],[_0x36e25e,_0x5bec81]);}[_0x1ea0aa(0x1e6)](){const _0x2a8f30=_0x1ea0aa;return Array['from'](this[_0x2a8f30(0x184)][_0x2a8f30(0x22d)]());}[_0x1ea0aa(0x1b0)](_0x3f332d,_0x1c2148){const _0x5e9630=_0x1ea0aa,_0x53b317=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x53b317)return;_0x53b317[_0x5e9630(0x1bd)][_0x5e9630(0x19a)]=_0x5e9630(0x170),this[_0x5e9630(0x1c3)](_0x3f332d,UNIVER_HISTORY_CONTAINER_ID,_0x1c2148);}[_0x1ea0aa(0x1aa)](){const _0x39e4ad=_0x1ea0aa;var _0x2498f9;this[_0x39e4ad(0x181)][_0x39e4ad(0x1e5)](),(_0x2498f9=this['historyUniver'])===null||_0x2498f9===void 0x0||_0x2498f9[_0x39e4ad(0x1e5)](),this[_0x39e4ad(0x212)][_0x39e4ad(0x182)](null);const _0x503d1e=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x503d1e)return;_0x503d1e[_0x39e4ad(0x1bd)][_0x39e4ad(0x19a)]=_0x39e4ad(0x187),this[_0x39e4ad(0x1ca)]&&(this[_0x39e4ad(0x1ca)]['terminate'](),this[_0x39e4ad(0x1ca)]=null);}[_0x1ea0aa(0x1c3)](_0x17d9e1,_0x1a649a,_0x5b33cb){const _0x2f3243=_0x1ea0aa;var _0x24b8c3,_0x3b1f24,_0x467d80,_0x15d2d5,_0x4c5909;if(this[_0x2f3243(0x190)])return;const _0x480aab=new Univer({'locales':{[this[_0x2f3243(0x171)]['getCurrentLocale']()]:this['_localeService'][_0x2f3243(0x1e4)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x13f741=_0x480aab['__getInjector']();this[_0x2f3243(0x1f9)](this['_themeService'][_0x2f3243(0x16e)][_0x2f3243(0x228)](_0x1be2bb=>{const _0x1cd330=_0x2f3243;_0x13f741[_0x1cd330(0x1b1)](ThemeService)['setDarkMode'](_0x1be2bb);})),this[_0x2f3243(0x1f9)](this['_themeService'][_0x2f3243(0x210)]['subscribe'](_0x1e788d=>{_0x13f741['get'](ThemeService)['setTheme'](_0x1e788d);})),_0x13f741['get'](LocaleService)['setLocale'](this['_localeService'][_0x2f3243(0x1ef)]()),_0x13f741[_0x2f3243(0x1b1)](IConfigService)[_0x2f3243(0x1a8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x5692e7=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](LS_CONFIG_KEY);if(_0x5692e7)_0x480aab['registerPlugin'](UniverLicensePlugin,{'license':_0x5692e7['ls']});const _0x1715f1=(_0x24b8c3=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x24b8c3===void 0x0?void 0x0:_0x24b8c3[_0x2f3243(0x1c0)],_0x3f5081=!!_0x1715f1;_0x3f5081&&(this[_0x2f3243(0x1ca)]=_0x1715f1 instanceof Worker?_0x1715f1:null,_0x480aab[_0x2f3243(0x1bc)](UniverRPCMainThreadPlugin,{'workerURL':_0x1715f1}));this[_0x2f3243(0x184)]['forEach'](([_0x3f3c23,_0xfd64b7])=>{const _0x1b157d=_0x2f3243;_0x480aab[_0x1b157d(0x1bc)](_0x3f3c23,_0xfd64b7);}),_0x480aab[_0x2f3243(0x1bc)](UniverEditHistoryViewerPlugin,{'historyListServerUrl':(_0x3b1f24=this['_configService'][_0x2f3243(0x22c)]('edit-history-loader.config'))===null||_0x3b1f24===void 0x0?void 0x0:_0x3b1f24['historyListServerUrl'],'historyPanelComponentKey':(_0x467d80=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x467d80===void 0x0?void 0x0:_0x467d80[_0x2f3243(0x188)],'historyPanelHidden':(_0x15d2d5=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x15d2d5===void 0x0?void 0x0:_0x15d2d5[_0x2f3243(0x1ec)],'historyAIassistantEnabled':(_0x4c5909=this[_0x2f3243(0x1a6)][_0x2f3243(0x22c)](_0x2f3243(0x18a)))===null||_0x4c5909===void 0x0?void 0x0:_0x4c5909[_0x2f3243(0x1cf)]}),_0x13f741[_0x2f3243(0x20a)](_0x5e78da=>{const _0x5bbbd6=_0x2f3243;this[_0x5bbbd6(0x218)](_0x5e78da,_0x17d9e1);}),this[_0x2f3243(0x212)][_0x2f3243(0x182)](_0x480aab);const _0x2a4cb1=_0x13f741[_0x2f3243(0x1b1)](HistoryManagerService),_0x53a491=this[_0x2f3243(0x21a)](_0x17d9e1),_0x318566=()=>{const _0x53d5cf=_0x2f3243;if(_0x5b33cb)_0x2a4cb1[_0x53d5cf(0x1a2)](_0x17d9e1,_0x1a649a,_0x53a491,_0x5b33cb);else _0x2a4cb1['triggerLoadVersions'](_0x17d9e1,_0x1a649a,_0x53a491);};this['_messageService']['show']({'content':this[_0x2f3243(0x171)]['t']('editHistory.info.initializing'),'type':MessageType[_0x2f3243(0x222)]});if(_0x3f5081)try{_0x13f741[_0x2f3243(0x1b1)](IRemoteInstanceService)[_0x2f3243(0x1ce)]()[_0x2f3243(0x1f3)](()=>{_0x318566();});}catch{_0x318566();}else _0x318566();}[_0x1ea0aa(0x218)](_0x2b9ab0,_0x29184e){const _0x439a29=_0x1ea0aa,_0x4d9904=_0x2b9ab0[_0x439a29(0x1b1)](HistoryManagerService);this['_disposableCollection'][_0x439a29(0x209)](_0x4d9904[_0x439a29(0x1d8)]['subscribe'](_0x1e9e0f=>{const _0xe46c4b=_0x439a29;switch(_0x1e9e0f){case HistoryModeStatus[_0xe46c4b(0x1b6)]:this['_dialogService'][_0xe46c4b(0x1f8)](),this['_sidebarService']['close']();break;case HistoryModeStatus['Exited']:this[_0xe46c4b(0x205)][_0xe46c4b(0x1b9)](ExitEditHistoryOperation['id']),this[_0xe46c4b(0x1aa)]();break;case HistoryModeStatus[_0xe46c4b(0x21c)]:this[_0xe46c4b(0x1aa)](),this[_0xe46c4b(0x197)][_0xe46c4b(0x21b)]({'content':this['_localeService']['t'](_0xe46c4b(0x21d)),'type':MessageType['Error'],'duration':0xbb8});break;default:break;}})),this[_0x439a29(0x181)][_0x439a29(0x209)](_0x4d9904[_0x439a29(0x219)]['subscribe'](async _0x27a1fb=>{const _0x312d62=_0x439a29;if(_0x27a1fb)this['_commandService'][_0x312d62(0x1b9)](RevertRevisionMutation['id'],{'unitId':_0x29184e,'revision':_0x27a1fb});}));}[_0x1ea0aa(0x21a)](_0x2687b8){const _0x16156e=_0x1ea0aa,_0x5877a3=this['_univerInstanceService'][_0x16156e(0x1a4)](_0x2687b8)[_0x16156e(0x17b)]()[_0x16156e(0x1d9)](_0x36518e=>_0x36518e['getSheetId']()),_0x2b17af=new WorkbookEditablePermission(_0x2687b8)['id'],_0x65b621=_0x5877a3[_0x16156e(0x1d9)](_0x1d37f3=>new WorksheetEditPermission(_0x2687b8,_0x1d37f3)['id']),_0x4a3b13=_0x5877a3['map'](_0x52b0b5=>this[_0x16156e(0x1b8)][_0x16156e(0x221)](_0x2687b8,_0x52b0b5)['map'](_0x33e18b=>new RangeProtectionPermissionEditPoint(_0x2687b8,_0x52b0b5,_0x33e18b['permissionId'])['id']))[_0x16156e(0x1b3)](),_0x31df2c=new WorkbookRecoverHistoryPermission(_0x2687b8)['id'];return this[_0x16156e(0x1df)][_0x16156e(0x179)]([_0x2b17af,..._0x65b621,..._0x4a3b13,_0x31df2c])['every'](_0x3b57bd=>!!_0x3b57bd[_0x16156e(0x18b)]);}};HistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],HistoryLoaderService);function _0x14cb(){const _0x1299f2=['_commandService','@univerjs-pro/edit-history-loader','_historyManagerService','dispose$','add','invoke','zIndex','HistoryIcon','BUTTON','editHistory.info.initializing','length','currentTheme$','univer.operation.toggle-edit-history','_historyUniver$','height','packageName','setParam','string','fromCollab','_initListener','revertRevision$','_checkCanRevert','show','Error','editHistory.panel.listFetchError','_localCacheService','getUnhiddenWorksheets','asObservable','getSubunitRuleList','Loading','position','createElement','getActiveSheet','getElementById','absolute','subscribe','getCurrentUnitOfType','clear','historyListServerUrl','getConfig','values','_initPlugins','UNIVER_UNKNOWN','onCommandExecuted','event$','darkMode$','onStarting','block','_localeService','129qZsexH','left','__getInjector','version','defineProperty','Exited','has','composePermission','unsubscribe','getSheets','mergeMenu','_componentManager','\x20has\x20been\x20registered.','width','location','_disposableCollection','next','_urlService','_pluginMap','history-container','178794PxXqlP','none','historyPanelComponentKey','editHistory.panel.title','edit-history-loader.config','value','_updateURLWithCurrentState','_init','state$','editHistory.panel.revertFailed','historyUniver','reload','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','2393010cjXIwX','_injector','object','loadUnit','_messageService','getSheetId','univer-history-container-mobile','display','OPERATION','setLocale','CHANGESET_ACK','decorate','_univerInstanceService','_dataLoaderService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','triggerCustomVersions','35OmXtxn','getUnit','SYNCED','_configService','onSteady','setConfig','getSheetBySheetId','unMountHistoryContent','2nUpXFR','div','_initContainer','0.21.1','[MobileHistoryLoaderService]:\x20Plugin\x20','mountHistoryContent','get','data','flat','pluginName','pipe','Entered','_handleRevertAcknowledgement','_selectionProtectionRuleModel','executeCommand','type','status','registerPlugin','style','_collaborationController','mutations','workerURL','getCollabEntity','dataset','_initUniver','triggerLoadVersions','_dialogService','UNIVER_CONTAINER_ID','uComp','_sidebarService','_menuManagerService','_internalWebWorker','symbol','default','_setupSubUnitSync','whenReady','historyAIassistantEnabled','forEach','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','call','toPrimitive','permissionId','4045tOlWuZ','registerCommand','subunit','status$','map','register','_updateSubUnitFromURLParams','100%','session','univer-container','_permissionService','iterator','setDarkMode','5552UoKEFK','setTheme','getLocales','dispose','getAllPlugins','top','constructor','historyUniver$','_config','23148ZHViSZ','historyPanelHidden','eventID','some','getCurrentLocale','from','every','function','then','set','menu','getUnitId','editHistory.panel.reverting','closeAll','disposeWithMe','appendChild','804eRHTrR','_themeService','UNIVER_SHEET','31366LbwVNQ','2889414QfVEir','univerContainerId','urlChange$','exhaustSavingTask','params','_revertErrorTimer'];_0x14cb=function(){return _0x1299f2;};return _0x14cb();}const ToggleEditHistoryOperation={'id':_0x1ea0aa(0x211),'type':CommandType[_0x1ea0aa(0x19b)],'handler':_0x52fcfc=>{const _0x1029de=_0x1ea0aa,_0x2a8636=_0x52fcfc['get'](HistoryLoaderService),{unitId:_0x59ea1d}=getSheetCommandTarget(_0x52fcfc[_0x1029de(0x1b1)](IUniverInstanceService))||{};if(!_0x59ea1d)return![];return _0x2a8636[_0x1029de(0x1b0)](_0x59ea1d),!![];}},ExitEditHistoryOperation={'id':'univer.operation.exit-edit-history','type':CommandType[_0x1ea0aa(0x19b)],'handler':()=>!![]};var name=_0x1ea0aa(0x206),version=_0x1ea0aa(0x1ae);function ToggleEditHistoryMenuFactory(_0x2dc09e){const _0x8ff1bb=_0x1ea0aa;return{'id':ToggleEditHistoryOperation['id'],'type':MenuItemType[_0x8ff1bb(0x20d)],'icon':'HistoryIcon','tooltip':_0x8ff1bb(0x189),'hidden$':getMenuHiddenObservable(_0x2dc09e,UniverInstanceType['UNIVER_SHEET']),'disabled$':getCurrentRangeDisable$(_0x2dc09e,{'workbookTypes':[WorkbookViewHistoryPermission],'worksheetTypes':[],'rangeTypes':[]})};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends RxDisposable{constructor(_0x42793c,_0x1315e4,_0x14d44a,_0x9cd027,_0x1b8713,_0x4128a0,_0x4085c7,_0x298ac4,_0x389ec7,_0x4e2c3b,_0x1155ab){const _0x266500=_0x1ea0aa;super(),this[_0x266500(0x205)]=_0x42793c,this[_0x266500(0x1c9)]=_0x1315e4,this['_componentManager']=_0x14d44a,this[_0x266500(0x207)]=_0x9cd027,this[_0x266500(0x171)]=_0x1b8713,this[_0x266500(0x197)]=_0x4128a0,this[_0x266500(0x1be)]=_0x4085c7,this['_localCacheService']=_0x298ac4,this['_dataLoaderService']=_0x389ec7,this['_univerInstanceService']=_0x4e2c3b,this[_0x266500(0x183)]=_0x1155ab,_defineProperty(this,_0x266500(0x204),null),this[_0x266500(0x18d)]();}[_0x1ea0aa(0x18d)](){const _0x865a62=_0x1ea0aa;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x865a62(0x1d0)](_0x164e01=>this['disposeWithMe'](toDisposable(this[_0x865a62(0x205)][_0x865a62(0x1d6)](_0x164e01)))),this[_0x865a62(0x1f9)](this['_componentManager'][_0x865a62(0x1da)](_0x865a62(0x20c),HistoryIcon)),this[_0x865a62(0x1c9)][_0x865a62(0x17c)](menuSchema),this['disposeWithMe'](this[_0x865a62(0x205)][_0x865a62(0x230)](async(_0x28016b,_0xff8526)=>{const _0x4ed778=_0x865a62;if(_0x28016b['id']===RevertRevisionMutation['id']){const {unitId:_0x3e1ae5}=_0x28016b[_0x4ed778(0x203)];this[_0x4ed778(0x197)]['show']({'content':this[_0x4ed778(0x171)]['t'](_0x4ed778(0x1f7)),'type':MessageType['Loading'],'duration':0x1388});const _0x4b4838=this[_0x4ed778(0x1be)][_0x4ed778(0x1c1)](_0x3e1ae5);if(!(_0xff8526===null||_0xff8526===void 0x0?void 0x0:_0xff8526['fromCollab']))this[_0x4ed778(0x1b7)](_0x4b4838,async()=>{const _0x13fed3=_0x4ed778,_0x7c2aab=this['_univerInstanceService'][_0x13fed3(0x229)](UniverInstanceType['UNIVER_SHEET']),_0x31f8ba=_0x7c2aab===null||_0x7c2aab===void 0x0?void 0x0:_0x7c2aab['getActiveSheet']();if(!_0x31f8ba)return![];this[_0x13fed3(0x19f)]['disposeUnit'](_0x3e1ae5);const _0x138ef7=await this[_0x13fed3(0x1a0)][_0x13fed3(0x196)](_0x3e1ae5,UniverInstanceType[_0x13fed3(0x1fd)]);if(_0x138ef7&&_0x138ef7 instanceof Workbook)return await this[_0x13fed3(0x1cd)](_0x138ef7,_0x31f8ba[_0x13fed3(0x198)]()),!![];return![];});else this[_0x4ed778(0x1b7)](_0x4b4838,async()=>{const _0x3fc13a=_0x4ed778;return setTimeout(()=>window[_0x3fc13a(0x180)]['reload']()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0x5622ad,_0x49963b,_0x3247a3=![]){const _0x1c29aa=_0x1ea0aa,_0x11641e=combineLatest([_0x5622ad[_0x1c29aa(0x1dd)][_0x1c29aa(0x16d)],_0x5622ad[_0x1c29aa(0x18e)]])[_0x1c29aa(0x228)](async([_0x42cc5c,_0x52c039])=>{const _0x337c14=_0x1c29aa;if(_0x42cc5c['eventID']===CollaborationEvent[_0x337c14(0x19d)]&&(_0x52c039===null||_0x52c039===void 0x0?void 0x0:_0x52c039[_0x337c14(0x1bb)])===CollaborationStatus[_0x337c14(0x1a5)]){if(_0x42cc5c[_0x337c14(0x1b2)][_0x337c14(0x1bf)][_0x337c14(0x1ee)](_0x160aef=>_0x160aef['id']===RevertRevisionMutation['id'])){if(await _0x49963b()){var _0x4fe65d;this[_0x337c14(0x207)][_0x337c14(0x1aa)](),_0x11641e['unsubscribe'](),this[_0x337c14(0x204)]&&clearTimeout(this[_0x337c14(0x204)]),await((_0x4fe65d=this['_localCacheService'])===null||_0x4fe65d===void 0x0?void 0x0:_0x4fe65d[_0x337c14(0x202)]()),this[_0x337c14(0x197)]['removeAll']();}}}});if(_0x3247a3)this['_revertErrorTimer']=setTimeout(()=>{const _0x24275f=_0x1c29aa;_0x11641e[_0x24275f(0x17a)](),this[_0x24275f(0x197)][_0x24275f(0x21b)]({'content':this[_0x24275f(0x171)]['t'](_0x24275f(0x18f)),'type':MessageType[_0x24275f(0x21c)],'duration':0xbb8});},0x1388);}async[_0x1ea0aa(0x1cd)](_0x6f12f2,_0x206405){const _0x3481e6=_0x1ea0aa;await this['_updateSubUnitFromURLParams'](_0x6f12f2,_0x206405),_0x6f12f2['activeSheet$'][_0x3481e6(0x1b5)](takeUntil(this[_0x3481e6(0x208)]))['subscribe'](_0x580d1e=>{const _0x44bae3=_0x3481e6;if(_0x580d1e)this[_0x44bae3(0x18c)](_0x580d1e);}),this['_urlService']['urlChange$'][_0x3481e6(0x1b5)](takeUntil(this[_0x3481e6(0x208)]))[_0x3481e6(0x228)](()=>this['_updateSubUnitFromURLParams'](_0x6f12f2,_0x206405));}['_updateURLWithCurrentState'](_0x4ccfcf,_0xcbdd43=![]){const _0x1a798d=_0x1ea0aa,_0x1c509b=this[_0x1a798d(0x183)]['getParam'](_0x1a798d(0x1d7));if(_0x4ccfcf['getSheetId']()!==_0x1c509b)this[_0x1a798d(0x183)][_0x1a798d(0x215)](_0x1a798d(0x1d7),_0x4ccfcf[_0x1a798d(0x198)](),_0xcbdd43);}async[_0x1ea0aa(0x1db)](_0x280e84,_0x39eec3){const _0x121de3=_0x1ea0aa;var _0x5a0a34;if(!_0x39eec3||!_0x280e84[_0x121de3(0x1a9)](_0x39eec3)){const _0x3bb48b=_0x280e84[_0x121de3(0x21f)]()[0x0],_0x3cc645=_0x280e84[_0x121de3(0x1a9)](_0x3bb48b);if(!_0x3cc645)return;this[_0x121de3(0x18c)](_0x3cc645,!![]),await this[_0x121de3(0x205)][_0x121de3(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x280e84[_0x121de3(0x1f6)](),'subUnitId':_0x3bb48b});return;}if(((_0x5a0a34=_0x280e84[_0x121de3(0x225)]())===null||_0x5a0a34===void 0x0?void 0x0:_0x5a0a34[_0x121de3(0x198)]())===_0x39eec3)return;await this['_commandService'][_0x121de3(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x280e84[_0x121de3(0x1f6)](),'subUnitId':_0x39eec3});}};MobileHistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],MobileHistoryLoaderController);const DEFAULT_UNIVER_CONTAINER_ID=_0x1ea0aa(0x1de),UNIVER_CONTAINER_ID_KEY$1='UNIVER_CONTAINER_ID',UNIVER_HISTORY_CONTAINER_ID$1=_0x1ea0aa(0x199);let MobileHistoryLoaderService=class MobileHistoryLoaderService extends Disposable{constructor(_0xd5a76a,_0x92a052,_0x33b82c,_0x4db9d2,_0x5e9d5d,_0x561b7b,_0x5a859d,_0x4a3e96,_0x502b0b,_0x3abec1){const _0x3f2923=_0x1ea0aa;super(),this[_0x3f2923(0x171)]=_0xd5a76a,this[_0x3f2923(0x19f)]=_0x92a052,this['_configService']=_0x33b82c,this[_0x3f2923(0x205)]=_0x4db9d2,this[_0x3f2923(0x197)]=_0x5e9d5d,this['_permissionService']=_0x561b7b,this[_0x3f2923(0x1b8)]=_0x5a859d,this[_0x3f2923(0x1c5)]=_0x4a3e96,this['_sidebarService']=_0x502b0b,this['_themeService']=_0x3abec1,_defineProperty(this,_0x3f2923(0x212),new BehaviorSubject(null)),_defineProperty(this,_0x3f2923(0x1e9),this[_0x3f2923(0x212)][_0x3f2923(0x220)]()),_defineProperty(this,_0x3f2923(0x181),new DisposableCollection()),_defineProperty(this,'_pluginMap',new Map()),_defineProperty(this,_0x3f2923(0x1ca),null),this[_0x3f2923(0x18d)]();}get[_0x1ea0aa(0x190)](){const _0x523328=_0x1ea0aa;return this[_0x523328(0x212)][_0x523328(0x18b)];}[_0x1ea0aa(0x18d)](){const _0x1c5560=_0x1ea0aa;this[_0x1c5560(0x1ad)](),this[_0x1c5560(0x22e)]();}[_0x1ea0aa(0x1ad)](){const _0x459b08=_0x1ea0aa;var _0x4058e1;const _0x2d2fd5=(_0x4058e1=this[_0x459b08(0x1a6)][_0x459b08(0x22c)](_0x459b08(0x1c6)))!==null&&_0x4058e1!==void 0x0?_0x4058e1:DEFAULT_UNIVER_CONTAINER_ID,_0x25ad4e=document['getElementById'](_0x2d2fd5);if(!_0x25ad4e)return;const _0x17bf05=document[_0x459b08(0x224)]('div');_0x17bf05['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x17bf05[_0x459b08(0x1c2)][_0x459b08(0x1c7)]=_0x459b08(0x185),_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x223)]='absolute',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x1e7)]='0',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x173)]='0',_0x17bf05['style'][_0x459b08(0x17f)]='100%',_0x17bf05['style'][_0x459b08(0x213)]=_0x459b08(0x1dc),_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x20b)]='49',_0x17bf05[_0x459b08(0x1bd)][_0x459b08(0x19a)]='none',_0x25ad4e['appendChild'](_0x17bf05);}[_0x1ea0aa(0x22e)](){const _0xa87ead=_0x1ea0aa;[[UniverRenderEnginePlugin],[UniverMobileUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID$1,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsMobileUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationMobileUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]][_0xa87ead(0x1d0)](([_0xfce5b5,_0x69ddb4])=>this[_0xa87ead(0x1bc)](_0xfce5b5,_0x69ddb4));}[_0x1ea0aa(0x1e5)](){const _0x191ff6=_0x1ea0aa;super['dispose'](),this[_0x191ff6(0x1aa)](),this[_0x191ff6(0x184)][_0x191ff6(0x22a)]();}[_0x1ea0aa(0x1bc)](_0x51bc2f,_0x1c1885,_0x116940){const _0x3740a4=_0x1ea0aa;if(this[_0x3740a4(0x184)][_0x3740a4(0x178)](_0x51bc2f[_0x3740a4(0x1b4)])&&!_0x116940)throw new Error(_0x3740a4(0x1af)+_0x51bc2f[_0x3740a4(0x1b4)]+'\x20has\x20been\x20registered.');this[_0x3740a4(0x184)][_0x3740a4(0x1f4)](_0x51bc2f['pluginName'],[_0x51bc2f,_0x1c1885]);}[_0x1ea0aa(0x1e6)](){const _0x57d63b=_0x1ea0aa;return Array[_0x57d63b(0x1f0)](this['_pluginMap'][_0x57d63b(0x22d)]());}['mountHistoryContent'](_0x56737e,_0xf4af5b){const _0xbf2694=_0x1ea0aa,_0x5738e5=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x5738e5)return;_0x5738e5['style'][_0xbf2694(0x19a)]='block',this[_0xbf2694(0x1c3)](_0x56737e,UNIVER_HISTORY_CONTAINER_ID$1,_0xf4af5b);}[_0x1ea0aa(0x1aa)](){const _0x47f153=_0x1ea0aa;var _0x222bdf;this['_disposableCollection'][_0x47f153(0x1e5)](),(_0x222bdf=this[_0x47f153(0x190)])===null||_0x222bdf===void 0x0||_0x222bdf[_0x47f153(0x1e5)](),this[_0x47f153(0x212)][_0x47f153(0x182)](null);const _0xc487aa=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0xc487aa)return;_0xc487aa[_0x47f153(0x1bd)]['display']=_0x47f153(0x187),this[_0x47f153(0x1ca)]&&(this[_0x47f153(0x1ca)]['terminate'](),this[_0x47f153(0x1ca)]=null);}[_0x1ea0aa(0x1c3)](_0x31c54e,_0x363ef2,_0x54d2e6){const _0x4ddc59=_0x1ea0aa;var _0x29c995,_0x10fb45,_0xc60341,_0x36b877;if(this[_0x4ddc59(0x190)])return;const _0x4ff71e=new Univer({'locales':{[this[_0x4ddc59(0x171)][_0x4ddc59(0x1ef)]()]:this[_0x4ddc59(0x171)][_0x4ddc59(0x1e4)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x1efbcd=_0x4ff71e[_0x4ddc59(0x174)]();this[_0x4ddc59(0x1f9)](this[_0x4ddc59(0x1fc)][_0x4ddc59(0x16e)][_0x4ddc59(0x228)](_0x28644b=>{const _0x4c211e=_0x4ddc59;_0x1efbcd['get'](ThemeService)[_0x4c211e(0x1e1)](_0x28644b);})),this['disposeWithMe'](this[_0x4ddc59(0x1fc)]['currentTheme$'][_0x4ddc59(0x228)](_0x1a4bde=>{const _0x78ab02=_0x4ddc59;_0x1efbcd['get'](ThemeService)[_0x78ab02(0x1e3)](_0x1a4bde);})),_0x1efbcd[_0x4ddc59(0x1b1)](LocaleService)[_0x4ddc59(0x19c)](this['_localeService'][_0x4ddc59(0x1ef)]()),_0x1efbcd[_0x4ddc59(0x1b1)](IConfigService)[_0x4ddc59(0x1a8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this['_configService'][_0x4ddc59(0x22c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x5ce8c1=this[_0x4ddc59(0x1a6)]['getConfig'](LS_CONFIG_KEY);if(_0x5ce8c1)_0x4ff71e['registerPlugin'](UniverLicensePlugin,{'license':_0x5ce8c1['ls']});const _0x278038=(_0x29c995=this[_0x4ddc59(0x1a6)][_0x4ddc59(0x22c)](_0x4ddc59(0x18a)))===null||_0x29c995===void 0x0?void 0x0:_0x29c995[_0x4ddc59(0x1c0)],_0xa99c6a=!!_0x278038;_0xa99c6a&&(this[_0x4ddc59(0x1ca)]=_0x278038 instanceof Worker?_0x278038:null,_0x4ff71e[_0x4ddc59(0x1bc)](UniverRPCMainThreadPlugin,{'workerURL':_0x278038}));this[_0x4ddc59(0x184)]['forEach'](([_0x8a57a0,_0x5681d8])=>{const _0x3cce88=_0x4ddc59;_0x4ff71e[_0x3cce88(0x1bc)](_0x8a57a0,_0x5681d8);}),_0x4ff71e[_0x4ddc59(0x1bc)](UniverEditHistoryViewerMobilePlugin,{'historyListServerUrl':(_0x10fb45=this[_0x4ddc59(0x1a6)]['getConfig']('edit-history-loader.config'))===null||_0x10fb45===void 0x0?void 0x0:_0x10fb45[_0x4ddc59(0x22b)],'historyPanelComponentKey':(_0xc60341=this['_configService'][_0x4ddc59(0x22c)](_0x4ddc59(0x18a)))===null||_0xc60341===void 0x0?void 0x0:_0xc60341[_0x4ddc59(0x188)],'historyPanelHidden':(_0x36b877=this[_0x4ddc59(0x1a6)]['getConfig'](_0x4ddc59(0x18a)))===null||_0x36b877===void 0x0?void 0x0:_0x36b877[_0x4ddc59(0x1ec)]}),_0x1efbcd[_0x4ddc59(0x20a)](_0x5b4922=>{const _0x47f337=_0x4ddc59;this[_0x47f337(0x218)](_0x5b4922,_0x31c54e);}),this[_0x4ddc59(0x212)][_0x4ddc59(0x182)](_0x4ff71e);const _0x1c8031=_0x1efbcd[_0x4ddc59(0x1b1)](HistoryManagerService),_0x432354=this['_checkCanRevert'](_0x31c54e),_0x28a18e=()=>{const _0x263acb=_0x4ddc59;if(_0x54d2e6)_0x1c8031[_0x263acb(0x1a2)](_0x31c54e,_0x363ef2,_0x432354,_0x54d2e6);else _0x1c8031[_0x263acb(0x1c4)](_0x31c54e,_0x363ef2,_0x432354);};this[_0x4ddc59(0x197)][_0x4ddc59(0x21b)]({'content':this['_localeService']['t'](_0x4ddc59(0x20e)),'type':MessageType['Loading']});if(_0xa99c6a)try{_0x1efbcd['get'](IRemoteInstanceService)[_0x4ddc59(0x1ce)]()[_0x4ddc59(0x1f3)](()=>{_0x28a18e();});}catch{_0x28a18e();}else _0x28a18e();}['_initListener'](_0x749f5d,_0x1fb3a3){const _0x394505=_0x1ea0aa,_0x2633fc=_0x749f5d[_0x394505(0x1b1)](HistoryManagerService);this[_0x394505(0x181)]['add'](_0x2633fc['status$']['subscribe'](_0x4ea203=>{const _0x3c433d=_0x394505;switch(_0x4ea203){case HistoryModeStatus['Entered']:this[_0x3c433d(0x1c5)][_0x3c433d(0x1f8)](),this['_sidebarService']['close']();break;case HistoryModeStatus[_0x3c433d(0x177)]:this[_0x3c433d(0x205)][_0x3c433d(0x1b9)](ExitEditHistoryOperation['id']),this[_0x3c433d(0x1aa)]();break;case HistoryModeStatus[_0x3c433d(0x21c)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x3c433d(0x171)]['t'](_0x3c433d(0x21d)),'type':MessageType[_0x3c433d(0x21c)],'duration':0xbb8});break;default:break;}})),this[_0x394505(0x181)][_0x394505(0x209)](_0x2633fc['revertRevision$']['subscribe'](async _0x4b400b=>{const _0x397e5b=_0x394505;if(_0x4b400b)this[_0x397e5b(0x205)][_0x397e5b(0x1b9)](RevertRevisionMutation['id'],{'unitId':_0x1fb3a3,'revision':_0x4b400b});}));}[_0x1ea0aa(0x21a)](_0x35eff9){const _0x552b5b=_0x1ea0aa,_0x264bc2=this[_0x552b5b(0x19f)]['getUnit'](_0x35eff9)[_0x552b5b(0x17b)]()[_0x552b5b(0x1d9)](_0x22c3e2=>_0x22c3e2[_0x552b5b(0x198)]()),_0x137dce=new WorkbookEditablePermission(_0x35eff9)['id'],_0x355c37=_0x264bc2['map'](_0x15f07e=>new WorksheetEditPermission(_0x35eff9,_0x15f07e)['id']),_0x51baed=_0x264bc2[_0x552b5b(0x1d9)](_0xcf0cb4=>this[_0x552b5b(0x1b8)][_0x552b5b(0x221)](_0x35eff9,_0xcf0cb4)['map'](_0x165054=>new RangeProtectionPermissionEditPoint(_0x35eff9,_0xcf0cb4,_0x165054[_0x552b5b(0x1d4)])['id']))['flat'](),_0x58c8ec=new WorkbookRecoverHistoryPermission(_0x35eff9)['id'];return this[_0x552b5b(0x1df)][_0x552b5b(0x179)]([_0x137dce,..._0x355c37,..._0x51baed,_0x58c8ec])[_0x552b5b(0x1f1)](_0x4d3be8=>!!_0x4d3be8[_0x552b5b(0x18b)]);}};MobileHistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],MobileHistoryLoaderService);let UniverEditHistoryLoaderMobilePlugin=class UniverEditHistoryLoaderMobilePlugin extends Plugin{constructor(_0x103d29=defaultPluginConfig,_0x1366fc,_0x3219dd){const _0x5c6813=_0x1ea0aa;super(),this['_config']=_0x103d29,this[_0x5c6813(0x194)]=_0x1366fc,this['_configService']=_0x3219dd;const {menu:_0x4f7413,..._0x468f41}=merge({},defaultPluginConfig,this[_0x5c6813(0x1ea)]);if(_0x4f7413)this[_0x5c6813(0x1a6)][_0x5c6813(0x1a8)](_0x5c6813(0x1f5),_0x4f7413,{'merge':!![]});this[_0x5c6813(0x1a6)][_0x5c6813(0x1a8)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x468f41);if(this[_0x5c6813(0x1ea)][_0x5c6813(0x200)])this['_configService'][_0x5c6813(0x1a8)](UNIVER_CONTAINER_ID_KEY$1,this[_0x5c6813(0x1ea)][_0x5c6813(0x200)]);}[_0x1ea0aa(0x16f)](){const _0x80169c=_0x1ea0aa;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x80169c(0x1d0)](_0x3b1a6d=>this[_0x80169c(0x194)][_0x80169c(0x209)](_0x3b1a6d));}[_0x1ea0aa(0x1a7)](){const _0x941be1=_0x1ea0aa;this[_0x941be1(0x194)][_0x941be1(0x1b1)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x1ba),UniverInstanceType[_0x1ea0aa(0x22f)]),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'pluginName',_0x1ea0aa(0x192)),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x214),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x1ea0aa(0x175),version),UniverEditHistoryLoaderMobilePlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends RxDisposable{constructor(_0x4bc8a3,_0x2e7cce,_0x1687f9,_0x4b3857,_0x205710,_0x3c4de6,_0x518728,_0x549222,_0x100d77,_0x1336dd,_0x3374a1){const _0x3ac34f=_0x1ea0aa;super(),this[_0x3ac34f(0x205)]=_0x4bc8a3,this[_0x3ac34f(0x1c9)]=_0x2e7cce,this['_componentManager']=_0x1687f9,this[_0x3ac34f(0x207)]=_0x4b3857,this[_0x3ac34f(0x171)]=_0x205710,this[_0x3ac34f(0x197)]=_0x3c4de6,this[_0x3ac34f(0x1be)]=_0x518728,this[_0x3ac34f(0x21e)]=_0x549222,this[_0x3ac34f(0x1a0)]=_0x100d77,this[_0x3ac34f(0x19f)]=_0x1336dd,this[_0x3ac34f(0x183)]=_0x3374a1,_defineProperty(this,'_revertErrorTimer',null),this[_0x3ac34f(0x18d)]();}[_0x1ea0aa(0x18d)](){const _0x2e1319=_0x1ea0aa;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x2e1319(0x1d0)](_0x1db9df=>this[_0x2e1319(0x1f9)](toDisposable(this['_commandService']['registerCommand'](_0x1db9df)))),this[_0x2e1319(0x1f9)](this[_0x2e1319(0x17d)]['register'](_0x2e1319(0x20c),HistoryIcon)),this['_menuManagerService'][_0x2e1319(0x17c)](menuSchema),this[_0x2e1319(0x1f9)](this[_0x2e1319(0x205)][_0x2e1319(0x230)](async(_0x5d2a5b,_0x525a1e)=>{const _0x5ab07f=_0x2e1319;if(_0x5d2a5b['id']===RevertRevisionMutation['id']){const {unitId:_0x5cddce}=_0x5d2a5b['params'];this[_0x5ab07f(0x197)]['show']({'content':this[_0x5ab07f(0x171)]['t'](_0x5ab07f(0x1f7)),'type':MessageType[_0x5ab07f(0x222)],'duration':0x1388});const _0x242670=this[_0x5ab07f(0x1be)]['getCollabEntity'](_0x5cddce);if(!(_0x525a1e===null||_0x525a1e===void 0x0?void 0x0:_0x525a1e[_0x5ab07f(0x217)]))this[_0x5ab07f(0x1b7)](_0x242670,async()=>{const _0x16d898=_0x5ab07f,_0x20f172=this[_0x16d898(0x19f)][_0x16d898(0x229)](UniverInstanceType[_0x16d898(0x1fd)]),_0x58db71=_0x20f172===null||_0x20f172===void 0x0?void 0x0:_0x20f172[_0x16d898(0x225)]();if(!_0x58db71)return![];this[_0x16d898(0x19f)]['disposeUnit'](_0x5cddce);const _0x11c143=await this[_0x16d898(0x1a0)][_0x16d898(0x196)](_0x5cddce,UniverInstanceType['UNIVER_SHEET']);if(_0x11c143&&_0x11c143 instanceof Workbook)return await this['_setupSubUnitSync'](_0x11c143,_0x58db71[_0x16d898(0x198)]()),!![];return![];});else this[_0x5ab07f(0x1b7)](_0x242670,async()=>{const _0x1a9d91=_0x5ab07f;return setTimeout(()=>window['location'][_0x1a9d91(0x191)]()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0x286f33,_0xbf41ee,_0x38f27e=![]){const _0x4ff292=_0x1ea0aa,_0x3308cd=combineLatest([_0x286f33[_0x4ff292(0x1dd)][_0x4ff292(0x16d)],_0x286f33[_0x4ff292(0x18e)]])[_0x4ff292(0x228)](async([_0x13971f,_0x32022c])=>{const _0x471303=_0x4ff292;if(_0x13971f[_0x471303(0x1ed)]===CollaborationEvent[_0x471303(0x19d)]&&(_0x32022c===null||_0x32022c===void 0x0?void 0x0:_0x32022c[_0x471303(0x1bb)])===CollaborationStatus[_0x471303(0x1a5)]){if(_0x13971f[_0x471303(0x1b2)][_0x471303(0x1bf)][_0x471303(0x1ee)](_0x519675=>_0x519675['id']===RevertRevisionMutation['id'])){if(await _0xbf41ee()){var _0x6a4b17;this[_0x471303(0x207)][_0x471303(0x1aa)](),_0x3308cd['unsubscribe'](),this[_0x471303(0x204)]&&clearTimeout(this[_0x471303(0x204)]),await((_0x6a4b17=this[_0x471303(0x21e)])===null||_0x6a4b17===void 0x0?void 0x0:_0x6a4b17[_0x471303(0x202)]());}}}});if(_0x38f27e)this[_0x4ff292(0x204)]=setTimeout(()=>{const _0x5d2018=_0x4ff292;_0x3308cd[_0x5d2018(0x17a)](),this[_0x5d2018(0x197)][_0x5d2018(0x21b)]({'content':this[_0x5d2018(0x171)]['t'](_0x5d2018(0x18f)),'type':MessageType['Error'],'duration':0xbb8});},0x1388);}async[_0x1ea0aa(0x1cd)](_0x38c0b8,_0x4dba3f){const _0xc7f611=_0x1ea0aa;await this[_0xc7f611(0x1db)](_0x38c0b8,_0x4dba3f),_0x38c0b8['activeSheet$'][_0xc7f611(0x1b5)](takeUntil(this[_0xc7f611(0x208)]))[_0xc7f611(0x228)](_0x37c5b0=>{if(_0x37c5b0)this['_updateURLWithCurrentState'](_0x37c5b0);}),this['_urlService'][_0xc7f611(0x201)][_0xc7f611(0x1b5)](takeUntil(this[_0xc7f611(0x208)]))[_0xc7f611(0x228)](()=>this[_0xc7f611(0x1db)](_0x38c0b8,_0x4dba3f));}[_0x1ea0aa(0x18c)](_0x4bcb8f,_0x3e03fe=![]){const _0x354adb=_0x1ea0aa,_0x1c2327=this[_0x354adb(0x183)]['getParam'](_0x354adb(0x1d7));if(_0x4bcb8f[_0x354adb(0x198)]()!==_0x1c2327)this[_0x354adb(0x183)][_0x354adb(0x215)](_0x354adb(0x1d7),_0x4bcb8f['getSheetId'](),_0x3e03fe);}async['_updateSubUnitFromURLParams'](_0x513eee,_0x43dc4e){const _0x56e242=_0x1ea0aa;var _0x5a59d8;if(!_0x43dc4e||!_0x513eee['getSheetBySheetId'](_0x43dc4e)){const _0x520ef7=_0x513eee['getUnhiddenWorksheets']()[0x0],_0x65a305=_0x513eee[_0x56e242(0x1a9)](_0x520ef7);if(!_0x65a305)return;this[_0x56e242(0x18c)](_0x65a305,!![]),await this[_0x56e242(0x205)][_0x56e242(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x513eee[_0x56e242(0x1f6)](),'subUnitId':_0x520ef7});return;}if(((_0x5a59d8=_0x513eee[_0x56e242(0x225)]())===null||_0x5a59d8===void 0x0?void 0x0:_0x5a59d8[_0x56e242(0x198)]())===_0x43dc4e)return;await this[_0x56e242(0x205)][_0x56e242(0x1b9)](SetWorksheetActivateCommand['id'],{'unitId':_0x513eee[_0x56e242(0x1f6)](),'subUnitId':_0x43dc4e});}};HistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],HistoryLoaderController);let UniverEditHistoryLoaderPlugin=class UniverEditHistoryLoaderPlugin extends Plugin{constructor(_0x17dba0=defaultPluginConfig,_0x525750,_0x4af3ef){const _0x1ea9b1=_0x1ea0aa;super(),this[_0x1ea9b1(0x1ea)]=_0x17dba0,this[_0x1ea9b1(0x194)]=_0x525750,this['_configService']=_0x4af3ef;const {menu:_0x47d346,..._0x470866}=merge({},defaultPluginConfig,this[_0x1ea9b1(0x1ea)]);if(_0x47d346)this[_0x1ea9b1(0x1a6)][_0x1ea9b1(0x1a8)](_0x1ea9b1(0x1f5),_0x47d346,{'merge':!![]});this['_configService']['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x470866);if(this[_0x1ea9b1(0x1ea)][_0x1ea9b1(0x200)])this[_0x1ea9b1(0x1a6)][_0x1ea9b1(0x1a8)](UNIVER_CONTAINER_ID_KEY,this[_0x1ea9b1(0x1ea)][_0x1ea9b1(0x200)]);}['onStarting'](){const _0x15ef16=_0x1ea0aa;[[HistoryLoaderService],[HistoryLoaderController]][_0x15ef16(0x1d0)](_0x154583=>this[_0x15ef16(0x194)][_0x15ef16(0x209)](_0x154583));}[_0x1ea0aa(0x1a7)](){const _0x3bf4fd=_0x1ea0aa;this['_injector'][_0x3bf4fd(0x1b1)](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,'type',UniverInstanceType[_0x1ea0aa(0x22f)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x1b4),_0x1ea0aa(0x1d1)),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x214),name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x1ea0aa(0x175),version),UniverEditHistoryLoaderPlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderPlugin);export{EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,HistoryLoaderService,MobileHistoryLoaderService,ToggleEditHistoryOperation,UNIVER_CONTAINER_ID_KEY,UNIVER_HISTORY_CONTAINER_ID,UniverEditHistoryLoaderMobilePlugin,UniverEditHistoryLoaderPlugin};
1
+ const _0x4160e2=_0x2827;(function(_0xa83ecd,_0x2aab9d){const _0x48bdf3=_0x2827,_0x15b46a=_0xa83ecd();while(!![]){try{const _0x459a5e=-parseInt(_0x48bdf3(0x17f))/0x1*(parseInt(_0x48bdf3(0x1b0))/0x2)+parseInt(_0x48bdf3(0x174))/0x3+parseInt(_0x48bdf3(0x134))/0x4*(-parseInt(_0x48bdf3(0x175))/0x5)+parseInt(_0x48bdf3(0x1c9))/0x6+parseInt(_0x48bdf3(0x1b4))/0x7+-parseInt(_0x48bdf3(0x182))/0x8*(-parseInt(_0x48bdf3(0x15c))/0x9)+-parseInt(_0x48bdf3(0x155))/0xa;if(_0x459a5e===_0x2aab9d)break;else _0x15b46a['push'](_0x15b46a['shift']());}catch(_0x48cc7c){_0x15b46a['push'](_0x15b46a['shift']());}}}(_0x31e5,0x2f63a));import{CommandType,DependentOn,Disposable,DisposableCollection,IAuthzIoService,ICommandService,IConfigService,IPermissionService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,RxDisposable,ThemeService,Univer,UniverInstanceType,Workbook,merge,toDisposable}from'@univerjs/core';import{RangeProtectionPermissionEditPoint,RangeProtectionRuleModel,SetWorksheetActivateCommand,UniverSheetsPlugin,WorkbookEditablePermission,WorkbookRecoverHistoryPermission,WorkbookViewHistoryPermission,WorksheetEditPermission,getSheetCommandTarget}from'@univerjs/sheets';import{CollaborationEvent,RevertRevisionMutation,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{AuthzIoHttpService,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationController,CollaborationStatus,DataLoaderService,ILocalCacheService}from'@univerjs-pro/collaboration-client';function _0x31e5(){const _0x593fb4=['pipe','location','next','getCurrentLocale','historyListServerUrl','_urlService','add','function','12wLtaNQ','getLocales','_selectionProtectionRuleModel','height','_initUniver','\x20has\x20been\x20registered.','getCollabEntity','editHistory.panel.reverting','params','UNIVER_SHEET','revertRevision$','[MobileHistoryLoaderService]:\x20Plugin\x20','triggerLoadVersions','editHistory.panel.listFetchError','reload','eventID','display','CHANGESET_ACK','width','getConfig','composePermission','onSteady','getSheets','setConfig','left','urlChange$','_updateURLWithCurrentState','triggerCustomVersions','onCommandExecuted','toPrimitive','setTheme','editHistory.panel.title','univer-container','7365470giVbnj','_sidebarService','subscribe','setLocale','_initContainer','_commandService','history-container','18neQRMU','_dialogService','status$','mutations','dispose$','state$','disposeUnit','unsubscribe','iterator','string','subunit','_setupSubUnitSync','_localCacheService','packageName','setParam','_updateSubUnitFromURLParams','invoke','permissionId','_pluginMap','registerCommand','_collaborationController','mergeMenu','UNIVER_CONTAINER_ID','none','1087302DDBWFQ','137210ZBngrJ','getCurrentUnitOfType','univer-history-container-mobile','from','symbol','show','value','style','constructor','data','1LOtUMO','dispose','edit-history-loader.config','1402968ZAnCBj','_initPlugins','univerContainerId','getUnitId','length','setDarkMode','session','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','getUnhiddenWorksheets','block','historyAIassistantEnabled','removeAll','_disposableCollection','getParam','univer.operation.exit-edit-history','_menuManagerService','_messageService','editHistory.panel.revertFailed','disposeWithMe','univer.operation.toggle-edit-history','top','uComp','register','_config','@univerjs-pro/edit-history-loader','createElement','map','Exited','SYNCED','_historyManagerService','_permissionService','_revertErrorTimer','appendChild','then','call','getUnit','version','_localeService','getAllPlugins','_internalWebWorker','loadUnit','_themeService','object','OTHERS','_init','position','218494lBQCsf','_handleRevertAcknowledgement','historyUniver$','getSubunitRuleList','1679510HsHcpS','OPERATION','workerURL','getSheetBySheetId','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','some','closeAll','decorate','HistoryIcon','zIndex','getActiveSheet','[HistoryLoaderService]:\x20Plugin\x20','close','_historyUniver$','UNIVER_UNKNOWN','getElementById','type','_componentManager','values','pluginName','menu','1014720Kfypzq','get','currentTheme$','darkMode$','historyUniver','executeCommand','_injector','whenReady','__getInjector','Entered','div','onStarting','fromCollab','asObservable','dataset','Loading','exhaustSavingTask','activeSheet$','unMountHistoryContent','mountHistoryContent','status','_checkCanRevert','historyPanelHidden','_dataLoaderService','_initListener','getSheetId','forEach','_univerInstanceService','historyPanelComponentKey','editHistory.info.initializing','flat','BUTTON','_configService','100%','Error','registerPlugin','set','has','every'];_0x31e5=function(){return _0x593fb4;};return _0x31e5();}import{HistoryManagerService,HistoryModeStatus,UniverEditHistoryViewerMobilePlugin,UniverEditHistoryViewerPlugin}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY,UniverLicensePlugin}from'@univerjs-pro/license';import{UniverSheetsChartPlugin}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin}from'@univerjs/data-validation';import{MessageType}from'@univerjs/design';import{UniverDocsPlugin}from'@univerjs/docs';import{UniverDocsUIPlugin}from'@univerjs/docs-ui';import{IImageIoService,UniverDrawingPlugin}from'@univerjs/drawing';import{UniverDrawingUIPlugin}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin}from'@univerjs/engine-render';import{UniverNetworkPlugin}from'@univerjs/network';import{IRemoteInstanceService,UniverRPCMainThreadPlugin}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin,UniverSheetsDataValidationUIPlugin}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin,UniverSheetsUIPlugin,getCurrentRangeDisable$}from'@univerjs/sheets-ui';import{ComponentManager,IDialogService,IMenuManagerService,IMessageService,ISidebarService,MenuItemType,RibbonStartGroup,UniverMobileUIPlugin,UniverUIPlugin,getMenuHiddenObservable}from'@univerjs/ui';import{BehaviorSubject,combineLatest,takeUntil}from'rxjs';import{IURLService}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon}from'@univerjs/icons';const EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY=_0x4160e2(0x181),configSymbol=Symbol(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function _typeof(_0x44d721){'@babel/helpers - typeof';const _0x282f7b=_0x4160e2;return _typeof=_0x282f7b(0x133)==typeof Symbol&&'symbol'==typeof Symbol[_0x282f7b(0x164)]?function(_0x18df75){return typeof _0x18df75;}:function(_0x1310fc){const _0x3a2cc6=_0x282f7b;return _0x1310fc&&'function'==typeof Symbol&&_0x1310fc[_0x3a2cc6(0x17d)]===Symbol&&_0x1310fc!==Symbol['prototype']?_0x3a2cc6(0x179):typeof _0x1310fc;},_typeof(_0x44d721);}function toPrimitive(_0x5689d4,_0xdd2555){const _0x13acf2=_0x4160e2;if(_0x13acf2(0x1ac)!=_typeof(_0x5689d4)||!_0x5689d4)return _0x5689d4;var _0x29e551=_0x5689d4[Symbol[_0x13acf2(0x151)]];if(void 0x0!==_0x29e551){var _0x255ade=_0x29e551[_0x13acf2(0x1a4)](_0x5689d4,_0xdd2555||'default');if(_0x13acf2(0x1ac)!=_typeof(_0x255ade))return _0x255ade;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x13acf2(0x165)===_0xdd2555?String:Number)(_0x5689d4);}function toPropertyKey(_0x43fd04){const _0xb3f23d=_0x4160e2;var _0x42a12a=toPrimitive(_0x43fd04,_0xb3f23d(0x165));return _0xb3f23d(0x179)==_typeof(_0x42a12a)?_0x42a12a:_0x42a12a+'';}function _defineProperty(_0x459c21,_0x11f26b,_0x154c8c){return(_0x11f26b=toPropertyKey(_0x11f26b))in _0x459c21?Object['defineProperty'](_0x459c21,_0x11f26b,{'value':_0x154c8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x459c21[_0x11f26b]=_0x154c8c,_0x459c21;}function __decorateParam(_0x11b4ba,_0x5766fc){return function(_0x259b66,_0x5de88d){_0x5766fc(_0x259b66,_0x5de88d,_0x11b4ba);};}function __decorate(_0x31099d,_0x5d4497,_0x18180c,_0x1dbab5){const _0x2e5565=_0x4160e2;var _0x1cd565=arguments[_0x2e5565(0x186)],_0x4b5bd7=_0x1cd565<0x3?_0x5d4497:_0x1dbab5===null?_0x1dbab5=Object['getOwnPropertyDescriptor'](_0x5d4497,_0x18180c):_0x1dbab5,_0x1fe41c;if(typeof Reflect===_0x2e5565(0x1ac)&&typeof Reflect[_0x2e5565(0x1bb)]===_0x2e5565(0x133))_0x4b5bd7=Reflect[_0x2e5565(0x1bb)](_0x31099d,_0x5d4497,_0x18180c,_0x1dbab5);else{for(var _0x3e29bf=_0x31099d[_0x2e5565(0x186)]-0x1;_0x3e29bf>=0x0;_0x3e29bf--)if(_0x1fe41c=_0x31099d[_0x3e29bf])_0x4b5bd7=(_0x1cd565<0x3?_0x1fe41c(_0x4b5bd7):_0x1cd565>0x3?_0x1fe41c(_0x5d4497,_0x18180c,_0x4b5bd7):_0x1fe41c(_0x5d4497,_0x18180c))||_0x4b5bd7;}return _0x1cd565>0x3&&_0x4b5bd7&&Object['defineProperty'](_0x5d4497,_0x18180c,_0x4b5bd7),_0x4b5bd7;}const DEFAULT_UNIVER_CONTAINER_ID$1=_0x4160e2(0x154),UNIVER_CONTAINER_ID_KEY=_0x4160e2(0x172),UNIVER_HISTORY_CONTAINER_ID='univer-history-container';let HistoryLoaderService=class HistoryLoaderService extends Disposable{constructor(_0x39f26b,_0x12dd88,_0xa1dbbf,_0x2dd968,_0x2aef52,_0xcd6fac,_0x1ebb81,_0x5eaed3,_0x271899,_0x26ab50){const _0x5020ef=_0x4160e2;super(),this[_0x5020ef(0x1a7)]=_0x39f26b,this[_0x5020ef(0x120)]=_0x12dd88,this[_0x5020ef(0x125)]=_0xa1dbbf,this[_0x5020ef(0x15a)]=_0x2dd968,this[_0x5020ef(0x192)]=_0x2aef52,this['_permissionService']=_0xcd6fac,this[_0x5020ef(0x136)]=_0x1ebb81,this[_0x5020ef(0x15d)]=_0x5eaed3,this[_0x5020ef(0x156)]=_0x271899,this[_0x5020ef(0x1ab)]=_0x26ab50,_defineProperty(this,_0x5020ef(0x1c1),new BehaviorSubject(null)),_defineProperty(this,_0x5020ef(0x1b2),this['_historyUniver$'][_0x5020ef(0x1d6)]()),_defineProperty(this,_0x5020ef(0x18e),new DisposableCollection()),_defineProperty(this,'_pluginMap',new Map()),_defineProperty(this,'_internalWebWorker',null),this[_0x5020ef(0x1ae)]();}get[_0x4160e2(0x1cd)](){const _0x2cdd09=_0x4160e2;return this[_0x2cdd09(0x1c1)]['value'];}[_0x4160e2(0x1ae)](){const _0x2f6241=_0x4160e2;this[_0x2f6241(0x159)](),this[_0x2f6241(0x183)]();}[_0x4160e2(0x159)](){const _0x3848ec=_0x4160e2;var _0x18726a;const _0x3ee63d=(_0x18726a=this[_0x3848ec(0x125)][_0x3848ec(0x147)](_0x3848ec(0x172)))!==null&&_0x18726a!==void 0x0?_0x18726a:DEFAULT_UNIVER_CONTAINER_ID$1,_0x30a04b=document['getElementById'](_0x3ee63d);if(!_0x30a04b)return;const _0x367358=document['createElement'](_0x3848ec(0x1d3));_0x367358['id']=UNIVER_HISTORY_CONTAINER_ID,_0x367358['dataset'][_0x3848ec(0x197)]='history-container',_0x367358[_0x3848ec(0x17c)]['position']='absolute',_0x367358[_0x3848ec(0x17c)]['top']='0',_0x367358['style']['left']='0',_0x367358['style'][_0x3848ec(0x146)]=_0x3848ec(0x126),_0x367358[_0x3848ec(0x17c)][_0x3848ec(0x137)]=_0x3848ec(0x126),_0x367358[_0x3848ec(0x17c)][_0x3848ec(0x1bd)]='49',_0x367358[_0x3848ec(0x17c)][_0x3848ec(0x144)]=_0x3848ec(0x173),_0x30a04b[_0x3848ec(0x1a2)](_0x367358);}[_0x4160e2(0x183)](){const _0x57469e=_0x4160e2;[[UniverRenderEnginePlugin],[UniverUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsFilterUIPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsConditionalFormattingUIPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]][_0x57469e(0x11f)](([_0x344e9d,_0x32eb4c])=>this[_0x57469e(0x128)](_0x344e9d,_0x32eb4c));}[_0x4160e2(0x180)](){const _0x4c0889=_0x4160e2;super[_0x4c0889(0x180)](),this['unMountHistoryContent'](),this[_0x4c0889(0x16e)]['clear']();}[_0x4160e2(0x128)](_0x531c41,_0x47802a,_0x51cbfe){const _0x4bba7c=_0x4160e2;if(this[_0x4bba7c(0x16e)][_0x4bba7c(0x12a)](_0x531c41[_0x4bba7c(0x1c7)])&&!_0x51cbfe)throw new Error(_0x4bba7c(0x1bf)+_0x531c41[_0x4bba7c(0x1c7)]+_0x4bba7c(0x139));this['_pluginMap'][_0x4bba7c(0x129)](_0x531c41[_0x4bba7c(0x1c7)],[_0x531c41,_0x47802a]);}[_0x4160e2(0x1a8)](){const _0x494883=_0x4160e2;return Array[_0x494883(0x178)](this[_0x494883(0x16e)][_0x494883(0x1c6)]());}[_0x4160e2(0x118)](_0x3480ca,_0x396aad){const _0x575da8=_0x4160e2,_0x243f16=document[_0x575da8(0x1c3)](UNIVER_HISTORY_CONTAINER_ID);if(!_0x243f16)return;_0x243f16[_0x575da8(0x17c)][_0x575da8(0x144)]='block',this['_initUniver'](_0x3480ca,UNIVER_HISTORY_CONTAINER_ID,_0x396aad);}[_0x4160e2(0x117)](){const _0x40a881=_0x4160e2;var _0xc39970;this[_0x40a881(0x18e)]['dispose'](),(_0xc39970=this[_0x40a881(0x1cd)])===null||_0xc39970===void 0x0||_0xc39970[_0x40a881(0x180)](),this[_0x40a881(0x1c1)][_0x40a881(0x12e)](null);const _0x4e4528=document['getElementById'](UNIVER_HISTORY_CONTAINER_ID);if(!_0x4e4528)return;_0x4e4528['style'][_0x40a881(0x144)]='none',this[_0x40a881(0x1a9)]&&(this[_0x40a881(0x1a9)]['terminate'](),this['_internalWebWorker']=null);}[_0x4160e2(0x138)](_0x2cc14c,_0x594490,_0x453a22){const _0x5465e5=_0x4160e2;var _0x8034d2,_0x4c871c,_0x1d3e55,_0x1a523d,_0x1b459b;if(this['historyUniver'])return;const _0xa314d7=new Univer({'locales':{[this[_0x5465e5(0x1a7)][_0x5465e5(0x12f)]()]:this['_localeService'][_0x5465e5(0x135)]()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x526af6=_0xa314d7[_0x5465e5(0x1d1)]();this[_0x5465e5(0x194)](this[_0x5465e5(0x1ab)][_0x5465e5(0x1cc)]['subscribe'](_0xbcc2ae=>{const _0x561b58=_0x5465e5;_0x526af6['get'](ThemeService)[_0x561b58(0x187)](_0xbcc2ae);})),this['disposeWithMe'](this[_0x5465e5(0x1ab)][_0x5465e5(0x1cb)]['subscribe'](_0x387f97=>{const _0x4d1419=_0x5465e5;_0x526af6[_0x4d1419(0x1ca)](ThemeService)[_0x4d1419(0x152)](_0x387f97);})),_0x526af6[_0x5465e5(0x1ca)](LocaleService)[_0x5465e5(0x158)](this['_localeService'][_0x5465e5(0x12f)]()),_0x526af6['get'](IConfigService)['setConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x5465e5(0x125)][_0x5465e5(0x147)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x2e5178=this[_0x5465e5(0x125)][_0x5465e5(0x147)](LS_CONFIG_KEY);if(_0x2e5178)_0xa314d7[_0x5465e5(0x128)](UniverLicensePlugin,{'license':_0x2e5178['ls']});const _0x3d789d=(_0x8034d2=this[_0x5465e5(0x125)][_0x5465e5(0x147)]('edit-history-loader.config'))===null||_0x8034d2===void 0x0?void 0x0:_0x8034d2[_0x5465e5(0x1b6)],_0x10b556=!!_0x3d789d;_0x10b556&&(this['_internalWebWorker']=_0x3d789d instanceof Worker?_0x3d789d:null,_0xa314d7[_0x5465e5(0x128)](UniverRPCMainThreadPlugin,{'workerURL':_0x3d789d}));this['_pluginMap']['forEach'](([_0x2858dd,_0x1706bc])=>{_0xa314d7['registerPlugin'](_0x2858dd,_0x1706bc);}),_0xa314d7[_0x5465e5(0x128)](UniverEditHistoryViewerPlugin,{'historyListServerUrl':(_0x4c871c=this['_configService'][_0x5465e5(0x147)](_0x5465e5(0x181)))===null||_0x4c871c===void 0x0?void 0x0:_0x4c871c[_0x5465e5(0x130)],'historyPanelComponentKey':(_0x1d3e55=this['_configService'][_0x5465e5(0x147)](_0x5465e5(0x181)))===null||_0x1d3e55===void 0x0?void 0x0:_0x1d3e55[_0x5465e5(0x121)],'historyPanelHidden':(_0x1a523d=this['_configService'][_0x5465e5(0x147)]('edit-history-loader.config'))===null||_0x1a523d===void 0x0?void 0x0:_0x1a523d[_0x5465e5(0x11b)],'historyAIassistantEnabled':(_0x1b459b=this[_0x5465e5(0x125)][_0x5465e5(0x147)](_0x5465e5(0x181)))===null||_0x1b459b===void 0x0?void 0x0:_0x1b459b[_0x5465e5(0x18c)]}),_0x526af6[_0x5465e5(0x16c)](_0x10dea9=>{const _0x342cab=_0x5465e5;this[_0x342cab(0x11d)](_0x10dea9,_0x2cc14c);}),this['_historyUniver$'][_0x5465e5(0x12e)](_0xa314d7);const _0x581f50=_0x526af6[_0x5465e5(0x1ca)](HistoryManagerService),_0x7d6d0f=this[_0x5465e5(0x11a)](_0x2cc14c),_0x2f0ddf=()=>{const _0x2579ff=_0x5465e5;if(_0x453a22)_0x581f50[_0x2579ff(0x14f)](_0x2cc14c,_0x594490,_0x7d6d0f,_0x453a22);else _0x581f50[_0x2579ff(0x140)](_0x2cc14c,_0x594490,_0x7d6d0f);};this[_0x5465e5(0x192)][_0x5465e5(0x17a)]({'content':this[_0x5465e5(0x1a7)]['t'](_0x5465e5(0x122)),'type':MessageType[_0x5465e5(0x114)]});if(_0x10b556)try{_0x526af6[_0x5465e5(0x1ca)](IRemoteInstanceService)['whenReady']()[_0x5465e5(0x1a3)](()=>{_0x2f0ddf();});}catch{_0x2f0ddf();}else _0x2f0ddf();}[_0x4160e2(0x11d)](_0x395bb0,_0x36cecb){const _0x3f1d1c=_0x4160e2,_0x53f312=_0x395bb0[_0x3f1d1c(0x1ca)](HistoryManagerService);this[_0x3f1d1c(0x18e)][_0x3f1d1c(0x132)](_0x53f312[_0x3f1d1c(0x15e)][_0x3f1d1c(0x157)](_0x5dc6e5=>{const _0x440429=_0x3f1d1c;switch(_0x5dc6e5){case HistoryModeStatus[_0x440429(0x1d2)]:this[_0x440429(0x15d)][_0x440429(0x1ba)](),this[_0x440429(0x156)][_0x440429(0x1c0)]();break;case HistoryModeStatus['Exited']:this[_0x440429(0x15a)][_0x440429(0x1ce)](ExitEditHistoryOperation['id']),this[_0x440429(0x117)]();break;case HistoryModeStatus[_0x440429(0x127)]:this['unMountHistoryContent'](),this[_0x440429(0x192)][_0x440429(0x17a)]({'content':this[_0x440429(0x1a7)]['t'](_0x440429(0x141)),'type':MessageType['Error'],'duration':0xbb8});break;default:break;}})),this[_0x3f1d1c(0x18e)][_0x3f1d1c(0x132)](_0x53f312[_0x3f1d1c(0x13e)]['subscribe'](async _0x3faea0=>{const _0x390cc6=_0x3f1d1c;if(_0x3faea0)this['_commandService'][_0x390cc6(0x1ce)](RevertRevisionMutation['id'],{'unitId':_0x36cecb,'revision':_0x3faea0});}));}['_checkCanRevert'](_0x2cfbba){const _0x5583e2=_0x4160e2,_0x2f9379=this[_0x5583e2(0x120)][_0x5583e2(0x1a5)](_0x2cfbba)[_0x5583e2(0x14a)]()['map'](_0x3fdfc8=>_0x3fdfc8[_0x5583e2(0x11e)]()),_0x5217f1=new WorkbookEditablePermission(_0x2cfbba)['id'],_0x249361=_0x2f9379[_0x5583e2(0x19c)](_0x2f0f8c=>new WorksheetEditPermission(_0x2cfbba,_0x2f0f8c)['id']),_0xfdc260=_0x2f9379[_0x5583e2(0x19c)](_0x337afa=>this['_selectionProtectionRuleModel'][_0x5583e2(0x1b3)](_0x2cfbba,_0x337afa)[_0x5583e2(0x19c)](_0x4117ea=>new RangeProtectionPermissionEditPoint(_0x2cfbba,_0x337afa,_0x4117ea[_0x5583e2(0x16d)])['id']))[_0x5583e2(0x123)](),_0x5ca834=new WorkbookRecoverHistoryPermission(_0x2cfbba)['id'];return this['_permissionService'][_0x5583e2(0x148)]([_0x5217f1,..._0x249361,..._0xfdc260,_0x5ca834])[_0x5583e2(0x12b)](_0x5524da=>!!_0x5524da['value']);}};HistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],HistoryLoaderService);const ToggleEditHistoryOperation={'id':_0x4160e2(0x195),'type':CommandType[_0x4160e2(0x1b5)],'handler':_0x36de92=>{const _0x4301e5=_0x4160e2,_0x38977a=_0x36de92['get'](HistoryLoaderService),{unitId:_0x4c5e52}=getSheetCommandTarget(_0x36de92[_0x4301e5(0x1ca)](IUniverInstanceService))||{};if(!_0x4c5e52)return![];return _0x38977a[_0x4301e5(0x118)](_0x4c5e52),!![];}},ExitEditHistoryOperation={'id':_0x4160e2(0x190),'type':CommandType[_0x4160e2(0x1b5)],'handler':()=>!![]};var name=_0x4160e2(0x19a),version='0.22.0';function ToggleEditHistoryMenuFactory(_0x212f9f){const _0xe07653=_0x4160e2;return{'id':ToggleEditHistoryOperation['id'],'type':MenuItemType[_0xe07653(0x124)],'icon':_0xe07653(0x1bc),'tooltip':_0xe07653(0x153),'hidden$':getMenuHiddenObservable(_0x212f9f,UniverInstanceType[_0xe07653(0x13d)]),'disabled$':getCurrentRangeDisable$(_0x212f9f,{'workbookTypes':[WorkbookViewHistoryPermission],'worksheetTypes':[],'rangeTypes':[]})};}function _0x2827(_0x20d1bd,_0xe29a06){_0x20d1bd=_0x20d1bd-0x113;const _0x31e5c0=_0x31e5();let _0x282761=_0x31e5c0[_0x20d1bd];return _0x282761;}const menuSchema={[RibbonStartGroup[_0x4160e2(0x1ad)]]:{[ToggleEditHistoryOperation['id']]:{'order':0.2,'menuItemFactory':ToggleEditHistoryMenuFactory}}};let MobileHistoryLoaderController=class MobileHistoryLoaderController extends RxDisposable{constructor(_0x258e82,_0x1c3d96,_0x2eeaa7,_0x37d0a3,_0x456ab8,_0x2c778c,_0x2bf727,_0xcaa179,_0x2e29ae,_0xc88eb2,_0x4e3d33){const _0x4d83e5=_0x4160e2;super(),this[_0x4d83e5(0x15a)]=_0x258e82,this['_menuManagerService']=_0x1c3d96,this[_0x4d83e5(0x1c5)]=_0x2eeaa7,this[_0x4d83e5(0x19f)]=_0x37d0a3,this['_localeService']=_0x456ab8,this[_0x4d83e5(0x192)]=_0x2c778c,this[_0x4d83e5(0x170)]=_0x2bf727,this[_0x4d83e5(0x168)]=_0xcaa179,this[_0x4d83e5(0x11c)]=_0x2e29ae,this['_univerInstanceService']=_0xc88eb2,this[_0x4d83e5(0x131)]=_0x4e3d33,_defineProperty(this,_0x4d83e5(0x1a1),null),this['_init']();}[_0x4160e2(0x1ae)](){const _0x690bec=_0x4160e2;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x690bec(0x11f)](_0x1b1bfb=>this['disposeWithMe'](toDisposable(this[_0x690bec(0x15a)]['registerCommand'](_0x1b1bfb)))),this[_0x690bec(0x194)](this[_0x690bec(0x1c5)]['register'](_0x690bec(0x1bc),HistoryIcon)),this[_0x690bec(0x191)][_0x690bec(0x171)](menuSchema),this[_0x690bec(0x194)](this[_0x690bec(0x15a)]['onCommandExecuted'](async(_0xe28ad5,_0x2fa3af)=>{const _0x4082f8=_0x690bec;if(_0xe28ad5['id']===RevertRevisionMutation['id']){const {unitId:_0x251bc3}=_0xe28ad5[_0x4082f8(0x13c)];this[_0x4082f8(0x192)][_0x4082f8(0x17a)]({'content':this[_0x4082f8(0x1a7)]['t'](_0x4082f8(0x13b)),'type':MessageType['Loading'],'duration':0x1388});const _0xb010a2=this[_0x4082f8(0x170)][_0x4082f8(0x13a)](_0x251bc3);if(!(_0x2fa3af===null||_0x2fa3af===void 0x0?void 0x0:_0x2fa3af[_0x4082f8(0x1d5)]))this[_0x4082f8(0x1b1)](_0xb010a2,async()=>{const _0xa3e3d6=_0x4082f8,_0x30aea5=this[_0xa3e3d6(0x120)]['getCurrentUnitOfType'](UniverInstanceType[_0xa3e3d6(0x13d)]),_0x3c55e7=_0x30aea5===null||_0x30aea5===void 0x0?void 0x0:_0x30aea5[_0xa3e3d6(0x1be)]();if(!_0x3c55e7)return![];this['_univerInstanceService']['disposeUnit'](_0x251bc3);const _0x37f3b4=await this[_0xa3e3d6(0x11c)][_0xa3e3d6(0x1aa)](_0x251bc3,UniverInstanceType[_0xa3e3d6(0x13d)]);if(_0x37f3b4&&_0x37f3b4 instanceof Workbook)return await this['_setupSubUnitSync'](_0x37f3b4,_0x3c55e7[_0xa3e3d6(0x11e)]()),!![];return![];});else this[_0x4082f8(0x1b1)](_0xb010a2,async()=>{const _0x4b6d31=_0x4082f8;return setTimeout(()=>window[_0x4b6d31(0x12d)][_0x4b6d31(0x142)]()),!![];},!![]);}}));}[_0x4160e2(0x1b1)](_0x51132d,_0x1e1e7f,_0x2a61e2=![]){const _0x16da73=_0x4160e2,_0x2dd933=combineLatest([_0x51132d[_0x16da73(0x188)]['event$'],_0x51132d[_0x16da73(0x161)]])[_0x16da73(0x157)](async([_0x4d350a,_0x59432a])=>{const _0x2273c8=_0x16da73;if(_0x4d350a['eventID']===CollaborationEvent[_0x2273c8(0x145)]&&(_0x59432a===null||_0x59432a===void 0x0?void 0x0:_0x59432a[_0x2273c8(0x119)])===CollaborationStatus[_0x2273c8(0x19e)]){if(_0x4d350a[_0x2273c8(0x17e)][_0x2273c8(0x15f)][_0x2273c8(0x1b9)](_0x4ef668=>_0x4ef668['id']===RevertRevisionMutation['id'])){if(await _0x1e1e7f()){var _0x43b6f9;this[_0x2273c8(0x19f)][_0x2273c8(0x117)](),_0x2dd933[_0x2273c8(0x163)](),this[_0x2273c8(0x1a1)]&&clearTimeout(this['_revertErrorTimer']),await((_0x43b6f9=this[_0x2273c8(0x168)])===null||_0x43b6f9===void 0x0?void 0x0:_0x43b6f9[_0x2273c8(0x115)]()),this['_messageService'][_0x2273c8(0x18d)]();}}}});if(_0x2a61e2)this[_0x16da73(0x1a1)]=setTimeout(()=>{const _0x3ca5ac=_0x16da73;_0x2dd933[_0x3ca5ac(0x163)](),this['_messageService'][_0x3ca5ac(0x17a)]({'content':this[_0x3ca5ac(0x1a7)]['t'](_0x3ca5ac(0x193)),'type':MessageType[_0x3ca5ac(0x127)],'duration':0xbb8});},0x1388);}async[_0x4160e2(0x167)](_0x415c35,_0x36a472){const _0x406dd3=_0x4160e2;await this[_0x406dd3(0x16b)](_0x415c35,_0x36a472),_0x415c35[_0x406dd3(0x116)][_0x406dd3(0x12c)](takeUntil(this['dispose$']))[_0x406dd3(0x157)](_0x1330f0=>{if(_0x1330f0)this['_updateURLWithCurrentState'](_0x1330f0);}),this[_0x406dd3(0x131)][_0x406dd3(0x14d)]['pipe'](takeUntil(this[_0x406dd3(0x160)]))[_0x406dd3(0x157)](()=>this['_updateSubUnitFromURLParams'](_0x415c35,_0x36a472));}['_updateURLWithCurrentState'](_0x385359,_0x259363=![]){const _0x3cdec0=_0x4160e2,_0x3b36c7=this['_urlService']['getParam'](_0x3cdec0(0x166));if(_0x385359[_0x3cdec0(0x11e)]()!==_0x3b36c7)this['_urlService'][_0x3cdec0(0x16a)]('subunit',_0x385359[_0x3cdec0(0x11e)](),_0x259363);}async[_0x4160e2(0x16b)](_0x496d20,_0x27b216){const _0x29a0d4=_0x4160e2;var _0x48ee4e;if(!_0x27b216||!_0x496d20[_0x29a0d4(0x1b7)](_0x27b216)){const _0x134b93=_0x496d20[_0x29a0d4(0x18a)]()[0x0],_0x270ed9=_0x496d20[_0x29a0d4(0x1b7)](_0x134b93);if(!_0x270ed9)return;this['_updateURLWithCurrentState'](_0x270ed9,!![]),await this[_0x29a0d4(0x15a)][_0x29a0d4(0x1ce)](SetWorksheetActivateCommand['id'],{'unitId':_0x496d20['getUnitId'](),'subUnitId':_0x134b93});return;}if(((_0x48ee4e=_0x496d20['getActiveSheet']())===null||_0x48ee4e===void 0x0?void 0x0:_0x48ee4e['getSheetId']())===_0x27b216)return;await this['_commandService']['executeCommand'](SetWorksheetActivateCommand['id'],{'unitId':_0x496d20[_0x29a0d4(0x185)](),'subUnitId':_0x27b216});}};MobileHistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],MobileHistoryLoaderController);const DEFAULT_UNIVER_CONTAINER_ID=_0x4160e2(0x154),UNIVER_CONTAINER_ID_KEY$1=_0x4160e2(0x172),UNIVER_HISTORY_CONTAINER_ID$1=_0x4160e2(0x177);let MobileHistoryLoaderService=class MobileHistoryLoaderService extends Disposable{constructor(_0x31a9bf,_0x3f5c38,_0xfc2773,_0x53d271,_0x32d938,_0x395f1f,_0xa8581a,_0x5437bd,_0x2c119d,_0x5c4f6e){const _0x3b671e=_0x4160e2;super(),this['_localeService']=_0x31a9bf,this[_0x3b671e(0x120)]=_0x3f5c38,this[_0x3b671e(0x125)]=_0xfc2773,this[_0x3b671e(0x15a)]=_0x53d271,this[_0x3b671e(0x192)]=_0x32d938,this[_0x3b671e(0x1a0)]=_0x395f1f,this[_0x3b671e(0x136)]=_0xa8581a,this['_dialogService']=_0x5437bd,this[_0x3b671e(0x156)]=_0x2c119d,this[_0x3b671e(0x1ab)]=_0x5c4f6e,_defineProperty(this,_0x3b671e(0x1c1),new BehaviorSubject(null)),_defineProperty(this,_0x3b671e(0x1b2),this['_historyUniver$'][_0x3b671e(0x1d6)]()),_defineProperty(this,_0x3b671e(0x18e),new DisposableCollection()),_defineProperty(this,_0x3b671e(0x16e),new Map()),_defineProperty(this,_0x3b671e(0x1a9),null),this[_0x3b671e(0x1ae)]();}get['historyUniver'](){return this['_historyUniver$']['value'];}['_init'](){const _0x1f41ae=_0x4160e2;this[_0x1f41ae(0x159)](),this[_0x1f41ae(0x183)]();}['_initContainer'](){const _0x5bfa29=_0x4160e2;var _0x48905b;const _0x1a252b=(_0x48905b=this[_0x5bfa29(0x125)]['getConfig'](_0x5bfa29(0x172)))!==null&&_0x48905b!==void 0x0?_0x48905b:DEFAULT_UNIVER_CONTAINER_ID,_0x20f02a=document['getElementById'](_0x1a252b);if(!_0x20f02a)return;const _0x3e13f9=document[_0x5bfa29(0x19b)](_0x5bfa29(0x1d3));_0x3e13f9['id']=UNIVER_HISTORY_CONTAINER_ID$1,_0x3e13f9[_0x5bfa29(0x113)]['uComp']=_0x5bfa29(0x15b),_0x3e13f9[_0x5bfa29(0x17c)][_0x5bfa29(0x1af)]='absolute',_0x3e13f9[_0x5bfa29(0x17c)][_0x5bfa29(0x196)]='0',_0x3e13f9[_0x5bfa29(0x17c)][_0x5bfa29(0x14c)]='0',_0x3e13f9['style']['width']=_0x5bfa29(0x126),_0x3e13f9[_0x5bfa29(0x17c)][_0x5bfa29(0x137)]=_0x5bfa29(0x126),_0x3e13f9['style'][_0x5bfa29(0x1bd)]='49',_0x3e13f9[_0x5bfa29(0x17c)][_0x5bfa29(0x144)]=_0x5bfa29(0x173),_0x20f02a[_0x5bfa29(0x1a2)](_0x3e13f9);}[_0x4160e2(0x183)](){const _0x54c56c=_0x4160e2;[[UniverRenderEnginePlugin],[UniverMobileUIPlugin,{'container':UNIVER_HISTORY_CONTAINER_ID$1,'header':!![],'toolbar':![],'footer':!![],'contextMenu':![],'override':[[IDialogService,null]]}],[UniverNetworkPlugin],[UniverDrawingPlugin,{'override':[[IImageIoService,null]]}],[UniverDocsPlugin,{'hasScroll':![]}],[UniverDocsUIPlugin],[UniverSheetsNumfmtPlugin],[UniverSheetsPlugin,{'notExecuteFormula':!![]}],[UniverSheetsMobileUIPlugin],[UniverSheetsFormulaPlugin],[UniverSheetsFormulaUIPlugin],[UniverCollaborationPlugin],[UniverSheetsFilterPlugin],[UniverSheetsConditionalFormattingPlugin],[UniverSheetsHyperLinkPlugin],[UniverSheetsHyperLinkUIPlugin],[UniverDataValidationPlugin],[UniverSheetsDataValidationPlugin],[UniverSheetsDataValidationMobileUIPlugin],[UniverFormulaEnginePlugin,{'notExecuteFormula':!![]}],[UniverDrawingUIPlugin],[UniverSheetsDrawingPlugin],[UniverSheetsDrawingUIPlugin],[UniverSheetSparklinePlugin],[UniverSheetSparklineUIPlugin],[UniverSheetsChartPlugin],[UniverSheetsChartUIPlugin],[UniverSheetsShapePlugin],[UniverSheetsShapeUIPlugin],[UniverSheetsPivotTablePlugin,{'notExecuteFormula':!![]}],[UniverSheetsTablePlugin]][_0x54c56c(0x11f)](([_0x41dde4,_0x20be88])=>this[_0x54c56c(0x128)](_0x41dde4,_0x20be88));}['dispose'](){const _0x35dc0d=_0x4160e2;super['dispose'](),this[_0x35dc0d(0x117)](),this[_0x35dc0d(0x16e)]['clear']();}[_0x4160e2(0x128)](_0x1a8b2e,_0x536161,_0x3b45a8){const _0x36db0c=_0x4160e2;if(this[_0x36db0c(0x16e)][_0x36db0c(0x12a)](_0x1a8b2e[_0x36db0c(0x1c7)])&&!_0x3b45a8)throw new Error(_0x36db0c(0x13f)+_0x1a8b2e[_0x36db0c(0x1c7)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x36db0c(0x129)](_0x1a8b2e[_0x36db0c(0x1c7)],[_0x1a8b2e,_0x536161]);}[_0x4160e2(0x1a8)](){const _0x504424=_0x4160e2;return Array[_0x504424(0x178)](this[_0x504424(0x16e)]['values']());}[_0x4160e2(0x118)](_0xd125f,_0x530f8a){const _0x1f8806=_0x4160e2,_0x5784f3=document[_0x1f8806(0x1c3)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x5784f3)return;_0x5784f3[_0x1f8806(0x17c)]['display']=_0x1f8806(0x18b),this['_initUniver'](_0xd125f,UNIVER_HISTORY_CONTAINER_ID$1,_0x530f8a);}[_0x4160e2(0x117)](){const _0x18166e=_0x4160e2;var _0x4bb029;this['_disposableCollection']['dispose'](),(_0x4bb029=this[_0x18166e(0x1cd)])===null||_0x4bb029===void 0x0||_0x4bb029[_0x18166e(0x180)](),this[_0x18166e(0x1c1)][_0x18166e(0x12e)](null);const _0x435770=document[_0x18166e(0x1c3)](UNIVER_HISTORY_CONTAINER_ID$1);if(!_0x435770)return;_0x435770[_0x18166e(0x17c)][_0x18166e(0x144)]=_0x18166e(0x173),this['_internalWebWorker']&&(this[_0x18166e(0x1a9)]['terminate'](),this[_0x18166e(0x1a9)]=null);}['_initUniver'](_0x2a9e6d,_0x46ee25,_0x2eaa8d){const _0x5ac754=_0x4160e2;var _0x271c1f,_0xd6ef9f,_0x1157f6,_0x4a151a;if(this[_0x5ac754(0x1cd)])return;const _0xe71313=new Univer({'locales':{[this[_0x5ac754(0x1a7)][_0x5ac754(0x12f)]()]:this['_localeService']['getLocales']()},'override':[[IAuthzIoService,{'useClass':AuthzIoHttpService}]]}),_0x236d53=_0xe71313[_0x5ac754(0x1d1)]();this['disposeWithMe'](this['_themeService']['darkMode$'][_0x5ac754(0x157)](_0x5a6999=>{const _0x72c84d=_0x5ac754;_0x236d53[_0x72c84d(0x1ca)](ThemeService)[_0x72c84d(0x187)](_0x5a6999);})),this[_0x5ac754(0x194)](this[_0x5ac754(0x1ab)]['currentTheme$'][_0x5ac754(0x157)](_0x227ac4=>{const _0x1b6ef0=_0x5ac754;_0x236d53[_0x1b6ef0(0x1ca)](ThemeService)[_0x1b6ef0(0x152)](_0x227ac4);})),_0x236d53[_0x5ac754(0x1ca)](LocaleService)[_0x5ac754(0x158)](this[_0x5ac754(0x1a7)][_0x5ac754(0x12f)]()),_0x236d53[_0x5ac754(0x1ca)](IConfigService)[_0x5ac754(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,this[_0x5ac754(0x125)][_0x5ac754(0x147)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY));const _0x4f0a94=this[_0x5ac754(0x125)][_0x5ac754(0x147)](LS_CONFIG_KEY);if(_0x4f0a94)_0xe71313[_0x5ac754(0x128)](UniverLicensePlugin,{'license':_0x4f0a94['ls']});const _0x286d9f=(_0x271c1f=this[_0x5ac754(0x125)][_0x5ac754(0x147)](_0x5ac754(0x181)))===null||_0x271c1f===void 0x0?void 0x0:_0x271c1f['workerURL'],_0x4b6b8e=!!_0x286d9f;_0x4b6b8e&&(this[_0x5ac754(0x1a9)]=_0x286d9f instanceof Worker?_0x286d9f:null,_0xe71313['registerPlugin'](UniverRPCMainThreadPlugin,{'workerURL':_0x286d9f}));this[_0x5ac754(0x16e)][_0x5ac754(0x11f)](([_0x3ccda0,_0x1c7b23])=>{const _0x433c87=_0x5ac754;_0xe71313[_0x433c87(0x128)](_0x3ccda0,_0x1c7b23);}),_0xe71313[_0x5ac754(0x128)](UniverEditHistoryViewerMobilePlugin,{'historyListServerUrl':(_0xd6ef9f=this[_0x5ac754(0x125)][_0x5ac754(0x147)](_0x5ac754(0x181)))===null||_0xd6ef9f===void 0x0?void 0x0:_0xd6ef9f[_0x5ac754(0x130)],'historyPanelComponentKey':(_0x1157f6=this[_0x5ac754(0x125)]['getConfig'](_0x5ac754(0x181)))===null||_0x1157f6===void 0x0?void 0x0:_0x1157f6[_0x5ac754(0x121)],'historyPanelHidden':(_0x4a151a=this[_0x5ac754(0x125)]['getConfig'](_0x5ac754(0x181)))===null||_0x4a151a===void 0x0?void 0x0:_0x4a151a['historyPanelHidden']}),_0x236d53[_0x5ac754(0x16c)](_0x1dc6d4=>{const _0x522cf3=_0x5ac754;this[_0x522cf3(0x11d)](_0x1dc6d4,_0x2a9e6d);}),this[_0x5ac754(0x1c1)][_0x5ac754(0x12e)](_0xe71313);const _0x21b697=_0x236d53[_0x5ac754(0x1ca)](HistoryManagerService),_0x536e75=this[_0x5ac754(0x11a)](_0x2a9e6d),_0x2484b0=()=>{const _0x439cb5=_0x5ac754;if(_0x2eaa8d)_0x21b697[_0x439cb5(0x14f)](_0x2a9e6d,_0x46ee25,_0x536e75,_0x2eaa8d);else _0x21b697[_0x439cb5(0x140)](_0x2a9e6d,_0x46ee25,_0x536e75);};this['_messageService'][_0x5ac754(0x17a)]({'content':this[_0x5ac754(0x1a7)]['t'](_0x5ac754(0x122)),'type':MessageType[_0x5ac754(0x114)]});if(_0x4b6b8e)try{_0x236d53[_0x5ac754(0x1ca)](IRemoteInstanceService)[_0x5ac754(0x1d0)]()['then'](()=>{_0x2484b0();});}catch{_0x2484b0();}else _0x2484b0();}[_0x4160e2(0x11d)](_0x55a158,_0x5b4dd2){const _0x91d774=_0x4160e2,_0x36f2ae=_0x55a158[_0x91d774(0x1ca)](HistoryManagerService);this['_disposableCollection'][_0x91d774(0x132)](_0x36f2ae['status$'][_0x91d774(0x157)](_0x5d8478=>{const _0x1114d0=_0x91d774;switch(_0x5d8478){case HistoryModeStatus[_0x1114d0(0x1d2)]:this['_dialogService']['closeAll'](),this['_sidebarService']['close']();break;case HistoryModeStatus[_0x1114d0(0x19d)]:this['_commandService'][_0x1114d0(0x1ce)](ExitEditHistoryOperation['id']),this[_0x1114d0(0x117)]();break;case HistoryModeStatus[_0x1114d0(0x127)]:this[_0x1114d0(0x117)](),this[_0x1114d0(0x192)][_0x1114d0(0x17a)]({'content':this[_0x1114d0(0x1a7)]['t'](_0x1114d0(0x141)),'type':MessageType[_0x1114d0(0x127)],'duration':0xbb8});break;default:break;}})),this[_0x91d774(0x18e)][_0x91d774(0x132)](_0x36f2ae['revertRevision$']['subscribe'](async _0x4fc308=>{const _0x2c81a8=_0x91d774;if(_0x4fc308)this[_0x2c81a8(0x15a)][_0x2c81a8(0x1ce)](RevertRevisionMutation['id'],{'unitId':_0x5b4dd2,'revision':_0x4fc308});}));}[_0x4160e2(0x11a)](_0x1886be){const _0x25caa5=_0x4160e2,_0x1de1ed=this['_univerInstanceService'][_0x25caa5(0x1a5)](_0x1886be)[_0x25caa5(0x14a)]()['map'](_0x13401a=>_0x13401a[_0x25caa5(0x11e)]()),_0x480385=new WorkbookEditablePermission(_0x1886be)['id'],_0x2744a0=_0x1de1ed[_0x25caa5(0x19c)](_0x47d287=>new WorksheetEditPermission(_0x1886be,_0x47d287)['id']),_0x15da35=_0x1de1ed[_0x25caa5(0x19c)](_0x4c44b9=>this[_0x25caa5(0x136)][_0x25caa5(0x1b3)](_0x1886be,_0x4c44b9)[_0x25caa5(0x19c)](_0x1214bd=>new RangeProtectionPermissionEditPoint(_0x1886be,_0x4c44b9,_0x1214bd[_0x25caa5(0x16d)])['id']))['flat'](),_0x434f7c=new WorkbookRecoverHistoryPermission(_0x1886be)['id'];return this['_permissionService'][_0x25caa5(0x148)]([_0x480385,..._0x2744a0,..._0x15da35,_0x434f7c])['every'](_0x565c5b=>!!_0x565c5b[_0x25caa5(0x17b)]);}};MobileHistoryLoaderService=__decorate([__decorateParam(0x0,Inject(LocaleService)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICommandService),__decorateParam(0x4,IMessageService),__decorateParam(0x5,IPermissionService),__decorateParam(0x6,Inject(RangeProtectionRuleModel)),__decorateParam(0x7,Inject(IDialogService)),__decorateParam(0x8,Inject(ISidebarService)),__decorateParam(0x9,Inject(ThemeService))],MobileHistoryLoaderService);let UniverEditHistoryLoaderMobilePlugin=class UniverEditHistoryLoaderMobilePlugin extends Plugin{constructor(_0x395142=defaultPluginConfig,_0x179a46,_0x76a66){const _0x5cc453=_0x4160e2;super(),this[_0x5cc453(0x199)]=_0x395142,this[_0x5cc453(0x1cf)]=_0x179a46,this[_0x5cc453(0x125)]=_0x76a66;const {menu:_0x3294b1,..._0x463356}=merge({},defaultPluginConfig,this[_0x5cc453(0x199)]);if(_0x3294b1)this[_0x5cc453(0x125)][_0x5cc453(0x14b)](_0x5cc453(0x1c8),_0x3294b1,{'merge':!![]});this[_0x5cc453(0x125)]['setConfig'](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0x463356);if(this[_0x5cc453(0x199)][_0x5cc453(0x184)])this[_0x5cc453(0x125)][_0x5cc453(0x14b)](UNIVER_CONTAINER_ID_KEY$1,this[_0x5cc453(0x199)][_0x5cc453(0x184)]);}[_0x4160e2(0x1d4)](){const _0x187d9b=_0x4160e2;[[HistoryLoaderService,{'useClass':MobileHistoryLoaderService}],[MobileHistoryLoaderController]][_0x187d9b(0x11f)](_0x348aba=>this['_injector']['add'](_0x348aba));}[_0x4160e2(0x149)](){const _0x12fd31=_0x4160e2;this['_injector'][_0x12fd31(0x1ca)](MobileHistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderMobilePlugin,'type',UniverInstanceType['UNIVER_UNKNOWN']),_defineProperty(UniverEditHistoryLoaderMobilePlugin,'pluginName',_0x4160e2(0x1b8)),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x4160e2(0x169),name),_defineProperty(UniverEditHistoryLoaderMobilePlugin,_0x4160e2(0x1a6),version),UniverEditHistoryLoaderMobilePlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderMobilePlugin);let HistoryLoaderController=class HistoryLoaderController extends RxDisposable{constructor(_0x348c88,_0x4378de,_0x3a9f8c,_0x210756,_0x2a7857,_0x1e1aab,_0xf3c5c8,_0x795e9b,_0x267f2e,_0x595194,_0x130c9a){const _0x37d5f5=_0x4160e2;super(),this[_0x37d5f5(0x15a)]=_0x348c88,this[_0x37d5f5(0x191)]=_0x4378de,this[_0x37d5f5(0x1c5)]=_0x3a9f8c,this['_historyManagerService']=_0x210756,this[_0x37d5f5(0x1a7)]=_0x2a7857,this['_messageService']=_0x1e1aab,this[_0x37d5f5(0x170)]=_0xf3c5c8,this[_0x37d5f5(0x168)]=_0x795e9b,this[_0x37d5f5(0x11c)]=_0x267f2e,this[_0x37d5f5(0x120)]=_0x595194,this[_0x37d5f5(0x131)]=_0x130c9a,_defineProperty(this,_0x37d5f5(0x1a1),null),this['_init']();}['_init'](){const _0x147bff=_0x4160e2;[ToggleEditHistoryOperation,ExitEditHistoryOperation][_0x147bff(0x11f)](_0x2974ab=>this[_0x147bff(0x194)](toDisposable(this[_0x147bff(0x15a)][_0x147bff(0x16f)](_0x2974ab)))),this[_0x147bff(0x194)](this[_0x147bff(0x1c5)][_0x147bff(0x198)]('HistoryIcon',HistoryIcon)),this[_0x147bff(0x191)][_0x147bff(0x171)](menuSchema),this[_0x147bff(0x194)](this['_commandService'][_0x147bff(0x150)](async(_0x2a5cad,_0x2ac638)=>{const _0x334406=_0x147bff;if(_0x2a5cad['id']===RevertRevisionMutation['id']){const {unitId:_0x505fa7}=_0x2a5cad[_0x334406(0x13c)];this['_messageService']['show']({'content':this[_0x334406(0x1a7)]['t'](_0x334406(0x13b)),'type':MessageType['Loading'],'duration':0x1388});const _0x44484d=this[_0x334406(0x170)][_0x334406(0x13a)](_0x505fa7);if(!(_0x2ac638===null||_0x2ac638===void 0x0?void 0x0:_0x2ac638[_0x334406(0x1d5)]))this[_0x334406(0x1b1)](_0x44484d,async()=>{const _0x2c16b2=_0x334406,_0x58141d=this[_0x2c16b2(0x120)][_0x2c16b2(0x176)](UniverInstanceType[_0x2c16b2(0x13d)]),_0x4227ff=_0x58141d===null||_0x58141d===void 0x0?void 0x0:_0x58141d[_0x2c16b2(0x1be)]();if(!_0x4227ff)return![];this[_0x2c16b2(0x120)][_0x2c16b2(0x162)](_0x505fa7);const _0x1f983b=await this[_0x2c16b2(0x11c)][_0x2c16b2(0x1aa)](_0x505fa7,UniverInstanceType[_0x2c16b2(0x13d)]);if(_0x1f983b&&_0x1f983b instanceof Workbook)return await this['_setupSubUnitSync'](_0x1f983b,_0x4227ff['getSheetId']()),!![];return![];});else this[_0x334406(0x1b1)](_0x44484d,async()=>{const _0x343c59=_0x334406;return setTimeout(()=>window[_0x343c59(0x12d)][_0x343c59(0x142)]()),!![];},!![]);}}));}['_handleRevertAcknowledgement'](_0xb83f33,_0x1967c3,_0x42b0fe=![]){const _0x4580dd=_0x4160e2,_0x35baa1=combineLatest([_0xb83f33[_0x4580dd(0x188)]['event$'],_0xb83f33[_0x4580dd(0x161)]])['subscribe'](async([_0x3dfa05,_0x35805a])=>{const _0x16dce1=_0x4580dd;if(_0x3dfa05[_0x16dce1(0x143)]===CollaborationEvent[_0x16dce1(0x145)]&&(_0x35805a===null||_0x35805a===void 0x0?void 0x0:_0x35805a['status'])===CollaborationStatus[_0x16dce1(0x19e)]){if(_0x3dfa05['data']['mutations']['some'](_0x7b881f=>_0x7b881f['id']===RevertRevisionMutation['id'])){if(await _0x1967c3()){var _0x2ceb35;this['_historyManagerService'][_0x16dce1(0x117)](),_0x35baa1[_0x16dce1(0x163)](),this[_0x16dce1(0x1a1)]&&clearTimeout(this[_0x16dce1(0x1a1)]),await((_0x2ceb35=this[_0x16dce1(0x168)])===null||_0x2ceb35===void 0x0?void 0x0:_0x2ceb35[_0x16dce1(0x115)]());}}}});if(_0x42b0fe)this['_revertErrorTimer']=setTimeout(()=>{const _0x27dcac=_0x4580dd;_0x35baa1[_0x27dcac(0x163)](),this[_0x27dcac(0x192)][_0x27dcac(0x17a)]({'content':this[_0x27dcac(0x1a7)]['t']('editHistory.panel.revertFailed'),'type':MessageType[_0x27dcac(0x127)],'duration':0xbb8});},0x1388);}async[_0x4160e2(0x167)](_0x3f5462,_0x554010){const _0x415492=_0x4160e2;await this[_0x415492(0x16b)](_0x3f5462,_0x554010),_0x3f5462[_0x415492(0x116)][_0x415492(0x12c)](takeUntil(this['dispose$']))['subscribe'](_0x1b6252=>{if(_0x1b6252)this['_updateURLWithCurrentState'](_0x1b6252);}),this[_0x415492(0x131)][_0x415492(0x14d)]['pipe'](takeUntil(this['dispose$']))[_0x415492(0x157)](()=>this[_0x415492(0x16b)](_0x3f5462,_0x554010));}[_0x4160e2(0x14e)](_0x9677ec,_0x423262=![]){const _0x171cc8=_0x4160e2,_0x56c00d=this[_0x171cc8(0x131)][_0x171cc8(0x18f)](_0x171cc8(0x166));if(_0x9677ec[_0x171cc8(0x11e)]()!==_0x56c00d)this[_0x171cc8(0x131)][_0x171cc8(0x16a)](_0x171cc8(0x166),_0x9677ec[_0x171cc8(0x11e)](),_0x423262);}async[_0x4160e2(0x16b)](_0x54eb56,_0x235538){const _0x27a171=_0x4160e2;var _0x4515db;if(!_0x235538||!_0x54eb56['getSheetBySheetId'](_0x235538)){const _0x59d059=_0x54eb56[_0x27a171(0x18a)]()[0x0],_0x2b287d=_0x54eb56[_0x27a171(0x1b7)](_0x59d059);if(!_0x2b287d)return;this[_0x27a171(0x14e)](_0x2b287d,!![]),await this[_0x27a171(0x15a)][_0x27a171(0x1ce)](SetWorksheetActivateCommand['id'],{'unitId':_0x54eb56[_0x27a171(0x185)](),'subUnitId':_0x59d059});return;}if(((_0x4515db=_0x54eb56[_0x27a171(0x1be)]())===null||_0x4515db===void 0x0?void 0x0:_0x4515db['getSheetId']())===_0x235538)return;await this[_0x27a171(0x15a)][_0x27a171(0x1ce)](SetWorksheetActivateCommand['id'],{'unitId':_0x54eb56[_0x27a171(0x185)](),'subUnitId':_0x235538});}};HistoryLoaderController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager)),__decorateParam(0x3,Inject(HistoryLoaderService)),__decorateParam(0x4,Inject(LocaleService)),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(CollaborationController)),__decorateParam(0x7,ILocalCacheService),__decorateParam(0x8,Inject(DataLoaderService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,IURLService)],HistoryLoaderController);let UniverEditHistoryLoaderPlugin=class UniverEditHistoryLoaderPlugin extends Plugin{constructor(_0x3e6d84=defaultPluginConfig,_0x13b446,_0x35e918){const _0x964645=_0x4160e2;super(),this['_config']=_0x3e6d84,this[_0x964645(0x1cf)]=_0x13b446,this['_configService']=_0x35e918;const {menu:_0xb87ce,..._0xf79eee}=merge({},defaultPluginConfig,this[_0x964645(0x199)]);if(_0xb87ce)this['_configService'][_0x964645(0x14b)]('menu',_0xb87ce,{'merge':!![]});this['_configService'][_0x964645(0x14b)](EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,_0xf79eee);if(this[_0x964645(0x199)][_0x964645(0x184)])this[_0x964645(0x125)][_0x964645(0x14b)](UNIVER_CONTAINER_ID_KEY,this[_0x964645(0x199)][_0x964645(0x184)]);}[_0x4160e2(0x1d4)](){const _0x2a13a1=_0x4160e2;[[HistoryLoaderService],[HistoryLoaderController]][_0x2a13a1(0x11f)](_0x469369=>this[_0x2a13a1(0x1cf)]['add'](_0x469369));}['onSteady'](){this['_injector']['get'](HistoryLoaderController);}};_defineProperty(UniverEditHistoryLoaderPlugin,_0x4160e2(0x1c4),UniverInstanceType[_0x4160e2(0x1c2)]),_defineProperty(UniverEditHistoryLoaderPlugin,_0x4160e2(0x1c7),_0x4160e2(0x189)),_defineProperty(UniverEditHistoryLoaderPlugin,'packageName',name),_defineProperty(UniverEditHistoryLoaderPlugin,_0x4160e2(0x1a6),version),UniverEditHistoryLoaderPlugin=__decorate([DependentOn(UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverEditHistoryLoaderPlugin);export{EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,HistoryLoaderService,MobileHistoryLoaderService,ToggleEditHistoryOperation,UNIVER_CONTAINER_ID_KEY,UNIVER_HISTORY_CONTAINER_ID,UniverEditHistoryLoaderMobilePlugin,UniverEditHistoryLoaderPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3886(_0x1ba131,_0x16fa79){_0x1ba131=_0x1ba131-0x67;const _0x16d36f=_0x16d3();let _0x388655=_0x16d36f[_0x1ba131];return _0x388655;}function _0x16d3(){const _0x30af7b=['UniverSheetsTable','UniverSheetsDrawingUIPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','darkMode$','location','MenuItemType','UniverProEditHistoryViewer','_config','_sidebarService','getUnitId','getUnit','map','LS_CONFIG_KEY','_collaborationController','eventID','setConfig','subscribe','getCurrentLocale','_initContainer','ComponentManager','_localeService','Plugin','getCurrentUnitOfType','ThemeService','merge','whenReady','call','UniverSheetsDrawingPlugin','UniverSheetsChartPlugin','string','UniverSheetsTablePlugin','state$','editHistory.panel.reverting','_menuManagerService','848912fyVtlD','position','registerCommand','width','_messageService','UniverMobileUIPlugin','_updateSubUnitFromURLParams','add','every','mountHistoryContent','UniverSheetsDataValidationUi','defs','UniverEngineRender','AuthzIoHttpService','UniverSheetsUIPlugin','BehaviorSubject','http://www.w3.org/2000/svg','UniverCollaborationPlugin','UniverSheetSparklinePlugin','onSteady','UniverRpc','children','_injector','historyPanelHidden','MobileHistoryLoaderService','WorkbookEditablePermission','Inject','IMessageService','IAuthzIoService','appendChild','UniverSheetsShapePlugin','current','random','editHistory.panel.title','style','mask','UniverSheetsDataValidationPlugin','_pluginMap','has','7312CiawCq','pipe','display','entries','IURLService','absolute','UniverSheetsPlugin','fromCollab','ISidebarService','use','Exited','history-icon','14049flReXS','decorate','set','UniverSheetsShapeUIPlugin','trim','executeCommand','UniverSheetsHyperLinkPlugin','UniverDrawingPlugin','Injector','mergeMenu','zIndex','prototype','UniverSheetsFilter','getSubunitRuleList','removeAll','IPermissionService','historyListServerUrl','_historyManagerService','event$','UniverSheetsDrawingUi','UniverSheetsNumfmtPlugin','getMenuHiddenObservable','object','CollaborationEvent','disposeWithMe','revertRevision$','UniverSheetsNumfmt','UniverUi','status','path','subunit','uComp','CHANGESET_ACK','currentColor','UniverSheetsHyperLink','UniverLicensePlugin','_handleRevertAcknowledgement','attrs','_localCacheService','UniverSheetsHyperLinkUi','UniverSheetsFormula','React','idSuffix','toStringTag','UniverDataValidationPlugin','get','SYNCED','IUniverInstanceService','getSheetBySheetId','editHistory.info.initializing','HistoryIcon','getCollabEntity','__getInjector','Disposable','historyUniver$','DisposableCollection','xlink:href','function','UniverSheetsConditionalFormattingPlugin','UniverDocsUi','params','[HistoryLoaderService]:\x20Plugin\x20','UniverSheetsFormulaUIPlugin','UniverProSheetsShape','then','UniverDrawing','UniverSheetsFilterPlugin','UniverDesign','url(#history-icon_clip0_907_281)','top','invoke','block','assign','getConfig','_disposableCollection','terminate','UniverSheetsUi','7UTHxOy','ICommandService','UniverSheetSparklineUIPlugin','_revertErrorTimer','symbol','toDisposable','height','_univerInstanceService','DataLoaderService','register','ILocalCacheService','replace','univer.operation.exit-edit-history','unMountHistoryContent','ToggleEditHistoryOperation','UniverProSheetsShapeUi','triggerCustomVersions','fill','triggerLoadVersions','univer.operation.toggle-edit-history','permissionId','OTHERS','forEach','tag','SetWorksheetActivateCommand','toPrimitive','UNIVER_UNKNOWN','UniverProSheetsPivot','UniverProCollaboration','registerPlugin','clear','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','getSheetCommandTarget','Entered','RxDisposable','UniverSheetsFormulaPlugin','getParam','UniverSheetsFilterUIPlugin','toString','none','UniverEngineFormula','UniverSheetsChartUIPlugin','menu','historyPanelComponentKey','dispose$','MessageType','HistoryModeStatus','history-icon_clip0_907_281','UniverRPCMainThreadPlugin','default','UNIVER_HISTORY_CONTAINER_ID','next','DependentOn','UniverEditHistoryLoaderMobilePlugin','white','show','UniverIcon','UniverDrawingUi','UniverSheetsFilterUi','UniverSheetsDataValidationMobileUIPlugin','univerContainerId','RevertRevisionMutation','UniverSheets','historyUniver','values','edit-history-loader.config','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_historyUniver$','disposeUnit','UniverProSheetsChart','UniverUIPlugin','_initListener','WorkbookRecoverHistoryPermission','_componentManager','UniverNetworkPlugin','UniverSheetsHyperLinkUIPlugin','takeUntil','UniverProEditHistoryLoader','CollaborationStatus','Workbook','exhaustSavingTask','WorksheetEditPermission','IDialogService','_updateURLWithCurrentState','_urlService','Loading','status$','UniverSheetsConditionalFormattingUi','value','univer-history-container-mobile','RangeProtectionRuleModel','getElementById','BUTTON','univerjs-icon\x20univerjs-icon-','iterator','forwardRef','dataset','UniverRenderEnginePlugin','activeSheet$','currentTheme$','\x20has\x20been\x20registered.','data','1591624yIPsWw','3505230NtNyUN','_configService','pluginName','getLocales','urlChange$','reload','univer-history-container','createElement','dispose','@univerjs-pro/edit-history-loader','UniverEditHistoryViewerPlugin','UNIVER_CONTAINER_ID_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','combineLatest','split','session','CollaborationController','UniverInstanceType','unsubscribe','CommandType','UniverCore','RibbonStartGroup','setDarkMode','WorkbookViewHistoryPermission','_setupSubUnitSync','UNIVER_SHEET','length','getAllPlugins','setTheme','composePermission','colorChannel1','LocaleService','_init','mutations','IMenuManagerService','HistoryLoaderService','537016VLYzcx','editHistory.panel.revertFailed','UniverProSheetsChartUi','_initUniver','displayName','onStarting','getSheets','_selectionProtectionRuleModel','_themeService','0\x200\x2016\x2016','IImageIoService','amd','UniverSheetsPivotTablePlugin','UNIVER_CONTAINER_ID','UniverProCollaborationClientUi','asObservable','setParam','491139TGUval','UniverFormulaEnginePlugin','IConfigService','UniverDocsPlugin','getCurrentRangeDisable$','left','flat','_internalWebWorker','close','packageName','from','100%','_initPlugins','Univer','_permissionService','onCommandExecuted','2598504CCAaKe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getActiveSheet','UniverDocsUIPlugin','Error','editHistory.panel.listFetchError','UniverProCollaborationClient','RangeProtectionPermissionEditPoint','_dialogService','UniverSheetsConditionalFormattingUIPlugin','_dataLoaderService','rxjs','constructor','defineProperty','history-container','_commandService','M0\x200H16V16H0z','setLocale','HistoryManagerService','loadUnit','closeAll','getUnhiddenWorksheets','some','UniverProLicense','_checkCanRevert','getSheetId'];_0x16d3=function(){return _0x30af7b;};return _0x16d3();}(function(_0x49a6e5,_0xcb0f57){const _0x46d8fc=_0x3886,_0xa08c4=_0x49a6e5();while(!![]){try{const _0x11b37b=-parseInt(_0x46d8fc(0xfa))/0x1+-parseInt(_0x46d8fc(0x157))/0x2+parseInt(_0x46d8fc(0x10b))/0x3+-parseInt(_0x46d8fc(0xd5))/0x4+parseInt(_0x46d8fc(0xd6))/0x5+parseInt(_0x46d8fc(0x11b))/0x6*(-parseInt(_0x46d8fc(0x6f))/0x7)+parseInt(_0x46d8fc(0x17e))/0x8*(parseInt(_0x46d8fc(0x18a))/0x9);if(_0x11b37b===_0xcb0f57)break;else _0xa08c4['push'](_0xa08c4['shift']());}catch(_0x4fe867){_0xa08c4['push'](_0xa08c4['shift']());}}}(_0x16d3,0x79d6b),function(_0x3ae8d8,_0x2858ca){const _0xf9704c=_0x3886;typeof exports==_0xf9704c(0x1a0)&&typeof module<'u'?_0x2858ca(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs-pro/edit-history-viewer`),require(`@univerjs-pro/license`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs-pro/sheets-chart-ui`),require(`@univerjs-pro/sheets-pivot`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs-pro/sheets-shape-ui`),require(`@univerjs-pro/sheets-sparkline`),require(`@univerjs-pro/sheets-sparkline-ui`),require(`@univerjs/data-validation`),require(`@univerjs/design`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs/drawing`),require(`@univerjs/drawing-ui`),require(`@univerjs/engine-formula`),require(`@univerjs/engine-render`),require(`@univerjs/network`),require(`@univerjs/rpc`),require(`@univerjs/sheets-conditional-formatting`),require(`@univerjs/sheets-conditional-formatting-ui`),require(`@univerjs/sheets-data-validation`),require(`@univerjs/sheets-data-validation-ui`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets-drawing-ui`),require(`@univerjs/sheets-filter`),require(`@univerjs/sheets-filter-ui`),require(`@univerjs/sheets-formula`),require(`@univerjs/sheets-formula-ui`),require(`@univerjs/sheets-hyper-link`),require(`@univerjs/sheets-hyper-link-ui`),require(`@univerjs/sheets-numfmt`),require(`@univerjs/sheets-table`),require(`@univerjs/sheets-ui`),require(`@univerjs/ui`),require(`rxjs`),require(`@univerjs-pro/collaboration-client-ui`),require(`react`)):typeof define=='function'&&define[_0xf9704c(0x105)]?define('exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react'[_0xf9704c(0xe4)]('.'),_0x2858ca):(_0x3ae8d8=typeof globalThis<'u'?globalThis:_0x3ae8d8||self,_0x2858ca(_0x3ae8d8[_0xf9704c(0xbc)]={},_0x3ae8d8[_0xf9704c(0xea)],_0x3ae8d8[_0xf9704c(0xad)],_0x3ae8d8[_0xf9704c(0x8b)],_0x3ae8d8[_0xf9704c(0x121)],_0x3ae8d8[_0xf9704c(0x13b)],_0x3ae8d8[_0xf9704c(0x132)],_0x3ae8d8[_0xf9704c(0xb4)],_0x3ae8d8[_0xf9704c(0xfc)],_0x3ae8d8[_0xf9704c(0x8a)],_0x3ae8d8[_0xf9704c(0x1c9)],_0x3ae8d8[_0xf9704c(0x7e)],_0x3ae8d8['UniverProSheetsSparkline'],_0x3ae8d8['UniverProSheetsSparklineUi'],_0x3ae8d8['UniverDataValidation'],_0x3ae8d8[_0xf9704c(0x1cd)],_0x3ae8d8['UniverDocs'],_0x3ae8d8[_0xf9704c(0x1c5)],_0x3ae8d8[_0xf9704c(0x1cb)],_0x3ae8d8[_0xf9704c(0xa8)],_0x3ae8d8[_0xf9704c(0x97)],_0x3ae8d8[_0xf9704c(0x163)],_0x3ae8d8['UniverNetwork'],_0x3ae8d8[_0xf9704c(0x16b)],_0x3ae8d8['UniverSheetsConditionalFormatting'],_0x3ae8d8[_0xf9704c(0xc6)],_0x3ae8d8['UniverSheetsDataValidation'],_0x3ae8d8[_0xf9704c(0x161)],_0x3ae8d8['UniverSheetsDrawing'],_0x3ae8d8[_0xf9704c(0x19d)],_0x3ae8d8[_0xf9704c(0x196)],_0x3ae8d8[_0xf9704c(0xa9)],_0x3ae8d8[_0xf9704c(0x1b2)],_0x3ae8d8['UniverSheetsFormulaUi'],_0x3ae8d8[_0xf9704c(0x1ac)],_0x3ae8d8[_0xf9704c(0x1b1)],_0x3ae8d8[_0xf9704c(0x1a4)],_0x3ae8d8[_0xf9704c(0x135)],_0x3ae8d8[_0xf9704c(0x6e)],_0x3ae8d8[_0xf9704c(0x1a5)],_0x3ae8d8[_0xf9704c(0x126)],_0x3ae8d8[_0xf9704c(0x108)],_0x3ae8d8[_0xf9704c(0x1b3)]));}(this,function(_0xdb52b,_0x412010,_0x136342,_0x597de7,_0x110681,_0xad21ce,_0xa92606,_0x13a5b7,_0x14cbfe,_0x574451,_0x4dccbb,_0x283344,_0x342fba,_0x394d70,_0x4f122e,_0x153d7c,_0x3a8973,_0x575f91,_0x58aeae,_0x1959e3,_0x2a0b4b,_0x54884c,_0x3b1006,_0x283f0d,_0x137584,_0xd473da,_0x3d8376,_0x24998c,_0x5b45f0,_0x27a0cb,_0x8d1937,_0x189537,_0xa1db9b,_0x2596de,_0x2f751c,_0x9f6010,_0x5790d8,_0x317470,_0x1f610d,_0x284ec3,_0x121a50,_0x2fda48,_0x30721f){const _0x45b811=_0x3886;Object[_0x45b811(0x128)](_0xdb52b,Symbol[_0x45b811(0x1b5)],{'value':'Module'});let _0x149075=_0x45b811(0xb0);Symbol(_0x149075);let _0x5df63e={};function _0x4b67f4(_0x21535d){'@babel/helpers - typeof';const _0x5cd6f7=_0x45b811;return _0x4b67f4=typeof Symbol==_0x5cd6f7(0x1c3)&&typeof Symbol[_0x5cd6f7(0xcd)]==_0x5cd6f7(0x73)?function(_0x5c0898){return typeof _0x5c0898;}:function(_0x3713ec){const _0x52cabc=_0x5cd6f7;return _0x3713ec&&typeof Symbol==_0x52cabc(0x1c3)&&_0x3713ec[_0x52cabc(0x127)]===Symbol&&_0x3713ec!==Symbol[_0x52cabc(0x195)]?'symbol':typeof _0x3713ec;},_0x4b67f4(_0x21535d);}function _0x492c3e(_0x215fe5,_0x5cf206){const _0x5677f9=_0x45b811;if(_0x4b67f4(_0x215fe5)!='object'||!_0x215fe5)return _0x215fe5;var _0x176a94=_0x215fe5[Symbol[_0x5677f9(0x88)]];if(_0x176a94!==void 0x0){var _0x33a391=_0x176a94[_0x5677f9(0x14f)](_0x215fe5,_0x5cf206||_0x5677f9(0xa0));if(_0x4b67f4(_0x33a391)!=_0x5677f9(0x1a0))return _0x33a391;throw TypeError(_0x5677f9(0x11c));}return(_0x5cf206===_0x5677f9(0x152)?String:Number)(_0x215fe5);}function _0xf5ee05(_0x2c051a){const _0x22b997=_0x45b811;var _0x44c3df=_0x492c3e(_0x2c051a,_0x22b997(0x152));return _0x4b67f4(_0x44c3df)==_0x22b997(0x73)?_0x44c3df:_0x44c3df+'';}function _0x57c8f2(_0x37b7e8,_0x1e54c1,_0x31a2fe){const _0x30c9b0=_0x45b811;return(_0x1e54c1=_0xf5ee05(_0x1e54c1))in _0x37b7e8?Object[_0x30c9b0(0x128)](_0x37b7e8,_0x1e54c1,{'value':_0x31a2fe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37b7e8[_0x1e54c1]=_0x31a2fe,_0x37b7e8;}function _0x132994(_0x24e5e5,_0x574b5f){return function(_0x55c1e1,_0x34b710){_0x574b5f(_0x55c1e1,_0x34b710,_0x24e5e5);};}function _0x58019a(_0x29a858,_0x10baf1,_0x2b2022,_0x42cb17){const _0x494c83=_0x45b811;var _0x51ab5d=arguments[_0x494c83(0xf0)],_0x224ab0=_0x51ab5d<0x3?_0x10baf1:_0x42cb17===null?_0x42cb17=Object['getOwnPropertyDescriptor'](_0x10baf1,_0x2b2022):_0x42cb17,_0x5e5fb3;if(typeof Reflect==_0x494c83(0x1a0)&&typeof Reflect['decorate']=='function')_0x224ab0=Reflect[_0x494c83(0x18b)](_0x29a858,_0x10baf1,_0x2b2022,_0x42cb17);else{for(var _0x1dafc4=_0x29a858['length']-0x1;_0x1dafc4>=0x0;_0x1dafc4--)(_0x5e5fb3=_0x29a858[_0x1dafc4])&&(_0x224ab0=(_0x51ab5d<0x3?_0x5e5fb3(_0x224ab0):_0x51ab5d>0x3?_0x5e5fb3(_0x10baf1,_0x2b2022,_0x224ab0):_0x5e5fb3(_0x10baf1,_0x2b2022))||_0x224ab0);}return _0x51ab5d>0x3&&_0x224ab0&&Object[_0x494c83(0x128)](_0x10baf1,_0x2b2022,_0x224ab0),_0x224ab0;}let _0x25fbf7='UNIVER_CONTAINER_ID',_0x40de2d=_0x45b811(0xdc),_0x595023=class extends _0x412010[_0x45b811(0x1bf)]{constructor(_0x54b22a,_0x132623,_0x5a9e7f,_0x4bba21,_0x10a837,_0x153fbd,_0xd226e,_0xb851d4,_0x19f025,_0x1a1e4b){const _0x522dd5=_0x45b811;super(),this['_localeService']=_0x54b22a,this[_0x522dd5(0x76)]=_0x132623,this[_0x522dd5(0xd7)]=_0x5a9e7f,this[_0x522dd5(0x12a)]=_0x4bba21,this[_0x522dd5(0x15b)]=_0x10a837,this['_permissionService']=_0x153fbd,this['_selectionProtectionRuleModel']=_0xd226e,this[_0x522dd5(0x123)]=_0xb851d4,this[_0x522dd5(0x13d)]=_0x19f025,this[_0x522dd5(0x102)]=_0x1a1e4b,_0x57c8f2(this,_0x522dd5(0xb2),new _0x121a50[(_0x522dd5(0x166))](null)),_0x57c8f2(this,'historyUniver$',this[_0x522dd5(0xb2)]['asObservable']()),_0x57c8f2(this,_0x522dd5(0x6c),new _0x412010[(_0x522dd5(0x1c1))]()),_0x57c8f2(this,_0x522dd5(0x17c),new Map()),_0x57c8f2(this,_0x522dd5(0x112),null),this['_init']();}get[_0x45b811(0xae)](){return this['_historyUniver$']['value'];}['_init'](){const _0x17a16b=_0x45b811;this[_0x17a16b(0x147)](),this['_initPlugins']();}[_0x45b811(0x147)](){const _0x320b47=_0x45b811;var _0x1132e2;let _0x53b544=(_0x1132e2=this[_0x320b47(0xd7)][_0x320b47(0x6b)](_0x320b47(0x107)))==null?'univer-container':_0x1132e2,_0x9b891d=document[_0x320b47(0xca)](_0x53b544);if(!_0x9b891d)return;let _0x16c1a7=document[_0x320b47(0xdd)]('div');_0x16c1a7['id']=_0x40de2d,_0x16c1a7[_0x320b47(0xcf)][_0x320b47(0x1a9)]=_0x320b47(0x129),_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x158)]=_0x320b47(0x183),_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x67)]='0',_0x16c1a7['style'][_0x320b47(0x110)]='0',_0x16c1a7['style'][_0x320b47(0x15a)]='100%',_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x75)]=_0x320b47(0x116),_0x16c1a7['style'][_0x320b47(0x194)]='49',_0x16c1a7[_0x320b47(0x179)][_0x320b47(0x180)]=_0x320b47(0x96),_0x9b891d[_0x320b47(0x174)](_0x16c1a7);}[_0x45b811(0x117)](){const _0x46b3f8=_0x45b811;[[_0x54884c['UniverRenderEnginePlugin']],[_0x284ec3[_0x46b3f8(0xb5)],{'container':_0x40de2d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x284ec3[_0x46b3f8(0xc1)],null]]}],[_0x3b1006[_0x46b3f8(0xb9)]],[_0x58aeae[_0x46b3f8(0x191)],{'override':[[_0x58aeae[_0x46b3f8(0x104)],null]]}],[_0x3a8973[_0x46b3f8(0x10e)],{'hasScroll':!0x1}],[_0x575f91[_0x46b3f8(0x11e)]],[_0x5790d8[_0x46b3f8(0x19e)]],[_0x136342[_0x46b3f8(0x184)],{'notExecuteFormula':!0x0}],[_0x1f610d[_0x46b3f8(0x165)]],[_0xa1db9b[_0x46b3f8(0x92)]],[_0x2596de[_0x46b3f8(0x1c8)]],[_0x597de7[_0x46b3f8(0x168)]],[_0x8d1937['UniverSheetsFilterPlugin']],[_0x189537[_0x46b3f8(0x94)]],[_0x137584[_0x46b3f8(0x1c4)]],[_0xd473da[_0x46b3f8(0x124)]],[_0x2f751c[_0x46b3f8(0x190)]],[_0x9f6010[_0x46b3f8(0xba)]],[_0x4f122e[_0x46b3f8(0x1b6)]],[_0x3d8376[_0x46b3f8(0x17b)]],[_0x24998c['UniverSheetsDataValidationUIPlugin']],[_0x2a0b4b[_0x46b3f8(0x10c)],{'notExecuteFormula':!0x0}],[_0x1959e3['UniverDrawingUIPlugin']],[_0x5b45f0['UniverSheetsDrawingPlugin']],[_0x27a0cb[_0x46b3f8(0x136)]],[_0x342fba[_0x46b3f8(0x169)]],[_0x394d70[_0x46b3f8(0x71)]],[_0x13a5b7[_0x46b3f8(0x151)]],[_0x14cbfe['UniverSheetsChartUIPlugin']],[_0x4dccbb[_0x46b3f8(0x175)]],[_0x283344[_0x46b3f8(0x18d)]],[_0x574451['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x317470['UniverSheetsTablePlugin']]][_0x46b3f8(0x85)](([_0x2e1aa0,_0xa1165f])=>this[_0x46b3f8(0x8c)](_0x2e1aa0,_0xa1165f));}[_0x45b811(0xde)](){const _0x15eef8=_0x45b811;super['dispose'](),this['unMountHistoryContent'](),this[_0x15eef8(0x17c)][_0x15eef8(0x8d)]();}[_0x45b811(0x8c)](_0xebb6e7,_0x5949ef,_0x537d64){const _0x2494bd=_0x45b811;if(this[_0x2494bd(0x17c)][_0x2494bd(0x17d)](_0xebb6e7[_0x2494bd(0xd8)])&&!_0x537d64)throw Error(_0x2494bd(0x1c7)+_0xebb6e7[_0x2494bd(0xd8)]+_0x2494bd(0xd3));this['_pluginMap'][_0x2494bd(0x18c)](_0xebb6e7['pluginName'],[_0xebb6e7,_0x5949ef]);}[_0x45b811(0xf1)](){const _0x4ccd14=_0x45b811;return Array[_0x4ccd14(0x115)](this[_0x4ccd14(0x17c)][_0x4ccd14(0xaf)]());}[_0x45b811(0x160)](_0x4a2fe9,_0x1f4552){const _0x5f0e18=_0x45b811;let _0x467bdb=document['getElementById'](_0x40de2d);_0x467bdb&&(_0x467bdb[_0x5f0e18(0x179)]['display']=_0x5f0e18(0x69),this[_0x5f0e18(0xfd)](_0x4a2fe9,_0x40de2d,_0x1f4552));}[_0x45b811(0x7c)](){const _0x12c9f8=_0x45b811;var _0x35ba36;this[_0x12c9f8(0x6c)][_0x12c9f8(0xde)](),(_0x35ba36=this[_0x12c9f8(0xae)])==null||_0x35ba36['dispose'](),this[_0x12c9f8(0xb2)][_0x12c9f8(0xa2)](null);let _0x4ffac3=document[_0x12c9f8(0xca)](_0x40de2d);_0x4ffac3&&(_0x4ffac3['style'][_0x12c9f8(0x180)]='none',this[_0x12c9f8(0x112)]&&(this['_internalWebWorker'][_0x12c9f8(0x6d)](),this[_0x12c9f8(0x112)]=null));}[_0x45b811(0xfd)](_0x465881,_0x331dc7,_0x3726b0){const _0x17ff3b=_0x45b811;var _0xf9d917,_0xb1b528,_0x45c19e,_0x33b106,_0x4989e5;if(this[_0x17ff3b(0xae)])return;let _0x17caf4=new _0x412010[(_0x17ff3b(0x118))]({'locales':{[this[_0x17ff3b(0x149)][_0x17ff3b(0x146)]()]:this['_localeService']['getLocales']()},'override':[[_0x412010[_0x17ff3b(0x173)],{'useClass':_0x110681[_0x17ff3b(0x164)]}]]}),_0x2117ff=_0x17caf4['__getInjector']();this[_0x17ff3b(0x1a2)](this['_themeService'][_0x17ff3b(0x138)][_0x17ff3b(0x145)](_0x28c99b=>{const _0x5ed642=_0x17ff3b;_0x2117ff[_0x5ed642(0x1b7)](_0x412010[_0x5ed642(0x14c)])[_0x5ed642(0xec)](_0x28c99b);})),this[_0x17ff3b(0x1a2)](this[_0x17ff3b(0x102)][_0x17ff3b(0xd2)][_0x17ff3b(0x145)](_0xbce279=>{const _0x1baed6=_0x17ff3b;_0x2117ff['get'](_0x412010[_0x1baed6(0x14c)])[_0x1baed6(0xf2)](_0xbce279);})),_0x2117ff[_0x17ff3b(0x1b7)](_0x412010['LocaleService'])[_0x17ff3b(0x12c)](this[_0x17ff3b(0x149)]['getCurrentLocale']()),_0x2117ff[_0x17ff3b(0x1b7)](_0x412010[_0x17ff3b(0x10d)])['setConfig'](_0x110681[_0x17ff3b(0xe2)],this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x110681[_0x17ff3b(0xe2)]));let _0x2d1cb4=this[_0x17ff3b(0xd7)]['getConfig'](_0xa92606[_0x17ff3b(0x141)]);_0x2d1cb4&&_0x17caf4['registerPlugin'](_0xa92606[_0x17ff3b(0x1ad)],{'license':_0x2d1cb4['ls']});let _0x56c25a=(_0xf9d917=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x17ff3b(0xb0)))==null?void 0x0:_0xf9d917['workerURL'],_0x2ba1ab=!!_0x56c25a;_0x2ba1ab&&(this[_0x17ff3b(0x112)]=_0x56c25a instanceof Worker?_0x56c25a:null,_0x17caf4['registerPlugin'](_0x283f0d[_0x17ff3b(0x9f)],{'workerURL':_0x56c25a})),this[_0x17ff3b(0x17c)][_0x17ff3b(0x85)](([_0x2c374a,_0x24f3ee])=>{const _0xe1e083=_0x17ff3b;_0x17caf4[_0xe1e083(0x8c)](_0x2c374a,_0x24f3ee);}),_0x17caf4['registerPlugin'](_0xad21ce[_0x17ff3b(0xe0)],{'historyListServerUrl':(_0xb1b528=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x17ff3b(0xb0)))==null?void 0x0:_0xb1b528['historyListServerUrl'],'historyPanelComponentKey':(_0x45c19e=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)](_0x17ff3b(0xb0)))==null?void 0x0:_0x45c19e[_0x17ff3b(0x9a)],'historyPanelHidden':(_0x33b106=this[_0x17ff3b(0xd7)][_0x17ff3b(0x6b)]('edit-history-loader.config'))==null?void 0x0:_0x33b106[_0x17ff3b(0x16e)],'historyAIassistantEnabled':(_0x4989e5=this[_0x17ff3b(0xd7)]['getConfig'](_0x17ff3b(0xb0)))==null?void 0x0:_0x4989e5['historyAIassistantEnabled']}),_0x2117ff['invoke'](_0x1c30f3=>{const _0x3ba60d=_0x17ff3b;this[_0x3ba60d(0xb6)](_0x1c30f3,_0x465881);}),this[_0x17ff3b(0xb2)][_0x17ff3b(0xa2)](_0x17caf4);let _0x314ad0=_0x2117ff[_0x17ff3b(0x1b7)](_0xad21ce[_0x17ff3b(0x12d)]),_0x574981=this[_0x17ff3b(0x133)](_0x465881),_0x241808=()=>{const _0x5a6eef=_0x17ff3b;_0x3726b0?_0x314ad0[_0x5a6eef(0x7f)](_0x465881,_0x331dc7,_0x574981,_0x3726b0):_0x314ad0['triggerLoadVersions'](_0x465881,_0x331dc7,_0x574981);};if(this['_messageService'][_0x17ff3b(0xa6)]({'content':this[_0x17ff3b(0x149)]['t'](_0x17ff3b(0x1bb)),'type':_0x153d7c[_0x17ff3b(0x9c)][_0x17ff3b(0xc4)]}),_0x2ba1ab)try{_0x2117ff['get'](_0x283f0d['IRemoteInstanceService'])['whenReady']()[_0x17ff3b(0x1ca)](()=>{_0x241808();});}catch{_0x241808();}else _0x241808();}[_0x45b811(0xb6)](_0x49f821,_0x4bf2aa){const _0x5d8942=_0x45b811;let _0x5cc265=_0x49f821[_0x5d8942(0x1b7)](_0xad21ce['HistoryManagerService']);this['_disposableCollection']['add'](_0x5cc265[_0x5d8942(0xc5)][_0x5d8942(0x145)](_0x50ac7f=>{const _0x1b83cc=_0x5d8942;switch(_0x50ac7f){case _0xad21ce[_0x1b83cc(0x9d)][_0x1b83cc(0x90)]:this[_0x1b83cc(0x123)][_0x1b83cc(0x12f)](),this[_0x1b83cc(0x13d)]['close']();break;case _0xad21ce[_0x1b83cc(0x9d)][_0x1b83cc(0x188)]:this[_0x1b83cc(0x12a)]['executeCommand'](_0x5cf7c7['id']),this[_0x1b83cc(0x7c)]();break;case _0xad21ce[_0x1b83cc(0x9d)][_0x1b83cc(0x11f)]:this['unMountHistoryContent'](),this[_0x1b83cc(0x15b)]['show']({'content':this[_0x1b83cc(0x149)]['t'](_0x1b83cc(0x120)),'type':_0x153d7c[_0x1b83cc(0x9c)]['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x5d8942(0x15e)](_0x5cc265[_0x5d8942(0x1a3)]['subscribe'](async _0x15902e=>{const _0x30ffe1=_0x5d8942;_0x15902e&&this[_0x30ffe1(0x12a)][_0x30ffe1(0x18f)](_0x597de7[_0x30ffe1(0xac)]['id'],{'unitId':_0x4bf2aa,'revision':_0x15902e});}));}[_0x45b811(0x133)](_0x4a4fc4){const _0x3057cb=_0x45b811;let _0x2189f8=this[_0x3057cb(0x76)][_0x3057cb(0x13f)](_0x4a4fc4)[_0x3057cb(0x100)]()[_0x3057cb(0x140)](_0x192139=>_0x192139['getSheetId']()),_0x225cd7=new _0x136342[(_0x3057cb(0x170))](_0x4a4fc4)['id'],_0xe8a78a=_0x2189f8[_0x3057cb(0x140)](_0x321f9f=>new _0x136342[(_0x3057cb(0xc0))](_0x4a4fc4,_0x321f9f)['id']),_0x342dbb=_0x2189f8[_0x3057cb(0x140)](_0x3b1293=>this['_selectionProtectionRuleModel'][_0x3057cb(0x197)](_0x4a4fc4,_0x3b1293)[_0x3057cb(0x140)](_0x2f1718=>new _0x136342[(_0x3057cb(0x122))](_0x4a4fc4,_0x3b1293,_0x2f1718[_0x3057cb(0x83)])['id']))[_0x3057cb(0x111)](),_0x5ec140=new _0x136342[(_0x3057cb(0xb7))](_0x4a4fc4)['id'];return this[_0x3057cb(0x119)][_0x3057cb(0xf3)]([_0x225cd7,..._0xe8a78a,..._0x342dbb,_0x5ec140])[_0x3057cb(0x15f)](_0xd1dba5=>!!_0xd1dba5['value']);}};_0x595023=_0x58019a([_0x132994(0x0,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010[_0x45b811(0xf5)])),_0x132994(0x1,_0x412010[_0x45b811(0x1b9)]),_0x132994(0x2,_0x412010[_0x45b811(0x10d)]),_0x132994(0x3,_0x412010[_0x45b811(0x70)]),_0x132994(0x4,_0x284ec3['IMessageService']),_0x132994(0x5,_0x412010[_0x45b811(0x199)]),_0x132994(0x6,(0x0,_0x412010[_0x45b811(0x171)])(_0x136342['RangeProtectionRuleModel'])),_0x132994(0x7,(0x0,_0x412010['Inject'])(_0x284ec3['IDialogService'])),_0x132994(0x8,(0x0,_0x412010['Inject'])(_0x284ec3[_0x45b811(0x186)])),_0x132994(0x9,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010['ThemeService']))],_0x595023);let _0x549959={'id':_0x45b811(0x82),'type':_0x412010[_0x45b811(0xe9)]['OPERATION'],'handler':_0x3495eb=>{const _0x3c8039=_0x45b811;let _0x14984c=_0x3495eb['get'](_0x595023),{unitId:_0x2a1b9d}=(0x0,_0x136342[_0x3c8039(0x8f)])(_0x3495eb[_0x3c8039(0x1b7)](_0x412010[_0x3c8039(0x1b9)]))||{};return _0x2a1b9d?(_0x14984c['mountHistoryContent'](_0x2a1b9d),!0x0):!0x1;}},_0x5cf7c7={'id':_0x45b811(0x7b),'type':_0x412010['CommandType']['OPERATION'],'handler':()=>!0x0};var _0x42d231=_0x45b811(0xdf),_0x108dc4='0.21.1';function _0x1d3024({ref:_0x4eb592,..._0x26c5a2}){const _0x462880=_0x45b811;let {icon:_0x314e16,id:_0x326534,className:_0x56023e,extend:_0x5c8f29,..._0xd8fcaa}=_0x26c5a2,_0x1ea202=(_0x462880(0xcc)+_0x326534+'\x20'+(_0x56023e||''))[_0x462880(0x18e)](),_0x1ece99=(0x0,_0x30721f['useRef'])('_'+_0x1bdc55());return _0x26975a(_0x314e16,''+_0x326534,{'defIds':_0x314e16['defIds'],'idSuffix':_0x1ece99[_0x462880(0x176)]},{'ref':_0x4eb592,'className':_0x1ea202,..._0xd8fcaa},_0x5c8f29);}function _0x26975a(_0x18725b,_0x404dbd,_0x216a2e,_0x352e3f,_0x34670e){const _0x433138=_0x45b811;return(0x0,_0x30721f['createElement'])(_0x18725b[_0x433138(0x86)],{'key':_0x404dbd,..._0x218b40(_0x18725b,_0x216a2e,_0x34670e),..._0x352e3f},(_0x121d35(_0x18725b,_0x216a2e)[_0x433138(0x16c)]||[])[_0x433138(0x140)]((_0xd9f6c4,_0x7df2b)=>_0x26975a(_0xd9f6c4,_0x404dbd+'-'+_0x18725b[_0x433138(0x86)]+'-'+_0x7df2b,_0x216a2e,void 0x0,_0x34670e)));}function _0x218b40(_0x749678,_0x59d5db,_0x3c0f78){const _0x5867e0=_0x45b811;let _0x364d7b={..._0x749678[_0x5867e0(0x1af)]};_0x3c0f78!=null&&_0x3c0f78[_0x5867e0(0xf4)]&&_0x364d7b[_0x5867e0(0x80)]===_0x5867e0(0xf4)&&(_0x364d7b[_0x5867e0(0x80)]=_0x3c0f78['colorChannel1']),_0x749678[_0x5867e0(0x86)]===_0x5867e0(0x17a)&&_0x364d7b['id']&&(_0x364d7b['id']+=_0x59d5db[_0x5867e0(0x1b4)]),Object[_0x5867e0(0x181)](_0x364d7b)['forEach'](([_0x3bdc57,_0x3c5bdb])=>{const _0xfe109c=_0x5867e0;_0x3bdc57===_0xfe109c(0x17a)&&typeof _0x3c5bdb==_0xfe109c(0x152)&&(_0x364d7b[_0x3bdc57]=_0x3c5bdb['replace'](/url\(#(.*)\)/,'url(#$1'+_0x59d5db[_0xfe109c(0x1b4)]+')'));});let {defIds:_0x10a978}=_0x59d5db;return!_0x10a978||_0x10a978[_0x5867e0(0xf0)]===0x0?_0x364d7b:(_0x749678[_0x5867e0(0x86)]===_0x5867e0(0x187)&&_0x364d7b['xlink:href']&&(_0x364d7b[_0x5867e0(0x1c2)]+=_0x59d5db[_0x5867e0(0x1b4)]),Object[_0x5867e0(0x181)](_0x364d7b)[_0x5867e0(0x85)](([_0x53c544,_0x541ec0])=>{const _0x178b66=_0x5867e0;typeof _0x541ec0=='string'&&(_0x364d7b[_0x53c544]=_0x541ec0[_0x178b66(0x7a)](/url\(#(.*)\)/,'url(#$1'+_0x59d5db['idSuffix']+')'));}),_0x364d7b);}function _0x121d35(_0x3adf68,_0x5c8103){const _0x3c8c95=_0x45b811;var _0x583d07;let {defIds:_0x1b6b33}=_0x5c8103;return!_0x1b6b33||_0x1b6b33[_0x3c8c95(0xf0)]===0x0?_0x3adf68:_0x3adf68[_0x3c8c95(0x86)]===_0x3c8c95(0x162)&&(_0x583d07=_0x3adf68[_0x3c8c95(0x16c)])!=null&&_0x583d07['length']?{..._0x3adf68,'children':_0x3adf68[_0x3c8c95(0x16c)][_0x3c8c95(0x140)](_0x31133b=>typeof _0x31133b['attrs']['id']==_0x3c8c95(0x152)&&_0x1b6b33&&_0x1b6b33['includes'](_0x31133b['attrs']['id'])?{..._0x31133b,'attrs':{..._0x31133b[_0x3c8c95(0x1af)],'id':_0x31133b[_0x3c8c95(0x1af)]['id']+_0x5c8103[_0x3c8c95(0x1b4)]}}:_0x31133b)}:_0x3adf68;}function _0x1bdc55(){const _0x4946ae=_0x45b811;return Math[_0x4946ae(0x177)]()[_0x4946ae(0x95)](0x24)['substring'](0x2,0x8);}_0x1d3024[_0x45b811(0xfe)]=_0x45b811(0xa7);let _0x10cbec={'tag':'svg','attrs':{'xmlns':_0x45b811(0x167),'fill':'none','viewBox':_0x45b811(0x103),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x45b811(0x1ab),'clipPath':_0x45b811(0x1ce)},'children':[{'tag':_0x45b811(0x1a7),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':'path','attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':_0x45b811(0x162),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x45b811(0x9e)},'children':[{'tag':_0x45b811(0x1a7),'attrs':{'fill':_0x45b811(0xa5),'d':_0x45b811(0x12b)}}]}]}],'defIds':[_0x45b811(0x9e)]},_0x1af6a6=(0x0,_0x30721f[_0x45b811(0xce)])(function(_0xda8154,_0x57c07f){const _0x3a3209=_0x45b811;return(0x0,_0x30721f[_0x3a3209(0xdd)])(_0x1d3024,Object[_0x3a3209(0x6a)]({},_0xda8154,{'id':_0x3a3209(0x189),'ref':_0x57c07f,'icon':_0x10cbec}));});_0x1af6a6[_0x45b811(0xfe)]=_0x45b811(0x1bc);function _0x3348d5(_0x49fbe3){const _0x33b0ae=_0x45b811;return{'id':_0x549959['id'],'type':_0x284ec3[_0x33b0ae(0x13a)][_0x33b0ae(0xcb)],'icon':_0x33b0ae(0x1bc),'tooltip':_0x33b0ae(0x178),'hidden$':(0x0,_0x284ec3[_0x33b0ae(0x19f)])(_0x49fbe3,_0x412010[_0x33b0ae(0xe7)]['UNIVER_SHEET']),'disabled$':(0x0,_0x1f610d[_0x33b0ae(0x10f)])(_0x49fbe3,{'workbookTypes':[_0x136342[_0x33b0ae(0xed)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x840e2f={[_0x284ec3[_0x45b811(0xeb)][_0x45b811(0x84)]]:{[_0x549959['id']]:{'order':0.2,'menuItemFactory':_0x3348d5}}},_0x4f2ef7=class extends _0x412010[_0x45b811(0x91)]{constructor(_0x374c08,_0x178590,_0x5262e1,_0x30eaf6,_0x110707,_0xb009f0,_0x298029,_0x59c512,_0x2f4d1c,_0x4be5e1,_0x421603){const _0x156e65=_0x45b811;super(),this['_commandService']=_0x374c08,this[_0x156e65(0x156)]=_0x178590,this[_0x156e65(0xb8)]=_0x5262e1,this['_historyManagerService']=_0x30eaf6,this[_0x156e65(0x149)]=_0x110707,this[_0x156e65(0x15b)]=_0xb009f0,this[_0x156e65(0x142)]=_0x298029,this[_0x156e65(0x1b0)]=_0x59c512,this[_0x156e65(0x125)]=_0x2f4d1c,this['_univerInstanceService']=_0x4be5e1,this[_0x156e65(0xc3)]=_0x421603,_0x57c8f2(this,_0x156e65(0x72),null),this[_0x156e65(0xf6)]();}['_init'](){const _0x36e203=_0x45b811;[_0x549959,_0x5cf7c7][_0x36e203(0x85)](_0x46d235=>this[_0x36e203(0x1a2)]((0x0,_0x412010['toDisposable'])(this[_0x36e203(0x12a)][_0x36e203(0x159)](_0x46d235)))),this[_0x36e203(0x1a2)](this['_componentManager']['register'](_0x36e203(0x1bc),_0x1af6a6)),this[_0x36e203(0x156)][_0x36e203(0x193)](_0x840e2f),this['disposeWithMe'](this['_commandService'][_0x36e203(0x11a)](async(_0x1922d6,_0x8b3d45)=>{const _0x2085d2=_0x36e203;if(_0x1922d6['id']===_0x597de7[_0x2085d2(0xac)]['id']){let {unitId:_0x45842d}=_0x1922d6[_0x2085d2(0x1c6)];this[_0x2085d2(0x15b)][_0x2085d2(0xa6)]({'content':this[_0x2085d2(0x149)]['t'](_0x2085d2(0x155)),'type':_0x153d7c['MessageType'][_0x2085d2(0xc4)],'duration':0x1388});let _0x4f070a=this[_0x2085d2(0x142)][_0x2085d2(0x1bd)](_0x45842d);_0x8b3d45!=null&&_0x8b3d45[_0x2085d2(0x185)]?this[_0x2085d2(0x1ae)](_0x4f070a,async()=>(setTimeout(()=>window['location'][_0x2085d2(0xdb)]()),!0x0),!0x0):this[_0x2085d2(0x1ae)](_0x4f070a,async()=>{const _0x5d6cf3=_0x2085d2;let _0x4b4971=this['_univerInstanceService'][_0x5d6cf3(0x14b)](_0x412010[_0x5d6cf3(0xe7)]['UNIVER_SHEET']),_0x1a6d76=_0x4b4971==null?void 0x0:_0x4b4971[_0x5d6cf3(0x11d)]();if(!_0x1a6d76)return!0x1;this[_0x5d6cf3(0x76)]['disposeUnit'](_0x45842d);let _0x289ae6=await this['_dataLoaderService'][_0x5d6cf3(0x12e)](_0x45842d,_0x412010[_0x5d6cf3(0xe7)][_0x5d6cf3(0xef)]);return _0x289ae6&&_0x289ae6 instanceof _0x412010[_0x5d6cf3(0xbe)]?(await this[_0x5d6cf3(0xee)](_0x289ae6,_0x1a6d76[_0x5d6cf3(0x134)]()),!0x0):!0x1;});}}));}[_0x45b811(0x1ae)](_0x1a177b,_0x1de96c,_0x371cde=!0x1){const _0xfbec09=_0x45b811;let _0x57a3c2=(0x0,_0x121a50[_0xfbec09(0xe3)])([_0x1a177b[_0xfbec09(0xe5)][_0xfbec09(0x19c)],_0x1a177b[_0xfbec09(0x154)]])[_0xfbec09(0x145)](async([_0x1eb53f,_0x4f89dc])=>{const _0x51b067=_0xfbec09;if(_0x1eb53f[_0x51b067(0x143)]===_0x597de7[_0x51b067(0x1a1)][_0x51b067(0x1aa)]&&(_0x4f89dc==null?void 0x0:_0x4f89dc[_0x51b067(0x1a6)])===_0x110681[_0x51b067(0xbd)][_0x51b067(0x1b8)]&&_0x1eb53f[_0x51b067(0xd4)]['mutations']['some'](_0x10ef4d=>_0x10ef4d['id']===_0x597de7[_0x51b067(0xac)]['id'])&&await _0x1de96c()){var _0x1db9fc;this[_0x51b067(0x19b)][_0x51b067(0x7c)](),_0x57a3c2[_0x51b067(0xe8)](),this['_revertErrorTimer']&&clearTimeout(this[_0x51b067(0x72)]),await((_0x1db9fc=this['_localCacheService'])==null?void 0x0:_0x1db9fc[_0x51b067(0xbf)]()),this['_messageService'][_0x51b067(0x198)]();}});_0x371cde&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x38da70=_0xfbec09;_0x57a3c2[_0x38da70(0xe8)](),this[_0x38da70(0x15b)][_0x38da70(0xa6)]({'content':this[_0x38da70(0x149)]['t'](_0x38da70(0xfb)),'type':_0x153d7c['MessageType'][_0x38da70(0x11f)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x3189f5,_0x5b347c){const _0x4405de=_0x45b811;await this[_0x4405de(0x15d)](_0x3189f5,_0x5b347c),_0x3189f5[_0x4405de(0xd1)][_0x4405de(0x17f)]((0x0,_0x121a50[_0x4405de(0xbb)])(this[_0x4405de(0x9b)]))[_0x4405de(0x145)](_0x478e88=>{const _0x558344=_0x4405de;_0x478e88&&this[_0x558344(0xc2)](_0x478e88);}),this['_urlService'][_0x4405de(0xda)][_0x4405de(0x17f)]((0x0,_0x121a50[_0x4405de(0xbb)])(this['dispose$']))[_0x4405de(0x145)](()=>this['_updateSubUnitFromURLParams'](_0x3189f5,_0x5b347c));}[_0x45b811(0xc2)](_0x3ea7b7,_0x1b0ab2=!0x1){const _0x4869e1=_0x45b811;let _0x1c2baa=this[_0x4869e1(0xc3)][_0x4869e1(0x93)](_0x4869e1(0x1a8));_0x3ea7b7['getSheetId']()!==_0x1c2baa&&this[_0x4869e1(0xc3)][_0x4869e1(0x10a)]('subunit',_0x3ea7b7[_0x4869e1(0x134)](),_0x1b0ab2);}async[_0x45b811(0x15d)](_0x49b585,_0x569bb9){const _0x324071=_0x45b811;var _0x583869;if(!_0x569bb9||!_0x49b585[_0x324071(0x1ba)](_0x569bb9)){let _0x5d8f1c=_0x49b585[_0x324071(0x130)]()[0x0],_0x2d5f02=_0x49b585[_0x324071(0x1ba)](_0x5d8f1c);if(!_0x2d5f02)return;this[_0x324071(0xc2)](_0x2d5f02,!0x0),await this['_commandService'][_0x324071(0x18f)](_0x136342[_0x324071(0x87)]['id'],{'unitId':_0x49b585[_0x324071(0x13e)](),'subUnitId':_0x5d8f1c});return;}((_0x583869=_0x49b585['getActiveSheet']())==null?void 0x0:_0x583869[_0x324071(0x134)]())!==_0x569bb9&&await this[_0x324071(0x12a)][_0x324071(0x18f)](_0x136342[_0x324071(0x87)]['id'],{'unitId':_0x49b585[_0x324071(0x13e)](),'subUnitId':_0x569bb9});}};_0x4f2ef7=_0x58019a([_0x132994(0x0,_0x412010[_0x45b811(0x70)]),_0x132994(0x1,_0x284ec3[_0x45b811(0xf8)]),_0x132994(0x2,(0x0,_0x412010['Inject'])(_0x284ec3['ComponentManager'])),_0x132994(0x3,(0x0,_0x412010[_0x45b811(0x171)])(_0x595023)),_0x132994(0x4,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010[_0x45b811(0xf5)])),_0x132994(0x5,_0x284ec3[_0x45b811(0x172)]),_0x132994(0x6,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681[_0x45b811(0xe6)])),_0x132994(0x7,_0x110681['ILocalCacheService']),_0x132994(0x8,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681[_0x45b811(0x77)])),_0x132994(0x9,_0x412010['IUniverInstanceService']),_0x132994(0xa,_0x2fda48[_0x45b811(0x182)])],_0x4f2ef7);let _0xacbcd3=_0x45b811(0xc8),_0x2f2a1f=class extends _0x412010[_0x45b811(0x1bf)]{constructor(_0xc6d8fd,_0x54d7fd,_0x394c3e,_0x420506,_0x1894b5,_0x3a0d18,_0x45042a,_0x213d63,_0x17f7af,_0x1b2cbd){const _0x539cf6=_0x45b811;super(),this[_0x539cf6(0x149)]=_0xc6d8fd,this[_0x539cf6(0x76)]=_0x54d7fd,this['_configService']=_0x394c3e,this[_0x539cf6(0x12a)]=_0x420506,this[_0x539cf6(0x15b)]=_0x1894b5,this['_permissionService']=_0x3a0d18,this[_0x539cf6(0x101)]=_0x45042a,this[_0x539cf6(0x123)]=_0x213d63,this['_sidebarService']=_0x17f7af,this['_themeService']=_0x1b2cbd,_0x57c8f2(this,_0x539cf6(0xb2),new _0x121a50[(_0x539cf6(0x166))](null)),_0x57c8f2(this,_0x539cf6(0x1c0),this[_0x539cf6(0xb2)][_0x539cf6(0x109)]()),_0x57c8f2(this,_0x539cf6(0x6c),new _0x412010[(_0x539cf6(0x1c1))]()),_0x57c8f2(this,_0x539cf6(0x17c),new Map()),_0x57c8f2(this,_0x539cf6(0x112),null),this[_0x539cf6(0xf6)]();}get[_0x45b811(0xae)](){const _0x5c8516=_0x45b811;return this[_0x5c8516(0xb2)][_0x5c8516(0xc7)];}['_init'](){const _0x4a1a4a=_0x45b811;this[_0x4a1a4a(0x147)](),this[_0x4a1a4a(0x117)]();}[_0x45b811(0x147)](){const _0x77953f=_0x45b811;var _0x45f47c;let _0x5930ff=(_0x45f47c=this['_configService'][_0x77953f(0x6b)](_0x77953f(0x107)))==null?'univer-container':_0x45f47c,_0x2e71a8=document[_0x77953f(0xca)](_0x5930ff);if(!_0x2e71a8)return;let _0x54f400=document['createElement']('div');_0x54f400['id']=_0xacbcd3,_0x54f400[_0x77953f(0xcf)][_0x77953f(0x1a9)]='history-container',_0x54f400[_0x77953f(0x179)][_0x77953f(0x158)]=_0x77953f(0x183),_0x54f400[_0x77953f(0x179)]['top']='0',_0x54f400['style'][_0x77953f(0x110)]='0',_0x54f400[_0x77953f(0x179)][_0x77953f(0x15a)]=_0x77953f(0x116),_0x54f400[_0x77953f(0x179)][_0x77953f(0x75)]=_0x77953f(0x116),_0x54f400[_0x77953f(0x179)][_0x77953f(0x194)]='49',_0x54f400[_0x77953f(0x179)][_0x77953f(0x180)]=_0x77953f(0x96),_0x2e71a8[_0x77953f(0x174)](_0x54f400);}[_0x45b811(0x117)](){const _0x8c43c=_0x45b811;[[_0x54884c[_0x8c43c(0xd0)]],[_0x284ec3[_0x8c43c(0x15c)],{'container':_0xacbcd3,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x284ec3[_0x8c43c(0xc1)],null]]}],[_0x3b1006[_0x8c43c(0xb9)]],[_0x58aeae[_0x8c43c(0x191)],{'override':[[_0x58aeae[_0x8c43c(0x104)],null]]}],[_0x3a8973[_0x8c43c(0x10e)],{'hasScroll':!0x1}],[_0x575f91['UniverDocsUIPlugin']],[_0x5790d8[_0x8c43c(0x19e)]],[_0x136342[_0x8c43c(0x184)],{'notExecuteFormula':!0x0}],[_0x1f610d['UniverSheetsMobileUIPlugin']],[_0xa1db9b['UniverSheetsFormulaPlugin']],[_0x2596de['UniverSheetsFormulaUIPlugin']],[_0x597de7[_0x8c43c(0x168)]],[_0x8d1937[_0x8c43c(0x1cc)]],[_0x137584['UniverSheetsConditionalFormattingPlugin']],[_0x2f751c['UniverSheetsHyperLinkPlugin']],[_0x9f6010['UniverSheetsHyperLinkUIPlugin']],[_0x4f122e['UniverDataValidationPlugin']],[_0x3d8376[_0x8c43c(0x17b)]],[_0x24998c[_0x8c43c(0xaa)]],[_0x2a0b4b['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x1959e3['UniverDrawingUIPlugin']],[_0x5b45f0[_0x8c43c(0x150)]],[_0x27a0cb[_0x8c43c(0x136)]],[_0x342fba[_0x8c43c(0x169)]],[_0x394d70[_0x8c43c(0x71)]],[_0x13a5b7[_0x8c43c(0x151)]],[_0x14cbfe[_0x8c43c(0x98)]],[_0x4dccbb[_0x8c43c(0x175)]],[_0x283344['UniverSheetsShapeUIPlugin']],[_0x574451[_0x8c43c(0x106)],{'notExecuteFormula':!0x0}],[_0x317470[_0x8c43c(0x153)]]][_0x8c43c(0x85)](([_0xec195a,_0x14ae94])=>this['registerPlugin'](_0xec195a,_0x14ae94));}['dispose'](){const _0x331835=_0x45b811;super[_0x331835(0xde)](),this[_0x331835(0x7c)](),this[_0x331835(0x17c)][_0x331835(0x8d)]();}[_0x45b811(0x8c)](_0x3365f5,_0x2810a5,_0x13b7d3){const _0xa10c59=_0x45b811;if(this['_pluginMap'][_0xa10c59(0x17d)](_0x3365f5[_0xa10c59(0xd8)])&&!_0x13b7d3)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x3365f5[_0xa10c59(0xd8)]+'\x20has\x20been\x20registered.');this[_0xa10c59(0x17c)][_0xa10c59(0x18c)](_0x3365f5[_0xa10c59(0xd8)],[_0x3365f5,_0x2810a5]);}[_0x45b811(0xf1)](){const _0x6c437f=_0x45b811;return Array['from'](this[_0x6c437f(0x17c)][_0x6c437f(0xaf)]());}[_0x45b811(0x160)](_0x1b6ba2,_0x34cae0){const _0x34d096=_0x45b811;let _0x15c0a3=document['getElementById'](_0xacbcd3);_0x15c0a3&&(_0x15c0a3['style'][_0x34d096(0x180)]=_0x34d096(0x69),this[_0x34d096(0xfd)](_0x1b6ba2,_0xacbcd3,_0x34cae0));}[_0x45b811(0x7c)](){const _0x4f61aa=_0x45b811;var _0x5605a4;this[_0x4f61aa(0x6c)][_0x4f61aa(0xde)](),(_0x5605a4=this[_0x4f61aa(0xae)])==null||_0x5605a4[_0x4f61aa(0xde)](),this[_0x4f61aa(0xb2)][_0x4f61aa(0xa2)](null);let _0x44f595=document['getElementById'](_0xacbcd3);_0x44f595&&(_0x44f595[_0x4f61aa(0x179)]['display']=_0x4f61aa(0x96),this['_internalWebWorker']&&(this[_0x4f61aa(0x112)][_0x4f61aa(0x6d)](),this[_0x4f61aa(0x112)]=null));}[_0x45b811(0xfd)](_0x402aae,_0x5c0ac6,_0x37d674){const _0x49b9bd=_0x45b811;var _0x4c02c6,_0x236a61,_0x21c3ac,_0x2d49f5;if(this[_0x49b9bd(0xae)])return;let _0x47880d=new _0x412010[(_0x49b9bd(0x118))]({'locales':{[this[_0x49b9bd(0x149)][_0x49b9bd(0x146)]()]:this[_0x49b9bd(0x149)][_0x49b9bd(0xd9)]()},'override':[[_0x412010[_0x49b9bd(0x173)],{'useClass':_0x110681['AuthzIoHttpService']}]]}),_0x9ba10e=_0x47880d[_0x49b9bd(0x1be)]();this['disposeWithMe'](this[_0x49b9bd(0x102)][_0x49b9bd(0x138)][_0x49b9bd(0x145)](_0xd9ba60=>{const _0x40365b=_0x49b9bd;_0x9ba10e[_0x40365b(0x1b7)](_0x412010[_0x40365b(0x14c)])['setDarkMode'](_0xd9ba60);})),this[_0x49b9bd(0x1a2)](this[_0x49b9bd(0x102)][_0x49b9bd(0xd2)][_0x49b9bd(0x145)](_0x4f07a9=>{const _0x388346=_0x49b9bd;_0x9ba10e[_0x388346(0x1b7)](_0x412010[_0x388346(0x14c)])[_0x388346(0xf2)](_0x4f07a9);})),_0x9ba10e[_0x49b9bd(0x1b7)](_0x412010[_0x49b9bd(0xf5)])[_0x49b9bd(0x12c)](this[_0x49b9bd(0x149)][_0x49b9bd(0x146)]()),_0x9ba10e[_0x49b9bd(0x1b7)](_0x412010[_0x49b9bd(0x10d)])['setConfig'](_0x110681[_0x49b9bd(0xe2)],this[_0x49b9bd(0xd7)][_0x49b9bd(0x6b)](_0x110681['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x29d2e7=this[_0x49b9bd(0xd7)]['getConfig'](_0xa92606[_0x49b9bd(0x141)]);_0x29d2e7&&_0x47880d[_0x49b9bd(0x8c)](_0xa92606[_0x49b9bd(0x1ad)],{'license':_0x29d2e7['ls']});let _0x469ccc=(_0x4c02c6=this[_0x49b9bd(0xd7)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x4c02c6['workerURL'],_0x9f4d64=!!_0x469ccc;_0x9f4d64&&(this['_internalWebWorker']=_0x469ccc instanceof Worker?_0x469ccc:null,_0x47880d['registerPlugin'](_0x283f0d[_0x49b9bd(0x9f)],{'workerURL':_0x469ccc})),this[_0x49b9bd(0x17c)][_0x49b9bd(0x85)](([_0x5ec3dc,_0x2172dd])=>{const _0x30e6c3=_0x49b9bd;_0x47880d[_0x30e6c3(0x8c)](_0x5ec3dc,_0x2172dd);}),_0x47880d[_0x49b9bd(0x8c)](_0xad21ce['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x236a61=this['_configService'][_0x49b9bd(0x6b)](_0x49b9bd(0xb0)))==null?void 0x0:_0x236a61[_0x49b9bd(0x19a)],'historyPanelComponentKey':(_0x21c3ac=this[_0x49b9bd(0xd7)][_0x49b9bd(0x6b)]('edit-history-loader.config'))==null?void 0x0:_0x21c3ac[_0x49b9bd(0x9a)],'historyPanelHidden':(_0x2d49f5=this['_configService']['getConfig'](_0x49b9bd(0xb0)))==null?void 0x0:_0x2d49f5[_0x49b9bd(0x16e)]}),_0x9ba10e[_0x49b9bd(0x68)](_0x192f16=>{this['_initListener'](_0x192f16,_0x402aae);}),this['_historyUniver$']['next'](_0x47880d);let _0x247624=_0x9ba10e['get'](_0xad21ce[_0x49b9bd(0x12d)]),_0x51ea76=this['_checkCanRevert'](_0x402aae),_0x1911c7=()=>{const _0x413e9c=_0x49b9bd;_0x37d674?_0x247624[_0x413e9c(0x7f)](_0x402aae,_0x5c0ac6,_0x51ea76,_0x37d674):_0x247624[_0x413e9c(0x81)](_0x402aae,_0x5c0ac6,_0x51ea76);};if(this[_0x49b9bd(0x15b)][_0x49b9bd(0xa6)]({'content':this[_0x49b9bd(0x149)]['t'](_0x49b9bd(0x1bb)),'type':_0x153d7c[_0x49b9bd(0x9c)][_0x49b9bd(0xc4)]}),_0x9f4d64)try{_0x9ba10e[_0x49b9bd(0x1b7)](_0x283f0d['IRemoteInstanceService'])[_0x49b9bd(0x14e)]()[_0x49b9bd(0x1ca)](()=>{_0x1911c7();});}catch{_0x1911c7();}else _0x1911c7();}[_0x45b811(0xb6)](_0x333e06,_0x5da4ab){const _0x2c9a04=_0x45b811;let _0x46577f=_0x333e06[_0x2c9a04(0x1b7)](_0xad21ce[_0x2c9a04(0x12d)]);this[_0x2c9a04(0x6c)]['add'](_0x46577f[_0x2c9a04(0xc5)]['subscribe'](_0x522492=>{const _0x28e415=_0x2c9a04;switch(_0x522492){case _0xad21ce[_0x28e415(0x9d)]['Entered']:this['_dialogService'][_0x28e415(0x12f)](),this[_0x28e415(0x13d)][_0x28e415(0x113)]();break;case _0xad21ce[_0x28e415(0x9d)][_0x28e415(0x188)]:this[_0x28e415(0x12a)][_0x28e415(0x18f)](_0x5cf7c7['id']),this['unMountHistoryContent']();break;case _0xad21ce['HistoryModeStatus'][_0x28e415(0x11f)]:this[_0x28e415(0x7c)](),this['_messageService'][_0x28e415(0xa6)]({'content':this[_0x28e415(0x149)]['t'](_0x28e415(0x120)),'type':_0x153d7c[_0x28e415(0x9c)][_0x28e415(0x11f)],'duration':0xbb8});break;default:break;}})),this[_0x2c9a04(0x6c)][_0x2c9a04(0x15e)](_0x46577f[_0x2c9a04(0x1a3)][_0x2c9a04(0x145)](async _0xc6542=>{const _0x4e0b8f=_0x2c9a04;_0xc6542&&this[_0x4e0b8f(0x12a)]['executeCommand'](_0x597de7[_0x4e0b8f(0xac)]['id'],{'unitId':_0x5da4ab,'revision':_0xc6542});}));}[_0x45b811(0x133)](_0x191837){const _0x1680ed=_0x45b811;let _0x35ba73=this[_0x1680ed(0x76)][_0x1680ed(0x13f)](_0x191837)['getSheets']()[_0x1680ed(0x140)](_0x10a0b3=>_0x10a0b3[_0x1680ed(0x134)]()),_0x2db0a8=new _0x136342[(_0x1680ed(0x170))](_0x191837)['id'],_0x3c512b=_0x35ba73[_0x1680ed(0x140)](_0x2d883b=>new _0x136342[(_0x1680ed(0xc0))](_0x191837,_0x2d883b)['id']),_0x244a67=_0x35ba73[_0x1680ed(0x140)](_0x49ed5b=>this[_0x1680ed(0x101)][_0x1680ed(0x197)](_0x191837,_0x49ed5b)[_0x1680ed(0x140)](_0x2d3f51=>new _0x136342[(_0x1680ed(0x122))](_0x191837,_0x49ed5b,_0x2d3f51['permissionId'])['id']))[_0x1680ed(0x111)](),_0x4f35f6=new _0x136342[(_0x1680ed(0xb7))](_0x191837)['id'];return this['_permissionService'][_0x1680ed(0xf3)]([_0x2db0a8,..._0x3c512b,..._0x244a67,_0x4f35f6])[_0x1680ed(0x15f)](_0xdb8ecc=>!!_0xdb8ecc[_0x1680ed(0xc7)]);}};_0x2f2a1f=_0x58019a([_0x132994(0x0,(0x0,_0x412010['Inject'])(_0x412010[_0x45b811(0xf5)])),_0x132994(0x1,_0x412010[_0x45b811(0x1b9)]),_0x132994(0x2,_0x412010[_0x45b811(0x10d)]),_0x132994(0x3,_0x412010['ICommandService']),_0x132994(0x4,_0x284ec3[_0x45b811(0x172)]),_0x132994(0x5,_0x412010['IPermissionService']),_0x132994(0x6,(0x0,_0x412010['Inject'])(_0x136342[_0x45b811(0xc9)])),_0x132994(0x7,(0x0,_0x412010[_0x45b811(0x171)])(_0x284ec3['IDialogService'])),_0x132994(0x8,(0x0,_0x412010[_0x45b811(0x171)])(_0x284ec3[_0x45b811(0x186)])),_0x132994(0x9,(0x0,_0x412010['Inject'])(_0x412010[_0x45b811(0x14c)]))],_0x2f2a1f);let _0x39d9f0=class extends _0x412010['Plugin']{constructor(_0x19017b=_0x5df63e,_0x30cd89,_0x40757f){const _0x4152ab=_0x45b811;super(),this['_config']=_0x19017b,this[_0x4152ab(0x16d)]=_0x30cd89,this[_0x4152ab(0xd7)]=_0x40757f;let {menu:_0x376857,..._0x558cef}=(0x0,_0x412010[_0x4152ab(0x14d)])({},_0x5df63e,this[_0x4152ab(0x13c)]);_0x376857&&this[_0x4152ab(0xd7)][_0x4152ab(0x144)]('menu',_0x376857,{'merge':!0x0}),this['_configService'][_0x4152ab(0x144)](_0x149075,_0x558cef),this[_0x4152ab(0x13c)][_0x4152ab(0xab)]&&this[_0x4152ab(0xd7)]['setConfig'](_0x4152ab(0x107),this[_0x4152ab(0x13c)]['univerContainerId']);}[_0x45b811(0xff)](){const _0x467d7e=_0x45b811;[[_0x595023,{'useClass':_0x2f2a1f}],[_0x4f2ef7]][_0x467d7e(0x85)](_0x11b695=>this[_0x467d7e(0x16d)][_0x467d7e(0x15e)](_0x11b695));}[_0x45b811(0x16a)](){const _0x585fd1=_0x45b811;this[_0x585fd1(0x16d)][_0x585fd1(0x1b7)](_0x4f2ef7);}};_0x57c8f2(_0x39d9f0,'type',_0x412010['UniverInstanceType'][_0x45b811(0x89)]),_0x57c8f2(_0x39d9f0,_0x45b811(0xd8),_0x45b811(0x137)),_0x57c8f2(_0x39d9f0,_0x45b811(0x114),_0x42d231),_0x57c8f2(_0x39d9f0,'version',_0x108dc4),_0x39d9f0=_0x58019a([(0x0,_0x412010['DependentOn'])(_0xa92606[_0x45b811(0x1ad)]),_0x132994(0x1,(0x0,_0x412010[_0x45b811(0x171)])(_0x412010[_0x45b811(0x192)])),_0x132994(0x2,_0x412010[_0x45b811(0x10d)])],_0x39d9f0);let _0x3b00ac=class extends _0x412010[_0x45b811(0x91)]{constructor(_0x18e26e,_0x183ce7,_0x3eee6f,_0x1dbacf,_0x4bc9ff,_0x115127,_0x37d972,_0x40daf7,_0x52bd6d,_0xd21d7b,_0x39ce7a){const _0x5112e5=_0x45b811;super(),this[_0x5112e5(0x12a)]=_0x18e26e,this[_0x5112e5(0x156)]=_0x183ce7,this[_0x5112e5(0xb8)]=_0x3eee6f,this['_historyManagerService']=_0x1dbacf,this[_0x5112e5(0x149)]=_0x4bc9ff,this['_messageService']=_0x115127,this['_collaborationController']=_0x37d972,this[_0x5112e5(0x1b0)]=_0x40daf7,this[_0x5112e5(0x125)]=_0x52bd6d,this[_0x5112e5(0x76)]=_0xd21d7b,this['_urlService']=_0x39ce7a,_0x57c8f2(this,_0x5112e5(0x72),null),this[_0x5112e5(0xf6)]();}['_init'](){const _0x552eff=_0x45b811;[_0x549959,_0x5cf7c7][_0x552eff(0x85)](_0x76637=>this[_0x552eff(0x1a2)]((0x0,_0x412010[_0x552eff(0x74)])(this[_0x552eff(0x12a)][_0x552eff(0x159)](_0x76637)))),this[_0x552eff(0x1a2)](this[_0x552eff(0xb8)][_0x552eff(0x78)](_0x552eff(0x1bc),_0x1af6a6)),this[_0x552eff(0x156)][_0x552eff(0x193)](_0x840e2f),this[_0x552eff(0x1a2)](this[_0x552eff(0x12a)]['onCommandExecuted'](async(_0x6ed01d,_0x40d04a)=>{const _0x1524ab=_0x552eff;if(_0x6ed01d['id']===_0x597de7[_0x1524ab(0xac)]['id']){let {unitId:_0x201e00}=_0x6ed01d[_0x1524ab(0x1c6)];this[_0x1524ab(0x15b)][_0x1524ab(0xa6)]({'content':this[_0x1524ab(0x149)]['t'](_0x1524ab(0x155)),'type':_0x153d7c[_0x1524ab(0x9c)][_0x1524ab(0xc4)],'duration':0x1388});let _0x544c60=this[_0x1524ab(0x142)]['getCollabEntity'](_0x201e00);_0x40d04a!=null&&_0x40d04a[_0x1524ab(0x185)]?this[_0x1524ab(0x1ae)](_0x544c60,async()=>(setTimeout(()=>window[_0x1524ab(0x139)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x544c60,async()=>{const _0x31d33a=_0x1524ab;let _0x13b19f=this[_0x31d33a(0x76)][_0x31d33a(0x14b)](_0x412010[_0x31d33a(0xe7)]['UNIVER_SHEET']),_0x400c60=_0x13b19f==null?void 0x0:_0x13b19f[_0x31d33a(0x11d)]();if(!_0x400c60)return!0x1;this['_univerInstanceService'][_0x31d33a(0xb3)](_0x201e00);let _0x1e9335=await this['_dataLoaderService'][_0x31d33a(0x12e)](_0x201e00,_0x412010[_0x31d33a(0xe7)][_0x31d33a(0xef)]);return _0x1e9335&&_0x1e9335 instanceof _0x412010[_0x31d33a(0xbe)]?(await this[_0x31d33a(0xee)](_0x1e9335,_0x400c60[_0x31d33a(0x134)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x3437e9,_0x5e57ef,_0x50f483=!0x1){const _0x4aab07=_0x45b811;let _0x5b9701=(0x0,_0x121a50['combineLatest'])([_0x3437e9[_0x4aab07(0xe5)]['event$'],_0x3437e9['state$']])[_0x4aab07(0x145)](async([_0x3e8d5f,_0x34d741])=>{const _0x4be059=_0x4aab07;if(_0x3e8d5f[_0x4be059(0x143)]===_0x597de7[_0x4be059(0x1a1)]['CHANGESET_ACK']&&(_0x34d741==null?void 0x0:_0x34d741['status'])===_0x110681[_0x4be059(0xbd)][_0x4be059(0x1b8)]&&_0x3e8d5f['data'][_0x4be059(0xf7)][_0x4be059(0x131)](_0x3fd30b=>_0x3fd30b['id']===_0x597de7[_0x4be059(0xac)]['id'])&&await _0x5e57ef()){var _0xb344d;this[_0x4be059(0x19b)][_0x4be059(0x7c)](),_0x5b9701['unsubscribe'](),this[_0x4be059(0x72)]&&clearTimeout(this[_0x4be059(0x72)]),await((_0xb344d=this[_0x4be059(0x1b0)])==null?void 0x0:_0xb344d[_0x4be059(0xbf)]());}});_0x50f483&&(this[_0x4aab07(0x72)]=setTimeout(()=>{const _0xb81276=_0x4aab07;_0x5b9701[_0xb81276(0xe8)](),this['_messageService'][_0xb81276(0xa6)]({'content':this[_0xb81276(0x149)]['t'](_0xb81276(0xfb)),'type':_0x153d7c[_0xb81276(0x9c)][_0xb81276(0x11f)],'duration':0xbb8});},0x1388));}async[_0x45b811(0xee)](_0x517967,_0x4498ac){const _0x52e73d=_0x45b811;await this[_0x52e73d(0x15d)](_0x517967,_0x4498ac),_0x517967[_0x52e73d(0xd1)][_0x52e73d(0x17f)]((0x0,_0x121a50[_0x52e73d(0xbb)])(this[_0x52e73d(0x9b)]))[_0x52e73d(0x145)](_0x5a4b3a=>{const _0x3761bc=_0x52e73d;_0x5a4b3a&&this[_0x3761bc(0xc2)](_0x5a4b3a);}),this[_0x52e73d(0xc3)][_0x52e73d(0xda)]['pipe']((0x0,_0x121a50[_0x52e73d(0xbb)])(this['dispose$']))['subscribe'](()=>this[_0x52e73d(0x15d)](_0x517967,_0x4498ac));}['_updateURLWithCurrentState'](_0x12b85f,_0xda826a=!0x1){const _0x37fa8d=_0x45b811;let _0x2f4dad=this[_0x37fa8d(0xc3)][_0x37fa8d(0x93)](_0x37fa8d(0x1a8));_0x12b85f[_0x37fa8d(0x134)]()!==_0x2f4dad&&this['_urlService'][_0x37fa8d(0x10a)](_0x37fa8d(0x1a8),_0x12b85f[_0x37fa8d(0x134)](),_0xda826a);}async['_updateSubUnitFromURLParams'](_0x2ff22f,_0x4afc0e){const _0x15e1af=_0x45b811;var _0x4bff17;if(!_0x4afc0e||!_0x2ff22f[_0x15e1af(0x1ba)](_0x4afc0e)){let _0x1f040c=_0x2ff22f['getUnhiddenWorksheets']()[0x0],_0x420c8f=_0x2ff22f[_0x15e1af(0x1ba)](_0x1f040c);if(!_0x420c8f)return;this['_updateURLWithCurrentState'](_0x420c8f,!0x0),await this[_0x15e1af(0x12a)][_0x15e1af(0x18f)](_0x136342['SetWorksheetActivateCommand']['id'],{'unitId':_0x2ff22f['getUnitId'](),'subUnitId':_0x1f040c});return;}((_0x4bff17=_0x2ff22f[_0x15e1af(0x11d)]())==null?void 0x0:_0x4bff17[_0x15e1af(0x134)]())!==_0x4afc0e&&await this[_0x15e1af(0x12a)][_0x15e1af(0x18f)](_0x136342[_0x15e1af(0x87)]['id'],{'unitId':_0x2ff22f[_0x15e1af(0x13e)](),'subUnitId':_0x4afc0e});}};_0x3b00ac=_0x58019a([_0x132994(0x0,_0x412010['ICommandService']),_0x132994(0x1,_0x284ec3[_0x45b811(0xf8)]),_0x132994(0x2,(0x0,_0x412010[_0x45b811(0x171)])(_0x284ec3[_0x45b811(0x148)])),_0x132994(0x3,(0x0,_0x412010[_0x45b811(0x171)])(_0x595023)),_0x132994(0x4,(0x0,_0x412010['Inject'])(_0x412010['LocaleService'])),_0x132994(0x5,_0x284ec3[_0x45b811(0x172)]),_0x132994(0x6,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681['CollaborationController'])),_0x132994(0x7,_0x110681[_0x45b811(0x79)]),_0x132994(0x8,(0x0,_0x412010[_0x45b811(0x171)])(_0x110681[_0x45b811(0x77)])),_0x132994(0x9,_0x412010[_0x45b811(0x1b9)]),_0x132994(0xa,_0x2fda48[_0x45b811(0x182)])],_0x3b00ac);let _0x1f97de=class extends _0x412010[_0x45b811(0x14a)]{constructor(_0x25adf6=_0x5df63e,_0x5645d7,_0x2892e1){const _0x34fe32=_0x45b811;super(),this[_0x34fe32(0x13c)]=_0x25adf6,this[_0x34fe32(0x16d)]=_0x5645d7,this['_configService']=_0x2892e1;let {menu:_0x22c6a7,..._0x35fa08}=(0x0,_0x412010[_0x34fe32(0x14d)])({},_0x5df63e,this['_config']);_0x22c6a7&&this[_0x34fe32(0xd7)]['setConfig'](_0x34fe32(0x99),_0x22c6a7,{'merge':!0x0}),this['_configService'][_0x34fe32(0x144)](_0x149075,_0x35fa08),this[_0x34fe32(0x13c)][_0x34fe32(0xab)]&&this['_configService']['setConfig'](_0x25fbf7,this[_0x34fe32(0x13c)][_0x34fe32(0xab)]);}['onStarting'](){const _0x554ff7=_0x45b811;[[_0x595023],[_0x3b00ac]][_0x554ff7(0x85)](_0x350de7=>this[_0x554ff7(0x16d)]['add'](_0x350de7));}[_0x45b811(0x16a)](){const _0x40d4ce=_0x45b811;this[_0x40d4ce(0x16d)]['get'](_0x3b00ac);}};_0x57c8f2(_0x1f97de,'type',_0x412010[_0x45b811(0xe7)][_0x45b811(0x89)]),_0x57c8f2(_0x1f97de,_0x45b811(0xd8),_0x45b811(0xb1)),_0x57c8f2(_0x1f97de,_0x45b811(0x114),_0x42d231),_0x57c8f2(_0x1f97de,'version',_0x108dc4),_0x1f97de=_0x58019a([(0x0,_0x412010[_0x45b811(0xa3)])(_0xa92606['UniverLicensePlugin']),_0x132994(0x1,(0x0,_0x412010['Inject'])(_0x412010[_0x45b811(0x192)])),_0x132994(0x2,_0x412010['IConfigService'])],_0x1f97de),_0xdb52b[_0x45b811(0x8e)]=_0x149075,Object[_0x45b811(0x128)](_0xdb52b,_0x45b811(0xf9),{'enumerable':!0x0,'get':function(){return _0x595023;}}),Object[_0x45b811(0x128)](_0xdb52b,_0x45b811(0x16f),{'enumerable':!0x0,'get':function(){return _0x2f2a1f;}}),_0xdb52b[_0x45b811(0x7d)]=_0x549959,_0xdb52b[_0x45b811(0xe1)]=_0x25fbf7,_0xdb52b[_0x45b811(0xa1)]=_0x40de2d,Object[_0x45b811(0x128)](_0xdb52b,_0x45b811(0xa4),{'enumerable':!0x0,'get':function(){return _0x39d9f0;}}),Object['defineProperty'](_0xdb52b,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return _0x1f97de;}});}));
1
+ (function(_0x2fce95,_0x2824de){const _0x12c8b9=_0x2278,_0x5ddca0=_0x2fce95();while(!![]){try{const _0x3758e2=parseInt(_0x12c8b9(0x289))/0x1*(parseInt(_0x12c8b9(0x1c0))/0x2)+parseInt(_0x12c8b9(0x1c6))/0x3+-parseInt(_0x12c8b9(0x29d))/0x4+-parseInt(_0x12c8b9(0x2f7))/0x5+parseInt(_0x12c8b9(0x2c7))/0x6+-parseInt(_0x12c8b9(0x1d6))/0x7*(-parseInt(_0x12c8b9(0x228))/0x8)+parseInt(_0x12c8b9(0x2c5))/0x9*(-parseInt(_0x12c8b9(0x26a))/0xa);if(_0x3758e2===_0x2824de)break;else _0x5ddca0['push'](_0x5ddca0['shift']());}catch(_0xaa994f){_0x5ddca0['push'](_0x5ddca0['shift']());}}}(_0x14b9,0xe30a6),function(_0x47d3ab,_0x348833){const _0x4d0913=_0x2278;typeof exports=='object'&&typeof module<'u'?_0x348833(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs-pro/edit-history-viewer`),require(`@univerjs-pro/license`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs-pro/sheets-chart-ui`),require(`@univerjs-pro/sheets-pivot`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs-pro/sheets-shape-ui`),require(`@univerjs-pro/sheets-sparkline`),require(`@univerjs-pro/sheets-sparkline-ui`),require(`@univerjs/data-validation`),require(`@univerjs/design`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs/drawing`),require(`@univerjs/drawing-ui`),require(`@univerjs/engine-formula`),require(`@univerjs/engine-render`),require(`@univerjs/network`),require(`@univerjs/rpc`),require(`@univerjs/sheets-conditional-formatting`),require(`@univerjs/sheets-conditional-formatting-ui`),require(`@univerjs/sheets-data-validation`),require(`@univerjs/sheets-data-validation-ui`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets-drawing-ui`),require(`@univerjs/sheets-filter`),require(`@univerjs/sheets-filter-ui`),require(`@univerjs/sheets-formula`),require(`@univerjs/sheets-formula-ui`),require(`@univerjs/sheets-hyper-link`),require(`@univerjs/sheets-hyper-link-ui`),require(`@univerjs/sheets-numfmt`),require(`@univerjs/sheets-table`),require(`@univerjs/sheets-ui`),require(`@univerjs/ui`),require(`rxjs`),require(`@univerjs-pro/collaboration-client-ui`),require(`react`)):typeof define=='function'&&define[_0x4d0913(0x286)]?define('exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react'['split']('.'),_0x348833):(_0x47d3ab=typeof globalThis<'u'?globalThis:_0x47d3ab||self,_0x348833(_0x47d3ab[_0x4d0913(0x2cf)]={},_0x47d3ab[_0x4d0913(0x279)],_0x47d3ab[_0x4d0913(0x29f)],_0x47d3ab[_0x4d0913(0x237)],_0x47d3ab[_0x4d0913(0x320)],_0x47d3ab['UniverProEditHistoryViewer'],_0x47d3ab[_0x4d0913(0x204)],_0x47d3ab[_0x4d0913(0x260)],_0x47d3ab[_0x4d0913(0x2cb)],_0x47d3ab[_0x4d0913(0x1d7)],_0x47d3ab[_0x4d0913(0x2b2)],_0x47d3ab[_0x4d0913(0x21a)],_0x47d3ab[_0x4d0913(0x2e3)],_0x47d3ab[_0x4d0913(0x2e7)],_0x47d3ab['UniverDataValidation'],_0x47d3ab[_0x4d0913(0x2fe)],_0x47d3ab[_0x4d0913(0x21c)],_0x47d3ab[_0x4d0913(0x325)],_0x47d3ab[_0x4d0913(0x257)],_0x47d3ab[_0x4d0913(0x31a)],_0x47d3ab['UniverEngineFormula'],_0x47d3ab[_0x4d0913(0x291)],_0x47d3ab[_0x4d0913(0x2d2)],_0x47d3ab[_0x4d0913(0x20a)],_0x47d3ab[_0x4d0913(0x1e2)],_0x47d3ab[_0x4d0913(0x2c8)],_0x47d3ab[_0x4d0913(0x296)],_0x47d3ab[_0x4d0913(0x277)],_0x47d3ab[_0x4d0913(0x1dd)],_0x47d3ab[_0x4d0913(0x2a3)],_0x47d3ab[_0x4d0913(0x2b1)],_0x47d3ab[_0x4d0913(0x2d7)],_0x47d3ab[_0x4d0913(0x2b3)],_0x47d3ab['UniverSheetsFormulaUi'],_0x47d3ab[_0x4d0913(0x209)],_0x47d3ab[_0x4d0913(0x2c4)],_0x47d3ab['UniverSheetsNumfmt'],_0x47d3ab['UniverSheetsTable'],_0x47d3ab[_0x4d0913(0x22d)],_0x47d3ab[_0x4d0913(0x305)],_0x47d3ab['rxjs'],_0x47d3ab[_0x4d0913(0x2c1)],_0x47d3ab['React']));}(this,function(_0xa48dbc,_0x3f4cab,_0x2b467b,_0x2bd1a1,_0x53b8aa,_0x28bd67,_0x190ca4,_0x5818d3,_0x13771e,_0x539079,_0xf52b9,_0x5bd34f,_0x31262d,_0x293eae,_0xb20be2,_0x2a3bf8,_0x46b2a2,_0x190915,_0x39b342,_0x515c86,_0x3fcf1a,_0x4390d0,_0x2d814a,_0x1af0e0,_0x4eefb3,_0x48fee5,_0x5c2668,_0x2fb70a,_0x33f376,_0x1a796c,_0xc707e7,_0x49ebb5,_0x32c096,_0x1d9c10,_0x164292,_0xfaf631,_0x59691a,_0x45aba1,_0x348381,_0x33b4c9,_0x55fd55,_0x2f1402,_0x1503a7){const _0x264da9=_0x2278;Object[_0x264da9(0x2ab)](_0xa48dbc,Symbol[_0x264da9(0x27a)],{'value':'Module'});let _0x4d3e2d=_0x264da9(0x226);Symbol(_0x4d3e2d);let _0x3d6cb4={};function _0x341d4f(_0x427da0){'@babel/helpers - typeof';const _0x1d1f94=_0x264da9;return _0x341d4f=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x1d1f94(0x2d3)?function(_0x11ce32){return typeof _0x11ce32;}:function(_0x3e01ea){const _0xfd57e1=_0x1d1f94;return _0x3e01ea&&typeof Symbol=='function'&&_0x3e01ea[_0xfd57e1(0x27c)]===Symbol&&_0x3e01ea!==Symbol[_0xfd57e1(0x1e9)]?'symbol':typeof _0x3e01ea;},_0x341d4f(_0x427da0);}function _0x54f4b8(_0x13c81b,_0x5124b6){const _0x1a95e6=_0x264da9;if(_0x341d4f(_0x13c81b)!=_0x1a95e6(0x263)||!_0x13c81b)return _0x13c81b;var _0x1ad0b3=_0x13c81b[Symbol[_0x1a95e6(0x259)]];if(_0x1ad0b3!==void 0x0){var _0x462f0f=_0x1ad0b3[_0x1a95e6(0x1e6)](_0x13c81b,_0x5124b6||_0x1a95e6(0x21f));if(_0x341d4f(_0x462f0f)!=_0x1a95e6(0x263))return _0x462f0f;throw TypeError(_0x1a95e6(0x225));}return(_0x5124b6==='string'?String:Number)(_0x13c81b);}function _0x372582(_0x50ce59){const _0x480457=_0x264da9;var _0x36d39f=_0x54f4b8(_0x50ce59,_0x480457(0x2db));return _0x341d4f(_0x36d39f)==_0x480457(0x2d3)?_0x36d39f:_0x36d39f+'';}function _0x878f36(_0x48b4c1,_0x221f18,_0x3c7d30){return(_0x221f18=_0x372582(_0x221f18))in _0x48b4c1?Object['defineProperty'](_0x48b4c1,_0x221f18,{'value':_0x3c7d30,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48b4c1[_0x221f18]=_0x3c7d30,_0x48b4c1;}function _0x4f392e(_0x58bd52,_0x1d04ef){return function(_0x53984a,_0x2c1032){_0x1d04ef(_0x53984a,_0x2c1032,_0x58bd52);};}function _0x2e7be4(_0x383742,_0x1f6475,_0x5d81a8,_0x2d5bb4){const _0x1a2eaf=_0x264da9;var _0x1830dc=arguments[_0x1a2eaf(0x2bf)],_0x2e6172=_0x1830dc<0x3?_0x1f6475:_0x2d5bb4===null?_0x2d5bb4=Object[_0x1a2eaf(0x1ef)](_0x1f6475,_0x5d81a8):_0x2d5bb4,_0x1058f9;if(typeof Reflect==_0x1a2eaf(0x263)&&typeof Reflect[_0x1a2eaf(0x1e0)]==_0x1a2eaf(0x252))_0x2e6172=Reflect[_0x1a2eaf(0x1e0)](_0x383742,_0x1f6475,_0x5d81a8,_0x2d5bb4);else{for(var _0x1acbb2=_0x383742['length']-0x1;_0x1acbb2>=0x0;_0x1acbb2--)(_0x1058f9=_0x383742[_0x1acbb2])&&(_0x2e6172=(_0x1830dc<0x3?_0x1058f9(_0x2e6172):_0x1830dc>0x3?_0x1058f9(_0x1f6475,_0x5d81a8,_0x2e6172):_0x1058f9(_0x1f6475,_0x5d81a8))||_0x2e6172);}return _0x1830dc>0x3&&_0x2e6172&&Object['defineProperty'](_0x1f6475,_0x5d81a8,_0x2e6172),_0x2e6172;}let _0x4032e2=_0x264da9(0x26d),_0x18670f=_0x264da9(0x314),_0x2670c3=class extends _0x3f4cab['Disposable']{constructor(_0x4ca6cd,_0x5d9cc7,_0x6ea628,_0x28a954,_0x27fb5b,_0x884e18,_0xc1f2f6,_0x45fb87,_0x4fc94d,_0x38ec36){const _0x10eddc=_0x264da9;super(),this['_localeService']=_0x4ca6cd,this[_0x10eddc(0x2d5)]=_0x5d9cc7,this[_0x10eddc(0x224)]=_0x6ea628,this[_0x10eddc(0x2b7)]=_0x28a954,this[_0x10eddc(0x27e)]=_0x27fb5b,this[_0x10eddc(0x1e8)]=_0x884e18,this[_0x10eddc(0x2a0)]=_0xc1f2f6,this[_0x10eddc(0x24d)]=_0x45fb87,this[_0x10eddc(0x20f)]=_0x4fc94d,this['_themeService']=_0x38ec36,_0x878f36(this,_0x10eddc(0x1d8),new _0x55fd55['BehaviorSubject'](null)),_0x878f36(this,_0x10eddc(0x315),this[_0x10eddc(0x1d8)][_0x10eddc(0x301)]()),_0x878f36(this,'_disposableCollection',new _0x3f4cab[(_0x10eddc(0x242))]()),_0x878f36(this,'_pluginMap',new Map()),_0x878f36(this,'_internalWebWorker',null),this['_init']();}get[_0x264da9(0x20b)](){const _0x4ae604=_0x264da9;return this[_0x4ae604(0x1d8)][_0x4ae604(0x294)];}[_0x264da9(0x1fe)](){const _0x4fdd0c=_0x264da9;this['_initContainer'](),this[_0x4fdd0c(0x2bc)]();}[_0x264da9(0x25f)](){const _0x27ac73=_0x264da9;var _0x2cdc46;let _0x20acb7=(_0x2cdc46=this[_0x27ac73(0x224)][_0x27ac73(0x2f1)]('UNIVER_CONTAINER_ID'))==null?_0x27ac73(0x276):_0x2cdc46,_0xbb1365=document[_0x27ac73(0x2fa)](_0x20acb7);if(!_0xbb1365)return;let _0x30ff0d=document[_0x27ac73(0x28e)](_0x27ac73(0x267));_0x30ff0d['id']=_0x18670f,_0x30ff0d['dataset'][_0x27ac73(0x308)]=_0x27ac73(0x266),_0x30ff0d[_0x27ac73(0x249)][_0x27ac73(0x1fc)]=_0x27ac73(0x2e0),_0x30ff0d[_0x27ac73(0x249)][_0x27ac73(0x297)]='0',_0x30ff0d['style'][_0x27ac73(0x29b)]='0',_0x30ff0d[_0x27ac73(0x249)][_0x27ac73(0x311)]=_0x27ac73(0x1c8),_0x30ff0d[_0x27ac73(0x249)][_0x27ac73(0x27b)]=_0x27ac73(0x1c8),_0x30ff0d['style']['zIndex']='49',_0x30ff0d[_0x27ac73(0x249)][_0x27ac73(0x216)]=_0x27ac73(0x223),_0xbb1365['appendChild'](_0x30ff0d);}['_initPlugins'](){const _0x3af4e3=_0x264da9;[[_0x4390d0[_0x3af4e3(0x268)]],[_0x33b4c9[_0x3af4e3(0x222)],{'container':_0x18670f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x33b4c9[_0x3af4e3(0x1fa)],null]]}],[_0x2d814a[_0x3af4e3(0x285)]],[_0x39b342[_0x3af4e3(0x241)],{'override':[[_0x39b342[_0x3af4e3(0x327)],null]]}],[_0x46b2a2[_0x3af4e3(0x20c)],{'hasScroll':!0x1}],[_0x190915['UniverDocsUIPlugin']],[_0x59691a['UniverSheetsNumfmtPlugin']],[_0x2b467b[_0x3af4e3(0x227)],{'notExecuteFormula':!0x0}],[_0x348381[_0x3af4e3(0x214)]],[_0x32c096[_0x3af4e3(0x316)]],[_0x1d9c10[_0x3af4e3(0x251)]],[_0x2bd1a1[_0x3af4e3(0x300)]],[_0xc707e7[_0x3af4e3(0x2c2)]],[_0x49ebb5[_0x3af4e3(0x31b)]],[_0x4eefb3[_0x3af4e3(0x2f0)]],[_0x48fee5[_0x3af4e3(0x2fb)]],[_0x164292[_0x3af4e3(0x220)]],[_0xfaf631[_0x3af4e3(0x2b4)]],[_0xb20be2['UniverDataValidationPlugin']],[_0x5c2668['UniverSheetsDataValidationPlugin']],[_0x2fb70a[_0x3af4e3(0x218)]],[_0x3fcf1a[_0x3af4e3(0x2d8)],{'notExecuteFormula':!0x0}],[_0x515c86[_0x3af4e3(0x2de)]],[_0x33f376[_0x3af4e3(0x25c)]],[_0x1a796c[_0x3af4e3(0x2b6)]],[_0x31262d[_0x3af4e3(0x23c)]],[_0x293eae[_0x3af4e3(0x230)]],[_0x5818d3[_0x3af4e3(0x30f)]],[_0x13771e['UniverSheetsChartUIPlugin']],[_0xf52b9['UniverSheetsShapePlugin']],[_0x5bd34f[_0x3af4e3(0x1ee)]],[_0x539079[_0x3af4e3(0x270)],{'notExecuteFormula':!0x0}],[_0x45aba1['UniverSheetsTablePlugin']]][_0x3af4e3(0x312)](([_0x1a975f,_0x579296])=>this['registerPlugin'](_0x1a975f,_0x579296));}['dispose'](){const _0x117589=_0x264da9;super[_0x117589(0x23d)](),this[_0x117589(0x317)](),this[_0x117589(0x202)]['clear']();}[_0x264da9(0x24a)](_0x291cc6,_0x2ecf89,_0x598d16){const _0x207f44=_0x264da9;if(this[_0x207f44(0x202)][_0x207f44(0x2e8)](_0x291cc6[_0x207f44(0x274)])&&!_0x598d16)throw Error(_0x207f44(0x2c9)+_0x291cc6[_0x207f44(0x274)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x207f44(0x1e3)](_0x291cc6['pluginName'],[_0x291cc6,_0x2ecf89]);}[_0x264da9(0x2ad)](){const _0x174902=_0x264da9;return Array[_0x174902(0x2a5)](this[_0x174902(0x202)][_0x174902(0x1e4)]());}[_0x264da9(0x256)](_0xfd626e,_0x12577a){const _0x4fe15e=_0x264da9;let _0x378f69=document[_0x4fe15e(0x2fa)](_0x18670f);_0x378f69&&(_0x378f69[_0x4fe15e(0x249)][_0x4fe15e(0x216)]=_0x4fe15e(0x2ef),this[_0x4fe15e(0x271)](_0xfd626e,_0x18670f,_0x12577a));}['unMountHistoryContent'](){const _0x2afb84=_0x264da9;var _0x1ae2a1;this['_disposableCollection'][_0x2afb84(0x23d)](),(_0x1ae2a1=this[_0x2afb84(0x20b)])==null||_0x1ae2a1[_0x2afb84(0x23d)](),this[_0x2afb84(0x1d8)]['next'](null);let _0x1767e8=document[_0x2afb84(0x2fa)](_0x18670f);_0x1767e8&&(_0x1767e8[_0x2afb84(0x249)][_0x2afb84(0x216)]=_0x2afb84(0x223),this[_0x2afb84(0x2ff)]&&(this['_internalWebWorker']['terminate'](),this[_0x2afb84(0x2ff)]=null));}[_0x264da9(0x271)](_0x4bb495,_0x5522a6,_0x24fe8a){const _0x5f4ece=_0x264da9;var _0x457bc8,_0x1e9277,_0x170976,_0x4544b,_0x5dd2c2;if(this[_0x5f4ece(0x20b)])return;let _0x2a19eb=new _0x3f4cab[(_0x5f4ece(0x321))]({'locales':{[this['_localeService']['getCurrentLocale']()]:this['_localeService'][_0x5f4ece(0x2f9)]()},'override':[[_0x3f4cab[_0x5f4ece(0x1f4)],{'useClass':_0x53b8aa['AuthzIoHttpService']}]]}),_0x5e7d82=_0x2a19eb[_0x5f4ece(0x1df)]();this[_0x5f4ece(0x205)](this['_themeService']['darkMode$']['subscribe'](_0x20eec3=>{const _0x1ad4ac=_0x5f4ece;_0x5e7d82[_0x1ad4ac(0x2cc)](_0x3f4cab[_0x1ad4ac(0x1c2)])['setDarkMode'](_0x20eec3);})),this[_0x5f4ece(0x205)](this[_0x5f4ece(0x319)][_0x5f4ece(0x1fd)][_0x5f4ece(0x329)](_0xfa7c41=>{const _0x281543=_0x5f4ece;_0x5e7d82[_0x281543(0x2cc)](_0x3f4cab[_0x281543(0x1c2)])[_0x281543(0x1ec)](_0xfa7c41);})),_0x5e7d82[_0x5f4ece(0x2cc)](_0x3f4cab['LocaleService'])[_0x5f4ece(0x261)](this['_localeService']['getCurrentLocale']()),_0x5e7d82[_0x5f4ece(0x2cc)](_0x3f4cab['IConfigService'])['setConfig'](_0x53b8aa['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x5f4ece(0x224)][_0x5f4ece(0x2f1)](_0x53b8aa[_0x5f4ece(0x1f0)]));let _0x2a2f1b=this[_0x5f4ece(0x224)][_0x5f4ece(0x2f1)](_0x190ca4[_0x5f4ece(0x200)]);_0x2a2f1b&&_0x2a19eb['registerPlugin'](_0x190ca4[_0x5f4ece(0x2bb)],{'license':_0x2a2f1b['ls']});let _0x1cf46b=(_0x457bc8=this[_0x5f4ece(0x224)][_0x5f4ece(0x2f1)](_0x5f4ece(0x226)))==null?void 0x0:_0x457bc8['workerURL'],_0x1d11de=!!_0x1cf46b;_0x1d11de&&(this[_0x5f4ece(0x2ff)]=_0x1cf46b instanceof Worker?_0x1cf46b:null,_0x2a19eb['registerPlugin'](_0x1af0e0['UniverRPCMainThreadPlugin'],{'workerURL':_0x1cf46b})),this[_0x5f4ece(0x202)][_0x5f4ece(0x312)](([_0x2ed00e,_0x550266])=>{const _0x14ceea=_0x5f4ece;_0x2a19eb[_0x14ceea(0x24a)](_0x2ed00e,_0x550266);}),_0x2a19eb[_0x5f4ece(0x24a)](_0x28bd67[_0x5f4ece(0x269)],{'historyListServerUrl':(_0x1e9277=this[_0x5f4ece(0x224)]['getConfig'](_0x5f4ece(0x226)))==null?void 0x0:_0x1e9277[_0x5f4ece(0x1ce)],'historyPanelComponentKey':(_0x170976=this[_0x5f4ece(0x224)][_0x5f4ece(0x2f1)](_0x5f4ece(0x226)))==null?void 0x0:_0x170976[_0x5f4ece(0x32c)],'historyPanelHidden':(_0x4544b=this[_0x5f4ece(0x224)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x4544b[_0x5f4ece(0x248)],'historyAIassistantEnabled':(_0x5dd2c2=this['_configService'][_0x5f4ece(0x2f1)]('edit-history-loader.config'))==null?void 0x0:_0x5dd2c2[_0x5f4ece(0x283)]}),_0x5e7d82[_0x5f4ece(0x323)](_0x72176=>{const _0x501760=_0x5f4ece;this[_0x501760(0x22c)](_0x72176,_0x4bb495);}),this['_historyUniver$']['next'](_0x2a19eb);let _0x37cdf6=_0x5e7d82[_0x5f4ece(0x2cc)](_0x28bd67[_0x5f4ece(0x2ea)]),_0x30399d=this[_0x5f4ece(0x273)](_0x4bb495),_0x3777aa=()=>{const _0x576fbb=_0x5f4ece;_0x24fe8a?_0x37cdf6[_0x576fbb(0x27f)](_0x4bb495,_0x5522a6,_0x30399d,_0x24fe8a):_0x37cdf6['triggerLoadVersions'](_0x4bb495,_0x5522a6,_0x30399d);};if(this[_0x5f4ece(0x27e)][_0x5f4ece(0x28c)]({'content':this[_0x5f4ece(0x2e4)]['t'](_0x5f4ece(0x278)),'type':_0x2a3bf8[_0x5f4ece(0x31c)]['Loading']}),_0x1d11de)try{_0x5e7d82[_0x5f4ece(0x2cc)](_0x1af0e0[_0x5f4ece(0x295)])[_0x5f4ece(0x29c)]()[_0x5f4ece(0x21d)](()=>{_0x3777aa();});}catch{_0x3777aa();}else _0x3777aa();}[_0x264da9(0x22c)](_0x470a3a,_0x58d570){const _0x7f388e=_0x264da9;let _0x3684ac=_0x470a3a[_0x7f388e(0x2cc)](_0x28bd67[_0x7f388e(0x2ea)]);this[_0x7f388e(0x2b8)][_0x7f388e(0x1fb)](_0x3684ac[_0x7f388e(0x221)]['subscribe'](_0x2208b4=>{const _0x3ad8a8=_0x7f388e;switch(_0x2208b4){case _0x28bd67[_0x3ad8a8(0x239)][_0x3ad8a8(0x2a2)]:this['_dialogService']['closeAll'](),this[_0x3ad8a8(0x20f)][_0x3ad8a8(0x2fc)]();break;case _0x28bd67[_0x3ad8a8(0x239)]['Exited']:this[_0x3ad8a8(0x2b7)][_0x3ad8a8(0x229)](_0x38b9e3['id']),this['unMountHistoryContent']();break;case _0x28bd67[_0x3ad8a8(0x239)][_0x3ad8a8(0x282)]:this[_0x3ad8a8(0x317)](),this[_0x3ad8a8(0x27e)]['show']({'content':this[_0x3ad8a8(0x2e4)]['t'](_0x3ad8a8(0x322)),'type':_0x2a3bf8['MessageType'][_0x3ad8a8(0x282)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x7f388e(0x1fb)](_0x3684ac[_0x7f388e(0x254)][_0x7f388e(0x329)](async _0x57a2d9=>{const _0x4852d0=_0x7f388e;_0x57a2d9&&this[_0x4852d0(0x2b7)][_0x4852d0(0x229)](_0x2bd1a1[_0x4852d0(0x275)]['id'],{'unitId':_0x58d570,'revision':_0x57a2d9});}));}[_0x264da9(0x273)](_0x511f2d){const _0x360715=_0x264da9;let _0x2d0f52=this['_univerInstanceService'][_0x360715(0x318)](_0x511f2d)['getSheets']()[_0x360715(0x272)](_0x39e0db=>_0x39e0db['getSheetId']()),_0x2e3a26=new _0x2b467b[(_0x360715(0x2f5))](_0x511f2d)['id'],_0x464778=_0x2d0f52[_0x360715(0x272)](_0x435dd1=>new _0x2b467b['WorksheetEditPermission'](_0x511f2d,_0x435dd1)['id']),_0x12294b=_0x2d0f52[_0x360715(0x272)](_0x443391=>this[_0x360715(0x2a0)][_0x360715(0x231)](_0x511f2d,_0x443391)[_0x360715(0x272)](_0x2bacb6=>new _0x2b467b[(_0x360715(0x1f7))](_0x511f2d,_0x443391,_0x2bacb6[_0x360715(0x2ed)])['id']))['flat'](),_0x4d2752=new _0x2b467b[(_0x360715(0x1be))](_0x511f2d)['id'];return this[_0x360715(0x1e8)][_0x360715(0x2eb)]([_0x2e3a26,..._0x464778,..._0x12294b,_0x4d2752])[_0x360715(0x26b)](_0x34b469=>!!_0x34b469[_0x360715(0x294)]);}};_0x2670c3=_0x2e7be4([_0x4f392e(0x0,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x3f4cab[_0x264da9(0x2be)])),_0x4f392e(0x1,_0x3f4cab[_0x264da9(0x309)]),_0x4f392e(0x2,_0x3f4cab[_0x264da9(0x2aa)]),_0x4f392e(0x3,_0x3f4cab[_0x264da9(0x1da)]),_0x4f392e(0x4,_0x33b4c9['IMessageService']),_0x4f392e(0x5,_0x3f4cab['IPermissionService']),_0x4f392e(0x6,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x2b467b[_0x264da9(0x1ea)])),_0x4f392e(0x7,(0x0,_0x3f4cab['Inject'])(_0x33b4c9[_0x264da9(0x1fa)])),_0x4f392e(0x8,(0x0,_0x3f4cab['Inject'])(_0x33b4c9[_0x264da9(0x215)])),_0x4f392e(0x9,(0x0,_0x3f4cab['Inject'])(_0x3f4cab[_0x264da9(0x1c2)]))],_0x2670c3);let _0x27c538={'id':_0x264da9(0x1c7),'type':_0x3f4cab['CommandType'][_0x264da9(0x2ac)],'handler':_0x583e64=>{const _0x10dff0=_0x264da9;let _0x2b1d4b=_0x583e64['get'](_0x2670c3),{unitId:_0x2a4092}=(0x0,_0x2b467b[_0x10dff0(0x303)])(_0x583e64['get'](_0x3f4cab['IUniverInstanceService']))||{};return _0x2a4092?(_0x2b1d4b['mountHistoryContent'](_0x2a4092),!0x0):!0x1;}},_0x38b9e3={'id':_0x264da9(0x1f6),'type':_0x3f4cab[_0x264da9(0x232)][_0x264da9(0x2ac)],'handler':()=>!0x0};var _0x85a720=_0x264da9(0x2da),_0x4fb64e=_0x264da9(0x2a1);function _0x507fa9({ref:_0x562edd,..._0x1593fc}){const _0x4dc7cc=_0x264da9;let {icon:_0x208403,id:_0x19f23e,className:_0x278e4d,extend:_0x151d66,..._0xae5757}=_0x1593fc,_0xdaaa1=('univerjs-icon\x20univerjs-icon-'+_0x19f23e+'\x20'+(_0x278e4d||''))[_0x4dc7cc(0x2d4)](),_0x893c71=(0x0,_0x1503a7['useRef'])('_'+_0x27abfa());return _0x11126f(_0x208403,''+_0x19f23e,{'defIds':_0x208403[_0x4dc7cc(0x217)],'idSuffix':_0x893c71[_0x4dc7cc(0x1d4)]},{'ref':_0x562edd,'className':_0xdaaa1,..._0xae5757},_0x151d66);}function _0x11126f(_0x3368b6,_0x1900fe,_0x12c52b,_0x3387e4,_0x5363b5){const _0x1ed547=_0x264da9;return(0x0,_0x1503a7[_0x1ed547(0x28e)])(_0x3368b6[_0x1ed547(0x2ae)],{'key':_0x1900fe,..._0x38840a(_0x3368b6,_0x12c52b,_0x5363b5),..._0x3387e4},(_0x30acb9(_0x3368b6,_0x12c52b)[_0x1ed547(0x1cd)]||[])[_0x1ed547(0x272)]((_0x179bf3,_0x38be0f)=>_0x11126f(_0x179bf3,_0x1900fe+'-'+_0x3368b6[_0x1ed547(0x2ae)]+'-'+_0x38be0f,_0x12c52b,void 0x0,_0x5363b5)));}function _0x38840a(_0x5d8ead,_0x44dfba,_0x3cb796){const _0x2fc560=_0x264da9;let _0x220c3a={..._0x5d8ead['attrs']};_0x3cb796!=null&&_0x3cb796[_0x2fc560(0x235)]&&_0x220c3a[_0x2fc560(0x20e)]===_0x2fc560(0x235)&&(_0x220c3a[_0x2fc560(0x20e)]=_0x3cb796['colorChannel1']),_0x5d8ead['tag']===_0x2fc560(0x1e1)&&_0x220c3a['id']&&(_0x220c3a['id']+=_0x44dfba[_0x2fc560(0x22e)]),Object['entries'](_0x220c3a)['forEach'](([_0x2d4b50,_0x15d569])=>{const _0x13ac52=_0x2fc560;_0x2d4b50===_0x13ac52(0x1e1)&&typeof _0x15d569=='string'&&(_0x220c3a[_0x2d4b50]=_0x15d569[_0x13ac52(0x2e9)](/url\(#(.*)\)/,_0x13ac52(0x264)+_0x44dfba[_0x13ac52(0x22e)]+')'));});let {defIds:_0x12d8f5}=_0x44dfba;return!_0x12d8f5||_0x12d8f5[_0x2fc560(0x2bf)]===0x0?_0x220c3a:(_0x5d8ead['tag']==='use'&&_0x220c3a[_0x2fc560(0x2a8)]&&(_0x220c3a[_0x2fc560(0x2a8)]+=_0x44dfba[_0x2fc560(0x22e)]),Object[_0x2fc560(0x245)](_0x220c3a)[_0x2fc560(0x312)](([_0x32a47a,_0x432aab])=>{const _0x1c7925=_0x2fc560;typeof _0x432aab=='string'&&(_0x220c3a[_0x32a47a]=_0x432aab[_0x1c7925(0x2e9)](/url\(#(.*)\)/,_0x1c7925(0x264)+_0x44dfba[_0x1c7925(0x22e)]+')'));}),_0x220c3a);}function _0x30acb9(_0x306176,_0x2737ad){const _0x361c2b=_0x264da9;var _0xb64ee0;let {defIds:_0x30bb4c}=_0x2737ad;return!_0x30bb4c||_0x30bb4c[_0x361c2b(0x2bf)]===0x0?_0x306176:_0x306176[_0x361c2b(0x2ae)]===_0x361c2b(0x24b)&&(_0xb64ee0=_0x306176[_0x361c2b(0x1cd)])!=null&&_0xb64ee0[_0x361c2b(0x2bf)]?{..._0x306176,'children':_0x306176[_0x361c2b(0x1cd)][_0x361c2b(0x272)](_0x9f8065=>typeof _0x9f8065[_0x361c2b(0x293)]['id']==_0x361c2b(0x2db)&&_0x30bb4c&&_0x30bb4c[_0x361c2b(0x258)](_0x9f8065[_0x361c2b(0x293)]['id'])?{..._0x9f8065,'attrs':{..._0x9f8065[_0x361c2b(0x293)],'id':_0x9f8065[_0x361c2b(0x293)]['id']+_0x2737ad[_0x361c2b(0x22e)]}}:_0x9f8065)}:_0x306176;}function _0x27abfa(){const _0x1855c4=_0x264da9;return Math[_0x1855c4(0x24c)]()[_0x1855c4(0x31d)](0x24)[_0x1855c4(0x307)](0x2,0x8);}_0x507fa9[_0x264da9(0x2ee)]=_0x264da9(0x30a);let _0x973af3={'tag':_0x264da9(0x28d),'attrs':{'xmlns':_0x264da9(0x206),'fill':_0x264da9(0x223),'viewBox':_0x264da9(0x281),'width':_0x264da9(0x22a),'height':_0x264da9(0x22a)},'children':[{'tag':'g','attrs':{'fill':_0x264da9(0x25d),'clipPath':_0x264da9(0x2dd)},'children':[{'tag':_0x264da9(0x2d1),'attrs':{'d':_0x264da9(0x1f9)}},{'tag':_0x264da9(0x2d1),'attrs':{'d':_0x264da9(0x1ed)}}]},{'tag':_0x264da9(0x24b),'attrs':{},'children':[{'tag':_0x264da9(0x302),'attrs':{'id':_0x264da9(0x2c6)},'children':[{'tag':_0x264da9(0x2d1),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x264da9(0x2c6)]},_0x356a75=(0x0,_0x1503a7[_0x264da9(0x207)])(function(_0x3bb358,_0x44e6a5){const _0x3db4fb=_0x264da9;return(0x0,_0x1503a7['createElement'])(_0x507fa9,Object[_0x3db4fb(0x2d6)]({},_0x3bb358,{'id':_0x3db4fb(0x2a6),'ref':_0x44e6a5,'icon':_0x973af3}));});_0x356a75[_0x264da9(0x2ee)]='HistoryIcon';function _0xd3b0bd(_0x2d29dd){const _0x1903bf=_0x264da9;return{'id':_0x27c538['id'],'type':_0x33b4c9['MenuItemType'][_0x1903bf(0x1c4)],'icon':'HistoryIcon','tooltip':_0x1903bf(0x210),'hidden$':(0x0,_0x33b4c9[_0x1903bf(0x1d0)])(_0x2d29dd,_0x3f4cab[_0x1903bf(0x31f)][_0x1903bf(0x2d9)]),'disabled$':(0x0,_0x348381[_0x1903bf(0x1cc)])(_0x2d29dd,{'workbookTypes':[_0x2b467b['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}let _0xcb55d3={[_0x33b4c9['RibbonStartGroup']['OTHERS']]:{[_0x27c538['id']]:{'order':0.2,'menuItemFactory':_0xd3b0bd}}},_0x532111=class extends _0x3f4cab[_0x264da9(0x1c3)]{constructor(_0x1cf118,_0x89aa92,_0x30e0a5,_0x317ba3,_0x293391,_0x4f7159,_0x13e7ab,_0x4454f4,_0x1d7d1b,_0x32bf35,_0x48ad43){const _0x1922ba=_0x264da9;super(),this[_0x1922ba(0x2b7)]=_0x1cf118,this[_0x1922ba(0x1f5)]=_0x89aa92,this[_0x1922ba(0x212)]=_0x30e0a5,this['_historyManagerService']=_0x317ba3,this['_localeService']=_0x293391,this['_messageService']=_0x4f7159,this['_collaborationController']=_0x13e7ab,this[_0x1922ba(0x1c1)]=_0x4454f4,this[_0x1922ba(0x246)]=_0x1d7d1b,this[_0x1922ba(0x2d5)]=_0x32bf35,this[_0x1922ba(0x2f8)]=_0x48ad43,_0x878f36(this,_0x1922ba(0x1bc),null),this[_0x1922ba(0x1fe)]();}[_0x264da9(0x1fe)](){const _0x38eef9=_0x264da9;[_0x27c538,_0x38b9e3][_0x38eef9(0x312)](_0x1f2f8e=>this['disposeWithMe']((0x0,_0x3f4cab[_0x38eef9(0x1dc)])(this['_commandService']['registerCommand'](_0x1f2f8e)))),this[_0x38eef9(0x205)](this[_0x38eef9(0x212)][_0x38eef9(0x310)](_0x38eef9(0x288),_0x356a75)),this[_0x38eef9(0x1f5)][_0x38eef9(0x1d1)](_0xcb55d3),this[_0x38eef9(0x205)](this[_0x38eef9(0x2b7)][_0x38eef9(0x290)](async(_0x55cff5,_0x1fae52)=>{const _0x4fcb12=_0x38eef9;if(_0x55cff5['id']===_0x2bd1a1[_0x4fcb12(0x275)]['id']){let {unitId:_0x595d4f}=_0x55cff5[_0x4fcb12(0x1de)];this['_messageService']['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x2a3bf8['MessageType'][_0x4fcb12(0x26e)],'duration':0x1388});let _0x5d2dd3=this[_0x4fcb12(0x23b)]['getCollabEntity'](_0x595d4f);_0x1fae52!=null&&_0x1fae52[_0x4fcb12(0x32b)]?this[_0x4fcb12(0x280)](_0x5d2dd3,async()=>(setTimeout(()=>window[_0x4fcb12(0x2b5)][_0x4fcb12(0x2ba)]()),!0x0),!0x0):this[_0x4fcb12(0x280)](_0x5d2dd3,async()=>{const _0x5c375e=_0x4fcb12;let _0x1df64b=this[_0x5c375e(0x2d5)][_0x5c375e(0x219)](_0x3f4cab[_0x5c375e(0x31f)][_0x5c375e(0x2d9)]),_0x168588=_0x1df64b==null?void 0x0:_0x1df64b[_0x5c375e(0x30d)]();if(!_0x168588)return!0x1;this[_0x5c375e(0x2d5)]['disposeUnit'](_0x595d4f);let _0x303bb8=await this['_dataLoaderService']['loadUnit'](_0x595d4f,_0x3f4cab[_0x5c375e(0x31f)]['UNIVER_SHEET']);return _0x303bb8&&_0x303bb8 instanceof _0x3f4cab[_0x5c375e(0x1f8)]?(await this[_0x5c375e(0x250)](_0x303bb8,_0x168588['getSheetId']()),!0x0):!0x1;});}}));}[_0x264da9(0x280)](_0x38a83d,_0x1eb1a9,_0xabec68=!0x1){const _0x29b48e=_0x264da9;let _0x348df4=(0x0,_0x55fd55[_0x29b48e(0x2cd)])([_0x38a83d[_0x29b48e(0x299)]['event$'],_0x38a83d['state$']])[_0x29b48e(0x329)](async([_0x43e9a1,_0x21137d])=>{const _0x391bc9=_0x29b48e;if(_0x43e9a1['eventID']===_0x2bd1a1['CollaborationEvent'][_0x391bc9(0x2b9)]&&(_0x21137d==null?void 0x0:_0x21137d[_0x391bc9(0x2df)])===_0x53b8aa['CollaborationStatus']['SYNCED']&&_0x43e9a1['data'][_0x391bc9(0x1e7)][_0x391bc9(0x2f2)](_0x4440e7=>_0x4440e7['id']===_0x2bd1a1['RevertRevisionMutation']['id'])&&await _0x1eb1a9()){var _0x431094;this[_0x391bc9(0x1f2)][_0x391bc9(0x317)](),_0x348df4['unsubscribe'](),this[_0x391bc9(0x1bc)]&&clearTimeout(this[_0x391bc9(0x1bc)]),await((_0x431094=this[_0x391bc9(0x1c1)])==null?void 0x0:_0x431094[_0x391bc9(0x2e1)]()),this[_0x391bc9(0x27e)][_0x391bc9(0x2ce)]();}});_0xabec68&&(this[_0x29b48e(0x1bc)]=setTimeout(()=>{const _0x543e2f=_0x29b48e;_0x348df4['unsubscribe'](),this['_messageService'][_0x543e2f(0x28c)]({'content':this[_0x543e2f(0x2e4)]['t'](_0x543e2f(0x21b)),'type':_0x2a3bf8['MessageType'][_0x543e2f(0x282)],'duration':0xbb8});},0x1388));}async[_0x264da9(0x250)](_0x4aeca6,_0xcd17d){const _0x1cf49e=_0x264da9;await this[_0x1cf49e(0x23f)](_0x4aeca6,_0xcd17d),_0x4aeca6['activeSheet$'][_0x1cf49e(0x28a)]((0x0,_0x55fd55[_0x1cf49e(0x233)])(this[_0x1cf49e(0x29e)]))['subscribe'](_0x53a7a2=>{const _0xa49c0=_0x1cf49e;_0x53a7a2&&this[_0xa49c0(0x1d9)](_0x53a7a2);}),this[_0x1cf49e(0x2f8)][_0x1cf49e(0x203)][_0x1cf49e(0x28a)]((0x0,_0x55fd55[_0x1cf49e(0x233)])(this[_0x1cf49e(0x29e)]))[_0x1cf49e(0x329)](()=>this[_0x1cf49e(0x23f)](_0x4aeca6,_0xcd17d));}['_updateURLWithCurrentState'](_0x95c14b,_0x51edef=!0x1){const _0x20f52e=_0x264da9;let _0x57b211=this['_urlService'][_0x20f52e(0x27d)]('subunit');_0x95c14b[_0x20f52e(0x2a9)]()!==_0x57b211&&this[_0x20f52e(0x2f8)][_0x20f52e(0x1db)]('subunit',_0x95c14b[_0x20f52e(0x2a9)](),_0x51edef);}async['_updateSubUnitFromURLParams'](_0x2358b3,_0x47df3e){const _0x3b1b3a=_0x264da9;var _0x24870b;if(!_0x47df3e||!_0x2358b3[_0x3b1b3a(0x213)](_0x47df3e)){let _0x4c25fd=_0x2358b3[_0x3b1b3a(0x24e)]()[0x0],_0x1927b8=_0x2358b3['getSheetBySheetId'](_0x4c25fd);if(!_0x1927b8)return;this[_0x3b1b3a(0x1d9)](_0x1927b8,!0x0),await this[_0x3b1b3a(0x2b7)][_0x3b1b3a(0x229)](_0x2b467b[_0x3b1b3a(0x1bd)]['id'],{'unitId':_0x2358b3[_0x3b1b3a(0x1bf)](),'subUnitId':_0x4c25fd});return;}((_0x24870b=_0x2358b3[_0x3b1b3a(0x30d)]())==null?void 0x0:_0x24870b['getSheetId']())!==_0x47df3e&&await this['_commandService'][_0x3b1b3a(0x229)](_0x2b467b['SetWorksheetActivateCommand']['id'],{'unitId':_0x2358b3[_0x3b1b3a(0x1bf)](),'subUnitId':_0x47df3e});}};_0x532111=_0x2e7be4([_0x4f392e(0x0,_0x3f4cab[_0x264da9(0x1da)]),_0x4f392e(0x1,_0x33b4c9[_0x264da9(0x2f6)]),_0x4f392e(0x2,(0x0,_0x3f4cab['Inject'])(_0x33b4c9[_0x264da9(0x2a4)])),_0x4f392e(0x3,(0x0,_0x3f4cab['Inject'])(_0x2670c3)),_0x4f392e(0x4,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x3f4cab[_0x264da9(0x2be)])),_0x4f392e(0x5,_0x33b4c9['IMessageService']),_0x4f392e(0x6,(0x0,_0x3f4cab['Inject'])(_0x53b8aa[_0x264da9(0x2a7)])),_0x4f392e(0x7,_0x53b8aa[_0x264da9(0x30b)]),_0x4f392e(0x8,(0x0,_0x3f4cab['Inject'])(_0x53b8aa['DataLoaderService'])),_0x4f392e(0x9,_0x3f4cab[_0x264da9(0x309)]),_0x4f392e(0xa,_0x2f1402['IURLService'])],_0x532111);let _0x46ba20=_0x264da9(0x236),_0x4949a6=class extends _0x3f4cab[_0x264da9(0x2e2)]{constructor(_0x24e499,_0x18e52a,_0x31ac93,_0x1205d8,_0x452bc6,_0x56e9e5,_0x46f953,_0x25a283,_0x235865,_0x4e1d1e){const _0x31c80a=_0x264da9;super(),this[_0x31c80a(0x2e4)]=_0x24e499,this[_0x31c80a(0x2d5)]=_0x18e52a,this['_configService']=_0x31ac93,this[_0x31c80a(0x2b7)]=_0x1205d8,this['_messageService']=_0x452bc6,this[_0x31c80a(0x1e8)]=_0x56e9e5,this[_0x31c80a(0x2a0)]=_0x46f953,this[_0x31c80a(0x24d)]=_0x25a283,this['_sidebarService']=_0x235865,this[_0x31c80a(0x319)]=_0x4e1d1e,_0x878f36(this,_0x31c80a(0x1d8),new _0x55fd55[(_0x31c80a(0x32d))](null)),_0x878f36(this,_0x31c80a(0x315),this[_0x31c80a(0x1d8)][_0x31c80a(0x301)]()),_0x878f36(this,'_disposableCollection',new _0x3f4cab['DisposableCollection']()),_0x878f36(this,_0x31c80a(0x202),new Map()),_0x878f36(this,_0x31c80a(0x2ff),null),this[_0x31c80a(0x1fe)]();}get[_0x264da9(0x20b)](){const _0x25ec4c=_0x264da9;return this[_0x25ec4c(0x1d8)][_0x25ec4c(0x294)];}[_0x264da9(0x1fe)](){const _0x57648c=_0x264da9;this[_0x57648c(0x25f)](),this[_0x57648c(0x2bc)]();}[_0x264da9(0x25f)](){const _0x15e83e=_0x264da9;var _0x2bacb1;let _0x1eb307=(_0x2bacb1=this[_0x15e83e(0x224)][_0x15e83e(0x2f1)](_0x15e83e(0x26d)))==null?'univer-container':_0x2bacb1,_0x570eb2=document[_0x15e83e(0x2fa)](_0x1eb307);if(!_0x570eb2)return;let _0x1e5462=document[_0x15e83e(0x28e)](_0x15e83e(0x267));_0x1e5462['id']=_0x46ba20,_0x1e5462[_0x15e83e(0x2d0)][_0x15e83e(0x308)]=_0x15e83e(0x266),_0x1e5462[_0x15e83e(0x249)]['position']='absolute',_0x1e5462['style']['top']='0',_0x1e5462['style'][_0x15e83e(0x29b)]='0',_0x1e5462[_0x15e83e(0x249)][_0x15e83e(0x311)]=_0x15e83e(0x1c8),_0x1e5462[_0x15e83e(0x249)][_0x15e83e(0x27b)]='100%',_0x1e5462[_0x15e83e(0x249)][_0x15e83e(0x1ca)]='49',_0x1e5462[_0x15e83e(0x249)][_0x15e83e(0x216)]='none',_0x570eb2[_0x15e83e(0x313)](_0x1e5462);}[_0x264da9(0x2bc)](){const _0x15de73=_0x264da9;[[_0x4390d0[_0x15de73(0x268)]],[_0x33b4c9[_0x15de73(0x30c)],{'container':_0x46ba20,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x33b4c9[_0x15de73(0x1fa)],null]]}],[_0x2d814a[_0x15de73(0x285)]],[_0x39b342[_0x15de73(0x241)],{'override':[[_0x39b342[_0x15de73(0x327)],null]]}],[_0x46b2a2['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x190915[_0x15de73(0x28b)]],[_0x59691a['UniverSheetsNumfmtPlugin']],[_0x2b467b[_0x15de73(0x227)],{'notExecuteFormula':!0x0}],[_0x348381[_0x15de73(0x324)]],[_0x32c096['UniverSheetsFormulaPlugin']],[_0x1d9c10[_0x15de73(0x251)]],[_0x2bd1a1[_0x15de73(0x300)]],[_0xc707e7[_0x15de73(0x2c2)]],[_0x4eefb3[_0x15de73(0x2f0)]],[_0x164292[_0x15de73(0x220)]],[_0xfaf631['UniverSheetsHyperLinkUIPlugin']],[_0xb20be2[_0x15de73(0x22b)]],[_0x5c2668[_0x15de73(0x284)]],[_0x2fb70a[_0x15de73(0x306)]],[_0x3fcf1a[_0x15de73(0x2d8)],{'notExecuteFormula':!0x0}],[_0x515c86[_0x15de73(0x2de)]],[_0x33f376[_0x15de73(0x25c)]],[_0x1a796c[_0x15de73(0x2b6)]],[_0x31262d[_0x15de73(0x23c)]],[_0x293eae[_0x15de73(0x230)]],[_0x5818d3[_0x15de73(0x30f)]],[_0x13771e[_0x15de73(0x2bd)]],[_0xf52b9[_0x15de73(0x262)]],[_0x5bd34f[_0x15de73(0x1ee)]],[_0x539079['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x45aba1[_0x15de73(0x2fd)]]][_0x15de73(0x312)](([_0xb41f6b,_0x5d0ebf])=>this[_0x15de73(0x24a)](_0xb41f6b,_0x5d0ebf));}['dispose'](){const _0x6c81ba=_0x264da9;super[_0x6c81ba(0x23d)](),this[_0x6c81ba(0x317)](),this[_0x6c81ba(0x202)][_0x6c81ba(0x1d3)]();}[_0x264da9(0x24a)](_0x1dffd0,_0x1ede2d,_0x25a1aa){const _0x44dae5=_0x264da9;if(this[_0x44dae5(0x202)][_0x44dae5(0x2e8)](_0x1dffd0[_0x44dae5(0x274)])&&!_0x25a1aa)throw Error(_0x44dae5(0x23a)+_0x1dffd0[_0x44dae5(0x274)]+_0x44dae5(0x2f3));this[_0x44dae5(0x202)][_0x44dae5(0x1e3)](_0x1dffd0[_0x44dae5(0x274)],[_0x1dffd0,_0x1ede2d]);}['getAllPlugins'](){const _0x11d573=_0x264da9;return Array[_0x11d573(0x2a5)](this[_0x11d573(0x202)][_0x11d573(0x1e4)]());}[_0x264da9(0x256)](_0x26176c,_0xf9e6f8){const _0x1a6555=_0x264da9;let _0x5db426=document['getElementById'](_0x46ba20);_0x5db426&&(_0x5db426[_0x1a6555(0x249)][_0x1a6555(0x216)]=_0x1a6555(0x2ef),this['_initUniver'](_0x26176c,_0x46ba20,_0xf9e6f8));}['unMountHistoryContent'](){const _0x3cb188=_0x264da9;var _0x48ef5b;this[_0x3cb188(0x2b8)][_0x3cb188(0x23d)](),(_0x48ef5b=this[_0x3cb188(0x20b)])==null||_0x48ef5b[_0x3cb188(0x23d)](),this['_historyUniver$'][_0x3cb188(0x30e)](null);let _0x313eed=document['getElementById'](_0x46ba20);_0x313eed&&(_0x313eed[_0x3cb188(0x249)]['display']='none',this[_0x3cb188(0x2ff)]&&(this[_0x3cb188(0x2ff)][_0x3cb188(0x21e)](),this[_0x3cb188(0x2ff)]=null));}['_initUniver'](_0x50adcb,_0x31fca9,_0x114536){const _0x3d15b=_0x264da9;var _0x34cb36,_0x1b3eb5,_0xd97d7e,_0x460159;if(this[_0x3d15b(0x20b)])return;let _0x1e0968=new _0x3f4cab[(_0x3d15b(0x321))]({'locales':{[this[_0x3d15b(0x2e4)][_0x3d15b(0x26f)]()]:this[_0x3d15b(0x2e4)][_0x3d15b(0x2f9)]()},'override':[[_0x3f4cab['IAuthzIoService'],{'useClass':_0x53b8aa[_0x3d15b(0x247)]}]]}),_0x4532d0=_0x1e0968['__getInjector']();this[_0x3d15b(0x205)](this[_0x3d15b(0x319)][_0x3d15b(0x2af)]['subscribe'](_0x4f82ae=>{const _0x2b1079=_0x3d15b;_0x4532d0['get'](_0x3f4cab[_0x2b1079(0x1c2)])['setDarkMode'](_0x4f82ae);})),this[_0x3d15b(0x205)](this[_0x3d15b(0x319)][_0x3d15b(0x1fd)]['subscribe'](_0x2513b3=>{const _0x220edd=_0x3d15b;_0x4532d0['get'](_0x3f4cab[_0x220edd(0x1c2)])[_0x220edd(0x1ec)](_0x2513b3);})),_0x4532d0[_0x3d15b(0x2cc)](_0x3f4cab['LocaleService'])[_0x3d15b(0x261)](this[_0x3d15b(0x2e4)][_0x3d15b(0x26f)]()),_0x4532d0[_0x3d15b(0x2cc)](_0x3f4cab[_0x3d15b(0x2aa)])[_0x3d15b(0x298)](_0x53b8aa[_0x3d15b(0x1f0)],this[_0x3d15b(0x224)][_0x3d15b(0x2f1)](_0x53b8aa[_0x3d15b(0x1f0)]));let _0x37782e=this[_0x3d15b(0x224)][_0x3d15b(0x2f1)](_0x190ca4[_0x3d15b(0x200)]);_0x37782e&&_0x1e0968[_0x3d15b(0x24a)](_0x190ca4['UniverLicensePlugin'],{'license':_0x37782e['ls']});let _0x67b326=(_0x34cb36=this[_0x3d15b(0x224)][_0x3d15b(0x2f1)](_0x3d15b(0x226)))==null?void 0x0:_0x34cb36['workerURL'],_0xe4e7c3=!!_0x67b326;_0xe4e7c3&&(this[_0x3d15b(0x2ff)]=_0x67b326 instanceof Worker?_0x67b326:null,_0x1e0968[_0x3d15b(0x24a)](_0x1af0e0[_0x3d15b(0x32a)],{'workerURL':_0x67b326})),this[_0x3d15b(0x202)]['forEach'](([_0x78a01,_0x70baba])=>{_0x1e0968['registerPlugin'](_0x78a01,_0x70baba);}),_0x1e0968[_0x3d15b(0x24a)](_0x28bd67[_0x3d15b(0x25b)],{'historyListServerUrl':(_0x1b3eb5=this[_0x3d15b(0x224)][_0x3d15b(0x2f1)](_0x3d15b(0x226)))==null?void 0x0:_0x1b3eb5[_0x3d15b(0x1ce)],'historyPanelComponentKey':(_0xd97d7e=this[_0x3d15b(0x224)][_0x3d15b(0x2f1)](_0x3d15b(0x226)))==null?void 0x0:_0xd97d7e[_0x3d15b(0x32c)],'historyPanelHidden':(_0x460159=this[_0x3d15b(0x224)][_0x3d15b(0x2f1)](_0x3d15b(0x226)))==null?void 0x0:_0x460159[_0x3d15b(0x248)]}),_0x4532d0['invoke'](_0x2b5220=>{const _0x5015c0=_0x3d15b;this[_0x5015c0(0x22c)](_0x2b5220,_0x50adcb);}),this['_historyUniver$'][_0x3d15b(0x30e)](_0x1e0968);let _0x4db508=_0x4532d0['get'](_0x28bd67[_0x3d15b(0x2ea)]),_0x43a6c2=this[_0x3d15b(0x273)](_0x50adcb),_0xc86e58=()=>{const _0x5ac9e4=_0x3d15b;_0x114536?_0x4db508[_0x5ac9e4(0x27f)](_0x50adcb,_0x31fca9,_0x43a6c2,_0x114536):_0x4db508[_0x5ac9e4(0x255)](_0x50adcb,_0x31fca9,_0x43a6c2);};if(this[_0x3d15b(0x27e)]['show']({'content':this[_0x3d15b(0x2e4)]['t'](_0x3d15b(0x278)),'type':_0x2a3bf8[_0x3d15b(0x31c)][_0x3d15b(0x26e)]}),_0xe4e7c3)try{_0x4532d0['get'](_0x1af0e0[_0x3d15b(0x295)])[_0x3d15b(0x29c)]()[_0x3d15b(0x21d)](()=>{_0xc86e58();});}catch{_0xc86e58();}else _0xc86e58();}[_0x264da9(0x22c)](_0x3754dd,_0x1a5dc3){const _0x738c2e=_0x264da9;let _0x2f37db=_0x3754dd[_0x738c2e(0x2cc)](_0x28bd67[_0x738c2e(0x2ea)]);this['_disposableCollection']['add'](_0x2f37db[_0x738c2e(0x221)][_0x738c2e(0x329)](_0x2d87e6=>{const _0x2dd29f=_0x738c2e;switch(_0x2d87e6){case _0x28bd67[_0x2dd29f(0x239)][_0x2dd29f(0x2a2)]:this[_0x2dd29f(0x24d)][_0x2dd29f(0x31e)](),this[_0x2dd29f(0x20f)]['close']();break;case _0x28bd67[_0x2dd29f(0x239)]['Exited']:this[_0x2dd29f(0x2b7)]['executeCommand'](_0x38b9e3['id']),this[_0x2dd29f(0x317)]();break;case _0x28bd67[_0x2dd29f(0x239)][_0x2dd29f(0x282)]:this[_0x2dd29f(0x317)](),this[_0x2dd29f(0x27e)][_0x2dd29f(0x28c)]({'content':this[_0x2dd29f(0x2e4)]['t'](_0x2dd29f(0x322)),'type':_0x2a3bf8[_0x2dd29f(0x31c)][_0x2dd29f(0x282)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x738c2e(0x1fb)](_0x2f37db[_0x738c2e(0x254)][_0x738c2e(0x329)](async _0xb35ba6=>{const _0x7d5e4=_0x738c2e;_0xb35ba6&&this[_0x7d5e4(0x2b7)][_0x7d5e4(0x229)](_0x2bd1a1[_0x7d5e4(0x275)]['id'],{'unitId':_0x1a5dc3,'revision':_0xb35ba6});}));}['_checkCanRevert'](_0x292ff2){const _0x1ae72c=_0x264da9;let _0x1603f7=this[_0x1ae72c(0x2d5)][_0x1ae72c(0x318)](_0x292ff2)[_0x1ae72c(0x287)]()[_0x1ae72c(0x272)](_0x16dddf=>_0x16dddf[_0x1ae72c(0x2a9)]()),_0x4dc9ed=new _0x2b467b[(_0x1ae72c(0x2f5))](_0x292ff2)['id'],_0x5af2e7=_0x1603f7[_0x1ae72c(0x272)](_0x51fb66=>new _0x2b467b['WorksheetEditPermission'](_0x292ff2,_0x51fb66)['id']),_0x555130=_0x1603f7[_0x1ae72c(0x272)](_0xf30886=>this[_0x1ae72c(0x2a0)][_0x1ae72c(0x231)](_0x292ff2,_0xf30886)[_0x1ae72c(0x272)](_0x2370d5=>new _0x2b467b[(_0x1ae72c(0x1f7))](_0x292ff2,_0xf30886,_0x2370d5[_0x1ae72c(0x2ed)])['id']))[_0x1ae72c(0x2dc)](),_0x41f57f=new _0x2b467b[(_0x1ae72c(0x1be))](_0x292ff2)['id'];return this['_permissionService'][_0x1ae72c(0x2eb)]([_0x4dc9ed,..._0x5af2e7,..._0x555130,_0x41f57f])[_0x1ae72c(0x26b)](_0x3d2bc7=>!!_0x3d2bc7['value']);}};_0x4949a6=_0x2e7be4([_0x4f392e(0x0,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x3f4cab[_0x264da9(0x2be)])),_0x4f392e(0x1,_0x3f4cab[_0x264da9(0x309)]),_0x4f392e(0x2,_0x3f4cab[_0x264da9(0x2aa)]),_0x4f392e(0x3,_0x3f4cab[_0x264da9(0x1da)]),_0x4f392e(0x4,_0x33b4c9[_0x264da9(0x1c5)]),_0x4f392e(0x5,_0x3f4cab[_0x264da9(0x22f)]),_0x4f392e(0x6,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x2b467b[_0x264da9(0x1ea)])),_0x4f392e(0x7,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x33b4c9[_0x264da9(0x1fa)])),_0x4f392e(0x8,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x33b4c9[_0x264da9(0x215)])),_0x4f392e(0x9,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x3f4cab[_0x264da9(0x1c2)]))],_0x4949a6);let _0x43330e=class extends _0x3f4cab['Plugin']{constructor(_0x86a601=_0x3d6cb4,_0x1c2fc2,_0x1506d7){const _0xb3d319=_0x264da9;super(),this['_config']=_0x86a601,this[_0xb3d319(0x238)]=_0x1c2fc2,this[_0xb3d319(0x224)]=_0x1506d7;let {menu:_0x212f35,..._0x5c7a40}=(0x0,_0x3f4cab[_0xb3d319(0x326)])({},_0x3d6cb4,this['_config']);_0x212f35&&this[_0xb3d319(0x224)][_0xb3d319(0x298)]('menu',_0x212f35,{'merge':!0x0}),this[_0xb3d319(0x224)][_0xb3d319(0x298)](_0x4d3e2d,_0x5c7a40),this[_0xb3d319(0x29a)][_0xb3d319(0x28f)]&&this[_0xb3d319(0x224)][_0xb3d319(0x298)](_0xb3d319(0x26d),this[_0xb3d319(0x29a)][_0xb3d319(0x28f)]);}[_0x264da9(0x26c)](){const _0x1684c6=_0x264da9;[[_0x2670c3,{'useClass':_0x4949a6}],[_0x532111]][_0x1684c6(0x312)](_0x5a0baa=>this[_0x1684c6(0x238)][_0x1684c6(0x1fb)](_0x5a0baa));}[_0x264da9(0x20d)](){const _0x20e793=_0x264da9;this[_0x20e793(0x238)][_0x20e793(0x2cc)](_0x532111);}};_0x878f36(_0x43330e,_0x264da9(0x1f1),_0x3f4cab[_0x264da9(0x31f)]['UNIVER_UNKNOWN']),_0x878f36(_0x43330e,_0x264da9(0x274),_0x264da9(0x2c0)),_0x878f36(_0x43330e,'packageName',_0x85a720),_0x878f36(_0x43330e,_0x264da9(0x1ff),_0x4fb64e),_0x43330e=_0x2e7be4([(0x0,_0x3f4cab[_0x264da9(0x292)])(_0x190ca4[_0x264da9(0x2bb)]),_0x4f392e(0x1,(0x0,_0x3f4cab['Inject'])(_0x3f4cab[_0x264da9(0x201)])),_0x4f392e(0x2,_0x3f4cab[_0x264da9(0x2aa)])],_0x43330e);let _0x150d8a=class extends _0x3f4cab['RxDisposable']{constructor(_0xcb332f,_0x5c3d83,_0x436b15,_0x47df21,_0x2f2ad3,_0x132f27,_0x1ab987,_0x40e9ac,_0x16c8eb,_0x4f2e5a,_0x18443b){const _0xd7c262=_0x264da9;super(),this[_0xd7c262(0x2b7)]=_0xcb332f,this[_0xd7c262(0x1f5)]=_0x5c3d83,this[_0xd7c262(0x212)]=_0x436b15,this[_0xd7c262(0x1f2)]=_0x47df21,this['_localeService']=_0x2f2ad3,this[_0xd7c262(0x27e)]=_0x132f27,this[_0xd7c262(0x23b)]=_0x1ab987,this[_0xd7c262(0x1c1)]=_0x40e9ac,this[_0xd7c262(0x246)]=_0x16c8eb,this[_0xd7c262(0x2d5)]=_0x4f2e5a,this[_0xd7c262(0x2f8)]=_0x18443b,_0x878f36(this,_0xd7c262(0x1bc),null),this[_0xd7c262(0x1fe)]();}[_0x264da9(0x1fe)](){const _0x1138fd=_0x264da9;[_0x27c538,_0x38b9e3][_0x1138fd(0x312)](_0x2d61cc=>this[_0x1138fd(0x205)]((0x0,_0x3f4cab[_0x1138fd(0x1dc)])(this[_0x1138fd(0x2b7)][_0x1138fd(0x1d5)](_0x2d61cc)))),this[_0x1138fd(0x205)](this[_0x1138fd(0x212)][_0x1138fd(0x310)]('HistoryIcon',_0x356a75)),this[_0x1138fd(0x1f5)]['mergeMenu'](_0xcb55d3),this[_0x1138fd(0x205)](this[_0x1138fd(0x2b7)][_0x1138fd(0x290)](async(_0x53be81,_0x597da0)=>{const _0xbaf687=_0x1138fd;if(_0x53be81['id']===_0x2bd1a1[_0xbaf687(0x275)]['id']){let {unitId:_0xac40e8}=_0x53be81['params'];this[_0xbaf687(0x27e)][_0xbaf687(0x28c)]({'content':this[_0xbaf687(0x2e4)]['t'](_0xbaf687(0x244)),'type':_0x2a3bf8[_0xbaf687(0x31c)][_0xbaf687(0x26e)],'duration':0x1388});let _0x4153aa=this[_0xbaf687(0x23b)][_0xbaf687(0x2f4)](_0xac40e8);_0x597da0!=null&&_0x597da0[_0xbaf687(0x32b)]?this[_0xbaf687(0x280)](_0x4153aa,async()=>(setTimeout(()=>window[_0xbaf687(0x2b5)][_0xbaf687(0x2ba)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x4153aa,async()=>{const _0x3645ad=_0xbaf687;let _0x2a852a=this[_0x3645ad(0x2d5)][_0x3645ad(0x219)](_0x3f4cab[_0x3645ad(0x31f)]['UNIVER_SHEET']),_0x48ef24=_0x2a852a==null?void 0x0:_0x2a852a['getActiveSheet']();if(!_0x48ef24)return!0x1;this[_0x3645ad(0x2d5)][_0x3645ad(0x234)](_0xac40e8);let _0x11a2ff=await this['_dataLoaderService'][_0x3645ad(0x2ca)](_0xac40e8,_0x3f4cab['UniverInstanceType'][_0x3645ad(0x2d9)]);return _0x11a2ff&&_0x11a2ff instanceof _0x3f4cab[_0x3645ad(0x1f8)]?(await this[_0x3645ad(0x250)](_0x11a2ff,_0x48ef24['getSheetId']()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x2c5baa,_0x1df9d4,_0x208034=!0x1){const _0x150070=_0x264da9;let _0x19f3b3=(0x0,_0x55fd55[_0x150070(0x2cd)])([_0x2c5baa[_0x150070(0x299)][_0x150070(0x1d2)],_0x2c5baa[_0x150070(0x240)]])[_0x150070(0x329)](async([_0x78b72a,_0xe27863])=>{const _0x175bdc=_0x150070;if(_0x78b72a[_0x175bdc(0x208)]===_0x2bd1a1[_0x175bdc(0x253)]['CHANGESET_ACK']&&(_0xe27863==null?void 0x0:_0xe27863[_0x175bdc(0x2df)])===_0x53b8aa[_0x175bdc(0x2e6)][_0x175bdc(0x211)]&&_0x78b72a['data'][_0x175bdc(0x1e7)][_0x175bdc(0x2f2)](_0x21cc9e=>_0x21cc9e['id']===_0x2bd1a1['RevertRevisionMutation']['id'])&&await _0x1df9d4()){var _0x4a5412;this['_historyManagerService'][_0x175bdc(0x317)](),_0x19f3b3[_0x175bdc(0x1cb)](),this[_0x175bdc(0x1bc)]&&clearTimeout(this['_revertErrorTimer']),await((_0x4a5412=this[_0x175bdc(0x1c1)])==null?void 0x0:_0x4a5412['exhaustSavingTask']());}});_0x208034&&(this[_0x150070(0x1bc)]=setTimeout(()=>{const _0x40b221=_0x150070;_0x19f3b3[_0x40b221(0x1cb)](),this['_messageService'][_0x40b221(0x28c)]({'content':this[_0x40b221(0x2e4)]['t'](_0x40b221(0x21b)),'type':_0x2a3bf8[_0x40b221(0x31c)]['Error'],'duration':0xbb8});},0x1388));}async[_0x264da9(0x250)](_0xd850e5,_0x4edeed){const _0x2bd1cf=_0x264da9;await this[_0x2bd1cf(0x23f)](_0xd850e5,_0x4edeed),_0xd850e5[_0x2bd1cf(0x1cf)][_0x2bd1cf(0x28a)]((0x0,_0x55fd55[_0x2bd1cf(0x233)])(this[_0x2bd1cf(0x29e)]))[_0x2bd1cf(0x329)](_0x34e72f=>{const _0x3a1966=_0x2bd1cf;_0x34e72f&&this[_0x3a1966(0x1d9)](_0x34e72f);}),this['_urlService']['urlChange$']['pipe']((0x0,_0x55fd55[_0x2bd1cf(0x233)])(this[_0x2bd1cf(0x29e)]))['subscribe'](()=>this[_0x2bd1cf(0x23f)](_0xd850e5,_0x4edeed));}[_0x264da9(0x1d9)](_0x3611f3,_0x578fff=!0x1){const _0x1a61d1=_0x264da9;let _0x2e70f0=this[_0x1a61d1(0x2f8)][_0x1a61d1(0x27d)]('subunit');_0x3611f3[_0x1a61d1(0x2a9)]()!==_0x2e70f0&&this[_0x1a61d1(0x2f8)][_0x1a61d1(0x1db)](_0x1a61d1(0x1f3),_0x3611f3[_0x1a61d1(0x2a9)](),_0x578fff);}async[_0x264da9(0x23f)](_0x59459c,_0x5de4c7){const _0x192c48=_0x264da9;var _0xbde4c3;if(!_0x5de4c7||!_0x59459c[_0x192c48(0x213)](_0x5de4c7)){let _0x49b901=_0x59459c['getUnhiddenWorksheets']()[0x0],_0x31ca8d=_0x59459c['getSheetBySheetId'](_0x49b901);if(!_0x31ca8d)return;this[_0x192c48(0x1d9)](_0x31ca8d,!0x0),await this[_0x192c48(0x2b7)]['executeCommand'](_0x2b467b[_0x192c48(0x1bd)]['id'],{'unitId':_0x59459c[_0x192c48(0x1bf)](),'subUnitId':_0x49b901});return;}((_0xbde4c3=_0x59459c[_0x192c48(0x30d)]())==null?void 0x0:_0xbde4c3[_0x192c48(0x2a9)]())!==_0x5de4c7&&await this[_0x192c48(0x2b7)][_0x192c48(0x229)](_0x2b467b['SetWorksheetActivateCommand']['id'],{'unitId':_0x59459c[_0x192c48(0x1bf)](),'subUnitId':_0x5de4c7});}};_0x150d8a=_0x2e7be4([_0x4f392e(0x0,_0x3f4cab[_0x264da9(0x1da)]),_0x4f392e(0x1,_0x33b4c9[_0x264da9(0x2f6)]),_0x4f392e(0x2,(0x0,_0x3f4cab['Inject'])(_0x33b4c9[_0x264da9(0x2a4)])),_0x4f392e(0x3,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x2670c3)),_0x4f392e(0x4,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x3f4cab[_0x264da9(0x2be)])),_0x4f392e(0x5,_0x33b4c9[_0x264da9(0x1c5)]),_0x4f392e(0x6,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x53b8aa[_0x264da9(0x2a7)])),_0x4f392e(0x7,_0x53b8aa[_0x264da9(0x30b)]),_0x4f392e(0x8,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x53b8aa[_0x264da9(0x2c3)])),_0x4f392e(0x9,_0x3f4cab[_0x264da9(0x309)]),_0x4f392e(0xa,_0x2f1402['IURLService'])],_0x150d8a);let _0x3f552f=class extends _0x3f4cab[_0x264da9(0x2e5)]{constructor(_0x40c185=_0x3d6cb4,_0x47371d,_0x2a5e03){const _0x7bf448=_0x264da9;super(),this[_0x7bf448(0x29a)]=_0x40c185,this[_0x7bf448(0x238)]=_0x47371d,this[_0x7bf448(0x224)]=_0x2a5e03;let {menu:_0x1705bb,..._0x1d61e8}=(0x0,_0x3f4cab[_0x7bf448(0x326)])({},_0x3d6cb4,this[_0x7bf448(0x29a)]);_0x1705bb&&this[_0x7bf448(0x224)][_0x7bf448(0x298)](_0x7bf448(0x2b0),_0x1705bb,{'merge':!0x0}),this['_configService']['setConfig'](_0x4d3e2d,_0x1d61e8),this['_config'][_0x7bf448(0x28f)]&&this[_0x7bf448(0x224)][_0x7bf448(0x298)](_0x4032e2,this[_0x7bf448(0x29a)][_0x7bf448(0x28f)]);}[_0x264da9(0x26c)](){const _0x24e4a1=_0x264da9;[[_0x2670c3],[_0x150d8a]][_0x24e4a1(0x312)](_0x3c69ff=>this[_0x24e4a1(0x238)][_0x24e4a1(0x1fb)](_0x3c69ff));}[_0x264da9(0x20d)](){const _0x16ed19=_0x264da9;this['_injector'][_0x16ed19(0x2cc)](_0x150d8a);}};_0x878f36(_0x3f552f,_0x264da9(0x1f1),_0x3f4cab[_0x264da9(0x31f)][_0x264da9(0x2ec)]),_0x878f36(_0x3f552f,_0x264da9(0x274),_0x264da9(0x304)),_0x878f36(_0x3f552f,_0x264da9(0x23e),_0x85a720),_0x878f36(_0x3f552f,'version',_0x4fb64e),_0x3f552f=_0x2e7be4([(0x0,_0x3f4cab[_0x264da9(0x292)])(_0x190ca4[_0x264da9(0x2bb)]),_0x4f392e(0x1,(0x0,_0x3f4cab[_0x264da9(0x1e5)])(_0x3f4cab[_0x264da9(0x201)])),_0x4f392e(0x2,_0x3f4cab[_0x264da9(0x2aa)])],_0x3f552f),_0xa48dbc[_0x264da9(0x25e)]=_0x4d3e2d,Object['defineProperty'](_0xa48dbc,_0x264da9(0x1eb),{'enumerable':!0x0,'get':function(){return _0x2670c3;}}),Object[_0x264da9(0x2ab)](_0xa48dbc,_0x264da9(0x265),{'enumerable':!0x0,'get':function(){return _0x4949a6;}}),_0xa48dbc[_0x264da9(0x328)]=_0x27c538,_0xa48dbc[_0x264da9(0x25a)]=_0x4032e2,_0xa48dbc[_0x264da9(0x24f)]=_0x18670f,Object[_0x264da9(0x2ab)](_0xa48dbc,_0x264da9(0x243),{'enumerable':!0x0,'get':function(){return _0x43330e;}}),Object[_0x264da9(0x2ab)](_0xa48dbc,_0x264da9(0x1c9),{'enumerable':!0x0,'get':function(){return _0x3f552f;}});}));function _0x2278(_0x2aa7d2,_0x432d3d){_0x2aa7d2=_0x2aa7d2-0x1bc;const _0x14b940=_0x14b9();let _0x2278fc=_0x14b940[_0x2aa7d2];return _0x2278fc;}function _0x14b9(){const _0x2c5666=['history-icon_clip0_907_281','4035558JujnEJ','UniverSheetsConditionalFormattingUi','[HistoryLoaderService]:\x20Plugin\x20','loadUnit','UniverProSheetsChartUi','get','combineLatest','removeAll','UniverProEditHistoryLoader','dataset','path','UniverNetwork','symbol','trim','_univerInstanceService','assign','UniverSheetsFilterUi','UniverFormulaEnginePlugin','UNIVER_SHEET','@univerjs-pro/edit-history-loader','string','flat','url(#history-icon_clip0_907_281)','UniverDrawingUIPlugin','status','absolute','exhaustSavingTask','Disposable','UniverProSheetsSparkline','_localeService','Plugin','CollaborationStatus','UniverProSheetsSparklineUi','has','replace','HistoryManagerService','composePermission','UNIVER_UNKNOWN','permissionId','displayName','block','UniverSheetsConditionalFormattingPlugin','getConfig','some','\x20has\x20been\x20registered.','getCollabEntity','WorkbookEditablePermission','IMenuManagerService','1948715xcNhCE','_urlService','getLocales','getElementById','UniverSheetsConditionalFormattingUIPlugin','close','UniverSheetsTablePlugin','UniverDesign','_internalWebWorker','UniverCollaborationPlugin','asObservable','clipPath','getSheetCommandTarget','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverUi','UniverSheetsDataValidationMobileUIPlugin','substring','uComp','IUniverInstanceService','UniverIcon','ILocalCacheService','UniverMobileUIPlugin','getActiveSheet','next','UniverSheetsChartPlugin','register','width','forEach','appendChild','univer-history-container','historyUniver$','UniverSheetsFormulaPlugin','unMountHistoryContent','getUnit','_themeService','UniverDrawingUi','UniverSheetsFilterUIPlugin','MessageType','toString','closeAll','UniverInstanceType','UniverProCollaborationClient','Univer','editHistory.panel.listFetchError','invoke','UniverSheetsMobileUIPlugin','UniverDocsUi','merge','IImageIoService','ToggleEditHistoryOperation','subscribe','UniverRPCMainThreadPlugin','fromCollab','historyPanelComponentKey','BehaviorSubject','_revertErrorTimer','SetWorksheetActivateCommand','WorkbookRecoverHistoryPermission','getUnitId','2561638qVrBCc','_localCacheService','ThemeService','RxDisposable','BUTTON','IMessageService','4100931zRuGCY','univer.operation.toggle-edit-history','100%','UniverEditHistoryLoaderPlugin','zIndex','unsubscribe','getCurrentRangeDisable$','children','historyListServerUrl','activeSheet$','getMenuHiddenObservable','mergeMenu','event$','clear','current','registerCommand','7LifTRS','UniverProSheetsPivot','_historyUniver$','_updateURLWithCurrentState','ICommandService','setParam','toDisposable','UniverSheetsDrawing','params','__getInjector','decorate','mask','UniverSheetsConditionalFormatting','set','values','Inject','call','mutations','_permissionService','prototype','RangeProtectionRuleModel','HistoryLoaderService','setTheme','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','UniverSheetsShapeUIPlugin','getOwnPropertyDescriptor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','type','_historyManagerService','subunit','IAuthzIoService','_menuManagerService','univer.operation.exit-edit-history','RangeProtectionPermissionEditPoint','Workbook','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','IDialogService','add','position','currentTheme$','_init','version','LS_CONFIG_KEY','Injector','_pluginMap','urlChange$','UniverProLicense','disposeWithMe','http://www.w3.org/2000/svg','forwardRef','eventID','UniverSheetsHyperLink','UniverRpc','historyUniver','UniverDocsPlugin','onSteady','fill','_sidebarService','editHistory.panel.title','SYNCED','_componentManager','getSheetBySheetId','UniverSheetsUIPlugin','ISidebarService','display','defIds','UniverSheetsDataValidationUIPlugin','getCurrentUnitOfType','UniverProSheetsShapeUi','editHistory.panel.revertFailed','UniverDocs','then','terminate','default','UniverSheetsHyperLinkPlugin','status$','UniverUIPlugin','none','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','edit-history-loader.config','UniverSheetsPlugin','13369952uXLvtB','executeCommand','1em','UniverDataValidationPlugin','_initListener','UniverSheetsUi','idSuffix','IPermissionService','UniverSheetSparklineUIPlugin','getSubunitRuleList','CommandType','takeUntil','disposeUnit','colorChannel1','univer-history-container-mobile','UniverProCollaboration','_injector','HistoryModeStatus','[MobileHistoryLoaderService]:\x20Plugin\x20','_collaborationController','UniverSheetSparklinePlugin','dispose','packageName','_updateSubUnitFromURLParams','state$','UniverDrawingPlugin','DisposableCollection','UniverEditHistoryLoaderMobilePlugin','editHistory.panel.reverting','entries','_dataLoaderService','AuthzIoHttpService','historyPanelHidden','style','registerPlugin','defs','random','_dialogService','getUnhiddenWorksheets','UNIVER_HISTORY_CONTAINER_ID','_setupSubUnitSync','UniverSheetsFormulaUIPlugin','function','CollaborationEvent','revertRevision$','triggerLoadVersions','mountHistoryContent','UniverDrawing','includes','toPrimitive','UNIVER_CONTAINER_ID_KEY','UniverEditHistoryViewerMobilePlugin','UniverSheetsDrawingPlugin','currentColor','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','_initContainer','UniverProSheetsChart','setLocale','UniverSheetsShapePlugin','object','url(#$1','MobileHistoryLoaderService','history-container','div','UniverRenderEnginePlugin','UniverEditHistoryViewerPlugin','6510870TnCdrT','every','onStarting','UNIVER_CONTAINER_ID','Loading','getCurrentLocale','UniverSheetsPivotTablePlugin','_initUniver','map','_checkCanRevert','pluginName','RevertRevisionMutation','univer-container','UniverSheetsDataValidationUi','editHistory.info.initializing','UniverCore','toStringTag','height','constructor','getParam','_messageService','triggerCustomVersions','_handleRevertAcknowledgement','0\x200\x2016\x2016','Error','historyAIassistantEnabled','UniverSheetsDataValidationPlugin','UniverNetworkPlugin','amd','getSheets','HistoryIcon','1dZfGDc','pipe','UniverDocsUIPlugin','show','svg','createElement','univerContainerId','onCommandExecuted','UniverEngineRender','DependentOn','attrs','value','IRemoteInstanceService','UniverSheetsDataValidation','top','setConfig','session','_config','left','whenReady','6874684dEpwsP','dispose$','UniverSheets','_selectionProtectionRuleModel','0.22.0','Entered','UniverSheetsDrawingUi','ComponentManager','from','history-icon','CollaborationController','xlink:href','getSheetId','IConfigService','defineProperty','OPERATION','getAllPlugins','tag','darkMode$','menu','UniverSheetsFilter','UniverProSheetsShape','UniverSheetsFormula','UniverSheetsHyperLinkUIPlugin','location','UniverSheetsDrawingUIPlugin','_commandService','_disposableCollection','CHANGESET_ACK','reload','UniverLicensePlugin','_initPlugins','UniverSheetsChartUIPlugin','LocaleService','length','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverProCollaborationClientUi','UniverSheetsFilterPlugin','DataLoaderService','UniverSheetsHyperLinkUi','27dbdvzK'];_0x14b9=function(){return _0x2c5666;};return _0x14b9();}