@univerjs-pro/edit-history-loader 0.12.1 → 0.12.2-experimental.20251129-0fa20cd

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/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x50161b=_0x4625;function _0x27fa(){const _0x57ffe1=['ISidebarService','random','LS_CONFIG_KEY','flat','UniverUIPlugin','getCurrentLocale','defs','M0\x200H16V16H0z','editHistory.panel.reverting','historyUniver','WorkbookRecoverHistoryPermission','onCommandExecuted','_permissionService','UniverEditHistoryLoaderPlugin','assign','LocaleService','composePermission','Inject','getSheets','status','length','edit-history-loader.config','UniverSheetsNumfmtPlugin','UniverCollaborationPlugin','toStringTag','registerPlugin','_configService','menu','value','setConfig','clipPath','currentColor','HistoryLoaderService','174LnFXBN','IImageIoService','has','Disposable','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','_pluginMap','Entered','width','UniverInstanceType','_historyManagerService','merge','params','Exited','_messageService','_config','195987hEFCGG','2RIFUYh','show','RangeProtectionPermissionEditPoint','UniverFormulaEnginePlugin','_sidebarService','http://www.w3.org/2000/svg','mountHistoryContent','display','684emsVVB','HistoryModeStatus','every','WorkbookViewHistoryPermission','fill','MessageType','0\x200\x2016\x2016','symbol','xlink:href','editHistory.panel.revertFailed','ICommandService','ThemeService','OTHERS','dispose','univer-history-container','children','getUnit','attrs','_disposableCollection','asObservable','IMenuManagerService','clear','_revertErrorTimer','OPERATION','getAllPlugins','IUniverInstanceService','setDarkMode','_menuManagerService','IPermissionService','entries','ILocalCacheService','UniverDocsPlugin','IAuthzIoService','replace','IMessageService','div','defineProperty','displayName','UniverLicensePlugin','from','top','getMenuHiddenObservable','UNIVER_HISTORY_CONTAINER_ID','\x20has\x20been\x20registered.','mergeMenu','url(#$1','UniverSheetsPivotTablePlugin','MenuItemType','darkMode$','27FAIMtP','appendChild','HistoryManagerService','uComp','UniverDocsUIPlugin','colorChannel1','includes','historyUniver$','state$','IConfigService','session','UniverSheetSparklineUIPlugin','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','getElementById','getSubunitRuleList','data','CollaborationStatus','createElement','_historyUniver$','_themeService','string','215957AVsLKo','_univerInstanceService','1em','registerCommand','UNIVER_UNKNOWN','UniverRPCMainThreadPlugin','invoke','exhaustSavingTask','UniverSheetsConditionalFormattingPlugin','current','history-icon_clip0_907_281','273035RyOfdJ','UniverSheetsUIPlugin','add','disposeWithMe','_checkCanRevert','defIds','ComponentManager','forwardRef','map','setTheme','close','UniverSheetsFilterPlugin','mutations','UniverSheetsHyperLinkUIPlugin','getOwnPropertyDescriptor','useRef','RevertRevisionMutation','689GCVnTs','300314xTHRUe','_collaborationController','_componentManager','getCollabEntity','_initListener','idSuffix','_localeService','style','getCurrentRangeDisable$','RxDisposable','UniverEditHistoryViewerPlugin','univerContainerId','396507HZUMRZ','pluginName','_selectionProtectionRuleModel','_localCacheService','_initPlugins','WorksheetEditPermission','toDisposable','none','currentTheme$','get','UniverSheetSparklinePlugin','UniverSheetsConditionalFormattingUIPlugin','position','BUTTON','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverDataValidationPlugin','IDialogService','1639051lINeSk','1000','getConfig','BehaviorSubject','values','revertRevision$','reload','Module','status$','32CdHURj','getSheetCommandTarget','Injector','path','./worker.js','UniverRenderEnginePlugin','UniverSheetsDataValidationPlugin','HistoryIcon','register','tag','historyListServerUrl','3821620OFTjTs','use','univerjs-icon\x20univerjs-icon-','next','setLocale','UniverSheetsDataValidationUIPlugin','RibbonStartGroup','UNIVER_SHEET','Error','UniverSheetsDrawingPlugin','CollaborationEvent','toString','forEach','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','_dialogService','eventID','unsubscribe','UniverDrawingPlugin','subscribe','UniverSheetsFilterUIPlugin','280lenGuB','_init','onStarting','_injector','_commandService','unMountHistoryContent','onSteady','100%','_initUniver','event$','UniverSheetsHyperLinkPlugin','WorkbookEditablePermission','substring','UNIVER_CONTAINER_ID','Univer'];_0x27fa=function(){return _0x57ffe1;};return _0x27fa();}(function(_0x2f0850,_0x14d88b){const _0x444bee=_0x4625,_0x5cb6ef=_0x2f0850();while(!![]){try{const _0x6384a2=parseInt(_0x444bee(0x2d1))/0x1*(parseInt(_0x444bee(0x249))/0x2)+parseInt(_0x444bee(0x2c0))/0x3*(parseInt(_0x444bee(0x1ea))/0x4)+parseInt(_0x444bee(0x2a2))/0x5*(-parseInt(_0x444bee(0x239))/0x6)+parseInt(_0x444bee(0x297))/0x7*(parseInt(_0x444bee(0x209))/0x8)+parseInt(_0x444bee(0x282))/0x9*(-parseInt(_0x444bee(0x1f5))/0xa)+parseInt(_0x444bee(0x248))/0xb*(parseInt(_0x444bee(0x251))/0xc)+parseInt(_0x444bee(0x2b3))/0xd*(-parseInt(_0x444bee(0x2b4))/0xe);if(_0x6384a2===_0x14d88b)break;else _0x5cb6ef['push'](_0x5cb6ef['shift']());}catch(_0x555832){_0x5cb6ef['push'](_0x5cb6ef['shift']());}}}(_0x27fa,0xe1c5d));var j=Object[_0x50161b(0x275)],F=(_0x4fece8,_0x33133e,_0x2cc9fc)=>_0x33133e in _0x4fece8?j(_0x4fece8,_0x33133e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cc9fc}):_0x4fece8[_0x33133e]=_0x2cc9fc,_=(_0x2be58e,_0x143f7b,_0x490253)=>F(_0x2be58e,typeof _0x143f7b!=_0x50161b(0x258)?_0x143f7b+'':_0x143f7b,_0x490253);Object[_0x50161b(0x275)](exports,Symbol[_0x50161b(0x230)],{'value':_0x50161b(0x1e8)});const o=require('@univerjs/core'),I=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),b=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),T=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),H=require('@univerjs-pro/license'),x=require('@univerjs-pro/sheets-pivot'),A=require('@univerjs-pro/sheets-sparkline'),V=require('@univerjs-pro/sheets-sparkline-ui'),G=require('@univerjs/data-validation'),W=require('@univerjs/docs'),Y=require('@univerjs/docs-ui'),L=require('@univerjs/drawing'),B=require('@univerjs/drawing-ui'),K=require('@univerjs/engine-formula'),z=require('@univerjs/engine-render'),Z=require('@univerjs/network'),J=require('@univerjs/rpc'),Q=require('@univerjs/sheets-conditional-formatting'),X=require('@univerjs/sheets-conditional-formatting-ui'),ee=require('@univerjs/sheets-data-validation'),ie=require('@univerjs/sheets-data-validation-ui'),te=require('@univerjs/sheets-drawing'),re=require('@univerjs/sheets-drawing-ui'),ne=require('@univerjs/sheets-filter'),se=require('@univerjs/sheets-filter-ui'),oe=require('@univerjs/sheets-formula'),ae=require('@univerjs/sheets-formula-ui'),ce=require('@univerjs/sheets-hyper-link'),le=require('@univerjs/sheets-hyper-link-ui'),ue=require('@univerjs/sheets-numfmt'),w=require('@univerjs/sheets-ui'),O=_0x50161b(0x22d),R={};function k({ref:_0xbf286f,..._0x5419fa}){const _0x596efe=_0x50161b,{icon:_0x3aa246,id:_0x571887,className:_0x27362c,extend:_0x2891e3,..._0x5728ee}=_0x5419fa,_0x1c153a=(_0x596efe(0x1f7)+_0x571887+'\x20'+(_0x27362c||''))['trim'](),_0x469126=U[_0x596efe(0x2b1)]('_'+ve());return D(_0x3aa246,''+_0x571887,{'defIds':_0x3aa246[_0x596efe(0x2a7)],'idSuffix':_0x469126[_0x596efe(0x2a0)]},{'ref':_0xbf286f,'className':_0x1c153a,..._0x5728ee},_0x2891e3);}function D(_0x2d5196,_0xf220d5,_0x3632f7,_0x310720,_0x1dba81){const _0x135f85=_0x50161b;return U[_0x135f85(0x293)](_0x2d5196[_0x135f85(0x1f3)],{'key':_0xf220d5,...he(_0x2d5196,_0x3632f7,_0x1dba81),..._0x310720},(ge(_0x2d5196,_0x3632f7)['children']||[])[_0x135f85(0x2aa)]((_0x1838f7,_0x582437)=>D(_0x1838f7,_0xf220d5+'-'+_0x2d5196['tag']+'-'+_0x582437,_0x3632f7,void 0x0,_0x1dba81)));}function _0x4625(_0x3c792b,_0x1d972e){const _0x27faca=_0x27fa();return _0x4625=function(_0x462589,_0x160603){_0x462589=_0x462589-0x1e8;let _0x4c454a=_0x27faca[_0x462589];return _0x4c454a;},_0x4625(_0x3c792b,_0x1d972e);}function he(_0x316420,_0x39c019,_0x5b476f){const _0x1379fd=_0x50161b,_0x213813={..._0x316420[_0x1379fd(0x262)]};_0x5b476f!=null&&_0x5b476f['colorChannel1']&&_0x213813[_0x1379fd(0x255)]===_0x1379fd(0x287)&&(_0x213813['fill']=_0x5b476f[_0x1379fd(0x287)]),_0x316420[_0x1379fd(0x1f3)]==='mask'&&_0x213813['id']&&(_0x213813['id']=_0x213813['id']+_0x39c019[_0x1379fd(0x2b9)]),Object[_0x1379fd(0x26e)](_0x213813)['forEach'](([_0x4fedbd,_0x1d20f4])=>{const _0x1910b2=_0x1379fd;_0x4fedbd==='mask'&&typeof _0x1d20f4=='string'&&(_0x213813[_0x4fedbd]=_0x1d20f4[_0x1910b2(0x272)](/url\(#(.*)\)/,_0x1910b2(0x27e)+_0x39c019[_0x1910b2(0x2b9)]+')'));});const {defIds:_0x59a00f}=_0x39c019;return!_0x59a00f||_0x59a00f[_0x1379fd(0x22c)]===0x0||(_0x316420['tag']===_0x1379fd(0x1f6)&&_0x213813[_0x1379fd(0x259)]&&(_0x213813['xlink:href']=_0x213813['xlink:href']+_0x39c019[_0x1379fd(0x2b9)]),Object[_0x1379fd(0x26e)](_0x213813)[_0x1379fd(0x201)](([_0x2a6013,_0x52af3c])=>{const _0x3bae7b=_0x1379fd;typeof _0x52af3c==_0x3bae7b(0x296)&&(_0x213813[_0x2a6013]=_0x52af3c['replace'](/url\(#(.*)\)/,_0x3bae7b(0x27e)+_0x39c019[_0x3bae7b(0x2b9)]+')'));})),_0x213813;}function ge(_0x2cdfd0,_0x57059a){const _0xf72fa6=_0x50161b;var _0x4f3955;const {defIds:_0x401f06}=_0x57059a;return!_0x401f06||_0x401f06['length']===0x0?_0x2cdfd0:_0x2cdfd0[_0xf72fa6(0x1f3)]===_0xf72fa6(0x21e)&&((_0x4f3955=_0x2cdfd0[_0xf72fa6(0x260)])!=null&&_0x4f3955[_0xf72fa6(0x22c)])?{..._0x2cdfd0,'children':_0x2cdfd0[_0xf72fa6(0x260)]['map'](_0x30302e=>typeof _0x30302e[_0xf72fa6(0x262)]['id']==_0xf72fa6(0x296)&&_0x401f06&&_0x401f06[_0xf72fa6(0x288)](_0x30302e[_0xf72fa6(0x262)]['id'])?{..._0x30302e,'attrs':{..._0x30302e[_0xf72fa6(0x262)],'id':_0x30302e[_0xf72fa6(0x262)]['id']+_0x57059a['idSuffix']}}:_0x30302e)}:_0x2cdfd0;}function ve(){const _0x345127=_0x50161b;return Math[_0x345127(0x219)]()[_0x345127(0x200)](0x24)[_0x345127(0x215)](0x2,0x8);}k['displayName']='UniverIcon';const de={'tag':'svg','attrs':{'xmlns':_0x50161b(0x24e),'fill':'none','viewBox':_0x50161b(0x257),'width':'1em','height':_0x50161b(0x299)},'children':[{'tag':'g','attrs':{'fill':_0x50161b(0x237),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':'path','attrs':{'d':_0x50161b(0x23d)}},{'tag':_0x50161b(0x1ed),'attrs':{'d':_0x50161b(0x202)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x50161b(0x236),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x50161b(0x1ed),'attrs':{'fill':'white','d':_0x50161b(0x21f)}}]}]}],'defIds':[_0x50161b(0x2a1)]},q=U[_0x50161b(0x2a9)](function(_0x5542aa,_0x5e1b04){const _0x1ccc99=_0x50161b;return U['createElement'](k,Object[_0x1ccc99(0x226)]({},_0x5542aa,{'id':'history-icon','ref':_0x5e1b04,'icon':de}));});q[_0x50161b(0x276)]=_0x50161b(0x1f1);var _e=Object[_0x50161b(0x2b0)],Se=(_0x851bb6,_0x3f422d,_0x47767e,_0x581fde)=>{const _0x415364=_0x50161b;for(var _0x483211=_0x581fde>0x1?void 0x0:_0x581fde?_e(_0x3f422d,_0x47767e):_0x3f422d,_0x9cbccc=_0x851bb6[_0x415364(0x22c)]-0x1,_0x417c47;_0x9cbccc>=0x0;_0x9cbccc--)(_0x417c47=_0x851bb6[_0x9cbccc])&&(_0x483211=_0x417c47(_0x483211)||_0x483211);return _0x483211;},g=(_0x548dc5,_0x51118a)=>(_0x8c5081,_0x547e8c)=>_0x51118a(_0x8c5081,_0x547e8c,_0x548dc5);const me='univer-container',P=_0x50161b(0x216),y=_0x50161b(0x25f);exports[_0x50161b(0x238)]=class extends o[_0x50161b(0x23c)]{constructor(_0x23c9f6,_0xf71162,_0x49962d,_0x19c522,_0x57ad85,_0x3fbf6a,_0x40f17b,_0x11f8a6,_0x2791bd,_0x389f43){const _0x236f63=_0x50161b;super(),_(this,_0x236f63(0x294),new T[(_0x236f63(0x2d4))](null)),_(this,_0x236f63(0x289),this[_0x236f63(0x294)][_0x236f63(0x264)]()),_(this,_0x236f63(0x263),new o['DisposableCollection']()),_(this,_0x236f63(0x23e),new Map()),(this[_0x236f63(0x2ba)]=_0x23c9f6,this[_0x236f63(0x298)]=_0xf71162,this['_configService']=_0x49962d,this['_commandService']=_0x19c522,this[_0x236f63(0x246)]=_0x57ad85,this[_0x236f63(0x224)]=_0x3fbf6a,this['_selectionProtectionRuleModel']=_0x40f17b,this[_0x236f63(0x203)]=_0x11f8a6,this[_0x236f63(0x24d)]=_0x2791bd,this['_themeService']=_0x389f43,this['_init']());}get[_0x50161b(0x221)](){const _0x3f94f4=_0x50161b;return this[_0x3f94f4(0x294)][_0x3f94f4(0x234)];}[_0x50161b(0x20a)](){const _0x2e35b0=_0x50161b;this['_initContainer'](),this[_0x2e35b0(0x2c4)]();}['_initContainer'](){const _0x16162f=_0x50161b;var _0x75352b;const _0x4eba2e=(_0x75352b=this[_0x16162f(0x232)][_0x16162f(0x2d3)](P))!=null?_0x75352b:me,_0x185d7c=document[_0x16162f(0x28f)](_0x4eba2e);if(!_0x185d7c)return;const _0x13cd95=document[_0x16162f(0x293)](_0x16162f(0x274));_0x13cd95['id']=y,_0x13cd95['dataset'][_0x16162f(0x285)]='history-container',_0x13cd95[_0x16162f(0x2bb)][_0x16162f(0x2cc)]='absolute',_0x13cd95[_0x16162f(0x2bb)][_0x16162f(0x279)]='0',_0x13cd95['style']['left']='0',_0x13cd95[_0x16162f(0x2bb)][_0x16162f(0x240)]='100%',_0x13cd95[_0x16162f(0x2bb)]['height']=_0x16162f(0x210),_0x13cd95[_0x16162f(0x2bb)]['zIndex']=_0x16162f(0x2d2),_0x13cd95[_0x16162f(0x2bb)][_0x16162f(0x250)]=_0x16162f(0x2c7),_0x185d7c[_0x16162f(0x283)](_0x13cd95);}['_initPlugins'](){const _0x3f31b0=_0x50161b;var _0x1882f3;[[z[_0x3f31b0(0x1ef)]],[h[_0x3f31b0(0x21c)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x3f31b0(0x2d0)],null]]}],[Z['UniverNetworkPlugin']],[L[_0x3f31b0(0x206)],{'override':[[L[_0x3f31b0(0x23a)],null]]}],[W[_0x3f31b0(0x270)],{'hasScroll':!0x1}],[Y[_0x3f31b0(0x286)]],[ue[_0x3f31b0(0x22e)]],[d['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[w[_0x3f31b0(0x2a3)]],[oe['UniverSheetsFormulaPlugin']],[ae['UniverSheetsFormulaUIPlugin']],[I[_0x3f31b0(0x22f)]],[ne[_0x3f31b0(0x2ad)]],[se[_0x3f31b0(0x208)]],[Q[_0x3f31b0(0x29f)]],[X[_0x3f31b0(0x2cb)]],[ce[_0x3f31b0(0x213)]],[le[_0x3f31b0(0x2af)]],[G[_0x3f31b0(0x2cf)]],[ee[_0x3f31b0(0x1f0)]],[ie[_0x3f31b0(0x1fa)]],[K[_0x3f31b0(0x24c)],{'notExecuteFormula':!0x0}],[J[_0x3f31b0(0x29c)],{'workerURL':_0x3f31b0(0x1ee)}],[B['UniverDrawingUIPlugin']],[te[_0x3f31b0(0x1fe)]],[re['UniverSheetsDrawingUIPlugin']],[A[_0x3f31b0(0x2ca)]],[V[_0x3f31b0(0x28d)]],[x[_0x3f31b0(0x27f)],{'notExecuteFormula':!0x0}],[m[_0x3f31b0(0x2be)],{'historyListServerUrl':(_0x1882f3=this['_configService']['getConfig'](O))==null?void 0x0:_0x1882f3[_0x3f31b0(0x1f4)]}]][_0x3f31b0(0x201)](([_0x1ac29c,_0x4d60e3])=>this[_0x3f31b0(0x231)](_0x1ac29c,_0x4d60e3));}[_0x50161b(0x25e)](){const _0x371f41=_0x50161b;super[_0x371f41(0x25e)](),this['unMountHistoryContent'](),this[_0x371f41(0x23e)][_0x371f41(0x266)]();}[_0x50161b(0x231)](_0x32c147,_0x45018d,_0x150229){const _0x50d47d=_0x50161b;if(this[_0x50d47d(0x23e)][_0x50d47d(0x23b)](_0x32c147[_0x50d47d(0x2c1)])&&!_0x150229)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x32c147[_0x50d47d(0x2c1)]+_0x50d47d(0x27c));this[_0x50d47d(0x23e)]['set'](_0x32c147['pluginName'],[_0x32c147,_0x45018d]);}[_0x50161b(0x269)](){const _0x4f8450=_0x50161b;return Array[_0x4f8450(0x278)](this[_0x4f8450(0x23e)][_0x4f8450(0x2d5)]());}[_0x50161b(0x24f)](_0x1bef9f){const _0x456b08=_0x50161b,_0x24715f=document['getElementById'](y);_0x24715f&&(_0x24715f[_0x456b08(0x2bb)][_0x456b08(0x250)]='block',this[_0x456b08(0x211)](_0x1bef9f,y));}['unMountHistoryContent'](){const _0x90611=_0x50161b;var _0x4956c4;this[_0x90611(0x263)]['dispose'](),(_0x4956c4=this[_0x90611(0x221)])==null||_0x4956c4[_0x90611(0x25e)](),this[_0x90611(0x294)][_0x90611(0x1f8)](null);const _0x36c40f=document[_0x90611(0x28f)](y);_0x36c40f&&(_0x36c40f['style'][_0x90611(0x250)]=_0x90611(0x2c7));}[_0x50161b(0x211)](_0x219fa1,_0x554b56){const _0x338809=_0x50161b;if(this[_0x338809(0x221)])return;const _0x1f22fa=new o[(_0x338809(0x217))]({'locales':{[this[_0x338809(0x2ba)][_0x338809(0x21d)]()]:this[_0x338809(0x2ba)]['getLocales']()},'override':[[o[_0x338809(0x271)],{'useClass':f['AuthzIoHttpService']}]]}),_0x3561b1=_0x1f22fa['__getInjector']();this['disposeWithMe'](this[_0x338809(0x295)][_0x338809(0x281)][_0x338809(0x207)](_0x28d66f=>{const _0x531d8a=_0x338809;_0x3561b1[_0x531d8a(0x2c9)](o[_0x531d8a(0x25c)])[_0x531d8a(0x26b)](_0x28d66f);})),this['disposeWithMe'](this[_0x338809(0x295)][_0x338809(0x2c8)][_0x338809(0x207)](_0x3050e2=>{const _0x927517=_0x338809;_0x3561b1[_0x927517(0x2c9)](o[_0x927517(0x25c)])[_0x927517(0x2ab)](_0x3050e2);})),_0x3561b1[_0x338809(0x2c9)](o[_0x338809(0x227)])[_0x338809(0x1f9)](this[_0x338809(0x2ba)][_0x338809(0x21d)]()),_0x3561b1[_0x338809(0x2c9)](o[_0x338809(0x28b)])[_0x338809(0x235)](f[_0x338809(0x2ce)],this[_0x338809(0x232)][_0x338809(0x2d3)](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x48cc05=this['_configService'][_0x338809(0x2d3)](H[_0x338809(0x21a)]);_0x48cc05&&_0x1f22fa[_0x338809(0x231)](H[_0x338809(0x277)],{'license':_0x48cc05['ls']}),this[_0x338809(0x23e)][_0x338809(0x201)](([_0x598d1b,_0x5ce6ab])=>{const _0x37e045=_0x338809;_0x1f22fa[_0x37e045(0x231)](_0x598d1b,_0x5ce6ab);}),_0x3561b1[_0x338809(0x29d)](_0x40e8e7=>{const _0x290ea0=_0x338809;this[_0x290ea0(0x2b8)](_0x40e8e7,_0x219fa1);}),this[_0x338809(0x294)][_0x338809(0x1f8)](_0x1f22fa);const _0x30f1d3=_0x3561b1[_0x338809(0x2c9)](m[_0x338809(0x284)]),_0x4b653d=this['_checkCanRevert'](_0x219fa1);_0x30f1d3['triggerLoadVersions'](_0x219fa1,_0x554b56,_0x4b653d);}[_0x50161b(0x2b8)](_0x711fb2,_0x4aefc9){const _0x3353e9=_0x50161b,_0x4f56ec=_0x711fb2['get'](m[_0x3353e9(0x284)]);this[_0x3353e9(0x263)]['add'](_0x4f56ec[_0x3353e9(0x1e9)][_0x3353e9(0x207)](_0x18ee40=>{const _0x4e3f41=_0x3353e9;switch(_0x18ee40){case m['HistoryModeStatus'][_0x4e3f41(0x23f)]:this[_0x4e3f41(0x203)]['closeAll'](),this[_0x4e3f41(0x24d)][_0x4e3f41(0x2ac)]();break;case m['HistoryModeStatus'][_0x4e3f41(0x245)]:this[_0x4e3f41(0x20e)]();break;case m[_0x4e3f41(0x252)][_0x4e3f41(0x1fd)]:this[_0x4e3f41(0x20e)](),this[_0x4e3f41(0x246)][_0x4e3f41(0x24a)]({'content':this[_0x4e3f41(0x2ba)]['t']('editHistory.panel.listFetchError'),'type':b[_0x4e3f41(0x256)][_0x4e3f41(0x1fd)],'duration':0xbb8});break;}})),this[_0x3353e9(0x263)][_0x3353e9(0x2a4)](_0x4f56ec[_0x3353e9(0x2d6)][_0x3353e9(0x207)](async _0x227965=>{const _0x2c830a=_0x3353e9;_0x227965&&this['_commandService']['executeCommand'](I[_0x2c830a(0x2b2)]['id'],{'unitId':_0x4aefc9,'revision':_0x227965});}));}[_0x50161b(0x2a6)](_0x5098b6){const _0x30731d=_0x50161b,_0x263d9f=this[_0x30731d(0x298)][_0x30731d(0x261)](_0x5098b6)[_0x30731d(0x22a)]()[_0x30731d(0x2aa)](_0x3dc147=>_0x3dc147['getSheetId']()),_0x21c462=new d['WorkbookEditablePermission'](_0x5098b6)['id'],_0x561106=_0x263d9f[_0x30731d(0x2aa)](_0x124289=>new d[(_0x30731d(0x2c5))](_0x5098b6,_0x124289)['id']),_0x30e882=_0x263d9f[_0x30731d(0x2aa)](_0x1ad31c=>this[_0x30731d(0x2c2)][_0x30731d(0x290)](_0x5098b6,_0x1ad31c)[_0x30731d(0x2aa)](_0x233ac6=>new d[(_0x30731d(0x24b))](_0x5098b6,_0x1ad31c,_0x233ac6['permissionId'])['id']))[_0x30731d(0x21b)](),_0x58de88=new d[(_0x30731d(0x222))](_0x5098b6)['id'];return this[_0x30731d(0x224)][_0x30731d(0x228)]([_0x21c462,..._0x561106,..._0x30e882,_0x58de88])[_0x30731d(0x253)](_0x2b0ff5=>!!_0x2b0ff5[_0x30731d(0x234)]);}},exports[_0x50161b(0x238)]=Se([g(0x0,o[_0x50161b(0x229)](o[_0x50161b(0x227)])),g(0x1,o[_0x50161b(0x26a)]),g(0x2,o[_0x50161b(0x28b)]),g(0x3,o[_0x50161b(0x25b)]),g(0x4,h['IMessageService']),g(0x5,o[_0x50161b(0x26d)]),g(0x6,o[_0x50161b(0x229)](d['RangeProtectionRuleModel'])),g(0x7,o[_0x50161b(0x229)](h[_0x50161b(0x2d0)])),g(0x8,o[_0x50161b(0x229)](h[_0x50161b(0x218)])),g(0x9,o['Inject'](o[_0x50161b(0x25c)]))],exports[_0x50161b(0x238)]);const M={'id':'univer.operation.toggle-edit-history','type':o['CommandType'][_0x50161b(0x268)],'handler':_0x2afb5a=>{const _0xf3692f=_0x50161b,_0x95fb9a=_0x2afb5a['get'](exports[_0xf3692f(0x238)]),_0x2ea204=_0x2afb5a[_0xf3692f(0x2c9)](o['IUniverInstanceService']),{unitId:_0x3ea2e4}=d[_0xf3692f(0x1eb)](_0x2ea204)||{};return _0x3ea2e4?(_0x95fb9a['mountHistoryContent'](_0x3ea2e4),!0x0):!0x1;}};function ye(_0x3ef636){const _0x160973=_0x50161b;return{'id':M['id'],'type':h[_0x160973(0x280)][_0x160973(0x2cd)],'icon':_0x160973(0x1f1),'tooltip':'editHistory.panel.title','hidden$':h[_0x160973(0x27a)](_0x3ef636,o[_0x160973(0x241)][_0x160973(0x1fc)]),'disabled$':w[_0x160973(0x2bc)](_0x3ef636,{'workbookTypes':[d[_0x160973(0x214)],d[_0x160973(0x254)]],'worksheetTypes':[],'rangeTypes':[]})};}const fe={[h[_0x50161b(0x1fb)][_0x50161b(0x25d)]]:{[M['id']]:{'order':0.2,'menuItemFactory':ye}}};var pe=Object['getOwnPropertyDescriptor'],Ie=(_0x46a227,_0x1e7062,_0x3bbc1b,_0x4883cf)=>{const _0x31225e=_0x50161b;for(var _0x505e0e=_0x4883cf>0x1?void 0x0:_0x4883cf?pe(_0x1e7062,_0x3bbc1b):_0x1e7062,_0x1f2cde=_0x46a227[_0x31225e(0x22c)]-0x1,_0x58b987;_0x1f2cde>=0x0;_0x1f2cde--)(_0x58b987=_0x46a227[_0x1f2cde])&&(_0x505e0e=_0x58b987(_0x505e0e)||_0x505e0e);return _0x505e0e;},S=(_0xacc713,_0x17d780)=>(_0x272a7b,_0x2b7669)=>_0x17d780(_0x272a7b,_0x2b7669,_0xacc713);let E=class extends o[_0x50161b(0x2bd)]{constructor(_0x1737c7,_0xb720ce,_0x28f9df,_0x2e64a2,_0x131666,_0x58fa05,_0x863d07,_0x3df50d){const _0x40d64d=_0x50161b;super(),_(this,_0x40d64d(0x267),null),(this['_commandService']=_0x1737c7,this[_0x40d64d(0x26c)]=_0xb720ce,this[_0x40d64d(0x2b6)]=_0x28f9df,this[_0x40d64d(0x242)]=_0x2e64a2,this[_0x40d64d(0x2ba)]=_0x131666,this['_messageService']=_0x58fa05,this[_0x40d64d(0x2b5)]=_0x863d07,this[_0x40d64d(0x2c3)]=_0x3df50d,this['_init']());}['_init'](){const _0x21f18b=_0x50161b;[M][_0x21f18b(0x201)](_0x7f92dd=>this[_0x21f18b(0x2a5)](o[_0x21f18b(0x2c6)](this[_0x21f18b(0x20d)][_0x21f18b(0x29a)](_0x7f92dd)))),this['disposeWithMe'](this[_0x21f18b(0x2b6)][_0x21f18b(0x1f2)](_0x21f18b(0x1f1),q)),this[_0x21f18b(0x26c)][_0x21f18b(0x27d)](fe),this[_0x21f18b(0x2a5)](this[_0x21f18b(0x20d)][_0x21f18b(0x223)](_0x27fd2f=>{const _0x5ebd3e=_0x21f18b;if(_0x27fd2f['id']===I[_0x5ebd3e(0x2b2)]['id']){this[_0x5ebd3e(0x246)][_0x5ebd3e(0x24a)]({'content':this[_0x5ebd3e(0x2ba)]['t'](_0x5ebd3e(0x220)),'type':b[_0x5ebd3e(0x256)]['Loading'],'duration':0x1388});const {unitId:_0x2392e3}=_0x27fd2f[_0x5ebd3e(0x244)],_0x5bd6ba=this['_collaborationController'][_0x5ebd3e(0x2b7)](_0x2392e3),_0x40f9d8=T['combineLatest']([_0x5bd6ba[_0x5ebd3e(0x28c)][_0x5ebd3e(0x212)],_0x5bd6ba[_0x5ebd3e(0x28a)]])[_0x5ebd3e(0x207)](async([_0x22c026,_0x2f3614])=>{const _0x241c45=_0x5ebd3e;var _0x9e6c0;_0x22c026[_0x241c45(0x204)]===I[_0x241c45(0x1ff)]['CHANGESET_ACK']&&(_0x2f3614==null?void 0x0:_0x2f3614[_0x241c45(0x22b)])===f[_0x241c45(0x292)]['SYNCED']&&_0x22c026[_0x241c45(0x291)][_0x241c45(0x2ae)]['some'](_0x51a776=>_0x51a776['id']===I['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x241c45(0x20e)](),_0x40f9d8['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x9e6c0=this[_0x241c45(0x2c3)])==null?void 0x0:_0x9e6c0[_0x241c45(0x29e)]()),setTimeout(()=>window['location'][_0x241c45(0x2d7)]()));});this[_0x5ebd3e(0x267)]=setTimeout(()=>{const _0x8da329=_0x5ebd3e;_0x40f9d8[_0x8da329(0x205)](),this[_0x8da329(0x246)]['show']({'content':this[_0x8da329(0x2ba)]['t'](_0x8da329(0x25a)),'type':b[_0x8da329(0x256)]['Error'],'duration':0xbb8});},0x1388);}}));}};E=Ie([S(0x0,o[_0x50161b(0x25b)]),S(0x1,h[_0x50161b(0x265)]),S(0x2,o[_0x50161b(0x229)](h[_0x50161b(0x2a8)])),S(0x3,o[_0x50161b(0x229)](exports[_0x50161b(0x238)])),S(0x4,o[_0x50161b(0x229)](o[_0x50161b(0x227)])),S(0x5,h[_0x50161b(0x273)]),S(0x6,o[_0x50161b(0x229)](f['CollaborationController'])),S(0x7,f[_0x50161b(0x26f)])],E);var Ce=Object['getOwnPropertyDescriptor'],Ue=(_0x111a68,_0x393971,_0x1eabf0,_0x2a2870)=>{for(var _0x172b57=_0x2a2870>0x1?void 0x0:_0x2a2870?Ce(_0x393971,_0x1eabf0):_0x393971,_0x378e8f=_0x111a68['length']-0x1,_0xd8a926;_0x378e8f>=0x0;_0x378e8f--)(_0xd8a926=_0x111a68[_0x378e8f])&&(_0x172b57=_0xd8a926(_0x172b57)||_0x172b57);return _0x172b57;},N=(_0x4269d1,_0x364edb)=>(_0x2a4b4c,_0x469890)=>_0x364edb(_0x2a4b4c,_0x469890,_0x4269d1);const Ee=_0x50161b(0x28e);var C;exports[_0x50161b(0x225)]=(C=class extends o['Plugin']{constructor(_0x348ba3=R,_0x1ad285,_0xaf0f1){const _0x2dfb04=_0x50161b;super(),this[_0x2dfb04(0x247)]=_0x348ba3,this['_injector']=_0x1ad285,this['_configService']=_0xaf0f1;const {menu:_0x10eaac,..._0x4cf389}=o[_0x2dfb04(0x243)]({},R,this[_0x2dfb04(0x247)]);_0x10eaac&&this[_0x2dfb04(0x232)][_0x2dfb04(0x235)](_0x2dfb04(0x233),_0x10eaac,{'merge':!0x0}),this[_0x2dfb04(0x232)]['setConfig'](O,_0x4cf389),this[_0x2dfb04(0x247)][_0x2dfb04(0x2bf)]&&this[_0x2dfb04(0x232)][_0x2dfb04(0x235)](P,this[_0x2dfb04(0x247)][_0x2dfb04(0x2bf)]);}[_0x50161b(0x20b)](){const _0x44ba10=_0x50161b;[[exports[_0x44ba10(0x238)]],[E]]['forEach'](_0x4583e6=>this[_0x44ba10(0x20c)]['add'](_0x4583e6));}[_0x50161b(0x20f)](){const _0x2eed98=_0x50161b;this[_0x2eed98(0x20c)][_0x2eed98(0x2c9)](E);}},_(C,'type',o[_0x50161b(0x241)][_0x50161b(0x29b)]),_(C,_0x50161b(0x2c1),Ee),C),exports[_0x50161b(0x225)]=Ue([N(0x1,o[_0x50161b(0x229)](o[_0x50161b(0x1ec)])),N(0x2,o['IConfigService'])],exports[_0x50161b(0x225)]),exports['UNIVER_CONTAINER_ID_KEY']=P,exports[_0x50161b(0x27b)]=y;
1
+ 'use strict';const _0x342932=_0x5a8a;(function(_0x3ca179,_0x39e826){const _0x2148d7=_0x5a8a,_0x153756=_0x3ca179();while(!![]){try{const _0x5c1c94=-parseInt(_0x2148d7(0x2a0))/0x1*(parseInt(_0x2148d7(0x21d))/0x2)+parseInt(_0x2148d7(0x26b))/0x3+-parseInt(_0x2148d7(0x21f))/0x4+-parseInt(_0x2148d7(0x238))/0x5+-parseInt(_0x2148d7(0x230))/0x6+-parseInt(_0x2148d7(0x202))/0x7*(-parseInt(_0x2148d7(0x1e7))/0x8)+parseInt(_0x2148d7(0x220))/0x9*(parseInt(_0x2148d7(0x28b))/0xa);if(_0x5c1c94===_0x39e826)break;else _0x153756['push'](_0x153756['shift']());}catch(_0x54fe1e){_0x153756['push'](_0x153756['shift']());}}}(_0x1fe8,0xc2397));function _0x1fe8(){const _0x27a1be=['_themeService','zIndex','_historyManagerService','ISidebarService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverUIPlugin','_messageService','CollaborationController','Module','registerCommand','getCollabEntity','uComp','_permissionService','UniverNetworkPlugin','use','closeAll','combineLatest','merge','xlink:href','url(#$1','1000','[HistoryLoaderService]:\x20Plugin\x20','SYNCED','length','fill','1080jNLPsJ','event$','_config','clear','UniverCollaborationPlugin','UniverSheetsPlugin','UniverDataValidationPlugin','history-icon_clip0_907_281','disposeWithMe','RangeProtectionRuleModel','_historyUniver$','RevertRevisionMutation','HistoryLoaderService','Inject','http://www.w3.org/2000/svg','getCurrentLocale','every','UniverSheetsDataValidationPlugin','UniverSheetsDrawingUIPlugin','UNIVER_CONTAINER_ID_KEY','some','getCurrentRangeDisable$','historyPanelComponentKey','UniverSheetsFormulaPlugin','show','_localeService','mask','39109sHYTYx','absolute','UNIVER_CONTAINER_ID','get','children','WorkbookEditablePermission','style','getUnit','RibbonStartGroup','setTheme','close','\x20has\x20been\x20registered.','WorksheetEditPermission','data','eventID','toStringTag','_localCacheService','IConfigService','history-icon','defIds','UniverSheetsDrawingPlugin','_pluginMap','left','defs','getSheetCommandTarget','IPermissionService','pluginName','42AHiSTm','editHistory.panel.reverting','5163080LaTgQs','567SdUcGd','createElement','DisposableCollection','UniverDrawingUIPlugin','HistoryModeStatus','Entered','HistoryManagerService','_disposableCollection','next','executeCommand','trim','forEach','triggerLoadVersions','colorChannel1','none','IUniverInstanceService','8635590qcPNoS','WorkbookViewHistoryPermission','register','reload','symbol','_collaborationController','attrs','random','685765gwrAcu','setDarkMode','dispose','getSheets','UNIVER_SHEET','exhaustSavingTask','setConfig','IMessageService','IAuthzIoService','_initListener','univer.operation.toggle-edit-history','_initPlugins','editHistory.panel.revertFailed','_univerInstanceService','univerContainerId','UniverRPCMainThreadPlugin','onSteady','defineProperty','_init','substring','univer-container','setLocale','LS_CONFIG_KEY','unsubscribe','location','_configService','onStarting','Error','toString','_menuManagerService','AuthzIoHttpService','1em','params','_dialogService','LocaleService','_selectionProtectionRuleModel','displayName','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','getConfig','getElementById','has','UNIVER_UNKNOWN','_commandService','registerPlugin','invoke','UniverFormulaEnginePlugin','historyUniver','path','UniverSheetsFilterPlugin','menu','MenuItemType','3318294gjjJpf','ThemeService','unMountHistoryContent','_componentManager','CommandType','UniverSheetsUIPlugin','values','_injector','edit-history-loader.config','Univer','IMenuManagerService','idSuffix','UniverDocsUIPlugin','subscribe','UniverIcon','ComponentManager','display','_revertErrorTimer','M0\x200H16V16H0z','value','UniverInstanceType','IImageIoService','CollaborationStatus','top','history-container','mountHistoryContent','CHANGESET_ACK','current','clipPath','Injector','width','height','472150tZEHrJ','CollaborationEvent','univer-history-container','_initContainer','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','position','set','_sidebarService','includes','WorkbookRecoverHistoryPermission','getLocales','onCommandExecuted','UniverEditHistoryLoaderPlugin','getOwnPropertyDescriptor','status','svg','mergeMenu','from','HistoryIcon','add','UniverDrawingPlugin','55817przbAY','composePermission','Disposable','currentColor','UniverSheetSparklinePlugin','tag','UniverSheetSparklineUIPlugin','UniverRenderEnginePlugin','0\x200\x2016\x2016','editHistory.panel.title','100%','MessageType','getSheetId','forwardRef','string','map','white','UniverSheetsDataValidationUIPlugin','flat','BehaviorSubject','_checkCanRevert','UniverSheetsPivotTablePlugin','assign','UniverEditHistoryViewerPlugin','ICommandService','Exited','appendChild','UniverSheetsHyperLinkPlugin','mutations'];_0x1fe8=function(){return _0x27a1be;};return _0x1fe8();}var j=Object[_0x342932(0x249)],F=(_0x518b72,_0x2950ee,_0x113c46)=>_0x2950ee in _0x518b72?j(_0x518b72,_0x2950ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x113c46}):_0x518b72[_0x2950ee]=_0x113c46,_=(_0x448c62,_0x62e900,_0x189f86)=>F(_0x448c62,typeof _0x62e900!=_0x342932(0x234)?_0x62e900+'':_0x62e900,_0x189f86);Object['defineProperty'](exports,Symbol[_0x342932(0x211)],{'value':_0x342932(0x1d6)});const o=require('@univerjs/core'),I=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),w=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),x=require('@univerjs-pro/sheets-pivot'),A=require('@univerjs-pro/sheets-sparkline'),V=require('@univerjs-pro/sheets-sparkline-ui'),G=require('@univerjs/data-validation'),W=require('@univerjs/docs'),Y=require('@univerjs/docs-ui'),R=require('@univerjs/drawing'),K=require('@univerjs/drawing-ui'),B=require('@univerjs/engine-formula'),z=require('@univerjs/engine-render'),Z=require('@univerjs/network'),J=require('@univerjs/rpc'),Q=require('@univerjs/sheets-conditional-formatting'),X=require('@univerjs/sheets-conditional-formatting-ui'),ee=require('@univerjs/sheets-data-validation'),ie=require('@univerjs/sheets-data-validation-ui'),te=require('@univerjs/sheets-drawing'),re=require('@univerjs/sheets-drawing-ui'),ne=require('@univerjs/sheets-filter'),se=require('@univerjs/sheets-filter-ui'),oe=require('@univerjs/sheets-formula'),ae=require('@univerjs/sheets-formula-ui'),ce=require('@univerjs/sheets-hyper-link'),le=require('@univerjs/sheets-hyper-link-ui'),ue=require('@univerjs/sheets-numfmt'),O=require('@univerjs/sheets-ui'),b=_0x342932(0x273),N={};function k({ref:_0x2e0f57,..._0x6aacc0}){const _0x3e943d=_0x342932,{icon:_0xc51997,id:_0x183186,className:_0x1d42ce,extend:_0x5702b0,..._0x1f0d8d}=_0x6aacc0,_0x1af82c=('univerjs-icon\x20univerjs-icon-'+_0x183186+'\x20'+(_0x1d42ce||''))[_0x3e943d(0x22a)](),_0x19e7e8=U['useRef']('_'+ve());return D(_0xc51997,''+_0x183186,{'defIds':_0xc51997[_0x3e943d(0x215)],'idSuffix':_0x19e7e8[_0x3e943d(0x286)]},{'ref':_0x2e0f57,'className':_0x1af82c,..._0x1f0d8d},_0x5702b0);}function D(_0x530995,_0x33b1c5,_0xafacf5,_0x59e52d,_0x72354a){const _0x51b107=_0x342932;return U[_0x51b107(0x221)](_0x530995[_0x51b107(0x2a5)],{'key':_0x33b1c5,...he(_0x530995,_0xafacf5,_0x72354a),..._0x59e52d},(ge(_0x530995,_0xafacf5)[_0x51b107(0x206)]||[])['map']((_0x22250a,_0x97ccc3)=>D(_0x22250a,_0x33b1c5+'-'+_0x530995['tag']+'-'+_0x97ccc3,_0xafacf5,void 0x0,_0x72354a)));}function he(_0x56374d,_0x27c6b7,_0x83a11b){const _0x355c22=_0x342932,_0x5c9698={..._0x56374d[_0x355c22(0x236)]};_0x83a11b!=null&&_0x83a11b[_0x355c22(0x22d)]&&_0x5c9698[_0x355c22(0x1e6)]===_0x355c22(0x22d)&&(_0x5c9698[_0x355c22(0x1e6)]=_0x83a11b[_0x355c22(0x22d)]),_0x56374d[_0x355c22(0x2a5)]===_0x355c22(0x201)&&_0x5c9698['id']&&(_0x5c9698['id']=_0x5c9698['id']+_0x27c6b7['idSuffix']),Object['entries'](_0x5c9698)[_0x355c22(0x22b)](([_0x61cd80,_0xd7f4cf])=>{const _0x24d355=_0x355c22;_0x61cd80===_0x24d355(0x201)&&typeof _0xd7f4cf==_0x24d355(0x1bf)&&(_0x5c9698[_0x61cd80]=_0xd7f4cf['replace'](/url\(#(.*)\)/,_0x24d355(0x1e1)+_0x27c6b7[_0x24d355(0x276)]+')'));});const {defIds:_0x5df78e}=_0x27c6b7;return!_0x5df78e||_0x5df78e[_0x355c22(0x1e5)]===0x0||(_0x56374d['tag']===_0x355c22(0x1dc)&&_0x5c9698[_0x355c22(0x1e0)]&&(_0x5c9698[_0x355c22(0x1e0)]=_0x5c9698[_0x355c22(0x1e0)]+_0x27c6b7['idSuffix']),Object['entries'](_0x5c9698)[_0x355c22(0x22b)](([_0xcf7dc1,_0x5d9d03])=>{const _0x1ff635=_0x355c22;typeof _0x5d9d03==_0x1ff635(0x1bf)&&(_0x5c9698[_0xcf7dc1]=_0x5d9d03['replace'](/url\(#(.*)\)/,'url(#$1'+_0x27c6b7[_0x1ff635(0x276)]+')'));})),_0x5c9698;}function ge(_0x46e8df,_0x54dc1d){const _0x2f4b37=_0x342932;var _0x1112f4;const {defIds:_0x2d3d1a}=_0x54dc1d;return!_0x2d3d1a||_0x2d3d1a[_0x2f4b37(0x1e5)]===0x0?_0x46e8df:_0x46e8df[_0x2f4b37(0x2a5)]==='defs'&&((_0x1112f4=_0x46e8df[_0x2f4b37(0x206)])!=null&&_0x1112f4[_0x2f4b37(0x1e5)])?{..._0x46e8df,'children':_0x46e8df[_0x2f4b37(0x206)][_0x2f4b37(0x1c0)](_0x5d9af8=>typeof _0x5d9af8[_0x2f4b37(0x236)]['id']==_0x2f4b37(0x1bf)&&_0x2d3d1a&&_0x2d3d1a[_0x2f4b37(0x293)](_0x5d9af8[_0x2f4b37(0x236)]['id'])?{..._0x5d9af8,'attrs':{..._0x5d9af8['attrs'],'id':_0x5d9af8[_0x2f4b37(0x236)]['id']+_0x54dc1d[_0x2f4b37(0x276)]}}:_0x5d9af8)}:_0x46e8df;}function ve(){const _0x165bea=_0x342932;return Math[_0x165bea(0x237)]()[_0x165bea(0x254)](0x24)[_0x165bea(0x24b)](0x2,0x8);}k['displayName']=_0x342932(0x279);const de={'tag':_0x342932(0x29a),'attrs':{'xmlns':_0x342932(0x1f5),'fill':'none','viewBox':_0x342932(0x2a8),'width':_0x342932(0x257),'height':_0x342932(0x257)},'children':[{'tag':'g','attrs':{'fill':_0x342932(0x2a3),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x342932(0x267),'attrs':{'d':_0x342932(0x25d)}},{'tag':_0x342932(0x267),'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':_0x342932(0x219),'attrs':{},'children':[{'tag':_0x342932(0x287),'attrs':{'id':_0x342932(0x1ee)},'children':[{'tag':'path','attrs':{'fill':_0x342932(0x1c1),'d':_0x342932(0x27d)}}]}]}],'defIds':[_0x342932(0x1ee)]},q=U[_0x342932(0x1be)](function(_0x1b7409,_0xaf36cb){const _0x10cab4=_0x342932;return U['createElement'](k,Object[_0x10cab4(0x1c7)]({},_0x1b7409,{'id':_0x10cab4(0x214),'ref':_0xaf36cb,'icon':de}));});q[_0x342932(0x25c)]=_0x342932(0x29d);var _e=Object[_0x342932(0x298)],Se=(_0x47d797,_0x38756d,_0x3b3246,_0x3aa6ec)=>{const _0x4043e5=_0x342932;for(var _0x2c00d7=_0x3aa6ec>0x1?void 0x0:_0x3aa6ec?_e(_0x38756d,_0x3b3246):_0x38756d,_0x36cc3b=_0x47d797[_0x4043e5(0x1e5)]-0x1,_0x10a8d0;_0x36cc3b>=0x0;_0x36cc3b--)(_0x10a8d0=_0x47d797[_0x36cc3b])&&(_0x2c00d7=_0x10a8d0(_0x2c00d7)||_0x2c00d7);return _0x2c00d7;},g=(_0x193aa6,_0x25bc9c)=>(_0x25b6ac,_0x358e56)=>_0x25bc9c(_0x25b6ac,_0x358e56,_0x193aa6);const me=_0x342932(0x24c),M=_0x342932(0x204),y=_0x342932(0x28d);exports[_0x342932(0x1f3)]=class extends o[_0x342932(0x2a2)]{constructor(_0x519e50,_0x560fd1,_0x373daa,_0x5a693e,_0x4c736b,_0x1600e8,_0x1bff87,_0x77e1dc,_0x2ebc50,_0x36c21a){const _0x3bba57=_0x342932;super(),_(this,'_historyUniver$',new w[(_0x3bba57(0x1c4))](null)),_(this,'historyUniver$',this['_historyUniver$']['asObservable']()),_(this,_0x3bba57(0x227),new o[(_0x3bba57(0x222))]()),_(this,'_pluginMap',new Map()),(this[_0x3bba57(0x200)]=_0x519e50,this[_0x3bba57(0x245)]=_0x560fd1,this[_0x3bba57(0x251)]=_0x373daa,this['_commandService']=_0x5a693e,this[_0x3bba57(0x1d4)]=_0x4c736b,this[_0x3bba57(0x1da)]=_0x1600e8,this[_0x3bba57(0x25b)]=_0x1bff87,this[_0x3bba57(0x259)]=_0x77e1dc,this[_0x3bba57(0x292)]=_0x2ebc50,this[_0x3bba57(0x1ce)]=_0x36c21a,this[_0x3bba57(0x24a)]());}get[_0x342932(0x266)](){const _0xdbbd63=_0x342932;return this[_0xdbbd63(0x1f1)][_0xdbbd63(0x27e)];}[_0x342932(0x24a)](){const _0x5748d1=_0x342932;this[_0x5748d1(0x28e)](),this[_0x5748d1(0x243)]();}[_0x342932(0x28e)](){const _0x5264d2=_0x342932;var _0x56d648;const _0x6ff272=(_0x56d648=this[_0x5264d2(0x251)]['getConfig'](M))!=null?_0x56d648:me,_0x4efff7=document[_0x5264d2(0x25f)](_0x6ff272);if(!_0x4efff7)return;const _0x3bc518=document[_0x5264d2(0x221)]('div');_0x3bc518['id']=y,_0x3bc518['dataset'][_0x5264d2(0x1d9)]=_0x5264d2(0x283),_0x3bc518[_0x5264d2(0x208)][_0x5264d2(0x290)]=_0x5264d2(0x203),_0x3bc518[_0x5264d2(0x208)][_0x5264d2(0x282)]='0',_0x3bc518[_0x5264d2(0x208)][_0x5264d2(0x218)]='0',_0x3bc518[_0x5264d2(0x208)][_0x5264d2(0x289)]=_0x5264d2(0x1bb),_0x3bc518[_0x5264d2(0x208)][_0x5264d2(0x28a)]=_0x5264d2(0x1bb),_0x3bc518[_0x5264d2(0x208)][_0x5264d2(0x1cf)]=_0x5264d2(0x1e2),_0x3bc518['style'][_0x5264d2(0x27b)]=_0x5264d2(0x22e),_0x4efff7[_0x5264d2(0x1cb)](_0x3bc518);}[_0x342932(0x243)](){const _0x542bb3=_0x342932;var _0x46582b,_0x42dd55;[[z[_0x542bb3(0x2a7)]],[h[_0x542bb3(0x1d3)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h['IDialogService'],null]]}],[Z[_0x542bb3(0x1db)]],[R[_0x542bb3(0x29f)],{'override':[[R[_0x542bb3(0x280)],null]]}],[W['UniverDocsPlugin'],{'hasScroll':!0x1}],[Y[_0x542bb3(0x277)]],[ue['UniverSheetsNumfmtPlugin']],[d[_0x542bb3(0x1ec)],{'notExecuteFormula':!0x0}],[O[_0x542bb3(0x270)]],[oe[_0x542bb3(0x1fe)]],[ae['UniverSheetsFormulaUIPlugin']],[I[_0x542bb3(0x1eb)]],[ne[_0x542bb3(0x268)]],[se['UniverSheetsFilterUIPlugin']],[Q['UniverSheetsConditionalFormattingPlugin']],[X['UniverSheetsConditionalFormattingUIPlugin']],[ce[_0x542bb3(0x1cc)]],[le['UniverSheetsHyperLinkUIPlugin']],[G[_0x542bb3(0x1ed)]],[ee[_0x542bb3(0x1f8)]],[ie[_0x542bb3(0x1c2)]],[B[_0x542bb3(0x265)],{'notExecuteFormula':!0x0}],[J[_0x542bb3(0x247)],{'workerURL':'./worker.js'}],[K[_0x542bb3(0x223)]],[te[_0x542bb3(0x216)]],[re[_0x542bb3(0x1f9)]],[A[_0x542bb3(0x2a4)]],[V[_0x542bb3(0x2a6)]],[x[_0x542bb3(0x1c6)],{'notExecuteFormula':!0x0}],[m[_0x542bb3(0x1c8)],{'historyListServerUrl':(_0x46582b=this[_0x542bb3(0x251)][_0x542bb3(0x25e)](b))==null?void 0x0:_0x46582b['historyListServerUrl'],'historyPanelComponentKey':(_0x42dd55=this[_0x542bb3(0x251)][_0x542bb3(0x25e)](b))==null?void 0x0:_0x42dd55[_0x542bb3(0x1fd)]}]][_0x542bb3(0x22b)](([_0x3f7ef1,_0x5a56a9])=>this[_0x542bb3(0x263)](_0x3f7ef1,_0x5a56a9));}[_0x342932(0x23a)](){const _0x45c812=_0x342932;super['dispose'](),this[_0x45c812(0x26d)](),this[_0x45c812(0x217)][_0x45c812(0x1ea)]();}['registerPlugin'](_0x2305af,_0x543190,_0x5e6bf){const _0x1d00c5=_0x342932;if(this[_0x1d00c5(0x217)][_0x1d00c5(0x260)](_0x2305af[_0x1d00c5(0x21c)])&&!_0x5e6bf)throw new Error(_0x1d00c5(0x1e3)+_0x2305af[_0x1d00c5(0x21c)]+_0x1d00c5(0x20d));this[_0x1d00c5(0x217)][_0x1d00c5(0x291)](_0x2305af[_0x1d00c5(0x21c)],[_0x2305af,_0x543190]);}['getAllPlugins'](){const _0x39c7d6=_0x342932;return Array[_0x39c7d6(0x29c)](this[_0x39c7d6(0x217)][_0x39c7d6(0x271)]());}[_0x342932(0x284)](_0x34238d){const _0x4e3270=_0x342932,_0x29d491=document['getElementById'](y);_0x29d491&&(_0x29d491[_0x4e3270(0x208)][_0x4e3270(0x27b)]='block',this['_initUniver'](_0x34238d,y));}['unMountHistoryContent'](){const _0x1dfe52=_0x342932;var _0x15cbdf;this[_0x1dfe52(0x227)][_0x1dfe52(0x23a)](),(_0x15cbdf=this[_0x1dfe52(0x266)])==null||_0x15cbdf[_0x1dfe52(0x23a)](),this['_historyUniver$'][_0x1dfe52(0x228)](null);const _0x139565=document[_0x1dfe52(0x25f)](y);_0x139565&&(_0x139565['style'][_0x1dfe52(0x27b)]=_0x1dfe52(0x22e));}['_initUniver'](_0x5887f9,_0x47dc08){const _0x4e033e=_0x342932;if(this[_0x4e033e(0x266)])return;const _0x69b71c=new o[(_0x4e033e(0x274))]({'locales':{[this['_localeService'][_0x4e033e(0x1f6)]()]:this[_0x4e033e(0x200)][_0x4e033e(0x295)]()},'override':[[o[_0x4e033e(0x240)],{'useClass':f[_0x4e033e(0x256)]}]]}),_0x1684f4=_0x69b71c['__getInjector']();this[_0x4e033e(0x1ef)](this[_0x4e033e(0x1ce)]['darkMode$']['subscribe'](_0x5dd96e=>{const _0x4d7704=_0x4e033e;_0x1684f4[_0x4d7704(0x205)](o['ThemeService'])[_0x4d7704(0x239)](_0x5dd96e);})),this[_0x4e033e(0x1ef)](this[_0x4e033e(0x1ce)]['currentTheme$'][_0x4e033e(0x278)](_0x154efa=>{const _0xa957c6=_0x4e033e;_0x1684f4[_0xa957c6(0x205)](o[_0xa957c6(0x26c)])[_0xa957c6(0x20b)](_0x154efa);})),_0x1684f4['get'](o[_0x4e033e(0x25a)])[_0x4e033e(0x24d)](this['_localeService'][_0x4e033e(0x1f6)]()),_0x1684f4[_0x4e033e(0x205)](o[_0x4e033e(0x213)])[_0x4e033e(0x23e)](f[_0x4e033e(0x1d2)],this['_configService']['getConfig'](f[_0x4e033e(0x1d2)]));const _0x5113ef=this[_0x4e033e(0x251)][_0x4e033e(0x25e)](L[_0x4e033e(0x24e)]);_0x5113ef&&_0x69b71c[_0x4e033e(0x263)](L['UniverLicensePlugin'],{'license':_0x5113ef['ls']}),this[_0x4e033e(0x217)][_0x4e033e(0x22b)](([_0x1f5206,_0x2c8fe4])=>{const _0x259131=_0x4e033e;_0x69b71c[_0x259131(0x263)](_0x1f5206,_0x2c8fe4);}),_0x1684f4[_0x4e033e(0x264)](_0x5e2988=>{this['_initListener'](_0x5e2988,_0x5887f9);}),this[_0x4e033e(0x1f1)]['next'](_0x69b71c);const _0x592334=_0x1684f4[_0x4e033e(0x205)](m[_0x4e033e(0x226)]),_0x3bb7d3=this[_0x4e033e(0x1c5)](_0x5887f9);_0x592334[_0x4e033e(0x22c)](_0x5887f9,_0x47dc08,_0x3bb7d3);}[_0x342932(0x241)](_0x39d1c4,_0x11f9d3){const _0x276ffe=_0x342932,_0x2d1c72=_0x39d1c4[_0x276ffe(0x205)](m[_0x276ffe(0x226)]);this[_0x276ffe(0x227)][_0x276ffe(0x29e)](_0x2d1c72['status$'][_0x276ffe(0x278)](_0x3cbc22=>{const _0xaa4b5d=_0x276ffe;switch(_0x3cbc22){case m[_0xaa4b5d(0x224)][_0xaa4b5d(0x225)]:this[_0xaa4b5d(0x259)][_0xaa4b5d(0x1dd)](),this[_0xaa4b5d(0x292)][_0xaa4b5d(0x20c)]();break;case m[_0xaa4b5d(0x224)][_0xaa4b5d(0x1ca)]:this[_0xaa4b5d(0x26d)]();break;case m[_0xaa4b5d(0x224)]['Error']:this['unMountHistoryContent'](),this['_messageService'][_0xaa4b5d(0x1ff)]({'content':this[_0xaa4b5d(0x200)]['t']('editHistory.panel.listFetchError'),'type':P[_0xaa4b5d(0x1bc)][_0xaa4b5d(0x253)],'duration':0xbb8});break;}})),this[_0x276ffe(0x227)]['add'](_0x2d1c72['revertRevision$'][_0x276ffe(0x278)](async _0x4f087e=>{const _0x2eaa2d=_0x276ffe;_0x4f087e&&this[_0x2eaa2d(0x262)][_0x2eaa2d(0x229)](I[_0x2eaa2d(0x1f2)]['id'],{'unitId':_0x11f9d3,'revision':_0x4f087e});}));}['_checkCanRevert'](_0x5df4ea){const _0x3cbcc7=_0x342932,_0x2e40b0=this[_0x3cbcc7(0x245)][_0x3cbcc7(0x209)](_0x5df4ea)[_0x3cbcc7(0x23b)]()[_0x3cbcc7(0x1c0)](_0x195fae=>_0x195fae[_0x3cbcc7(0x1bd)]()),_0x4f8e5f=new d[(_0x3cbcc7(0x207))](_0x5df4ea)['id'],_0x15b929=_0x2e40b0[_0x3cbcc7(0x1c0)](_0x3907ab=>new d[(_0x3cbcc7(0x20e))](_0x5df4ea,_0x3907ab)['id']),_0x14aa35=_0x2e40b0[_0x3cbcc7(0x1c0)](_0x127456=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x5df4ea,_0x127456)[_0x3cbcc7(0x1c0)](_0xf49e9a=>new d['RangeProtectionPermissionEditPoint'](_0x5df4ea,_0x127456,_0xf49e9a['permissionId'])['id']))[_0x3cbcc7(0x1c3)](),_0x19b7f3=new d[(_0x3cbcc7(0x294))](_0x5df4ea)['id'];return this['_permissionService'][_0x3cbcc7(0x2a1)]([_0x4f8e5f,..._0x15b929,..._0x14aa35,_0x19b7f3])[_0x3cbcc7(0x1f7)](_0x39c570=>!!_0x39c570['value']);}},exports[_0x342932(0x1f3)]=Se([g(0x0,o['Inject'](o[_0x342932(0x25a)])),g(0x1,o[_0x342932(0x22f)]),g(0x2,o[_0x342932(0x213)]),g(0x3,o[_0x342932(0x1c9)]),g(0x4,h[_0x342932(0x23f)]),g(0x5,o[_0x342932(0x21b)]),g(0x6,o['Inject'](d[_0x342932(0x1f0)])),g(0x7,o[_0x342932(0x1f4)](h['IDialogService'])),g(0x8,o[_0x342932(0x1f4)](h[_0x342932(0x1d1)])),g(0x9,o[_0x342932(0x1f4)](o['ThemeService']))],exports[_0x342932(0x1f3)]);const H={'id':_0x342932(0x242),'type':o[_0x342932(0x26f)]['OPERATION'],'handler':_0x3ac518=>{const _0x4aaf9e=_0x342932,_0x1ffc55=_0x3ac518[_0x4aaf9e(0x205)](exports[_0x4aaf9e(0x1f3)]),_0x4c77c0=_0x3ac518[_0x4aaf9e(0x205)](o['IUniverInstanceService']),{unitId:_0x393576}=d[_0x4aaf9e(0x21a)](_0x4c77c0)||{};return _0x393576?(_0x1ffc55[_0x4aaf9e(0x284)](_0x393576),!0x0):!0x1;}};function ye(_0x35d8ea){const _0x97d224=_0x342932;return{'id':H['id'],'type':h[_0x97d224(0x26a)]['BUTTON'],'icon':'HistoryIcon','tooltip':_0x97d224(0x1ba),'hidden$':h['getMenuHiddenObservable'](_0x35d8ea,o['UniverInstanceType'][_0x97d224(0x23c)]),'disabled$':O[_0x97d224(0x1fc)](_0x35d8ea,{'workbookTypes':[d[_0x97d224(0x207)],d[_0x97d224(0x231)]],'worksheetTypes':[],'rangeTypes':[]})};}const fe={[h[_0x342932(0x20a)]['OTHERS']]:{[H['id']]:{'order':0.2,'menuItemFactory':ye}}};var pe=Object[_0x342932(0x298)],Ie=(_0x587fb6,_0x5e91f9,_0x5cf0a4,_0x1db051)=>{const _0x47c80e=_0x342932;for(var _0x314893=_0x1db051>0x1?void 0x0:_0x1db051?pe(_0x5e91f9,_0x5cf0a4):_0x5e91f9,_0x297118=_0x587fb6[_0x47c80e(0x1e5)]-0x1,_0x503bec;_0x297118>=0x0;_0x297118--)(_0x503bec=_0x587fb6[_0x297118])&&(_0x314893=_0x503bec(_0x314893)||_0x314893);return _0x314893;},S=(_0xf1cd99,_0x59ac3e)=>(_0x234fca,_0x69ca15)=>_0x59ac3e(_0x234fca,_0x69ca15,_0xf1cd99);let E=class extends o['RxDisposable']{constructor(_0x2ca790,_0x137b1e,_0xf998f7,_0x5967b4,_0x16f0c0,_0x2efe4b,_0x186f3f,_0x52a9eb){const _0x1e7608=_0x342932;super(),_(this,'_revertErrorTimer',null),(this['_commandService']=_0x2ca790,this[_0x1e7608(0x255)]=_0x137b1e,this['_componentManager']=_0xf998f7,this[_0x1e7608(0x1d0)]=_0x5967b4,this[_0x1e7608(0x200)]=_0x16f0c0,this['_messageService']=_0x2efe4b,this[_0x1e7608(0x235)]=_0x186f3f,this[_0x1e7608(0x212)]=_0x52a9eb,this[_0x1e7608(0x24a)]());}[_0x342932(0x24a)](){const _0x5add37=_0x342932;[H]['forEach'](_0x57f952=>this[_0x5add37(0x1ef)](o['toDisposable'](this[_0x5add37(0x262)][_0x5add37(0x1d7)](_0x57f952)))),this[_0x5add37(0x1ef)](this[_0x5add37(0x26e)][_0x5add37(0x232)](_0x5add37(0x29d),q)),this[_0x5add37(0x255)][_0x5add37(0x29b)](fe),this[_0x5add37(0x1ef)](this[_0x5add37(0x262)][_0x5add37(0x296)](_0x3b588d=>{const _0x3b9a0f=_0x5add37;if(_0x3b588d['id']===I[_0x3b9a0f(0x1f2)]['id']){this[_0x3b9a0f(0x1d4)][_0x3b9a0f(0x1ff)]({'content':this[_0x3b9a0f(0x200)]['t'](_0x3b9a0f(0x21e)),'type':P['MessageType']['Loading'],'duration':0x1388});const {unitId:_0x10e607}=_0x3b588d[_0x3b9a0f(0x258)],_0xe5eda0=this['_collaborationController'][_0x3b9a0f(0x1d8)](_0x10e607),_0x2bf889=w[_0x3b9a0f(0x1de)]([_0xe5eda0['session'][_0x3b9a0f(0x1e8)],_0xe5eda0['state$']])[_0x3b9a0f(0x278)](async([_0x17bd0b,_0x86bd4c])=>{const _0x5f14c1=_0x3b9a0f;var _0x5100f3;_0x17bd0b[_0x5f14c1(0x210)]===I[_0x5f14c1(0x28c)][_0x5f14c1(0x285)]&&(_0x86bd4c==null?void 0x0:_0x86bd4c[_0x5f14c1(0x299)])===f[_0x5f14c1(0x281)][_0x5f14c1(0x1e4)]&&_0x17bd0b[_0x5f14c1(0x20f)][_0x5f14c1(0x1cd)][_0x5f14c1(0x1fb)](_0x39e606=>_0x39e606['id']===I[_0x5f14c1(0x1f2)]['id'])&&(this[_0x5f14c1(0x1d0)][_0x5f14c1(0x26d)](),_0x2bf889[_0x5f14c1(0x24f)](),this[_0x5f14c1(0x27c)]&&clearTimeout(this['_revertErrorTimer']),await((_0x5100f3=this['_localCacheService'])==null?void 0x0:_0x5100f3[_0x5f14c1(0x23d)]()),setTimeout(()=>window[_0x5f14c1(0x250)][_0x5f14c1(0x233)]()));});this[_0x3b9a0f(0x27c)]=setTimeout(()=>{const _0x5ea8e6=_0x3b9a0f;_0x2bf889[_0x5ea8e6(0x24f)](),this['_messageService'][_0x5ea8e6(0x1ff)]({'content':this[_0x5ea8e6(0x200)]['t'](_0x5ea8e6(0x244)),'type':P[_0x5ea8e6(0x1bc)][_0x5ea8e6(0x253)],'duration':0xbb8});},0x1388);}}));}};E=Ie([S(0x0,o[_0x342932(0x1c9)]),S(0x1,h[_0x342932(0x275)]),S(0x2,o[_0x342932(0x1f4)](h[_0x342932(0x27a)])),S(0x3,o[_0x342932(0x1f4)](exports[_0x342932(0x1f3)])),S(0x4,o[_0x342932(0x1f4)](o[_0x342932(0x25a)])),S(0x5,h[_0x342932(0x23f)]),S(0x6,o[_0x342932(0x1f4)](f[_0x342932(0x1d5)])),S(0x7,f['ILocalCacheService'])],E);function _0x5a8a(_0x308868,_0xa7549a){const _0x1fe8e8=_0x1fe8();return _0x5a8a=function(_0x5a8a31,_0x3b8eec){_0x5a8a31=_0x5a8a31-0x1ba;let _0x3e8cc4=_0x1fe8e8[_0x5a8a31];return _0x3e8cc4;},_0x5a8a(_0x308868,_0xa7549a);}var Ce=Object[_0x342932(0x298)],Ue=(_0x1e08b4,_0x3be9b9,_0x1e8f1b,_0x94a1ae)=>{const _0x5162c9=_0x342932;for(var _0x216cba=_0x94a1ae>0x1?void 0x0:_0x94a1ae?Ce(_0x3be9b9,_0x1e8f1b):_0x3be9b9,_0x3b1ec4=_0x1e08b4[_0x5162c9(0x1e5)]-0x1,_0xe1fa05;_0x3b1ec4>=0x0;_0x3b1ec4--)(_0xe1fa05=_0x1e08b4[_0x3b1ec4])&&(_0x216cba=_0xe1fa05(_0x216cba)||_0x216cba);return _0x216cba;},T=(_0x2bb583,_0x29cb57)=>(_0x622c79,_0x26fb1f)=>_0x29cb57(_0x622c79,_0x26fb1f,_0x2bb583);const Ee=_0x342932(0x28f);var C;exports[_0x342932(0x297)]=(C=class extends o['Plugin']{constructor(_0x20f714=N,_0x4a4b66,_0x35bb1e){const _0x43dbb2=_0x342932;super(),this[_0x43dbb2(0x1e9)]=_0x20f714,this[_0x43dbb2(0x272)]=_0x4a4b66,this[_0x43dbb2(0x251)]=_0x35bb1e;const {menu:_0x5928f7,..._0x378a25}=o[_0x43dbb2(0x1df)]({},N,this[_0x43dbb2(0x1e9)]);_0x5928f7&&this[_0x43dbb2(0x251)][_0x43dbb2(0x23e)](_0x43dbb2(0x269),_0x5928f7,{'merge':!0x0}),this['_configService'][_0x43dbb2(0x23e)](b,_0x378a25),this['_config'][_0x43dbb2(0x246)]&&this[_0x43dbb2(0x251)][_0x43dbb2(0x23e)](M,this[_0x43dbb2(0x1e9)][_0x43dbb2(0x246)]);}[_0x342932(0x252)](){const _0xa3a94d=_0x342932;[[exports[_0xa3a94d(0x1f3)]],[E]][_0xa3a94d(0x22b)](_0x32b6bb=>this[_0xa3a94d(0x272)]['add'](_0x32b6bb));}[_0x342932(0x248)](){const _0x2c013d=_0x342932;this[_0x2c013d(0x272)][_0x2c013d(0x205)](E);}},_(C,'type',o[_0x342932(0x27f)][_0x342932(0x261)]),_(C,_0x342932(0x21c),Ee),C),exports[_0x342932(0x297)]=Ue([T(0x1,o['Inject'](o[_0x342932(0x288)])),T(0x2,o[_0x342932(0x213)])],exports[_0x342932(0x297)]),exports[_0x342932(0x1fa)]=M,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x37f8a6=_0x19ac;(function(_0x6d2d62,_0x1b7d92){const _0x463c65=_0x19ac,_0x36cb7d=_0x6d2d62();while(!![]){try{const _0x2f9814=parseInt(_0x463c65(0xc7))/0x1+parseInt(_0x463c65(0xbd))/0x2*(parseInt(_0x463c65(0x101))/0x3)+-parseInt(_0x463c65(0xaf))/0x4+-parseInt(_0x463c65(0xf9))/0x5*(parseInt(_0x463c65(0x116))/0x6)+-parseInt(_0x463c65(0x140))/0x7*(-parseInt(_0x463c65(0xc1))/0x8)+-parseInt(_0x463c65(0x145))/0x9*(-parseInt(_0x463c65(0xad))/0xa)+parseInt(_0x463c65(0xdb))/0xb;if(_0x2f9814===_0x1b7d92)break;else _0x36cb7d['push'](_0x36cb7d['shift']());}catch(_0xa9475d){_0x36cb7d['push'](_0x36cb7d['shift']());}}}(_0x5274,0xa3d69));var G=Object[_0x37f8a6(0x142)],B=(_0x17bc02,_0x238f22,_0x38e1cf)=>_0x238f22 in _0x17bc02?G(_0x17bc02,_0x238f22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e1cf}):_0x17bc02[_0x238f22]=_0x38e1cf,g=(_0x58e6a9,_0x397c7e,_0x53de89)=>B(_0x58e6a9,typeof _0x397c7e!=_0x37f8a6(0xc8)?_0x397c7e+'':_0x397c7e,_0x53de89);import{Inject as _0x53df44,LocaleService as _0x55fef5,IUniverInstanceService as _0x2c2e76,IConfigService as _0x448383,ICommandService as _0x3b269c,IPermissionService as _0x55b602,ThemeService as _0x4fd3e4,Disposable as _0x345cd9,DisposableCollection as _0x50e93a,Univer as _0x26caa3,IAuthzIoService as _0x595980,CommandType as _0x5df89c,UniverInstanceType as _0x58d207,RxDisposable as _0xc539ae,toDisposable as _0x4a5a4a,Plugin as _0x15ddce,merge as _0x12a45f,Injector as _0x1db332}from'@univerjs/core';import{UniverCollaborationPlugin as _0x30b231,RevertRevisionMutation as _0x1526b8,CollaborationEvent as _0x54f392}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5b8201,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3728f0,CollaborationController as _0x2e9911,ILocalCacheService as _0x2767b3,CollaborationStatus as _0x5c5d46}from'@univerjs-pro/collaboration-client';import{MessageType as _0x3b60a8}from'@univerjs/design';import{useRef as _0x241899,createElement as _0x11af02,forwardRef as _0xd17907}from'react';import{IMessageService as _0x4db92f,IDialogService as _0x1ae26d,ISidebarService as _0x486ba1,UniverUIPlugin as _0x49d69e,getMenuHiddenObservable as _0x1535b8,MenuItemType as _0x16e793,RibbonStartGroup as _0x41ba77,IMenuManagerService as _0x366ee5,ComponentManager as _0x27ffc6}from'@univerjs/ui';import{BehaviorSubject as _0x4af543,combineLatest as _0x526532}from'rxjs';import{RangeProtectionRuleModel as _0xaa2351,UniverSheetsPlugin as _0x4ccd17,WorkbookEditablePermission as _0x5e46f7,WorksheetEditPermission as _0x43b379,RangeProtectionPermissionEditPoint as _0x48dd44,WorkbookRecoverHistoryPermission as _0x154f4a,getSheetCommandTarget as _0x3398f1,WorkbookViewHistoryPermission as _0x372333}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x10be57,HistoryManagerService as _0x5dc1a2,HistoryModeStatus as _0x1e95cc}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x9cff72,UniverLicensePlugin as _0xca15b3}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x471c2d}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x26f4b4}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x1aaf68}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1036d5}from'@univerjs/data-validation';import{UniverDocsPlugin as _0xdc37cd}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x5b0e7f}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x7235f6,IImageIoService as _0x25ecb6}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1bdc8e}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x31d41a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x2897a9}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3d38d1}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x2ccad2}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x419888}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x53dfc2}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x23794a}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x37f1f8}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xb1c42e}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xba31f3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0xbc72c7}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0xbebfc2}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x20b1bc}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x4162fe}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x4a8892}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x5bcb43}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x34b3cd}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x2060ac,getCurrentRangeDisable$ as _0x4e498a}from'@univerjs/sheets-ui';const x=_0x37f8a6(0x13a),w={};function A({ref:_0x27f961,..._0x3f600c}){const _0x2abf32=_0x37f8a6,{icon:_0x265c69,id:_0x43786d,className:_0x3788f1,extend:_0x13d1b7,..._0x38ee1f}=_0x3f600c,_0x5297f8=(_0x2abf32(0xec)+_0x43786d+'\x20'+(_0x3788f1||''))['trim'](),_0x125019=_0x241899('_'+si());return F(_0x265c69,''+_0x43786d,{'defIds':_0x265c69[_0x2abf32(0xc4)],'idSuffix':_0x125019[_0x2abf32(0xb6)]},{'ref':_0x27f961,'className':_0x5297f8,..._0x38ee1f},_0x13d1b7);}function F(_0x42e6f8,_0x86bc3a,_0x2420ba,_0x4bce79,_0x573bb2){const _0x32c42f=_0x37f8a6;return _0x11af02(_0x42e6f8[_0x32c42f(0x124)],{'key':_0x86bc3a,...ni(_0x42e6f8,_0x2420ba,_0x573bb2),..._0x4bce79},(oi(_0x42e6f8,_0x2420ba)['children']||[])[_0x32c42f(0x11c)]((_0x2d68c8,_0x191da2)=>F(_0x2d68c8,_0x86bc3a+'-'+_0x42e6f8[_0x32c42f(0x124)]+'-'+_0x191da2,_0x2420ba,void 0x0,_0x573bb2)));}function ni(_0x94e17c,_0x20a43f,_0x35ced8){const _0x5642ad=_0x37f8a6,_0x50f839={..._0x94e17c[_0x5642ad(0x149)]};_0x35ced8!=null&&_0x35ced8[_0x5642ad(0x11e)]&&_0x50f839['fill']===_0x5642ad(0x11e)&&(_0x50f839[_0x5642ad(0x135)]=_0x35ced8[_0x5642ad(0x11e)]),_0x94e17c[_0x5642ad(0x124)]===_0x5642ad(0x106)&&_0x50f839['id']&&(_0x50f839['id']=_0x50f839['id']+_0x20a43f[_0x5642ad(0x14a)]),Object['entries'](_0x50f839)[_0x5642ad(0xb2)](([_0x1906c9,_0x3cf97d])=>{const _0x562d5f=_0x5642ad;_0x1906c9===_0x562d5f(0x106)&&typeof _0x3cf97d==_0x562d5f(0x122)&&(_0x50f839[_0x1906c9]=_0x3cf97d[_0x562d5f(0x139)](/url\(#(.*)\)/,_0x562d5f(0xb0)+_0x20a43f[_0x562d5f(0x14a)]+')'));});const {defIds:_0x3d6fd1}=_0x20a43f;return!_0x3d6fd1||_0x3d6fd1[_0x5642ad(0xbc)]===0x0||(_0x94e17c[_0x5642ad(0x124)]===_0x5642ad(0x130)&&_0x50f839[_0x5642ad(0xd4)]&&(_0x50f839['xlink:href']=_0x50f839[_0x5642ad(0xd4)]+_0x20a43f[_0x5642ad(0x14a)]),Object[_0x5642ad(0x148)](_0x50f839)[_0x5642ad(0xb2)](([_0x37b0aa,_0x50dca2])=>{const _0x7bd3f8=_0x5642ad;typeof _0x50dca2==_0x7bd3f8(0x122)&&(_0x50f839[_0x37b0aa]=_0x50dca2[_0x7bd3f8(0x139)](/url\(#(.*)\)/,_0x7bd3f8(0xb0)+_0x20a43f[_0x7bd3f8(0x14a)]+')'));})),_0x50f839;}function oi(_0xa58ee8,_0x473026){const _0x217167=_0x37f8a6;var _0x54c867;const {defIds:_0x207763}=_0x473026;return!_0x207763||_0x207763[_0x217167(0xbc)]===0x0?_0xa58ee8:_0xa58ee8['tag']===_0x217167(0x11d)&&((_0x54c867=_0xa58ee8['children'])!=null&&_0x54c867['length'])?{..._0xa58ee8,'children':_0xa58ee8['children'][_0x217167(0x11c)](_0x3b43e6=>typeof _0x3b43e6[_0x217167(0x149)]['id']=='string'&&_0x207763&&_0x207763[_0x217167(0x141)](_0x3b43e6[_0x217167(0x149)]['id'])?{..._0x3b43e6,'attrs':{..._0x3b43e6[_0x217167(0x149)],'id':_0x3b43e6[_0x217167(0x149)]['id']+_0x473026[_0x217167(0x14a)]}}:_0x3b43e6)}:_0xa58ee8;}function si(){const _0x76c4ab=_0x37f8a6;return Math[_0x76c4ab(0x117)]()[_0x76c4ab(0x111)](0x24)[_0x76c4ab(0xae)](0x2,0x8);}A[_0x37f8a6(0xa6)]=_0x37f8a6(0x119);function _0x5274(){const _0xf64c08=['OPERATION','triggerLoadVersions','has','_configService','get','__getInjector','xlink:href','currentColor','status','univer-container','getUnit','_sidebarService','appendChild','3830860kQvwhB','from','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','UNIVER_CONTAINER_ID','eventID','Exited','_collaborationController','HistoryIcon','closeAll','0\x200\x2016\x2016','show','reload','getConfig','setConfig','style','historyListServerUrl','univerjs-icon\x20univerjs-icon-','SYNCED','_init','_componentManager','UNIVER_SHEET','getLocales','historyUniver$','BUTTON','pluginName','display','editHistory.panel.title','M0\x200H16V16H0z','_localCacheService','80FOjomP','next','_menuManagerService','none','composePermission','history-container','session','_historyManagerService','228693kDYRQF','assign','mergeMenu','_localeService','Error','mask','data','close','historyUniver','left','getSheetId','subscribe','createElement','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','clipPath','_config','toString','disposeWithMe','svg','mutations','onStarting','472308oYbiyG','random','invoke','UniverIcon','dataset','history-icon','map','defs','colorChannel1','_messageService','absolute','_injector','string','path','tag','_initListener','[HistoryLoaderService]:\x20Plugin\x20','_themeService','currentTheme$','registerPlugin','_initUniver','darkMode$','1em','univer.operation.toggle-edit-history','some','getCurrentLocale','use','_dialogService','CHANGESET_ACK','getAllPlugins','_initContainer','fill','unsubscribe','_revertErrorTimer','_pluginMap','replace','edit-history-loader.config','executeCommand','event$','history-icon_clip0_907_281','clear','block','3241NmpJyd','includes','defineProperty','value','height','630NPOGvp','add','type','entries','attrs','idSuffix','_historyUniver$','flat','mountHistoryContent','displayName','_commandService','_checkCanRevert','url(#history-icon_clip0_907_281)','location','editHistory.panel.revertFailed','1000','23070YhTMxB','substring','2850592GQPVPr','url(#$1','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','forEach','div','editHistory.panel.listFetchError','_disposableCollection','current','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_univerInstanceService','_initPlugins','100%','getElementById','length','18xIPyDD','unMountHistoryContent','top','setDarkMode','12328oiHzWY','univerContainerId','white','defIds','revertRevision$','zIndex','733905PiIPJl','symbol','./worker.js','permissionId','dispose','state$','set'];_0x5274=function(){return _0xf64c08;};return _0x5274();}const ai={'tag':_0x37f8a6(0x113),'attrs':{'xmlns':_0x37f8a6(0xdd),'fill':_0x37f8a6(0xfc),'viewBox':_0x37f8a6(0xe5),'width':_0x37f8a6(0x12c),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x37f8a6(0xd5),'clipPath':_0x37f8a6(0xa9)},'children':[{'tag':_0x37f8a6(0x123),'attrs':{'d':_0x37f8a6(0x10e)}},{'tag':'path','attrs':{'d':_0x37f8a6(0xb1)}}]},{'tag':_0x37f8a6(0x11d),'attrs':{},'children':[{'tag':_0x37f8a6(0x10f),'attrs':{'id':_0x37f8a6(0x13d)},'children':[{'tag':_0x37f8a6(0x123),'attrs':{'fill':_0x37f8a6(0xc3),'d':_0x37f8a6(0xf7)}}]}]}],'defIds':['history-icon_clip0_907_281']},j=_0xd17907(function(_0x5b4066,_0x505015){const _0x288211=_0x37f8a6;return _0x11af02(A,Object[_0x288211(0x102)]({},_0x5b4066,{'id':_0x288211(0x11b),'ref':_0x505015,'icon':ai}));});j[_0x37f8a6(0xa6)]=_0x37f8a6(0xe3);var ci=Object[_0x37f8a6(0xde)],li=(_0x5de90b,_0x130e6f,_0x2a47b1,_0x2fb25a)=>{const _0x185250=_0x37f8a6;for(var _0x114feb=_0x2fb25a>0x1?void 0x0:_0x2fb25a?ci(_0x130e6f,_0x2a47b1):_0x130e6f,_0x3de7d1=_0x5de90b[_0x185250(0xbc)]-0x1,_0x472c3f;_0x3de7d1>=0x0;_0x3de7d1--)(_0x472c3f=_0x5de90b[_0x3de7d1])&&(_0x114feb=_0x472c3f(_0x114feb)||_0x114feb);return _0x114feb;},l=(_0xb00aca,_0x22668b)=>(_0x15f535,_0x4de6c6)=>_0x22668b(_0x15f535,_0x4de6c6,_0xb00aca);const ui=_0x37f8a6(0xd7),V=_0x37f8a6(0xdf),d='univer-history-container';let f=class extends _0x345cd9{constructor(_0x1d44e0,_0x3d1753,_0x43f3a5,_0x74f03a,_0x1bcb2f,_0x4ebdd5,_0x40ee92,_0x4326d7,_0x3588d6,_0x246d73){const _0x29f68f=_0x37f8a6;super(),g(this,_0x29f68f(0x14b),new _0x4af543(null)),g(this,_0x29f68f(0xf2),this[_0x29f68f(0x14b)]['asObservable']()),g(this,'_disposableCollection',new _0x50e93a()),g(this,_0x29f68f(0x138),new Map()),(this[_0x29f68f(0x104)]=_0x1d44e0,this[_0x29f68f(0xb8)]=_0x3d1753,this['_configService']=_0x43f3a5,this[_0x29f68f(0xa7)]=_0x74f03a,this[_0x29f68f(0x11f)]=_0x1bcb2f,this['_permissionService']=_0x4ebdd5,this['_selectionProtectionRuleModel']=_0x40ee92,this[_0x29f68f(0x131)]=_0x4326d7,this[_0x29f68f(0xd9)]=_0x3588d6,this['_themeService']=_0x246d73,this['_init']());}get[_0x37f8a6(0x109)](){const _0x21c11c=_0x37f8a6;return this[_0x21c11c(0x14b)][_0x21c11c(0x143)];}[_0x37f8a6(0xee)](){const _0x38bad0=_0x37f8a6;this[_0x38bad0(0x134)](),this[_0x38bad0(0xb9)]();}[_0x37f8a6(0x134)](){const _0x70da3a=_0x37f8a6;var _0x33fc24;const _0xd6d5c2=(_0x33fc24=this['_configService'][_0x70da3a(0xe8)](V))!=null?_0x33fc24:ui,_0x248491=document[_0x70da3a(0xbb)](_0xd6d5c2);if(!_0x248491)return;const _0x3d527b=document[_0x70da3a(0x10d)](_0x70da3a(0xb3));_0x3d527b['id']=d,_0x3d527b[_0x70da3a(0x11a)]['uComp']=_0x70da3a(0xfe),_0x3d527b[_0x70da3a(0xea)]['position']=_0x70da3a(0x120),_0x3d527b['style'][_0x70da3a(0xbf)]='0',_0x3d527b[_0x70da3a(0xea)][_0x70da3a(0x10a)]='0',_0x3d527b[_0x70da3a(0xea)]['width']=_0x70da3a(0xba),_0x3d527b[_0x70da3a(0xea)][_0x70da3a(0x144)]=_0x70da3a(0xba),_0x3d527b[_0x70da3a(0xea)][_0x70da3a(0xc6)]=_0x70da3a(0xac),_0x3d527b['style'][_0x70da3a(0xf5)]=_0x70da3a(0xfc),_0x248491[_0x70da3a(0xda)](_0x3d527b);}[_0x37f8a6(0xb9)](){const _0x1ec85e=_0x37f8a6;var _0xc9d9a9;[[_0x2897a9],[_0x49d69e,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1ae26d,null]]}],[_0x3d38d1],[_0x7235f6,{'override':[[_0x25ecb6,null]]}],[_0xdc37cd,{'hasScroll':!0x1}],[_0x5b0e7f],[_0x34b3cd],[_0x4ccd17,{'notExecuteFormula':!0x0}],[_0x2060ac],[_0x20b1bc],[_0x4162fe],[_0x30b231],[_0xbc72c7],[_0xbebfc2],[_0x419888],[_0x53dfc2],[_0x4a8892],[_0x5bcb43],[_0x1036d5],[_0x23794a],[_0x37f1f8],[_0x31d41a,{'notExecuteFormula':!0x0}],[_0x2ccad2,{'workerURL':_0x1ec85e(0xc9)}],[_0x1bdc8e],[_0xb1c42e],[_0xba31f3],[_0x26f4b4],[_0x1aaf68],[_0x471c2d,{'notExecuteFormula':!0x0}],[_0x10be57,{'historyListServerUrl':(_0xc9d9a9=this[_0x1ec85e(0xd1)][_0x1ec85e(0xe8)](x))==null?void 0x0:_0xc9d9a9[_0x1ec85e(0xeb)]}]][_0x1ec85e(0xb2)](([_0x25a0e5,_0x4da2a6])=>this['registerPlugin'](_0x25a0e5,_0x4da2a6));}[_0x37f8a6(0xcb)](){const _0x248734=_0x37f8a6;super['dispose'](),this[_0x248734(0xbe)](),this['_pluginMap'][_0x248734(0x13e)]();}[_0x37f8a6(0x129)](_0x306f45,_0x225943,_0x22733d){const _0x51ebcd=_0x37f8a6;if(this['_pluginMap'][_0x51ebcd(0xd0)](_0x306f45[_0x51ebcd(0xf4)])&&!_0x22733d)throw new Error(_0x51ebcd(0x126)+_0x306f45[_0x51ebcd(0xf4)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x51ebcd(0xcd)](_0x306f45['pluginName'],[_0x306f45,_0x225943]);}[_0x37f8a6(0x133)](){const _0x4940d8=_0x37f8a6;return Array[_0x4940d8(0xdc)](this[_0x4940d8(0x138)]['values']());}[_0x37f8a6(0xa5)](_0x48e0e7){const _0x3a40bf=_0x37f8a6,_0x5121db=document[_0x3a40bf(0xbb)](d);_0x5121db&&(_0x5121db[_0x3a40bf(0xea)][_0x3a40bf(0xf5)]=_0x3a40bf(0x13f),this[_0x3a40bf(0x12a)](_0x48e0e7,d));}[_0x37f8a6(0xbe)](){const _0x4e29fb=_0x37f8a6;var _0x173947;this[_0x4e29fb(0xb5)][_0x4e29fb(0xcb)](),(_0x173947=this[_0x4e29fb(0x109)])==null||_0x173947[_0x4e29fb(0xcb)](),this['_historyUniver$'][_0x4e29fb(0xfa)](null);const _0xe1e6a2=document[_0x4e29fb(0xbb)](d);_0xe1e6a2&&(_0xe1e6a2[_0x4e29fb(0xea)][_0x4e29fb(0xf5)]=_0x4e29fb(0xfc));}[_0x37f8a6(0x12a)](_0xece732,_0x58e97a){const _0x497fb4=_0x37f8a6;if(this[_0x497fb4(0x109)])return;const _0xc319a7=new _0x26caa3({'locales':{[this[_0x497fb4(0x104)][_0x497fb4(0x12f)]()]:this[_0x497fb4(0x104)][_0x497fb4(0xf1)]()},'override':[[_0x595980,{'useClass':_0x5b8201}]]}),_0x414cb7=_0xc319a7[_0x497fb4(0xd3)]();this[_0x497fb4(0x112)](this[_0x497fb4(0x127)][_0x497fb4(0x12b)][_0x497fb4(0x10c)](_0x575eda=>{const _0x2b5d58=_0x497fb4;_0x414cb7[_0x2b5d58(0xd2)](_0x4fd3e4)[_0x2b5d58(0xc0)](_0x575eda);})),this[_0x497fb4(0x112)](this[_0x497fb4(0x127)][_0x497fb4(0x128)]['subscribe'](_0x416c37=>{const _0xf63e2b=_0x497fb4;_0x414cb7[_0xf63e2b(0xd2)](_0x4fd3e4)['setTheme'](_0x416c37);})),_0x414cb7[_0x497fb4(0xd2)](_0x55fef5)['setLocale'](this[_0x497fb4(0x104)][_0x497fb4(0x12f)]()),_0x414cb7[_0x497fb4(0xd2)](_0x448383)['setConfig'](_0x3728f0,this['_configService']['getConfig'](_0x3728f0));const _0x1f31c9=this['_configService']['getConfig'](_0x9cff72);_0x1f31c9&&_0xc319a7[_0x497fb4(0x129)](_0xca15b3,{'license':_0x1f31c9['ls']}),this[_0x497fb4(0x138)][_0x497fb4(0xb2)](([_0x468b22,_0x280436])=>{const _0xd7b2ed=_0x497fb4;_0xc319a7[_0xd7b2ed(0x129)](_0x468b22,_0x280436);}),_0x414cb7[_0x497fb4(0x118)](_0x5e106c=>{const _0x4a30fa=_0x497fb4;this[_0x4a30fa(0x125)](_0x5e106c,_0xece732);}),this[_0x497fb4(0x14b)][_0x497fb4(0xfa)](_0xc319a7);const _0x5e52c2=_0x414cb7[_0x497fb4(0xd2)](_0x5dc1a2),_0x556ff0=this[_0x497fb4(0xa8)](_0xece732);_0x5e52c2[_0x497fb4(0xcf)](_0xece732,_0x58e97a,_0x556ff0);}[_0x37f8a6(0x125)](_0x6f2ff5,_0x2a03c1){const _0x2b880d=_0x37f8a6,_0x2fc2fb=_0x6f2ff5[_0x2b880d(0xd2)](_0x5dc1a2);this[_0x2b880d(0xb5)][_0x2b880d(0x146)](_0x2fc2fb['status$'][_0x2b880d(0x10c)](_0x238c04=>{const _0x13ea0b=_0x2b880d;switch(_0x238c04){case _0x1e95cc['Entered']:this[_0x13ea0b(0x131)][_0x13ea0b(0xe4)](),this['_sidebarService'][_0x13ea0b(0x108)]();break;case _0x1e95cc[_0x13ea0b(0xe1)]:this['unMountHistoryContent']();break;case _0x1e95cc['Error']:this[_0x13ea0b(0xbe)](),this[_0x13ea0b(0x11f)][_0x13ea0b(0xe6)]({'content':this[_0x13ea0b(0x104)]['t'](_0x13ea0b(0xb4)),'type':_0x3b60a8['Error'],'duration':0xbb8});break;}})),this[_0x2b880d(0xb5)][_0x2b880d(0x146)](_0x2fc2fb[_0x2b880d(0xc5)]['subscribe'](async _0x3fda54=>{const _0x1bccb7=_0x2b880d;_0x3fda54&&this[_0x1bccb7(0xa7)][_0x1bccb7(0x13b)](_0x1526b8['id'],{'unitId':_0x2a03c1,'revision':_0x3fda54});}));}[_0x37f8a6(0xa8)](_0x16708e){const _0xbe1926=_0x37f8a6,_0x2837c4=this[_0xbe1926(0xb8)][_0xbe1926(0xd8)](_0x16708e)['getSheets']()[_0xbe1926(0x11c)](_0x4b2809=>_0x4b2809[_0xbe1926(0x10b)]()),_0x5e668c=new _0x5e46f7(_0x16708e)['id'],_0x129777=_0x2837c4[_0xbe1926(0x11c)](_0xfef1e2=>new _0x43b379(_0x16708e,_0xfef1e2)['id']),_0x57d4c2=_0x2837c4[_0xbe1926(0x11c)](_0x41f5d6=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x16708e,_0x41f5d6)['map'](_0x2e8de4=>new _0x48dd44(_0x16708e,_0x41f5d6,_0x2e8de4[_0xbe1926(0xca)])['id']))[_0xbe1926(0x14c)](),_0x205d7c=new _0x154f4a(_0x16708e)['id'];return this['_permissionService'][_0xbe1926(0xfd)]([_0x5e668c,..._0x129777,..._0x57d4c2,_0x205d7c])['every'](_0x3fa4c1=>!!_0x3fa4c1[_0xbe1926(0x143)]);}};f=li([l(0x0,_0x53df44(_0x55fef5)),l(0x1,_0x2c2e76),l(0x2,_0x448383),l(0x3,_0x3b269c),l(0x4,_0x4db92f),l(0x5,_0x55b602),l(0x6,_0x53df44(_0xaa2351)),l(0x7,_0x53df44(_0x1ae26d)),l(0x8,_0x53df44(_0x486ba1)),l(0x9,_0x53df44(_0x4fd3e4))],f);const b={'id':_0x37f8a6(0x12d),'type':_0x5df89c[_0x37f8a6(0xce)],'handler':_0x3fb717=>{const _0x7d4ed8=_0x37f8a6,_0x3ead32=_0x3fb717[_0x7d4ed8(0xd2)](f),_0x3def91=_0x3fb717[_0x7d4ed8(0xd2)](_0x2c2e76),{unitId:_0x35c442}=_0x3398f1(_0x3def91)||{};return _0x35c442?(_0x3ead32['mountHistoryContent'](_0x35c442),!0x0):!0x1;}};function hi(_0x3e3f07){const _0xc5bb28=_0x37f8a6;return{'id':b['id'],'type':_0x16e793[_0xc5bb28(0xf3)],'icon':_0xc5bb28(0xe3),'tooltip':_0xc5bb28(0xf6),'hidden$':_0x1535b8(_0x3e3f07,_0x58d207[_0xc5bb28(0xf0)]),'disabled$':_0x4e498a(_0x3e3f07,{'workbookTypes':[_0x5e46f7,_0x372333],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x41ba77['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x37f8a6(0xde)],vi=(_0x4caaa5,_0x1d99c8,_0x4f2a20,_0x2c6843)=>{const _0x591e6d=_0x37f8a6;for(var _0x5e8032=_0x2c6843>0x1?void 0x0:_0x2c6843?mi(_0x1d99c8,_0x4f2a20):_0x1d99c8,_0x3ef097=_0x4caaa5[_0x591e6d(0xbc)]-0x1,_0x595dc6;_0x3ef097>=0x0;_0x3ef097--)(_0x595dc6=_0x4caaa5[_0x3ef097])&&(_0x5e8032=_0x595dc6(_0x5e8032)||_0x5e8032);return _0x5e8032;},m=(_0x1defb1,_0x21451)=>(_0x413282,_0x157be8)=>_0x21451(_0x413282,_0x157be8,_0x1defb1);let p=class extends _0xc539ae{constructor(_0x44635b,_0x2a63a5,_0x566014,_0xd4f6ef,_0x5d2cb7,_0x44f9b7,_0x31cfe0,_0x4ab267){const _0x30e33e=_0x37f8a6;super(),g(this,_0x30e33e(0x137),null),(this[_0x30e33e(0xa7)]=_0x44635b,this[_0x30e33e(0xfb)]=_0x2a63a5,this[_0x30e33e(0xef)]=_0x566014,this[_0x30e33e(0x100)]=_0xd4f6ef,this[_0x30e33e(0x104)]=_0x5d2cb7,this[_0x30e33e(0x11f)]=_0x44f9b7,this[_0x30e33e(0xe2)]=_0x31cfe0,this[_0x30e33e(0xf8)]=_0x4ab267,this[_0x30e33e(0xee)]());}[_0x37f8a6(0xee)](){const _0x36a5a5=_0x37f8a6;[b][_0x36a5a5(0xb2)](_0x792706=>this[_0x36a5a5(0x112)](_0x4a5a4a(this[_0x36a5a5(0xa7)]['registerCommand'](_0x792706)))),this[_0x36a5a5(0x112)](this[_0x36a5a5(0xef)]['register'](_0x36a5a5(0xe3),j)),this[_0x36a5a5(0xfb)][_0x36a5a5(0x103)](gi),this[_0x36a5a5(0x112)](this['_commandService']['onCommandExecuted'](_0x11522d=>{const _0x137993=_0x36a5a5;if(_0x11522d['id']===_0x1526b8['id']){this[_0x137993(0x11f)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x3b60a8['Loading'],'duration':0x1388});const {unitId:_0xb8c4ef}=_0x11522d['params'],_0xf9903f=this[_0x137993(0xe2)]['getCollabEntity'](_0xb8c4ef),_0x18ad3a=_0x526532([_0xf9903f[_0x137993(0xff)][_0x137993(0x13c)],_0xf9903f[_0x137993(0xcc)]])['subscribe'](async([_0xb7e9ee,_0x1fda82])=>{const _0x77e57=_0x137993;var _0x30c48d;_0xb7e9ee[_0x77e57(0xe0)]===_0x54f392[_0x77e57(0x132)]&&(_0x1fda82==null?void 0x0:_0x1fda82[_0x77e57(0xd6)])===_0x5c5d46[_0x77e57(0xed)]&&_0xb7e9ee[_0x77e57(0x107)][_0x77e57(0x114)][_0x77e57(0x12e)](_0x1f408e=>_0x1f408e['id']===_0x1526b8['id'])&&(this['_historyManagerService'][_0x77e57(0xbe)](),_0x18ad3a['unsubscribe'](),this[_0x77e57(0x137)]&&clearTimeout(this[_0x77e57(0x137)]),await((_0x30c48d=this[_0x77e57(0xf8)])==null?void 0x0:_0x30c48d['exhaustSavingTask']()),setTimeout(()=>window[_0x77e57(0xaa)][_0x77e57(0xe7)]()));});this[_0x137993(0x137)]=setTimeout(()=>{const _0x3f33cf=_0x137993;_0x18ad3a[_0x3f33cf(0x136)](),this[_0x3f33cf(0x11f)][_0x3f33cf(0xe6)]({'content':this[_0x3f33cf(0x104)]['t'](_0x3f33cf(0xab)),'type':_0x3b60a8[_0x3f33cf(0x105)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x3b269c),m(0x1,_0x366ee5),m(0x2,_0x53df44(_0x27ffc6)),m(0x3,_0x53df44(f)),m(0x4,_0x53df44(_0x55fef5)),m(0x5,_0x4db92f),m(0x6,_0x53df44(_0x2e9911)),m(0x7,_0x2767b3)],p);var di=Object['getOwnPropertyDescriptor'],fi=(_0xc2523c,_0x379887,_0x19ea75,_0x85ebfc)=>{const _0x31a61d=_0x37f8a6;for(var _0x283c3f=_0x85ebfc>0x1?void 0x0:_0x85ebfc?di(_0x379887,_0x19ea75):_0x379887,_0xa7668f=_0xc2523c[_0x31a61d(0xbc)]-0x1,_0x340778;_0xa7668f>=0x0;_0xa7668f--)(_0x340778=_0xc2523c[_0xa7668f])&&(_0x283c3f=_0x340778(_0x283c3f)||_0x283c3f);return _0x283c3f;},R=(_0x1edd74,_0x1e941e)=>(_0x4e2336,_0x537ff7)=>_0x1e941e(_0x4e2336,_0x537ff7,_0x1edd74);const _i=_0x37f8a6(0xb7);var _;let N=(_=class extends _0x15ddce{constructor(_0x1cecac=w,_0x1875dd,_0x344f5e){const _0x5246fa=_0x37f8a6;super(),this[_0x5246fa(0x110)]=_0x1cecac,this[_0x5246fa(0x121)]=_0x1875dd,this[_0x5246fa(0xd1)]=_0x344f5e;const {menu:_0x5844bb,..._0x4241ee}=_0x12a45f({},w,this[_0x5246fa(0x110)]);_0x5844bb&&this[_0x5246fa(0xd1)][_0x5246fa(0xe9)]('menu',_0x5844bb,{'merge':!0x0}),this[_0x5246fa(0xd1)][_0x5246fa(0xe9)](x,_0x4241ee),this[_0x5246fa(0x110)][_0x5246fa(0xc2)]&&this[_0x5246fa(0xd1)][_0x5246fa(0xe9)](V,this['_config'][_0x5246fa(0xc2)]);}[_0x37f8a6(0x115)](){const _0x2b3289=_0x37f8a6;[[f],[p]][_0x2b3289(0xb2)](_0x3f3396=>this[_0x2b3289(0x121)][_0x2b3289(0x146)](_0x3f3396));}['onSteady'](){const _0x1194f2=_0x37f8a6;this['_injector'][_0x1194f2(0xd2)](p);}},g(_,_0x37f8a6(0x147),_0x58d207['UNIVER_UNKNOWN']),g(_,'pluginName',_i),_);function _0x19ac(_0x5ae0c6,_0x2ddb8f){const _0x527412=_0x5274();return _0x19ac=function(_0x19ac96,_0x528f0f){_0x19ac96=_0x19ac96-0xa5;let _0x48fefb=_0x527412[_0x19ac96];return _0x48fefb;},_0x19ac(_0x5ae0c6,_0x2ddb8f);}N=fi([R(0x1,_0x53df44(_0x1db332)),R(0x2,_0x448383)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ const _0x10d1fb=_0x223a;(function(_0xa7de29,_0x43752c){const _0x5b3411=_0x223a,_0x1ed4ff=_0xa7de29();while(!![]){try{const _0x1bffce=-parseInt(_0x5b3411(0x25c))/0x1+-parseInt(_0x5b3411(0x21c))/0x2*(-parseInt(_0x5b3411(0x21b))/0x3)+-parseInt(_0x5b3411(0x238))/0x4*(parseInt(_0x5b3411(0x1fe))/0x5)+-parseInt(_0x5b3411(0x251))/0x6*(parseInt(_0x5b3411(0x1e0))/0x7)+parseInt(_0x5b3411(0x210))/0x8*(-parseInt(_0x5b3411(0x264))/0x9)+-parseInt(_0x5b3411(0x1ff))/0xa*(-parseInt(_0x5b3411(0x1e3))/0xb)+parseInt(_0x5b3411(0x202))/0xc*(parseInt(_0x5b3411(0x203))/0xd);if(_0x1bffce===_0x43752c)break;else _0x1ed4ff['push'](_0x1ed4ff['shift']());}catch(_0xcb1692){_0x1ed4ff['push'](_0x1ed4ff['shift']());}}}(_0x2f28,0xc316a));var G=Object['defineProperty'],B=(_0x27dd85,_0x28d4e4,_0x1040c1)=>_0x28d4e4 in _0x27dd85?G(_0x27dd85,_0x28d4e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1040c1}):_0x27dd85[_0x28d4e4]=_0x1040c1,g=(_0x4a5f5f,_0x2c0f04,_0x3526ac)=>B(_0x4a5f5f,typeof _0x2c0f04!=_0x10d1fb(0x274)?_0x2c0f04+'':_0x2c0f04,_0x3526ac);import{Inject as _0x539add,LocaleService as _0x3bb91b,IUniverInstanceService as _0x1501ab,IConfigService as _0x556388,ICommandService as _0x158273,IPermissionService as _0x12dbf1,ThemeService as _0x4f4959,Disposable as _0x39b485,DisposableCollection as _0x1df8c8,Univer as _0x213f65,IAuthzIoService as _0x115720,CommandType as _0x3de72b,UniverInstanceType as _0x4db259,RxDisposable as _0x32c710,toDisposable as _0x57b136,Plugin as _0x4fc823,merge as _0x578e57,Injector as _0x56848e}from'@univerjs/core';import{UniverCollaborationPlugin as _0x4b3029,RevertRevisionMutation as _0x1f9f3c,CollaborationEvent as _0x357650}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x2270e3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e1da2,CollaborationController as _0x200316,ILocalCacheService as _0x4cd47b,CollaborationStatus as _0x3601b9}from'@univerjs-pro/collaboration-client';import{MessageType as _0x2fb1cf}from'@univerjs/design';import{useRef as _0x516d95,createElement as _0xbfb586,forwardRef as _0x4d0a66}from'react';import{IMessageService as _0x1cefe2,IDialogService as _0x58fa6b,ISidebarService as _0x500242,UniverUIPlugin as _0x24e650,getMenuHiddenObservable as _0x4824bb,MenuItemType as _0x51c8b6,RibbonStartGroup as _0x17cf7e,IMenuManagerService as _0x1f293d,ComponentManager as _0x2a46dc}from'@univerjs/ui';import{BehaviorSubject as _0x440eb6,combineLatest as _0x59f3e2}from'rxjs';import{RangeProtectionRuleModel as _0x15ca3f,UniverSheetsPlugin as _0x1f4316,WorkbookEditablePermission as _0x5eec0c,WorksheetEditPermission as _0x1c2cd1,RangeProtectionPermissionEditPoint as _0x4b4e71,WorkbookRecoverHistoryPermission as _0xbda07f,getSheetCommandTarget as _0x296b3b,WorkbookViewHistoryPermission as _0x27fdd6}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x30c2ab,HistoryManagerService as _0x599f5e,HistoryModeStatus as _0x298bb8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x250fae,UniverLicensePlugin as _0x34e813}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x4465be}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x25e59b}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5d2da1}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x18a909}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x5bdd10}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x23bd5a}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xfab444,IImageIoService as _0x529ac1}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x5151b2}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x18bf41}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3d2e06}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x436afe}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x2162b1}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x2ee57c}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x6e2c6b}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0xdb4364}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x3f048a}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x285df6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x360261}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x992c8c}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1ee66e}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x432dbc}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2da7d9}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x3ee7ff}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x2f3b7e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x252c89}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x3f0975,getCurrentRangeDisable$ as _0xb1b27}from'@univerjs/sheets-ui';const U='edit-history-loader.config',R={};function A({ref:_0xc0c8df,..._0x1366fa}){const _0x6bb555=_0x10d1fb,{icon:_0x2b6e41,id:_0x3bab52,className:_0x54f071,extend:_0x32057a,..._0x349851}=_0x1366fa,_0x3bd855=(_0x6bb555(0x1dd)+_0x3bab52+'\x20'+(_0x54f071||''))[_0x6bb555(0x25f)](),_0x21cfc6=_0x516d95('_'+si());return F(_0x2b6e41,''+_0x3bab52,{'defIds':_0x2b6e41['defIds'],'idSuffix':_0x21cfc6[_0x6bb555(0x1e7)]},{'ref':_0xc0c8df,'className':_0x3bd855,..._0x349851},_0x32057a);}function F(_0x428bb3,_0xeeadc7,_0x4f082c,_0x3af0ed,_0x3ed34b){const _0x4efa68=_0x10d1fb;return _0xbfb586(_0x428bb3['tag'],{'key':_0xeeadc7,...ni(_0x428bb3,_0x4f082c,_0x3ed34b),..._0x3af0ed},(oi(_0x428bb3,_0x4f082c)[_0x4efa68(0x23a)]||[])[_0x4efa68(0x269)]((_0x1bbe04,_0x116f60)=>F(_0x1bbe04,_0xeeadc7+'-'+_0x428bb3[_0x4efa68(0x20f)]+'-'+_0x116f60,_0x4f082c,void 0x0,_0x3ed34b)));}function ni(_0x33e60f,_0x30838e,_0x5bb4e7){const _0x3e54e1=_0x10d1fb,_0x260f3d={..._0x33e60f[_0x3e54e1(0x223)]};_0x5bb4e7!=null&&_0x5bb4e7['colorChannel1']&&_0x260f3d[_0x3e54e1(0x273)]===_0x3e54e1(0x26d)&&(_0x260f3d[_0x3e54e1(0x273)]=_0x5bb4e7[_0x3e54e1(0x26d)]),_0x33e60f[_0x3e54e1(0x20f)]==='mask'&&_0x260f3d['id']&&(_0x260f3d['id']=_0x260f3d['id']+_0x30838e[_0x3e54e1(0x250)]),Object['entries'](_0x260f3d)['forEach'](([_0x32dbcc,_0x1dfdf6])=>{const _0x10ec6e=_0x3e54e1;_0x32dbcc===_0x10ec6e(0x227)&&typeof _0x1dfdf6==_0x10ec6e(0x1fd)&&(_0x260f3d[_0x32dbcc]=_0x1dfdf6[_0x10ec6e(0x220)](/url\(#(.*)\)/,'url(#$1'+_0x30838e[_0x10ec6e(0x250)]+')'));});const {defIds:_0x50ed35}=_0x30838e;return!_0x50ed35||_0x50ed35[_0x3e54e1(0x257)]===0x0||(_0x33e60f[_0x3e54e1(0x20f)]===_0x3e54e1(0x255)&&_0x260f3d[_0x3e54e1(0x268)]&&(_0x260f3d[_0x3e54e1(0x268)]=_0x260f3d[_0x3e54e1(0x268)]+_0x30838e[_0x3e54e1(0x250)]),Object[_0x3e54e1(0x26a)](_0x260f3d)[_0x3e54e1(0x1f6)](([_0x3a3822,_0x23304e])=>{const _0x480243=_0x3e54e1;typeof _0x23304e==_0x480243(0x1fd)&&(_0x260f3d[_0x3a3822]=_0x23304e[_0x480243(0x220)](/url\(#(.*)\)/,'url(#$1'+_0x30838e['idSuffix']+')'));})),_0x260f3d;}function oi(_0x1401af,_0x42892f){const _0x1ce253=_0x10d1fb;var _0x3d9bc0;const {defIds:_0x187bf6}=_0x42892f;return!_0x187bf6||_0x187bf6['length']===0x0?_0x1401af:_0x1401af['tag']===_0x1ce253(0x1e1)&&((_0x3d9bc0=_0x1401af[_0x1ce253(0x23a)])!=null&&_0x3d9bc0[_0x1ce253(0x257)])?{..._0x1401af,'children':_0x1401af[_0x1ce253(0x23a)][_0x1ce253(0x269)](_0x37da9e=>typeof _0x37da9e[_0x1ce253(0x223)]['id']=='string'&&_0x187bf6&&_0x187bf6[_0x1ce253(0x277)](_0x37da9e[_0x1ce253(0x223)]['id'])?{..._0x37da9e,'attrs':{..._0x37da9e['attrs'],'id':_0x37da9e[_0x1ce253(0x223)]['id']+_0x42892f[_0x1ce253(0x250)]}}:_0x37da9e)}:_0x1401af;}function si(){const _0x4f6e59=_0x10d1fb;return Math[_0x4f6e59(0x211)]()[_0x4f6e59(0x1ee)](0x24)[_0x4f6e59(0x1ec)](0x2,0x8);}A[_0x10d1fb(0x247)]=_0x10d1fb(0x1d7);const ai={'tag':_0x10d1fb(0x272),'attrs':{'xmlns':_0x10d1fb(0x1dc),'fill':_0x10d1fb(0x21d),'viewBox':_0x10d1fb(0x23f),'width':_0x10d1fb(0x245),'height':_0x10d1fb(0x245)},'children':[{'tag':'g','attrs':{'fill':_0x10d1fb(0x1f4),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x10d1fb(0x219),'attrs':{'d':_0x10d1fb(0x24d)}},{'tag':'path','attrs':{'d':_0x10d1fb(0x25a)}}]},{'tag':_0x10d1fb(0x1e1),'attrs':{},'children':[{'tag':_0x10d1fb(0x23b),'attrs':{'id':_0x10d1fb(0x22b)},'children':[{'tag':_0x10d1fb(0x219),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},j=_0x4d0a66(function(_0x15782,_0x2fbc27){const _0x4494d6=_0x10d1fb;return _0xbfb586(A,Object['assign']({},_0x15782,{'id':_0x4494d6(0x1d6),'ref':_0x2fbc27,'icon':ai}));});j[_0x10d1fb(0x247)]=_0x10d1fb(0x239);var ci=Object[_0x10d1fb(0x271)],li=(_0x1f3ebc,_0x24614f,_0x2a3bd8,_0x2f9b5e)=>{const _0x52d8f0=_0x10d1fb;for(var _0x1fb457=_0x2f9b5e>0x1?void 0x0:_0x2f9b5e?ci(_0x24614f,_0x2a3bd8):_0x24614f,_0x1b845f=_0x1f3ebc[_0x52d8f0(0x257)]-0x1,_0x2e44e1;_0x1b845f>=0x0;_0x1b845f--)(_0x2e44e1=_0x1f3ebc[_0x1b845f])&&(_0x1fb457=_0x2e44e1(_0x1fb457)||_0x1fb457);return _0x1fb457;},l=(_0x231a0a,_0x4f9334)=>(_0x4bc1c8,_0x1e48e0)=>_0x4f9334(_0x4bc1c8,_0x1e48e0,_0x231a0a);const ui=_0x10d1fb(0x209),V=_0x10d1fb(0x241),d=_0x10d1fb(0x22f);let f=class extends _0x39b485{constructor(_0x1bd849,_0x29538f,_0x3aed22,_0xf883a4,_0x271256,_0x29d3e5,_0x3071c7,_0x28e5a6,_0x4d09e2,_0x32eb8a){const _0x3736fa=_0x10d1fb;super(),g(this,_0x3736fa(0x249),new _0x440eb6(null)),g(this,_0x3736fa(0x204),this['_historyUniver$'][_0x3736fa(0x229)]()),g(this,_0x3736fa(0x1f0),new _0x1df8c8()),g(this,'_pluginMap',new Map()),(this[_0x3736fa(0x1ea)]=_0x1bd849,this[_0x3736fa(0x22a)]=_0x29538f,this[_0x3736fa(0x1d5)]=_0x3aed22,this[_0x3736fa(0x270)]=_0xf883a4,this['_messageService']=_0x271256,this[_0x3736fa(0x1f1)]=_0x29d3e5,this[_0x3736fa(0x24c)]=_0x3071c7,this[_0x3736fa(0x20c)]=_0x28e5a6,this[_0x3736fa(0x222)]=_0x4d09e2,this[_0x3736fa(0x231)]=_0x32eb8a,this[_0x3736fa(0x207)]());}get[_0x10d1fb(0x22d)](){const _0x13a1fe=_0x10d1fb;return this[_0x13a1fe(0x249)][_0x13a1fe(0x217)];}[_0x10d1fb(0x207)](){const _0x4d91a0=_0x10d1fb;this[_0x4d91a0(0x23e)](),this[_0x4d91a0(0x1fb)]();}['_initContainer'](){const _0x426b84=_0x10d1fb;var _0x261d9c;const _0x56bafb=(_0x261d9c=this[_0x426b84(0x1d5)][_0x426b84(0x1d8)](V))!=null?_0x261d9c:ui,_0x1fa3fe=document[_0x426b84(0x236)](_0x56bafb);if(!_0x1fa3fe)return;const _0x50ea0f=document[_0x426b84(0x254)](_0x426b84(0x1df));_0x50ea0f['id']=d,_0x50ea0f[_0x426b84(0x235)]['uComp']=_0x426b84(0x234),_0x50ea0f['style']['position']='absolute',_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x1e2)]='0',_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x25e)]='0',_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x228)]=_0x426b84(0x25b),_0x50ea0f['style'][_0x426b84(0x224)]=_0x426b84(0x25b),_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x252)]=_0x426b84(0x221),_0x50ea0f['style'][_0x426b84(0x1fa)]=_0x426b84(0x21d),_0x1fa3fe['appendChild'](_0x50ea0f);}[_0x10d1fb(0x1fb)](){const _0x2a8a9e=_0x10d1fb;var _0x50ee3b,_0x55f492;[[_0x3d2e06],[_0x24e650,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x58fa6b,null]]}],[_0x436afe],[_0xfab444,{'override':[[_0x529ac1,null]]}],[_0x5bdd10,{'hasScroll':!0x1}],[_0x23bd5a],[_0x252c89],[_0x1f4316,{'notExecuteFormula':!0x0}],[_0x3f0975],[_0x432dbc],[_0x2da7d9],[_0x4b3029],[_0x992c8c],[_0x1ee66e],[_0x2ee57c],[_0x6e2c6b],[_0x3ee7ff],[_0x2f3b7e],[_0x18a909],[_0xdb4364],[_0x3f048a],[_0x18bf41,{'notExecuteFormula':!0x0}],[_0x2162b1,{'workerURL':_0x2a8a9e(0x1e8)}],[_0x5151b2],[_0x285df6],[_0x360261],[_0x25e59b],[_0x5d2da1],[_0x4465be,{'notExecuteFormula':!0x0}],[_0x30c2ab,{'historyListServerUrl':(_0x50ee3b=this[_0x2a8a9e(0x1d5)][_0x2a8a9e(0x1d8)](U))==null?void 0x0:_0x50ee3b[_0x2a8a9e(0x1f8)],'historyPanelComponentKey':(_0x55f492=this['_configService']['getConfig'](U))==null?void 0x0:_0x55f492['historyPanelComponentKey']}]]['forEach'](([_0x12b1fa,_0x7e197f])=>this[_0x2a8a9e(0x263)](_0x12b1fa,_0x7e197f));}[_0x10d1fb(0x218)](){const _0x1ac78a=_0x10d1fb;super['dispose'](),this[_0x1ac78a(0x1ef)](),this[_0x1ac78a(0x24f)][_0x1ac78a(0x240)]();}[_0x10d1fb(0x263)](_0x5bcd18,_0x407f23,_0x19b2f8){const _0x4da653=_0x10d1fb;if(this['_pluginMap'][_0x4da653(0x21f)](_0x5bcd18[_0x4da653(0x1d9)])&&!_0x19b2f8)throw new Error(_0x4da653(0x233)+_0x5bcd18[_0x4da653(0x1d9)]+_0x4da653(0x253));this['_pluginMap'][_0x4da653(0x206)](_0x5bcd18[_0x4da653(0x1d9)],[_0x5bcd18,_0x407f23]);}[_0x10d1fb(0x25d)](){const _0x13125c=_0x10d1fb;return Array[_0x13125c(0x201)](this[_0x13125c(0x24f)]['values']());}[_0x10d1fb(0x21e)](_0x3a497a){const _0x53c5a6=_0x10d1fb,_0x5d566f=document['getElementById'](d);_0x5d566f&&(_0x5d566f[_0x53c5a6(0x213)][_0x53c5a6(0x1fa)]=_0x53c5a6(0x1e5),this[_0x53c5a6(0x1db)](_0x3a497a,d));}[_0x10d1fb(0x1ef)](){const _0x4a68e7=_0x10d1fb;var _0x46c235;this[_0x4a68e7(0x1f0)][_0x4a68e7(0x218)](),(_0x46c235=this[_0x4a68e7(0x22d)])==null||_0x46c235['dispose'](),this[_0x4a68e7(0x249)]['next'](null);const _0x40784f=document[_0x4a68e7(0x236)](d);_0x40784f&&(_0x40784f[_0x4a68e7(0x213)][_0x4a68e7(0x1fa)]=_0x4a68e7(0x21d));}[_0x10d1fb(0x1db)](_0xf511d9,_0x49eaac){const _0x3e0e8f=_0x10d1fb;if(this[_0x3e0e8f(0x22d)])return;const _0x4e19a3=new _0x213f65({'locales':{[this[_0x3e0e8f(0x1ea)]['getCurrentLocale']()]:this[_0x3e0e8f(0x1ea)][_0x3e0e8f(0x1d0)]()},'override':[[_0x115720,{'useClass':_0x2270e3}]]}),_0x24d321=_0x4e19a3[_0x3e0e8f(0x24a)]();this['disposeWithMe'](this[_0x3e0e8f(0x231)][_0x3e0e8f(0x1de)]['subscribe'](_0x106f3d=>{const _0x100405=_0x3e0e8f;_0x24d321[_0x100405(0x225)](_0x4f4959)[_0x100405(0x26e)](_0x106f3d);})),this[_0x3e0e8f(0x205)](this[_0x3e0e8f(0x231)][_0x3e0e8f(0x20d)][_0x3e0e8f(0x261)](_0x538663=>{const _0x2fc14b=_0x3e0e8f;_0x24d321[_0x2fc14b(0x225)](_0x4f4959)[_0x2fc14b(0x1f7)](_0x538663);})),_0x24d321['get'](_0x3bb91b)[_0x3e0e8f(0x266)](this[_0x3e0e8f(0x1ea)][_0x3e0e8f(0x1f5)]()),_0x24d321['get'](_0x556388)[_0x3e0e8f(0x20e)](_0x4e1da2,this[_0x3e0e8f(0x1d5)][_0x3e0e8f(0x1d8)](_0x4e1da2));const _0x3b3c21=this['_configService']['getConfig'](_0x250fae);_0x3b3c21&&_0x4e19a3[_0x3e0e8f(0x263)](_0x34e813,{'license':_0x3b3c21['ls']}),this['_pluginMap'][_0x3e0e8f(0x1f6)](([_0x112822,_0x5e2008])=>{const _0x4b7672=_0x3e0e8f;_0x4e19a3[_0x4b7672(0x263)](_0x112822,_0x5e2008);}),_0x24d321[_0x3e0e8f(0x215)](_0x50a1d3=>{this['_initListener'](_0x50a1d3,_0xf511d9);}),this[_0x3e0e8f(0x249)][_0x3e0e8f(0x278)](_0x4e19a3);const _0xd0e2ad=_0x24d321[_0x3e0e8f(0x225)](_0x599f5e),_0x3ad6ae=this[_0x3e0e8f(0x1e4)](_0xf511d9);_0xd0e2ad[_0x3e0e8f(0x26b)](_0xf511d9,_0x49eaac,_0x3ad6ae);}[_0x10d1fb(0x1fc)](_0xc720ce,_0x51c171){const _0x222492=_0x10d1fb,_0x305b4d=_0xc720ce[_0x222492(0x225)](_0x599f5e);this[_0x222492(0x1f0)][_0x222492(0x1ed)](_0x305b4d[_0x222492(0x1f3)]['subscribe'](_0x298bbf=>{const _0x2decce=_0x222492;switch(_0x298bbf){case _0x298bb8[_0x2decce(0x22e)]:this[_0x2decce(0x20c)]['closeAll'](),this[_0x2decce(0x222)][_0x2decce(0x1d2)]();break;case _0x298bb8['Exited']:this[_0x2decce(0x1ef)]();break;case _0x298bb8['Error']:this['unMountHistoryContent'](),this[_0x2decce(0x22c)][_0x2decce(0x23d)]({'content':this[_0x2decce(0x1ea)]['t'](_0x2decce(0x279)),'type':_0x2fb1cf['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x222492(0x1ed)](_0x305b4d['revertRevision$']['subscribe'](async _0x4b3527=>{const _0x14dc86=_0x222492;_0x4b3527&&this[_0x14dc86(0x270)]['executeCommand'](_0x1f9f3c['id'],{'unitId':_0x51c171,'revision':_0x4b3527});}));}[_0x10d1fb(0x1e4)](_0x3a697b){const _0x3a3acb=_0x10d1fb,_0x2d68fb=this[_0x3a3acb(0x22a)][_0x3a3acb(0x230)](_0x3a697b)['getSheets']()[_0x3a3acb(0x269)](_0x47f1ed=>_0x47f1ed[_0x3a3acb(0x262)]()),_0x40a219=new _0x5eec0c(_0x3a697b)['id'],_0x43407c=_0x2d68fb[_0x3a3acb(0x269)](_0x394cf3=>new _0x1c2cd1(_0x3a697b,_0x394cf3)['id']),_0x52e867=_0x2d68fb[_0x3a3acb(0x269)](_0xb58609=>this[_0x3a3acb(0x24c)][_0x3a3acb(0x258)](_0x3a697b,_0xb58609)[_0x3a3acb(0x269)](_0x2b3eb8=>new _0x4b4e71(_0x3a697b,_0xb58609,_0x2b3eb8[_0x3a3acb(0x1e9)])['id']))[_0x3a3acb(0x216)](),_0x58169f=new _0xbda07f(_0x3a697b)['id'];return this[_0x3a3acb(0x1f1)][_0x3a3acb(0x20a)]([_0x40a219,..._0x43407c,..._0x52e867,_0x58169f])[_0x3a3acb(0x256)](_0x2b5a2e=>!!_0x2b5a2e[_0x3a3acb(0x217)]);}};f=li([l(0x0,_0x539add(_0x3bb91b)),l(0x1,_0x1501ab),l(0x2,_0x556388),l(0x3,_0x158273),l(0x4,_0x1cefe2),l(0x5,_0x12dbf1),l(0x6,_0x539add(_0x15ca3f)),l(0x7,_0x539add(_0x58fa6b)),l(0x8,_0x539add(_0x500242)),l(0x9,_0x539add(_0x4f4959))],f);function _0x2f28(){const _0x28eb05=['UNIVER_SHEET','from','4692qLapZM','49504MUAoYR','historyUniver$','disposeWithMe','set','_init','_revertErrorTimer','univer-container','composePermission','unsubscribe','_dialogService','currentTheme$','setConfig','tag','352lViNSC','random','registerCommand','style','_injector','invoke','flat','value','dispose','path','getCollabEntity','334329cnyIWT','26QmcrbG','none','mountHistoryContent','has','replace','1000','_sidebarService','attrs','height','get','onSteady','mask','width','asObservable','_univerInstanceService','history-icon_clip0_907_281','_messageService','historyUniver','Entered','univer-history-container','getUnit','_themeService','_collaborationController','[HistoryLoaderService]:\x20Plugin\x20','history-container','dataset','getElementById','_config','4ykMEHm','HistoryIcon','children','clipPath','exhaustSavingTask','show','_initContainer','0\x200\x2016\x2016','clear','UNIVER_CONTAINER_ID','onStarting','UNIVER_UNKNOWN','OPERATION','1em','editHistory.panel.revertFailed','displayName','type','_historyUniver$','__getInjector','location','_selectionProtectionRuleModel','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','mutations','_pluginMap','idSuffix','28680jsDAuH','zIndex','\x20has\x20been\x20registered.','createElement','use','every','length','getSubunitRuleList','data','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','100%','1042555PWQEkr','getAllPlugins','left','trim','CHANGESET_ACK','subscribe','getSheetId','registerPlugin','74520vBoPkt','OTHERS','setLocale','menu','xlink:href','map','entries','triggerLoadVersions','event$','colorChannel1','setDarkMode','status','_commandService','getOwnPropertyDescriptor','svg','fill','symbol','eventID','reload','includes','next','editHistory.panel.listFetchError','Loading','getLocales','_historyManagerService','close','_localCacheService','editHistory.panel.reverting','_configService','history-icon','UniverIcon','getConfig','pluginName','_menuManagerService','_initUniver','http://www.w3.org/2000/svg','univerjs-icon\x20univerjs-icon-','darkMode$','div','714PYjeTU','defs','top','889339TGwpyy','_checkCanRevert','block','BUTTON','current','./worker.js','permissionId','_localeService','univerContainerId','substring','add','toString','unMountHistoryContent','_disposableCollection','_permissionService','SYNCED','status$','currentColor','getCurrentLocale','forEach','setTheme','historyListServerUrl','_componentManager','display','_initPlugins','_initListener','string','6071790PJDyop','120yuTCbf'];_0x2f28=function(){return _0x28eb05;};return _0x2f28();}const P={'id':'univer.operation.toggle-edit-history','type':_0x3de72b[_0x10d1fb(0x244)],'handler':_0x1eeaa5=>{const _0x57c6d6=_0x10d1fb,_0x5968e8=_0x1eeaa5[_0x57c6d6(0x225)](f),_0x46f93b=_0x1eeaa5[_0x57c6d6(0x225)](_0x1501ab),{unitId:_0x5bf7c5}=_0x296b3b(_0x46f93b)||{};return _0x5bf7c5?(_0x5968e8['mountHistoryContent'](_0x5bf7c5),!0x0):!0x1;}};function hi(_0x1cbcfa){const _0x55d531=_0x10d1fb;return{'id':P['id'],'type':_0x51c8b6[_0x55d531(0x1e6)],'icon':'HistoryIcon','tooltip':'editHistory.panel.title','hidden$':_0x4824bb(_0x1cbcfa,_0x4db259[_0x55d531(0x200)]),'disabled$':_0xb1b27(_0x1cbcfa,{'workbookTypes':[_0x5eec0c,_0x27fdd6],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x17cf7e[_0x10d1fb(0x265)]]:{[P['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x10d1fb(0x271)],vi=(_0x1b12b5,_0x5b01dc,_0x319b6e,_0x5dbbfc)=>{const _0x30c2f1=_0x10d1fb;for(var _0xc8f9d5=_0x5dbbfc>0x1?void 0x0:_0x5dbbfc?mi(_0x5b01dc,_0x319b6e):_0x5b01dc,_0x24e762=_0x1b12b5[_0x30c2f1(0x257)]-0x1,_0x32c83a;_0x24e762>=0x0;_0x24e762--)(_0x32c83a=_0x1b12b5[_0x24e762])&&(_0xc8f9d5=_0x32c83a(_0xc8f9d5)||_0xc8f9d5);return _0xc8f9d5;},m=(_0xb2650b,_0xcaed9a)=>(_0x567fff,_0x11915b)=>_0xcaed9a(_0x567fff,_0x11915b,_0xb2650b);let p=class extends _0x32c710{constructor(_0x5b261b,_0x354233,_0x4bd78d,_0x421bb2,_0x7a6b15,_0x1ca0f1,_0x32a432,_0x2d400e){const _0x42db93=_0x10d1fb;super(),g(this,_0x42db93(0x208),null),(this['_commandService']=_0x5b261b,this[_0x42db93(0x1da)]=_0x354233,this[_0x42db93(0x1f9)]=_0x4bd78d,this['_historyManagerService']=_0x421bb2,this['_localeService']=_0x7a6b15,this[_0x42db93(0x22c)]=_0x1ca0f1,this[_0x42db93(0x232)]=_0x32a432,this[_0x42db93(0x1d3)]=_0x2d400e,this[_0x42db93(0x207)]());}[_0x10d1fb(0x207)](){const _0xc0d2e5=_0x10d1fb;[P][_0xc0d2e5(0x1f6)](_0x54ed2b=>this[_0xc0d2e5(0x205)](_0x57b136(this[_0xc0d2e5(0x270)][_0xc0d2e5(0x212)](_0x54ed2b)))),this[_0xc0d2e5(0x205)](this[_0xc0d2e5(0x1f9)]['register'](_0xc0d2e5(0x239),j)),this['_menuManagerService']['mergeMenu'](gi),this[_0xc0d2e5(0x205)](this[_0xc0d2e5(0x270)]['onCommandExecuted'](_0x7b4d79=>{const _0x4329bd=_0xc0d2e5;if(_0x7b4d79['id']===_0x1f9f3c['id']){this[_0x4329bd(0x22c)]['show']({'content':this[_0x4329bd(0x1ea)]['t'](_0x4329bd(0x1d4)),'type':_0x2fb1cf[_0x4329bd(0x27a)],'duration':0x1388});const {unitId:_0xb4619}=_0x7b4d79['params'],_0x45dc3c=this['_collaborationController'][_0x4329bd(0x21a)](_0xb4619),_0x2a84ef=_0x59f3e2([_0x45dc3c['session'][_0x4329bd(0x26c)],_0x45dc3c['state$']])[_0x4329bd(0x261)](async([_0x118f0c,_0x272c4e])=>{const _0x2a77d0=_0x4329bd;var _0x344597;_0x118f0c[_0x2a77d0(0x275)]===_0x357650[_0x2a77d0(0x260)]&&(_0x272c4e==null?void 0x0:_0x272c4e[_0x2a77d0(0x26f)])===_0x3601b9[_0x2a77d0(0x1f2)]&&_0x118f0c[_0x2a77d0(0x259)][_0x2a77d0(0x24e)]['some'](_0x430db7=>_0x430db7['id']===_0x1f9f3c['id'])&&(this[_0x2a77d0(0x1d1)][_0x2a77d0(0x1ef)](),_0x2a84ef[_0x2a77d0(0x20b)](),this[_0x2a77d0(0x208)]&&clearTimeout(this[_0x2a77d0(0x208)]),await((_0x344597=this['_localCacheService'])==null?void 0x0:_0x344597[_0x2a77d0(0x23c)]()),setTimeout(()=>window[_0x2a77d0(0x24b)][_0x2a77d0(0x276)]()));});this[_0x4329bd(0x208)]=setTimeout(()=>{const _0x5698ee=_0x4329bd;_0x2a84ef[_0x5698ee(0x20b)](),this[_0x5698ee(0x22c)]['show']({'content':this[_0x5698ee(0x1ea)]['t'](_0x5698ee(0x246)),'type':_0x2fb1cf['Error'],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x158273),m(0x1,_0x1f293d),m(0x2,_0x539add(_0x2a46dc)),m(0x3,_0x539add(f)),m(0x4,_0x539add(_0x3bb91b)),m(0x5,_0x1cefe2),m(0x6,_0x539add(_0x200316)),m(0x7,_0x4cd47b)],p);var di=Object[_0x10d1fb(0x271)],fi=(_0x2ea785,_0xe4fa13,_0x3cf622,_0x533662)=>{const _0x2fbd47=_0x10d1fb;for(var _0x4e986f=_0x533662>0x1?void 0x0:_0x533662?di(_0xe4fa13,_0x3cf622):_0xe4fa13,_0x2b77fa=_0x2ea785[_0x2fbd47(0x257)]-0x1,_0x1a21b4;_0x2b77fa>=0x0;_0x2b77fa--)(_0x1a21b4=_0x2ea785[_0x2b77fa])&&(_0x4e986f=_0x1a21b4(_0x4e986f)||_0x4e986f);return _0x4e986f;},N=(_0x1fb61a,_0xf5cf1c)=>(_0x3e5954,_0x506902)=>_0xf5cf1c(_0x3e5954,_0x506902,_0x1fb61a);const _i='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';function _0x223a(_0x4b250f,_0x165ada){const _0x2f2839=_0x2f28();return _0x223a=function(_0x223adc,_0x2d9c92){_0x223adc=_0x223adc-0x1d0;let _0x2c2d3a=_0x2f2839[_0x223adc];return _0x2c2d3a;},_0x223a(_0x4b250f,_0x165ada);}var _;let H=(_=class extends _0x4fc823{constructor(_0x5658d3=R,_0x35d302,_0x5e143c){const _0x9214f2=_0x10d1fb;super(),this[_0x9214f2(0x237)]=_0x5658d3,this[_0x9214f2(0x214)]=_0x35d302,this['_configService']=_0x5e143c;const {menu:_0x109d33,..._0x40f223}=_0x578e57({},R,this['_config']);_0x109d33&&this[_0x9214f2(0x1d5)][_0x9214f2(0x20e)](_0x9214f2(0x267),_0x109d33,{'merge':!0x0}),this[_0x9214f2(0x1d5)][_0x9214f2(0x20e)](U,_0x40f223),this[_0x9214f2(0x237)][_0x9214f2(0x1eb)]&&this['_configService'][_0x9214f2(0x20e)](V,this[_0x9214f2(0x237)]['univerContainerId']);}[_0x10d1fb(0x242)](){const _0x50d16f=_0x10d1fb;[[f],[p]]['forEach'](_0x4056ee=>this[_0x50d16f(0x214)]['add'](_0x4056ee));}[_0x10d1fb(0x226)](){const _0x394b1d=_0x10d1fb;this['_injector'][_0x394b1d(0x225)](p);}},g(_,_0x10d1fb(0x248),_0x4db259[_0x10d1fb(0x243)]),g(_,_0x10d1fb(0x1d9),_i),_);H=fi([N(0x1,_0x539add(_0x56848e)),N(0x2,_0x556388)],H);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x37f8a6=_0x19ac;(function(_0x6d2d62,_0x1b7d92){const _0x463c65=_0x19ac,_0x36cb7d=_0x6d2d62();while(!![]){try{const _0x2f9814=parseInt(_0x463c65(0xc7))/0x1+parseInt(_0x463c65(0xbd))/0x2*(parseInt(_0x463c65(0x101))/0x3)+-parseInt(_0x463c65(0xaf))/0x4+-parseInt(_0x463c65(0xf9))/0x5*(parseInt(_0x463c65(0x116))/0x6)+-parseInt(_0x463c65(0x140))/0x7*(-parseInt(_0x463c65(0xc1))/0x8)+-parseInt(_0x463c65(0x145))/0x9*(-parseInt(_0x463c65(0xad))/0xa)+parseInt(_0x463c65(0xdb))/0xb;if(_0x2f9814===_0x1b7d92)break;else _0x36cb7d['push'](_0x36cb7d['shift']());}catch(_0xa9475d){_0x36cb7d['push'](_0x36cb7d['shift']());}}}(_0x5274,0xa3d69));var G=Object[_0x37f8a6(0x142)],B=(_0x17bc02,_0x238f22,_0x38e1cf)=>_0x238f22 in _0x17bc02?G(_0x17bc02,_0x238f22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e1cf}):_0x17bc02[_0x238f22]=_0x38e1cf,g=(_0x58e6a9,_0x397c7e,_0x53de89)=>B(_0x58e6a9,typeof _0x397c7e!=_0x37f8a6(0xc8)?_0x397c7e+'':_0x397c7e,_0x53de89);import{Inject as _0x53df44,LocaleService as _0x55fef5,IUniverInstanceService as _0x2c2e76,IConfigService as _0x448383,ICommandService as _0x3b269c,IPermissionService as _0x55b602,ThemeService as _0x4fd3e4,Disposable as _0x345cd9,DisposableCollection as _0x50e93a,Univer as _0x26caa3,IAuthzIoService as _0x595980,CommandType as _0x5df89c,UniverInstanceType as _0x58d207,RxDisposable as _0xc539ae,toDisposable as _0x4a5a4a,Plugin as _0x15ddce,merge as _0x12a45f,Injector as _0x1db332}from'@univerjs/core';import{UniverCollaborationPlugin as _0x30b231,RevertRevisionMutation as _0x1526b8,CollaborationEvent as _0x54f392}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x5b8201,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3728f0,CollaborationController as _0x2e9911,ILocalCacheService as _0x2767b3,CollaborationStatus as _0x5c5d46}from'@univerjs-pro/collaboration-client';import{MessageType as _0x3b60a8}from'@univerjs/design';import{useRef as _0x241899,createElement as _0x11af02,forwardRef as _0xd17907}from'react';import{IMessageService as _0x4db92f,IDialogService as _0x1ae26d,ISidebarService as _0x486ba1,UniverUIPlugin as _0x49d69e,getMenuHiddenObservable as _0x1535b8,MenuItemType as _0x16e793,RibbonStartGroup as _0x41ba77,IMenuManagerService as _0x366ee5,ComponentManager as _0x27ffc6}from'@univerjs/ui';import{BehaviorSubject as _0x4af543,combineLatest as _0x526532}from'rxjs';import{RangeProtectionRuleModel as _0xaa2351,UniverSheetsPlugin as _0x4ccd17,WorkbookEditablePermission as _0x5e46f7,WorksheetEditPermission as _0x43b379,RangeProtectionPermissionEditPoint as _0x48dd44,WorkbookRecoverHistoryPermission as _0x154f4a,getSheetCommandTarget as _0x3398f1,WorkbookViewHistoryPermission as _0x372333}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x10be57,HistoryManagerService as _0x5dc1a2,HistoryModeStatus as _0x1e95cc}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x9cff72,UniverLicensePlugin as _0xca15b3}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x471c2d}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x26f4b4}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x1aaf68}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1036d5}from'@univerjs/data-validation';import{UniverDocsPlugin as _0xdc37cd}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x5b0e7f}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x7235f6,IImageIoService as _0x25ecb6}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1bdc8e}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x31d41a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x2897a9}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3d38d1}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x2ccad2}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x419888}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x53dfc2}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x23794a}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x37f1f8}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xb1c42e}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xba31f3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0xbc72c7}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0xbebfc2}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x20b1bc}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x4162fe}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x4a8892}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x5bcb43}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x34b3cd}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x2060ac,getCurrentRangeDisable$ as _0x4e498a}from'@univerjs/sheets-ui';const x=_0x37f8a6(0x13a),w={};function A({ref:_0x27f961,..._0x3f600c}){const _0x2abf32=_0x37f8a6,{icon:_0x265c69,id:_0x43786d,className:_0x3788f1,extend:_0x13d1b7,..._0x38ee1f}=_0x3f600c,_0x5297f8=(_0x2abf32(0xec)+_0x43786d+'\x20'+(_0x3788f1||''))['trim'](),_0x125019=_0x241899('_'+si());return F(_0x265c69,''+_0x43786d,{'defIds':_0x265c69[_0x2abf32(0xc4)],'idSuffix':_0x125019[_0x2abf32(0xb6)]},{'ref':_0x27f961,'className':_0x5297f8,..._0x38ee1f},_0x13d1b7);}function F(_0x42e6f8,_0x86bc3a,_0x2420ba,_0x4bce79,_0x573bb2){const _0x32c42f=_0x37f8a6;return _0x11af02(_0x42e6f8[_0x32c42f(0x124)],{'key':_0x86bc3a,...ni(_0x42e6f8,_0x2420ba,_0x573bb2),..._0x4bce79},(oi(_0x42e6f8,_0x2420ba)['children']||[])[_0x32c42f(0x11c)]((_0x2d68c8,_0x191da2)=>F(_0x2d68c8,_0x86bc3a+'-'+_0x42e6f8[_0x32c42f(0x124)]+'-'+_0x191da2,_0x2420ba,void 0x0,_0x573bb2)));}function ni(_0x94e17c,_0x20a43f,_0x35ced8){const _0x5642ad=_0x37f8a6,_0x50f839={..._0x94e17c[_0x5642ad(0x149)]};_0x35ced8!=null&&_0x35ced8[_0x5642ad(0x11e)]&&_0x50f839['fill']===_0x5642ad(0x11e)&&(_0x50f839[_0x5642ad(0x135)]=_0x35ced8[_0x5642ad(0x11e)]),_0x94e17c[_0x5642ad(0x124)]===_0x5642ad(0x106)&&_0x50f839['id']&&(_0x50f839['id']=_0x50f839['id']+_0x20a43f[_0x5642ad(0x14a)]),Object['entries'](_0x50f839)[_0x5642ad(0xb2)](([_0x1906c9,_0x3cf97d])=>{const _0x562d5f=_0x5642ad;_0x1906c9===_0x562d5f(0x106)&&typeof _0x3cf97d==_0x562d5f(0x122)&&(_0x50f839[_0x1906c9]=_0x3cf97d[_0x562d5f(0x139)](/url\(#(.*)\)/,_0x562d5f(0xb0)+_0x20a43f[_0x562d5f(0x14a)]+')'));});const {defIds:_0x3d6fd1}=_0x20a43f;return!_0x3d6fd1||_0x3d6fd1[_0x5642ad(0xbc)]===0x0||(_0x94e17c[_0x5642ad(0x124)]===_0x5642ad(0x130)&&_0x50f839[_0x5642ad(0xd4)]&&(_0x50f839['xlink:href']=_0x50f839[_0x5642ad(0xd4)]+_0x20a43f[_0x5642ad(0x14a)]),Object[_0x5642ad(0x148)](_0x50f839)[_0x5642ad(0xb2)](([_0x37b0aa,_0x50dca2])=>{const _0x7bd3f8=_0x5642ad;typeof _0x50dca2==_0x7bd3f8(0x122)&&(_0x50f839[_0x37b0aa]=_0x50dca2[_0x7bd3f8(0x139)](/url\(#(.*)\)/,_0x7bd3f8(0xb0)+_0x20a43f[_0x7bd3f8(0x14a)]+')'));})),_0x50f839;}function oi(_0xa58ee8,_0x473026){const _0x217167=_0x37f8a6;var _0x54c867;const {defIds:_0x207763}=_0x473026;return!_0x207763||_0x207763[_0x217167(0xbc)]===0x0?_0xa58ee8:_0xa58ee8['tag']===_0x217167(0x11d)&&((_0x54c867=_0xa58ee8['children'])!=null&&_0x54c867['length'])?{..._0xa58ee8,'children':_0xa58ee8['children'][_0x217167(0x11c)](_0x3b43e6=>typeof _0x3b43e6[_0x217167(0x149)]['id']=='string'&&_0x207763&&_0x207763[_0x217167(0x141)](_0x3b43e6[_0x217167(0x149)]['id'])?{..._0x3b43e6,'attrs':{..._0x3b43e6[_0x217167(0x149)],'id':_0x3b43e6[_0x217167(0x149)]['id']+_0x473026[_0x217167(0x14a)]}}:_0x3b43e6)}:_0xa58ee8;}function si(){const _0x76c4ab=_0x37f8a6;return Math[_0x76c4ab(0x117)]()[_0x76c4ab(0x111)](0x24)[_0x76c4ab(0xae)](0x2,0x8);}A[_0x37f8a6(0xa6)]=_0x37f8a6(0x119);function _0x5274(){const _0xf64c08=['OPERATION','triggerLoadVersions','has','_configService','get','__getInjector','xlink:href','currentColor','status','univer-container','getUnit','_sidebarService','appendChild','3830860kQvwhB','from','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','UNIVER_CONTAINER_ID','eventID','Exited','_collaborationController','HistoryIcon','closeAll','0\x200\x2016\x2016','show','reload','getConfig','setConfig','style','historyListServerUrl','univerjs-icon\x20univerjs-icon-','SYNCED','_init','_componentManager','UNIVER_SHEET','getLocales','historyUniver$','BUTTON','pluginName','display','editHistory.panel.title','M0\x200H16V16H0z','_localCacheService','80FOjomP','next','_menuManagerService','none','composePermission','history-container','session','_historyManagerService','228693kDYRQF','assign','mergeMenu','_localeService','Error','mask','data','close','historyUniver','left','getSheetId','subscribe','createElement','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','clipPath','_config','toString','disposeWithMe','svg','mutations','onStarting','472308oYbiyG','random','invoke','UniverIcon','dataset','history-icon','map','defs','colorChannel1','_messageService','absolute','_injector','string','path','tag','_initListener','[HistoryLoaderService]:\x20Plugin\x20','_themeService','currentTheme$','registerPlugin','_initUniver','darkMode$','1em','univer.operation.toggle-edit-history','some','getCurrentLocale','use','_dialogService','CHANGESET_ACK','getAllPlugins','_initContainer','fill','unsubscribe','_revertErrorTimer','_pluginMap','replace','edit-history-loader.config','executeCommand','event$','history-icon_clip0_907_281','clear','block','3241NmpJyd','includes','defineProperty','value','height','630NPOGvp','add','type','entries','attrs','idSuffix','_historyUniver$','flat','mountHistoryContent','displayName','_commandService','_checkCanRevert','url(#history-icon_clip0_907_281)','location','editHistory.panel.revertFailed','1000','23070YhTMxB','substring','2850592GQPVPr','url(#$1','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','forEach','div','editHistory.panel.listFetchError','_disposableCollection','current','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_univerInstanceService','_initPlugins','100%','getElementById','length','18xIPyDD','unMountHistoryContent','top','setDarkMode','12328oiHzWY','univerContainerId','white','defIds','revertRevision$','zIndex','733905PiIPJl','symbol','./worker.js','permissionId','dispose','state$','set'];_0x5274=function(){return _0xf64c08;};return _0x5274();}const ai={'tag':_0x37f8a6(0x113),'attrs':{'xmlns':_0x37f8a6(0xdd),'fill':_0x37f8a6(0xfc),'viewBox':_0x37f8a6(0xe5),'width':_0x37f8a6(0x12c),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x37f8a6(0xd5),'clipPath':_0x37f8a6(0xa9)},'children':[{'tag':_0x37f8a6(0x123),'attrs':{'d':_0x37f8a6(0x10e)}},{'tag':'path','attrs':{'d':_0x37f8a6(0xb1)}}]},{'tag':_0x37f8a6(0x11d),'attrs':{},'children':[{'tag':_0x37f8a6(0x10f),'attrs':{'id':_0x37f8a6(0x13d)},'children':[{'tag':_0x37f8a6(0x123),'attrs':{'fill':_0x37f8a6(0xc3),'d':_0x37f8a6(0xf7)}}]}]}],'defIds':['history-icon_clip0_907_281']},j=_0xd17907(function(_0x5b4066,_0x505015){const _0x288211=_0x37f8a6;return _0x11af02(A,Object[_0x288211(0x102)]({},_0x5b4066,{'id':_0x288211(0x11b),'ref':_0x505015,'icon':ai}));});j[_0x37f8a6(0xa6)]=_0x37f8a6(0xe3);var ci=Object[_0x37f8a6(0xde)],li=(_0x5de90b,_0x130e6f,_0x2a47b1,_0x2fb25a)=>{const _0x185250=_0x37f8a6;for(var _0x114feb=_0x2fb25a>0x1?void 0x0:_0x2fb25a?ci(_0x130e6f,_0x2a47b1):_0x130e6f,_0x3de7d1=_0x5de90b[_0x185250(0xbc)]-0x1,_0x472c3f;_0x3de7d1>=0x0;_0x3de7d1--)(_0x472c3f=_0x5de90b[_0x3de7d1])&&(_0x114feb=_0x472c3f(_0x114feb)||_0x114feb);return _0x114feb;},l=(_0xb00aca,_0x22668b)=>(_0x15f535,_0x4de6c6)=>_0x22668b(_0x15f535,_0x4de6c6,_0xb00aca);const ui=_0x37f8a6(0xd7),V=_0x37f8a6(0xdf),d='univer-history-container';let f=class extends _0x345cd9{constructor(_0x1d44e0,_0x3d1753,_0x43f3a5,_0x74f03a,_0x1bcb2f,_0x4ebdd5,_0x40ee92,_0x4326d7,_0x3588d6,_0x246d73){const _0x29f68f=_0x37f8a6;super(),g(this,_0x29f68f(0x14b),new _0x4af543(null)),g(this,_0x29f68f(0xf2),this[_0x29f68f(0x14b)]['asObservable']()),g(this,'_disposableCollection',new _0x50e93a()),g(this,_0x29f68f(0x138),new Map()),(this[_0x29f68f(0x104)]=_0x1d44e0,this[_0x29f68f(0xb8)]=_0x3d1753,this['_configService']=_0x43f3a5,this[_0x29f68f(0xa7)]=_0x74f03a,this[_0x29f68f(0x11f)]=_0x1bcb2f,this['_permissionService']=_0x4ebdd5,this['_selectionProtectionRuleModel']=_0x40ee92,this[_0x29f68f(0x131)]=_0x4326d7,this[_0x29f68f(0xd9)]=_0x3588d6,this['_themeService']=_0x246d73,this['_init']());}get[_0x37f8a6(0x109)](){const _0x21c11c=_0x37f8a6;return this[_0x21c11c(0x14b)][_0x21c11c(0x143)];}[_0x37f8a6(0xee)](){const _0x38bad0=_0x37f8a6;this[_0x38bad0(0x134)](),this[_0x38bad0(0xb9)]();}[_0x37f8a6(0x134)](){const _0x70da3a=_0x37f8a6;var _0x33fc24;const _0xd6d5c2=(_0x33fc24=this['_configService'][_0x70da3a(0xe8)](V))!=null?_0x33fc24:ui,_0x248491=document[_0x70da3a(0xbb)](_0xd6d5c2);if(!_0x248491)return;const _0x3d527b=document[_0x70da3a(0x10d)](_0x70da3a(0xb3));_0x3d527b['id']=d,_0x3d527b[_0x70da3a(0x11a)]['uComp']=_0x70da3a(0xfe),_0x3d527b[_0x70da3a(0xea)]['position']=_0x70da3a(0x120),_0x3d527b['style'][_0x70da3a(0xbf)]='0',_0x3d527b[_0x70da3a(0xea)][_0x70da3a(0x10a)]='0',_0x3d527b[_0x70da3a(0xea)]['width']=_0x70da3a(0xba),_0x3d527b[_0x70da3a(0xea)][_0x70da3a(0x144)]=_0x70da3a(0xba),_0x3d527b[_0x70da3a(0xea)][_0x70da3a(0xc6)]=_0x70da3a(0xac),_0x3d527b['style'][_0x70da3a(0xf5)]=_0x70da3a(0xfc),_0x248491[_0x70da3a(0xda)](_0x3d527b);}[_0x37f8a6(0xb9)](){const _0x1ec85e=_0x37f8a6;var _0xc9d9a9;[[_0x2897a9],[_0x49d69e,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1ae26d,null]]}],[_0x3d38d1],[_0x7235f6,{'override':[[_0x25ecb6,null]]}],[_0xdc37cd,{'hasScroll':!0x1}],[_0x5b0e7f],[_0x34b3cd],[_0x4ccd17,{'notExecuteFormula':!0x0}],[_0x2060ac],[_0x20b1bc],[_0x4162fe],[_0x30b231],[_0xbc72c7],[_0xbebfc2],[_0x419888],[_0x53dfc2],[_0x4a8892],[_0x5bcb43],[_0x1036d5],[_0x23794a],[_0x37f1f8],[_0x31d41a,{'notExecuteFormula':!0x0}],[_0x2ccad2,{'workerURL':_0x1ec85e(0xc9)}],[_0x1bdc8e],[_0xb1c42e],[_0xba31f3],[_0x26f4b4],[_0x1aaf68],[_0x471c2d,{'notExecuteFormula':!0x0}],[_0x10be57,{'historyListServerUrl':(_0xc9d9a9=this[_0x1ec85e(0xd1)][_0x1ec85e(0xe8)](x))==null?void 0x0:_0xc9d9a9[_0x1ec85e(0xeb)]}]][_0x1ec85e(0xb2)](([_0x25a0e5,_0x4da2a6])=>this['registerPlugin'](_0x25a0e5,_0x4da2a6));}[_0x37f8a6(0xcb)](){const _0x248734=_0x37f8a6;super['dispose'](),this[_0x248734(0xbe)](),this['_pluginMap'][_0x248734(0x13e)]();}[_0x37f8a6(0x129)](_0x306f45,_0x225943,_0x22733d){const _0x51ebcd=_0x37f8a6;if(this['_pluginMap'][_0x51ebcd(0xd0)](_0x306f45[_0x51ebcd(0xf4)])&&!_0x22733d)throw new Error(_0x51ebcd(0x126)+_0x306f45[_0x51ebcd(0xf4)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x51ebcd(0xcd)](_0x306f45['pluginName'],[_0x306f45,_0x225943]);}[_0x37f8a6(0x133)](){const _0x4940d8=_0x37f8a6;return Array[_0x4940d8(0xdc)](this[_0x4940d8(0x138)]['values']());}[_0x37f8a6(0xa5)](_0x48e0e7){const _0x3a40bf=_0x37f8a6,_0x5121db=document[_0x3a40bf(0xbb)](d);_0x5121db&&(_0x5121db[_0x3a40bf(0xea)][_0x3a40bf(0xf5)]=_0x3a40bf(0x13f),this[_0x3a40bf(0x12a)](_0x48e0e7,d));}[_0x37f8a6(0xbe)](){const _0x4e29fb=_0x37f8a6;var _0x173947;this[_0x4e29fb(0xb5)][_0x4e29fb(0xcb)](),(_0x173947=this[_0x4e29fb(0x109)])==null||_0x173947[_0x4e29fb(0xcb)](),this['_historyUniver$'][_0x4e29fb(0xfa)](null);const _0xe1e6a2=document[_0x4e29fb(0xbb)](d);_0xe1e6a2&&(_0xe1e6a2[_0x4e29fb(0xea)][_0x4e29fb(0xf5)]=_0x4e29fb(0xfc));}[_0x37f8a6(0x12a)](_0xece732,_0x58e97a){const _0x497fb4=_0x37f8a6;if(this[_0x497fb4(0x109)])return;const _0xc319a7=new _0x26caa3({'locales':{[this[_0x497fb4(0x104)][_0x497fb4(0x12f)]()]:this[_0x497fb4(0x104)][_0x497fb4(0xf1)]()},'override':[[_0x595980,{'useClass':_0x5b8201}]]}),_0x414cb7=_0xc319a7[_0x497fb4(0xd3)]();this[_0x497fb4(0x112)](this[_0x497fb4(0x127)][_0x497fb4(0x12b)][_0x497fb4(0x10c)](_0x575eda=>{const _0x2b5d58=_0x497fb4;_0x414cb7[_0x2b5d58(0xd2)](_0x4fd3e4)[_0x2b5d58(0xc0)](_0x575eda);})),this[_0x497fb4(0x112)](this[_0x497fb4(0x127)][_0x497fb4(0x128)]['subscribe'](_0x416c37=>{const _0xf63e2b=_0x497fb4;_0x414cb7[_0xf63e2b(0xd2)](_0x4fd3e4)['setTheme'](_0x416c37);})),_0x414cb7[_0x497fb4(0xd2)](_0x55fef5)['setLocale'](this[_0x497fb4(0x104)][_0x497fb4(0x12f)]()),_0x414cb7[_0x497fb4(0xd2)](_0x448383)['setConfig'](_0x3728f0,this['_configService']['getConfig'](_0x3728f0));const _0x1f31c9=this['_configService']['getConfig'](_0x9cff72);_0x1f31c9&&_0xc319a7[_0x497fb4(0x129)](_0xca15b3,{'license':_0x1f31c9['ls']}),this[_0x497fb4(0x138)][_0x497fb4(0xb2)](([_0x468b22,_0x280436])=>{const _0xd7b2ed=_0x497fb4;_0xc319a7[_0xd7b2ed(0x129)](_0x468b22,_0x280436);}),_0x414cb7[_0x497fb4(0x118)](_0x5e106c=>{const _0x4a30fa=_0x497fb4;this[_0x4a30fa(0x125)](_0x5e106c,_0xece732);}),this[_0x497fb4(0x14b)][_0x497fb4(0xfa)](_0xc319a7);const _0x5e52c2=_0x414cb7[_0x497fb4(0xd2)](_0x5dc1a2),_0x556ff0=this[_0x497fb4(0xa8)](_0xece732);_0x5e52c2[_0x497fb4(0xcf)](_0xece732,_0x58e97a,_0x556ff0);}[_0x37f8a6(0x125)](_0x6f2ff5,_0x2a03c1){const _0x2b880d=_0x37f8a6,_0x2fc2fb=_0x6f2ff5[_0x2b880d(0xd2)](_0x5dc1a2);this[_0x2b880d(0xb5)][_0x2b880d(0x146)](_0x2fc2fb['status$'][_0x2b880d(0x10c)](_0x238c04=>{const _0x13ea0b=_0x2b880d;switch(_0x238c04){case _0x1e95cc['Entered']:this[_0x13ea0b(0x131)][_0x13ea0b(0xe4)](),this['_sidebarService'][_0x13ea0b(0x108)]();break;case _0x1e95cc[_0x13ea0b(0xe1)]:this['unMountHistoryContent']();break;case _0x1e95cc['Error']:this[_0x13ea0b(0xbe)](),this[_0x13ea0b(0x11f)][_0x13ea0b(0xe6)]({'content':this[_0x13ea0b(0x104)]['t'](_0x13ea0b(0xb4)),'type':_0x3b60a8['Error'],'duration':0xbb8});break;}})),this[_0x2b880d(0xb5)][_0x2b880d(0x146)](_0x2fc2fb[_0x2b880d(0xc5)]['subscribe'](async _0x3fda54=>{const _0x1bccb7=_0x2b880d;_0x3fda54&&this[_0x1bccb7(0xa7)][_0x1bccb7(0x13b)](_0x1526b8['id'],{'unitId':_0x2a03c1,'revision':_0x3fda54});}));}[_0x37f8a6(0xa8)](_0x16708e){const _0xbe1926=_0x37f8a6,_0x2837c4=this[_0xbe1926(0xb8)][_0xbe1926(0xd8)](_0x16708e)['getSheets']()[_0xbe1926(0x11c)](_0x4b2809=>_0x4b2809[_0xbe1926(0x10b)]()),_0x5e668c=new _0x5e46f7(_0x16708e)['id'],_0x129777=_0x2837c4[_0xbe1926(0x11c)](_0xfef1e2=>new _0x43b379(_0x16708e,_0xfef1e2)['id']),_0x57d4c2=_0x2837c4[_0xbe1926(0x11c)](_0x41f5d6=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x16708e,_0x41f5d6)['map'](_0x2e8de4=>new _0x48dd44(_0x16708e,_0x41f5d6,_0x2e8de4[_0xbe1926(0xca)])['id']))[_0xbe1926(0x14c)](),_0x205d7c=new _0x154f4a(_0x16708e)['id'];return this['_permissionService'][_0xbe1926(0xfd)]([_0x5e668c,..._0x129777,..._0x57d4c2,_0x205d7c])['every'](_0x3fa4c1=>!!_0x3fa4c1[_0xbe1926(0x143)]);}};f=li([l(0x0,_0x53df44(_0x55fef5)),l(0x1,_0x2c2e76),l(0x2,_0x448383),l(0x3,_0x3b269c),l(0x4,_0x4db92f),l(0x5,_0x55b602),l(0x6,_0x53df44(_0xaa2351)),l(0x7,_0x53df44(_0x1ae26d)),l(0x8,_0x53df44(_0x486ba1)),l(0x9,_0x53df44(_0x4fd3e4))],f);const b={'id':_0x37f8a6(0x12d),'type':_0x5df89c[_0x37f8a6(0xce)],'handler':_0x3fb717=>{const _0x7d4ed8=_0x37f8a6,_0x3ead32=_0x3fb717[_0x7d4ed8(0xd2)](f),_0x3def91=_0x3fb717[_0x7d4ed8(0xd2)](_0x2c2e76),{unitId:_0x35c442}=_0x3398f1(_0x3def91)||{};return _0x35c442?(_0x3ead32['mountHistoryContent'](_0x35c442),!0x0):!0x1;}};function hi(_0x3e3f07){const _0xc5bb28=_0x37f8a6;return{'id':b['id'],'type':_0x16e793[_0xc5bb28(0xf3)],'icon':_0xc5bb28(0xe3),'tooltip':_0xc5bb28(0xf6),'hidden$':_0x1535b8(_0x3e3f07,_0x58d207[_0xc5bb28(0xf0)]),'disabled$':_0x4e498a(_0x3e3f07,{'workbookTypes':[_0x5e46f7,_0x372333],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x41ba77['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x37f8a6(0xde)],vi=(_0x4caaa5,_0x1d99c8,_0x4f2a20,_0x2c6843)=>{const _0x591e6d=_0x37f8a6;for(var _0x5e8032=_0x2c6843>0x1?void 0x0:_0x2c6843?mi(_0x1d99c8,_0x4f2a20):_0x1d99c8,_0x3ef097=_0x4caaa5[_0x591e6d(0xbc)]-0x1,_0x595dc6;_0x3ef097>=0x0;_0x3ef097--)(_0x595dc6=_0x4caaa5[_0x3ef097])&&(_0x5e8032=_0x595dc6(_0x5e8032)||_0x5e8032);return _0x5e8032;},m=(_0x1defb1,_0x21451)=>(_0x413282,_0x157be8)=>_0x21451(_0x413282,_0x157be8,_0x1defb1);let p=class extends _0xc539ae{constructor(_0x44635b,_0x2a63a5,_0x566014,_0xd4f6ef,_0x5d2cb7,_0x44f9b7,_0x31cfe0,_0x4ab267){const _0x30e33e=_0x37f8a6;super(),g(this,_0x30e33e(0x137),null),(this[_0x30e33e(0xa7)]=_0x44635b,this[_0x30e33e(0xfb)]=_0x2a63a5,this[_0x30e33e(0xef)]=_0x566014,this[_0x30e33e(0x100)]=_0xd4f6ef,this[_0x30e33e(0x104)]=_0x5d2cb7,this[_0x30e33e(0x11f)]=_0x44f9b7,this[_0x30e33e(0xe2)]=_0x31cfe0,this[_0x30e33e(0xf8)]=_0x4ab267,this[_0x30e33e(0xee)]());}[_0x37f8a6(0xee)](){const _0x36a5a5=_0x37f8a6;[b][_0x36a5a5(0xb2)](_0x792706=>this[_0x36a5a5(0x112)](_0x4a5a4a(this[_0x36a5a5(0xa7)]['registerCommand'](_0x792706)))),this[_0x36a5a5(0x112)](this[_0x36a5a5(0xef)]['register'](_0x36a5a5(0xe3),j)),this[_0x36a5a5(0xfb)][_0x36a5a5(0x103)](gi),this[_0x36a5a5(0x112)](this['_commandService']['onCommandExecuted'](_0x11522d=>{const _0x137993=_0x36a5a5;if(_0x11522d['id']===_0x1526b8['id']){this[_0x137993(0x11f)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x3b60a8['Loading'],'duration':0x1388});const {unitId:_0xb8c4ef}=_0x11522d['params'],_0xf9903f=this[_0x137993(0xe2)]['getCollabEntity'](_0xb8c4ef),_0x18ad3a=_0x526532([_0xf9903f[_0x137993(0xff)][_0x137993(0x13c)],_0xf9903f[_0x137993(0xcc)]])['subscribe'](async([_0xb7e9ee,_0x1fda82])=>{const _0x77e57=_0x137993;var _0x30c48d;_0xb7e9ee[_0x77e57(0xe0)]===_0x54f392[_0x77e57(0x132)]&&(_0x1fda82==null?void 0x0:_0x1fda82[_0x77e57(0xd6)])===_0x5c5d46[_0x77e57(0xed)]&&_0xb7e9ee[_0x77e57(0x107)][_0x77e57(0x114)][_0x77e57(0x12e)](_0x1f408e=>_0x1f408e['id']===_0x1526b8['id'])&&(this['_historyManagerService'][_0x77e57(0xbe)](),_0x18ad3a['unsubscribe'](),this[_0x77e57(0x137)]&&clearTimeout(this[_0x77e57(0x137)]),await((_0x30c48d=this[_0x77e57(0xf8)])==null?void 0x0:_0x30c48d['exhaustSavingTask']()),setTimeout(()=>window[_0x77e57(0xaa)][_0x77e57(0xe7)]()));});this[_0x137993(0x137)]=setTimeout(()=>{const _0x3f33cf=_0x137993;_0x18ad3a[_0x3f33cf(0x136)](),this[_0x3f33cf(0x11f)][_0x3f33cf(0xe6)]({'content':this[_0x3f33cf(0x104)]['t'](_0x3f33cf(0xab)),'type':_0x3b60a8[_0x3f33cf(0x105)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x3b269c),m(0x1,_0x366ee5),m(0x2,_0x53df44(_0x27ffc6)),m(0x3,_0x53df44(f)),m(0x4,_0x53df44(_0x55fef5)),m(0x5,_0x4db92f),m(0x6,_0x53df44(_0x2e9911)),m(0x7,_0x2767b3)],p);var di=Object['getOwnPropertyDescriptor'],fi=(_0xc2523c,_0x379887,_0x19ea75,_0x85ebfc)=>{const _0x31a61d=_0x37f8a6;for(var _0x283c3f=_0x85ebfc>0x1?void 0x0:_0x85ebfc?di(_0x379887,_0x19ea75):_0x379887,_0xa7668f=_0xc2523c[_0x31a61d(0xbc)]-0x1,_0x340778;_0xa7668f>=0x0;_0xa7668f--)(_0x340778=_0xc2523c[_0xa7668f])&&(_0x283c3f=_0x340778(_0x283c3f)||_0x283c3f);return _0x283c3f;},R=(_0x1edd74,_0x1e941e)=>(_0x4e2336,_0x537ff7)=>_0x1e941e(_0x4e2336,_0x537ff7,_0x1edd74);const _i=_0x37f8a6(0xb7);var _;let N=(_=class extends _0x15ddce{constructor(_0x1cecac=w,_0x1875dd,_0x344f5e){const _0x5246fa=_0x37f8a6;super(),this[_0x5246fa(0x110)]=_0x1cecac,this[_0x5246fa(0x121)]=_0x1875dd,this[_0x5246fa(0xd1)]=_0x344f5e;const {menu:_0x5844bb,..._0x4241ee}=_0x12a45f({},w,this[_0x5246fa(0x110)]);_0x5844bb&&this[_0x5246fa(0xd1)][_0x5246fa(0xe9)]('menu',_0x5844bb,{'merge':!0x0}),this[_0x5246fa(0xd1)][_0x5246fa(0xe9)](x,_0x4241ee),this[_0x5246fa(0x110)][_0x5246fa(0xc2)]&&this[_0x5246fa(0xd1)][_0x5246fa(0xe9)](V,this['_config'][_0x5246fa(0xc2)]);}[_0x37f8a6(0x115)](){const _0x2b3289=_0x37f8a6;[[f],[p]][_0x2b3289(0xb2)](_0x3f3396=>this[_0x2b3289(0x121)][_0x2b3289(0x146)](_0x3f3396));}['onSteady'](){const _0x1194f2=_0x37f8a6;this['_injector'][_0x1194f2(0xd2)](p);}},g(_,_0x37f8a6(0x147),_0x58d207['UNIVER_UNKNOWN']),g(_,'pluginName',_i),_);function _0x19ac(_0x5ae0c6,_0x2ddb8f){const _0x527412=_0x5274();return _0x19ac=function(_0x19ac96,_0x528f0f){_0x19ac96=_0x19ac96-0xa5;let _0x48fefb=_0x527412[_0x19ac96];return _0x48fefb;},_0x19ac(_0x5ae0c6,_0x2ddb8f);}N=fi([R(0x1,_0x53df44(_0x1db332)),R(0x2,_0x448383)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ const _0x10d1fb=_0x223a;(function(_0xa7de29,_0x43752c){const _0x5b3411=_0x223a,_0x1ed4ff=_0xa7de29();while(!![]){try{const _0x1bffce=-parseInt(_0x5b3411(0x25c))/0x1+-parseInt(_0x5b3411(0x21c))/0x2*(-parseInt(_0x5b3411(0x21b))/0x3)+-parseInt(_0x5b3411(0x238))/0x4*(parseInt(_0x5b3411(0x1fe))/0x5)+-parseInt(_0x5b3411(0x251))/0x6*(parseInt(_0x5b3411(0x1e0))/0x7)+parseInt(_0x5b3411(0x210))/0x8*(-parseInt(_0x5b3411(0x264))/0x9)+-parseInt(_0x5b3411(0x1ff))/0xa*(-parseInt(_0x5b3411(0x1e3))/0xb)+parseInt(_0x5b3411(0x202))/0xc*(parseInt(_0x5b3411(0x203))/0xd);if(_0x1bffce===_0x43752c)break;else _0x1ed4ff['push'](_0x1ed4ff['shift']());}catch(_0xcb1692){_0x1ed4ff['push'](_0x1ed4ff['shift']());}}}(_0x2f28,0xc316a));var G=Object['defineProperty'],B=(_0x27dd85,_0x28d4e4,_0x1040c1)=>_0x28d4e4 in _0x27dd85?G(_0x27dd85,_0x28d4e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1040c1}):_0x27dd85[_0x28d4e4]=_0x1040c1,g=(_0x4a5f5f,_0x2c0f04,_0x3526ac)=>B(_0x4a5f5f,typeof _0x2c0f04!=_0x10d1fb(0x274)?_0x2c0f04+'':_0x2c0f04,_0x3526ac);import{Inject as _0x539add,LocaleService as _0x3bb91b,IUniverInstanceService as _0x1501ab,IConfigService as _0x556388,ICommandService as _0x158273,IPermissionService as _0x12dbf1,ThemeService as _0x4f4959,Disposable as _0x39b485,DisposableCollection as _0x1df8c8,Univer as _0x213f65,IAuthzIoService as _0x115720,CommandType as _0x3de72b,UniverInstanceType as _0x4db259,RxDisposable as _0x32c710,toDisposable as _0x57b136,Plugin as _0x4fc823,merge as _0x578e57,Injector as _0x56848e}from'@univerjs/core';import{UniverCollaborationPlugin as _0x4b3029,RevertRevisionMutation as _0x1f9f3c,CollaborationEvent as _0x357650}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x2270e3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e1da2,CollaborationController as _0x200316,ILocalCacheService as _0x4cd47b,CollaborationStatus as _0x3601b9}from'@univerjs-pro/collaboration-client';import{MessageType as _0x2fb1cf}from'@univerjs/design';import{useRef as _0x516d95,createElement as _0xbfb586,forwardRef as _0x4d0a66}from'react';import{IMessageService as _0x1cefe2,IDialogService as _0x58fa6b,ISidebarService as _0x500242,UniverUIPlugin as _0x24e650,getMenuHiddenObservable as _0x4824bb,MenuItemType as _0x51c8b6,RibbonStartGroup as _0x17cf7e,IMenuManagerService as _0x1f293d,ComponentManager as _0x2a46dc}from'@univerjs/ui';import{BehaviorSubject as _0x440eb6,combineLatest as _0x59f3e2}from'rxjs';import{RangeProtectionRuleModel as _0x15ca3f,UniverSheetsPlugin as _0x1f4316,WorkbookEditablePermission as _0x5eec0c,WorksheetEditPermission as _0x1c2cd1,RangeProtectionPermissionEditPoint as _0x4b4e71,WorkbookRecoverHistoryPermission as _0xbda07f,getSheetCommandTarget as _0x296b3b,WorkbookViewHistoryPermission as _0x27fdd6}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x30c2ab,HistoryManagerService as _0x599f5e,HistoryModeStatus as _0x298bb8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x250fae,UniverLicensePlugin as _0x34e813}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x4465be}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x25e59b}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5d2da1}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x18a909}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x5bdd10}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x23bd5a}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xfab444,IImageIoService as _0x529ac1}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x5151b2}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x18bf41}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3d2e06}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x436afe}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x2162b1}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x2ee57c}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x6e2c6b}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0xdb4364}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x3f048a}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x285df6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x360261}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x992c8c}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1ee66e}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x432dbc}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2da7d9}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x3ee7ff}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x2f3b7e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x252c89}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x3f0975,getCurrentRangeDisable$ as _0xb1b27}from'@univerjs/sheets-ui';const U='edit-history-loader.config',R={};function A({ref:_0xc0c8df,..._0x1366fa}){const _0x6bb555=_0x10d1fb,{icon:_0x2b6e41,id:_0x3bab52,className:_0x54f071,extend:_0x32057a,..._0x349851}=_0x1366fa,_0x3bd855=(_0x6bb555(0x1dd)+_0x3bab52+'\x20'+(_0x54f071||''))[_0x6bb555(0x25f)](),_0x21cfc6=_0x516d95('_'+si());return F(_0x2b6e41,''+_0x3bab52,{'defIds':_0x2b6e41['defIds'],'idSuffix':_0x21cfc6[_0x6bb555(0x1e7)]},{'ref':_0xc0c8df,'className':_0x3bd855,..._0x349851},_0x32057a);}function F(_0x428bb3,_0xeeadc7,_0x4f082c,_0x3af0ed,_0x3ed34b){const _0x4efa68=_0x10d1fb;return _0xbfb586(_0x428bb3['tag'],{'key':_0xeeadc7,...ni(_0x428bb3,_0x4f082c,_0x3ed34b),..._0x3af0ed},(oi(_0x428bb3,_0x4f082c)[_0x4efa68(0x23a)]||[])[_0x4efa68(0x269)]((_0x1bbe04,_0x116f60)=>F(_0x1bbe04,_0xeeadc7+'-'+_0x428bb3[_0x4efa68(0x20f)]+'-'+_0x116f60,_0x4f082c,void 0x0,_0x3ed34b)));}function ni(_0x33e60f,_0x30838e,_0x5bb4e7){const _0x3e54e1=_0x10d1fb,_0x260f3d={..._0x33e60f[_0x3e54e1(0x223)]};_0x5bb4e7!=null&&_0x5bb4e7['colorChannel1']&&_0x260f3d[_0x3e54e1(0x273)]===_0x3e54e1(0x26d)&&(_0x260f3d[_0x3e54e1(0x273)]=_0x5bb4e7[_0x3e54e1(0x26d)]),_0x33e60f[_0x3e54e1(0x20f)]==='mask'&&_0x260f3d['id']&&(_0x260f3d['id']=_0x260f3d['id']+_0x30838e[_0x3e54e1(0x250)]),Object['entries'](_0x260f3d)['forEach'](([_0x32dbcc,_0x1dfdf6])=>{const _0x10ec6e=_0x3e54e1;_0x32dbcc===_0x10ec6e(0x227)&&typeof _0x1dfdf6==_0x10ec6e(0x1fd)&&(_0x260f3d[_0x32dbcc]=_0x1dfdf6[_0x10ec6e(0x220)](/url\(#(.*)\)/,'url(#$1'+_0x30838e[_0x10ec6e(0x250)]+')'));});const {defIds:_0x50ed35}=_0x30838e;return!_0x50ed35||_0x50ed35[_0x3e54e1(0x257)]===0x0||(_0x33e60f[_0x3e54e1(0x20f)]===_0x3e54e1(0x255)&&_0x260f3d[_0x3e54e1(0x268)]&&(_0x260f3d[_0x3e54e1(0x268)]=_0x260f3d[_0x3e54e1(0x268)]+_0x30838e[_0x3e54e1(0x250)]),Object[_0x3e54e1(0x26a)](_0x260f3d)[_0x3e54e1(0x1f6)](([_0x3a3822,_0x23304e])=>{const _0x480243=_0x3e54e1;typeof _0x23304e==_0x480243(0x1fd)&&(_0x260f3d[_0x3a3822]=_0x23304e[_0x480243(0x220)](/url\(#(.*)\)/,'url(#$1'+_0x30838e['idSuffix']+')'));})),_0x260f3d;}function oi(_0x1401af,_0x42892f){const _0x1ce253=_0x10d1fb;var _0x3d9bc0;const {defIds:_0x187bf6}=_0x42892f;return!_0x187bf6||_0x187bf6['length']===0x0?_0x1401af:_0x1401af['tag']===_0x1ce253(0x1e1)&&((_0x3d9bc0=_0x1401af[_0x1ce253(0x23a)])!=null&&_0x3d9bc0[_0x1ce253(0x257)])?{..._0x1401af,'children':_0x1401af[_0x1ce253(0x23a)][_0x1ce253(0x269)](_0x37da9e=>typeof _0x37da9e[_0x1ce253(0x223)]['id']=='string'&&_0x187bf6&&_0x187bf6[_0x1ce253(0x277)](_0x37da9e[_0x1ce253(0x223)]['id'])?{..._0x37da9e,'attrs':{..._0x37da9e['attrs'],'id':_0x37da9e[_0x1ce253(0x223)]['id']+_0x42892f[_0x1ce253(0x250)]}}:_0x37da9e)}:_0x1401af;}function si(){const _0x4f6e59=_0x10d1fb;return Math[_0x4f6e59(0x211)]()[_0x4f6e59(0x1ee)](0x24)[_0x4f6e59(0x1ec)](0x2,0x8);}A[_0x10d1fb(0x247)]=_0x10d1fb(0x1d7);const ai={'tag':_0x10d1fb(0x272),'attrs':{'xmlns':_0x10d1fb(0x1dc),'fill':_0x10d1fb(0x21d),'viewBox':_0x10d1fb(0x23f),'width':_0x10d1fb(0x245),'height':_0x10d1fb(0x245)},'children':[{'tag':'g','attrs':{'fill':_0x10d1fb(0x1f4),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x10d1fb(0x219),'attrs':{'d':_0x10d1fb(0x24d)}},{'tag':'path','attrs':{'d':_0x10d1fb(0x25a)}}]},{'tag':_0x10d1fb(0x1e1),'attrs':{},'children':[{'tag':_0x10d1fb(0x23b),'attrs':{'id':_0x10d1fb(0x22b)},'children':[{'tag':_0x10d1fb(0x219),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},j=_0x4d0a66(function(_0x15782,_0x2fbc27){const _0x4494d6=_0x10d1fb;return _0xbfb586(A,Object['assign']({},_0x15782,{'id':_0x4494d6(0x1d6),'ref':_0x2fbc27,'icon':ai}));});j[_0x10d1fb(0x247)]=_0x10d1fb(0x239);var ci=Object[_0x10d1fb(0x271)],li=(_0x1f3ebc,_0x24614f,_0x2a3bd8,_0x2f9b5e)=>{const _0x52d8f0=_0x10d1fb;for(var _0x1fb457=_0x2f9b5e>0x1?void 0x0:_0x2f9b5e?ci(_0x24614f,_0x2a3bd8):_0x24614f,_0x1b845f=_0x1f3ebc[_0x52d8f0(0x257)]-0x1,_0x2e44e1;_0x1b845f>=0x0;_0x1b845f--)(_0x2e44e1=_0x1f3ebc[_0x1b845f])&&(_0x1fb457=_0x2e44e1(_0x1fb457)||_0x1fb457);return _0x1fb457;},l=(_0x231a0a,_0x4f9334)=>(_0x4bc1c8,_0x1e48e0)=>_0x4f9334(_0x4bc1c8,_0x1e48e0,_0x231a0a);const ui=_0x10d1fb(0x209),V=_0x10d1fb(0x241),d=_0x10d1fb(0x22f);let f=class extends _0x39b485{constructor(_0x1bd849,_0x29538f,_0x3aed22,_0xf883a4,_0x271256,_0x29d3e5,_0x3071c7,_0x28e5a6,_0x4d09e2,_0x32eb8a){const _0x3736fa=_0x10d1fb;super(),g(this,_0x3736fa(0x249),new _0x440eb6(null)),g(this,_0x3736fa(0x204),this['_historyUniver$'][_0x3736fa(0x229)]()),g(this,_0x3736fa(0x1f0),new _0x1df8c8()),g(this,'_pluginMap',new Map()),(this[_0x3736fa(0x1ea)]=_0x1bd849,this[_0x3736fa(0x22a)]=_0x29538f,this[_0x3736fa(0x1d5)]=_0x3aed22,this[_0x3736fa(0x270)]=_0xf883a4,this['_messageService']=_0x271256,this[_0x3736fa(0x1f1)]=_0x29d3e5,this[_0x3736fa(0x24c)]=_0x3071c7,this[_0x3736fa(0x20c)]=_0x28e5a6,this[_0x3736fa(0x222)]=_0x4d09e2,this[_0x3736fa(0x231)]=_0x32eb8a,this[_0x3736fa(0x207)]());}get[_0x10d1fb(0x22d)](){const _0x13a1fe=_0x10d1fb;return this[_0x13a1fe(0x249)][_0x13a1fe(0x217)];}[_0x10d1fb(0x207)](){const _0x4d91a0=_0x10d1fb;this[_0x4d91a0(0x23e)](),this[_0x4d91a0(0x1fb)]();}['_initContainer'](){const _0x426b84=_0x10d1fb;var _0x261d9c;const _0x56bafb=(_0x261d9c=this[_0x426b84(0x1d5)][_0x426b84(0x1d8)](V))!=null?_0x261d9c:ui,_0x1fa3fe=document[_0x426b84(0x236)](_0x56bafb);if(!_0x1fa3fe)return;const _0x50ea0f=document[_0x426b84(0x254)](_0x426b84(0x1df));_0x50ea0f['id']=d,_0x50ea0f[_0x426b84(0x235)]['uComp']=_0x426b84(0x234),_0x50ea0f['style']['position']='absolute',_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x1e2)]='0',_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x25e)]='0',_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x228)]=_0x426b84(0x25b),_0x50ea0f['style'][_0x426b84(0x224)]=_0x426b84(0x25b),_0x50ea0f[_0x426b84(0x213)][_0x426b84(0x252)]=_0x426b84(0x221),_0x50ea0f['style'][_0x426b84(0x1fa)]=_0x426b84(0x21d),_0x1fa3fe['appendChild'](_0x50ea0f);}[_0x10d1fb(0x1fb)](){const _0x2a8a9e=_0x10d1fb;var _0x50ee3b,_0x55f492;[[_0x3d2e06],[_0x24e650,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x58fa6b,null]]}],[_0x436afe],[_0xfab444,{'override':[[_0x529ac1,null]]}],[_0x5bdd10,{'hasScroll':!0x1}],[_0x23bd5a],[_0x252c89],[_0x1f4316,{'notExecuteFormula':!0x0}],[_0x3f0975],[_0x432dbc],[_0x2da7d9],[_0x4b3029],[_0x992c8c],[_0x1ee66e],[_0x2ee57c],[_0x6e2c6b],[_0x3ee7ff],[_0x2f3b7e],[_0x18a909],[_0xdb4364],[_0x3f048a],[_0x18bf41,{'notExecuteFormula':!0x0}],[_0x2162b1,{'workerURL':_0x2a8a9e(0x1e8)}],[_0x5151b2],[_0x285df6],[_0x360261],[_0x25e59b],[_0x5d2da1],[_0x4465be,{'notExecuteFormula':!0x0}],[_0x30c2ab,{'historyListServerUrl':(_0x50ee3b=this[_0x2a8a9e(0x1d5)][_0x2a8a9e(0x1d8)](U))==null?void 0x0:_0x50ee3b[_0x2a8a9e(0x1f8)],'historyPanelComponentKey':(_0x55f492=this['_configService']['getConfig'](U))==null?void 0x0:_0x55f492['historyPanelComponentKey']}]]['forEach'](([_0x12b1fa,_0x7e197f])=>this[_0x2a8a9e(0x263)](_0x12b1fa,_0x7e197f));}[_0x10d1fb(0x218)](){const _0x1ac78a=_0x10d1fb;super['dispose'](),this[_0x1ac78a(0x1ef)](),this[_0x1ac78a(0x24f)][_0x1ac78a(0x240)]();}[_0x10d1fb(0x263)](_0x5bcd18,_0x407f23,_0x19b2f8){const _0x4da653=_0x10d1fb;if(this['_pluginMap'][_0x4da653(0x21f)](_0x5bcd18[_0x4da653(0x1d9)])&&!_0x19b2f8)throw new Error(_0x4da653(0x233)+_0x5bcd18[_0x4da653(0x1d9)]+_0x4da653(0x253));this['_pluginMap'][_0x4da653(0x206)](_0x5bcd18[_0x4da653(0x1d9)],[_0x5bcd18,_0x407f23]);}[_0x10d1fb(0x25d)](){const _0x13125c=_0x10d1fb;return Array[_0x13125c(0x201)](this[_0x13125c(0x24f)]['values']());}[_0x10d1fb(0x21e)](_0x3a497a){const _0x53c5a6=_0x10d1fb,_0x5d566f=document['getElementById'](d);_0x5d566f&&(_0x5d566f[_0x53c5a6(0x213)][_0x53c5a6(0x1fa)]=_0x53c5a6(0x1e5),this[_0x53c5a6(0x1db)](_0x3a497a,d));}[_0x10d1fb(0x1ef)](){const _0x4a68e7=_0x10d1fb;var _0x46c235;this[_0x4a68e7(0x1f0)][_0x4a68e7(0x218)](),(_0x46c235=this[_0x4a68e7(0x22d)])==null||_0x46c235['dispose'](),this[_0x4a68e7(0x249)]['next'](null);const _0x40784f=document[_0x4a68e7(0x236)](d);_0x40784f&&(_0x40784f[_0x4a68e7(0x213)][_0x4a68e7(0x1fa)]=_0x4a68e7(0x21d));}[_0x10d1fb(0x1db)](_0xf511d9,_0x49eaac){const _0x3e0e8f=_0x10d1fb;if(this[_0x3e0e8f(0x22d)])return;const _0x4e19a3=new _0x213f65({'locales':{[this[_0x3e0e8f(0x1ea)]['getCurrentLocale']()]:this[_0x3e0e8f(0x1ea)][_0x3e0e8f(0x1d0)]()},'override':[[_0x115720,{'useClass':_0x2270e3}]]}),_0x24d321=_0x4e19a3[_0x3e0e8f(0x24a)]();this['disposeWithMe'](this[_0x3e0e8f(0x231)][_0x3e0e8f(0x1de)]['subscribe'](_0x106f3d=>{const _0x100405=_0x3e0e8f;_0x24d321[_0x100405(0x225)](_0x4f4959)[_0x100405(0x26e)](_0x106f3d);})),this[_0x3e0e8f(0x205)](this[_0x3e0e8f(0x231)][_0x3e0e8f(0x20d)][_0x3e0e8f(0x261)](_0x538663=>{const _0x2fc14b=_0x3e0e8f;_0x24d321[_0x2fc14b(0x225)](_0x4f4959)[_0x2fc14b(0x1f7)](_0x538663);})),_0x24d321['get'](_0x3bb91b)[_0x3e0e8f(0x266)](this[_0x3e0e8f(0x1ea)][_0x3e0e8f(0x1f5)]()),_0x24d321['get'](_0x556388)[_0x3e0e8f(0x20e)](_0x4e1da2,this[_0x3e0e8f(0x1d5)][_0x3e0e8f(0x1d8)](_0x4e1da2));const _0x3b3c21=this['_configService']['getConfig'](_0x250fae);_0x3b3c21&&_0x4e19a3[_0x3e0e8f(0x263)](_0x34e813,{'license':_0x3b3c21['ls']}),this['_pluginMap'][_0x3e0e8f(0x1f6)](([_0x112822,_0x5e2008])=>{const _0x4b7672=_0x3e0e8f;_0x4e19a3[_0x4b7672(0x263)](_0x112822,_0x5e2008);}),_0x24d321[_0x3e0e8f(0x215)](_0x50a1d3=>{this['_initListener'](_0x50a1d3,_0xf511d9);}),this[_0x3e0e8f(0x249)][_0x3e0e8f(0x278)](_0x4e19a3);const _0xd0e2ad=_0x24d321[_0x3e0e8f(0x225)](_0x599f5e),_0x3ad6ae=this[_0x3e0e8f(0x1e4)](_0xf511d9);_0xd0e2ad[_0x3e0e8f(0x26b)](_0xf511d9,_0x49eaac,_0x3ad6ae);}[_0x10d1fb(0x1fc)](_0xc720ce,_0x51c171){const _0x222492=_0x10d1fb,_0x305b4d=_0xc720ce[_0x222492(0x225)](_0x599f5e);this[_0x222492(0x1f0)][_0x222492(0x1ed)](_0x305b4d[_0x222492(0x1f3)]['subscribe'](_0x298bbf=>{const _0x2decce=_0x222492;switch(_0x298bbf){case _0x298bb8[_0x2decce(0x22e)]:this[_0x2decce(0x20c)]['closeAll'](),this[_0x2decce(0x222)][_0x2decce(0x1d2)]();break;case _0x298bb8['Exited']:this[_0x2decce(0x1ef)]();break;case _0x298bb8['Error']:this['unMountHistoryContent'](),this[_0x2decce(0x22c)][_0x2decce(0x23d)]({'content':this[_0x2decce(0x1ea)]['t'](_0x2decce(0x279)),'type':_0x2fb1cf['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x222492(0x1ed)](_0x305b4d['revertRevision$']['subscribe'](async _0x4b3527=>{const _0x14dc86=_0x222492;_0x4b3527&&this[_0x14dc86(0x270)]['executeCommand'](_0x1f9f3c['id'],{'unitId':_0x51c171,'revision':_0x4b3527});}));}[_0x10d1fb(0x1e4)](_0x3a697b){const _0x3a3acb=_0x10d1fb,_0x2d68fb=this[_0x3a3acb(0x22a)][_0x3a3acb(0x230)](_0x3a697b)['getSheets']()[_0x3a3acb(0x269)](_0x47f1ed=>_0x47f1ed[_0x3a3acb(0x262)]()),_0x40a219=new _0x5eec0c(_0x3a697b)['id'],_0x43407c=_0x2d68fb[_0x3a3acb(0x269)](_0x394cf3=>new _0x1c2cd1(_0x3a697b,_0x394cf3)['id']),_0x52e867=_0x2d68fb[_0x3a3acb(0x269)](_0xb58609=>this[_0x3a3acb(0x24c)][_0x3a3acb(0x258)](_0x3a697b,_0xb58609)[_0x3a3acb(0x269)](_0x2b3eb8=>new _0x4b4e71(_0x3a697b,_0xb58609,_0x2b3eb8[_0x3a3acb(0x1e9)])['id']))[_0x3a3acb(0x216)](),_0x58169f=new _0xbda07f(_0x3a697b)['id'];return this[_0x3a3acb(0x1f1)][_0x3a3acb(0x20a)]([_0x40a219,..._0x43407c,..._0x52e867,_0x58169f])[_0x3a3acb(0x256)](_0x2b5a2e=>!!_0x2b5a2e[_0x3a3acb(0x217)]);}};f=li([l(0x0,_0x539add(_0x3bb91b)),l(0x1,_0x1501ab),l(0x2,_0x556388),l(0x3,_0x158273),l(0x4,_0x1cefe2),l(0x5,_0x12dbf1),l(0x6,_0x539add(_0x15ca3f)),l(0x7,_0x539add(_0x58fa6b)),l(0x8,_0x539add(_0x500242)),l(0x9,_0x539add(_0x4f4959))],f);function _0x2f28(){const _0x28eb05=['UNIVER_SHEET','from','4692qLapZM','49504MUAoYR','historyUniver$','disposeWithMe','set','_init','_revertErrorTimer','univer-container','composePermission','unsubscribe','_dialogService','currentTheme$','setConfig','tag','352lViNSC','random','registerCommand','style','_injector','invoke','flat','value','dispose','path','getCollabEntity','334329cnyIWT','26QmcrbG','none','mountHistoryContent','has','replace','1000','_sidebarService','attrs','height','get','onSteady','mask','width','asObservable','_univerInstanceService','history-icon_clip0_907_281','_messageService','historyUniver','Entered','univer-history-container','getUnit','_themeService','_collaborationController','[HistoryLoaderService]:\x20Plugin\x20','history-container','dataset','getElementById','_config','4ykMEHm','HistoryIcon','children','clipPath','exhaustSavingTask','show','_initContainer','0\x200\x2016\x2016','clear','UNIVER_CONTAINER_ID','onStarting','UNIVER_UNKNOWN','OPERATION','1em','editHistory.panel.revertFailed','displayName','type','_historyUniver$','__getInjector','location','_selectionProtectionRuleModel','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','mutations','_pluginMap','idSuffix','28680jsDAuH','zIndex','\x20has\x20been\x20registered.','createElement','use','every','length','getSubunitRuleList','data','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','100%','1042555PWQEkr','getAllPlugins','left','trim','CHANGESET_ACK','subscribe','getSheetId','registerPlugin','74520vBoPkt','OTHERS','setLocale','menu','xlink:href','map','entries','triggerLoadVersions','event$','colorChannel1','setDarkMode','status','_commandService','getOwnPropertyDescriptor','svg','fill','symbol','eventID','reload','includes','next','editHistory.panel.listFetchError','Loading','getLocales','_historyManagerService','close','_localCacheService','editHistory.panel.reverting','_configService','history-icon','UniverIcon','getConfig','pluginName','_menuManagerService','_initUniver','http://www.w3.org/2000/svg','univerjs-icon\x20univerjs-icon-','darkMode$','div','714PYjeTU','defs','top','889339TGwpyy','_checkCanRevert','block','BUTTON','current','./worker.js','permissionId','_localeService','univerContainerId','substring','add','toString','unMountHistoryContent','_disposableCollection','_permissionService','SYNCED','status$','currentColor','getCurrentLocale','forEach','setTheme','historyListServerUrl','_componentManager','display','_initPlugins','_initListener','string','6071790PJDyop','120yuTCbf'];_0x2f28=function(){return _0x28eb05;};return _0x2f28();}const P={'id':'univer.operation.toggle-edit-history','type':_0x3de72b[_0x10d1fb(0x244)],'handler':_0x1eeaa5=>{const _0x57c6d6=_0x10d1fb,_0x5968e8=_0x1eeaa5[_0x57c6d6(0x225)](f),_0x46f93b=_0x1eeaa5[_0x57c6d6(0x225)](_0x1501ab),{unitId:_0x5bf7c5}=_0x296b3b(_0x46f93b)||{};return _0x5bf7c5?(_0x5968e8['mountHistoryContent'](_0x5bf7c5),!0x0):!0x1;}};function hi(_0x1cbcfa){const _0x55d531=_0x10d1fb;return{'id':P['id'],'type':_0x51c8b6[_0x55d531(0x1e6)],'icon':'HistoryIcon','tooltip':'editHistory.panel.title','hidden$':_0x4824bb(_0x1cbcfa,_0x4db259[_0x55d531(0x200)]),'disabled$':_0xb1b27(_0x1cbcfa,{'workbookTypes':[_0x5eec0c,_0x27fdd6],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x17cf7e[_0x10d1fb(0x265)]]:{[P['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x10d1fb(0x271)],vi=(_0x1b12b5,_0x5b01dc,_0x319b6e,_0x5dbbfc)=>{const _0x30c2f1=_0x10d1fb;for(var _0xc8f9d5=_0x5dbbfc>0x1?void 0x0:_0x5dbbfc?mi(_0x5b01dc,_0x319b6e):_0x5b01dc,_0x24e762=_0x1b12b5[_0x30c2f1(0x257)]-0x1,_0x32c83a;_0x24e762>=0x0;_0x24e762--)(_0x32c83a=_0x1b12b5[_0x24e762])&&(_0xc8f9d5=_0x32c83a(_0xc8f9d5)||_0xc8f9d5);return _0xc8f9d5;},m=(_0xb2650b,_0xcaed9a)=>(_0x567fff,_0x11915b)=>_0xcaed9a(_0x567fff,_0x11915b,_0xb2650b);let p=class extends _0x32c710{constructor(_0x5b261b,_0x354233,_0x4bd78d,_0x421bb2,_0x7a6b15,_0x1ca0f1,_0x32a432,_0x2d400e){const _0x42db93=_0x10d1fb;super(),g(this,_0x42db93(0x208),null),(this['_commandService']=_0x5b261b,this[_0x42db93(0x1da)]=_0x354233,this[_0x42db93(0x1f9)]=_0x4bd78d,this['_historyManagerService']=_0x421bb2,this['_localeService']=_0x7a6b15,this[_0x42db93(0x22c)]=_0x1ca0f1,this[_0x42db93(0x232)]=_0x32a432,this[_0x42db93(0x1d3)]=_0x2d400e,this[_0x42db93(0x207)]());}[_0x10d1fb(0x207)](){const _0xc0d2e5=_0x10d1fb;[P][_0xc0d2e5(0x1f6)](_0x54ed2b=>this[_0xc0d2e5(0x205)](_0x57b136(this[_0xc0d2e5(0x270)][_0xc0d2e5(0x212)](_0x54ed2b)))),this[_0xc0d2e5(0x205)](this[_0xc0d2e5(0x1f9)]['register'](_0xc0d2e5(0x239),j)),this['_menuManagerService']['mergeMenu'](gi),this[_0xc0d2e5(0x205)](this[_0xc0d2e5(0x270)]['onCommandExecuted'](_0x7b4d79=>{const _0x4329bd=_0xc0d2e5;if(_0x7b4d79['id']===_0x1f9f3c['id']){this[_0x4329bd(0x22c)]['show']({'content':this[_0x4329bd(0x1ea)]['t'](_0x4329bd(0x1d4)),'type':_0x2fb1cf[_0x4329bd(0x27a)],'duration':0x1388});const {unitId:_0xb4619}=_0x7b4d79['params'],_0x45dc3c=this['_collaborationController'][_0x4329bd(0x21a)](_0xb4619),_0x2a84ef=_0x59f3e2([_0x45dc3c['session'][_0x4329bd(0x26c)],_0x45dc3c['state$']])[_0x4329bd(0x261)](async([_0x118f0c,_0x272c4e])=>{const _0x2a77d0=_0x4329bd;var _0x344597;_0x118f0c[_0x2a77d0(0x275)]===_0x357650[_0x2a77d0(0x260)]&&(_0x272c4e==null?void 0x0:_0x272c4e[_0x2a77d0(0x26f)])===_0x3601b9[_0x2a77d0(0x1f2)]&&_0x118f0c[_0x2a77d0(0x259)][_0x2a77d0(0x24e)]['some'](_0x430db7=>_0x430db7['id']===_0x1f9f3c['id'])&&(this[_0x2a77d0(0x1d1)][_0x2a77d0(0x1ef)](),_0x2a84ef[_0x2a77d0(0x20b)](),this[_0x2a77d0(0x208)]&&clearTimeout(this[_0x2a77d0(0x208)]),await((_0x344597=this['_localCacheService'])==null?void 0x0:_0x344597[_0x2a77d0(0x23c)]()),setTimeout(()=>window[_0x2a77d0(0x24b)][_0x2a77d0(0x276)]()));});this[_0x4329bd(0x208)]=setTimeout(()=>{const _0x5698ee=_0x4329bd;_0x2a84ef[_0x5698ee(0x20b)](),this[_0x5698ee(0x22c)]['show']({'content':this[_0x5698ee(0x1ea)]['t'](_0x5698ee(0x246)),'type':_0x2fb1cf['Error'],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x158273),m(0x1,_0x1f293d),m(0x2,_0x539add(_0x2a46dc)),m(0x3,_0x539add(f)),m(0x4,_0x539add(_0x3bb91b)),m(0x5,_0x1cefe2),m(0x6,_0x539add(_0x200316)),m(0x7,_0x4cd47b)],p);var di=Object[_0x10d1fb(0x271)],fi=(_0x2ea785,_0xe4fa13,_0x3cf622,_0x533662)=>{const _0x2fbd47=_0x10d1fb;for(var _0x4e986f=_0x533662>0x1?void 0x0:_0x533662?di(_0xe4fa13,_0x3cf622):_0xe4fa13,_0x2b77fa=_0x2ea785[_0x2fbd47(0x257)]-0x1,_0x1a21b4;_0x2b77fa>=0x0;_0x2b77fa--)(_0x1a21b4=_0x2ea785[_0x2b77fa])&&(_0x4e986f=_0x1a21b4(_0x4e986f)||_0x4e986f);return _0x4e986f;},N=(_0x1fb61a,_0xf5cf1c)=>(_0x3e5954,_0x506902)=>_0xf5cf1c(_0x3e5954,_0x506902,_0x1fb61a);const _i='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';function _0x223a(_0x4b250f,_0x165ada){const _0x2f2839=_0x2f28();return _0x223a=function(_0x223adc,_0x2d9c92){_0x223adc=_0x223adc-0x1d0;let _0x2c2d3a=_0x2f2839[_0x223adc];return _0x2c2d3a;},_0x223a(_0x4b250f,_0x165ada);}var _;let H=(_=class extends _0x4fc823{constructor(_0x5658d3=R,_0x35d302,_0x5e143c){const _0x9214f2=_0x10d1fb;super(),this[_0x9214f2(0x237)]=_0x5658d3,this[_0x9214f2(0x214)]=_0x35d302,this['_configService']=_0x5e143c;const {menu:_0x109d33,..._0x40f223}=_0x578e57({},R,this['_config']);_0x109d33&&this[_0x9214f2(0x1d5)][_0x9214f2(0x20e)](_0x9214f2(0x267),_0x109d33,{'merge':!0x0}),this[_0x9214f2(0x1d5)][_0x9214f2(0x20e)](U,_0x40f223),this[_0x9214f2(0x237)][_0x9214f2(0x1eb)]&&this['_configService'][_0x9214f2(0x20e)](V,this[_0x9214f2(0x237)]['univerContainerId']);}[_0x10d1fb(0x242)](){const _0x50d16f=_0x10d1fb;[[f],[p]]['forEach'](_0x4056ee=>this[_0x50d16f(0x214)]['add'](_0x4056ee));}[_0x10d1fb(0x226)](){const _0x394b1d=_0x10d1fb;this['_injector'][_0x394b1d(0x225)](p);}},g(_,_0x10d1fb(0x248),_0x4db259[_0x10d1fb(0x243)]),g(_,_0x10d1fb(0x1d9),_i),_);H=fi([N(0x1,_0x539add(_0x56848e)),N(0x2,_0x556388)],H);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
@@ -9,5 +9,6 @@ export interface IUniverEditHistoryLoaderConfig {
9
9
  * @default ''
10
10
  */
11
11
  historyListServerUrl?: string;
12
+ historyPanelComponentKey?: string;
12
13
  }
13
14
  export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5d09(_0x126c2e,_0x319167){const _0x1e157e=_0x1e15();return _0x5d09=function(_0x5d09a1,_0x5c396c){_0x5d09a1=_0x5d09a1-0x1ae;let _0x2b793f=_0x1e157e[_0x5d09a1];return _0x2b793f;},_0x5d09(_0x126c2e,_0x319167);}function _0x1e15(){const _0x149c9b=['9eaADZp','UniverCollaborationPlugin','ThemeService','style','disposeWithMe','@univerjs/design','HistoryManagerService','IDialogService','@univerjs/engine-formula','exports','amd','current','data','setLocale','white','UniverSheetsHyperLinkPlugin','some','createElement','getSubunitRuleList','UniverSheetsFilter','IImageIoService','React','unsubscribe','SYNCED','CollaborationEvent','1256408Xrahyi','state$','\x20has\x20been\x20registered.','0\x200\x2016\x2016','svg','UniverSheetsPlugin','@univerjs-pro/edit-history-viewer','UniverRenderEnginePlugin','@univerjs/sheets-hyper-link-ui','@univerjs/drawing-ui','next','asObservable','type','UniverDataValidationPlugin','UniverInstanceType','UniverSheetsFilterUIPlugin','executeCommand','status','xlink:href','UniverDocsUIPlugin','darkMode$','random','url(#history-icon_clip0_907_281)','Loading','UNIVER_CONTAINER_ID','@univerjs-pro/sheets-pivot','getCollabEntity','flat','@univerjs/sheets-drawing','@univerjs/sheets-numfmt','block','invoke','_pluginMap','Injector','UniverLicensePlugin','UniverSheetsUIPlugin','position','_messageService','UniverSheetsFormula','close','UniverProSheetsSparklineUi','CollaborationController','UniverDrawingUIPlugin','_univerInstanceService','UniverSheetsUi','UniverCore','UniverSheetsConditionalFormattingUi','MessageType','displayName','setTheme','object','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','div','UniverSheetsFormulaUIPlugin','Module','1039740zJIJbK','mountHistoryContent','show','editHistory.panel.revertFailed','1228494GiZHtz','mutations','none','_menuManagerService','./worker.js','RibbonStartGroup','historyUniver$','[HistoryLoaderService]:\x20Plugin\x20','UniverDrawingPlugin','onStarting','onSteady','IMessageService','@univerjs/core','fill','univer-container','set','uComp','getConfig','getMenuHiddenObservable','_collaborationController','colorChannel1','UniverSheetsDataValidation','_commandService','@univerjs/engine-render','toString','unMountHistoryContent','Plugin','UniverDrawingUi','@univerjs/sheets-formula-ui','2467487TSVwIT','UniverDrawing','has','UniverSheetsHyperLink','get','Error','defIds','children','merge','UniverProSheetsPivot','getLocales','@univerjs-pro/sheets-sparkline','display','width','@univerjs-pro/collaboration','location','register','OPERATION','idSuffix','function','Disposable','symbol','getSheetId','@univerjs-pro/collaboration-client','CommandType','_disposableCollection','IUniverInstanceService','UniverSheetsNumfmtPlugin','toStringTag','WorkbookEditablePermission','getOwnPropertyDescriptor','history-icon_clip0_907_281','menu','_configService','WorkbookRecoverHistoryPermission','appendChild','triggerLoadVersions','UniverSheetsDrawing','@univerjs/sheets-conditional-formatting-ui','UniverEngineFormula','subscribe','attrs','UniverSheetsConditionalFormattingPlugin','defs','_componentManager','HistoryLoaderService','composePermission','UniverSheetsDrawingUIPlugin','left','UniverSheetsHyperLinkUIPlugin','editHistory.panel.reverting','_localeService','getElementById','UniverProCollaborationClient','session','forwardRef','univerjs-icon\x20univerjs-icon-','IConfigService','pluginName','100%','_initPlugins','editHistory.panel.listFetchError','UniverSheetsNumfmt','WorkbookViewHistoryPermission','getCurrentLocale','_localCacheService','_themeService','UniverSheetsFormulaPlugin','absolute','@univerjs/sheets-drawing-ui','_init','RevertRevisionMutation','UniverSheetsFormulaUi','706295oPAngR','UniverSheetsFilterUi','40571kQFmvv','@univerjs/drawing','ComponentManager','@univerjs/sheets-filter-ui','edit-history-loader.config','@univerjs/sheets-filter','UniverFormulaEnginePlugin','getSheetCommandTarget','UniverDesign','Inject','UniverSheetsDrawingUi','height','2dxudJC','OTHERS','replace','_initListener','UniverUi','UniverIcon','toDisposable','entries','_initUniver','map','historyUniver','defineProperty','@univerjs/sheets-ui','M0\x200H16V16H0z','registerPlugin','UniverSheetsDataValidationPlugin','ICommandService','string','UniverSheetsConditionalFormatting','dispose','UniverSheetsFilterPlugin','_initContainer','BehaviorSubject','UniverEditHistoryLoaderPlugin','IAuthzIoService','@univerjs/sheets-hyper-link','HistoryIcon','@univerjs/rpc','value','UniverEditHistoryViewerPlugin','useRef','setDarkMode','UniverNetworkPlugin','UNIVER_HISTORY_CONTAINER_ID','currentTheme$','forEach','WorksheetEditPermission','CHANGESET_ACK','clipPath','mask','1em','UniverProEditHistoryLoader','add','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','4840toIMBM','from','univerContainerId','_revertErrorTimer','DisposableCollection','substring','UniverDocsUi','getUnit','RxDisposable','top','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','@univerjs/docs','currentColor','ILocalCacheService','LS_CONFIG_KEY','3rviyUk','LocaleService','url(#$1','setConfig','_config','path','http://www.w3.org/2000/svg','revertRevision$','trim','_historyUniver$','UNIVER_CONTAINER_ID_KEY','UniverSheetsPivotTablePlugin','IMenuManagerService','tag','includes','rxjs','7acmGuN','length','closeAll','HistoryModeStatus','values','univer.operation.toggle-edit-history','_permissionService','UniverDocs','history-container','reload','history-icon','@univerjs-pro/sheets-sparkline-ui','UniverProCollaboration','10nlVwsc','UniverDocsPlugin','CollaborationStatus','UniverEngineRender','zIndex','registerCommand','_injector','every','RangeProtectionPermissionEditPoint','Univer','use','@univerjs/sheets','mergeMenu','editHistory.panel.title','getCurrentRangeDisable$'];_0x1e15=function(){return _0x149c9b;};return _0x1e15();}(function(_0x59e52e,_0x27af56){const _0x4d256f=_0x5d09,_0x5734f8=_0x59e52e();while(!![]){try{const _0x12c320=parseInt(_0x4d256f(0x1e7))/0x1*(parseInt(_0x4d256f(0x1f3))/0x2)+parseInt(_0x4d256f(0x22e))/0x3*(-parseInt(_0x4d256f(0x21f))/0x4)+parseInt(_0x4d256f(0x1e5))/0x5+-parseInt(_0x4d256f(0x2ae))/0x6*(parseInt(_0x4d256f(0x23e))/0x7)+parseInt(_0x4d256f(0x273))/0x8*(-parseInt(_0x4d256f(0x25a))/0x9)+parseInt(_0x4d256f(0x24b))/0xa*(parseInt(_0x4d256f(0x2cb))/0xb)+parseInt(_0x4d256f(0x2aa))/0xc;if(_0x12c320===_0x27af56)break;else _0x5734f8['push'](_0x5734f8['shift']());}catch(_0x3a2212){_0x5734f8['push'](_0x5734f8['shift']());}}}(_0x1e15,0x1faf6),function(_0x511ea6,_0x9f46bd){const _0x3efaab=_0x5d09;typeof exports==_0x3efaab(0x2a5)&&typeof module<'u'?_0x9f46bd(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),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-ui')):typeof define==_0x3efaab(0x1af)&&define[_0x3efaab(0x264)]?define([_0x3efaab(0x263),_0x3efaab(0x2ba),_0x3efaab(0x2d9),_0x3efaab(0x1b3),_0x3efaab(0x25f),'react','@univerjs/ui',_0x3efaab(0x23d),_0x3efaab(0x256),_0x3efaab(0x279),'@univerjs-pro/license',_0x3efaab(0x28c),_0x3efaab(0x2d6),_0x3efaab(0x249),'@univerjs/data-validation',_0x3efaab(0x22a),'@univerjs/docs-ui',_0x3efaab(0x1e8),_0x3efaab(0x27c),_0x3efaab(0x262),_0x3efaab(0x2c5),'@univerjs/network',_0x3efaab(0x20e),'@univerjs/sheets-conditional-formatting',_0x3efaab(0x1c2),'@univerjs/sheets-data-validation','@univerjs/sheets-data-validation-ui',_0x3efaab(0x28f),_0x3efaab(0x1e1),_0x3efaab(0x1ec),_0x3efaab(0x1ea),'@univerjs/sheets-formula',_0x3efaab(0x2ca),_0x3efaab(0x20c),_0x3efaab(0x27b),_0x3efaab(0x290),_0x3efaab(0x1ff)],_0x9f46bd):(_0x511ea6=typeof globalThis<'u'?globalThis:_0x511ea6||self,_0x9f46bd(_0x511ea6[_0x3efaab(0x21c)]={},_0x511ea6[_0x3efaab(0x2a0)],_0x511ea6[_0x3efaab(0x24a)],_0x511ea6[_0x3efaab(0x1d1)],_0x511ea6[_0x3efaab(0x1ef)],_0x511ea6[_0x3efaab(0x26f)],_0x511ea6[_0x3efaab(0x1f7)],_0x511ea6['rxjs'],_0x511ea6['UniverSheets'],_0x511ea6['UniverProEditHistoryViewer'],_0x511ea6['UniverProLicense'],_0x511ea6[_0x3efaab(0x2d4)],_0x511ea6['UniverProSheetsSparkline'],_0x511ea6[_0x3efaab(0x29b)],_0x511ea6['UniverDataValidation'],_0x511ea6[_0x3efaab(0x245)],_0x511ea6[_0x3efaab(0x225)],_0x511ea6[_0x3efaab(0x2cc)],_0x511ea6[_0x3efaab(0x2c9)],_0x511ea6[_0x3efaab(0x1c3)],_0x511ea6[_0x3efaab(0x24e)],_0x511ea6['UniverNetwork'],_0x511ea6['UniverRpc'],_0x511ea6[_0x3efaab(0x205)],_0x511ea6[_0x3efaab(0x2a1)],_0x511ea6[_0x3efaab(0x2c3)],_0x511ea6['UniverSheetsDataValidationUi'],_0x511ea6[_0x3efaab(0x1c1)],_0x511ea6[_0x3efaab(0x1f1)],_0x511ea6[_0x3efaab(0x26d)],_0x511ea6[_0x3efaab(0x1e6)],_0x511ea6[_0x3efaab(0x299)],_0x511ea6[_0x3efaab(0x1e4)],_0x511ea6[_0x3efaab(0x2ce)],_0x511ea6['UniverSheetsHyperLinkUi'],_0x511ea6[_0x3efaab(0x1da)],_0x511ea6[_0x3efaab(0x29f)]));}(this,function(_0x1c80c5,_0x509b43,_0x4226fd,_0x22be86,_0x280f43,_0x47ee0c,_0x3c337d,_0x54ddc1,_0x52cf1c,_0x97794b,_0xeb80a2,_0x3aa51b,_0x487a66,_0x35611a,_0xffa3b1,_0x21eb7e,_0x5c856b,_0x27084d,_0x17bbdd,_0x3f6fcd,_0x515d2f,_0xc4dd8c,_0xab74af,_0x41ceb3,_0x286167,_0x59c342,_0x2a14a2,_0x9e2429,_0x4c4886,_0x5c9dfe,_0x12ef78,_0x51b25f,_0x11112c,_0x96c448,_0x4ba3d9,_0x1cce12,_0x11ca31){'use strict';const _0x57404d=_0x5d09;var _0x1e1a87=Object['defineProperty'],_0x1f46ce=(_0x5c7285,_0x40f954,_0x4a3a18)=>_0x40f954 in _0x5c7285?_0x1e1a87(_0x5c7285,_0x40f954,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a3a18}):_0x5c7285[_0x40f954]=_0x4a3a18,_0x43ffb4=(_0x3eaabd,_0x532051,_0x15c912)=>_0x1f46ce(_0x3eaabd,typeof _0x532051!=_0x57404d(0x1b1)?_0x532051+'':_0x532051,_0x15c912),_0x106a9e;const _0x3f5597=_0x57404d(0x1eb),_0x5b164a={};function _0x28ebb9({ref:_0x56e33e,..._0x3a056a}){const _0x585180=_0x57404d,{icon:_0x5604a0,id:_0x226eb6,className:_0x4a40c2,extend:_0x19ba63,..._0x488eb7}=_0x3a056a,_0x5666f2=(_0x585180(0x1d4)+_0x226eb6+'\x20'+(_0x4a40c2||''))[_0x585180(0x236)](),_0x23acc6=_0x47ee0c[_0x585180(0x211)]('_'+_0x3fdef1());return _0x7c3654(_0x5604a0,''+_0x226eb6,{'defIds':_0x5604a0[_0x585180(0x2d1)],'idSuffix':_0x23acc6[_0x585180(0x265)]},{'ref':_0x56e33e,'className':_0x5666f2,..._0x488eb7},_0x19ba63);}function _0x7c3654(_0x1f3082,_0x171307,_0x15fca6,_0x333c15,_0x3363fb){const _0x1f7321=_0x57404d;return _0x47ee0c[_0x1f7321(0x26b)](_0x1f3082[_0x1f7321(0x23b)],{'key':_0x171307,..._0x8cd27e(_0x1f3082,_0x15fca6,_0x3363fb),..._0x333c15},(_0x589232(_0x1f3082,_0x15fca6)[_0x1f7321(0x2d2)]||[])[_0x1f7321(0x1fc)]((_0x3311b9,_0x2c45bf)=>_0x7c3654(_0x3311b9,_0x171307+'-'+_0x1f3082[_0x1f7321(0x23b)]+'-'+_0x2c45bf,_0x15fca6,void 0x0,_0x3363fb)));}function _0x8cd27e(_0x2bd847,_0x1863bd,_0x4f07d3){const _0x152139=_0x57404d,_0x1053ff={..._0x2bd847[_0x152139(0x1c5)]};_0x4f07d3!=null&&_0x4f07d3[_0x152139(0x2c2)]&&_0x1053ff[_0x152139(0x2bb)]===_0x152139(0x2c2)&&(_0x1053ff[_0x152139(0x2bb)]=_0x4f07d3[_0x152139(0x2c2)]),_0x2bd847[_0x152139(0x23b)]===_0x152139(0x21a)&&_0x1053ff['id']&&(_0x1053ff['id']=_0x1053ff['id']+_0x1863bd[_0x152139(0x1ae)]),Object[_0x152139(0x1fa)](_0x1053ff)[_0x152139(0x216)](([_0x2f0c58,_0x2892dd])=>{const _0xf9befa=_0x152139;_0x2f0c58===_0xf9befa(0x21a)&&typeof _0x2892dd==_0xf9befa(0x204)&&(_0x1053ff[_0x2f0c58]=_0x2892dd[_0xf9befa(0x1f5)](/url\(#(.*)\)/,_0xf9befa(0x230)+_0x1863bd[_0xf9befa(0x1ae)]+')'));});const {defIds:_0x2404fc}=_0x1863bd;return!_0x2404fc||_0x2404fc[_0x152139(0x23f)]===0x0||(_0x2bd847[_0x152139(0x23b)]===_0x152139(0x255)&&_0x1053ff[_0x152139(0x285)]&&(_0x1053ff[_0x152139(0x285)]=_0x1053ff[_0x152139(0x285)]+_0x1863bd[_0x152139(0x1ae)]),Object[_0x152139(0x1fa)](_0x1053ff)[_0x152139(0x216)](([_0x67729a,_0x544ef4])=>{const _0x4418e6=_0x152139;typeof _0x544ef4==_0x4418e6(0x204)&&(_0x1053ff[_0x67729a]=_0x544ef4[_0x4418e6(0x1f5)](/url\(#(.*)\)/,_0x4418e6(0x230)+_0x1863bd['idSuffix']+')'));})),_0x1053ff;}function _0x589232(_0x266667,_0x38c1bd){const _0x2fe312=_0x57404d;var _0x33c27d;const {defIds:_0x279c60}=_0x38c1bd;return!_0x279c60||_0x279c60['length']===0x0?_0x266667:_0x266667['tag']===_0x2fe312(0x1c7)&&((_0x33c27d=_0x266667[_0x2fe312(0x2d2)])!=null&&_0x33c27d['length'])?{..._0x266667,'children':_0x266667[_0x2fe312(0x2d2)][_0x2fe312(0x1fc)](_0x9a9c4d=>typeof _0x9a9c4d[_0x2fe312(0x1c5)]['id']==_0x2fe312(0x204)&&_0x279c60&&_0x279c60[_0x2fe312(0x23c)](_0x9a9c4d[_0x2fe312(0x1c5)]['id'])?{..._0x9a9c4d,'attrs':{..._0x9a9c4d['attrs'],'id':_0x9a9c4d[_0x2fe312(0x1c5)]['id']+_0x38c1bd[_0x2fe312(0x1ae)]}}:_0x9a9c4d)}:_0x266667;}function _0x3fdef1(){const _0x503895=_0x57404d;return Math[_0x503895(0x288)]()[_0x503895(0x2c6)](0x24)[_0x503895(0x224)](0x2,0x8);}_0x28ebb9[_0x57404d(0x2a3)]=_0x57404d(0x1f8);const _0x2368fa={'tag':_0x57404d(0x277),'attrs':{'xmlns':_0x57404d(0x234),'fill':'none','viewBox':_0x57404d(0x276),'width':_0x57404d(0x21b),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x57404d(0x22b),'clipPath':_0x57404d(0x289)},'children':[{'tag':_0x57404d(0x233),'attrs':{'d':_0x57404d(0x2a6)}},{'tag':'path','attrs':{'d':_0x57404d(0x229)}}]},{'tag':_0x57404d(0x1c7),'attrs':{},'children':[{'tag':_0x57404d(0x219),'attrs':{'id':_0x57404d(0x1bb)},'children':[{'tag':_0x57404d(0x233),'attrs':{'fill':_0x57404d(0x268),'d':_0x57404d(0x200)}}]}]}],'defIds':[_0x57404d(0x1bb)]},_0x312a28=_0x47ee0c[_0x57404d(0x1d3)](function(_0x3340f2,_0x545888){const _0x4d3b05=_0x57404d;return _0x47ee0c[_0x4d3b05(0x26b)](_0x28ebb9,Object['assign']({},_0x3340f2,{'id':_0x4d3b05(0x248),'ref':_0x545888,'icon':_0x2368fa}));});_0x312a28[_0x57404d(0x2a3)]='HistoryIcon';var _0x58ff51=Object[_0x57404d(0x1ba)],_0x508173=(_0x539963,_0x4d8474,_0x5d48fa,_0x2b923d)=>{for(var _0x40b870=_0x2b923d>0x1?void 0x0:_0x2b923d?_0x58ff51(_0x4d8474,_0x5d48fa):_0x4d8474,_0x14c4c2=_0x539963['length']-0x1,_0x2c5f86;_0x14c4c2>=0x0;_0x14c4c2--)(_0x2c5f86=_0x539963[_0x14c4c2])&&(_0x40b870=_0x2c5f86(_0x40b870)||_0x40b870);return _0x40b870;},_0x1d850e=(_0x20de03,_0x2e2bae)=>(_0x3c87c6,_0x5c58ff)=>_0x2e2bae(_0x3c87c6,_0x5c58ff,_0x20de03);const _0x695235=_0x57404d(0x2bc),_0x5379c1=_0x57404d(0x28b),_0x5b6f6a='univer-history-container';_0x1c80c5[_0x57404d(0x1c9)]=class extends _0x509b43[_0x57404d(0x1b0)]{constructor(_0x3095a6,_0x275799,_0xe39372,_0x3ad8da,_0x59356f,_0x23ef06,_0x351a90,_0xe28ee8,_0x4d9cec,_0x54b13d){const _0x42d385=_0x57404d;super(),_0x43ffb4(this,_0x42d385(0x237),new _0x54ddc1[(_0x42d385(0x209))](null)),_0x43ffb4(this,_0x42d385(0x2b4),this[_0x42d385(0x237)][_0x42d385(0x27e)]()),_0x43ffb4(this,_0x42d385(0x1b5),new _0x509b43[(_0x42d385(0x223))]()),_0x43ffb4(this,_0x42d385(0x293),new Map()),(this[_0x42d385(0x1cf)]=_0x3095a6,this[_0x42d385(0x29e)]=_0x275799,this[_0x42d385(0x1bd)]=_0xe39372,this[_0x42d385(0x2c4)]=_0x3ad8da,this[_0x42d385(0x298)]=_0x59356f,this[_0x42d385(0x244)]=_0x23ef06,this['_selectionProtectionRuleModel']=_0x351a90,this['_dialogService']=_0xe28ee8,this['_sidebarService']=_0x4d9cec,this['_themeService']=_0x54b13d,this['_init']());}get['historyUniver'](){const _0x3f6ed9=_0x57404d;return this[_0x3f6ed9(0x237)][_0x3f6ed9(0x20f)];}['_init'](){const _0x4aef23=_0x57404d;this[_0x4aef23(0x208)](),this[_0x4aef23(0x1d8)]();}[_0x57404d(0x208)](){const _0x390435=_0x57404d;var _0x3da32b;const _0x3656b4=(_0x3da32b=this[_0x390435(0x1bd)][_0x390435(0x2bf)](_0x5379c1))!=null?_0x3da32b:_0x695235,_0x20ea90=document[_0x390435(0x1d0)](_0x3656b4);if(!_0x20ea90)return;const _0x1329a6=document['createElement'](_0x390435(0x2a7));_0x1329a6['id']=_0x5b6f6a,_0x1329a6['dataset'][_0x390435(0x2be)]=_0x390435(0x246),_0x1329a6[_0x390435(0x25d)][_0x390435(0x297)]=_0x390435(0x1e0),_0x1329a6['style'][_0x390435(0x228)]='0',_0x1329a6[_0x390435(0x25d)][_0x390435(0x1cc)]='0',_0x1329a6['style'][_0x390435(0x2d8)]='100%',_0x1329a6['style'][_0x390435(0x1f2)]=_0x390435(0x1d7),_0x1329a6[_0x390435(0x25d)][_0x390435(0x24f)]='1000',_0x1329a6['style']['display']=_0x390435(0x2b0),_0x20ea90[_0x390435(0x1bf)](_0x1329a6);}[_0x57404d(0x1d8)](){const _0x3d7bed=_0x57404d;var _0x5d41b7;[[_0x515d2f[_0x3d7bed(0x27a)]],[_0x3c337d['UniverUIPlugin'],{'container':_0x5b6f6a,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3c337d['IDialogService'],null]]}],[_0xc4dd8c[_0x3d7bed(0x213)]],[_0x27084d[_0x3d7bed(0x2b6)],{'override':[[_0x27084d[_0x3d7bed(0x26e)],null]]}],[_0x21eb7e[_0x3d7bed(0x24c)],{'hasScroll':!0x1}],[_0x5c856b[_0x3d7bed(0x286)]],[_0x1cce12[_0x3d7bed(0x1b7)]],[_0x52cf1c[_0x3d7bed(0x278)],{'notExecuteFormula':!0x0}],[_0x11ca31[_0x3d7bed(0x296)]],[_0x51b25f[_0x3d7bed(0x1df)]],[_0x11112c[_0x3d7bed(0x2a8)]],[_0x4226fd[_0x3d7bed(0x25b)]],[_0x5c9dfe[_0x3d7bed(0x207)]],[_0x12ef78[_0x3d7bed(0x282)]],[_0x41ceb3[_0x3d7bed(0x1c6)]],[_0x286167['UniverSheetsConditionalFormattingUIPlugin']],[_0x96c448[_0x3d7bed(0x269)]],[_0x4ba3d9[_0x3d7bed(0x1cd)]],[_0xffa3b1[_0x3d7bed(0x280)]],[_0x59c342[_0x3d7bed(0x202)]],[_0x2a14a2['UniverSheetsDataValidationUIPlugin']],[_0x3f6fcd[_0x3d7bed(0x1ed)],{'notExecuteFormula':!0x0}],[_0xab74af['UniverRPCMainThreadPlugin'],{'workerURL':_0x3d7bed(0x2b2)}],[_0x17bbdd[_0x3d7bed(0x29d)]],[_0x9e2429['UniverSheetsDrawingPlugin']],[_0x4c4886[_0x3d7bed(0x1cb)]],[_0x487a66['UniverSheetSparklinePlugin']],[_0x35611a['UniverSheetSparklineUIPlugin']],[_0x3aa51b[_0x3d7bed(0x239)],{'notExecuteFormula':!0x0}],[_0x97794b[_0x3d7bed(0x210)],{'historyListServerUrl':(_0x5d41b7=this[_0x3d7bed(0x1bd)][_0x3d7bed(0x2bf)](_0x3f5597))==null?void 0x0:_0x5d41b7['historyListServerUrl']}]][_0x3d7bed(0x216)](([_0x5c1601,_0x3aa082])=>this[_0x3d7bed(0x201)](_0x5c1601,_0x3aa082));}['dispose'](){const _0x24d7fc=_0x57404d;super['dispose'](),this[_0x24d7fc(0x2c7)](),this[_0x24d7fc(0x293)]['clear']();}[_0x57404d(0x201)](_0x18e6a0,_0x5e8573,_0x418478){const _0x56f83e=_0x57404d;if(this['_pluginMap'][_0x56f83e(0x2cd)](_0x18e6a0[_0x56f83e(0x1d6)])&&!_0x418478)throw new Error(_0x56f83e(0x2b5)+_0x18e6a0['pluginName']+_0x56f83e(0x275));this['_pluginMap'][_0x56f83e(0x2bd)](_0x18e6a0[_0x56f83e(0x1d6)],[_0x18e6a0,_0x5e8573]);}['getAllPlugins'](){const _0x48b7a3=_0x57404d;return Array[_0x48b7a3(0x220)](this[_0x48b7a3(0x293)][_0x48b7a3(0x242)]());}['mountHistoryContent'](_0x28e260){const _0x2ff102=_0x57404d,_0x2c088c=document['getElementById'](_0x5b6f6a);_0x2c088c&&(_0x2c088c[_0x2ff102(0x25d)][_0x2ff102(0x2d7)]=_0x2ff102(0x291),this[_0x2ff102(0x1fb)](_0x28e260,_0x5b6f6a));}[_0x57404d(0x2c7)](){const _0xddea52=_0x57404d;var _0x245de7;this['_disposableCollection'][_0xddea52(0x206)](),(_0x245de7=this[_0xddea52(0x1fd)])==null||_0x245de7[_0xddea52(0x206)](),this['_historyUniver$']['next'](null);const _0x432444=document[_0xddea52(0x1d0)](_0x5b6f6a);_0x432444&&(_0x432444[_0xddea52(0x25d)][_0xddea52(0x2d7)]=_0xddea52(0x2b0));}[_0x57404d(0x1fb)](_0x2c0852,_0x169116){const _0x3296c4=_0x57404d;if(this[_0x3296c4(0x1fd)])return;const _0x9fa915=new _0x509b43[(_0x3296c4(0x254))]({'locales':{[this[_0x3296c4(0x1cf)][_0x3296c4(0x1dc)]()]:this[_0x3296c4(0x1cf)][_0x3296c4(0x2d5)]()},'override':[[_0x509b43[_0x3296c4(0x20b)],{'useClass':_0x22be86['AuthzIoHttpService']}]]}),_0x24e454=_0x9fa915['__getInjector']();this[_0x3296c4(0x25e)](this[_0x3296c4(0x1de)][_0x3296c4(0x287)][_0x3296c4(0x1c4)](_0x4349d1=>{const _0x59b6e6=_0x3296c4;_0x24e454[_0x59b6e6(0x2cf)](_0x509b43[_0x59b6e6(0x25c)])[_0x59b6e6(0x212)](_0x4349d1);})),this[_0x3296c4(0x25e)](this[_0x3296c4(0x1de)][_0x3296c4(0x215)][_0x3296c4(0x1c4)](_0x2b8fb6=>{const _0x5f01f9=_0x3296c4;_0x24e454[_0x5f01f9(0x2cf)](_0x509b43[_0x5f01f9(0x25c)])[_0x5f01f9(0x2a4)](_0x2b8fb6);})),_0x24e454['get'](_0x509b43[_0x3296c4(0x22f)])[_0x3296c4(0x267)](this['_localeService'][_0x3296c4(0x1dc)]()),_0x24e454['get'](_0x509b43[_0x3296c4(0x1d5)])['setConfig'](_0x22be86[_0x3296c4(0x21e)],this[_0x3296c4(0x1bd)]['getConfig'](_0x22be86[_0x3296c4(0x21e)]));const _0xa92901=this[_0x3296c4(0x1bd)][_0x3296c4(0x2bf)](_0xeb80a2[_0x3296c4(0x22d)]);_0xa92901&&_0x9fa915['registerPlugin'](_0xeb80a2[_0x3296c4(0x295)],{'license':_0xa92901['ls']}),this[_0x3296c4(0x293)][_0x3296c4(0x216)](([_0x5cea65,_0x32d9a8])=>{const _0x52d199=_0x3296c4;_0x9fa915[_0x52d199(0x201)](_0x5cea65,_0x32d9a8);}),_0x24e454[_0x3296c4(0x292)](_0x46a5d8=>{const _0xc267dd=_0x3296c4;this[_0xc267dd(0x1f6)](_0x46a5d8,_0x2c0852);}),this[_0x3296c4(0x237)][_0x3296c4(0x27d)](_0x9fa915);const _0x5c9ae2=_0x24e454[_0x3296c4(0x2cf)](_0x97794b[_0x3296c4(0x260)]),_0xe070b1=this['_checkCanRevert'](_0x2c0852);_0x5c9ae2[_0x3296c4(0x1c0)](_0x2c0852,_0x169116,_0xe070b1);}[_0x57404d(0x1f6)](_0x25996a,_0xb1950b){const _0x417c83=_0x57404d,_0x15d724=_0x25996a[_0x417c83(0x2cf)](_0x97794b['HistoryManagerService']);this[_0x417c83(0x1b5)][_0x417c83(0x21d)](_0x15d724['status$'][_0x417c83(0x1c4)](_0x58a881=>{const _0x170757=_0x417c83;switch(_0x58a881){case _0x97794b['HistoryModeStatus']['Entered']:this['_dialogService'][_0x170757(0x240)](),this['_sidebarService'][_0x170757(0x29a)]();break;case _0x97794b['HistoryModeStatus']['Exited']:this['unMountHistoryContent']();break;case _0x97794b[_0x170757(0x241)][_0x170757(0x2d0)]:this['unMountHistoryContent'](),this[_0x170757(0x298)]['show']({'content':this[_0x170757(0x1cf)]['t'](_0x170757(0x1d9)),'type':_0x280f43['MessageType'][_0x170757(0x2d0)],'duration':0xbb8});break;}})),this[_0x417c83(0x1b5)][_0x417c83(0x21d)](_0x15d724[_0x417c83(0x235)][_0x417c83(0x1c4)](async _0x453377=>{const _0x28c201=_0x417c83;_0x453377&&this[_0x28c201(0x2c4)][_0x28c201(0x283)](_0x4226fd[_0x28c201(0x1e3)]['id'],{'unitId':_0xb1950b,'revision':_0x453377});}));}['_checkCanRevert'](_0x4a3b14){const _0x5f52bb=_0x57404d,_0x30c061=this['_univerInstanceService'][_0x5f52bb(0x226)](_0x4a3b14)['getSheets']()[_0x5f52bb(0x1fc)](_0x5c5934=>_0x5c5934[_0x5f52bb(0x1b2)]()),_0x5af28f=new _0x52cf1c[(_0x5f52bb(0x1b9))](_0x4a3b14)['id'],_0x27537e=_0x30c061[_0x5f52bb(0x1fc)](_0x49db2e=>new _0x52cf1c[(_0x5f52bb(0x217))](_0x4a3b14,_0x49db2e)['id']),_0x4035f1=_0x30c061['map'](_0x14f457=>this['_selectionProtectionRuleModel'][_0x5f52bb(0x26c)](_0x4a3b14,_0x14f457)[_0x5f52bb(0x1fc)](_0x23f5be=>new _0x52cf1c[(_0x5f52bb(0x253))](_0x4a3b14,_0x14f457,_0x23f5be['permissionId'])['id']))[_0x5f52bb(0x28e)](),_0xa223a2=new _0x52cf1c[(_0x5f52bb(0x1be))](_0x4a3b14)['id'];return this[_0x5f52bb(0x244)][_0x5f52bb(0x1ca)]([_0x5af28f,..._0x27537e,..._0x4035f1,_0xa223a2])[_0x5f52bb(0x252)](_0x36d25f=>!!_0x36d25f[_0x5f52bb(0x20f)]);}},_0x1c80c5[_0x57404d(0x1c9)]=_0x508173([_0x1d850e(0x0,_0x509b43['Inject'](_0x509b43[_0x57404d(0x22f)])),_0x1d850e(0x1,_0x509b43[_0x57404d(0x1b6)]),_0x1d850e(0x2,_0x509b43[_0x57404d(0x1d5)]),_0x1d850e(0x3,_0x509b43['ICommandService']),_0x1d850e(0x4,_0x3c337d[_0x57404d(0x2b9)]),_0x1d850e(0x5,_0x509b43['IPermissionService']),_0x1d850e(0x6,_0x509b43[_0x57404d(0x1f0)](_0x52cf1c['RangeProtectionRuleModel'])),_0x1d850e(0x7,_0x509b43[_0x57404d(0x1f0)](_0x3c337d[_0x57404d(0x261)])),_0x1d850e(0x8,_0x509b43['Inject'](_0x3c337d['ISidebarService'])),_0x1d850e(0x9,_0x509b43[_0x57404d(0x1f0)](_0x509b43['ThemeService']))],_0x1c80c5[_0x57404d(0x1c9)]);const _0x351072={'id':_0x57404d(0x243),'type':_0x509b43[_0x57404d(0x1b4)][_0x57404d(0x2dc)],'handler':_0x3144f1=>{const _0x5beff5=_0x57404d,_0x1c8131=_0x3144f1[_0x5beff5(0x2cf)](_0x1c80c5[_0x5beff5(0x1c9)]),_0xb49434=_0x3144f1[_0x5beff5(0x2cf)](_0x509b43[_0x5beff5(0x1b6)]),{unitId:_0x59791a}=_0x52cf1c[_0x5beff5(0x1ee)](_0xb49434)||{};return _0x59791a?(_0x1c8131[_0x5beff5(0x2ab)](_0x59791a),!0x0):!0x1;}};function _0xa2536a(_0x46e5f8){const _0xbd33ed=_0x57404d;return{'id':_0x351072['id'],'type':_0x3c337d['MenuItemType']['BUTTON'],'icon':_0xbd33ed(0x20d),'tooltip':_0xbd33ed(0x258),'hidden$':_0x3c337d[_0xbd33ed(0x2c0)](_0x46e5f8,_0x509b43[_0xbd33ed(0x281)]['UNIVER_SHEET']),'disabled$':_0x11ca31[_0xbd33ed(0x259)](_0x46e5f8,{'workbookTypes':[_0x52cf1c[_0xbd33ed(0x1b9)],_0x52cf1c[_0xbd33ed(0x1db)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x3762bf={[_0x3c337d[_0x57404d(0x2b3)][_0x57404d(0x1f4)]]:{[_0x351072['id']]:{'order':0.2,'menuItemFactory':_0xa2536a}}};var _0x4270b5=Object[_0x57404d(0x1ba)],_0x43819f=(_0x111c01,_0x5bf792,_0xd40118,_0x29b918)=>{const _0x11dbe2=_0x57404d;for(var _0x22ce03=_0x29b918>0x1?void 0x0:_0x29b918?_0x4270b5(_0x5bf792,_0xd40118):_0x5bf792,_0x517ad5=_0x111c01[_0x11dbe2(0x23f)]-0x1,_0x942110;_0x517ad5>=0x0;_0x517ad5--)(_0x942110=_0x111c01[_0x517ad5])&&(_0x22ce03=_0x942110(_0x22ce03)||_0x22ce03);return _0x22ce03;},_0x19d9d9=(_0x4fb17c,_0x373d60)=>(_0x4385b0,_0x1c21b7)=>_0x373d60(_0x4385b0,_0x1c21b7,_0x4fb17c);let _0x1dd558=class extends _0x509b43[_0x57404d(0x227)]{constructor(_0x6d2d4d,_0x44b534,_0x15b2bb,_0x25e033,_0x3ef29d,_0x48e1ed,_0x4b531a,_0x117346){const _0x47de46=_0x57404d;super(),_0x43ffb4(this,_0x47de46(0x222),null),(this['_commandService']=_0x6d2d4d,this['_menuManagerService']=_0x44b534,this[_0x47de46(0x1c8)]=_0x15b2bb,this['_historyManagerService']=_0x25e033,this[_0x47de46(0x1cf)]=_0x3ef29d,this['_messageService']=_0x48e1ed,this['_collaborationController']=_0x4b531a,this['_localCacheService']=_0x117346,this[_0x47de46(0x1e2)]());}[_0x57404d(0x1e2)](){const _0x5d3571=_0x57404d;[_0x351072][_0x5d3571(0x216)](_0x4792e2=>this['disposeWithMe'](_0x509b43[_0x5d3571(0x1f9)](this[_0x5d3571(0x2c4)][_0x5d3571(0x250)](_0x4792e2)))),this[_0x5d3571(0x25e)](this[_0x5d3571(0x1c8)][_0x5d3571(0x2db)](_0x5d3571(0x20d),_0x312a28)),this[_0x5d3571(0x2b1)][_0x5d3571(0x257)](_0x3762bf),this[_0x5d3571(0x25e)](this[_0x5d3571(0x2c4)]['onCommandExecuted'](_0x59cb6e=>{const _0x2ce00a=_0x5d3571;if(_0x59cb6e['id']===_0x4226fd[_0x2ce00a(0x1e3)]['id']){this[_0x2ce00a(0x298)]['show']({'content':this[_0x2ce00a(0x1cf)]['t'](_0x2ce00a(0x1ce)),'type':_0x280f43[_0x2ce00a(0x2a2)][_0x2ce00a(0x28a)],'duration':0x1388});const {unitId:_0x2af4fa}=_0x59cb6e['params'],_0x5f418b=this[_0x2ce00a(0x2c1)][_0x2ce00a(0x28d)](_0x2af4fa),_0x2f2331=_0x54ddc1['combineLatest']([_0x5f418b[_0x2ce00a(0x1d2)]['event$'],_0x5f418b[_0x2ce00a(0x274)]])[_0x2ce00a(0x1c4)](async([_0x469357,_0x8a5c4e])=>{const _0x17a06a=_0x2ce00a;var _0x5abac5;_0x469357['eventID']===_0x4226fd[_0x17a06a(0x272)][_0x17a06a(0x218)]&&(_0x8a5c4e==null?void 0x0:_0x8a5c4e[_0x17a06a(0x284)])===_0x22be86[_0x17a06a(0x24d)][_0x17a06a(0x271)]&&_0x469357[_0x17a06a(0x266)][_0x17a06a(0x2af)][_0x17a06a(0x26a)](_0x3e85de=>_0x3e85de['id']===_0x4226fd[_0x17a06a(0x1e3)]['id'])&&(this['_historyManagerService'][_0x17a06a(0x2c7)](),_0x2f2331[_0x17a06a(0x270)](),this[_0x17a06a(0x222)]&&clearTimeout(this[_0x17a06a(0x222)]),await((_0x5abac5=this[_0x17a06a(0x1dd)])==null?void 0x0:_0x5abac5['exhaustSavingTask']()),setTimeout(()=>window[_0x17a06a(0x2da)][_0x17a06a(0x247)]()));});this[_0x2ce00a(0x222)]=setTimeout(()=>{const _0x560ada=_0x2ce00a;_0x2f2331['unsubscribe'](),this[_0x560ada(0x298)][_0x560ada(0x2ac)]({'content':this[_0x560ada(0x1cf)]['t'](_0x560ada(0x2ad)),'type':_0x280f43[_0x560ada(0x2a2)][_0x560ada(0x2d0)],'duration':0xbb8});},0x1388);}}));}};_0x1dd558=_0x43819f([_0x19d9d9(0x0,_0x509b43[_0x57404d(0x203)]),_0x19d9d9(0x1,_0x3c337d[_0x57404d(0x23a)]),_0x19d9d9(0x2,_0x509b43[_0x57404d(0x1f0)](_0x3c337d[_0x57404d(0x1e9)])),_0x19d9d9(0x3,_0x509b43[_0x57404d(0x1f0)](_0x1c80c5[_0x57404d(0x1c9)])),_0x19d9d9(0x4,_0x509b43['Inject'](_0x509b43[_0x57404d(0x22f)])),_0x19d9d9(0x5,_0x3c337d['IMessageService']),_0x19d9d9(0x6,_0x509b43[_0x57404d(0x1f0)](_0x22be86[_0x57404d(0x29c)])),_0x19d9d9(0x7,_0x22be86[_0x57404d(0x22c)])],_0x1dd558);var _0x117ac7=Object[_0x57404d(0x1ba)],_0x1ca722=(_0x5543ab,_0x3d9684,_0x11da98,_0x47a5c0)=>{const _0x2c3d61=_0x57404d;for(var _0x1d3c94=_0x47a5c0>0x1?void 0x0:_0x47a5c0?_0x117ac7(_0x3d9684,_0x11da98):_0x3d9684,_0x41d0b8=_0x5543ab[_0x2c3d61(0x23f)]-0x1,_0x3a33a5;_0x41d0b8>=0x0;_0x41d0b8--)(_0x3a33a5=_0x5543ab[_0x41d0b8])&&(_0x1d3c94=_0x3a33a5(_0x1d3c94)||_0x1d3c94);return _0x1d3c94;},_0x2b0b0a=(_0x168794,_0x55af36)=>(_0x287212,_0x9ebac6)=>_0x55af36(_0x287212,_0x9ebac6,_0x168794);const _0xfb12f6='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';_0x1c80c5[_0x57404d(0x20a)]=(_0x106a9e=class extends _0x509b43[_0x57404d(0x2c8)]{constructor(_0x283252=_0x5b164a,_0x2cb4d4,_0x676c60){const _0x425974=_0x57404d;super(),this[_0x425974(0x232)]=_0x283252,this['_injector']=_0x2cb4d4,this[_0x425974(0x1bd)]=_0x676c60;const {menu:_0x103ecc,..._0x53d173}=_0x509b43[_0x425974(0x2d3)]({},_0x5b164a,this['_config']);_0x103ecc&&this[_0x425974(0x1bd)][_0x425974(0x231)](_0x425974(0x1bc),_0x103ecc,{'merge':!0x0}),this[_0x425974(0x1bd)]['setConfig'](_0x3f5597,_0x53d173),this['_config'][_0x425974(0x221)]&&this[_0x425974(0x1bd)][_0x425974(0x231)](_0x5379c1,this[_0x425974(0x232)]['univerContainerId']);}[_0x57404d(0x2b7)](){const _0x54bc77=_0x57404d;[[_0x1c80c5[_0x54bc77(0x1c9)]],[_0x1dd558]][_0x54bc77(0x216)](_0x2e1ddc=>this['_injector'][_0x54bc77(0x21d)](_0x2e1ddc));}[_0x57404d(0x2b8)](){const _0x99f562=_0x57404d;this[_0x99f562(0x251)][_0x99f562(0x2cf)](_0x1dd558);}},_0x43ffb4(_0x106a9e,_0x57404d(0x27f),_0x509b43[_0x57404d(0x281)]['UNIVER_UNKNOWN']),_0x43ffb4(_0x106a9e,_0x57404d(0x1d6),_0xfb12f6),_0x106a9e),_0x1c80c5[_0x57404d(0x20a)]=_0x1ca722([_0x2b0b0a(0x1,_0x509b43[_0x57404d(0x1f0)](_0x509b43[_0x57404d(0x294)])),_0x2b0b0a(0x2,_0x509b43[_0x57404d(0x1d5)])],_0x1c80c5['UniverEditHistoryLoaderPlugin']),_0x1c80c5[_0x57404d(0x238)]=_0x5379c1,_0x1c80c5[_0x57404d(0x214)]=_0x5b6f6a,Object[_0x57404d(0x1fe)](_0x1c80c5,Symbol[_0x57404d(0x1b8)],{'value':_0x57404d(0x2a9)});}));
1
+ function _0x5dbd(_0x12e4e3,_0x3d203){const _0x5dbc38=_0x5dbc();return _0x5dbd=function(_0x5dbdff,_0x5a9d68){_0x5dbdff=_0x5dbdff-0x1d5;let _0x59f9f7=_0x5dbc38[_0x5dbdff];return _0x59f9f7;},_0x5dbd(_0x12e4e3,_0x3d203);}(function(_0x19c958,_0x2c39e3){const _0x3d42e8=_0x5dbd,_0x43de63=_0x19c958();while(!![]){try{const _0x1773a3=parseInt(_0x3d42e8(0x2ab))/0x1*(-parseInt(_0x3d42e8(0x220))/0x2)+-parseInt(_0x3d42e8(0x2d9))/0x3+-parseInt(_0x3d42e8(0x23c))/0x4*(-parseInt(_0x3d42e8(0x20a))/0x5)+parseInt(_0x3d42e8(0x248))/0x6+parseInt(_0x3d42e8(0x2eb))/0x7*(-parseInt(_0x3d42e8(0x26e))/0x8)+parseInt(_0x3d42e8(0x2b0))/0x9*(-parseInt(_0x3d42e8(0x21f))/0xa)+parseInt(_0x3d42e8(0x2c0))/0xb;if(_0x1773a3===_0x2c39e3)break;else _0x43de63['push'](_0x43de63['shift']());}catch(_0x2371f4){_0x43de63['push'](_0x43de63['shift']());}}}(_0x5dbc,0x22b90),function(_0x45f6e0,_0x45fb81){const _0xdda464=_0x5dbd;typeof exports==_0xdda464(0x2a5)&&typeof module<'u'?_0x45fb81(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),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-ui')):typeof define==_0xdda464(0x2e5)&&define[_0xdda464(0x29e)]?define(['exports','@univerjs/core','@univerjs-pro/collaboration',_0xdda464(0x20f),'@univerjs/design',_0xdda464(0x1e4),_0xdda464(0x2a8),'rxjs','@univerjs/sheets',_0xdda464(0x288),_0xdda464(0x1ea),'@univerjs-pro/sheets-pivot',_0xdda464(0x203),_0xdda464(0x2cb),_0xdda464(0x27c),_0xdda464(0x2e2),_0xdda464(0x1f5),_0xdda464(0x2c2),_0xdda464(0x224),_0xdda464(0x1e6),'@univerjs/engine-render',_0xdda464(0x276),_0xdda464(0x24a),_0xdda464(0x227),_0xdda464(0x229),_0xdda464(0x27d),_0xdda464(0x214),'@univerjs/sheets-drawing',_0xdda464(0x282),'@univerjs/sheets-filter',_0xdda464(0x1e1),_0xdda464(0x22f),'@univerjs/sheets-formula-ui',_0xdda464(0x2b2),_0xdda464(0x222),_0xdda464(0x29c),_0xdda464(0x20d)],_0x45fb81):(_0x45f6e0=typeof globalThis<'u'?globalThis:_0x45f6e0||self,_0x45fb81(_0x45f6e0[_0xdda464(0x1f8)]={},_0x45f6e0[_0xdda464(0x2f2)],_0x45f6e0[_0xdda464(0x2a9)],_0x45f6e0['UniverProCollaborationClient'],_0x45f6e0[_0xdda464(0x1db)],_0x45f6e0[_0xdda464(0x22c)],_0x45f6e0[_0xdda464(0x238)],_0x45f6e0[_0xdda464(0x22d)],_0x45f6e0['UniverSheets'],_0x45f6e0[_0xdda464(0x2b9)],_0x45f6e0[_0xdda464(0x1e8)],_0x45f6e0[_0xdda464(0x20b)],_0x45f6e0[_0xdda464(0x269)],_0x45f6e0[_0xdda464(0x272)],_0x45f6e0[_0xdda464(0x26b)],_0x45f6e0[_0xdda464(0x2be)],_0x45f6e0[_0xdda464(0x257)],_0x45f6e0[_0xdda464(0x2e7)],_0x45f6e0[_0xdda464(0x200)],_0x45f6e0[_0xdda464(0x28a)],_0x45f6e0['UniverEngineRender'],_0x45f6e0[_0xdda464(0x2f3)],_0x45f6e0[_0xdda464(0x2b7)],_0x45f6e0['UniverSheetsConditionalFormatting'],_0x45f6e0['UniverSheetsConditionalFormattingUi'],_0x45f6e0[_0xdda464(0x26d)],_0x45f6e0[_0xdda464(0x254)],_0x45f6e0[_0xdda464(0x2dd)],_0x45f6e0[_0xdda464(0x1f7)],_0x45f6e0['UniverSheetsFilter'],_0x45f6e0['UniverSheetsFilterUi'],_0x45f6e0[_0xdda464(0x2b3)],_0x45f6e0[_0xdda464(0x23d)],_0x45f6e0['UniverSheetsHyperLink'],_0x45f6e0[_0xdda464(0x27a)],_0x45f6e0[_0xdda464(0x22a)],_0x45f6e0['UniverSheetsUi']));}(this,function(_0x185b18,_0x545628,_0xf58ff7,_0xad28ea,_0x2c69be,_0x4c1d6a,_0x3c33f1,_0x12a5d0,_0x151829,_0x5c7387,_0x1b7257,_0x4d3f54,_0xcc7f1d,_0x3fda51,_0x31d9fe,_0x4815aa,_0x3a471d,_0x2c8678,_0x54ef0d,_0x48eae1,_0x107fff,_0xae83fd,_0x4de676,_0x15c543,_0x1eab72,_0x353706,_0x392b8a,_0x5427f1,_0x128c08,_0x2aabac,_0x37900d,_0x317bca,_0x437128,_0x14afb3,_0x1bdc4e,_0x3fb40c,_0x3acac3){'use strict';const _0x292466=_0x5dbd;var _0x1d826f=Object[_0x292466(0x281)],_0x57d9dc=(_0xaf9f1a,_0x8f1832,_0x5dc1ba)=>_0x8f1832 in _0xaf9f1a?_0x1d826f(_0xaf9f1a,_0x8f1832,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc1ba}):_0xaf9f1a[_0x8f1832]=_0x5dc1ba,_0x5c1cba=(_0x31c3df,_0x3c8766,_0x27f11f)=>_0x57d9dc(_0x31c3df,typeof _0x3c8766!=_0x292466(0x2e6)?_0x3c8766+'':_0x3c8766,_0x27f11f),_0xd15bae;const _0x920fa3=_0x292466(0x29a),_0x28c03e={};function _0x2d4d4a({ref:_0x140688,..._0x33927f}){const _0x597edb=_0x292466,{icon:_0x8abe1e,id:_0x3efb01,className:_0x25dca1,extend:_0x591e5b,..._0x4dde40}=_0x33927f,_0x34e838=(_0x597edb(0x2d1)+_0x3efb01+'\x20'+(_0x25dca1||''))[_0x597edb(0x246)](),_0x151bb8=_0x4c1d6a[_0x597edb(0x1e7)]('_'+_0x4c874f());return _0x5206e5(_0x8abe1e,''+_0x3efb01,{'defIds':_0x8abe1e[_0x597edb(0x1e5)],'idSuffix':_0x151bb8['current']},{'ref':_0x140688,'className':_0x34e838,..._0x4dde40},_0x591e5b);}function _0x5206e5(_0x10d88b,_0x39bf5a,_0x4f1296,_0xd31e8,_0x55afeb){const _0x2486a1=_0x292466;return _0x4c1d6a[_0x2486a1(0x287)](_0x10d88b[_0x2486a1(0x2ec)],{'key':_0x39bf5a,..._0x3f6fe2(_0x10d88b,_0x4f1296,_0x55afeb),..._0xd31e8},(_0x979e30(_0x10d88b,_0x4f1296)[_0x2486a1(0x225)]||[])['map']((_0x59f660,_0x5a4164)=>_0x5206e5(_0x59f660,_0x39bf5a+'-'+_0x10d88b[_0x2486a1(0x2ec)]+'-'+_0x5a4164,_0x4f1296,void 0x0,_0x55afeb)));}function _0x3f6fe2(_0x3e4731,_0x30e0f6,_0x1c03d2){const _0x15ff4a=_0x292466,_0x391e70={..._0x3e4731[_0x15ff4a(0x293)]};_0x1c03d2!=null&&_0x1c03d2[_0x15ff4a(0x23f)]&&_0x391e70[_0x15ff4a(0x24f)]===_0x15ff4a(0x23f)&&(_0x391e70[_0x15ff4a(0x24f)]=_0x1c03d2['colorChannel1']),_0x3e4731[_0x15ff4a(0x2ec)]===_0x15ff4a(0x2ee)&&_0x391e70['id']&&(_0x391e70['id']=_0x391e70['id']+_0x30e0f6['idSuffix']),Object[_0x15ff4a(0x1e9)](_0x391e70)[_0x15ff4a(0x24c)](([_0x5604e2,_0x1c6fb4])=>{const _0x41ce75=_0x15ff4a;_0x5604e2===_0x41ce75(0x2ee)&&typeof _0x1c6fb4==_0x41ce75(0x294)&&(_0x391e70[_0x5604e2]=_0x1c6fb4['replace'](/url\(#(.*)\)/,_0x41ce75(0x2dc)+_0x30e0f6['idSuffix']+')'));});const {defIds:_0x108d83}=_0x30e0f6;return!_0x108d83||_0x108d83[_0x15ff4a(0x27f)]===0x0||(_0x3e4731[_0x15ff4a(0x2ec)]==='use'&&_0x391e70['xlink:href']&&(_0x391e70[_0x15ff4a(0x1d8)]=_0x391e70[_0x15ff4a(0x1d8)]+_0x30e0f6[_0x15ff4a(0x1e0)]),Object[_0x15ff4a(0x1e9)](_0x391e70)[_0x15ff4a(0x24c)](([_0x467275,_0x5924b6])=>{const _0x396957=_0x15ff4a;typeof _0x5924b6==_0x396957(0x294)&&(_0x391e70[_0x467275]=_0x5924b6[_0x396957(0x216)](/url\(#(.*)\)/,'url(#$1'+_0x30e0f6['idSuffix']+')'));})),_0x391e70;}function _0x979e30(_0x1dd1ac,_0x4b293e){const _0x39ad2e=_0x292466;var _0x269cd8;const {defIds:_0x2ca0eb}=_0x4b293e;return!_0x2ca0eb||_0x2ca0eb[_0x39ad2e(0x27f)]===0x0?_0x1dd1ac:_0x1dd1ac[_0x39ad2e(0x2ec)]===_0x39ad2e(0x275)&&((_0x269cd8=_0x1dd1ac['children'])!=null&&_0x269cd8[_0x39ad2e(0x27f)])?{..._0x1dd1ac,'children':_0x1dd1ac[_0x39ad2e(0x225)][_0x39ad2e(0x1f4)](_0x265ba1=>typeof _0x265ba1[_0x39ad2e(0x293)]['id']==_0x39ad2e(0x294)&&_0x2ca0eb&&_0x2ca0eb['includes'](_0x265ba1['attrs']['id'])?{..._0x265ba1,'attrs':{..._0x265ba1[_0x39ad2e(0x293)],'id':_0x265ba1[_0x39ad2e(0x293)]['id']+_0x4b293e[_0x39ad2e(0x1e0)]}}:_0x265ba1)}:_0x1dd1ac;}function _0x4c874f(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2d4d4a['displayName']=_0x292466(0x27b);const _0x5c189a={'tag':_0x292466(0x26f),'attrs':{'xmlns':_0x292466(0x2df),'fill':_0x292466(0x207),'viewBox':'0\x200\x2016\x2016','width':_0x292466(0x21d),'height':_0x292466(0x21d)},'children':[{'tag':'g','attrs':{'fill':_0x292466(0x29d),'clipPath':_0x292466(0x2a6)},'children':[{'tag':_0x292466(0x28e),'attrs':{'d':_0x292466(0x209)}},{'tag':_0x292466(0x28e),'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':_0x292466(0x275),'attrs':{},'children':[{'tag':_0x292466(0x213),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x292466(0x28e),'attrs':{'fill':_0x292466(0x2e9),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x1e285d=_0x4c1d6a[_0x292466(0x1d7)](function(_0x50862e,_0x26b80d){const _0x56e697=_0x292466;return _0x4c1d6a[_0x56e697(0x287)](_0x2d4d4a,Object[_0x56e697(0x26c)]({},_0x50862e,{'id':_0x56e697(0x1dd),'ref':_0x26b80d,'icon':_0x5c189a}));});_0x1e285d['displayName']='HistoryIcon';var _0x2c7f9b=Object[_0x292466(0x1d6)],_0x169c6c=(_0x1e23cb,_0x33fefa,_0x244c0c,_0x20d02d)=>{const _0x1c4431=_0x292466;for(var _0x36c1f5=_0x20d02d>0x1?void 0x0:_0x20d02d?_0x2c7f9b(_0x33fefa,_0x244c0c):_0x33fefa,_0x22a900=_0x1e23cb[_0x1c4431(0x27f)]-0x1,_0x4a6904;_0x22a900>=0x0;_0x22a900--)(_0x4a6904=_0x1e23cb[_0x22a900])&&(_0x36c1f5=_0x4a6904(_0x36c1f5)||_0x36c1f5);return _0x36c1f5;},_0x57b524=(_0x10ff69,_0x34f31f)=>(_0x62eef8,_0x1df140)=>_0x34f31f(_0x62eef8,_0x1df140,_0x10ff69);const _0x479216=_0x292466(0x2da),_0x37f6f0=_0x292466(0x1eb),_0x50ce4e=_0x292466(0x2bd);_0x185b18[_0x292466(0x265)]=class extends _0x545628[_0x292466(0x1ef)]{constructor(_0x56f5ce,_0x5c2d01,_0x3a929a,_0x272065,_0x5ee46f,_0x577701,_0xec9ee6,_0xc16672,_0x8fdc19,_0x391a11){const _0x66fe3a=_0x292466;super(),_0x5c1cba(this,_0x66fe3a(0x27e),new _0x12a5d0[(_0x66fe3a(0x24b))](null)),_0x5c1cba(this,_0x66fe3a(0x1f6),this[_0x66fe3a(0x27e)][_0x66fe3a(0x2f0)]()),_0x5c1cba(this,_0x66fe3a(0x259),new _0x545628[(_0x66fe3a(0x201))]()),_0x5c1cba(this,_0x66fe3a(0x2d4),new Map()),(this[_0x66fe3a(0x2ac)]=_0x56f5ce,this[_0x66fe3a(0x1ed)]=_0x5c2d01,this[_0x66fe3a(0x267)]=_0x3a929a,this['_commandService']=_0x272065,this[_0x66fe3a(0x21c)]=_0x5ee46f,this['_permissionService']=_0x577701,this[_0x66fe3a(0x296)]=_0xec9ee6,this[_0x66fe3a(0x256)]=_0xc16672,this['_sidebarService']=_0x8fdc19,this[_0x66fe3a(0x268)]=_0x391a11,this[_0x66fe3a(0x284)]());}get['historyUniver'](){const _0x2d2c8f=_0x292466;return this[_0x2d2c8f(0x27e)][_0x2d2c8f(0x247)];}[_0x292466(0x284)](){const _0x1c6697=_0x292466;this['_initContainer'](),this[_0x1c6697(0x289)]();}[_0x292466(0x237)](){const _0x24e97f=_0x292466;var _0xe127aa;const _0x1b7493=(_0xe127aa=this[_0x24e97f(0x267)]['getConfig'](_0x37f6f0))!=null?_0xe127aa:_0x479216,_0x2721e6=document['getElementById'](_0x1b7493);if(!_0x2721e6)return;const _0x5bc9a7=document[_0x24e97f(0x287)]('div');_0x5bc9a7['id']=_0x50ce4e,_0x5bc9a7[_0x24e97f(0x245)][_0x24e97f(0x299)]=_0x24e97f(0x2b4),_0x5bc9a7[_0x24e97f(0x26a)][_0x24e97f(0x290)]=_0x24e97f(0x251),_0x5bc9a7[_0x24e97f(0x26a)][_0x24e97f(0x270)]='0',_0x5bc9a7['style']['left']='0',_0x5bc9a7['style'][_0x24e97f(0x28d)]=_0x24e97f(0x1f3),_0x5bc9a7[_0x24e97f(0x26a)][_0x24e97f(0x25c)]='100%',_0x5bc9a7[_0x24e97f(0x26a)][_0x24e97f(0x252)]=_0x24e97f(0x217),_0x5bc9a7[_0x24e97f(0x26a)]['display']=_0x24e97f(0x207),_0x2721e6[_0x24e97f(0x298)](_0x5bc9a7);}[_0x292466(0x289)](){const _0x58b442=_0x292466;var _0x178b26,_0x3cd7c1;[[_0x107fff['UniverRenderEnginePlugin']],[_0x3c33f1['UniverUIPlugin'],{'container':_0x50ce4e,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3c33f1[_0x58b442(0x260)],null]]}],[_0xae83fd[_0x58b442(0x2de)]],[_0x2c8678[_0x58b442(0x2c1)],{'override':[[_0x2c8678[_0x58b442(0x235)],null]]}],[_0x4815aa[_0x58b442(0x21a)],{'hasScroll':!0x1}],[_0x3a471d[_0x58b442(0x2d6)]],[_0x3fb40c[_0x58b442(0x211)]],[_0x151829[_0x58b442(0x1fa)],{'notExecuteFormula':!0x0}],[_0x3acac3['UniverSheetsUIPlugin']],[_0x317bca[_0x58b442(0x2d8)]],[_0x437128[_0x58b442(0x24d)]],[_0xf58ff7[_0x58b442(0x264)]],[_0x2aabac['UniverSheetsFilterPlugin']],[_0x37900d[_0x58b442(0x1d9)]],[_0x15c543[_0x58b442(0x2cc)]],[_0x1eab72[_0x58b442(0x273)]],[_0x14afb3['UniverSheetsHyperLinkPlugin']],[_0x1bdc4e[_0x58b442(0x25d)]],[_0x31d9fe[_0x58b442(0x2c4)]],[_0x353706[_0x58b442(0x244)]],[_0x392b8a[_0x58b442(0x292)]],[_0x48eae1[_0x58b442(0x233)],{'notExecuteFormula':!0x0}],[_0x4de676[_0x58b442(0x2c7)],{'workerURL':'./worker.js'}],[_0x54ef0d['UniverDrawingUIPlugin']],[_0x5427f1[_0x58b442(0x277)]],[_0x128c08['UniverSheetsDrawingUIPlugin']],[_0xcc7f1d[_0x58b442(0x286)]],[_0x3fda51[_0x58b442(0x258)]],[_0x4d3f54[_0x58b442(0x279)],{'notExecuteFormula':!0x0}],[_0x5c7387['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x178b26=this[_0x58b442(0x267)][_0x58b442(0x2ea)](_0x920fa3))==null?void 0x0:_0x178b26[_0x58b442(0x242)],'historyPanelComponentKey':(_0x3cd7c1=this[_0x58b442(0x267)][_0x58b442(0x2ea)](_0x920fa3))==null?void 0x0:_0x3cd7c1[_0x58b442(0x285)]}]]['forEach'](([_0x403a3a,_0x3fbaa1])=>this[_0x58b442(0x2ba)](_0x403a3a,_0x3fbaa1));}[_0x292466(0x2ae)](){const _0x291293=_0x292466;super[_0x291293(0x2ae)](),this['unMountHistoryContent'](),this[_0x291293(0x2d4)][_0x291293(0x215)]();}[_0x292466(0x2ba)](_0x113527,_0x2f55ea,_0xecee84){const _0x53b292=_0x292466;if(this[_0x53b292(0x2d4)]['has'](_0x113527['pluginName'])&&!_0xecee84)throw new Error(_0x53b292(0x221)+_0x113527['pluginName']+_0x53b292(0x2aa));this[_0x53b292(0x2d4)][_0x53b292(0x29b)](_0x113527[_0x53b292(0x2bb)],[_0x113527,_0x2f55ea]);}[_0x292466(0x234)](){const _0x38600a=_0x292466;return Array[_0x38600a(0x25e)](this[_0x38600a(0x2d4)][_0x38600a(0x232)]());}[_0x292466(0x266)](_0xffb64d){const _0xff185a=_0x292466,_0x4b1f6f=document[_0xff185a(0x249)](_0x50ce4e);_0x4b1f6f&&(_0x4b1f6f[_0xff185a(0x26a)]['display']=_0xff185a(0x210),this[_0xff185a(0x2c9)](_0xffb64d,_0x50ce4e));}['unMountHistoryContent'](){const _0x512008=_0x292466;var _0x594864;this['_disposableCollection'][_0x512008(0x2ae)](),(_0x594864=this[_0x512008(0x2c3)])==null||_0x594864[_0x512008(0x2ae)](),this[_0x512008(0x27e)]['next'](null);const _0x5e7aad=document['getElementById'](_0x50ce4e);_0x5e7aad&&(_0x5e7aad['style']['display']='none');}[_0x292466(0x2c9)](_0xb193b4,_0x3b9638){const _0x1a96eb=_0x292466;if(this[_0x1a96eb(0x2c3)])return;const _0x282510=new _0x545628[(_0x1a96eb(0x218))]({'locales':{[this[_0x1a96eb(0x2ac)]['getCurrentLocale']()]:this[_0x1a96eb(0x2ac)][_0x1a96eb(0x1fc)]()},'override':[[_0x545628[_0x1a96eb(0x28b)],{'useClass':_0xad28ea['AuthzIoHttpService']}]]}),_0x250b69=_0x282510[_0x1a96eb(0x2a1)]();this['disposeWithMe'](this['_themeService'][_0x1a96eb(0x205)]['subscribe'](_0x26f7e1=>{const _0xd03272=_0x1a96eb;_0x250b69[_0xd03272(0x263)](_0x545628[_0xd03272(0x23a)])[_0xd03272(0x2d7)](_0x26f7e1);})),this['disposeWithMe'](this[_0x1a96eb(0x268)][_0x1a96eb(0x271)][_0x1a96eb(0x1ec)](_0x132480=>{const _0x2f363a=_0x1a96eb;_0x250b69[_0x2f363a(0x263)](_0x545628[_0x2f363a(0x23a)])[_0x2f363a(0x2ce)](_0x132480);})),_0x250b69[_0x1a96eb(0x263)](_0x545628[_0x1a96eb(0x2d5)])[_0x1a96eb(0x243)](this[_0x1a96eb(0x2ac)]['getCurrentLocale']()),_0x250b69[_0x1a96eb(0x263)](_0x545628[_0x1a96eb(0x24e)])[_0x1a96eb(0x2bc)](_0xad28ea['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x1a96eb(0x267)][_0x1a96eb(0x2ea)](_0xad28ea[_0x1a96eb(0x2c5)]));const _0x255ec2=this[_0x1a96eb(0x267)][_0x1a96eb(0x2ea)](_0x1b7257['LS_CONFIG_KEY']);_0x255ec2&&_0x282510[_0x1a96eb(0x2ba)](_0x1b7257[_0x1a96eb(0x239)],{'license':_0x255ec2['ls']}),this[_0x1a96eb(0x2d4)][_0x1a96eb(0x24c)](([_0x5a0712,_0x2c2367])=>{const _0x59988f=_0x1a96eb;_0x282510[_0x59988f(0x2ba)](_0x5a0712,_0x2c2367);}),_0x250b69['invoke'](_0x51349d=>{const _0x401043=_0x1a96eb;this[_0x401043(0x2a3)](_0x51349d,_0xb193b4);}),this[_0x1a96eb(0x27e)][_0x1a96eb(0x2d2)](_0x282510);const _0x149f6f=_0x250b69[_0x1a96eb(0x263)](_0x5c7387[_0x1a96eb(0x2cf)]),_0x386dab=this[_0x1a96eb(0x2ad)](_0xb193b4);_0x149f6f[_0x1a96eb(0x240)](_0xb193b4,_0x3b9638,_0x386dab);}[_0x292466(0x2a3)](_0x2ba90e,_0x20970f){const _0x3b676d=_0x292466,_0x462dbb=_0x2ba90e[_0x3b676d(0x263)](_0x5c7387[_0x3b676d(0x2cf)]);this[_0x3b676d(0x259)][_0x3b676d(0x1fb)](_0x462dbb[_0x3b676d(0x1dc)][_0x3b676d(0x1ec)](_0x18a987=>{const _0x4c4c54=_0x3b676d;switch(_0x18a987){case _0x5c7387['HistoryModeStatus']['Entered']:this[_0x4c4c54(0x256)]['closeAll'](),this['_sidebarService'][_0x4c4c54(0x2b1)]();break;case _0x5c7387['HistoryModeStatus']['Exited']:this[_0x4c4c54(0x236)]();break;case _0x5c7387[_0x4c4c54(0x28f)][_0x4c4c54(0x223)]:this[_0x4c4c54(0x236)](),this['_messageService']['show']({'content':this['_localeService']['t'](_0x4c4c54(0x20c)),'type':_0x2c69be['MessageType'][_0x4c4c54(0x223)],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x462dbb[_0x3b676d(0x1fd)][_0x3b676d(0x1ec)](async _0xe0e0c0=>{const _0x4649c2=_0x3b676d;_0xe0e0c0&&this[_0x4649c2(0x25b)][_0x4649c2(0x206)](_0xf58ff7[_0x4649c2(0x2b8)]['id'],{'unitId':_0x20970f,'revision':_0xe0e0c0});}));}[_0x292466(0x2ad)](_0x1a5d48){const _0x23980b=_0x292466,_0x15d1bd=this[_0x23980b(0x1ed)][_0x23980b(0x2f1)](_0x1a5d48)[_0x23980b(0x2a7)]()['map'](_0x3d29fe=>_0x3d29fe['getSheetId']()),_0x580604=new _0x151829['WorkbookEditablePermission'](_0x1a5d48)['id'],_0x478c73=_0x15d1bd[_0x23980b(0x1f4)](_0x3dbec3=>new _0x151829['WorksheetEditPermission'](_0x1a5d48,_0x3dbec3)['id']),_0x5386da=_0x15d1bd[_0x23980b(0x1f4)](_0x8ef186=>this[_0x23980b(0x296)]['getSubunitRuleList'](_0x1a5d48,_0x8ef186)[_0x23980b(0x1f4)](_0x26f8b9=>new _0x151829[(_0x23980b(0x25a))](_0x1a5d48,_0x8ef186,_0x26f8b9[_0x23980b(0x2a0)])['id']))[_0x23980b(0x2d0)](),_0x12cc82=new _0x151829[(_0x23980b(0x23b))](_0x1a5d48)['id'];return this[_0x23980b(0x262)][_0x23980b(0x2a4)]([_0x580604,..._0x478c73,..._0x5386da,_0x12cc82])[_0x23980b(0x2c6)](_0x2c848d=>!!_0x2c848d[_0x23980b(0x247)]);}},_0x185b18[_0x292466(0x265)]=_0x169c6c([_0x57b524(0x0,_0x545628[_0x292466(0x2bf)](_0x545628[_0x292466(0x2d5)])),_0x57b524(0x1,_0x545628[_0x292466(0x22e)]),_0x57b524(0x2,_0x545628['IConfigService']),_0x57b524(0x3,_0x545628[_0x292466(0x219)]),_0x57b524(0x4,_0x3c33f1['IMessageService']),_0x57b524(0x5,_0x545628['IPermissionService']),_0x57b524(0x6,_0x545628[_0x292466(0x2bf)](_0x151829[_0x292466(0x274)])),_0x57b524(0x7,_0x545628['Inject'](_0x3c33f1[_0x292466(0x260)])),_0x57b524(0x8,_0x545628[_0x292466(0x2bf)](_0x3c33f1['ISidebarService'])),_0x57b524(0x9,_0x545628['Inject'](_0x545628[_0x292466(0x23a)]))],_0x185b18[_0x292466(0x265)]);const _0x2b867d={'id':_0x292466(0x29f),'type':_0x545628[_0x292466(0x1ee)][_0x292466(0x278)],'handler':_0xedffaf=>{const _0x3de11a=_0x292466,_0x1cb66d=_0xedffaf['get'](_0x185b18[_0x3de11a(0x265)]),_0x246888=_0xedffaf[_0x3de11a(0x263)](_0x545628[_0x3de11a(0x22e)]),{unitId:_0x4b046e}=_0x151829[_0x3de11a(0x1e2)](_0x246888)||{};return _0x4b046e?(_0x1cb66d[_0x3de11a(0x266)](_0x4b046e),!0x0):!0x1;}};function _0x22ea97(_0x126897){const _0x591d4b=_0x292466;return{'id':_0x2b867d['id'],'type':_0x3c33f1[_0x591d4b(0x2af)][_0x591d4b(0x25f)],'icon':_0x591d4b(0x261),'tooltip':_0x591d4b(0x291),'hidden$':_0x3c33f1[_0x591d4b(0x226)](_0x126897,_0x545628[_0x591d4b(0x204)][_0x591d4b(0x2c8)]),'disabled$':_0x3acac3['getCurrentRangeDisable$'](_0x126897,{'workbookTypes':[_0x151829['WorkbookEditablePermission'],_0x151829[_0x591d4b(0x228)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x5594a5={[_0x3c33f1[_0x292466(0x241)]['OTHERS']]:{[_0x2b867d['id']]:{'order':0.2,'menuItemFactory':_0x22ea97}}};var _0x1eaada=Object[_0x292466(0x1d6)],_0x207f40=(_0x4c3b00,_0x414ccc,_0x3c7546,_0x1f253c)=>{for(var _0x2572ea=_0x1f253c>0x1?void 0x0:_0x1f253c?_0x1eaada(_0x414ccc,_0x3c7546):_0x414ccc,_0x39a6b7=_0x4c3b00['length']-0x1,_0x16f5af;_0x39a6b7>=0x0;_0x39a6b7--)(_0x16f5af=_0x4c3b00[_0x39a6b7])&&(_0x2572ea=_0x16f5af(_0x2572ea)||_0x2572ea);return _0x2572ea;},_0x2e1f7e=(_0x26c3d3,_0x176812)=>(_0x250807,_0x68fc19)=>_0x176812(_0x250807,_0x68fc19,_0x26c3d3);let _0x17a22d=class extends _0x545628['RxDisposable']{constructor(_0x113637,_0x40fe77,_0x34ea05,_0x1d6357,_0x4d2a73,_0x5a9a61,_0x198f36,_0x1886dc){const _0x51baca=_0x292466;super(),_0x5c1cba(this,'_revertErrorTimer',null),(this[_0x51baca(0x25b)]=_0x113637,this['_menuManagerService']=_0x40fe77,this['_componentManager']=_0x34ea05,this[_0x51baca(0x255)]=_0x1d6357,this['_localeService']=_0x4d2a73,this[_0x51baca(0x21c)]=_0x5a9a61,this['_collaborationController']=_0x198f36,this[_0x51baca(0x21e)]=_0x1886dc,this[_0x51baca(0x284)]());}['_init'](){const _0x22b1f1=_0x292466;[_0x2b867d][_0x22b1f1(0x24c)](_0x4b63f4=>this['disposeWithMe'](_0x545628['toDisposable'](this[_0x22b1f1(0x25b)]['registerCommand'](_0x4b63f4)))),this['disposeWithMe'](this[_0x22b1f1(0x1de)][_0x22b1f1(0x2b6)]('HistoryIcon',_0x1e285d)),this['_menuManagerService'][_0x22b1f1(0x212)](_0x5594a5),this[_0x22b1f1(0x1f0)](this['_commandService']['onCommandExecuted'](_0x2310b3=>{const _0x160270=_0x22b1f1;if(_0x2310b3['id']===_0xf58ff7[_0x160270(0x2b8)]['id']){this[_0x160270(0x21c)][_0x160270(0x231)]({'content':this[_0x160270(0x2ac)]['t'](_0x160270(0x295)),'type':_0x2c69be[_0x160270(0x1da)]['Loading'],'duration':0x1388});const {unitId:_0x556520}=_0x2310b3[_0x160270(0x1df)],_0xd2270e=this['_collaborationController'][_0x160270(0x2d3)](_0x556520),_0x43ca58=_0x12a5d0[_0x160270(0x2db)]([_0xd2270e[_0x160270(0x208)][_0x160270(0x2ca)],_0xd2270e[_0x160270(0x2e0)]])['subscribe'](async([_0x16bd46,_0x45d532])=>{const _0x39e3d2=_0x160270;var _0x18e0bd;_0x16bd46[_0x39e3d2(0x1ff)]===_0xf58ff7['CollaborationEvent'][_0x39e3d2(0x2b5)]&&(_0x45d532==null?void 0x0:_0x45d532['status'])===_0xad28ea[_0x39e3d2(0x2e4)][_0x39e3d2(0x1e3)]&&_0x16bd46[_0x39e3d2(0x283)][_0x39e3d2(0x297)][_0x39e3d2(0x202)](_0x1c9461=>_0x1c9461['id']===_0xf58ff7[_0x39e3d2(0x2b8)]['id'])&&(this[_0x39e3d2(0x255)][_0x39e3d2(0x236)](),_0x43ca58[_0x39e3d2(0x280)](),this[_0x39e3d2(0x21b)]&&clearTimeout(this[_0x39e3d2(0x21b)]),await((_0x18e0bd=this[_0x39e3d2(0x21e)])==null?void 0x0:_0x18e0bd['exhaustSavingTask']()),setTimeout(()=>window[_0x39e3d2(0x2ef)]['reload']()));});this[_0x160270(0x21b)]=setTimeout(()=>{const _0x5554d3=_0x160270;_0x43ca58['unsubscribe'](),this['_messageService'][_0x5554d3(0x231)]({'content':this[_0x5554d3(0x2ac)]['t']('editHistory.panel.revertFailed'),'type':_0x2c69be[_0x5554d3(0x1da)][_0x5554d3(0x223)],'duration':0xbb8});},0x1388);}}));}};_0x17a22d=_0x207f40([_0x2e1f7e(0x0,_0x545628[_0x292466(0x219)]),_0x2e1f7e(0x1,_0x3c33f1[_0x292466(0x2cd)]),_0x2e1f7e(0x2,_0x545628['Inject'](_0x3c33f1[_0x292466(0x1fe)])),_0x2e1f7e(0x3,_0x545628[_0x292466(0x2bf)](_0x185b18[_0x292466(0x265)])),_0x2e1f7e(0x4,_0x545628['Inject'](_0x545628[_0x292466(0x2d5)])),_0x2e1f7e(0x5,_0x3c33f1['IMessageService']),_0x2e1f7e(0x6,_0x545628[_0x292466(0x2bf)](_0xad28ea['CollaborationController'])),_0x2e1f7e(0x7,_0xad28ea[_0x292466(0x253)])],_0x17a22d);var _0x17d649=Object['getOwnPropertyDescriptor'],_0x38e344=(_0x376994,_0x1c1ca0,_0x2c6561,_0x24c69d)=>{const _0x239ceb=_0x292466;for(var _0x364771=_0x24c69d>0x1?void 0x0:_0x24c69d?_0x17d649(_0x1c1ca0,_0x2c6561):_0x1c1ca0,_0x3ee2f6=_0x376994[_0x239ceb(0x27f)]-0x1,_0x2e7dfb;_0x3ee2f6>=0x0;_0x3ee2f6--)(_0x2e7dfb=_0x376994[_0x3ee2f6])&&(_0x364771=_0x2e7dfb(_0x364771)||_0x364771);return _0x364771;},_0x2fbbdb=(_0x44ab22,_0x4ee942)=>(_0x683270,_0x99507d)=>_0x4ee942(_0x683270,_0x99507d,_0x44ab22);const _0x200d91=_0x292466(0x28c);_0x185b18[_0x292466(0x23e)]=(_0xd15bae=class extends _0x545628[_0x292466(0x1f1)]{constructor(_0x27bc4c=_0x28c03e,_0x1ad5c2,_0x3a5692){const _0x4a9896=_0x292466;super(),this[_0x4a9896(0x2e3)]=_0x27bc4c,this[_0x4a9896(0x2ed)]=_0x1ad5c2,this[_0x4a9896(0x267)]=_0x3a5692;const {menu:_0x30ee04,..._0x5329b0}=_0x545628['merge']({},_0x28c03e,this[_0x4a9896(0x2e3)]);_0x30ee04&&this[_0x4a9896(0x267)][_0x4a9896(0x2bc)](_0x4a9896(0x230),_0x30ee04,{'merge':!0x0}),this[_0x4a9896(0x267)][_0x4a9896(0x2bc)](_0x920fa3,_0x5329b0),this['_config']['univerContainerId']&&this[_0x4a9896(0x267)][_0x4a9896(0x2bc)](_0x37f6f0,this['_config'][_0x4a9896(0x2e8)]);}[_0x292466(0x1f9)](){const _0x4c5c49=_0x292466;[[_0x185b18[_0x4c5c49(0x265)]],[_0x17a22d]][_0x4c5c49(0x24c)](_0x2d6317=>this['_injector'][_0x4c5c49(0x1fb)](_0x2d6317));}[_0x292466(0x1d5)](){const _0x1c383f=_0x292466;this[_0x1c383f(0x2ed)]['get'](_0x17a22d);}},_0x5c1cba(_0xd15bae,_0x292466(0x2e1),_0x545628[_0x292466(0x204)]['UNIVER_UNKNOWN']),_0x5c1cba(_0xd15bae,_0x292466(0x2bb),_0x200d91),_0xd15bae),_0x185b18[_0x292466(0x23e)]=_0x38e344([_0x2fbbdb(0x1,_0x545628[_0x292466(0x2bf)](_0x545628[_0x292466(0x250)])),_0x2fbbdb(0x2,_0x545628[_0x292466(0x24e)])],_0x185b18[_0x292466(0x23e)]),_0x185b18[_0x292466(0x20e)]=_0x37f6f0,_0x185b18[_0x292466(0x1f2)]=_0x50ce4e,Object['defineProperty'](_0x185b18,Symbol[_0x292466(0x22b)],{'value':_0x292466(0x2a2)});}));function _0x5dbc(){const _0x19c895=['dispose','MenuItemType','536193odXyGW','close','@univerjs/sheets-hyper-link','UniverSheetsFormula','history-container','CHANGESET_ACK','register','UniverRpc','RevertRevisionMutation','UniverProEditHistoryViewer','registerPlugin','pluginName','setConfig','univer-history-container','UniverDocs','Inject','3387164buUOVw','UniverDrawingPlugin','@univerjs/drawing','historyUniver','UniverDataValidationPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','every','UniverRPCMainThreadPlugin','UNIVER_SHEET','_initUniver','event$','@univerjs-pro/sheets-sparkline-ui','UniverSheetsConditionalFormattingPlugin','IMenuManagerService','setTheme','HistoryManagerService','flat','univerjs-icon\x20univerjs-icon-','next','getCollabEntity','_pluginMap','LocaleService','UniverDocsUIPlugin','setDarkMode','UniverSheetsFormulaPlugin','711264zJtzmJ','univer-container','combineLatest','url(#$1','UniverSheetsDrawing','UniverNetworkPlugin','http://www.w3.org/2000/svg','state$','type','@univerjs/docs','_config','CollaborationStatus','function','symbol','UniverDrawing','univerContainerId','white','getConfig','119mqUBeT','tag','_injector','mask','location','asObservable','getUnit','UniverCore','UniverNetwork','onSteady','getOwnPropertyDescriptor','forwardRef','xlink:href','UniverSheetsFilterUIPlugin','MessageType','UniverDesign','status$','history-icon','_componentManager','params','idSuffix','@univerjs/sheets-filter-ui','getSheetCommandTarget','SYNCED','react','defIds','@univerjs/engine-formula','useRef','UniverProLicense','entries','@univerjs-pro/license','UNIVER_CONTAINER_ID','subscribe','_univerInstanceService','CommandType','Disposable','disposeWithMe','Plugin','UNIVER_HISTORY_CONTAINER_ID','100%','map','@univerjs/docs-ui','historyUniver$','UniverSheetsDrawingUi','UniverProEditHistoryLoader','onStarting','UniverSheetsPlugin','add','getLocales','revertRevision$','ComponentManager','eventID','UniverDrawingUi','DisposableCollection','some','@univerjs-pro/sheets-sparkline','UniverInstanceType','darkMode$','executeCommand','none','session','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','137905lhsbXP','UniverProSheetsPivot','editHistory.panel.listFetchError','@univerjs/sheets-ui','UNIVER_CONTAINER_ID_KEY','@univerjs-pro/collaboration-client','block','UniverSheetsNumfmtPlugin','mergeMenu','clipPath','@univerjs/sheets-data-validation-ui','clear','replace','1000','Univer','ICommandService','UniverDocsPlugin','_revertErrorTimer','_messageService','1em','_localCacheService','10Prytud','4ZTETlG','[HistoryLoaderService]:\x20Plugin\x20','@univerjs/sheets-hyper-link-ui','Error','@univerjs/drawing-ui','children','getMenuHiddenObservable','@univerjs/sheets-conditional-formatting','WorkbookViewHistoryPermission','@univerjs/sheets-conditional-formatting-ui','UniverSheetsNumfmt','toStringTag','React','rxjs','IUniverInstanceService','@univerjs/sheets-formula','menu','show','values','UniverFormulaEnginePlugin','getAllPlugins','IImageIoService','unMountHistoryContent','_initContainer','UniverUi','UniverLicensePlugin','ThemeService','WorkbookRecoverHistoryPermission','8gPJamg','UniverSheetsFormulaUi','UniverEditHistoryLoaderPlugin','colorChannel1','triggerLoadVersions','RibbonStartGroup','historyListServerUrl','setLocale','UniverSheetsDataValidationPlugin','dataset','trim','value','1322826LDJPfI','getElementById','@univerjs/rpc','BehaviorSubject','forEach','UniverSheetsFormulaUIPlugin','IConfigService','fill','Injector','absolute','zIndex','ILocalCacheService','UniverSheetsDataValidationUi','_historyManagerService','_dialogService','UniverDocsUi','UniverSheetSparklineUIPlugin','_disposableCollection','RangeProtectionPermissionEditPoint','_commandService','height','UniverSheetsHyperLinkUIPlugin','from','BUTTON','IDialogService','HistoryIcon','_permissionService','get','UniverCollaborationPlugin','HistoryLoaderService','mountHistoryContent','_configService','_themeService','UniverProSheetsSparkline','style','UniverDataValidation','assign','UniverSheetsDataValidation','7248QmXKNX','svg','top','currentTheme$','UniverProSheetsSparklineUi','UniverSheetsConditionalFormattingUIPlugin','RangeProtectionRuleModel','defs','@univerjs/network','UniverSheetsDrawingPlugin','OPERATION','UniverSheetsPivotTablePlugin','UniverSheetsHyperLinkUi','UniverIcon','@univerjs/data-validation','@univerjs/sheets-data-validation','_historyUniver$','length','unsubscribe','defineProperty','@univerjs/sheets-drawing-ui','data','_init','historyPanelComponentKey','UniverSheetSparklinePlugin','createElement','@univerjs-pro/edit-history-viewer','_initPlugins','UniverEngineFormula','IAuthzIoService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','width','path','HistoryModeStatus','position','editHistory.panel.title','UniverSheetsDataValidationUIPlugin','attrs','string','editHistory.panel.reverting','_selectionProtectionRuleModel','mutations','appendChild','uComp','edit-history-loader.config','set','@univerjs/sheets-numfmt','currentColor','amd','univer.operation.toggle-edit-history','permissionId','__getInjector','Module','_initListener','composePermission','object','url(#history-icon_clip0_907_281)','getSheets','@univerjs/ui','UniverProCollaboration','\x20has\x20been\x20registered.','64633UupDpm','_localeService','_checkCanRevert'];_0x5dbc=function(){return _0x19c895;};return _0x5dbc();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.12.1",
3
+ "version": "0.12.2-experimental.20251129-0fa20cd",
4
4
  "private": false,
5
5
  "description": "UniverSheet edit history loader",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,48 +47,48 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^1.0.2",
50
- "@univerjs-pro/collaboration": "0.12.1",
51
- "@univerjs-pro/collaboration-client": "0.12.1",
52
- "@univerjs-pro/edit-history-viewer": "0.12.1",
53
- "@univerjs-pro/sheets-pivot": "0.12.1",
54
- "@univerjs-pro/license": "0.12.1",
55
- "@univerjs-pro/sheets-sparkline": "0.12.1",
56
- "@univerjs/core": "0.12.1",
57
- "@univerjs-pro/sheets-sparkline-ui": "0.12.1",
58
- "@univerjs/data-validation": "0.12.1",
59
- "@univerjs/design": "0.12.1",
60
- "@univerjs/docs-ui": "0.12.1",
61
- "@univerjs/docs": "0.12.1",
62
- "@univerjs/drawing-ui": "0.12.1",
63
- "@univerjs/drawing": "0.12.1",
64
- "@univerjs/engine-formula": "0.12.1",
65
- "@univerjs/engine-render": "0.12.1",
66
- "@univerjs/rpc": "0.12.1",
67
- "@univerjs/network": "0.12.1",
68
- "@univerjs/sheets-conditional-formatting": "0.12.1",
69
- "@univerjs/sheets-conditional-formatting-ui": "0.12.1",
70
- "@univerjs/sheets": "0.12.1",
71
- "@univerjs/sheets-data-validation": "0.12.1",
72
- "@univerjs/sheets-data-validation-ui": "0.12.1",
73
- "@univerjs/sheets-drawing": "0.12.1",
74
- "@univerjs/sheets-filter": "0.12.1",
75
- "@univerjs/sheets-formula": "0.12.1",
76
- "@univerjs/sheets-drawing-ui": "0.12.1",
77
- "@univerjs/sheets-formula-ui": "0.12.1",
78
- "@univerjs/sheets-hyper-link": "0.12.1",
79
- "@univerjs/sheets-hyper-link-ui": "0.12.1",
80
- "@univerjs/sheets-numfmt": "0.12.1",
81
- "@univerjs/sheets-ui": "0.12.1",
82
- "@univerjs/ui": "0.12.1",
83
- "@univerjs/sheets-filter-ui": "0.12.1"
50
+ "@univerjs-pro/collaboration": "0.12.2-experimental.20251129-0fa20cd",
51
+ "@univerjs-pro/collaboration-client": "0.12.2-experimental.20251129-0fa20cd",
52
+ "@univerjs-pro/edit-history-viewer": "0.12.2-experimental.20251129-0fa20cd",
53
+ "@univerjs-pro/sheets-pivot": "0.12.2-experimental.20251129-0fa20cd",
54
+ "@univerjs-pro/license": "0.12.2-experimental.20251129-0fa20cd",
55
+ "@univerjs-pro/sheets-sparkline": "0.12.2-experimental.20251129-0fa20cd",
56
+ "@univerjs-pro/sheets-sparkline-ui": "0.12.2-experimental.20251129-0fa20cd",
57
+ "@univerjs/core": "0.12.2-experimental.20251129-0fa20cd",
58
+ "@univerjs/data-validation": "0.12.2-experimental.20251129-0fa20cd",
59
+ "@univerjs/docs-ui": "0.12.2-experimental.20251129-0fa20cd",
60
+ "@univerjs/drawing": "0.12.2-experimental.20251129-0fa20cd",
61
+ "@univerjs/drawing-ui": "0.12.2-experimental.20251129-0fa20cd",
62
+ "@univerjs/design": "0.12.2-experimental.20251129-0fa20cd",
63
+ "@univerjs/docs": "0.12.2-experimental.20251129-0fa20cd",
64
+ "@univerjs/engine-formula": "0.12.2-experimental.20251129-0fa20cd",
65
+ "@univerjs/engine-render": "0.12.2-experimental.20251129-0fa20cd",
66
+ "@univerjs/network": "0.12.2-experimental.20251129-0fa20cd",
67
+ "@univerjs/sheets": "0.12.2-experimental.20251129-0fa20cd",
68
+ "@univerjs/rpc": "0.12.2-experimental.20251129-0fa20cd",
69
+ "@univerjs/sheets-conditional-formatting": "0.12.2-experimental.20251129-0fa20cd",
70
+ "@univerjs/sheets-conditional-formatting-ui": "0.12.2-experimental.20251129-0fa20cd",
71
+ "@univerjs/sheets-data-validation": "0.12.2-experimental.20251129-0fa20cd",
72
+ "@univerjs/sheets-data-validation-ui": "0.12.2-experimental.20251129-0fa20cd",
73
+ "@univerjs/sheets-drawing": "0.12.2-experimental.20251129-0fa20cd",
74
+ "@univerjs/sheets-drawing-ui": "0.12.2-experimental.20251129-0fa20cd",
75
+ "@univerjs/sheets-filter": "0.12.2-experimental.20251129-0fa20cd",
76
+ "@univerjs/sheets-filter-ui": "0.12.2-experimental.20251129-0fa20cd",
77
+ "@univerjs/sheets-formula-ui": "0.12.2-experimental.20251129-0fa20cd",
78
+ "@univerjs/sheets-hyper-link": "0.12.2-experimental.20251129-0fa20cd",
79
+ "@univerjs/sheets-hyper-link-ui": "0.12.2-experimental.20251129-0fa20cd",
80
+ "@univerjs/sheets-numfmt": "0.12.2-experimental.20251129-0fa20cd",
81
+ "@univerjs/sheets-formula": "0.12.2-experimental.20251129-0fa20cd",
82
+ "@univerjs/sheets-ui": "0.12.2-experimental.20251129-0fa20cd",
83
+ "@univerjs/ui": "0.12.2-experimental.20251129-0fa20cd"
84
84
  },
85
85
  "devDependencies": {
86
86
  "react": "18.3.1",
87
87
  "rxjs": "7.8.2",
88
88
  "typescript": "^5.9.3",
89
- "vite": "^7.2.2",
90
- "vitest": "^3.2.4",
91
- "@univerjs-infra/shared": "0.12.1"
89
+ "vite": "^7.2.4",
90
+ "vitest": "^4.0.14",
91
+ "@univerjs-infra/shared": "0.12.2"
92
92
  },
93
93
  "scripts": {
94
94
  "test": "vitest run",