@univerjs-pro/edit-history-loader 0.15.5 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +2 -0
- package/lib/types/controllers/history-loader.controller.d.ts +11 -3
- package/lib/types/services/history-loader.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +43 -40
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1f057f=_0x40c5;(function(_0x3c3ba3,_0x2fe5da){const _0x21dd99=_0x40c5,_0x1b0c5e=_0x3c3ba3();while(!![]){try{const _0x3e2bea=parseInt(_0x21dd99(0x1b5))/0x1*(parseInt(_0x21dd99(0x158))/0x2)+parseInt(_0x21dd99(0x196))/0x3+-parseInt(_0x21dd99(0x187))/0x4*(-parseInt(_0x21dd99(0x1b0))/0x5)+parseInt(_0x21dd99(0x199))/0x6+parseInt(_0x21dd99(0x106))/0x7+-parseInt(_0x21dd99(0x129))/0x8+-parseInt(_0x21dd99(0x1a2))/0x9;if(_0x3e2bea===_0x2fe5da)break;else _0x1b0c5e['push'](_0x1b0c5e['shift']());}catch(_0x212678){_0x1b0c5e['push'](_0x1b0c5e['shift']());}}}(_0x2f08,0x3b205));var x=Object[_0x1f057f(0x148)],A=(_0x54f505,_0x3fd939,_0x306703)=>_0x3fd939 in _0x54f505?x(_0x54f505,_0x3fd939,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x306703}):_0x54f505[_0x3fd939]=_0x306703,S=(_0x3d5546,_0x1d0d46,_0x59f1a0)=>A(_0x3d5546,typeof _0x1d0d46!='symbol'?_0x1d0d46+'':_0x1d0d46,_0x59f1a0);Object[_0x1f057f(0x148)](exports,Symbol[_0x1f057f(0x128)],{'value':_0x1f057f(0x18c)});function _0x40c5(_0x1c7c66,_0x4be7a4){_0x1c7c66=_0x1c7c66-0xd4;const _0x2f0864=_0x2f08();let _0x40c5f1=_0x2f0864[_0x1c7c66];return _0x40c5f1;}function _0x2f08(){const _0x2ea4bf=['RxDisposable','combineLatest','url(#$1','event$','toDisposable','_injector','defIds','UniverCollaborationPlugin','symbol','disposeWithMe','_localCacheService','history-icon_clip0_907_281','dispose','IImageIoService','history-container','getAllPlugins','getCurrentLocale','IConfigService','UniverSheetsShapePlugin','IPermissionService','fill','forEach','Injector','includes','use','assign','LocaleService','getConfig','univerjs-icon\x20univerjs-icon-','reload','_checkCanRevert','white','596148psTQnK','appendChild','RangeProtectionRuleModel','style','current','UniverRenderEnginePlugin','merge','_pluginMap','_config','UniverUIPlugin','uComp','UniverSheetsFilterUIPlugin','workerURL','permissionId','get','_initListener','WorkbookEditablePermission','subscribe','HistoryModeStatus','DisposableCollection','currentTheme$','trim','_historyManagerService','location','WorkbookRecoverHistoryPermission','path','random','Entered','UniverSheetSparklineUIPlugin','next','getSheetId','_themeService','WorkbookViewHistoryPermission','UNIVER_CONTAINER_ID','toStringTag','1863824xyxJYb','UniverDrawingUIPlugin','UniverSheetsFormulaUIPlugin','Error','set','value','register','OPERATION','composePermission','ComponentManager','historyListServerUrl','defs','_init','revertRevision$','IDialogService','HistoryIcon','setDarkMode','HistoryManagerService','entries','_sidebarService','length','UniverSheetsDrawingUIPlugin','univer-container','AuthzIoHttpService','height','Exited','add','xlink:href','SYNCED','historyPanelComponentKey','1em','defineProperty','every','clipPath','UniverIcon','MessageType','_dialogService','unMountHistoryContent','values','BehaviorSubject','CollaborationController','UniverSheetsConditionalFormattingUIPlugin','ICommandService','WorksheetEditPermission','currentColor','HistoryLoaderService','UniverDocsPlugin','134544IoPVQQ','map','UniverSheetsFormulaPlugin','1000','getUnit','CHANGESET_ACK','registerPlugin','invoke','_configService','UNIVER_CONTAINER_ID_KEY','univer-history-container','univerContainerId','unsubscribe','state$','BUTTON','flat','_messageService','pluginName','getOwnPropertyDescriptor','_revertErrorTimer','UniverSheetsConditionalFormattingPlugin','children','svg','mountHistoryContent','setConfig','getSheetCommandTarget','UniverDrawingPlugin','UniverDocsUIPlugin','idSuffix','eventID','UniverSheetsFilterPlugin','Inject','params','__getInjector','UniverSheetsDataValidationPlugin','_disposableCollection','_initUniver','0\x200\x2016\x2016','UniverInstanceType','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverSheetsUIPlugin','ThemeService','position','editHistory.panel.listFetchError','Plugin','UNIVER_SHEET','_commandService','4zHVvsW','ISidebarService','UniverDataValidationPlugin','CollaborationStatus','univer.operation.toggle-edit-history','Module','_univerInstanceService','_collaborationController','getElementById','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','status$','./worker.js','UniverSheetsPivotTablePlugin','UniverSheetsChartUIPlugin','[HistoryLoaderService]:\x20Plugin\x20','330843JozwqP','_historyUniver$','_selectionProtectionRuleModel','2868648UMAZAM','show','setLocale','attrs','clear','editHistory.panel.reverting','Univer','UniverSheetsHyperLinkPlugin','onSteady','5230053ODcJdO','UniverSheetsShapeUIPlugin','CommandType','getLocales','IUniverInstanceService','RevertRevisionMutation','div','mask','UniverSheetsDrawingPlugin','DependentOn','UniverRPCMainThreadPlugin','tag','UniverNetworkPlugin','_menuManagerService','1577255Bhoibf','createElement','exhaustSavingTask','UniverSheetsChartPlugin','none','1wHhJVW','historyUniver','IAuthzIoService','M0\x200H16V16H0z','_componentManager','toString','executeCommand','_permissionService','url(#history-icon_clip0_907_281)','\x20has\x20been\x20registered.','colorChannel1','edit-history-loader.config','UNIVER_HISTORY_CONTAINER_ID','menu','type','PLUGIN_CONFIG_KEY_MAIN_THREAD','UNIVER_UNKNOWN','UniverEditHistoryLoaderPlugin','dataset','replace','mergeMenu','Disposable','editHistory.panel.title','_localeService','string','UniverLicensePlugin','left','history-icon'];_0x2f08=function(){return _0x2ea4bf;};return _0x2f08();}const E=require('@univerjs-pro/license'),o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),y=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),I=require('react'),h=require('@univerjs/ui'),w=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-shape'),W=require('@univerjs-pro/sheets-shape-ui'),B=require('@univerjs-pro/sheets-sparkline'),z=require('@univerjs-pro/sheets-sparkline-ui'),Z=require('@univerjs/data-validation'),J=require('@univerjs/docs'),Q=require('@univerjs/docs-ui'),M=require('@univerjs/drawing'),X=require('@univerjs/drawing-ui'),ee=require('@univerjs/engine-formula'),ie=require('@univerjs/engine-render'),te=require('@univerjs/network'),N=require('@univerjs/rpc'),re=require('@univerjs/sheets-conditional-formatting'),ne=require('@univerjs/sheets-conditional-formatting-ui'),se=require('@univerjs/sheets-data-validation'),oe=require('@univerjs/sheets-data-validation-ui'),ae=require('@univerjs/sheets-drawing'),ce=require('@univerjs/sheets-drawing-ui'),le=require('@univerjs/sheets-filter'),ue=require('@univerjs/sheets-filter-ui'),he=require('@univerjs/sheets-formula'),ge=require('@univerjs/sheets-formula-ui'),ve=require('@univerjs/sheets-hyper-link'),de=require('@univerjs/sheets-hyper-link-ui'),_e=require('@univerjs/sheets-numfmt'),O=require('@univerjs/sheets-ui'),b=_0x1f057f(0xd5),R={};function D({ref:_0x3868dc,..._0x2e09d6}){const _0x42daf7=_0x1f057f,{icon:_0x1452a8,id:_0xb8a711,className:_0x56d12e,extend:_0x32491f,..._0x2d1349}=_0x2e09d6,_0x4226d0=(_0x42daf7(0x102)+_0xb8a711+'\x20'+(_0x56d12e||''))[_0x42daf7(0x11b)](),_0x5c72cd=I['useRef']('_'+pe());return q(_0x1452a8,''+_0xb8a711,{'defIds':_0x1452a8[_0x42daf7(0xec)],'idSuffix':_0x5c72cd[_0x42daf7(0x10a)]},{'ref':_0x3868dc,'className':_0x4226d0,..._0x2d1349},_0x32491f);}function q(_0x273c89,_0x6cf12f,_0x497386,_0x5ea88c,_0x2db2c0){const _0x746544=_0x1f057f;return I[_0x746544(0x1b1)](_0x273c89[_0x746544(0x1ad)],{'key':_0x6cf12f,...Se(_0x273c89,_0x497386,_0x2db2c0),..._0x5ea88c},(me(_0x273c89,_0x497386)[_0x746544(0x16d)]||[])[_0x746544(0x159)]((_0x14f86b,_0x4b2684)=>q(_0x14f86b,_0x6cf12f+'-'+_0x273c89[_0x746544(0x1ad)]+'-'+_0x4b2684,_0x497386,void 0x0,_0x2db2c0)));}function Se(_0x569ebe,_0x24f143,_0x2c5637){const _0x4f16e8=_0x1f057f,_0x12ed9b={..._0x569ebe[_0x4f16e8(0x19c)]};_0x2c5637!=null&&_0x2c5637[_0x4f16e8(0xd4)]&&_0x12ed9b[_0x4f16e8(0xfa)]===_0x4f16e8(0xd4)&&(_0x12ed9b[_0x4f16e8(0xfa)]=_0x2c5637[_0x4f16e8(0xd4)]),_0x569ebe['tag']==='mask'&&_0x12ed9b['id']&&(_0x12ed9b['id']=_0x12ed9b['id']+_0x24f143[_0x4f16e8(0x174)]),Object[_0x4f16e8(0x13b)](_0x12ed9b)[_0x4f16e8(0xfb)](([_0x4aa131,_0x2a6bb3])=>{const _0xcd8783=_0x4f16e8;_0x4aa131===_0xcd8783(0x1a9)&&typeof _0x2a6bb3==_0xcd8783(0xe2)&&(_0x12ed9b[_0x4aa131]=_0x2a6bb3[_0xcd8783(0xdd)](/url\(#(.*)\)/,_0xcd8783(0xe8)+_0x24f143[_0xcd8783(0x174)]+')'));});const {defIds:_0xb7ecc9}=_0x24f143;return!_0xb7ecc9||_0xb7ecc9[_0x4f16e8(0x13d)]===0x0||(_0x569ebe[_0x4f16e8(0x1ad)]===_0x4f16e8(0xfe)&&_0x12ed9b[_0x4f16e8(0x144)]&&(_0x12ed9b[_0x4f16e8(0x144)]=_0x12ed9b['xlink:href']+_0x24f143['idSuffix']),Object[_0x4f16e8(0x13b)](_0x12ed9b)[_0x4f16e8(0xfb)](([_0x169a93,_0x55af7c])=>{const _0x51320b=_0x4f16e8;typeof _0x55af7c==_0x51320b(0xe2)&&(_0x12ed9b[_0x169a93]=_0x55af7c[_0x51320b(0xdd)](/url\(#(.*)\)/,_0x51320b(0xe8)+_0x24f143[_0x51320b(0x174)]+')'));})),_0x12ed9b;}function me(_0x1b782e,_0x2a6790){const _0x47b273=_0x1f057f;var _0x5ef073;const {defIds:_0x19aa58}=_0x2a6790;return!_0x19aa58||_0x19aa58[_0x47b273(0x13d)]===0x0?_0x1b782e:_0x1b782e[_0x47b273(0x1ad)]===_0x47b273(0x134)&&((_0x5ef073=_0x1b782e[_0x47b273(0x16d)])!=null&&_0x5ef073[_0x47b273(0x13d)])?{..._0x1b782e,'children':_0x1b782e[_0x47b273(0x16d)][_0x47b273(0x159)](_0x3dcba0=>typeof _0x3dcba0[_0x47b273(0x19c)]['id']==_0x47b273(0xe2)&&_0x19aa58&&_0x19aa58[_0x47b273(0xfd)](_0x3dcba0[_0x47b273(0x19c)]['id'])?{..._0x3dcba0,'attrs':{..._0x3dcba0['attrs'],'id':_0x3dcba0[_0x47b273(0x19c)]['id']+_0x2a6790[_0x47b273(0x174)]}}:_0x3dcba0)}:_0x1b782e;}function pe(){const _0x4a17e8=_0x1f057f;return Math[_0x4a17e8(0x120)]()[_0x4a17e8(0x1ba)](0x24)['substring'](0x2,0x8);}D['displayName']=_0x1f057f(0x14b);const ye={'tag':_0x1f057f(0x16e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1f057f(0x1b4),'viewBox':_0x1f057f(0x17d),'width':'1em','height':_0x1f057f(0x147)},'children':[{'tag':'g','attrs':{'fill':_0x1f057f(0x155),'clipPath':_0x1f057f(0x1bd)},'children':[{'tag':'path','attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0x1f057f(0x11f),'attrs':{'d':_0x1f057f(0x190)}}]},{'tag':_0x1f057f(0x134),'attrs':{},'children':[{'tag':_0x1f057f(0x14a),'attrs':{'id':_0x1f057f(0xf1)},'children':[{'tag':_0x1f057f(0x11f),'attrs':{'fill':_0x1f057f(0x105),'d':_0x1f057f(0x1b8)}}]}]}],'defIds':[_0x1f057f(0xf1)]},k=I['forwardRef'](function(_0x4e295a,_0x408622){const _0x3e46ab=_0x1f057f;return I[_0x3e46ab(0x1b1)](D,Object[_0x3e46ab(0xff)]({},_0x4e295a,{'id':_0x3e46ab(0xe5),'ref':_0x408622,'icon':ye}));});k['displayName']=_0x1f057f(0x138);var fe=Object[_0x1f057f(0x16a)],Ce=(_0x5c1508,_0x16e6fb,_0x32712c,_0x4f5727)=>{for(var _0x52696a=_0x4f5727>0x1?void 0x0:_0x4f5727?fe(_0x16e6fb,_0x32712c):_0x16e6fb,_0x513273=_0x5c1508['length']-0x1,_0x584ce1;_0x513273>=0x0;_0x513273--)(_0x584ce1=_0x5c1508[_0x513273])&&(_0x52696a=_0x584ce1(_0x52696a)||_0x52696a);return _0x52696a;},g=(_0x1860b5,_0x237749)=>(_0x19c695,_0x542e57)=>_0x237749(_0x19c695,_0x542e57,_0x1860b5);const Ie=_0x1f057f(0x13f),H=_0x1f057f(0x127),p=_0x1f057f(0x162);exports[_0x1f057f(0x156)]=class extends o[_0x1f057f(0xdf)]{constructor(_0x1938f7,_0x39a0eb,_0x43296d,_0x315add,_0x415110,_0x2e3177,_0x5ac8de,_0x201f6f,_0x3e2dc4,_0x62eb43){const _0x262333=_0x1f057f;super(),S(this,'_historyUniver$',new w[(_0x262333(0x150))](null)),S(this,'historyUniver$',this[_0x262333(0x197)]['asObservable']()),S(this,_0x262333(0x17b),new o[(_0x262333(0x119))]()),S(this,_0x262333(0x10d),new Map()),(this['_localeService']=_0x1938f7,this[_0x262333(0x18d)]=_0x39a0eb,this[_0x262333(0x160)]=_0x43296d,this[_0x262333(0x186)]=_0x315add,this[_0x262333(0x168)]=_0x415110,this[_0x262333(0x1bc)]=_0x2e3177,this['_selectionProtectionRuleModel']=_0x5ac8de,this[_0x262333(0x14d)]=_0x201f6f,this[_0x262333(0x13c)]=_0x3e2dc4,this[_0x262333(0x125)]=_0x62eb43,this[_0x262333(0x135)]());}get['historyUniver'](){const _0x5d1bc6=_0x1f057f;return this[_0x5d1bc6(0x197)][_0x5d1bc6(0x12e)];}['_init'](){this['_initContainer'](),this['_initPlugins']();}['_initContainer'](){const _0x57c86f=_0x1f057f;var _0x4685ac;const _0x16fcd2=(_0x4685ac=this[_0x57c86f(0x160)]['getConfig'](H))!=null?_0x4685ac:Ie,_0x339d3a=document[_0x57c86f(0x18f)](_0x16fcd2);if(!_0x339d3a)return;const _0x15530e=document[_0x57c86f(0x1b1)](_0x57c86f(0x1a8));_0x15530e['id']=p,_0x15530e[_0x57c86f(0xdc)][_0x57c86f(0x110)]=_0x57c86f(0xf4),_0x15530e[_0x57c86f(0x109)][_0x57c86f(0x182)]='absolute',_0x15530e['style']['top']='0',_0x15530e[_0x57c86f(0x109)][_0x57c86f(0xe4)]='0',_0x15530e[_0x57c86f(0x109)]['width']='100%',_0x15530e[_0x57c86f(0x109)][_0x57c86f(0x141)]='100%',_0x15530e['style']['zIndex']=_0x57c86f(0x15b),_0x15530e[_0x57c86f(0x109)]['display']=_0x57c86f(0x1b4),_0x339d3a[_0x57c86f(0x107)](_0x15530e);}['_initPlugins'](){const _0x2ea449=_0x1f057f;var _0x41fda0,_0x11fbaa,_0x38c558,_0x2cec33;[[ie[_0x2ea449(0x10b)]],[h[_0x2ea449(0x10f)],{'container':p,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x2ea449(0x137)],null]]}],[te[_0x2ea449(0x1ae)]],[M[_0x2ea449(0x172)],{'override':[[M[_0x2ea449(0xf3)],null]]}],[J[_0x2ea449(0x157)],{'hasScroll':!0x1}],[Q[_0x2ea449(0x173)]],[_e['UniverSheetsNumfmtPlugin']],[d['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[O[_0x2ea449(0x180)]],[he[_0x2ea449(0x15a)]],[ge[_0x2ea449(0x12b)]],[C[_0x2ea449(0xed)]],[le[_0x2ea449(0x176)]],[ue[_0x2ea449(0x111)]],[re[_0x2ea449(0x16c)]],[ne[_0x2ea449(0x152)]],[ve[_0x2ea449(0x1a0)]],[de['UniverSheetsHyperLinkUIPlugin']],[Z[_0x2ea449(0x189)]],[se[_0x2ea449(0x17a)]],[oe['UniverSheetsDataValidationUIPlugin']],[ee['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[N[_0x2ea449(0x1ac)],{'workerURL':(_0x11fbaa=(_0x41fda0=this[_0x2ea449(0x160)][_0x2ea449(0x101)](N[_0x2ea449(0xd9)]))==null?void 0x0:_0x41fda0[_0x2ea449(0x112)])!=null?_0x11fbaa:_0x2ea449(0x192)}],[X[_0x2ea449(0x12a)]],[ae[_0x2ea449(0x1aa)]],[ce[_0x2ea449(0x13e)]],[B['UniverSheetSparklinePlugin']],[z[_0x2ea449(0x122)]],[V[_0x2ea449(0x1b3)]],[G[_0x2ea449(0x194)]],[K[_0x2ea449(0xf8)]],[W[_0x2ea449(0x1a3)]],[Y[_0x2ea449(0x193)],{'notExecuteFormula':!0x0}],[m['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x38c558=this[_0x2ea449(0x160)][_0x2ea449(0x101)](b))==null?void 0x0:_0x38c558[_0x2ea449(0x133)],'historyPanelComponentKey':(_0x2cec33=this['_configService'][_0x2ea449(0x101)](b))==null?void 0x0:_0x2cec33[_0x2ea449(0x146)]}]][_0x2ea449(0xfb)](([_0x12f204,_0x3a3027])=>this[_0x2ea449(0x15e)](_0x12f204,_0x3a3027));}[_0x1f057f(0xf2)](){const _0x588c3f=_0x1f057f;super[_0x588c3f(0xf2)](),this[_0x588c3f(0x14e)](),this[_0x588c3f(0x10d)][_0x588c3f(0x19d)]();}['registerPlugin'](_0x1a8a1d,_0x1c263b,_0x16fb3a){const _0x4469b4=_0x1f057f;if(this[_0x4469b4(0x10d)]['has'](_0x1a8a1d[_0x4469b4(0x169)])&&!_0x16fb3a)throw new Error(_0x4469b4(0x195)+_0x1a8a1d[_0x4469b4(0x169)]+_0x4469b4(0x1be));this[_0x4469b4(0x10d)][_0x4469b4(0x12d)](_0x1a8a1d[_0x4469b4(0x169)],[_0x1a8a1d,_0x1c263b]);}[_0x1f057f(0xf5)](){const _0x350d2b=_0x1f057f;return Array['from'](this[_0x350d2b(0x10d)][_0x350d2b(0x14f)]());}['mountHistoryContent'](_0x357a2c){const _0x1d0397=_0x1f057f,_0x424bf2=document[_0x1d0397(0x18f)](p);_0x424bf2&&(_0x424bf2[_0x1d0397(0x109)]['display']='block',this[_0x1d0397(0x17c)](_0x357a2c,p));}['unMountHistoryContent'](){const _0x5b34f3=_0x1f057f;var _0xe718;this[_0x5b34f3(0x17b)][_0x5b34f3(0xf2)](),(_0xe718=this[_0x5b34f3(0x1b6)])==null||_0xe718[_0x5b34f3(0xf2)](),this[_0x5b34f3(0x197)][_0x5b34f3(0x123)](null);const _0x2869e0=document[_0x5b34f3(0x18f)](p);_0x2869e0&&(_0x2869e0[_0x5b34f3(0x109)]['display']=_0x5b34f3(0x1b4));}[_0x1f057f(0x17c)](_0x2fe27e,_0x71763){const _0x5dcea8=_0x1f057f;if(this[_0x5dcea8(0x1b6)])return;const _0x152397=new o[(_0x5dcea8(0x19f))]({'locales':{[this[_0x5dcea8(0xe1)]['getCurrentLocale']()]:this['_localeService'][_0x5dcea8(0x1a5)]()},'override':[[o[_0x5dcea8(0x1b7)],{'useClass':y[_0x5dcea8(0x140)]}]]}),_0x4e3228=_0x152397[_0x5dcea8(0x179)]();this[_0x5dcea8(0xef)](this[_0x5dcea8(0x125)]['darkMode$'][_0x5dcea8(0x117)](_0x4e4b64=>{const _0x54094c=_0x5dcea8;_0x4e3228[_0x54094c(0x114)](o[_0x54094c(0x181)])[_0x54094c(0x139)](_0x4e4b64);})),this[_0x5dcea8(0xef)](this['_themeService'][_0x5dcea8(0x11a)][_0x5dcea8(0x117)](_0x3493fb=>{const _0x4f6d88=_0x5dcea8;_0x4e3228[_0x4f6d88(0x114)](o[_0x4f6d88(0x181)])['setTheme'](_0x3493fb);})),_0x4e3228[_0x5dcea8(0x114)](o[_0x5dcea8(0x100)])[_0x5dcea8(0x19b)](this[_0x5dcea8(0xe1)][_0x5dcea8(0xf6)]()),_0x4e3228[_0x5dcea8(0x114)](o[_0x5dcea8(0xf7)])['setConfig'](y[_0x5dcea8(0x17f)],this[_0x5dcea8(0x160)][_0x5dcea8(0x101)](y[_0x5dcea8(0x17f)]));const _0x7e005a=this[_0x5dcea8(0x160)][_0x5dcea8(0x101)](E['LS_CONFIG_KEY']);_0x7e005a&&_0x152397[_0x5dcea8(0x15e)](E[_0x5dcea8(0xe3)],{'license':_0x7e005a['ls']}),this[_0x5dcea8(0x10d)][_0x5dcea8(0xfb)](([_0x380be9,_0x28ead7])=>{const _0x42bdda=_0x5dcea8;_0x152397[_0x42bdda(0x15e)](_0x380be9,_0x28ead7);}),_0x4e3228[_0x5dcea8(0x15f)](_0x48241c=>{const _0x36b613=_0x5dcea8;this[_0x36b613(0x115)](_0x48241c,_0x2fe27e);}),this[_0x5dcea8(0x197)][_0x5dcea8(0x123)](_0x152397);const _0x11ecba=_0x4e3228[_0x5dcea8(0x114)](m[_0x5dcea8(0x13a)]),_0x5f0d1a=this[_0x5dcea8(0x104)](_0x2fe27e);_0x11ecba['triggerLoadVersions'](_0x2fe27e,_0x71763,_0x5f0d1a);}[_0x1f057f(0x115)](_0x2130c1,_0x887b54){const _0xf2d2c8=_0x1f057f,_0x306660=_0x2130c1[_0xf2d2c8(0x114)](m[_0xf2d2c8(0x13a)]);this[_0xf2d2c8(0x17b)][_0xf2d2c8(0x143)](_0x306660[_0xf2d2c8(0x191)][_0xf2d2c8(0x117)](_0x473a39=>{const _0x5e42a1=_0xf2d2c8;switch(_0x473a39){case m[_0x5e42a1(0x118)][_0x5e42a1(0x121)]:this[_0x5e42a1(0x14d)]['closeAll'](),this['_sidebarService']['close']();break;case m['HistoryModeStatus'][_0x5e42a1(0x142)]:this[_0x5e42a1(0x186)][_0x5e42a1(0x1bb)]($['id']),this[_0x5e42a1(0x14e)]();break;case m[_0x5e42a1(0x118)][_0x5e42a1(0x12c)]:this['unMountHistoryContent'](),this[_0x5e42a1(0x168)]['show']({'content':this[_0x5e42a1(0xe1)]['t'](_0x5e42a1(0x183)),'type':P[_0x5e42a1(0x14c)]['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xf2d2c8(0x143)](_0x306660[_0xf2d2c8(0x136)]['subscribe'](async _0x7c6c1f=>{const _0x1f7a12=_0xf2d2c8;_0x7c6c1f&&this[_0x1f7a12(0x186)][_0x1f7a12(0x1bb)](C[_0x1f7a12(0x1a7)]['id'],{'unitId':_0x887b54,'revision':_0x7c6c1f});}));}['_checkCanRevert'](_0x5e27d9){const _0xb3c9=_0x1f057f,_0x4fda0c=this[_0xb3c9(0x18d)][_0xb3c9(0x15c)](_0x5e27d9)['getSheets']()[_0xb3c9(0x159)](_0x5f0e30=>_0x5f0e30[_0xb3c9(0x124)]()),_0x40316b=new d[(_0xb3c9(0x116))](_0x5e27d9)['id'],_0x526c24=_0x4fda0c[_0xb3c9(0x159)](_0x20e456=>new d[(_0xb3c9(0x154))](_0x5e27d9,_0x20e456)['id']),_0x4cddab=_0x4fda0c[_0xb3c9(0x159)](_0x5baa29=>this[_0xb3c9(0x198)]['getSubunitRuleList'](_0x5e27d9,_0x5baa29)[_0xb3c9(0x159)](_0x3f5ca0=>new d['RangeProtectionPermissionEditPoint'](_0x5e27d9,_0x5baa29,_0x3f5ca0[_0xb3c9(0x113)])['id']))[_0xb3c9(0x167)](),_0x4b3795=new d[(_0xb3c9(0x11e))](_0x5e27d9)['id'];return this[_0xb3c9(0x1bc)][_0xb3c9(0x131)]([_0x40316b,..._0x526c24,..._0x4cddab,_0x4b3795])[_0xb3c9(0x149)](_0xf23622=>!!_0xf23622[_0xb3c9(0x12e)]);}},exports[_0x1f057f(0x156)]=Ce([g(0x0,o[_0x1f057f(0x177)](o[_0x1f057f(0x100)])),g(0x1,o[_0x1f057f(0x1a6)]),g(0x2,o[_0x1f057f(0xf7)]),g(0x3,o[_0x1f057f(0x153)]),g(0x4,h['IMessageService']),g(0x5,o[_0x1f057f(0xf9)]),g(0x6,o[_0x1f057f(0x177)](d[_0x1f057f(0x108)])),g(0x7,o[_0x1f057f(0x177)](h['IDialogService'])),g(0x8,o[_0x1f057f(0x177)](h[_0x1f057f(0x188)])),g(0x9,o[_0x1f057f(0x177)](o[_0x1f057f(0x181)]))],exports[_0x1f057f(0x156)]);const L={'id':_0x1f057f(0x18b),'type':o[_0x1f057f(0x1a4)][_0x1f057f(0x130)],'handler':_0x40b74b=>{const _0x5e96fd=_0x1f057f,_0x4099e3=_0x40b74b['get'](exports[_0x5e96fd(0x156)]),_0x224c0c=_0x40b74b[_0x5e96fd(0x114)](o['IUniverInstanceService']),{unitId:_0x1731fb}=d[_0x5e96fd(0x171)](_0x224c0c)||{};return _0x1731fb?(_0x4099e3[_0x5e96fd(0x16f)](_0x1731fb),!0x0):!0x1;}},$={'id':'univer.operation.exit-edit-history','type':o[_0x1f057f(0x1a4)]['OPERATION'],'handler':()=>!0x0};function Ue(_0x634e0b){const _0xecd640=_0x1f057f;return{'id':L['id'],'type':h['MenuItemType'][_0xecd640(0x166)],'icon':_0xecd640(0x138),'tooltip':_0xecd640(0xe0),'hidden$':h['getMenuHiddenObservable'](_0x634e0b,o[_0xecd640(0x17e)][_0xecd640(0x185)]),'disabled$':O['getCurrentRangeDisable$'](_0x634e0b,{'workbookTypes':[d['WorkbookEditablePermission'],d[_0xecd640(0x126)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ee={[h['RibbonStartGroup']['OTHERS']]:{[L['id']]:{'order':0.2,'menuItemFactory':Ue}}};var Pe=Object[_0x1f057f(0x16a)],be=(_0x4cd6cf,_0x4c60fc,_0xda8bc4,_0x3afd02)=>{const _0x58ae77=_0x1f057f;for(var _0x1ece9d=_0x3afd02>0x1?void 0x0:_0x3afd02?Pe(_0x4c60fc,_0xda8bc4):_0x4c60fc,_0x2772ad=_0x4cd6cf[_0x58ae77(0x13d)]-0x1,_0x58324e;_0x2772ad>=0x0;_0x2772ad--)(_0x58324e=_0x4cd6cf[_0x2772ad])&&(_0x1ece9d=_0x58324e(_0x1ece9d)||_0x1ece9d);return _0x1ece9d;},_=(_0x43dc2c,_0x88872d)=>(_0x440102,_0x2814b2)=>_0x88872d(_0x440102,_0x2814b2,_0x43dc2c);let U=class extends o[_0x1f057f(0xe6)]{constructor(_0x48b43e,_0xbe2bf5,_0x502bf2,_0x1e8090,_0x4da096,_0x113950,_0x57f3e7,_0x389c20){const _0x1718a0=_0x1f057f;super(),S(this,_0x1718a0(0x16b),null),(this['_commandService']=_0x48b43e,this[_0x1718a0(0x1af)]=_0xbe2bf5,this[_0x1718a0(0x1b9)]=_0x502bf2,this[_0x1718a0(0x11c)]=_0x1e8090,this[_0x1718a0(0xe1)]=_0x4da096,this[_0x1718a0(0x168)]=_0x113950,this[_0x1718a0(0x18e)]=_0x57f3e7,this[_0x1718a0(0xf0)]=_0x389c20,this[_0x1718a0(0x135)]());}[_0x1f057f(0x135)](){const _0x312174=_0x1f057f;[L,$][_0x312174(0xfb)](_0x5992c9=>this[_0x312174(0xef)](o[_0x312174(0xea)](this[_0x312174(0x186)]['registerCommand'](_0x5992c9)))),this[_0x312174(0xef)](this[_0x312174(0x1b9)][_0x312174(0x12f)](_0x312174(0x138),k)),this[_0x312174(0x1af)][_0x312174(0xde)](Ee),this[_0x312174(0xef)](this[_0x312174(0x186)]['onCommandExecuted'](_0x1e84ea=>{const _0x396ad4=_0x312174;if(_0x1e84ea['id']===C[_0x396ad4(0x1a7)]['id']){this[_0x396ad4(0x168)][_0x396ad4(0x19a)]({'content':this[_0x396ad4(0xe1)]['t'](_0x396ad4(0x19e)),'type':P[_0x396ad4(0x14c)]['Loading'],'duration':0x1388});const {unitId:_0x2e2c42}=_0x1e84ea[_0x396ad4(0x178)],_0x40e265=this[_0x396ad4(0x18e)]['getCollabEntity'](_0x2e2c42),_0x157e3d=w[_0x396ad4(0xe7)]([_0x40e265['session'][_0x396ad4(0xe9)],_0x40e265[_0x396ad4(0x165)]])['subscribe'](async([_0x1c560f,_0x9ca532])=>{const _0x4f7d28=_0x396ad4;var _0x4e3a15;_0x1c560f[_0x4f7d28(0x175)]===C['CollaborationEvent'][_0x4f7d28(0x15d)]&&(_0x9ca532==null?void 0x0:_0x9ca532['status'])===y[_0x4f7d28(0x18a)][_0x4f7d28(0x145)]&&_0x1c560f['data']['mutations']['some'](_0x41c569=>_0x41c569['id']===C[_0x4f7d28(0x1a7)]['id'])&&(this[_0x4f7d28(0x11c)][_0x4f7d28(0x14e)](),_0x157e3d[_0x4f7d28(0x164)](),this[_0x4f7d28(0x16b)]&&clearTimeout(this[_0x4f7d28(0x16b)]),await((_0x4e3a15=this[_0x4f7d28(0xf0)])==null?void 0x0:_0x4e3a15[_0x4f7d28(0x1b2)]()),setTimeout(()=>window[_0x4f7d28(0x11d)][_0x4f7d28(0x103)]()));});this[_0x396ad4(0x16b)]=setTimeout(()=>{const _0x593225=_0x396ad4;_0x157e3d[_0x593225(0x164)](),this[_0x593225(0x168)]['show']({'content':this[_0x593225(0xe1)]['t']('editHistory.panel.revertFailed'),'type':P[_0x593225(0x14c)][_0x593225(0x12c)],'duration':0xbb8});},0x1388);}}));}};U=be([_(0x0,o['ICommandService']),_(0x1,h['IMenuManagerService']),_(0x2,o[_0x1f057f(0x177)](h[_0x1f057f(0x132)])),_(0x3,o[_0x1f057f(0x177)](exports[_0x1f057f(0x156)])),_(0x4,o['Inject'](o[_0x1f057f(0x100)])),_(0x5,h['IMessageService']),_(0x6,o[_0x1f057f(0x177)](y[_0x1f057f(0x151)])),_(0x7,y['ILocalCacheService'])],U);var He=Object[_0x1f057f(0x148)],Le=Object[_0x1f057f(0x16a)],Me=(_0x9723c5,_0x309ee9,_0x63867b)=>_0x309ee9 in _0x9723c5?He(_0x9723c5,_0x309ee9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x63867b}):_0x9723c5[_0x309ee9]=_0x63867b,Ne=(_0x4119f8,_0x57e75a,_0x1d704e,_0x3f29c3)=>{const _0x3a6293=_0x1f057f;for(var _0x592385=_0x3f29c3>0x1?void 0x0:_0x3f29c3?Le(_0x57e75a,_0x1d704e):_0x57e75a,_0x4e7675=_0x4119f8[_0x3a6293(0x13d)]-0x1,_0x2dd9e7;_0x4e7675>=0x0;_0x4e7675--)(_0x2dd9e7=_0x4119f8[_0x4e7675])&&(_0x592385=_0x2dd9e7(_0x592385)||_0x592385);return _0x592385;},T=(_0x174eda,_0x335452)=>(_0x439622,_0x20f06d)=>_0x335452(_0x439622,_0x20f06d,_0x174eda),F=(_0x189373,_0x3b3751,_0x4ed566)=>Me(_0x189373,typeof _0x3b3751!=_0x1f057f(0xee)?_0x3b3751+'':_0x3b3751,_0x4ed566);const Re='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';exports[_0x1f057f(0xdb)]=class extends o[_0x1f057f(0x184)]{constructor(_0x3a675a=R,_0x36a08e,_0x267b6d){const _0x37df01=_0x1f057f;super(),this['_config']=_0x3a675a,this[_0x37df01(0xeb)]=_0x36a08e,this['_configService']=_0x267b6d;const {menu:_0x50514d,..._0x26b7e1}=o[_0x37df01(0x10c)]({},R,this[_0x37df01(0x10e)]);_0x50514d&&this['_configService']['setConfig'](_0x37df01(0xd7),_0x50514d,{'merge':!0x0}),this[_0x37df01(0x160)][_0x37df01(0x170)](b,_0x26b7e1),this[_0x37df01(0x10e)][_0x37df01(0x163)]&&this[_0x37df01(0x160)][_0x37df01(0x170)](H,this['_config'][_0x37df01(0x163)]);}['onStarting'](){const _0x41de6f=_0x1f057f;[[exports[_0x41de6f(0x156)]],[U]][_0x41de6f(0xfb)](_0x1478b1=>this[_0x41de6f(0xeb)][_0x41de6f(0x143)](_0x1478b1));}[_0x1f057f(0x1a1)](){const _0x3b8f0a=_0x1f057f;this[_0x3b8f0a(0xeb)]['get'](U);}},F(exports[_0x1f057f(0xdb)],_0x1f057f(0xd8),o[_0x1f057f(0x17e)][_0x1f057f(0xda)]),F(exports[_0x1f057f(0xdb)],'pluginName',Re),exports[_0x1f057f(0xdb)]=Ne([o[_0x1f057f(0x1ab)](E[_0x1f057f(0xe3)]),T(0x1,o[_0x1f057f(0x177)](o[_0x1f057f(0xfc)])),T(0x2,o[_0x1f057f(0xf7)])],exports[_0x1f057f(0xdb)]),exports[_0x1f057f(0x161)]=H,exports[_0x1f057f(0xd6)]=p;
|
|
1
|
+
'use strict';const _0x17e748=_0x3c13;(function(_0x35b01c,_0x477953){const _0x516dd8=_0x3c13,_0x129257=_0x35b01c();while(!![]){try{const _0x285c66=parseInt(_0x516dd8(0x1c2))/0x1*(parseInt(_0x516dd8(0x272))/0x2)+-parseInt(_0x516dd8(0x293))/0x3+parseInt(_0x516dd8(0x279))/0x4*(-parseInt(_0x516dd8(0x1d6))/0x5)+parseInt(_0x516dd8(0x222))/0x6*(parseInt(_0x516dd8(0x1e0))/0x7)+parseInt(_0x516dd8(0x228))/0x8*(parseInt(_0x516dd8(0x290))/0x9)+-parseInt(_0x516dd8(0x1ca))/0xa*(parseInt(_0x516dd8(0x1e5))/0xb)+parseInt(_0x516dd8(0x214))/0xc;if(_0x285c66===_0x477953)break;else _0x129257['push'](_0x129257['shift']());}catch(_0xb5a8f8){_0x129257['push'](_0x129257['shift']());}}}(_0x534c,0xcddd4));var J=Object[_0x17e748(0x204)],Q=(_0x5436e2,_0x34bcee,_0x107e19)=>_0x34bcee in _0x5436e2?J(_0x5436e2,_0x34bcee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x107e19}):_0x5436e2[_0x34bcee]=_0x107e19,f=(_0x55fea9,_0x4f3b38,_0x433de4)=>Q(_0x55fea9,typeof _0x4f3b38!=_0x17e748(0x220)?_0x4f3b38+'':_0x4f3b38,_0x433de4);Object[_0x17e748(0x204)](exports,Symbol[_0x17e748(0x1c3)],{'value':'Module'});const L=require('@univerjs-pro/license'),o=require('@univerjs/core'),U=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),X=require('@univerjs-pro/collaboration-client-ui'),P=require('@univerjs/design'),b=require('react'),g=require('@univerjs/sheets'),d=require('@univerjs/ui'),E=require('rxjs'),C=require('@univerjs-pro/edit-history-viewer'),ee=require('@univerjs-pro/sheets-chart'),ie=require('@univerjs-pro/sheets-chart-ui'),te=require('@univerjs-pro/sheets-pivot'),re=require('@univerjs-pro/sheets-shape'),ne=require('@univerjs-pro/sheets-shape-ui'),se=require('@univerjs-pro/sheets-sparkline'),oe=require('@univerjs-pro/sheets-sparkline-ui'),ae=require('@univerjs/data-validation'),ce=require('@univerjs/docs'),le=require('@univerjs/docs-ui'),F=require('@univerjs/drawing'),ue=require('@univerjs/drawing-ui'),he=require('@univerjs/engine-formula'),ge=require('@univerjs/engine-render'),de=require('@univerjs/network'),N=require('@univerjs/rpc'),ve=require('@univerjs/sheets-conditional-formatting'),Se=require('@univerjs/sheets-conditional-formatting-ui'),_e=require('@univerjs/sheets-data-validation'),me=require('@univerjs/sheets-data-validation-ui'),Ie=require('@univerjs/sheets-drawing'),fe=require('@univerjs/sheets-drawing-ui'),Ce=require('@univerjs/sheets-filter'),pe=require('@univerjs/sheets-filter-ui'),ye=require('@univerjs/sheets-formula'),Ue=require('@univerjs/sheets-formula-ui'),Ee=require('@univerjs/sheets-hyper-link'),Pe=require('@univerjs/sheets-hyper-link-ui'),be=require('@univerjs/sheets-numfmt'),Re=require('@univerjs/sheets-table'),W=require('@univerjs/sheets-ui'),y='edit-history-loader.config',x={};function G({ref:_0x19fa44,..._0x5f34c9}){const _0x8df9d1=_0x17e748,{icon:_0x3132ab,id:_0x5ad851,className:_0x5a6519,extend:_0x52161b,..._0x519ded}=_0x5f34c9,_0x5c19f7=('univerjs-icon\x20univerjs-icon-'+_0x5ad851+'\x20'+(_0x5a6519||''))[_0x8df9d1(0x257)](),_0x118851=b[_0x8df9d1(0x261)]('_'+He());return K(_0x3132ab,''+_0x5ad851,{'defIds':_0x3132ab[_0x8df9d1(0x23e)],'idSuffix':_0x118851[_0x8df9d1(0x25c)]},{'ref':_0x19fa44,'className':_0x5c19f7,..._0x519ded},_0x52161b);}function K(_0x4c3902,_0x51ebcf,_0x430f6a,_0x112b38,_0x890e1f){const _0x1116c9=_0x17e748;return b[_0x1116c9(0x219)](_0x4c3902['tag'],{'key':_0x51ebcf,...Ne(_0x4c3902,_0x430f6a,_0x890e1f),..._0x112b38},(Le(_0x4c3902,_0x430f6a)[_0x1116c9(0x208)]||[])[_0x1116c9(0x18e)]((_0x2bc96a,_0x5c0dcb)=>K(_0x2bc96a,_0x51ebcf+'-'+_0x4c3902['tag']+'-'+_0x5c0dcb,_0x430f6a,void 0x0,_0x890e1f)));}function Ne(_0x2d626e,_0x3764a4,_0x1bd51a){const _0x1ec414=_0x17e748,_0x516591={..._0x2d626e[_0x1ec414(0x1f0)]};_0x1bd51a!=null&&_0x1bd51a[_0x1ec414(0x251)]&&_0x516591['fill']===_0x1ec414(0x251)&&(_0x516591[_0x1ec414(0x1b0)]=_0x1bd51a[_0x1ec414(0x251)]),_0x2d626e[_0x1ec414(0x25e)]===_0x1ec414(0x183)&&_0x516591['id']&&(_0x516591['id']=_0x516591['id']+_0x3764a4['idSuffix']),Object[_0x1ec414(0x1f3)](_0x516591)[_0x1ec414(0x1c0)](([_0xf8f364,_0x1de7f9])=>{const _0x560fff=_0x1ec414;_0xf8f364===_0x560fff(0x183)&&typeof _0x1de7f9==_0x560fff(0x268)&&(_0x516591[_0xf8f364]=_0x1de7f9['replace'](/url\(#(.*)\)/,_0x560fff(0x202)+_0x3764a4[_0x560fff(0x225)]+')'));});const {defIds:_0x1e5ef5}=_0x3764a4;return!_0x1e5ef5||_0x1e5ef5[_0x1ec414(0x262)]===0x0||(_0x2d626e[_0x1ec414(0x25e)]===_0x1ec414(0x1b8)&&_0x516591[_0x1ec414(0x231)]&&(_0x516591[_0x1ec414(0x231)]=_0x516591[_0x1ec414(0x231)]+_0x3764a4[_0x1ec414(0x225)]),Object[_0x1ec414(0x1f3)](_0x516591)[_0x1ec414(0x1c0)](([_0x12dc8b,_0x234586])=>{const _0x3253b4=_0x1ec414;typeof _0x234586==_0x3253b4(0x268)&&(_0x516591[_0x12dc8b]=_0x234586['replace'](/url\(#(.*)\)/,_0x3253b4(0x202)+_0x3764a4[_0x3253b4(0x225)]+')'));})),_0x516591;}function Le(_0x55f06d,_0x222a5a){const _0x4705e1=_0x17e748;var _0x37450;const {defIds:_0xe0b1fe}=_0x222a5a;return!_0xe0b1fe||_0xe0b1fe[_0x4705e1(0x262)]===0x0?_0x55f06d:_0x55f06d[_0x4705e1(0x25e)]==='defs'&&((_0x37450=_0x55f06d[_0x4705e1(0x208)])!=null&&_0x37450[_0x4705e1(0x262)])?{..._0x55f06d,'children':_0x55f06d[_0x4705e1(0x208)]['map'](_0xed07f0=>typeof _0xed07f0['attrs']['id']==_0x4705e1(0x268)&&_0xe0b1fe&&_0xe0b1fe[_0x4705e1(0x224)](_0xed07f0['attrs']['id'])?{..._0xed07f0,'attrs':{..._0xed07f0[_0x4705e1(0x1f0)],'id':_0xed07f0['attrs']['id']+_0x222a5a[_0x4705e1(0x225)]}}:_0xed07f0)}:_0x55f06d;}function He(){const _0x50b2a7=_0x17e748;return Math['random']()['toString'](0x24)[_0x50b2a7(0x1c9)](0x2,0x8);}G[_0x17e748(0x1d8)]=_0x17e748(0x1e8);const Me={'tag':'svg','attrs':{'xmlns':_0x17e748(0x1dc),'fill':'none','viewBox':_0x17e748(0x24c),'width':_0x17e748(0x1dd),'height':_0x17e748(0x1dd)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x17e748(0x256)},'children':[{'tag':_0x17e748(0x1da),'attrs':{'d':_0x17e748(0x1cb)}},{'tag':_0x17e748(0x1da),'attrs':{'d':_0x17e748(0x1b2)}}]},{'tag':_0x17e748(0x215),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x17e748(0x259)},'children':[{'tag':_0x17e748(0x1da),'attrs':{'fill':_0x17e748(0x19b),'d':_0x17e748(0x191)}}]}]}],'defIds':[_0x17e748(0x259)]},Y=b[_0x17e748(0x281)](function(_0x2e8962,_0x27c899){const _0x3daf44=_0x17e748;return b[_0x3daf44(0x219)](G,Object[_0x3daf44(0x197)]({},_0x2e8962,{'id':_0x3daf44(0x1cf),'ref':_0x27c899,'icon':Me}));});Y[_0x17e748(0x1d8)]='HistoryIcon';var H=(_0x19d435=>(_0x19d435[_0x19d435[_0x17e748(0x1a7)]=0x0]='UNIVER_UNKNOWN',_0x19d435[_0x19d435[_0x17e748(0x200)]=0x1]=_0x17e748(0x200),_0x19d435[_0x19d435[_0x17e748(0x1ec)]=0x2]='UNIVER_SHEET',_0x19d435[_0x19d435[_0x17e748(0x288)]=0x3]=_0x17e748(0x288),_0x19d435[_0x19d435[_0x17e748(0x280)]=0x4]=_0x17e748(0x280),_0x19d435[_0x19d435[_0x17e748(0x1b7)]=-0x1]='UNRECOGNIZED',_0x19d435))(H||{}),Oe=Object[_0x17e748(0x26f)],we=(_0x58d207,_0x2962d6,_0x2f9673,_0x23e3e0)=>{const _0x1c3bf7=_0x17e748;for(var _0x5594a6=_0x23e3e0>0x1?void 0x0:_0x23e3e0?Oe(_0x2962d6,_0x2f9673):_0x2962d6,_0x6b0675=_0x58d207[_0x1c3bf7(0x262)]-0x1,_0x3b41e8;_0x6b0675>=0x0;_0x6b0675--)(_0x3b41e8=_0x58d207[_0x6b0675])&&(_0x5594a6=_0x3b41e8(_0x5594a6)||_0x5594a6);return _0x5594a6;},v=(_0x5905d8,_0x37eaae)=>(_0x468d32,_0xf04fe9)=>_0x37eaae(_0x468d32,_0xf04fe9,_0x5905d8);const Te=_0x17e748(0x24d),M=_0x17e748(0x1a5),p='univer-history-container';exports[_0x17e748(0x27a)]=class extends o['Disposable']{constructor(_0x2a77b3,_0x495106,_0x421bf7,_0x3e3edd,_0x54ac82,_0x3f8efa,_0x949640,_0x2055af,_0x4a052a,_0x292140){const _0x1ef63c=_0x17e748;super(),f(this,_0x1ef63c(0x28e),new E[(_0x1ef63c(0x1fe))](null)),f(this,_0x1ef63c(0x243),this['_historyUniver$']['asObservable']()),f(this,_0x1ef63c(0x271),new o[(_0x1ef63c(0x1f2))]()),f(this,_0x1ef63c(0x20e),new Map()),(this[_0x1ef63c(0x195)]=_0x2a77b3,this[_0x1ef63c(0x28c)]=_0x495106,this[_0x1ef63c(0x18c)]=_0x421bf7,this[_0x1ef63c(0x254)]=_0x3e3edd,this[_0x1ef63c(0x1d4)]=_0x54ac82,this[_0x1ef63c(0x1aa)]=_0x3f8efa,this[_0x1ef63c(0x1e1)]=_0x949640,this[_0x1ef63c(0x276)]=_0x2055af,this[_0x1ef63c(0x1e6)]=_0x4a052a,this[_0x1ef63c(0x193)]=_0x292140,this[_0x1ef63c(0x213)]());}get['historyUniver'](){const _0x55c504=_0x17e748;return this[_0x55c504(0x28e)][_0x55c504(0x203)];}[_0x17e748(0x213)](){const _0x51d1e6=_0x17e748;this[_0x51d1e6(0x23d)](),this[_0x51d1e6(0x250)]();}[_0x17e748(0x23d)](){const _0x277a87=_0x17e748;var _0x20adeb;const _0x45a859=(_0x20adeb=this[_0x277a87(0x18c)][_0x277a87(0x263)](M))!=null?_0x20adeb:Te,_0x5ecdad=document[_0x277a87(0x1bb)](_0x45a859);if(!_0x5ecdad)return;const _0x84838a=document[_0x277a87(0x219)](_0x277a87(0x1b6));_0x84838a['id']=p,_0x84838a[_0x277a87(0x18b)][_0x277a87(0x270)]=_0x277a87(0x189),_0x84838a[_0x277a87(0x23b)][_0x277a87(0x266)]=_0x277a87(0x1e2),_0x84838a['style'][_0x277a87(0x1e4)]='0',_0x84838a['style']['left']='0',_0x84838a['style'][_0x277a87(0x287)]=_0x277a87(0x229),_0x84838a[_0x277a87(0x23b)][_0x277a87(0x274)]='100%',_0x84838a[_0x277a87(0x23b)][_0x277a87(0x237)]='49',_0x84838a[_0x277a87(0x23b)][_0x277a87(0x1fd)]=_0x277a87(0x1ad),_0x5ecdad[_0x277a87(0x1b5)](_0x84838a);}[_0x17e748(0x250)](){const _0x31b89d=_0x17e748;[[ge[_0x31b89d(0x26e)]],[d['UniverUIPlugin'],{'container':p,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[d[_0x31b89d(0x273)],null]]}],[de[_0x31b89d(0x223)]],[F['UniverDrawingPlugin'],{'override':[[F[_0x31b89d(0x22f)],null]]}],[ce[_0x31b89d(0x1a3)],{'hasScroll':!0x1}],[le[_0x31b89d(0x1a9)]],[be[_0x31b89d(0x20d)]],[g['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[W['UniverSheetsUIPlugin']],[ye[_0x31b89d(0x1fa)]],[Ue['UniverSheetsFormulaUIPlugin']],[U['UniverCollaborationPlugin']],[Ce[_0x31b89d(0x1e9)]],[pe[_0x31b89d(0x1eb)]],[ve[_0x31b89d(0x1df)]],[Se[_0x31b89d(0x25f)]],[Ee['UniverSheetsHyperLinkPlugin']],[Pe['UniverSheetsHyperLinkUIPlugin']],[ae['UniverDataValidationPlugin']],[_e[_0x31b89d(0x264)]],[me[_0x31b89d(0x1d1)]],[he[_0x31b89d(0x190)],{'notExecuteFormula':!0x0}],[ue[_0x31b89d(0x207)]],[Ie[_0x31b89d(0x1ae)]],[fe[_0x31b89d(0x1a4)]],[se[_0x31b89d(0x241)]],[oe[_0x31b89d(0x1db)]],[ee['UniverSheetsChartPlugin']],[ie[_0x31b89d(0x235)]],[re['UniverSheetsShapePlugin']],[ne[_0x31b89d(0x258)]],[te['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[Re['UniverSheetsTablePlugin']]][_0x31b89d(0x1c0)](([_0x38acea,_0x50a873])=>this[_0x31b89d(0x234)](_0x38acea,_0x50a873));}[_0x17e748(0x218)](){const _0x16ac57=_0x17e748;super[_0x16ac57(0x218)](),this[_0x16ac57(0x1a2)](),this[_0x16ac57(0x20e)][_0x16ac57(0x278)]();}[_0x17e748(0x234)](_0x35748b,_0x39ddb6,_0x396099){const _0x5668b5=_0x17e748;if(this[_0x5668b5(0x20e)]['has'](_0x35748b[_0x5668b5(0x20a)])&&!_0x396099)throw new Error(_0x5668b5(0x217)+_0x35748b['pluginName']+_0x5668b5(0x19e));this[_0x5668b5(0x20e)][_0x5668b5(0x192)](_0x35748b[_0x5668b5(0x20a)],[_0x35748b,_0x39ddb6]);}['getAllPlugins'](){const _0x1f0b39=_0x17e748;return Array['from'](this[_0x1f0b39(0x20e)][_0x1f0b39(0x1be)]());}['mountHistoryContent'](_0x2f11ef,_0x59808f){const _0xcb9df2=_0x17e748,_0x6669ac=document['getElementById'](p);_0x6669ac&&(_0x6669ac['style']['display']=_0xcb9df2(0x27e),this['_initUniver'](_0x2f11ef,p,_0x59808f));}[_0x17e748(0x1a2)](){const _0x337d1d=_0x17e748;var _0x5e0e7b;this[_0x337d1d(0x271)][_0x337d1d(0x218)](),(_0x5e0e7b=this[_0x337d1d(0x20c)])==null||_0x5e0e7b[_0x337d1d(0x218)](),this[_0x337d1d(0x28e)][_0x337d1d(0x294)](null);const _0x3beccf=document[_0x337d1d(0x1bb)](p);_0x3beccf&&(_0x3beccf[_0x337d1d(0x23b)][_0x337d1d(0x1fd)]='none');}[_0x17e748(0x1ba)](_0x35ba8f,_0xa698e2,_0x131077){const _0x2a4b95=_0x17e748;var _0x8d5c1d,_0x31d4b2,_0x221d88,_0x195244,_0x47d32d,_0x721fc4;if(this[_0x2a4b95(0x20c)])return;const _0x4ecb14=new o[(_0x2a4b95(0x1ac))]({'locales':{[this[_0x2a4b95(0x195)][_0x2a4b95(0x26c)]()]:this[_0x2a4b95(0x195)][_0x2a4b95(0x1a6)]()},'override':[[o[_0x2a4b95(0x1e3)],{'useClass':m[_0x2a4b95(0x1ee)]}]]}),_0x204d49=_0x4ecb14[_0x2a4b95(0x20b)]();this['disposeWithMe'](this['_themeService'][_0x2a4b95(0x1c4)][_0x2a4b95(0x198)](_0x27fe83=>{const _0x40f4c0=_0x2a4b95;_0x204d49[_0x40f4c0(0x289)](o['ThemeService'])[_0x40f4c0(0x1af)](_0x27fe83);})),this[_0x2a4b95(0x275)](this[_0x2a4b95(0x193)][_0x2a4b95(0x25a)][_0x2a4b95(0x198)](_0x43bf70=>{_0x204d49['get'](o['ThemeService'])['setTheme'](_0x43bf70);})),_0x204d49['get'](o[_0x2a4b95(0x24a)])[_0x2a4b95(0x1d2)](this['_localeService']['getCurrentLocale']()),_0x204d49[_0x2a4b95(0x289)](o[_0x2a4b95(0x186)])[_0x2a4b95(0x253)](m[_0x2a4b95(0x1d5)],this[_0x2a4b95(0x18c)][_0x2a4b95(0x263)](m['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x4b6405=this[_0x2a4b95(0x18c)][_0x2a4b95(0x263)](L[_0x2a4b95(0x19d)]);_0x4b6405&&_0x4ecb14[_0x2a4b95(0x234)](L['UniverLicensePlugin'],{'license':_0x4b6405['ls']}),_0x4ecb14['registerPlugin'](N['UniverRPCMainThreadPlugin'],{'workerURL':(_0x31d4b2=(_0x8d5c1d=this['_configService'][_0x2a4b95(0x263)](N[_0x2a4b95(0x1cd)]))==null?void 0x0:_0x8d5c1d[_0x2a4b95(0x22e)])!=null?_0x31d4b2:'./worker.js'}),this['_pluginMap'][_0x2a4b95(0x1c0)](([_0x547f34,_0x344a4c])=>{_0x4ecb14['registerPlugin'](_0x547f34,_0x344a4c);}),_0x4ecb14['registerPlugin'](C[_0x2a4b95(0x242)],{'historyListServerUrl':(_0x221d88=this[_0x2a4b95(0x18c)][_0x2a4b95(0x263)](y))==null?void 0x0:_0x221d88[_0x2a4b95(0x283)],'historyPanelComponentKey':(_0x195244=this['_configService']['getConfig'](y))==null?void 0x0:_0x195244['historyPanelComponentKey'],'historyPanelHidden':(_0x47d32d=this[_0x2a4b95(0x18c)][_0x2a4b95(0x263)](y))==null?void 0x0:_0x47d32d[_0x2a4b95(0x1b3)],'historyAIassistantEnabled':(_0x721fc4=this['_configService'][_0x2a4b95(0x263)](y))==null?void 0x0:_0x721fc4[_0x2a4b95(0x28a)]}),_0x204d49[_0x2a4b95(0x25b)](_0x4748ac=>{const _0x20ace8=_0x2a4b95;this[_0x20ace8(0x1a0)](_0x4748ac,_0x35ba8f);}),this[_0x2a4b95(0x28e)][_0x2a4b95(0x294)](_0x4ecb14);const _0x502d56=_0x204d49[_0x2a4b95(0x289)](C[_0x2a4b95(0x233)]),_0x33b9ec=this[_0x2a4b95(0x23f)](_0x35ba8f),_0x434fc2=()=>{const _0x30f28e=_0x2a4b95;_0x131077?_0x502d56[_0x30f28e(0x245)](_0x35ba8f,_0xa698e2,_0x33b9ec,_0x131077):_0x502d56['triggerLoadVersions'](_0x35ba8f,_0xa698e2,_0x33b9ec);},_0x2a7465=this[_0x2a4b95(0x1d4)][_0x2a4b95(0x1c8)]({'content':this[_0x2a4b95(0x195)]['t'](_0x2a4b95(0x269)),'type':P[_0x2a4b95(0x1bc)][_0x2a4b95(0x1ab)]});try{_0x204d49[_0x2a4b95(0x289)](N[_0x2a4b95(0x18f)])['whenReady']()['then'](()=>{const _0x120a9e=_0x2a4b95;_0x2a7465[_0x120a9e(0x218)](),_0x434fc2();});}catch{_0x2a7465[_0x2a4b95(0x218)](),_0x434fc2();}}[_0x17e748(0x1a0)](_0x2acb68,_0x231076){const _0x235353=_0x17e748,_0x153392=_0x2acb68[_0x235353(0x289)](C[_0x235353(0x233)]);this[_0x235353(0x271)][_0x235353(0x26a)](_0x153392[_0x235353(0x1ea)][_0x235353(0x198)](_0x21e235=>{const _0x8da86a=_0x235353;switch(_0x21e235){case C[_0x8da86a(0x19c)]['Entered']:this[_0x8da86a(0x276)][_0x8da86a(0x21d)](),this[_0x8da86a(0x1e6)][_0x8da86a(0x1f5)]();break;case C[_0x8da86a(0x19c)]['Exited']:this[_0x8da86a(0x254)][_0x8da86a(0x212)](B['id']),this[_0x8da86a(0x1a2)]();break;case C[_0x8da86a(0x19c)][_0x8da86a(0x1c6)]:this[_0x8da86a(0x1a2)](),this['_messageService'][_0x8da86a(0x1c8)]({'content':this[_0x8da86a(0x195)]['t'](_0x8da86a(0x248)),'type':P[_0x8da86a(0x1bc)][_0x8da86a(0x1c6)],'duration':0xbb8});break;}})),this[_0x235353(0x271)]['add'](_0x153392['revertRevision$'][_0x235353(0x198)](async _0x336724=>{const _0x298f88=_0x235353;_0x336724&&this[_0x298f88(0x254)][_0x298f88(0x212)](U['RevertRevisionMutation']['id'],{'unitId':_0x231076,'revision':_0x336724});}));}[_0x17e748(0x23f)](_0x4eb239){const _0x51b5cc=_0x17e748,_0x485f9e=this[_0x51b5cc(0x28c)]['getUnit'](_0x4eb239)['getSheets']()['map'](_0x43160a=>_0x43160a[_0x51b5cc(0x187)]()),_0x576930=new g['WorkbookEditablePermission'](_0x4eb239)['id'],_0x32bec4=_0x485f9e['map'](_0x5712a4=>new g[(_0x51b5cc(0x205))](_0x4eb239,_0x5712a4)['id']),_0x1dc3e5=_0x485f9e[_0x51b5cc(0x18e)](_0x4dc6d1=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x4eb239,_0x4dc6d1)['map'](_0x5a496d=>new g[(_0x51b5cc(0x27f))](_0x4eb239,_0x4dc6d1,_0x5a496d[_0x51b5cc(0x221)])['id']))[_0x51b5cc(0x260)](),_0x59d50e=new g[(_0x51b5cc(0x188))](_0x4eb239)['id'];return this[_0x51b5cc(0x1aa)][_0x51b5cc(0x265)]([_0x576930,..._0x32bec4,..._0x1dc3e5,_0x59d50e])[_0x51b5cc(0x1b4)](_0x597695=>!!_0x597695['value']);}},exports['HistoryLoaderService']=we([v(0x0,o[_0x17e748(0x206)](o[_0x17e748(0x24a)])),v(0x1,o[_0x17e748(0x267)]),v(0x2,o[_0x17e748(0x186)]),v(0x3,o[_0x17e748(0x284)]),v(0x4,d[_0x17e748(0x20f)]),v(0x5,o[_0x17e748(0x184)]),v(0x6,o[_0x17e748(0x206)](g[_0x17e748(0x1d9)])),v(0x7,o['Inject'](d[_0x17e748(0x273)])),v(0x8,o[_0x17e748(0x206)](d[_0x17e748(0x240)])),v(0x9,o['Inject'](o[_0x17e748(0x1d7)]))],exports[_0x17e748(0x27a)]);function _0x534c(){const _0x6ea3d4=['http://www.w3.org/2000/svg','1em','IURLService','UniverSheetsConditionalFormattingPlugin','5858076XngYRE','_selectionProtectionRuleModel','absolute','IAuthzIoService','top','1122cdQgjB','_sidebarService','disposeUnit','UniverIcon','UniverSheetsFilterPlugin','status$','UniverSheetsFilterUIPlugin','UNIVER_SHEET','getActiveSheet','AuthzIoHttpService','OTHERS','attrs','some','DisposableCollection','entries','_updateSubUnitFromURLParams','close','SYNCED','getUnhiddenWorksheets','HistoryIcon','UniverLicensePlugin','UniverSheetsFormulaPlugin','_revertErrorTimer','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','display','BehaviorSubject','OPERATION','UNIVER_DOC','onStarting','url(#$1','value','defineProperty','WorksheetEditPermission','Inject','UniverDrawingUIPlugin','children','_updateURLWithCurrentState','pluginName','__getInjector','historyUniver','UniverSheetsNumfmtPlugin','_pluginMap','IMessageService','editHistory.panel.revertFailed','_localCacheService','executeCommand','_init','1572672ewvhcW','defs','register','[HistoryLoaderService]:\x20Plugin\x20','dispose','createElement','IMenuManagerService','onSteady','unsubscribe','closeAll','CollaborationEvent','_config','symbol','permissionId','12dCdshO','UniverNetworkPlugin','includes','idSuffix','getCurrentUnitOfType','_menuManagerService','4838720eIHRBk','100%','UniverEditHistoryLoaderPlugin','CollaborationStatus','univer.operation.exit-edit-history','Injector','workerURL','IImageIoService','activeSheet$','xlink:href','data','HistoryManagerService','registerPlugin','UniverSheetsChartUIPlugin','_componentManager','zIndex','BUTTON','type','DataLoaderService','style','_handleRevertAcknowledgement','_initContainer','defIds','_checkCanRevert','ISidebarService','UniverSheetSparklinePlugin','UniverEditHistoryViewerPlugin','historyUniver$','Workbook','triggerCustomVersions','UniverInstanceType','_collaborationController','editHistory.panel.listFetchError','getUnitId','LocaleService','onCommandExecuted','0\x200\x2016\x2016','univer-container','CollaborationController','univer.operation.toggle-edit-history','_initPlugins','colorChannel1','RibbonStartGroup','setConfig','_commandService','state$','url(#history-icon_clip0_907_281)','trim','UniverSheetsShapeUIPlugin','history-icon_clip0_907_281','currentTheme$','invoke','current','dispose$','tag','UniverSheetsConditionalFormattingUIPlugin','flat','useRef','length','getConfig','UniverSheetsDataValidationPlugin','composePermission','position','IUniverInstanceService','string','editHistory.info.initializing','add','exhaustSavingTask','getCurrentLocale','editHistory.panel.title','UniverRenderEnginePlugin','getOwnPropertyDescriptor','uComp','_disposableCollection','640894mFllBZ','IDialogService','height','disposeWithMe','_dialogService','_historyManagerService','clear','12fEGFdN','HistoryLoaderService','_urlService','mergeMenu','toDisposable','block','RangeProtectionPermissionEditPoint','UNIVER_PROJECT','forwardRef','reload','historyListServerUrl','ICommandService','location','RevertRevisionMutation','width','UNIVER_SLIDE','get','historyAIassistantEnabled','merge','_univerInstanceService','params','_historyUniver$','takeUntil','9KPTRgC','session','mountHistoryContent','4299345hdjHAm','next','DependentOn','mask','IPermissionService','WorkbookViewHistoryPermission','IConfigService','getSheetId','WorkbookRecoverHistoryPermission','history-container','combineLatest','dataset','_configService','Plugin','map','IRemoteInstanceService','UniverFormulaEnginePlugin','M0\x200H16V16H0z','set','_themeService','subunit','_localeService','loadUnit','assign','subscribe','registerCommand','ComponentManager','white','HistoryModeStatus','LS_CONFIG_KEY','\x20has\x20been\x20registered.','MenuItemType','_initListener','UNIVER_CONTAINER_ID_KEY','unMountHistoryContent','UniverDocsPlugin','UniverSheetsDrawingUIPlugin','UNIVER_CONTAINER_ID','getLocales','UNIVER_UNKNOWN','RxDisposable','UniverDocsUIPlugin','_permissionService','Loading','Univer','none','UniverSheetsDrawingPlugin','setDarkMode','fill','_setupSubUnitSync','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','historyPanelHidden','every','appendChild','div','UNRECOGNIZED','use','SetWorksheetActivateCommand','_initUniver','getElementById','MessageType','_injector','values','status','forEach','ILocalCacheService','1tSiynn','toStringTag','darkMode$','getCurrentRangeDisable$','Error','CommandType','show','substring','5990TzusAi','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','univerContainerId','PLUGIN_CONFIG_KEY_MAIN_THREAD','getSheetBySheetId','history-icon','fromCollab','UniverSheetsDataValidationUIPlugin','setLocale','pipe','_messageService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','654410pbMMMN','ThemeService','displayName','RangeProtectionRuleModel','path','UniverSheetSparklineUIPlugin'];_0x534c=function(){return _0x6ea3d4;};return _0x534c();}function _0x3c13(_0x1e3111,_0x188ad9){_0x1e3111=_0x1e3111-0x182;const _0x534c89=_0x534c();let _0x3c134e=_0x534c89[_0x1e3111];return _0x3c134e;}const O={'id':_0x17e748(0x24f),'type':o[_0x17e748(0x1c7)][_0x17e748(0x1ff)],'handler':_0x4505e2=>{const _0x41434f=_0x17e748,_0x5ebd30=_0x4505e2['get'](exports[_0x41434f(0x27a)]),_0x906563=_0x4505e2[_0x41434f(0x289)](o[_0x41434f(0x267)]),{unitId:_0x827e5e}=g['getSheetCommandTarget'](_0x906563)||{};return _0x827e5e?(_0x5ebd30[_0x41434f(0x292)](_0x827e5e),!0x0):!0x1;}},B={'id':_0x17e748(0x22c),'type':o['CommandType'][_0x17e748(0x1ff)],'handler':()=>!0x0};function De(_0x3040f8){const _0x440c49=_0x17e748;return{'id':O['id'],'type':d[_0x440c49(0x19f)][_0x440c49(0x238)],'icon':_0x440c49(0x1f8),'tooltip':_0x440c49(0x26d),'hidden$':d['getMenuHiddenObservable'](_0x3040f8,o[_0x440c49(0x246)]['UNIVER_SHEET']),'disabled$':W[_0x440c49(0x1c5)](_0x3040f8,{'workbookTypes':[g['WorkbookEditablePermission'],g[_0x440c49(0x185)]],'worksheetTypes':[],'rangeTypes':[]})};}const qe={[d[_0x17e748(0x252)][_0x17e748(0x1ef)]]:{[O['id']]:{'order':0.2,'menuItemFactory':De}}};var $e=Object[_0x17e748(0x26f)],Ae=(_0xbad1b3,_0x2cdea2,_0xa8e46c,_0xf79def)=>{const _0x3f3101=_0x17e748;for(var _0x22c122=_0xf79def>0x1?void 0x0:_0xf79def?$e(_0x2cdea2,_0xa8e46c):_0x2cdea2,_0x318fe6=_0xbad1b3[_0x3f3101(0x262)]-0x1,_0x5f1c5d;_0x318fe6>=0x0;_0x318fe6--)(_0x5f1c5d=_0xbad1b3[_0x318fe6])&&(_0x22c122=_0x5f1c5d(_0x22c122)||_0x22c122);return _0x22c122;},h=(_0x4c67c3,_0x2f9473)=>(_0x1a23da,_0x451ca)=>_0x2f9473(_0x1a23da,_0x451ca,_0x4c67c3);let R=class extends o[_0x17e748(0x1a8)]{constructor(_0x45b513,_0x1d8d37,_0x161504,_0x5bad01,_0x1f82f3,_0x7363ff,_0x28185f,_0x2a3942,_0xc26d2e,_0x3172b7,_0x184a5e){const _0x4a1977=_0x17e748;super(),f(this,_0x4a1977(0x1fb),null),(this[_0x4a1977(0x254)]=_0x45b513,this[_0x4a1977(0x227)]=_0x1d8d37,this[_0x4a1977(0x236)]=_0x161504,this[_0x4a1977(0x277)]=_0x5bad01,this[_0x4a1977(0x195)]=_0x1f82f3,this[_0x4a1977(0x1d4)]=_0x7363ff,this[_0x4a1977(0x247)]=_0x28185f,this['_localCacheService']=_0x2a3942,this['_dataLoaderService']=_0xc26d2e,this['_univerInstanceService']=_0x3172b7,this[_0x4a1977(0x27b)]=_0x184a5e,this[_0x4a1977(0x213)]());}[_0x17e748(0x213)](){const _0x22bf0a=_0x17e748;[O,B]['forEach'](_0x1e9b5f=>this[_0x22bf0a(0x275)](o[_0x22bf0a(0x27d)](this[_0x22bf0a(0x254)][_0x22bf0a(0x199)](_0x1e9b5f)))),this['disposeWithMe'](this[_0x22bf0a(0x236)][_0x22bf0a(0x216)]('HistoryIcon',Y)),this[_0x22bf0a(0x227)][_0x22bf0a(0x27c)](qe),this[_0x22bf0a(0x275)](this[_0x22bf0a(0x254)][_0x22bf0a(0x24b)](async(_0x35d98d,_0x245989)=>{const _0x391bf8=_0x22bf0a;if(_0x35d98d['id']===U[_0x391bf8(0x286)]['id']){const {unitId:_0x29f0a9}=_0x35d98d[_0x391bf8(0x28d)];this[_0x391bf8(0x1d4)]['show']({'content':this[_0x391bf8(0x195)]['t']('editHistory.panel.reverting'),'type':P['MessageType'][_0x391bf8(0x1ab)],'duration':0x1388});const _0x16339f=this[_0x391bf8(0x247)]['getCollabEntity'](_0x29f0a9);(_0x245989==null?void 0x0:_0x245989[_0x391bf8(0x1d0)])?this[_0x391bf8(0x23c)](_0x16339f,async()=>(setTimeout(()=>window[_0x391bf8(0x285)][_0x391bf8(0x282)]()),!0x0),!0x0):this[_0x391bf8(0x23c)](_0x16339f,async()=>{const _0x4fe291=_0x391bf8,_0x32e00f=this[_0x4fe291(0x28c)][_0x4fe291(0x226)](H['UNIVER_SHEET']),_0x530e6f=_0x32e00f==null?void 0x0:_0x32e00f[_0x4fe291(0x1ed)]();if(!_0x530e6f)return!0x1;this['_univerInstanceService'][_0x4fe291(0x1e7)](_0x29f0a9);const _0x1c1aef=await this['_dataLoaderService'][_0x4fe291(0x196)](_0x29f0a9,H[_0x4fe291(0x1ec)]);return _0x1c1aef&&_0x1c1aef instanceof o[_0x4fe291(0x244)]?(await this[_0x4fe291(0x1b1)](_0x1c1aef,_0x530e6f[_0x4fe291(0x187)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x27db0d,_0x1eee81,_0x6bcbf8=!0x1){const _0x220e2d=_0x17e748,_0x17b51e=E[_0x220e2d(0x18a)]([_0x27db0d[_0x220e2d(0x291)]['event$'],_0x27db0d[_0x220e2d(0x255)]])[_0x220e2d(0x198)](async([_0x528d74,_0xe97f02])=>{const _0x4100b6=_0x220e2d;var _0x14a631;_0x528d74['eventID']===U[_0x4100b6(0x21e)]['CHANGESET_ACK']&&(_0xe97f02==null?void 0x0:_0xe97f02[_0x4100b6(0x1bf)])===m[_0x4100b6(0x22b)][_0x4100b6(0x1f6)]&&_0x528d74[_0x4100b6(0x232)]['mutations'][_0x4100b6(0x1f1)](_0x248ae7=>_0x248ae7['id']===U[_0x4100b6(0x286)]['id'])&&await _0x1eee81()&&(this[_0x4100b6(0x277)][_0x4100b6(0x1a2)](),_0x17b51e['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x4100b6(0x1fb)]),await((_0x14a631=this[_0x4100b6(0x211)])==null?void 0x0:_0x14a631[_0x4100b6(0x26b)]()));});_0x6bcbf8&&(this[_0x220e2d(0x1fb)]=setTimeout(()=>{const _0x8334d3=_0x220e2d;_0x17b51e[_0x8334d3(0x21c)](),this[_0x8334d3(0x1d4)][_0x8334d3(0x1c8)]({'content':this['_localeService']['t'](_0x8334d3(0x210)),'type':P[_0x8334d3(0x1bc)][_0x8334d3(0x1c6)],'duration':0xbb8});},0x1388));}async[_0x17e748(0x1b1)](_0x18175f,_0x332009){const _0x44d1e8=_0x17e748;await this[_0x44d1e8(0x1f4)](_0x18175f,_0x332009),_0x18175f[_0x44d1e8(0x230)][_0x44d1e8(0x1d3)](E[_0x44d1e8(0x28f)](this[_0x44d1e8(0x25d)]))[_0x44d1e8(0x198)](_0xee55d3=>{const _0x4fe0f2=_0x44d1e8;_0xee55d3&&this[_0x4fe0f2(0x209)](_0xee55d3);}),this['_urlService']['urlChange$']['pipe'](E[_0x44d1e8(0x28f)](this[_0x44d1e8(0x25d)]))[_0x44d1e8(0x198)](()=>this[_0x44d1e8(0x1f4)](_0x18175f,_0x332009));}['_updateURLWithCurrentState'](_0xc2d857,_0x533b2d=!0x1){const _0x594d6=_0x17e748,_0x1a8afe=this[_0x594d6(0x27b)]['getParam'](_0x594d6(0x194));_0xc2d857[_0x594d6(0x187)]()!==_0x1a8afe&&this['_urlService']['setParam'](_0x594d6(0x194),_0xc2d857[_0x594d6(0x187)](),_0x533b2d);}async[_0x17e748(0x1f4)](_0x1097fa,_0x16112d){const _0x458590=_0x17e748;var _0xfd94a8;if(!_0x16112d||!_0x1097fa[_0x458590(0x1ce)](_0x16112d)){const _0x1c2056=_0x1097fa[_0x458590(0x1f7)]()[0x0],_0x34093b=_0x1097fa[_0x458590(0x1ce)](_0x1c2056);if(!_0x34093b)return;this[_0x458590(0x209)](_0x34093b,!0x0),await this[_0x458590(0x254)][_0x458590(0x212)](g[_0x458590(0x1b9)]['id'],{'unitId':_0x1097fa[_0x458590(0x249)](),'subUnitId':_0x1c2056});return;}((_0xfd94a8=_0x1097fa[_0x458590(0x1ed)]())==null?void 0x0:_0xfd94a8[_0x458590(0x187)]())!==_0x16112d&&await this[_0x458590(0x254)][_0x458590(0x212)](g[_0x458590(0x1b9)]['id'],{'unitId':_0x1097fa[_0x458590(0x249)](),'subUnitId':_0x16112d});}};R=Ae([h(0x0,o[_0x17e748(0x284)]),h(0x1,d[_0x17e748(0x21a)]),h(0x2,o[_0x17e748(0x206)](d[_0x17e748(0x19a)])),h(0x3,o[_0x17e748(0x206)](exports['HistoryLoaderService'])),h(0x4,o['Inject'](o[_0x17e748(0x24a)])),h(0x5,d[_0x17e748(0x20f)]),h(0x6,o[_0x17e748(0x206)](m[_0x17e748(0x24e)])),h(0x7,m[_0x17e748(0x1c1)]),h(0x8,o['Inject'](m[_0x17e748(0x23a)])),h(0x9,o[_0x17e748(0x267)]),h(0xa,X[_0x17e748(0x1de)])],R);var Ve=Object['defineProperty'],ke=Object[_0x17e748(0x26f)],Fe=(_0x280723,_0x3c216a,_0x5a26c8)=>_0x3c216a in _0x280723?Ve(_0x280723,_0x3c216a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a26c8}):_0x280723[_0x3c216a]=_0x5a26c8,xe=(_0x154de7,_0x307ae9,_0x4df375,_0x59dffc)=>{const _0x490b52=_0x17e748;for(var _0x345d62=_0x59dffc>0x1?void 0x0:_0x59dffc?ke(_0x307ae9,_0x4df375):_0x307ae9,_0xa44371=_0x154de7[_0x490b52(0x262)]-0x1,_0x29e25a;_0xa44371>=0x0;_0xa44371--)(_0x29e25a=_0x154de7[_0xa44371])&&(_0x345d62=_0x29e25a(_0x345d62)||_0x345d62);return _0x345d62;},j=(_0x3b2080,_0x2afb91)=>(_0xdbcdd1,_0x5bf0f9)=>_0x2afb91(_0xdbcdd1,_0x5bf0f9,_0x3b2080),z=(_0x4495b1,_0x3daa0d,_0x460889)=>Fe(_0x4495b1,typeof _0x3daa0d!=_0x17e748(0x220)?_0x3daa0d+'':_0x3daa0d,_0x460889);const je=_0x17e748(0x1fc);exports[_0x17e748(0x22a)]=class extends o[_0x17e748(0x18d)]{constructor(_0x30bd1d=x,_0x234b59,_0x1f3f7c){const _0x1a3cf0=_0x17e748;super(),this[_0x1a3cf0(0x21f)]=_0x30bd1d,this[_0x1a3cf0(0x1bd)]=_0x234b59,this[_0x1a3cf0(0x18c)]=_0x1f3f7c;const {menu:_0x5728f5,..._0x26247a}=o[_0x1a3cf0(0x28b)]({},x,this['_config']);_0x5728f5&&this['_configService'][_0x1a3cf0(0x253)]('menu',_0x5728f5,{'merge':!0x0}),this[_0x1a3cf0(0x18c)]['setConfig'](y,_0x26247a),this[_0x1a3cf0(0x21f)][_0x1a3cf0(0x1cc)]&&this[_0x1a3cf0(0x18c)][_0x1a3cf0(0x253)](M,this['_config'][_0x1a3cf0(0x1cc)]);}[_0x17e748(0x201)](){const _0x46f7d9=_0x17e748;[[exports[_0x46f7d9(0x27a)]],[R]]['forEach'](_0x356b91=>this['_injector'][_0x46f7d9(0x26a)](_0x356b91));}[_0x17e748(0x21b)](){const _0x4af04d=_0x17e748;this[_0x4af04d(0x1bd)][_0x4af04d(0x289)](R);}},z(exports[_0x17e748(0x22a)],_0x17e748(0x239),o[_0x17e748(0x246)]['UNIVER_UNKNOWN']),z(exports[_0x17e748(0x22a)],_0x17e748(0x20a),je),exports[_0x17e748(0x22a)]=xe([o[_0x17e748(0x182)](L[_0x17e748(0x1f9)]),j(0x1,o[_0x17e748(0x206)](o[_0x17e748(0x22d)])),j(0x2,o['IConfigService'])],exports[_0x17e748(0x22a)]),exports[_0x17e748(0x1a1)]=M,exports['UNIVER_HISTORY_CONTAINER_ID']=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3fc7e2=_0x5be8;(function(_0x40cd20,_0x30c3cb){const _0x4105b7=_0x5be8,_0x33a34e=_0x40cd20();while(!![]){try{const _0x573fb9=parseInt(_0x4105b7(0x115))/0x1+parseInt(_0x4105b7(0xe0))/0x2+parseInt(_0x4105b7(0xe4))/0x3*(parseInt(_0x4105b7(0x9f))/0x4)+parseInt(_0x4105b7(0xa9))/0x5*(-parseInt(_0x4105b7(0xbd))/0x6)+parseInt(_0x4105b7(0xcd))/0x7*(-parseInt(_0x4105b7(0xbe))/0x8)+-parseInt(_0x4105b7(0x99))/0x9*(parseInt(_0x4105b7(0xfb))/0xa)+parseInt(_0x4105b7(0xd0))/0xb*(parseInt(_0x4105b7(0xbf))/0xc);if(_0x573fb9===_0x30c3cb)break;else _0x33a34e['push'](_0x33a34e['shift']());}catch(_0x31c59d){_0x33a34e['push'](_0x33a34e['shift']());}}}(_0x2601,0x47085));var B=Object[_0x3fc7e2(0xed)],z=(_0x5c5930,_0xdfa927,_0x2431c8)=>_0xdfa927 in _0x5c5930?B(_0x5c5930,_0xdfa927,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2431c8}):_0x5c5930[_0xdfa927]=_0x2431c8,v=(_0x2b5e7b,_0x5a2103,_0x1061ad)=>z(_0x2b5e7b,typeof _0x5a2103!=_0x3fc7e2(0xa1)?_0x5a2103+'':_0x5a2103,_0x1061ad);import{LS_CONFIG_KEY as _0x4a1f91,UniverLicensePlugin as _0x567e6d}from'@univerjs-pro/license';import{Inject as _0x5f4f25,LocaleService as _0xe9c007,ThemeService as _0x2d319b,Disposable as _0x39eb50,DisposableCollection as _0x16b2c7,Univer as _0x49f66a,IAuthzIoService as _0xe01fa9,IConfigService as _0x1b605d,IUniverInstanceService as _0x978fe9,ICommandService as _0x1284ee,IPermissionService as _0x3d92b4,CommandType as _0x1b2c46,UniverInstanceType as _0x44f89f,RxDisposable as _0xb246b5,toDisposable as _0x4695c0,DependentOn as _0x1f7b30,Injector as _0x5ac2af,Plugin as _0x4309fe,merge as _0x450a83}from'@univerjs/core';import{UniverCollaborationPlugin as _0x704b6b,RevertRevisionMutation as _0x1f8e06,CollaborationEvent as _0x3cbc56}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x21883c,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3abed0,CollaborationController as _0x395672,CollaborationStatus as _0x5d8f04,ILocalCacheService as _0x296ec6}from'@univerjs-pro/collaboration-client';import{MessageType as _0x5c43ed}from'@univerjs/design';import{useRef as _0x262add,createElement as _0x5a02af,forwardRef as _0x42e1d4}from'react';import{IDialogService as _0x56af39,ISidebarService as _0x3fc635,UniverUIPlugin as _0x3392ef,IMessageService as _0x263af9,MenuItemType as _0x481abb,getMenuHiddenObservable as _0x4c7d08,RibbonStartGroup as _0x5cce86,ComponentManager as _0x534cb9,IMenuManagerService as _0x792166}from'@univerjs/ui';import{BehaviorSubject as _0x57890e,combineLatest as _0xe64adb}from'rxjs';import{RangeProtectionRuleModel as _0x1c9c5d,UniverSheetsPlugin as _0x4bf579,WorkbookEditablePermission as _0x5e5b38,WorksheetEditPermission as _0x2cb3d7,RangeProtectionPermissionEditPoint as _0x1eb021,WorkbookRecoverHistoryPermission as _0x4008f2,getSheetCommandTarget as _0x2dcc42,WorkbookViewHistoryPermission as _0xf56348}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x589a63,HistoryManagerService as _0x256127,HistoryModeStatus as _0x55e35e}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsChartPlugin as _0x530fe3}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xb08fe6}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x51ad0f}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x4c12aa}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x28ed48}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x261e28}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x336a72}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x178c4d}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x15b75c}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x68837e}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x188647,IImageIoService as _0x59c6d1}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x555aa4}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x43f154}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x25a5ee}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x1cc128}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x292678,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x5b2b36}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x215ffe}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x49ba98}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x102a5a}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x2a1790}from'@univerjs/sheets-data-validation-ui';function _0x5be8(_0x3b74c5,_0x1af22c){_0x3b74c5=_0x3b74c5-0x6e;const _0x26017c=_0x2601();let _0x5be889=_0x26017c[_0x3b74c5];return _0x5be889;}import{UniverSheetsDrawingPlugin as _0x5f30cc}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xfd1dc7}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3fdc50}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x39c6cf}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xd2cee6}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x1d1ee0}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1c08e1}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x18fafd}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x25e0c2}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x4699b4,getCurrentRangeDisable$ as _0x50b6b0}from'@univerjs/sheets-ui';const U='edit-history-loader.config',N={};function F({ref:_0x5920a2,..._0x1226f7}){const _0x5a0617=_0x3fc7e2,{icon:_0x3b250e,id:_0x4d5a81,className:_0x1f6b0e,extend:_0x585a07,..._0x2c6ed0}=_0x1226f7,_0x4c0a75=(_0x5a0617(0xb2)+_0x4d5a81+'\x20'+(_0x1f6b0e||''))[_0x5a0617(0x10c)](),_0x2e77c9=_0x262add('_'+mi());return j(_0x3b250e,''+_0x4d5a81,{'defIds':_0x3b250e[_0x5a0617(0x7b)],'idSuffix':_0x2e77c9[_0x5a0617(0xb8)]},{'ref':_0x5920a2,'className':_0x4c0a75,..._0x2c6ed0},_0x585a07);}function j(_0x5e9aeb,_0x2478bc,_0x240f57,_0x4bd1a0,_0x195e3b){const _0x6770d0=_0x3fc7e2;return _0x5a02af(_0x5e9aeb[_0x6770d0(0xfc)],{'key':_0x2478bc,...hi(_0x5e9aeb,_0x240f57,_0x195e3b),..._0x4bd1a0},(gi(_0x5e9aeb,_0x240f57)['children']||[])[_0x6770d0(0xe7)]((_0x510f68,_0x1fec62)=>j(_0x510f68,_0x2478bc+'-'+_0x5e9aeb['tag']+'-'+_0x1fec62,_0x240f57,void 0x0,_0x195e3b)));}function hi(_0x20b404,_0x1724bf,_0x53584a){const _0x3b94fe=_0x3fc7e2,_0x1c41de={..._0x20b404['attrs']};_0x53584a!=null&&_0x53584a[_0x3b94fe(0x109)]&&_0x1c41de[_0x3b94fe(0x80)]==='colorChannel1'&&(_0x1c41de[_0x3b94fe(0x80)]=_0x53584a[_0x3b94fe(0x109)]),_0x20b404[_0x3b94fe(0xfc)]===_0x3b94fe(0xc9)&&_0x1c41de['id']&&(_0x1c41de['id']=_0x1c41de['id']+_0x1724bf['idSuffix']),Object['entries'](_0x1c41de)[_0x3b94fe(0x77)](([_0xf9eca4,_0x5410eb])=>{const _0x326c52=_0x3b94fe;_0xf9eca4==='mask'&&typeof _0x5410eb==_0x326c52(0x96)&&(_0x1c41de[_0xf9eca4]=_0x5410eb[_0x326c52(0x83)](/url\(#(.*)\)/,_0x326c52(0xa0)+_0x1724bf[_0x326c52(0x9d)]+')'));});const {defIds:_0x3efbd1}=_0x1724bf;return!_0x3efbd1||_0x3efbd1[_0x3b94fe(0xd3)]===0x0||(_0x20b404[_0x3b94fe(0xfc)]===_0x3b94fe(0xd5)&&_0x1c41de[_0x3b94fe(0xa6)]&&(_0x1c41de[_0x3b94fe(0xa6)]=_0x1c41de[_0x3b94fe(0xa6)]+_0x1724bf['idSuffix']),Object[_0x3b94fe(0xa5)](_0x1c41de)[_0x3b94fe(0x77)](([_0x4152d8,_0x2fbcfe])=>{const _0x337eed=_0x3b94fe;typeof _0x2fbcfe==_0x337eed(0x96)&&(_0x1c41de[_0x4152d8]=_0x2fbcfe[_0x337eed(0x83)](/url\(#(.*)\)/,_0x337eed(0xa0)+_0x1724bf['idSuffix']+')'));})),_0x1c41de;}function gi(_0xfddec7,_0x127177){const _0x43f865=_0x3fc7e2;var _0x5e7ccb;const {defIds:_0x465a70}=_0x127177;return!_0x465a70||_0x465a70[_0x43f865(0xd3)]===0x0?_0xfddec7:_0xfddec7['tag']===_0x43f865(0xf5)&&((_0x5e7ccb=_0xfddec7['children'])!=null&&_0x5e7ccb['length'])?{..._0xfddec7,'children':_0xfddec7[_0x43f865(0x79)][_0x43f865(0xe7)](_0x1a13bf=>typeof _0x1a13bf[_0x43f865(0xa2)]['id']==_0x43f865(0x96)&&_0x465a70&&_0x465a70[_0x43f865(0x8e)](_0x1a13bf[_0x43f865(0xa2)]['id'])?{..._0x1a13bf,'attrs':{..._0x1a13bf[_0x43f865(0xa2)],'id':_0x1a13bf['attrs']['id']+_0x127177[_0x43f865(0x9d)]}}:_0x1a13bf)}:_0xfddec7;}function mi(){const _0x4f8b90=_0x3fc7e2;return Math[_0x4f8b90(0xf4)]()['toString'](0x24)[_0x4f8b90(0x92)](0x2,0x8);}F['displayName']='UniverIcon';const vi={'tag':_0x3fc7e2(0x103),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3fc7e2(0x10b),'viewBox':_0x3fc7e2(0xde),'width':'1em','height':_0x3fc7e2(0x95)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x3fc7e2(0x89)},'children':[{'tag':_0x3fc7e2(0x73),'attrs':{'d':_0x3fc7e2(0xdc)}},{'tag':_0x3fc7e2(0x73),'attrs':{'d':_0x3fc7e2(0xe5)}}]},{'tag':_0x3fc7e2(0xf5),'attrs':{},'children':[{'tag':_0x3fc7e2(0xa8),'attrs':{'id':_0x3fc7e2(0xb7)},'children':[{'tag':_0x3fc7e2(0x73),'attrs':{'fill':'white','d':_0x3fc7e2(0xf0)}}]}]}],'defIds':[_0x3fc7e2(0xb7)]},V=_0x42e1d4(function(_0x414721,_0x2e2b0c){const _0x5d8cae=_0x3fc7e2;return _0x5a02af(F,Object[_0x5d8cae(0xb4)]({},_0x414721,{'id':_0x5d8cae(0xcc),'ref':_0x2e2b0c,'icon':vi}));});V[_0x3fc7e2(0xc4)]=_0x3fc7e2(0x9e);var di=Object['getOwnPropertyDescriptor'],fi=(_0x4be264,_0x251e5f,_0x4645da,_0x294e81)=>{for(var _0x53eea4=_0x294e81>0x1?void 0x0:_0x294e81?di(_0x251e5f,_0x4645da):_0x251e5f,_0xc13e42=_0x4be264['length']-0x1,_0x4d73be;_0xc13e42>=0x0;_0xc13e42--)(_0x4d73be=_0x4be264[_0xc13e42])&&(_0x53eea4=_0x4d73be(_0x53eea4)||_0x53eea4);return _0x53eea4;},l=(_0x500fd0,_0x5c04e)=>(_0x4a3e32,_0x53263f)=>_0x5c04e(_0x4a3e32,_0x53263f,_0x500fd0);const pi=_0x3fc7e2(0x7d),G=_0x3fc7e2(0xa7),d=_0x3fc7e2(0xbb);let f=class extends _0x39eb50{constructor(_0x477777,_0x2e7d8c,_0x5d26f4,_0x138d75,_0xbd6ae1,_0xd25ab6,_0x652a33,_0x441efb,_0x3c0e50,_0x3726f3){const _0x3432ee=_0x3fc7e2;super(),v(this,_0x3432ee(0x85),new _0x57890e(null)),v(this,_0x3432ee(0xc0),this[_0x3432ee(0x85)][_0x3432ee(0xab)]()),v(this,_0x3432ee(0x9b),new _0x16b2c7()),v(this,_0x3432ee(0xdb),new Map()),(this[_0x3432ee(0xe1)]=_0x477777,this['_univerInstanceService']=_0x2e7d8c,this[_0x3432ee(0x88)]=_0x5d26f4,this[_0x3432ee(0xe2)]=_0x138d75,this['_messageService']=_0xbd6ae1,this[_0x3432ee(0xe6)]=_0xd25ab6,this[_0x3432ee(0xf6)]=_0x652a33,this[_0x3432ee(0x9a)]=_0x441efb,this[_0x3432ee(0xcf)]=_0x3c0e50,this[_0x3432ee(0x113)]=_0x3726f3,this[_0x3432ee(0x87)]());}get[_0x3fc7e2(0x6e)](){const _0x33de26=_0x3fc7e2;return this[_0x33de26(0x85)][_0x33de26(0x97)];}[_0x3fc7e2(0x87)](){const _0x4acf34=_0x3fc7e2;this[_0x4acf34(0xb9)](),this['_initPlugins']();}[_0x3fc7e2(0xb9)](){const _0x70973a=_0x3fc7e2;var _0x2e177e;const _0x5ca0fb=(_0x2e177e=this[_0x70973a(0x88)][_0x70973a(0xb1)](G))!=null?_0x2e177e:pi,_0x7987dc=document[_0x70973a(0x111)](_0x5ca0fb);if(!_0x7987dc)return;const _0x575adb=document['createElement'](_0x70973a(0x75));_0x575adb['id']=d,_0x575adb[_0x70973a(0xf7)][_0x70973a(0x7a)]=_0x70973a(0xd7),_0x575adb[_0x70973a(0x93)][_0x70973a(0x86)]=_0x70973a(0xff),_0x575adb[_0x70973a(0x93)]['top']='0',_0x575adb['style'][_0x70973a(0xf2)]='0',_0x575adb[_0x70973a(0x93)][_0x70973a(0xbc)]=_0x70973a(0x7f),_0x575adb['style']['height']=_0x70973a(0x7f),_0x575adb[_0x70973a(0x93)][_0x70973a(0xe9)]=_0x70973a(0xda),_0x575adb[_0x70973a(0x93)][_0x70973a(0x76)]=_0x70973a(0x10b),_0x7987dc[_0x70973a(0xca)](_0x575adb);}[_0x3fc7e2(0xc8)](){const _0x2ad014=_0x3fc7e2;var _0x287bd0,_0x4fe9a0,_0x44b471,_0x58fb4a;[[_0x25a5ee],[_0x3392ef,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x56af39,null]]}],[_0x1cc128],[_0x188647,{'override':[[_0x59c6d1,null]]}],[_0x15b75c,{'hasScroll':!0x1}],[_0x68837e],[_0x25e0c2],[_0x4bf579,{'notExecuteFormula':!0x0}],[_0x4699b4],[_0xd2cee6],[_0x1d1ee0],[_0x704b6b],[_0x3fdc50],[_0x39c6cf],[_0x215ffe],[_0x49ba98],[_0x1c08e1],[_0x18fafd],[_0x178c4d],[_0x102a5a],[_0x2a1790],[_0x43f154,{'notExecuteFormula':!0x0}],[_0x292678,{'workerURL':(_0x4fe9a0=(_0x287bd0=this['_configService'][_0x2ad014(0xb1)](_0x5b2b36))==null?void 0x0:_0x287bd0[_0x2ad014(0x101)])!=null?_0x4fe9a0:'./worker.js'}],[_0x555aa4],[_0x5f30cc],[_0xfd1dc7],[_0x261e28],[_0x336a72],[_0x530fe3],[_0xb08fe6],[_0x4c12aa],[_0x28ed48],[_0x51ad0f,{'notExecuteFormula':!0x0}],[_0x589a63,{'historyListServerUrl':(_0x44b471=this['_configService'][_0x2ad014(0xb1)](U))==null?void 0x0:_0x44b471['historyListServerUrl'],'historyPanelComponentKey':(_0x58fb4a=this['_configService'][_0x2ad014(0xb1)](U))==null?void 0x0:_0x58fb4a[_0x2ad014(0xc3)]}]][_0x2ad014(0x77)](([_0x4916c0,_0x1d41e3])=>this[_0x2ad014(0xad)](_0x4916c0,_0x1d41e3));}[_0x3fc7e2(0xaf)](){const _0x3312e=_0x3fc7e2;super['dispose'](),this[_0x3312e(0xf8)](),this[_0x3312e(0xdb)][_0x3312e(0xa3)]();}[_0x3fc7e2(0xad)](_0xb816d3,_0x4ee610,_0x13a71b){const _0x2d3694=_0x3fc7e2;if(this['_pluginMap'][_0x2d3694(0x8a)](_0xb816d3[_0x2d3694(0x110)])&&!_0x13a71b)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0xb816d3['pluginName']+_0x2d3694(0xe3));this['_pluginMap'][_0x2d3694(0xfa)](_0xb816d3[_0x2d3694(0x110)],[_0xb816d3,_0x4ee610]);}[_0x3fc7e2(0xae)](){const _0x156b87=_0x3fc7e2;return Array[_0x156b87(0x72)](this[_0x156b87(0xdb)][_0x156b87(0xa4)]());}[_0x3fc7e2(0x7e)](_0x5c0b99){const _0x1a8e85=_0x3fc7e2,_0x2d7c7d=document[_0x1a8e85(0x111)](d);_0x2d7c7d&&(_0x2d7c7d[_0x1a8e85(0x93)][_0x1a8e85(0x76)]=_0x1a8e85(0xc2),this[_0x1a8e85(0xac)](_0x5c0b99,d));}[_0x3fc7e2(0xf8)](){const _0x99b386=_0x3fc7e2;var _0x32dc3d;this[_0x99b386(0x9b)]['dispose'](),(_0x32dc3d=this['historyUniver'])==null||_0x32dc3d[_0x99b386(0xaf)](),this[_0x99b386(0x85)]['next'](null);const _0x28abe1=document['getElementById'](d);_0x28abe1&&(_0x28abe1[_0x99b386(0x93)][_0x99b386(0x76)]=_0x99b386(0x10b));}[_0x3fc7e2(0xac)](_0x4f7a9c,_0x587768){const _0x1fbc8b=_0x3fc7e2;if(this[_0x1fbc8b(0x6e)])return;const _0x2a5a53=new _0x49f66a({'locales':{[this[_0x1fbc8b(0xe1)][_0x1fbc8b(0xc6)]()]:this[_0x1fbc8b(0xe1)][_0x1fbc8b(0x107)]()},'override':[[_0xe01fa9,{'useClass':_0x21883c}]]}),_0x1321d4=_0x2a5a53['__getInjector']();this[_0x1fbc8b(0x82)](this[_0x1fbc8b(0x113)][_0x1fbc8b(0xd8)][_0x1fbc8b(0xf1)](_0xe243d6=>{const _0x56f3e4=_0x1fbc8b;_0x1321d4['get'](_0x2d319b)[_0x56f3e4(0x8f)](_0xe243d6);})),this[_0x1fbc8b(0x82)](this[_0x1fbc8b(0x113)][_0x1fbc8b(0x10f)][_0x1fbc8b(0xf1)](_0x22e0e4=>{const _0x17a4f5=_0x1fbc8b;_0x1321d4[_0x17a4f5(0x74)](_0x2d319b)['setTheme'](_0x22e0e4);})),_0x1321d4[_0x1fbc8b(0x74)](_0xe9c007)['setLocale'](this['_localeService']['getCurrentLocale']()),_0x1321d4['get'](_0x1b605d)[_0x1fbc8b(0x104)](_0x3abed0,this[_0x1fbc8b(0x88)][_0x1fbc8b(0xb1)](_0x3abed0));const _0x21221a=this[_0x1fbc8b(0x88)]['getConfig'](_0x4a1f91);_0x21221a&&_0x2a5a53[_0x1fbc8b(0xad)](_0x567e6d,{'license':_0x21221a['ls']}),this[_0x1fbc8b(0xdb)][_0x1fbc8b(0x77)](([_0x23a2cf,_0x19b00e])=>{const _0xbdac58=_0x1fbc8b;_0x2a5a53[_0xbdac58(0xad)](_0x23a2cf,_0x19b00e);}),_0x1321d4['invoke'](_0x1f791c=>{const _0x1c267e=_0x1fbc8b;this[_0x1c267e(0xf3)](_0x1f791c,_0x4f7a9c);}),this[_0x1fbc8b(0x85)]['next'](_0x2a5a53);const _0x40ce71=_0x1321d4[_0x1fbc8b(0x74)](_0x256127),_0x222ec6=this[_0x1fbc8b(0xc5)](_0x4f7a9c);_0x40ce71['triggerLoadVersions'](_0x4f7a9c,_0x587768,_0x222ec6);}[_0x3fc7e2(0xf3)](_0x2e505a,_0x374bbe){const _0x451eae=_0x3fc7e2,_0x3dc014=_0x2e505a[_0x451eae(0x74)](_0x256127);this['_disposableCollection'][_0x451eae(0x105)](_0x3dc014[_0x451eae(0x91)][_0x451eae(0xf1)](_0x49a56a=>{const _0xbb01be=_0x451eae;switch(_0x49a56a){case _0x55e35e[_0xbb01be(0xe8)]:this[_0xbb01be(0x9a)][_0xbb01be(0x10d)](),this[_0xbb01be(0xcf)][_0xbb01be(0x9c)]();break;case _0x55e35e[_0xbb01be(0xb3)]:this[_0xbb01be(0xe2)]['executeCommand'](W['id']),this[_0xbb01be(0xf8)]();break;case _0x55e35e['Error']:this['unMountHistoryContent'](),this[_0xbb01be(0xdf)]['show']({'content':this['_localeService']['t'](_0xbb01be(0xfd)),'type':_0x5c43ed['Error'],'duration':0xbb8});break;}})),this[_0x451eae(0x9b)][_0x451eae(0x105)](_0x3dc014['revertRevision$']['subscribe'](async _0x4e8e7f=>{const _0x3b6995=_0x451eae;_0x4e8e7f&&this[_0x3b6995(0xe2)]['executeCommand'](_0x1f8e06['id'],{'unitId':_0x374bbe,'revision':_0x4e8e7f});}));}[_0x3fc7e2(0xc5)](_0x1712d3){const _0x28dd57=_0x3fc7e2,_0xa27bfc=this[_0x28dd57(0x112)][_0x28dd57(0x114)](_0x1712d3)[_0x28dd57(0x81)]()[_0x28dd57(0xe7)](_0x224ab7=>_0x224ab7['getSheetId']()),_0x5b05c3=new _0x5e5b38(_0x1712d3)['id'],_0x1c44d8=_0xa27bfc['map'](_0x199147=>new _0x2cb3d7(_0x1712d3,_0x199147)['id']),_0xa14dce=_0xa27bfc[_0x28dd57(0xe7)](_0x3cbb1f=>this['_selectionProtectionRuleModel'][_0x28dd57(0x78)](_0x1712d3,_0x3cbb1f)[_0x28dd57(0xe7)](_0x32d461=>new _0x1eb021(_0x1712d3,_0x3cbb1f,_0x32d461[_0x28dd57(0xd1)])['id']))[_0x28dd57(0x84)](),_0x4bb1f=new _0x4008f2(_0x1712d3)['id'];return this[_0x28dd57(0xe6)][_0x28dd57(0xb5)]([_0x5b05c3,..._0x1c44d8,..._0xa14dce,_0x4bb1f])[_0x28dd57(0x8d)](_0x59fb5b=>!!_0x59fb5b[_0x28dd57(0x97)]);}};f=fi([l(0x0,_0x5f4f25(_0xe9c007)),l(0x1,_0x978fe9),l(0x2,_0x1b605d),l(0x3,_0x1284ee),l(0x4,_0x263af9),l(0x5,_0x3d92b4),l(0x6,_0x5f4f25(_0x1c9c5d)),l(0x7,_0x5f4f25(_0x56af39)),l(0x8,_0x5f4f25(_0x3fc635)),l(0x9,_0x5f4f25(_0x2d319b))],f);const b={'id':_0x3fc7e2(0x106),'type':_0x1b2c46[_0x3fc7e2(0xc1)],'handler':_0x58b4f9=>{const _0x42f0a2=_0x3fc7e2,_0x116b30=_0x58b4f9[_0x42f0a2(0x74)](f),_0x3e11ae=_0x58b4f9[_0x42f0a2(0x74)](_0x978fe9),{unitId:_0xb877aa}=_0x2dcc42(_0x3e11ae)||{};return _0xb877aa?(_0x116b30[_0x42f0a2(0x7e)](_0xb877aa),!0x0):!0x1;}},W={'id':_0x3fc7e2(0xea),'type':_0x1b2c46[_0x3fc7e2(0xc1)],'handler':()=>!0x0};function _i(_0x2e7da9){const _0x5c800a=_0x3fc7e2;return{'id':b['id'],'type':_0x481abb[_0x5c800a(0xaa)],'icon':_0x5c800a(0x9e),'tooltip':_0x5c800a(0xb6),'hidden$':_0x4c7d08(_0x2e7da9,_0x44f89f[_0x5c800a(0x94)]),'disabled$':_0x50b6b0(_0x2e7da9,{'workbookTypes':[_0x5e5b38,_0xf56348],'worksheetTypes':[],'rangeTypes':[]})};}const Si={[_0x5cce86['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':_i}}};var Ci=Object[_0x3fc7e2(0xef)],yi=(_0x2de25c,_0x71d69,_0x1d3505,_0x236f22)=>{const _0x3af2c9=_0x3fc7e2;for(var _0x4dc14e=_0x236f22>0x1?void 0x0:_0x236f22?Ci(_0x71d69,_0x1d3505):_0x71d69,_0x3781f2=_0x2de25c[_0x3af2c9(0xd3)]-0x1,_0xe0f6e4;_0x3781f2>=0x0;_0x3781f2--)(_0xe0f6e4=_0x2de25c[_0x3781f2])&&(_0x4dc14e=_0xe0f6e4(_0x4dc14e)||_0x4dc14e);return _0x4dc14e;},g=(_0x2eeb2b,_0x1f1887)=>(_0x23773b,_0x8b24fe)=>_0x1f1887(_0x23773b,_0x8b24fe,_0x2eeb2b);let p=class extends _0xb246b5{constructor(_0x10c402,_0x2f24ff,_0x43460e,_0x393b16,_0x5bfb81,_0x382581,_0x4258b4,_0x3f1d04){const _0xed89db=_0x3fc7e2;super(),v(this,_0xed89db(0xd9),null),(this[_0xed89db(0xe2)]=_0x10c402,this[_0xed89db(0x102)]=_0x2f24ff,this[_0xed89db(0x8b)]=_0x43460e,this[_0xed89db(0x10a)]=_0x393b16,this[_0xed89db(0xe1)]=_0x5bfb81,this[_0xed89db(0xdf)]=_0x382581,this[_0xed89db(0x8c)]=_0x4258b4,this[_0xed89db(0x71)]=_0x3f1d04,this[_0xed89db(0x87)]());}[_0x3fc7e2(0x87)](){const _0x5b7d98=_0x3fc7e2;[b,W]['forEach'](_0x222e31=>this['disposeWithMe'](_0x4695c0(this[_0x5b7d98(0xe2)][_0x5b7d98(0x7c)](_0x222e31)))),this[_0x5b7d98(0x82)](this[_0x5b7d98(0x8b)][_0x5b7d98(0xf9)]('HistoryIcon',V)),this[_0x5b7d98(0x102)][_0x5b7d98(0xfe)](Si),this['disposeWithMe'](this[_0x5b7d98(0xe2)][_0x5b7d98(0xd4)](_0x3182b1=>{const _0x357551=_0x5b7d98;if(_0x3182b1['id']===_0x1f8e06['id']){this[_0x357551(0xdf)][_0x357551(0xd6)]({'content':this[_0x357551(0xe1)]['t']('editHistory.panel.reverting'),'type':_0x5c43ed['Loading'],'duration':0x1388});const {unitId:_0x4467ec}=_0x3182b1[_0x357551(0xec)],_0x1ed2e9=this[_0x357551(0x8c)][_0x357551(0x70)](_0x4467ec),_0x406603=_0xe64adb([_0x1ed2e9['session'][_0x357551(0x98)],_0x1ed2e9[_0x357551(0xb0)]])[_0x357551(0xf1)](async([_0x5e0cad,_0x55cecc])=>{const _0x44251d=_0x357551;var _0x14b1d8;_0x5e0cad['eventID']===_0x3cbc56['CHANGESET_ACK']&&(_0x55cecc==null?void 0x0:_0x55cecc['status'])===_0x5d8f04[_0x44251d(0xce)]&&_0x5e0cad['data']['mutations']['some'](_0x2a5b2d=>_0x2a5b2d['id']===_0x1f8e06['id'])&&(this['_historyManagerService'][_0x44251d(0xf8)](),_0x406603[_0x44251d(0xee)](),this['_revertErrorTimer']&&clearTimeout(this[_0x44251d(0xd9)]),await((_0x14b1d8=this[_0x44251d(0x71)])==null?void 0x0:_0x14b1d8[_0x44251d(0xeb)]()),setTimeout(()=>window['location'][_0x44251d(0x10e)]()));});this[_0x357551(0xd9)]=setTimeout(()=>{const _0x6c3231=_0x357551;_0x406603[_0x6c3231(0xee)](),this[_0x6c3231(0xdf)][_0x6c3231(0xd6)]({'content':this[_0x6c3231(0xe1)]['t'](_0x6c3231(0x100)),'type':_0x5c43ed['Error'],'duration':0xbb8});},0x1388);}}));}};function _0x2601(){const _0x48ec82=['SYNCED','_sidebarService','403964mlaWIy','permissionId','menu','length','onCommandExecuted','use','show','history-container','darkMode$','_revertErrorTimer','1000','_pluginMap','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','onSteady','0\x200\x2016\x2016','_messageService','41256tlgPYo','_localeService','_commandService','\x20has\x20been\x20registered.','2289DVHCQd','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','_permissionService','map','Entered','zIndex','univer.operation.exit-edit-history','exhaustSavingTask','params','defineProperty','unsubscribe','getOwnPropertyDescriptor','M0\x200H16V16H0z','subscribe','left','_initListener','random','defs','_selectionProtectionRuleModel','dataset','unMountHistoryContent','register','set','304270IGlfYE','tag','editHistory.panel.listFetchError','mergeMenu','absolute','editHistory.panel.revertFailed','workerURL','_menuManagerService','svg','setConfig','add','univer.operation.toggle-edit-history','getLocales','type','colorChannel1','_historyManagerService','none','trim','closeAll','reload','currentTheme$','pluginName','getElementById','_univerInstanceService','_themeService','getUnit','106376FIiLPs','historyUniver','_injector','getCollabEntity','_localCacheService','from','path','get','div','display','forEach','getSubunitRuleList','children','uComp','defIds','registerCommand','univer-container','mountHistoryContent','100%','fill','getSheets','disposeWithMe','replace','flat','_historyUniver$','position','_init','_configService','url(#history-icon_clip0_907_281)','has','_componentManager','_collaborationController','every','includes','setDarkMode','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','status$','substring','style','UNIVER_SHEET','1em','string','value','event$','27XYApnp','_dialogService','_disposableCollection','close','idSuffix','HistoryIcon','124kqcCAl','url(#$1','symbol','attrs','clear','values','entries','xlink:href','UNIVER_CONTAINER_ID','clipPath','435DmwVos','BUTTON','asObservable','_initUniver','registerPlugin','getAllPlugins','dispose','state$','getConfig','univerjs-icon\x20univerjs-icon-','Exited','assign','composePermission','editHistory.panel.title','history-icon_clip0_907_281','current','_initContainer','univerContainerId','univer-history-container','width','16494tJcKCW','144JuWJct','324uEPjhF','historyUniver$','OPERATION','block','historyPanelComponentKey','displayName','_checkCanRevert','getCurrentLocale','UNIVER_UNKNOWN','_initPlugins','mask','appendChild','_config','history-icon','202538jVvijN'];_0x2601=function(){return _0x48ec82;};return _0x2601();}p=yi([g(0x0,_0x1284ee),g(0x1,_0x792166),g(0x2,_0x5f4f25(_0x534cb9)),g(0x3,_0x5f4f25(f)),g(0x4,_0x5f4f25(_0xe9c007)),g(0x5,_0x263af9),g(0x6,_0x5f4f25(_0x395672)),g(0x7,_0x296ec6)],p);var Ii=Object[_0x3fc7e2(0xed)],Ui=Object[_0x3fc7e2(0xef)],Pi=(_0xf21529,_0x430d22,_0xebbf89)=>_0x430d22 in _0xf21529?Ii(_0xf21529,_0x430d22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xebbf89}):_0xf21529[_0x430d22]=_0xebbf89,Ei=(_0x3cd3de,_0x21434a,_0x4a720e,_0xdfe997)=>{const _0x566bd1=_0x3fc7e2;for(var _0x3504c5=_0xdfe997>0x1?void 0x0:_0xdfe997?Ui(_0x21434a,_0x4a720e):_0x21434a,_0x4d6570=_0x3cd3de[_0x566bd1(0xd3)]-0x1,_0x298cdc;_0x4d6570>=0x0;_0x4d6570--)(_0x298cdc=_0x3cd3de[_0x4d6570])&&(_0x3504c5=_0x298cdc(_0x3504c5)||_0x3504c5);return _0x3504c5;},R=(_0xe53ea2,_0x2c19ae)=>(_0x5499c9,_0x5968a7)=>_0x2c19ae(_0x5499c9,_0x5968a7,_0xe53ea2),K=(_0x624980,_0x810b01,_0x3d33fd)=>Pi(_0x624980,typeof _0x810b01!=_0x3fc7e2(0xa1)?_0x810b01+'':_0x810b01,_0x3d33fd);const bi=_0x3fc7e2(0x90);let _=class extends _0x4309fe{constructor(_0x183e9f=N,_0x15f965,_0x4e4567){const _0x1a8734=_0x3fc7e2;super(),this['_config']=_0x183e9f,this[_0x1a8734(0x6f)]=_0x15f965,this[_0x1a8734(0x88)]=_0x4e4567;const {menu:_0x26a399,..._0xe214a}=_0x450a83({},N,this[_0x1a8734(0xcb)]);_0x26a399&&this[_0x1a8734(0x88)][_0x1a8734(0x104)](_0x1a8734(0xd2),_0x26a399,{'merge':!0x0}),this[_0x1a8734(0x88)][_0x1a8734(0x104)](U,_0xe214a),this[_0x1a8734(0xcb)][_0x1a8734(0xba)]&&this[_0x1a8734(0x88)][_0x1a8734(0x104)](G,this[_0x1a8734(0xcb)][_0x1a8734(0xba)]);}['onStarting'](){const _0x3c95dc=_0x3fc7e2;[[f],[p]][_0x3c95dc(0x77)](_0x2e73df=>this[_0x3c95dc(0x6f)]['add'](_0x2e73df));}[_0x3fc7e2(0xdd)](){const _0x28fee8=_0x3fc7e2;this[_0x28fee8(0x6f)]['get'](p);}};K(_,_0x3fc7e2(0x108),_0x44f89f[_0x3fc7e2(0xc7)]),K(_,_0x3fc7e2(0x110),bi),_=Ei([_0x1f7b30(_0x567e6d),R(0x1,_0x5f4f25(_0x5ac2af)),R(0x2,_0x1b605d)],_);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,_ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x4f0284=_0x5e39;(function(_0x594f82,_0x2764ea){const _0x3df591=_0x5e39,_0x5ccc75=_0x594f82();while(!![]){try{const _0x4687c9=-parseInt(_0x3df591(0x10d))/0x1+-parseInt(_0x3df591(0x1a5))/0x2*(-parseInt(_0x3df591(0x172))/0x3)+-parseInt(_0x3df591(0x17f))/0x4*(parseInt(_0x3df591(0x18d))/0x5)+parseInt(_0x3df591(0x161))/0x6*(-parseInt(_0x3df591(0x171))/0x7)+parseInt(_0x3df591(0x12f))/0x8+parseInt(_0x3df591(0x131))/0x9+-parseInt(_0x3df591(0x137))/0xa*(-parseInt(_0x3df591(0x13a))/0xb);if(_0x4687c9===_0x2764ea)break;else _0x5ccc75['push'](_0x5ccc75['shift']());}catch(_0x3f30f7){_0x5ccc75['push'](_0x5ccc75['shift']());}}}(_0x2c85,0xb9e15));var oe=Object[_0x4f0284(0x11a)],se=(_0x554772,_0x2efce2,_0x15a3ec)=>_0x2efce2 in _0x554772?oe(_0x554772,_0x2efce2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15a3ec}):_0x554772[_0x2efce2]=_0x15a3ec,v=(_0x4d3d05,_0x3b3fa4,_0x3c5879)=>se(_0x4d3d05,typeof _0x3b3fa4!=_0x4f0284(0x162)?_0x3b3fa4+'':_0x3b3fa4,_0x3c5879);import{LS_CONFIG_KEY as _0x909c77,UniverLicensePlugin as _0x5f5003}from'@univerjs-pro/license';import{Inject as _0x1e0725,LocaleService as _0x1fee5e,ThemeService as _0x2ab5f1,Disposable as _0x25b64c,DisposableCollection as _0x2eecc5,Univer as _0x4def29,IAuthzIoService as _0x45c56d,IConfigService as _0x27d8c3,IUniverInstanceService as _0x25eb66,ICommandService as _0x1cc320,IPermissionService as _0x368d9c,CommandType as _0x3149b3,UniverInstanceType as _0x35b0f6,RxDisposable as _0x1db88e,toDisposable as _0x3c8c0f,Workbook as _0x51eadd,DependentOn as _0xbb9171,Injector as _0x53466a,Plugin as _0x1ba6f1,merge as _0x58a321}from'@univerjs/core';import{UniverCollaborationPlugin as _0x142f90,RevertRevisionMutation as _0xe3ec52,CollaborationEvent as _0x4e66db}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x130b36,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1f8e00,CollaborationController as _0x139566,DataLoaderService as _0x368be7,CollaborationStatus as _0x36c762,ILocalCacheService as _0x578178}from'@univerjs-pro/collaboration-client';import{IURLService as _0x5cace3}from'@univerjs-pro/collaboration-client-ui';import{MessageType as _0x3450ca}from'@univerjs/design';import{useRef as _0x4adf5f,createElement as _0x5aeb84,forwardRef as _0x14618b}from'react';import{RangeProtectionRuleModel as _0x21c543,UniverSheetsPlugin as _0x2c8501,WorkbookEditablePermission as _0xcb7193,WorksheetEditPermission as _0x2d3262,RangeProtectionPermissionEditPoint as _0x5025e9,WorkbookRecoverHistoryPermission as _0x440aee,getSheetCommandTarget as _0x396527,WorkbookViewHistoryPermission as _0xe69d64,SetWorksheetActivateCommand as _0x25e165}from'@univerjs/sheets';function _0x2c85(){const _0x531b27=['substring','_initContainer','UNIVER_DOC','display','register','replace','_sidebarService','type','_initListener','getSubunitRuleList','width','xlink:href','14436uASfuU','symbol','_componentManager','next','getParam','editHistory.panel.title','block','_dataLoaderService','_selectionProtectionRuleModel','OPERATION','position','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','historyUniver','getCurrentLocale','historyPanelComponentKey','get','252hJcseZ','87PxRSif','pluginName','setLocale','_revertErrorTimer','subscribe','defs','show','value','asObservable','unMountHistoryContent','revertRevision$','getUnhiddenWorksheets','Error','92364SgPOkR','HistoryIcon','setParam','getActiveSheet','historyListServerUrl','flat','dispose$','Exited','_config','_checkCanRevert','trim','appendChild','_localCacheService','dataset','255jsZIiy','editHistory.panel.reverting','setTheme','100%','_localeService','_univerInstanceService','eventID','getSheetBySheetId','getElementById','executeCommand','UNIVER_CONTAINER_ID','has','_init','editHistory.panel.revertFailed','onCommandExecuted','_commandService','mask','__getInjector','attrs','div','history-icon','displayName','tag','_pluginMap','73142VXdecF','_messageService','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','historyUniver$','children','univer.operation.toggle-edit-history','includes','UNIVER_UNKNOWN','some','then','white','length','_historyManagerService','UNIVER_PROJECT','_menuManagerService','fill','historyAIassistantEnabled','_urlService','_configService','_injector','1em','triggerLoadVersions','getCollabEntity','add','url(#history-icon_clip0_907_281)','random','exhaustSavingTask','map','forEach','uComp','loadUnit','composePermission','_themeService','univer.operation.exit-edit-history','createElement','Entered','colorChannel1','permissionId','set','assign','1338648OHNPxz','getSheetId','whenReady','http://www.w3.org/2000/svg','getLocales','getUnitId','url(#$1','setConfig','UNRECOGNIZED','univer-history-container','_setupSubUnitSync','toString','clear','defineProperty','subunit','status$','every','string','close','CHANGESET_ACK','style','onSteady','idSuffix','values','absolute','history-icon_clip0_907_281','_historyUniver$','entries','registerCommand','location','params','getSheets','mountHistoryContent','UNIVER_SHEET','104568WdaxoD','M0\x200H16V16H0z','11624184nbhaEy','_handleRevertAcknowledgement','_initPlugins','_collaborationController','getOwnPropertyDescriptor','Loading','440BmYlWB','current','historyPanelHidden','249766AcYpQE','activeSheet$','getAllPlugins','path','pipe','registerPlugin','_updateSubUnitFromURLParams','dispose','disposeUnit','UNIVER_SLIDE','_disposableCollection','_dialogService','_updateURLWithCurrentState','disposeWithMe','status','univer-container','left','setDarkMode','univerjs-icon\x20univerjs-icon-','closeAll','state$','unsubscribe','none','getUnit','workerURL','getConfig','BUTTON'];_0x2c85=function(){return _0x531b27;};return _0x2c85();}import{IDialogService as _0x28a7d4,ISidebarService as _0x4c663d,UniverUIPlugin as _0x5d9d78,IMessageService as _0x567c56,MenuItemType as _0x247b3b,getMenuHiddenObservable as _0x2a24a8,RibbonStartGroup as _0xd1aebe,ComponentManager as _0x1b6d11,IMenuManagerService as _0x1dcef5}from'@univerjs/ui';import{BehaviorSubject as _0x39b41,combineLatest as _0x5bbc1f,takeUntil as _0x4d1886}from'rxjs';import{UniverEditHistoryViewerPlugin as _0xd2e0ef,HistoryManagerService as _0x4dcebc,HistoryModeStatus as _0x1f4ef7}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsChartPlugin as _0x232475}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x5a9be4}from'@univerjs-pro/sheets-chart-ui';function _0x5e39(_0x56d6fe,_0x1811d3){_0x56d6fe=_0x56d6fe-0x102;const _0x2c85f4=_0x2c85();let _0x5e39a9=_0x2c85f4[_0x56d6fe];return _0x5e39a9;}import{UniverSheetsPivotTablePlugin as _0x503417}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x243317}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x356066}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0xfbc00f}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xe9ecd3}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1658a3}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x4f8cf1}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x19299c}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x53bc9b,IImageIoService as _0x28f548}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1c46f4}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x510324}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x345b45}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x529eb3}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x160bff,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x401e9f,IRemoteInstanceService as _0x54ba54}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x471a5a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x44af65}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x52ed18}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x33b9a7}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xd5db7b}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x49e22e}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x37bab4}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x131389}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xd7e8ec}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x6de86c}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xdaab3a}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x3eea51}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x23ce51}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x58f53e}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x2387a8,getCurrentRangeDisable$ as _0x47e68c}from'@univerjs/sheets-ui';const f='edit-history-loader.config',W={};function Q({ref:_0x3e30f3,..._0xf3d407}){const _0x250a71=_0x4f0284,{icon:_0x1ca0df,id:_0x3b2a8f,className:_0x14315c,extend:_0x5dec0d,..._0x3ac019}=_0xf3d407,_0x3debd5=(_0x250a71(0x14c)+_0x3b2a8f+'\x20'+(_0x14315c||''))[_0x250a71(0x189)](),_0xe15d66=_0x4adf5f('_'+Ht());return X(_0x1ca0df,''+_0x3b2a8f,{'defIds':_0x1ca0df['defIds'],'idSuffix':_0xe15d66[_0x250a71(0x138)]},{'ref':_0x3e30f3,'className':_0x3debd5,..._0x3ac019},_0x5dec0d);}function X(_0x2db814,_0x4de5a4,_0x2fc75f,_0x1c52fd,_0x1e8136){const _0x2a9024=_0x4f0284;return _0x5aeb84(_0x2db814[_0x2a9024(0x1a3)],{'key':_0x4de5a4,...Nt(_0x2db814,_0x2fc75f,_0x1e8136),..._0x1c52fd},(Lt(_0x2db814,_0x2fc75f)['children']||[])[_0x2a9024(0x1c0)]((_0x33b8b5,_0xd96cd8)=>X(_0x33b8b5,_0x4de5a4+'-'+_0x2db814[_0x2a9024(0x1a3)]+'-'+_0xd96cd8,_0x2fc75f,void 0x0,_0x1e8136)));}function Nt(_0x4e70ca,_0x980670,_0x63e02b){const _0x167859=_0x4f0284,_0x4c1ec5={..._0x4e70ca[_0x167859(0x19f)]};_0x63e02b!=null&&_0x63e02b[_0x167859(0x109)]&&_0x4c1ec5[_0x167859(0x1b4)]===_0x167859(0x109)&&(_0x4c1ec5['fill']=_0x63e02b[_0x167859(0x109)]),_0x4e70ca[_0x167859(0x1a3)]===_0x167859(0x19d)&&_0x4c1ec5['id']&&(_0x4c1ec5['id']=_0x4c1ec5['id']+_0x980670[_0x167859(0x123)]),Object[_0x167859(0x128)](_0x4c1ec5)[_0x167859(0x1c1)](([_0x4ac152,_0x2d4c97])=>{const _0x49ae1b=_0x167859;_0x4ac152==='mask'&&typeof _0x2d4c97=='string'&&(_0x4c1ec5[_0x4ac152]=_0x2d4c97[_0x49ae1b(0x15a)](/url\(#(.*)\)/,_0x49ae1b(0x113)+_0x980670['idSuffix']+')'));});const {defIds:_0x1c0cbe}=_0x980670;return!_0x1c0cbe||_0x1c0cbe[_0x167859(0x1b0)]===0x0||(_0x4e70ca[_0x167859(0x1a3)]==='use'&&_0x4c1ec5[_0x167859(0x160)]&&(_0x4c1ec5[_0x167859(0x160)]=_0x4c1ec5[_0x167859(0x160)]+_0x980670[_0x167859(0x123)]),Object['entries'](_0x4c1ec5)[_0x167859(0x1c1)](([_0x30d7da,_0x15ac0c])=>{const _0x512b0d=_0x167859;typeof _0x15ac0c==_0x512b0d(0x11e)&&(_0x4c1ec5[_0x30d7da]=_0x15ac0c[_0x512b0d(0x15a)](/url\(#(.*)\)/,_0x512b0d(0x113)+_0x980670['idSuffix']+')'));})),_0x4c1ec5;}function Lt(_0xd5f282,_0x4c36cf){const _0x423c8a=_0x4f0284;var _0x590918;const {defIds:_0xfb8a8}=_0x4c36cf;return!_0xfb8a8||_0xfb8a8['length']===0x0?_0xd5f282:_0xd5f282[_0x423c8a(0x1a3)]===_0x423c8a(0x177)&&((_0x590918=_0xd5f282[_0x423c8a(0x1a9)])!=null&&_0x590918[_0x423c8a(0x1b0)])?{..._0xd5f282,'children':_0xd5f282[_0x423c8a(0x1a9)][_0x423c8a(0x1c0)](_0x3d2b38=>typeof _0x3d2b38[_0x423c8a(0x19f)]['id']=='string'&&_0xfb8a8&&_0xfb8a8[_0x423c8a(0x1ab)](_0x3d2b38[_0x423c8a(0x19f)]['id'])?{..._0x3d2b38,'attrs':{..._0x3d2b38['attrs'],'id':_0x3d2b38[_0x423c8a(0x19f)]['id']+_0x4c36cf[_0x423c8a(0x123)]}}:_0x3d2b38)}:_0xd5f282;}function Ht(){const _0x17e2b8=_0x4f0284;return Math[_0x17e2b8(0x1be)]()[_0x17e2b8(0x118)](0x24)[_0x17e2b8(0x155)](0x2,0x8);}Q[_0x4f0284(0x1a2)]='UniverIcon';const Mt={'tag':'svg','attrs':{'xmlns':_0x4f0284(0x110),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4f0284(0x1b9),'height':_0x4f0284(0x1b9)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x4f0284(0x1bd)},'children':[{'tag':_0x4f0284(0x13d),'attrs':{'d':_0x4f0284(0x16c)}},{'tag':_0x4f0284(0x13d),'attrs':{'d':_0x4f0284(0x1a7)}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4f0284(0x126)},'children':[{'tag':_0x4f0284(0x13d),'attrs':{'fill':_0x4f0284(0x1af),'d':_0x4f0284(0x130)}}]}]}],'defIds':[_0x4f0284(0x126)]},ee=_0x14618b(function(_0x2975e0,_0x49499b){const _0x4a9ec2=_0x4f0284;return _0x5aeb84(Q,Object[_0x4a9ec2(0x10c)]({},_0x2975e0,{'id':_0x4a9ec2(0x1a1),'ref':_0x49499b,'icon':Mt}));});ee[_0x4f0284(0x1a2)]=_0x4f0284(0x180);var b=(_0x1571b7=>(_0x1571b7[_0x1571b7['UNIVER_UNKNOWN']=0x0]=_0x4f0284(0x1ac),_0x1571b7[_0x1571b7['UNIVER_DOC']=0x1]=_0x4f0284(0x157),_0x1571b7[_0x1571b7[_0x4f0284(0x12e)]=0x2]=_0x4f0284(0x12e),_0x1571b7[_0x1571b7[_0x4f0284(0x143)]=0x3]=_0x4f0284(0x143),_0x1571b7[_0x1571b7[_0x4f0284(0x1b2)]=0x4]=_0x4f0284(0x1b2),_0x1571b7[_0x1571b7[_0x4f0284(0x115)]=-0x1]=_0x4f0284(0x115),_0x1571b7))(b||{}),Ot=Object[_0x4f0284(0x135)],wt=(_0x2d6748,_0x711ccc,_0x3aa420,_0x3f64b2)=>{const _0x3f3bb3=_0x4f0284;for(var _0x152289=_0x3f64b2>0x1?void 0x0:_0x3f64b2?Ot(_0x711ccc,_0x3aa420):_0x711ccc,_0x30a0ea=_0x2d6748[_0x3f3bb3(0x1b0)]-0x1,_0xec07ed;_0x30a0ea>=0x0;_0x30a0ea--)(_0xec07ed=_0x2d6748[_0x30a0ea])&&(_0x152289=_0xec07ed(_0x152289)||_0x152289);return _0x152289;},g=(_0x52c5e5,_0x5dceab)=>(_0x306a42,_0x55b47b)=>_0x5dceab(_0x306a42,_0x55b47b,_0x52c5e5);const Dt=_0x4f0284(0x149),te=_0x4f0284(0x197),_=_0x4f0284(0x116);let S=class extends _0x25b64c{constructor(_0x6568bf,_0x21f094,_0x19860e,_0x5210a7,_0x3247e6,_0x52eb05,_0x1bc409,_0x20bb2d,_0x51c998,_0x11b233){const _0xfa04b3=_0x4f0284;super(),v(this,_0xfa04b3(0x127),new _0x39b41(null)),v(this,_0xfa04b3(0x1a8),this[_0xfa04b3(0x127)][_0xfa04b3(0x17a)]()),v(this,'_disposableCollection',new _0x2eecc5()),v(this,'_pluginMap',new Map()),(this['_localeService']=_0x6568bf,this[_0xfa04b3(0x192)]=_0x21f094,this[_0xfa04b3(0x1b7)]=_0x19860e,this[_0xfa04b3(0x19c)]=_0x5210a7,this[_0xfa04b3(0x1a6)]=_0x3247e6,this['_permissionService']=_0x52eb05,this['_selectionProtectionRuleModel']=_0x1bc409,this[_0xfa04b3(0x145)]=_0x20bb2d,this[_0xfa04b3(0x15b)]=_0x51c998,this[_0xfa04b3(0x105)]=_0x11b233,this[_0xfa04b3(0x199)]());}get[_0x4f0284(0x16d)](){const _0x26f0df=_0x4f0284;return this[_0x26f0df(0x127)]['value'];}['_init'](){this['_initContainer'](),this['_initPlugins']();}[_0x4f0284(0x156)](){const _0x17050d=_0x4f0284;var _0x4b77d4;const _0x140683=(_0x4b77d4=this[_0x17050d(0x1b7)][_0x17050d(0x153)](te))!=null?_0x4b77d4:Dt,_0x49ab3a=document['getElementById'](_0x140683);if(!_0x49ab3a)return;const _0x5f7563=document[_0x17050d(0x107)](_0x17050d(0x1a0));_0x5f7563['id']=_,_0x5f7563[_0x17050d(0x18c)][_0x17050d(0x102)]='history-container',_0x5f7563['style'][_0x17050d(0x16b)]=_0x17050d(0x125),_0x5f7563[_0x17050d(0x121)]['top']='0',_0x5f7563['style'][_0x17050d(0x14a)]='0',_0x5f7563[_0x17050d(0x121)][_0x17050d(0x15f)]='100%',_0x5f7563[_0x17050d(0x121)]['height']=_0x17050d(0x190),_0x5f7563['style']['zIndex']='49',_0x5f7563[_0x17050d(0x121)][_0x17050d(0x158)]=_0x17050d(0x150),_0x49ab3a[_0x17050d(0x18a)](_0x5f7563);}[_0x4f0284(0x133)](){const _0x15edbe=_0x4f0284;[[_0x345b45],[_0x5d9d78,{'container':_,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x28a7d4,null]]}],[_0x529eb3],[_0x53bc9b,{'override':[[_0x28f548,null]]}],[_0x4f8cf1,{'hasScroll':!0x1}],[_0x19299c],[_0x23ce51],[_0x2c8501,{'notExecuteFormula':!0x0}],[_0x2387a8],[_0xd7e8ec],[_0x6de86c],[_0x142f90],[_0x37bab4],[_0x131389],[_0x471a5a],[_0x44af65],[_0xdaab3a],[_0x3eea51],[_0x1658a3],[_0x52ed18],[_0x33b9a7],[_0x510324,{'notExecuteFormula':!0x0}],[_0x1c46f4],[_0xd5db7b],[_0x49e22e],[_0xfbc00f],[_0xe9ecd3],[_0x232475],[_0x5a9be4],[_0x243317],[_0x356066],[_0x503417,{'notExecuteFormula':!0x0}],[_0x58f53e]][_0x15edbe(0x1c1)](([_0x485fe5,_0x1d6f66])=>this[_0x15edbe(0x13f)](_0x485fe5,_0x1d6f66));}[_0x4f0284(0x141)](){const _0x291915=_0x4f0284;super[_0x291915(0x141)](),this[_0x291915(0x17b)](),this['_pluginMap'][_0x291915(0x119)]();}[_0x4f0284(0x13f)](_0xf0aa58,_0x45b840,_0x35948a){const _0x4981e4=_0x4f0284;if(this[_0x4981e4(0x1a4)][_0x4981e4(0x198)](_0xf0aa58[_0x4981e4(0x173)])&&!_0x35948a)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0xf0aa58[_0x4981e4(0x173)]+'\x20has\x20been\x20registered.');this[_0x4981e4(0x1a4)][_0x4981e4(0x10b)](_0xf0aa58[_0x4981e4(0x173)],[_0xf0aa58,_0x45b840]);}[_0x4f0284(0x13c)](){const _0x15f39b=_0x4f0284;return Array['from'](this['_pluginMap'][_0x15f39b(0x124)]());}[_0x4f0284(0x12d)](_0x9e239,_0x5e0373){const _0x464f5b=_0x4f0284,_0x5f39cf=document['getElementById'](_);_0x5f39cf&&(_0x5f39cf['style'][_0x464f5b(0x158)]=_0x464f5b(0x167),this['_initUniver'](_0x9e239,_,_0x5e0373));}[_0x4f0284(0x17b)](){const _0x1fdd4d=_0x4f0284;var _0x1e68a6;this['_disposableCollection'][_0x1fdd4d(0x141)](),(_0x1e68a6=this[_0x1fdd4d(0x16d)])==null||_0x1e68a6[_0x1fdd4d(0x141)](),this[_0x1fdd4d(0x127)][_0x1fdd4d(0x164)](null);const _0x5bbe19=document[_0x1fdd4d(0x195)](_);_0x5bbe19&&(_0x5bbe19[_0x1fdd4d(0x121)][_0x1fdd4d(0x158)]=_0x1fdd4d(0x150));}['_initUniver'](_0x5c02b0,_0x501f69,_0x5df883){const _0x524fa7=_0x4f0284;var _0x414cff,_0x22e28c,_0x1a6add,_0x3c6b79,_0x4559cb,_0x3fe176;if(this['historyUniver'])return;const _0x473305=new _0x4def29({'locales':{[this[_0x524fa7(0x191)][_0x524fa7(0x16e)]()]:this[_0x524fa7(0x191)][_0x524fa7(0x111)]()},'override':[[_0x45c56d,{'useClass':_0x130b36}]]}),_0x49e6cd=_0x473305[_0x524fa7(0x19e)]();this[_0x524fa7(0x147)](this[_0x524fa7(0x105)]['darkMode$'][_0x524fa7(0x176)](_0x517857=>{const _0x38c00f=_0x524fa7;_0x49e6cd['get'](_0x2ab5f1)[_0x38c00f(0x14b)](_0x517857);})),this[_0x524fa7(0x147)](this[_0x524fa7(0x105)]['currentTheme$']['subscribe'](_0x5f31a5=>{const _0x73e92f=_0x524fa7;_0x49e6cd['get'](_0x2ab5f1)[_0x73e92f(0x18f)](_0x5f31a5);})),_0x49e6cd['get'](_0x1fee5e)[_0x524fa7(0x174)](this[_0x524fa7(0x191)][_0x524fa7(0x16e)]()),_0x49e6cd[_0x524fa7(0x170)](_0x27d8c3)[_0x524fa7(0x114)](_0x1f8e00,this['_configService']['getConfig'](_0x1f8e00));const _0x4bd350=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](_0x909c77);_0x4bd350&&_0x473305[_0x524fa7(0x13f)](_0x5f5003,{'license':_0x4bd350['ls']}),_0x473305[_0x524fa7(0x13f)](_0x160bff,{'workerURL':(_0x22e28c=(_0x414cff=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](_0x401e9f))==null?void 0x0:_0x414cff[_0x524fa7(0x152)])!=null?_0x22e28c:'./worker.js'}),this['_pluginMap']['forEach'](([_0x14f381,_0x4bf7ef])=>{const _0x1474cf=_0x524fa7;_0x473305[_0x1474cf(0x13f)](_0x14f381,_0x4bf7ef);}),_0x473305[_0x524fa7(0x13f)](_0xd2e0ef,{'historyListServerUrl':(_0x1a6add=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](f))==null?void 0x0:_0x1a6add[_0x524fa7(0x183)],'historyPanelComponentKey':(_0x3c6b79=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](f))==null?void 0x0:_0x3c6b79[_0x524fa7(0x16f)],'historyPanelHidden':(_0x4559cb=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](f))==null?void 0x0:_0x4559cb[_0x524fa7(0x139)],'historyAIassistantEnabled':(_0x3fe176=this['_configService'][_0x524fa7(0x153)](f))==null?void 0x0:_0x3fe176[_0x524fa7(0x1b5)]}),_0x49e6cd['invoke'](_0x68c421=>{const _0x1ca61d=_0x524fa7;this[_0x1ca61d(0x15d)](_0x68c421,_0x5c02b0);}),this[_0x524fa7(0x127)][_0x524fa7(0x164)](_0x473305);const _0x38c0ce=_0x49e6cd[_0x524fa7(0x170)](_0x4dcebc),_0x523822=this[_0x524fa7(0x188)](_0x5c02b0),_0x4deefb=()=>{const _0xc9335c=_0x524fa7;_0x5df883?_0x38c0ce['triggerCustomVersions'](_0x5c02b0,_0x501f69,_0x523822,_0x5df883):_0x38c0ce[_0xc9335c(0x1ba)](_0x5c02b0,_0x501f69,_0x523822);},_0x2006db=this[_0x524fa7(0x1a6)][_0x524fa7(0x178)]({'content':this['_localeService']['t']('editHistory.info.initializing'),'type':_0x3450ca[_0x524fa7(0x136)]});try{_0x49e6cd['get'](_0x54ba54)[_0x524fa7(0x10f)]()[_0x524fa7(0x1ae)](()=>{const _0x3ad4d1=_0x524fa7;_0x2006db[_0x3ad4d1(0x141)](),_0x4deefb();});}catch{_0x2006db[_0x524fa7(0x141)](),_0x4deefb();}}['_initListener'](_0x34a2e1,_0x5d01dd){const _0x37fee8=_0x4f0284,_0x267701=_0x34a2e1[_0x37fee8(0x170)](_0x4dcebc);this[_0x37fee8(0x144)][_0x37fee8(0x1bc)](_0x267701[_0x37fee8(0x11c)][_0x37fee8(0x176)](_0x5eca25=>{const _0x767b14=_0x37fee8;switch(_0x5eca25){case _0x1f4ef7[_0x767b14(0x108)]:this[_0x767b14(0x145)][_0x767b14(0x14d)](),this[_0x767b14(0x15b)][_0x767b14(0x11f)]();break;case _0x1f4ef7[_0x767b14(0x186)]:this['_commandService'][_0x767b14(0x196)](ie['id']),this[_0x767b14(0x17b)]();break;case _0x1f4ef7[_0x767b14(0x17e)]:this[_0x767b14(0x17b)](),this[_0x767b14(0x1a6)][_0x767b14(0x178)]({'content':this[_0x767b14(0x191)]['t']('editHistory.panel.listFetchError'),'type':_0x3450ca[_0x767b14(0x17e)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x37fee8(0x1bc)](_0x267701[_0x37fee8(0x17c)][_0x37fee8(0x176)](async _0x444926=>{const _0x1341ee=_0x37fee8;_0x444926&&this[_0x1341ee(0x19c)]['executeCommand'](_0xe3ec52['id'],{'unitId':_0x5d01dd,'revision':_0x444926});}));}[_0x4f0284(0x188)](_0x10777c){const _0x104106=_0x4f0284,_0x4ebc76=this[_0x104106(0x192)][_0x104106(0x151)](_0x10777c)[_0x104106(0x12c)]()['map'](_0x669ee2=>_0x669ee2['getSheetId']()),_0x36b0e7=new _0xcb7193(_0x10777c)['id'],_0x4c8666=_0x4ebc76[_0x104106(0x1c0)](_0x1af31c=>new _0x2d3262(_0x10777c,_0x1af31c)['id']),_0x19565c=_0x4ebc76[_0x104106(0x1c0)](_0x11b3a5=>this[_0x104106(0x169)][_0x104106(0x15e)](_0x10777c,_0x11b3a5)[_0x104106(0x1c0)](_0x2c3ca9=>new _0x5025e9(_0x10777c,_0x11b3a5,_0x2c3ca9[_0x104106(0x10a)])['id']))[_0x104106(0x184)](),_0x4c914f=new _0x440aee(_0x10777c)['id'];return this['_permissionService'][_0x104106(0x104)]([_0x36b0e7,..._0x4c8666,..._0x19565c,_0x4c914f])[_0x104106(0x11d)](_0x5d9419=>!!_0x5d9419[_0x104106(0x179)]);}};S=wt([g(0x0,_0x1e0725(_0x1fee5e)),g(0x1,_0x25eb66),g(0x2,_0x27d8c3),g(0x3,_0x1cc320),g(0x4,_0x567c56),g(0x5,_0x368d9c),g(0x6,_0x1e0725(_0x21c543)),g(0x7,_0x1e0725(_0x28a7d4)),g(0x8,_0x1e0725(_0x4c663d)),g(0x9,_0x1e0725(_0x2ab5f1))],S);const H={'id':_0x4f0284(0x1aa),'type':_0x3149b3[_0x4f0284(0x16a)],'handler':_0x5777d3=>{const _0x4aeab9=_0x4f0284,_0xdadab3=_0x5777d3[_0x4aeab9(0x170)](S),_0x10ff49=_0x5777d3[_0x4aeab9(0x170)](_0x25eb66),{unitId:_0x2480ca}=_0x396527(_0x10ff49)||{};return _0x2480ca?(_0xdadab3[_0x4aeab9(0x12d)](_0x2480ca),!0x0):!0x1;}},ie={'id':_0x4f0284(0x106),'type':_0x3149b3[_0x4f0284(0x16a)],'handler':()=>!0x0};function Tt(_0x39798b){const _0x4d2541=_0x4f0284;return{'id':H['id'],'type':_0x247b3b[_0x4d2541(0x154)],'icon':_0x4d2541(0x180),'tooltip':_0x4d2541(0x166),'hidden$':_0x2a24a8(_0x39798b,_0x35b0f6['UNIVER_SHEET']),'disabled$':_0x47e68c(_0x39798b,{'workbookTypes':[_0xcb7193,_0xe69d64],'worksheetTypes':[],'rangeTypes':[]})};}const $t={[_0xd1aebe['OTHERS']]:{[H['id']]:{'order':0.2,'menuItemFactory':Tt}}};var At=Object['getOwnPropertyDescriptor'],xt=(_0xcad0c0,_0x171caf,_0x4ff004,_0x81a3e)=>{const _0x3fd909=_0x4f0284;for(var _0x28bf77=_0x81a3e>0x1?void 0x0:_0x81a3e?At(_0x171caf,_0x4ff004):_0x171caf,_0x4a8ca6=_0xcad0c0[_0x3fd909(0x1b0)]-0x1,_0x46c10e;_0x4a8ca6>=0x0;_0x4a8ca6--)(_0x46c10e=_0xcad0c0[_0x4a8ca6])&&(_0x28bf77=_0x46c10e(_0x28bf77)||_0x28bf77);return _0x28bf77;},h=(_0x206e1e,_0x4cdce6)=>(_0x282157,_0x28abac)=>_0x4cdce6(_0x282157,_0x28abac,_0x206e1e);let I=class extends _0x1db88e{constructor(_0x33090a,_0x332284,_0x546644,_0x392950,_0x19dd34,_0x3db343,_0x2bf924,_0x311d9f,_0x4c9460,_0x121bf9,_0x2a5037){const _0x505ad0=_0x4f0284;super(),v(this,_0x505ad0(0x175),null),(this[_0x505ad0(0x19c)]=_0x33090a,this['_menuManagerService']=_0x332284,this[_0x505ad0(0x163)]=_0x546644,this['_historyManagerService']=_0x392950,this['_localeService']=_0x19dd34,this[_0x505ad0(0x1a6)]=_0x3db343,this[_0x505ad0(0x134)]=_0x2bf924,this[_0x505ad0(0x18b)]=_0x311d9f,this[_0x505ad0(0x168)]=_0x4c9460,this['_univerInstanceService']=_0x121bf9,this[_0x505ad0(0x1b6)]=_0x2a5037,this[_0x505ad0(0x199)]());}[_0x4f0284(0x199)](){const _0x3db2a6=_0x4f0284;[H,ie][_0x3db2a6(0x1c1)](_0x135c4f=>this['disposeWithMe'](_0x3c8c0f(this[_0x3db2a6(0x19c)][_0x3db2a6(0x129)](_0x135c4f)))),this[_0x3db2a6(0x147)](this[_0x3db2a6(0x163)][_0x3db2a6(0x159)]('HistoryIcon',ee)),this[_0x3db2a6(0x1b3)]['mergeMenu']($t),this[_0x3db2a6(0x147)](this[_0x3db2a6(0x19c)][_0x3db2a6(0x19b)](async(_0x2f4ad8,_0x49945e)=>{const _0x45f1cb=_0x3db2a6;if(_0x2f4ad8['id']===_0xe3ec52['id']){const {unitId:_0xc9a05d}=_0x2f4ad8[_0x45f1cb(0x12b)];this[_0x45f1cb(0x1a6)][_0x45f1cb(0x178)]({'content':this[_0x45f1cb(0x191)]['t'](_0x45f1cb(0x18e)),'type':_0x3450ca[_0x45f1cb(0x136)],'duration':0x1388});const _0x134cfb=this[_0x45f1cb(0x134)][_0x45f1cb(0x1bb)](_0xc9a05d);(_0x49945e==null?void 0x0:_0x49945e['fromCollab'])?this[_0x45f1cb(0x132)](_0x134cfb,async()=>(setTimeout(()=>window[_0x45f1cb(0x12a)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x134cfb,async()=>{const _0x2a205d=_0x45f1cb,_0x355de7=this['_univerInstanceService']['getCurrentUnitOfType'](b['UNIVER_SHEET']),_0x14a258=_0x355de7==null?void 0x0:_0x355de7[_0x2a205d(0x182)]();if(!_0x14a258)return!0x1;this[_0x2a205d(0x192)][_0x2a205d(0x142)](_0xc9a05d);const _0x190521=await this[_0x2a205d(0x168)][_0x2a205d(0x103)](_0xc9a05d,b[_0x2a205d(0x12e)]);return _0x190521&&_0x190521 instanceof _0x51eadd?(await this[_0x2a205d(0x117)](_0x190521,_0x14a258['getSheetId']()),!0x0):!0x1;});}}));}[_0x4f0284(0x132)](_0x4af004,_0x2c960b,_0xa0c37e=!0x1){const _0x340397=_0x4f0284,_0x478257=_0x5bbc1f([_0x4af004['session']['event$'],_0x4af004[_0x340397(0x14e)]])[_0x340397(0x176)](async([_0x3b876c,_0x32e989])=>{const _0x113688=_0x340397;var _0x5d8011;_0x3b876c[_0x113688(0x193)]===_0x4e66db[_0x113688(0x120)]&&(_0x32e989==null?void 0x0:_0x32e989[_0x113688(0x148)])===_0x36c762['SYNCED']&&_0x3b876c['data']['mutations'][_0x113688(0x1ad)](_0x51ccae=>_0x51ccae['id']===_0xe3ec52['id'])&&await _0x2c960b()&&(this[_0x113688(0x1b1)][_0x113688(0x17b)](),_0x478257['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x113688(0x175)]),await((_0x5d8011=this['_localCacheService'])==null?void 0x0:_0x5d8011[_0x113688(0x1bf)]()));});_0xa0c37e&&(this[_0x340397(0x175)]=setTimeout(()=>{const _0x108e34=_0x340397;_0x478257[_0x108e34(0x14f)](),this[_0x108e34(0x1a6)][_0x108e34(0x178)]({'content':this[_0x108e34(0x191)]['t'](_0x108e34(0x19a)),'type':_0x3450ca[_0x108e34(0x17e)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x3f747b,_0x1282b0){const _0x2243d3=_0x4f0284;await this[_0x2243d3(0x140)](_0x3f747b,_0x1282b0),_0x3f747b[_0x2243d3(0x13b)][_0x2243d3(0x13e)](_0x4d1886(this[_0x2243d3(0x185)]))['subscribe'](_0x462669=>{const _0x4d0561=_0x2243d3;_0x462669&&this[_0x4d0561(0x146)](_0x462669);}),this['_urlService']['urlChange$']['pipe'](_0x4d1886(this[_0x2243d3(0x185)]))['subscribe'](()=>this[_0x2243d3(0x140)](_0x3f747b,_0x1282b0));}['_updateURLWithCurrentState'](_0x24d154,_0x13fce3=!0x1){const _0x318c6a=_0x4f0284,_0x4417c4=this[_0x318c6a(0x1b6)][_0x318c6a(0x165)](_0x318c6a(0x11b));_0x24d154[_0x318c6a(0x10e)]()!==_0x4417c4&&this[_0x318c6a(0x1b6)][_0x318c6a(0x181)](_0x318c6a(0x11b),_0x24d154['getSheetId'](),_0x13fce3);}async[_0x4f0284(0x140)](_0x41586b,_0x239c3e){const _0x5f0079=_0x4f0284;var _0x2638dd;if(!_0x239c3e||!_0x41586b[_0x5f0079(0x194)](_0x239c3e)){const _0x545320=_0x41586b[_0x5f0079(0x17d)]()[0x0],_0x5f1c1d=_0x41586b[_0x5f0079(0x194)](_0x545320);if(!_0x5f1c1d)return;this[_0x5f0079(0x146)](_0x5f1c1d,!0x0),await this['_commandService'][_0x5f0079(0x196)](_0x25e165['id'],{'unitId':_0x41586b[_0x5f0079(0x112)](),'subUnitId':_0x545320});return;}((_0x2638dd=_0x41586b[_0x5f0079(0x182)]())==null?void 0x0:_0x2638dd[_0x5f0079(0x10e)]())!==_0x239c3e&&await this[_0x5f0079(0x19c)]['executeCommand'](_0x25e165['id'],{'unitId':_0x41586b[_0x5f0079(0x112)](),'subUnitId':_0x239c3e});}};I=xt([h(0x0,_0x1cc320),h(0x1,_0x1dcef5),h(0x2,_0x1e0725(_0x1b6d11)),h(0x3,_0x1e0725(S)),h(0x4,_0x1e0725(_0x1fee5e)),h(0x5,_0x567c56),h(0x6,_0x1e0725(_0x139566)),h(0x7,_0x578178),h(0x8,_0x1e0725(_0x368be7)),h(0x9,_0x25eb66),h(0xa,_0x5cace3)],I);var Vt=Object['defineProperty'],Ft=Object[_0x4f0284(0x135)],kt=(_0x11768a,_0x38ff8a,_0x4189bb)=>_0x38ff8a in _0x11768a?Vt(_0x11768a,_0x38ff8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4189bb}):_0x11768a[_0x38ff8a]=_0x4189bb,Wt=(_0x5e9de9,_0x42d046,_0x5ce715,_0x325ae9)=>{const _0x4f53b1=_0x4f0284;for(var _0x17231e=_0x325ae9>0x1?void 0x0:_0x325ae9?Ft(_0x42d046,_0x5ce715):_0x42d046,_0x198256=_0x5e9de9[_0x4f53b1(0x1b0)]-0x1,_0x2ed9f1;_0x198256>=0x0;_0x198256--)(_0x2ed9f1=_0x5e9de9[_0x198256])&&(_0x17231e=_0x2ed9f1(_0x17231e)||_0x17231e);return _0x17231e;},j=(_0x35c7d6,_0x112c5b)=>(_0x365255,_0x5d8ec9)=>_0x112c5b(_0x365255,_0x5d8ec9,_0x35c7d6),re=(_0x49afdf,_0x11753c,_0x254b82)=>kt(_0x49afdf,typeof _0x11753c!=_0x4f0284(0x162)?_0x11753c+'':_0x11753c,_0x254b82);const jt='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';let y=class extends _0x1ba6f1{constructor(_0x438f47=W,_0x1d3236,_0xd6bd6){const _0x480e4d=_0x4f0284;super(),this[_0x480e4d(0x187)]=_0x438f47,this[_0x480e4d(0x1b8)]=_0x1d3236,this[_0x480e4d(0x1b7)]=_0xd6bd6;const {menu:_0x5728cb,..._0x3ebe82}=_0x58a321({},W,this['_config']);_0x5728cb&&this[_0x480e4d(0x1b7)][_0x480e4d(0x114)]('menu',_0x5728cb,{'merge':!0x0}),this['_configService'][_0x480e4d(0x114)](f,_0x3ebe82),this[_0x480e4d(0x187)]['univerContainerId']&&this[_0x480e4d(0x1b7)][_0x480e4d(0x114)](te,this['_config']['univerContainerId']);}['onStarting'](){[[S],[I]]['forEach'](_0x5cf1f7=>this['_injector']['add'](_0x5cf1f7));}[_0x4f0284(0x122)](){const _0x30c94f=_0x4f0284;this[_0x30c94f(0x1b8)][_0x30c94f(0x170)](I);}};re(y,_0x4f0284(0x15c),_0x35b0f6[_0x4f0284(0x1ac)]),re(y,_0x4f0284(0x173),jt),y=Wt([_0xbb9171(_0x5f5003),j(0x1,_0x1e0725(_0x53466a)),j(0x2,_0x27d8c3)],y);export{S as HistoryLoaderService,te as UNIVER_CONTAINER_ID_KEY,_ as UNIVER_HISTORY_CONTAINER_ID,y as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3fc7e2=_0x5be8;(function(_0x40cd20,_0x30c3cb){const _0x4105b7=_0x5be8,_0x33a34e=_0x40cd20();while(!![]){try{const _0x573fb9=parseInt(_0x4105b7(0x115))/0x1+parseInt(_0x4105b7(0xe0))/0x2+parseInt(_0x4105b7(0xe4))/0x3*(parseInt(_0x4105b7(0x9f))/0x4)+parseInt(_0x4105b7(0xa9))/0x5*(-parseInt(_0x4105b7(0xbd))/0x6)+parseInt(_0x4105b7(0xcd))/0x7*(-parseInt(_0x4105b7(0xbe))/0x8)+-parseInt(_0x4105b7(0x99))/0x9*(parseInt(_0x4105b7(0xfb))/0xa)+parseInt(_0x4105b7(0xd0))/0xb*(parseInt(_0x4105b7(0xbf))/0xc);if(_0x573fb9===_0x30c3cb)break;else _0x33a34e['push'](_0x33a34e['shift']());}catch(_0x31c59d){_0x33a34e['push'](_0x33a34e['shift']());}}}(_0x2601,0x47085));var B=Object[_0x3fc7e2(0xed)],z=(_0x5c5930,_0xdfa927,_0x2431c8)=>_0xdfa927 in _0x5c5930?B(_0x5c5930,_0xdfa927,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2431c8}):_0x5c5930[_0xdfa927]=_0x2431c8,v=(_0x2b5e7b,_0x5a2103,_0x1061ad)=>z(_0x2b5e7b,typeof _0x5a2103!=_0x3fc7e2(0xa1)?_0x5a2103+'':_0x5a2103,_0x1061ad);import{LS_CONFIG_KEY as _0x4a1f91,UniverLicensePlugin as _0x567e6d}from'@univerjs-pro/license';import{Inject as _0x5f4f25,LocaleService as _0xe9c007,ThemeService as _0x2d319b,Disposable as _0x39eb50,DisposableCollection as _0x16b2c7,Univer as _0x49f66a,IAuthzIoService as _0xe01fa9,IConfigService as _0x1b605d,IUniverInstanceService as _0x978fe9,ICommandService as _0x1284ee,IPermissionService as _0x3d92b4,CommandType as _0x1b2c46,UniverInstanceType as _0x44f89f,RxDisposable as _0xb246b5,toDisposable as _0x4695c0,DependentOn as _0x1f7b30,Injector as _0x5ac2af,Plugin as _0x4309fe,merge as _0x450a83}from'@univerjs/core';import{UniverCollaborationPlugin as _0x704b6b,RevertRevisionMutation as _0x1f8e06,CollaborationEvent as _0x3cbc56}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x21883c,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3abed0,CollaborationController as _0x395672,CollaborationStatus as _0x5d8f04,ILocalCacheService as _0x296ec6}from'@univerjs-pro/collaboration-client';import{MessageType as _0x5c43ed}from'@univerjs/design';import{useRef as _0x262add,createElement as _0x5a02af,forwardRef as _0x42e1d4}from'react';import{IDialogService as _0x56af39,ISidebarService as _0x3fc635,UniverUIPlugin as _0x3392ef,IMessageService as _0x263af9,MenuItemType as _0x481abb,getMenuHiddenObservable as _0x4c7d08,RibbonStartGroup as _0x5cce86,ComponentManager as _0x534cb9,IMenuManagerService as _0x792166}from'@univerjs/ui';import{BehaviorSubject as _0x57890e,combineLatest as _0xe64adb}from'rxjs';import{RangeProtectionRuleModel as _0x1c9c5d,UniverSheetsPlugin as _0x4bf579,WorkbookEditablePermission as _0x5e5b38,WorksheetEditPermission as _0x2cb3d7,RangeProtectionPermissionEditPoint as _0x1eb021,WorkbookRecoverHistoryPermission as _0x4008f2,getSheetCommandTarget as _0x2dcc42,WorkbookViewHistoryPermission as _0xf56348}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x589a63,HistoryManagerService as _0x256127,HistoryModeStatus as _0x55e35e}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsChartPlugin as _0x530fe3}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xb08fe6}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x51ad0f}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x4c12aa}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x28ed48}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x261e28}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x336a72}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x178c4d}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x15b75c}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x68837e}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x188647,IImageIoService as _0x59c6d1}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x555aa4}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x43f154}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x25a5ee}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x1cc128}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x292678,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x5b2b36}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x215ffe}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x49ba98}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x102a5a}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x2a1790}from'@univerjs/sheets-data-validation-ui';function _0x5be8(_0x3b74c5,_0x1af22c){_0x3b74c5=_0x3b74c5-0x6e;const _0x26017c=_0x2601();let _0x5be889=_0x26017c[_0x3b74c5];return _0x5be889;}import{UniverSheetsDrawingPlugin as _0x5f30cc}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xfd1dc7}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3fdc50}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x39c6cf}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xd2cee6}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x1d1ee0}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1c08e1}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x18fafd}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x25e0c2}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x4699b4,getCurrentRangeDisable$ as _0x50b6b0}from'@univerjs/sheets-ui';const U='edit-history-loader.config',N={};function F({ref:_0x5920a2,..._0x1226f7}){const _0x5a0617=_0x3fc7e2,{icon:_0x3b250e,id:_0x4d5a81,className:_0x1f6b0e,extend:_0x585a07,..._0x2c6ed0}=_0x1226f7,_0x4c0a75=(_0x5a0617(0xb2)+_0x4d5a81+'\x20'+(_0x1f6b0e||''))[_0x5a0617(0x10c)](),_0x2e77c9=_0x262add('_'+mi());return j(_0x3b250e,''+_0x4d5a81,{'defIds':_0x3b250e[_0x5a0617(0x7b)],'idSuffix':_0x2e77c9[_0x5a0617(0xb8)]},{'ref':_0x5920a2,'className':_0x4c0a75,..._0x2c6ed0},_0x585a07);}function j(_0x5e9aeb,_0x2478bc,_0x240f57,_0x4bd1a0,_0x195e3b){const _0x6770d0=_0x3fc7e2;return _0x5a02af(_0x5e9aeb[_0x6770d0(0xfc)],{'key':_0x2478bc,...hi(_0x5e9aeb,_0x240f57,_0x195e3b),..._0x4bd1a0},(gi(_0x5e9aeb,_0x240f57)['children']||[])[_0x6770d0(0xe7)]((_0x510f68,_0x1fec62)=>j(_0x510f68,_0x2478bc+'-'+_0x5e9aeb['tag']+'-'+_0x1fec62,_0x240f57,void 0x0,_0x195e3b)));}function hi(_0x20b404,_0x1724bf,_0x53584a){const _0x3b94fe=_0x3fc7e2,_0x1c41de={..._0x20b404['attrs']};_0x53584a!=null&&_0x53584a[_0x3b94fe(0x109)]&&_0x1c41de[_0x3b94fe(0x80)]==='colorChannel1'&&(_0x1c41de[_0x3b94fe(0x80)]=_0x53584a[_0x3b94fe(0x109)]),_0x20b404[_0x3b94fe(0xfc)]===_0x3b94fe(0xc9)&&_0x1c41de['id']&&(_0x1c41de['id']=_0x1c41de['id']+_0x1724bf['idSuffix']),Object['entries'](_0x1c41de)[_0x3b94fe(0x77)](([_0xf9eca4,_0x5410eb])=>{const _0x326c52=_0x3b94fe;_0xf9eca4==='mask'&&typeof _0x5410eb==_0x326c52(0x96)&&(_0x1c41de[_0xf9eca4]=_0x5410eb[_0x326c52(0x83)](/url\(#(.*)\)/,_0x326c52(0xa0)+_0x1724bf[_0x326c52(0x9d)]+')'));});const {defIds:_0x3efbd1}=_0x1724bf;return!_0x3efbd1||_0x3efbd1[_0x3b94fe(0xd3)]===0x0||(_0x20b404[_0x3b94fe(0xfc)]===_0x3b94fe(0xd5)&&_0x1c41de[_0x3b94fe(0xa6)]&&(_0x1c41de[_0x3b94fe(0xa6)]=_0x1c41de[_0x3b94fe(0xa6)]+_0x1724bf['idSuffix']),Object[_0x3b94fe(0xa5)](_0x1c41de)[_0x3b94fe(0x77)](([_0x4152d8,_0x2fbcfe])=>{const _0x337eed=_0x3b94fe;typeof _0x2fbcfe==_0x337eed(0x96)&&(_0x1c41de[_0x4152d8]=_0x2fbcfe[_0x337eed(0x83)](/url\(#(.*)\)/,_0x337eed(0xa0)+_0x1724bf['idSuffix']+')'));})),_0x1c41de;}function gi(_0xfddec7,_0x127177){const _0x43f865=_0x3fc7e2;var _0x5e7ccb;const {defIds:_0x465a70}=_0x127177;return!_0x465a70||_0x465a70[_0x43f865(0xd3)]===0x0?_0xfddec7:_0xfddec7['tag']===_0x43f865(0xf5)&&((_0x5e7ccb=_0xfddec7['children'])!=null&&_0x5e7ccb['length'])?{..._0xfddec7,'children':_0xfddec7[_0x43f865(0x79)][_0x43f865(0xe7)](_0x1a13bf=>typeof _0x1a13bf[_0x43f865(0xa2)]['id']==_0x43f865(0x96)&&_0x465a70&&_0x465a70[_0x43f865(0x8e)](_0x1a13bf[_0x43f865(0xa2)]['id'])?{..._0x1a13bf,'attrs':{..._0x1a13bf[_0x43f865(0xa2)],'id':_0x1a13bf['attrs']['id']+_0x127177[_0x43f865(0x9d)]}}:_0x1a13bf)}:_0xfddec7;}function mi(){const _0x4f8b90=_0x3fc7e2;return Math[_0x4f8b90(0xf4)]()['toString'](0x24)[_0x4f8b90(0x92)](0x2,0x8);}F['displayName']='UniverIcon';const vi={'tag':_0x3fc7e2(0x103),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3fc7e2(0x10b),'viewBox':_0x3fc7e2(0xde),'width':'1em','height':_0x3fc7e2(0x95)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x3fc7e2(0x89)},'children':[{'tag':_0x3fc7e2(0x73),'attrs':{'d':_0x3fc7e2(0xdc)}},{'tag':_0x3fc7e2(0x73),'attrs':{'d':_0x3fc7e2(0xe5)}}]},{'tag':_0x3fc7e2(0xf5),'attrs':{},'children':[{'tag':_0x3fc7e2(0xa8),'attrs':{'id':_0x3fc7e2(0xb7)},'children':[{'tag':_0x3fc7e2(0x73),'attrs':{'fill':'white','d':_0x3fc7e2(0xf0)}}]}]}],'defIds':[_0x3fc7e2(0xb7)]},V=_0x42e1d4(function(_0x414721,_0x2e2b0c){const _0x5d8cae=_0x3fc7e2;return _0x5a02af(F,Object[_0x5d8cae(0xb4)]({},_0x414721,{'id':_0x5d8cae(0xcc),'ref':_0x2e2b0c,'icon':vi}));});V[_0x3fc7e2(0xc4)]=_0x3fc7e2(0x9e);var di=Object['getOwnPropertyDescriptor'],fi=(_0x4be264,_0x251e5f,_0x4645da,_0x294e81)=>{for(var _0x53eea4=_0x294e81>0x1?void 0x0:_0x294e81?di(_0x251e5f,_0x4645da):_0x251e5f,_0xc13e42=_0x4be264['length']-0x1,_0x4d73be;_0xc13e42>=0x0;_0xc13e42--)(_0x4d73be=_0x4be264[_0xc13e42])&&(_0x53eea4=_0x4d73be(_0x53eea4)||_0x53eea4);return _0x53eea4;},l=(_0x500fd0,_0x5c04e)=>(_0x4a3e32,_0x53263f)=>_0x5c04e(_0x4a3e32,_0x53263f,_0x500fd0);const pi=_0x3fc7e2(0x7d),G=_0x3fc7e2(0xa7),d=_0x3fc7e2(0xbb);let f=class extends _0x39eb50{constructor(_0x477777,_0x2e7d8c,_0x5d26f4,_0x138d75,_0xbd6ae1,_0xd25ab6,_0x652a33,_0x441efb,_0x3c0e50,_0x3726f3){const _0x3432ee=_0x3fc7e2;super(),v(this,_0x3432ee(0x85),new _0x57890e(null)),v(this,_0x3432ee(0xc0),this[_0x3432ee(0x85)][_0x3432ee(0xab)]()),v(this,_0x3432ee(0x9b),new _0x16b2c7()),v(this,_0x3432ee(0xdb),new Map()),(this[_0x3432ee(0xe1)]=_0x477777,this['_univerInstanceService']=_0x2e7d8c,this[_0x3432ee(0x88)]=_0x5d26f4,this[_0x3432ee(0xe2)]=_0x138d75,this['_messageService']=_0xbd6ae1,this[_0x3432ee(0xe6)]=_0xd25ab6,this[_0x3432ee(0xf6)]=_0x652a33,this[_0x3432ee(0x9a)]=_0x441efb,this[_0x3432ee(0xcf)]=_0x3c0e50,this[_0x3432ee(0x113)]=_0x3726f3,this[_0x3432ee(0x87)]());}get[_0x3fc7e2(0x6e)](){const _0x33de26=_0x3fc7e2;return this[_0x33de26(0x85)][_0x33de26(0x97)];}[_0x3fc7e2(0x87)](){const _0x4acf34=_0x3fc7e2;this[_0x4acf34(0xb9)](),this['_initPlugins']();}[_0x3fc7e2(0xb9)](){const _0x70973a=_0x3fc7e2;var _0x2e177e;const _0x5ca0fb=(_0x2e177e=this[_0x70973a(0x88)][_0x70973a(0xb1)](G))!=null?_0x2e177e:pi,_0x7987dc=document[_0x70973a(0x111)](_0x5ca0fb);if(!_0x7987dc)return;const _0x575adb=document['createElement'](_0x70973a(0x75));_0x575adb['id']=d,_0x575adb[_0x70973a(0xf7)][_0x70973a(0x7a)]=_0x70973a(0xd7),_0x575adb[_0x70973a(0x93)][_0x70973a(0x86)]=_0x70973a(0xff),_0x575adb[_0x70973a(0x93)]['top']='0',_0x575adb['style'][_0x70973a(0xf2)]='0',_0x575adb[_0x70973a(0x93)][_0x70973a(0xbc)]=_0x70973a(0x7f),_0x575adb['style']['height']=_0x70973a(0x7f),_0x575adb[_0x70973a(0x93)][_0x70973a(0xe9)]=_0x70973a(0xda),_0x575adb[_0x70973a(0x93)][_0x70973a(0x76)]=_0x70973a(0x10b),_0x7987dc[_0x70973a(0xca)](_0x575adb);}[_0x3fc7e2(0xc8)](){const _0x2ad014=_0x3fc7e2;var _0x287bd0,_0x4fe9a0,_0x44b471,_0x58fb4a;[[_0x25a5ee],[_0x3392ef,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x56af39,null]]}],[_0x1cc128],[_0x188647,{'override':[[_0x59c6d1,null]]}],[_0x15b75c,{'hasScroll':!0x1}],[_0x68837e],[_0x25e0c2],[_0x4bf579,{'notExecuteFormula':!0x0}],[_0x4699b4],[_0xd2cee6],[_0x1d1ee0],[_0x704b6b],[_0x3fdc50],[_0x39c6cf],[_0x215ffe],[_0x49ba98],[_0x1c08e1],[_0x18fafd],[_0x178c4d],[_0x102a5a],[_0x2a1790],[_0x43f154,{'notExecuteFormula':!0x0}],[_0x292678,{'workerURL':(_0x4fe9a0=(_0x287bd0=this['_configService'][_0x2ad014(0xb1)](_0x5b2b36))==null?void 0x0:_0x287bd0[_0x2ad014(0x101)])!=null?_0x4fe9a0:'./worker.js'}],[_0x555aa4],[_0x5f30cc],[_0xfd1dc7],[_0x261e28],[_0x336a72],[_0x530fe3],[_0xb08fe6],[_0x4c12aa],[_0x28ed48],[_0x51ad0f,{'notExecuteFormula':!0x0}],[_0x589a63,{'historyListServerUrl':(_0x44b471=this['_configService'][_0x2ad014(0xb1)](U))==null?void 0x0:_0x44b471['historyListServerUrl'],'historyPanelComponentKey':(_0x58fb4a=this['_configService'][_0x2ad014(0xb1)](U))==null?void 0x0:_0x58fb4a[_0x2ad014(0xc3)]}]][_0x2ad014(0x77)](([_0x4916c0,_0x1d41e3])=>this[_0x2ad014(0xad)](_0x4916c0,_0x1d41e3));}[_0x3fc7e2(0xaf)](){const _0x3312e=_0x3fc7e2;super['dispose'](),this[_0x3312e(0xf8)](),this[_0x3312e(0xdb)][_0x3312e(0xa3)]();}[_0x3fc7e2(0xad)](_0xb816d3,_0x4ee610,_0x13a71b){const _0x2d3694=_0x3fc7e2;if(this['_pluginMap'][_0x2d3694(0x8a)](_0xb816d3[_0x2d3694(0x110)])&&!_0x13a71b)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0xb816d3['pluginName']+_0x2d3694(0xe3));this['_pluginMap'][_0x2d3694(0xfa)](_0xb816d3[_0x2d3694(0x110)],[_0xb816d3,_0x4ee610]);}[_0x3fc7e2(0xae)](){const _0x156b87=_0x3fc7e2;return Array[_0x156b87(0x72)](this[_0x156b87(0xdb)][_0x156b87(0xa4)]());}[_0x3fc7e2(0x7e)](_0x5c0b99){const _0x1a8e85=_0x3fc7e2,_0x2d7c7d=document[_0x1a8e85(0x111)](d);_0x2d7c7d&&(_0x2d7c7d[_0x1a8e85(0x93)][_0x1a8e85(0x76)]=_0x1a8e85(0xc2),this[_0x1a8e85(0xac)](_0x5c0b99,d));}[_0x3fc7e2(0xf8)](){const _0x99b386=_0x3fc7e2;var _0x32dc3d;this[_0x99b386(0x9b)]['dispose'](),(_0x32dc3d=this['historyUniver'])==null||_0x32dc3d[_0x99b386(0xaf)](),this[_0x99b386(0x85)]['next'](null);const _0x28abe1=document['getElementById'](d);_0x28abe1&&(_0x28abe1[_0x99b386(0x93)][_0x99b386(0x76)]=_0x99b386(0x10b));}[_0x3fc7e2(0xac)](_0x4f7a9c,_0x587768){const _0x1fbc8b=_0x3fc7e2;if(this[_0x1fbc8b(0x6e)])return;const _0x2a5a53=new _0x49f66a({'locales':{[this[_0x1fbc8b(0xe1)][_0x1fbc8b(0xc6)]()]:this[_0x1fbc8b(0xe1)][_0x1fbc8b(0x107)]()},'override':[[_0xe01fa9,{'useClass':_0x21883c}]]}),_0x1321d4=_0x2a5a53['__getInjector']();this[_0x1fbc8b(0x82)](this[_0x1fbc8b(0x113)][_0x1fbc8b(0xd8)][_0x1fbc8b(0xf1)](_0xe243d6=>{const _0x56f3e4=_0x1fbc8b;_0x1321d4['get'](_0x2d319b)[_0x56f3e4(0x8f)](_0xe243d6);})),this[_0x1fbc8b(0x82)](this[_0x1fbc8b(0x113)][_0x1fbc8b(0x10f)][_0x1fbc8b(0xf1)](_0x22e0e4=>{const _0x17a4f5=_0x1fbc8b;_0x1321d4[_0x17a4f5(0x74)](_0x2d319b)['setTheme'](_0x22e0e4);})),_0x1321d4[_0x1fbc8b(0x74)](_0xe9c007)['setLocale'](this['_localeService']['getCurrentLocale']()),_0x1321d4['get'](_0x1b605d)[_0x1fbc8b(0x104)](_0x3abed0,this[_0x1fbc8b(0x88)][_0x1fbc8b(0xb1)](_0x3abed0));const _0x21221a=this[_0x1fbc8b(0x88)]['getConfig'](_0x4a1f91);_0x21221a&&_0x2a5a53[_0x1fbc8b(0xad)](_0x567e6d,{'license':_0x21221a['ls']}),this[_0x1fbc8b(0xdb)][_0x1fbc8b(0x77)](([_0x23a2cf,_0x19b00e])=>{const _0xbdac58=_0x1fbc8b;_0x2a5a53[_0xbdac58(0xad)](_0x23a2cf,_0x19b00e);}),_0x1321d4['invoke'](_0x1f791c=>{const _0x1c267e=_0x1fbc8b;this[_0x1c267e(0xf3)](_0x1f791c,_0x4f7a9c);}),this[_0x1fbc8b(0x85)]['next'](_0x2a5a53);const _0x40ce71=_0x1321d4[_0x1fbc8b(0x74)](_0x256127),_0x222ec6=this[_0x1fbc8b(0xc5)](_0x4f7a9c);_0x40ce71['triggerLoadVersions'](_0x4f7a9c,_0x587768,_0x222ec6);}[_0x3fc7e2(0xf3)](_0x2e505a,_0x374bbe){const _0x451eae=_0x3fc7e2,_0x3dc014=_0x2e505a[_0x451eae(0x74)](_0x256127);this['_disposableCollection'][_0x451eae(0x105)](_0x3dc014[_0x451eae(0x91)][_0x451eae(0xf1)](_0x49a56a=>{const _0xbb01be=_0x451eae;switch(_0x49a56a){case _0x55e35e[_0xbb01be(0xe8)]:this[_0xbb01be(0x9a)][_0xbb01be(0x10d)](),this[_0xbb01be(0xcf)][_0xbb01be(0x9c)]();break;case _0x55e35e[_0xbb01be(0xb3)]:this[_0xbb01be(0xe2)]['executeCommand'](W['id']),this[_0xbb01be(0xf8)]();break;case _0x55e35e['Error']:this['unMountHistoryContent'](),this[_0xbb01be(0xdf)]['show']({'content':this['_localeService']['t'](_0xbb01be(0xfd)),'type':_0x5c43ed['Error'],'duration':0xbb8});break;}})),this[_0x451eae(0x9b)][_0x451eae(0x105)](_0x3dc014['revertRevision$']['subscribe'](async _0x4e8e7f=>{const _0x3b6995=_0x451eae;_0x4e8e7f&&this[_0x3b6995(0xe2)]['executeCommand'](_0x1f8e06['id'],{'unitId':_0x374bbe,'revision':_0x4e8e7f});}));}[_0x3fc7e2(0xc5)](_0x1712d3){const _0x28dd57=_0x3fc7e2,_0xa27bfc=this[_0x28dd57(0x112)][_0x28dd57(0x114)](_0x1712d3)[_0x28dd57(0x81)]()[_0x28dd57(0xe7)](_0x224ab7=>_0x224ab7['getSheetId']()),_0x5b05c3=new _0x5e5b38(_0x1712d3)['id'],_0x1c44d8=_0xa27bfc['map'](_0x199147=>new _0x2cb3d7(_0x1712d3,_0x199147)['id']),_0xa14dce=_0xa27bfc[_0x28dd57(0xe7)](_0x3cbb1f=>this['_selectionProtectionRuleModel'][_0x28dd57(0x78)](_0x1712d3,_0x3cbb1f)[_0x28dd57(0xe7)](_0x32d461=>new _0x1eb021(_0x1712d3,_0x3cbb1f,_0x32d461[_0x28dd57(0xd1)])['id']))[_0x28dd57(0x84)](),_0x4bb1f=new _0x4008f2(_0x1712d3)['id'];return this[_0x28dd57(0xe6)][_0x28dd57(0xb5)]([_0x5b05c3,..._0x1c44d8,..._0xa14dce,_0x4bb1f])[_0x28dd57(0x8d)](_0x59fb5b=>!!_0x59fb5b[_0x28dd57(0x97)]);}};f=fi([l(0x0,_0x5f4f25(_0xe9c007)),l(0x1,_0x978fe9),l(0x2,_0x1b605d),l(0x3,_0x1284ee),l(0x4,_0x263af9),l(0x5,_0x3d92b4),l(0x6,_0x5f4f25(_0x1c9c5d)),l(0x7,_0x5f4f25(_0x56af39)),l(0x8,_0x5f4f25(_0x3fc635)),l(0x9,_0x5f4f25(_0x2d319b))],f);const b={'id':_0x3fc7e2(0x106),'type':_0x1b2c46[_0x3fc7e2(0xc1)],'handler':_0x58b4f9=>{const _0x42f0a2=_0x3fc7e2,_0x116b30=_0x58b4f9[_0x42f0a2(0x74)](f),_0x3e11ae=_0x58b4f9[_0x42f0a2(0x74)](_0x978fe9),{unitId:_0xb877aa}=_0x2dcc42(_0x3e11ae)||{};return _0xb877aa?(_0x116b30[_0x42f0a2(0x7e)](_0xb877aa),!0x0):!0x1;}},W={'id':_0x3fc7e2(0xea),'type':_0x1b2c46[_0x3fc7e2(0xc1)],'handler':()=>!0x0};function _i(_0x2e7da9){const _0x5c800a=_0x3fc7e2;return{'id':b['id'],'type':_0x481abb[_0x5c800a(0xaa)],'icon':_0x5c800a(0x9e),'tooltip':_0x5c800a(0xb6),'hidden$':_0x4c7d08(_0x2e7da9,_0x44f89f[_0x5c800a(0x94)]),'disabled$':_0x50b6b0(_0x2e7da9,{'workbookTypes':[_0x5e5b38,_0xf56348],'worksheetTypes':[],'rangeTypes':[]})};}const Si={[_0x5cce86['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':_i}}};var Ci=Object[_0x3fc7e2(0xef)],yi=(_0x2de25c,_0x71d69,_0x1d3505,_0x236f22)=>{const _0x3af2c9=_0x3fc7e2;for(var _0x4dc14e=_0x236f22>0x1?void 0x0:_0x236f22?Ci(_0x71d69,_0x1d3505):_0x71d69,_0x3781f2=_0x2de25c[_0x3af2c9(0xd3)]-0x1,_0xe0f6e4;_0x3781f2>=0x0;_0x3781f2--)(_0xe0f6e4=_0x2de25c[_0x3781f2])&&(_0x4dc14e=_0xe0f6e4(_0x4dc14e)||_0x4dc14e);return _0x4dc14e;},g=(_0x2eeb2b,_0x1f1887)=>(_0x23773b,_0x8b24fe)=>_0x1f1887(_0x23773b,_0x8b24fe,_0x2eeb2b);let p=class extends _0xb246b5{constructor(_0x10c402,_0x2f24ff,_0x43460e,_0x393b16,_0x5bfb81,_0x382581,_0x4258b4,_0x3f1d04){const _0xed89db=_0x3fc7e2;super(),v(this,_0xed89db(0xd9),null),(this[_0xed89db(0xe2)]=_0x10c402,this[_0xed89db(0x102)]=_0x2f24ff,this[_0xed89db(0x8b)]=_0x43460e,this[_0xed89db(0x10a)]=_0x393b16,this[_0xed89db(0xe1)]=_0x5bfb81,this[_0xed89db(0xdf)]=_0x382581,this[_0xed89db(0x8c)]=_0x4258b4,this[_0xed89db(0x71)]=_0x3f1d04,this[_0xed89db(0x87)]());}[_0x3fc7e2(0x87)](){const _0x5b7d98=_0x3fc7e2;[b,W]['forEach'](_0x222e31=>this['disposeWithMe'](_0x4695c0(this[_0x5b7d98(0xe2)][_0x5b7d98(0x7c)](_0x222e31)))),this[_0x5b7d98(0x82)](this[_0x5b7d98(0x8b)][_0x5b7d98(0xf9)]('HistoryIcon',V)),this[_0x5b7d98(0x102)][_0x5b7d98(0xfe)](Si),this['disposeWithMe'](this[_0x5b7d98(0xe2)][_0x5b7d98(0xd4)](_0x3182b1=>{const _0x357551=_0x5b7d98;if(_0x3182b1['id']===_0x1f8e06['id']){this[_0x357551(0xdf)][_0x357551(0xd6)]({'content':this[_0x357551(0xe1)]['t']('editHistory.panel.reverting'),'type':_0x5c43ed['Loading'],'duration':0x1388});const {unitId:_0x4467ec}=_0x3182b1[_0x357551(0xec)],_0x1ed2e9=this[_0x357551(0x8c)][_0x357551(0x70)](_0x4467ec),_0x406603=_0xe64adb([_0x1ed2e9['session'][_0x357551(0x98)],_0x1ed2e9[_0x357551(0xb0)]])[_0x357551(0xf1)](async([_0x5e0cad,_0x55cecc])=>{const _0x44251d=_0x357551;var _0x14b1d8;_0x5e0cad['eventID']===_0x3cbc56['CHANGESET_ACK']&&(_0x55cecc==null?void 0x0:_0x55cecc['status'])===_0x5d8f04[_0x44251d(0xce)]&&_0x5e0cad['data']['mutations']['some'](_0x2a5b2d=>_0x2a5b2d['id']===_0x1f8e06['id'])&&(this['_historyManagerService'][_0x44251d(0xf8)](),_0x406603[_0x44251d(0xee)](),this['_revertErrorTimer']&&clearTimeout(this[_0x44251d(0xd9)]),await((_0x14b1d8=this[_0x44251d(0x71)])==null?void 0x0:_0x14b1d8[_0x44251d(0xeb)]()),setTimeout(()=>window['location'][_0x44251d(0x10e)]()));});this[_0x357551(0xd9)]=setTimeout(()=>{const _0x6c3231=_0x357551;_0x406603[_0x6c3231(0xee)](),this[_0x6c3231(0xdf)][_0x6c3231(0xd6)]({'content':this[_0x6c3231(0xe1)]['t'](_0x6c3231(0x100)),'type':_0x5c43ed['Error'],'duration':0xbb8});},0x1388);}}));}};function _0x2601(){const _0x48ec82=['SYNCED','_sidebarService','403964mlaWIy','permissionId','menu','length','onCommandExecuted','use','show','history-container','darkMode$','_revertErrorTimer','1000','_pluginMap','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','onSteady','0\x200\x2016\x2016','_messageService','41256tlgPYo','_localeService','_commandService','\x20has\x20been\x20registered.','2289DVHCQd','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','_permissionService','map','Entered','zIndex','univer.operation.exit-edit-history','exhaustSavingTask','params','defineProperty','unsubscribe','getOwnPropertyDescriptor','M0\x200H16V16H0z','subscribe','left','_initListener','random','defs','_selectionProtectionRuleModel','dataset','unMountHistoryContent','register','set','304270IGlfYE','tag','editHistory.panel.listFetchError','mergeMenu','absolute','editHistory.panel.revertFailed','workerURL','_menuManagerService','svg','setConfig','add','univer.operation.toggle-edit-history','getLocales','type','colorChannel1','_historyManagerService','none','trim','closeAll','reload','currentTheme$','pluginName','getElementById','_univerInstanceService','_themeService','getUnit','106376FIiLPs','historyUniver','_injector','getCollabEntity','_localCacheService','from','path','get','div','display','forEach','getSubunitRuleList','children','uComp','defIds','registerCommand','univer-container','mountHistoryContent','100%','fill','getSheets','disposeWithMe','replace','flat','_historyUniver$','position','_init','_configService','url(#history-icon_clip0_907_281)','has','_componentManager','_collaborationController','every','includes','setDarkMode','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','status$','substring','style','UNIVER_SHEET','1em','string','value','event$','27XYApnp','_dialogService','_disposableCollection','close','idSuffix','HistoryIcon','124kqcCAl','url(#$1','symbol','attrs','clear','values','entries','xlink:href','UNIVER_CONTAINER_ID','clipPath','435DmwVos','BUTTON','asObservable','_initUniver','registerPlugin','getAllPlugins','dispose','state$','getConfig','univerjs-icon\x20univerjs-icon-','Exited','assign','composePermission','editHistory.panel.title','history-icon_clip0_907_281','current','_initContainer','univerContainerId','univer-history-container','width','16494tJcKCW','144JuWJct','324uEPjhF','historyUniver$','OPERATION','block','historyPanelComponentKey','displayName','_checkCanRevert','getCurrentLocale','UNIVER_UNKNOWN','_initPlugins','mask','appendChild','_config','history-icon','202538jVvijN'];_0x2601=function(){return _0x48ec82;};return _0x2601();}p=yi([g(0x0,_0x1284ee),g(0x1,_0x792166),g(0x2,_0x5f4f25(_0x534cb9)),g(0x3,_0x5f4f25(f)),g(0x4,_0x5f4f25(_0xe9c007)),g(0x5,_0x263af9),g(0x6,_0x5f4f25(_0x395672)),g(0x7,_0x296ec6)],p);var Ii=Object[_0x3fc7e2(0xed)],Ui=Object[_0x3fc7e2(0xef)],Pi=(_0xf21529,_0x430d22,_0xebbf89)=>_0x430d22 in _0xf21529?Ii(_0xf21529,_0x430d22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xebbf89}):_0xf21529[_0x430d22]=_0xebbf89,Ei=(_0x3cd3de,_0x21434a,_0x4a720e,_0xdfe997)=>{const _0x566bd1=_0x3fc7e2;for(var _0x3504c5=_0xdfe997>0x1?void 0x0:_0xdfe997?Ui(_0x21434a,_0x4a720e):_0x21434a,_0x4d6570=_0x3cd3de[_0x566bd1(0xd3)]-0x1,_0x298cdc;_0x4d6570>=0x0;_0x4d6570--)(_0x298cdc=_0x3cd3de[_0x4d6570])&&(_0x3504c5=_0x298cdc(_0x3504c5)||_0x3504c5);return _0x3504c5;},R=(_0xe53ea2,_0x2c19ae)=>(_0x5499c9,_0x5968a7)=>_0x2c19ae(_0x5499c9,_0x5968a7,_0xe53ea2),K=(_0x624980,_0x810b01,_0x3d33fd)=>Pi(_0x624980,typeof _0x810b01!=_0x3fc7e2(0xa1)?_0x810b01+'':_0x810b01,_0x3d33fd);const bi=_0x3fc7e2(0x90);let _=class extends _0x4309fe{constructor(_0x183e9f=N,_0x15f965,_0x4e4567){const _0x1a8734=_0x3fc7e2;super(),this['_config']=_0x183e9f,this[_0x1a8734(0x6f)]=_0x15f965,this[_0x1a8734(0x88)]=_0x4e4567;const {menu:_0x26a399,..._0xe214a}=_0x450a83({},N,this[_0x1a8734(0xcb)]);_0x26a399&&this[_0x1a8734(0x88)][_0x1a8734(0x104)](_0x1a8734(0xd2),_0x26a399,{'merge':!0x0}),this[_0x1a8734(0x88)][_0x1a8734(0x104)](U,_0xe214a),this[_0x1a8734(0xcb)][_0x1a8734(0xba)]&&this[_0x1a8734(0x88)][_0x1a8734(0x104)](G,this[_0x1a8734(0xcb)][_0x1a8734(0xba)]);}['onStarting'](){const _0x3c95dc=_0x3fc7e2;[[f],[p]][_0x3c95dc(0x77)](_0x2e73df=>this[_0x3c95dc(0x6f)]['add'](_0x2e73df));}[_0x3fc7e2(0xdd)](){const _0x28fee8=_0x3fc7e2;this[_0x28fee8(0x6f)]['get'](p);}};K(_,_0x3fc7e2(0x108),_0x44f89f[_0x3fc7e2(0xc7)]),K(_,_0x3fc7e2(0x110),bi),_=Ei([_0x1f7b30(_0x567e6d),R(0x1,_0x5f4f25(_0x5ac2af)),R(0x2,_0x1b605d)],_);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,_ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x4f0284=_0x5e39;(function(_0x594f82,_0x2764ea){const _0x3df591=_0x5e39,_0x5ccc75=_0x594f82();while(!![]){try{const _0x4687c9=-parseInt(_0x3df591(0x10d))/0x1+-parseInt(_0x3df591(0x1a5))/0x2*(-parseInt(_0x3df591(0x172))/0x3)+-parseInt(_0x3df591(0x17f))/0x4*(parseInt(_0x3df591(0x18d))/0x5)+parseInt(_0x3df591(0x161))/0x6*(-parseInt(_0x3df591(0x171))/0x7)+parseInt(_0x3df591(0x12f))/0x8+parseInt(_0x3df591(0x131))/0x9+-parseInt(_0x3df591(0x137))/0xa*(-parseInt(_0x3df591(0x13a))/0xb);if(_0x4687c9===_0x2764ea)break;else _0x5ccc75['push'](_0x5ccc75['shift']());}catch(_0x3f30f7){_0x5ccc75['push'](_0x5ccc75['shift']());}}}(_0x2c85,0xb9e15));var oe=Object[_0x4f0284(0x11a)],se=(_0x554772,_0x2efce2,_0x15a3ec)=>_0x2efce2 in _0x554772?oe(_0x554772,_0x2efce2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15a3ec}):_0x554772[_0x2efce2]=_0x15a3ec,v=(_0x4d3d05,_0x3b3fa4,_0x3c5879)=>se(_0x4d3d05,typeof _0x3b3fa4!=_0x4f0284(0x162)?_0x3b3fa4+'':_0x3b3fa4,_0x3c5879);import{LS_CONFIG_KEY as _0x909c77,UniverLicensePlugin as _0x5f5003}from'@univerjs-pro/license';import{Inject as _0x1e0725,LocaleService as _0x1fee5e,ThemeService as _0x2ab5f1,Disposable as _0x25b64c,DisposableCollection as _0x2eecc5,Univer as _0x4def29,IAuthzIoService as _0x45c56d,IConfigService as _0x27d8c3,IUniverInstanceService as _0x25eb66,ICommandService as _0x1cc320,IPermissionService as _0x368d9c,CommandType as _0x3149b3,UniverInstanceType as _0x35b0f6,RxDisposable as _0x1db88e,toDisposable as _0x3c8c0f,Workbook as _0x51eadd,DependentOn as _0xbb9171,Injector as _0x53466a,Plugin as _0x1ba6f1,merge as _0x58a321}from'@univerjs/core';import{UniverCollaborationPlugin as _0x142f90,RevertRevisionMutation as _0xe3ec52,CollaborationEvent as _0x4e66db}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x130b36,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1f8e00,CollaborationController as _0x139566,DataLoaderService as _0x368be7,CollaborationStatus as _0x36c762,ILocalCacheService as _0x578178}from'@univerjs-pro/collaboration-client';import{IURLService as _0x5cace3}from'@univerjs-pro/collaboration-client-ui';import{MessageType as _0x3450ca}from'@univerjs/design';import{useRef as _0x4adf5f,createElement as _0x5aeb84,forwardRef as _0x14618b}from'react';import{RangeProtectionRuleModel as _0x21c543,UniverSheetsPlugin as _0x2c8501,WorkbookEditablePermission as _0xcb7193,WorksheetEditPermission as _0x2d3262,RangeProtectionPermissionEditPoint as _0x5025e9,WorkbookRecoverHistoryPermission as _0x440aee,getSheetCommandTarget as _0x396527,WorkbookViewHistoryPermission as _0xe69d64,SetWorksheetActivateCommand as _0x25e165}from'@univerjs/sheets';function _0x2c85(){const _0x531b27=['substring','_initContainer','UNIVER_DOC','display','register','replace','_sidebarService','type','_initListener','getSubunitRuleList','width','xlink:href','14436uASfuU','symbol','_componentManager','next','getParam','editHistory.panel.title','block','_dataLoaderService','_selectionProtectionRuleModel','OPERATION','position','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','historyUniver','getCurrentLocale','historyPanelComponentKey','get','252hJcseZ','87PxRSif','pluginName','setLocale','_revertErrorTimer','subscribe','defs','show','value','asObservable','unMountHistoryContent','revertRevision$','getUnhiddenWorksheets','Error','92364SgPOkR','HistoryIcon','setParam','getActiveSheet','historyListServerUrl','flat','dispose$','Exited','_config','_checkCanRevert','trim','appendChild','_localCacheService','dataset','255jsZIiy','editHistory.panel.reverting','setTheme','100%','_localeService','_univerInstanceService','eventID','getSheetBySheetId','getElementById','executeCommand','UNIVER_CONTAINER_ID','has','_init','editHistory.panel.revertFailed','onCommandExecuted','_commandService','mask','__getInjector','attrs','div','history-icon','displayName','tag','_pluginMap','73142VXdecF','_messageService','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','historyUniver$','children','univer.operation.toggle-edit-history','includes','UNIVER_UNKNOWN','some','then','white','length','_historyManagerService','UNIVER_PROJECT','_menuManagerService','fill','historyAIassistantEnabled','_urlService','_configService','_injector','1em','triggerLoadVersions','getCollabEntity','add','url(#history-icon_clip0_907_281)','random','exhaustSavingTask','map','forEach','uComp','loadUnit','composePermission','_themeService','univer.operation.exit-edit-history','createElement','Entered','colorChannel1','permissionId','set','assign','1338648OHNPxz','getSheetId','whenReady','http://www.w3.org/2000/svg','getLocales','getUnitId','url(#$1','setConfig','UNRECOGNIZED','univer-history-container','_setupSubUnitSync','toString','clear','defineProperty','subunit','status$','every','string','close','CHANGESET_ACK','style','onSteady','idSuffix','values','absolute','history-icon_clip0_907_281','_historyUniver$','entries','registerCommand','location','params','getSheets','mountHistoryContent','UNIVER_SHEET','104568WdaxoD','M0\x200H16V16H0z','11624184nbhaEy','_handleRevertAcknowledgement','_initPlugins','_collaborationController','getOwnPropertyDescriptor','Loading','440BmYlWB','current','historyPanelHidden','249766AcYpQE','activeSheet$','getAllPlugins','path','pipe','registerPlugin','_updateSubUnitFromURLParams','dispose','disposeUnit','UNIVER_SLIDE','_disposableCollection','_dialogService','_updateURLWithCurrentState','disposeWithMe','status','univer-container','left','setDarkMode','univerjs-icon\x20univerjs-icon-','closeAll','state$','unsubscribe','none','getUnit','workerURL','getConfig','BUTTON'];_0x2c85=function(){return _0x531b27;};return _0x2c85();}import{IDialogService as _0x28a7d4,ISidebarService as _0x4c663d,UniverUIPlugin as _0x5d9d78,IMessageService as _0x567c56,MenuItemType as _0x247b3b,getMenuHiddenObservable as _0x2a24a8,RibbonStartGroup as _0xd1aebe,ComponentManager as _0x1b6d11,IMenuManagerService as _0x1dcef5}from'@univerjs/ui';import{BehaviorSubject as _0x39b41,combineLatest as _0x5bbc1f,takeUntil as _0x4d1886}from'rxjs';import{UniverEditHistoryViewerPlugin as _0xd2e0ef,HistoryManagerService as _0x4dcebc,HistoryModeStatus as _0x1f4ef7}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsChartPlugin as _0x232475}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x5a9be4}from'@univerjs-pro/sheets-chart-ui';function _0x5e39(_0x56d6fe,_0x1811d3){_0x56d6fe=_0x56d6fe-0x102;const _0x2c85f4=_0x2c85();let _0x5e39a9=_0x2c85f4[_0x56d6fe];return _0x5e39a9;}import{UniverSheetsPivotTablePlugin as _0x503417}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x243317}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x356066}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0xfbc00f}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xe9ecd3}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1658a3}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x4f8cf1}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x19299c}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x53bc9b,IImageIoService as _0x28f548}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1c46f4}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x510324}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x345b45}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x529eb3}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x160bff,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x401e9f,IRemoteInstanceService as _0x54ba54}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x471a5a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x44af65}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x52ed18}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x33b9a7}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xd5db7b}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x49e22e}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x37bab4}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x131389}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xd7e8ec}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x6de86c}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xdaab3a}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x3eea51}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x23ce51}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x58f53e}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x2387a8,getCurrentRangeDisable$ as _0x47e68c}from'@univerjs/sheets-ui';const f='edit-history-loader.config',W={};function Q({ref:_0x3e30f3,..._0xf3d407}){const _0x250a71=_0x4f0284,{icon:_0x1ca0df,id:_0x3b2a8f,className:_0x14315c,extend:_0x5dec0d,..._0x3ac019}=_0xf3d407,_0x3debd5=(_0x250a71(0x14c)+_0x3b2a8f+'\x20'+(_0x14315c||''))[_0x250a71(0x189)](),_0xe15d66=_0x4adf5f('_'+Ht());return X(_0x1ca0df,''+_0x3b2a8f,{'defIds':_0x1ca0df['defIds'],'idSuffix':_0xe15d66[_0x250a71(0x138)]},{'ref':_0x3e30f3,'className':_0x3debd5,..._0x3ac019},_0x5dec0d);}function X(_0x2db814,_0x4de5a4,_0x2fc75f,_0x1c52fd,_0x1e8136){const _0x2a9024=_0x4f0284;return _0x5aeb84(_0x2db814[_0x2a9024(0x1a3)],{'key':_0x4de5a4,...Nt(_0x2db814,_0x2fc75f,_0x1e8136),..._0x1c52fd},(Lt(_0x2db814,_0x2fc75f)['children']||[])[_0x2a9024(0x1c0)]((_0x33b8b5,_0xd96cd8)=>X(_0x33b8b5,_0x4de5a4+'-'+_0x2db814[_0x2a9024(0x1a3)]+'-'+_0xd96cd8,_0x2fc75f,void 0x0,_0x1e8136)));}function Nt(_0x4e70ca,_0x980670,_0x63e02b){const _0x167859=_0x4f0284,_0x4c1ec5={..._0x4e70ca[_0x167859(0x19f)]};_0x63e02b!=null&&_0x63e02b[_0x167859(0x109)]&&_0x4c1ec5[_0x167859(0x1b4)]===_0x167859(0x109)&&(_0x4c1ec5['fill']=_0x63e02b[_0x167859(0x109)]),_0x4e70ca[_0x167859(0x1a3)]===_0x167859(0x19d)&&_0x4c1ec5['id']&&(_0x4c1ec5['id']=_0x4c1ec5['id']+_0x980670[_0x167859(0x123)]),Object[_0x167859(0x128)](_0x4c1ec5)[_0x167859(0x1c1)](([_0x4ac152,_0x2d4c97])=>{const _0x49ae1b=_0x167859;_0x4ac152==='mask'&&typeof _0x2d4c97=='string'&&(_0x4c1ec5[_0x4ac152]=_0x2d4c97[_0x49ae1b(0x15a)](/url\(#(.*)\)/,_0x49ae1b(0x113)+_0x980670['idSuffix']+')'));});const {defIds:_0x1c0cbe}=_0x980670;return!_0x1c0cbe||_0x1c0cbe[_0x167859(0x1b0)]===0x0||(_0x4e70ca[_0x167859(0x1a3)]==='use'&&_0x4c1ec5[_0x167859(0x160)]&&(_0x4c1ec5[_0x167859(0x160)]=_0x4c1ec5[_0x167859(0x160)]+_0x980670[_0x167859(0x123)]),Object['entries'](_0x4c1ec5)[_0x167859(0x1c1)](([_0x30d7da,_0x15ac0c])=>{const _0x512b0d=_0x167859;typeof _0x15ac0c==_0x512b0d(0x11e)&&(_0x4c1ec5[_0x30d7da]=_0x15ac0c[_0x512b0d(0x15a)](/url\(#(.*)\)/,_0x512b0d(0x113)+_0x980670['idSuffix']+')'));})),_0x4c1ec5;}function Lt(_0xd5f282,_0x4c36cf){const _0x423c8a=_0x4f0284;var _0x590918;const {defIds:_0xfb8a8}=_0x4c36cf;return!_0xfb8a8||_0xfb8a8['length']===0x0?_0xd5f282:_0xd5f282[_0x423c8a(0x1a3)]===_0x423c8a(0x177)&&((_0x590918=_0xd5f282[_0x423c8a(0x1a9)])!=null&&_0x590918[_0x423c8a(0x1b0)])?{..._0xd5f282,'children':_0xd5f282[_0x423c8a(0x1a9)][_0x423c8a(0x1c0)](_0x3d2b38=>typeof _0x3d2b38[_0x423c8a(0x19f)]['id']=='string'&&_0xfb8a8&&_0xfb8a8[_0x423c8a(0x1ab)](_0x3d2b38[_0x423c8a(0x19f)]['id'])?{..._0x3d2b38,'attrs':{..._0x3d2b38['attrs'],'id':_0x3d2b38[_0x423c8a(0x19f)]['id']+_0x4c36cf[_0x423c8a(0x123)]}}:_0x3d2b38)}:_0xd5f282;}function Ht(){const _0x17e2b8=_0x4f0284;return Math[_0x17e2b8(0x1be)]()[_0x17e2b8(0x118)](0x24)[_0x17e2b8(0x155)](0x2,0x8);}Q[_0x4f0284(0x1a2)]='UniverIcon';const Mt={'tag':'svg','attrs':{'xmlns':_0x4f0284(0x110),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4f0284(0x1b9),'height':_0x4f0284(0x1b9)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x4f0284(0x1bd)},'children':[{'tag':_0x4f0284(0x13d),'attrs':{'d':_0x4f0284(0x16c)}},{'tag':_0x4f0284(0x13d),'attrs':{'d':_0x4f0284(0x1a7)}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4f0284(0x126)},'children':[{'tag':_0x4f0284(0x13d),'attrs':{'fill':_0x4f0284(0x1af),'d':_0x4f0284(0x130)}}]}]}],'defIds':[_0x4f0284(0x126)]},ee=_0x14618b(function(_0x2975e0,_0x49499b){const _0x4a9ec2=_0x4f0284;return _0x5aeb84(Q,Object[_0x4a9ec2(0x10c)]({},_0x2975e0,{'id':_0x4a9ec2(0x1a1),'ref':_0x49499b,'icon':Mt}));});ee[_0x4f0284(0x1a2)]=_0x4f0284(0x180);var b=(_0x1571b7=>(_0x1571b7[_0x1571b7['UNIVER_UNKNOWN']=0x0]=_0x4f0284(0x1ac),_0x1571b7[_0x1571b7['UNIVER_DOC']=0x1]=_0x4f0284(0x157),_0x1571b7[_0x1571b7[_0x4f0284(0x12e)]=0x2]=_0x4f0284(0x12e),_0x1571b7[_0x1571b7[_0x4f0284(0x143)]=0x3]=_0x4f0284(0x143),_0x1571b7[_0x1571b7[_0x4f0284(0x1b2)]=0x4]=_0x4f0284(0x1b2),_0x1571b7[_0x1571b7[_0x4f0284(0x115)]=-0x1]=_0x4f0284(0x115),_0x1571b7))(b||{}),Ot=Object[_0x4f0284(0x135)],wt=(_0x2d6748,_0x711ccc,_0x3aa420,_0x3f64b2)=>{const _0x3f3bb3=_0x4f0284;for(var _0x152289=_0x3f64b2>0x1?void 0x0:_0x3f64b2?Ot(_0x711ccc,_0x3aa420):_0x711ccc,_0x30a0ea=_0x2d6748[_0x3f3bb3(0x1b0)]-0x1,_0xec07ed;_0x30a0ea>=0x0;_0x30a0ea--)(_0xec07ed=_0x2d6748[_0x30a0ea])&&(_0x152289=_0xec07ed(_0x152289)||_0x152289);return _0x152289;},g=(_0x52c5e5,_0x5dceab)=>(_0x306a42,_0x55b47b)=>_0x5dceab(_0x306a42,_0x55b47b,_0x52c5e5);const Dt=_0x4f0284(0x149),te=_0x4f0284(0x197),_=_0x4f0284(0x116);let S=class extends _0x25b64c{constructor(_0x6568bf,_0x21f094,_0x19860e,_0x5210a7,_0x3247e6,_0x52eb05,_0x1bc409,_0x20bb2d,_0x51c998,_0x11b233){const _0xfa04b3=_0x4f0284;super(),v(this,_0xfa04b3(0x127),new _0x39b41(null)),v(this,_0xfa04b3(0x1a8),this[_0xfa04b3(0x127)][_0xfa04b3(0x17a)]()),v(this,'_disposableCollection',new _0x2eecc5()),v(this,'_pluginMap',new Map()),(this['_localeService']=_0x6568bf,this[_0xfa04b3(0x192)]=_0x21f094,this[_0xfa04b3(0x1b7)]=_0x19860e,this[_0xfa04b3(0x19c)]=_0x5210a7,this[_0xfa04b3(0x1a6)]=_0x3247e6,this['_permissionService']=_0x52eb05,this['_selectionProtectionRuleModel']=_0x1bc409,this[_0xfa04b3(0x145)]=_0x20bb2d,this[_0xfa04b3(0x15b)]=_0x51c998,this[_0xfa04b3(0x105)]=_0x11b233,this[_0xfa04b3(0x199)]());}get[_0x4f0284(0x16d)](){const _0x26f0df=_0x4f0284;return this[_0x26f0df(0x127)]['value'];}['_init'](){this['_initContainer'](),this['_initPlugins']();}[_0x4f0284(0x156)](){const _0x17050d=_0x4f0284;var _0x4b77d4;const _0x140683=(_0x4b77d4=this[_0x17050d(0x1b7)][_0x17050d(0x153)](te))!=null?_0x4b77d4:Dt,_0x49ab3a=document['getElementById'](_0x140683);if(!_0x49ab3a)return;const _0x5f7563=document[_0x17050d(0x107)](_0x17050d(0x1a0));_0x5f7563['id']=_,_0x5f7563[_0x17050d(0x18c)][_0x17050d(0x102)]='history-container',_0x5f7563['style'][_0x17050d(0x16b)]=_0x17050d(0x125),_0x5f7563[_0x17050d(0x121)]['top']='0',_0x5f7563['style'][_0x17050d(0x14a)]='0',_0x5f7563[_0x17050d(0x121)][_0x17050d(0x15f)]='100%',_0x5f7563[_0x17050d(0x121)]['height']=_0x17050d(0x190),_0x5f7563['style']['zIndex']='49',_0x5f7563[_0x17050d(0x121)][_0x17050d(0x158)]=_0x17050d(0x150),_0x49ab3a[_0x17050d(0x18a)](_0x5f7563);}[_0x4f0284(0x133)](){const _0x15edbe=_0x4f0284;[[_0x345b45],[_0x5d9d78,{'container':_,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x28a7d4,null]]}],[_0x529eb3],[_0x53bc9b,{'override':[[_0x28f548,null]]}],[_0x4f8cf1,{'hasScroll':!0x1}],[_0x19299c],[_0x23ce51],[_0x2c8501,{'notExecuteFormula':!0x0}],[_0x2387a8],[_0xd7e8ec],[_0x6de86c],[_0x142f90],[_0x37bab4],[_0x131389],[_0x471a5a],[_0x44af65],[_0xdaab3a],[_0x3eea51],[_0x1658a3],[_0x52ed18],[_0x33b9a7],[_0x510324,{'notExecuteFormula':!0x0}],[_0x1c46f4],[_0xd5db7b],[_0x49e22e],[_0xfbc00f],[_0xe9ecd3],[_0x232475],[_0x5a9be4],[_0x243317],[_0x356066],[_0x503417,{'notExecuteFormula':!0x0}],[_0x58f53e]][_0x15edbe(0x1c1)](([_0x485fe5,_0x1d6f66])=>this[_0x15edbe(0x13f)](_0x485fe5,_0x1d6f66));}[_0x4f0284(0x141)](){const _0x291915=_0x4f0284;super[_0x291915(0x141)](),this[_0x291915(0x17b)](),this['_pluginMap'][_0x291915(0x119)]();}[_0x4f0284(0x13f)](_0xf0aa58,_0x45b840,_0x35948a){const _0x4981e4=_0x4f0284;if(this[_0x4981e4(0x1a4)][_0x4981e4(0x198)](_0xf0aa58[_0x4981e4(0x173)])&&!_0x35948a)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0xf0aa58[_0x4981e4(0x173)]+'\x20has\x20been\x20registered.');this[_0x4981e4(0x1a4)][_0x4981e4(0x10b)](_0xf0aa58[_0x4981e4(0x173)],[_0xf0aa58,_0x45b840]);}[_0x4f0284(0x13c)](){const _0x15f39b=_0x4f0284;return Array['from'](this['_pluginMap'][_0x15f39b(0x124)]());}[_0x4f0284(0x12d)](_0x9e239,_0x5e0373){const _0x464f5b=_0x4f0284,_0x5f39cf=document['getElementById'](_);_0x5f39cf&&(_0x5f39cf['style'][_0x464f5b(0x158)]=_0x464f5b(0x167),this['_initUniver'](_0x9e239,_,_0x5e0373));}[_0x4f0284(0x17b)](){const _0x1fdd4d=_0x4f0284;var _0x1e68a6;this['_disposableCollection'][_0x1fdd4d(0x141)](),(_0x1e68a6=this[_0x1fdd4d(0x16d)])==null||_0x1e68a6[_0x1fdd4d(0x141)](),this[_0x1fdd4d(0x127)][_0x1fdd4d(0x164)](null);const _0x5bbe19=document[_0x1fdd4d(0x195)](_);_0x5bbe19&&(_0x5bbe19[_0x1fdd4d(0x121)][_0x1fdd4d(0x158)]=_0x1fdd4d(0x150));}['_initUniver'](_0x5c02b0,_0x501f69,_0x5df883){const _0x524fa7=_0x4f0284;var _0x414cff,_0x22e28c,_0x1a6add,_0x3c6b79,_0x4559cb,_0x3fe176;if(this['historyUniver'])return;const _0x473305=new _0x4def29({'locales':{[this[_0x524fa7(0x191)][_0x524fa7(0x16e)]()]:this[_0x524fa7(0x191)][_0x524fa7(0x111)]()},'override':[[_0x45c56d,{'useClass':_0x130b36}]]}),_0x49e6cd=_0x473305[_0x524fa7(0x19e)]();this[_0x524fa7(0x147)](this[_0x524fa7(0x105)]['darkMode$'][_0x524fa7(0x176)](_0x517857=>{const _0x38c00f=_0x524fa7;_0x49e6cd['get'](_0x2ab5f1)[_0x38c00f(0x14b)](_0x517857);})),this[_0x524fa7(0x147)](this[_0x524fa7(0x105)]['currentTheme$']['subscribe'](_0x5f31a5=>{const _0x73e92f=_0x524fa7;_0x49e6cd['get'](_0x2ab5f1)[_0x73e92f(0x18f)](_0x5f31a5);})),_0x49e6cd['get'](_0x1fee5e)[_0x524fa7(0x174)](this[_0x524fa7(0x191)][_0x524fa7(0x16e)]()),_0x49e6cd[_0x524fa7(0x170)](_0x27d8c3)[_0x524fa7(0x114)](_0x1f8e00,this['_configService']['getConfig'](_0x1f8e00));const _0x4bd350=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](_0x909c77);_0x4bd350&&_0x473305[_0x524fa7(0x13f)](_0x5f5003,{'license':_0x4bd350['ls']}),_0x473305[_0x524fa7(0x13f)](_0x160bff,{'workerURL':(_0x22e28c=(_0x414cff=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](_0x401e9f))==null?void 0x0:_0x414cff[_0x524fa7(0x152)])!=null?_0x22e28c:'./worker.js'}),this['_pluginMap']['forEach'](([_0x14f381,_0x4bf7ef])=>{const _0x1474cf=_0x524fa7;_0x473305[_0x1474cf(0x13f)](_0x14f381,_0x4bf7ef);}),_0x473305[_0x524fa7(0x13f)](_0xd2e0ef,{'historyListServerUrl':(_0x1a6add=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](f))==null?void 0x0:_0x1a6add[_0x524fa7(0x183)],'historyPanelComponentKey':(_0x3c6b79=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](f))==null?void 0x0:_0x3c6b79[_0x524fa7(0x16f)],'historyPanelHidden':(_0x4559cb=this[_0x524fa7(0x1b7)][_0x524fa7(0x153)](f))==null?void 0x0:_0x4559cb[_0x524fa7(0x139)],'historyAIassistantEnabled':(_0x3fe176=this['_configService'][_0x524fa7(0x153)](f))==null?void 0x0:_0x3fe176[_0x524fa7(0x1b5)]}),_0x49e6cd['invoke'](_0x68c421=>{const _0x1ca61d=_0x524fa7;this[_0x1ca61d(0x15d)](_0x68c421,_0x5c02b0);}),this[_0x524fa7(0x127)][_0x524fa7(0x164)](_0x473305);const _0x38c0ce=_0x49e6cd[_0x524fa7(0x170)](_0x4dcebc),_0x523822=this[_0x524fa7(0x188)](_0x5c02b0),_0x4deefb=()=>{const _0xc9335c=_0x524fa7;_0x5df883?_0x38c0ce['triggerCustomVersions'](_0x5c02b0,_0x501f69,_0x523822,_0x5df883):_0x38c0ce[_0xc9335c(0x1ba)](_0x5c02b0,_0x501f69,_0x523822);},_0x2006db=this[_0x524fa7(0x1a6)][_0x524fa7(0x178)]({'content':this['_localeService']['t']('editHistory.info.initializing'),'type':_0x3450ca[_0x524fa7(0x136)]});try{_0x49e6cd['get'](_0x54ba54)[_0x524fa7(0x10f)]()[_0x524fa7(0x1ae)](()=>{const _0x3ad4d1=_0x524fa7;_0x2006db[_0x3ad4d1(0x141)](),_0x4deefb();});}catch{_0x2006db[_0x524fa7(0x141)](),_0x4deefb();}}['_initListener'](_0x34a2e1,_0x5d01dd){const _0x37fee8=_0x4f0284,_0x267701=_0x34a2e1[_0x37fee8(0x170)](_0x4dcebc);this[_0x37fee8(0x144)][_0x37fee8(0x1bc)](_0x267701[_0x37fee8(0x11c)][_0x37fee8(0x176)](_0x5eca25=>{const _0x767b14=_0x37fee8;switch(_0x5eca25){case _0x1f4ef7[_0x767b14(0x108)]:this[_0x767b14(0x145)][_0x767b14(0x14d)](),this[_0x767b14(0x15b)][_0x767b14(0x11f)]();break;case _0x1f4ef7[_0x767b14(0x186)]:this['_commandService'][_0x767b14(0x196)](ie['id']),this[_0x767b14(0x17b)]();break;case _0x1f4ef7[_0x767b14(0x17e)]:this[_0x767b14(0x17b)](),this[_0x767b14(0x1a6)][_0x767b14(0x178)]({'content':this[_0x767b14(0x191)]['t']('editHistory.panel.listFetchError'),'type':_0x3450ca[_0x767b14(0x17e)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x37fee8(0x1bc)](_0x267701[_0x37fee8(0x17c)][_0x37fee8(0x176)](async _0x444926=>{const _0x1341ee=_0x37fee8;_0x444926&&this[_0x1341ee(0x19c)]['executeCommand'](_0xe3ec52['id'],{'unitId':_0x5d01dd,'revision':_0x444926});}));}[_0x4f0284(0x188)](_0x10777c){const _0x104106=_0x4f0284,_0x4ebc76=this[_0x104106(0x192)][_0x104106(0x151)](_0x10777c)[_0x104106(0x12c)]()['map'](_0x669ee2=>_0x669ee2['getSheetId']()),_0x36b0e7=new _0xcb7193(_0x10777c)['id'],_0x4c8666=_0x4ebc76[_0x104106(0x1c0)](_0x1af31c=>new _0x2d3262(_0x10777c,_0x1af31c)['id']),_0x19565c=_0x4ebc76[_0x104106(0x1c0)](_0x11b3a5=>this[_0x104106(0x169)][_0x104106(0x15e)](_0x10777c,_0x11b3a5)[_0x104106(0x1c0)](_0x2c3ca9=>new _0x5025e9(_0x10777c,_0x11b3a5,_0x2c3ca9[_0x104106(0x10a)])['id']))[_0x104106(0x184)](),_0x4c914f=new _0x440aee(_0x10777c)['id'];return this['_permissionService'][_0x104106(0x104)]([_0x36b0e7,..._0x4c8666,..._0x19565c,_0x4c914f])[_0x104106(0x11d)](_0x5d9419=>!!_0x5d9419[_0x104106(0x179)]);}};S=wt([g(0x0,_0x1e0725(_0x1fee5e)),g(0x1,_0x25eb66),g(0x2,_0x27d8c3),g(0x3,_0x1cc320),g(0x4,_0x567c56),g(0x5,_0x368d9c),g(0x6,_0x1e0725(_0x21c543)),g(0x7,_0x1e0725(_0x28a7d4)),g(0x8,_0x1e0725(_0x4c663d)),g(0x9,_0x1e0725(_0x2ab5f1))],S);const H={'id':_0x4f0284(0x1aa),'type':_0x3149b3[_0x4f0284(0x16a)],'handler':_0x5777d3=>{const _0x4aeab9=_0x4f0284,_0xdadab3=_0x5777d3[_0x4aeab9(0x170)](S),_0x10ff49=_0x5777d3[_0x4aeab9(0x170)](_0x25eb66),{unitId:_0x2480ca}=_0x396527(_0x10ff49)||{};return _0x2480ca?(_0xdadab3[_0x4aeab9(0x12d)](_0x2480ca),!0x0):!0x1;}},ie={'id':_0x4f0284(0x106),'type':_0x3149b3[_0x4f0284(0x16a)],'handler':()=>!0x0};function Tt(_0x39798b){const _0x4d2541=_0x4f0284;return{'id':H['id'],'type':_0x247b3b[_0x4d2541(0x154)],'icon':_0x4d2541(0x180),'tooltip':_0x4d2541(0x166),'hidden$':_0x2a24a8(_0x39798b,_0x35b0f6['UNIVER_SHEET']),'disabled$':_0x47e68c(_0x39798b,{'workbookTypes':[_0xcb7193,_0xe69d64],'worksheetTypes':[],'rangeTypes':[]})};}const $t={[_0xd1aebe['OTHERS']]:{[H['id']]:{'order':0.2,'menuItemFactory':Tt}}};var At=Object['getOwnPropertyDescriptor'],xt=(_0xcad0c0,_0x171caf,_0x4ff004,_0x81a3e)=>{const _0x3fd909=_0x4f0284;for(var _0x28bf77=_0x81a3e>0x1?void 0x0:_0x81a3e?At(_0x171caf,_0x4ff004):_0x171caf,_0x4a8ca6=_0xcad0c0[_0x3fd909(0x1b0)]-0x1,_0x46c10e;_0x4a8ca6>=0x0;_0x4a8ca6--)(_0x46c10e=_0xcad0c0[_0x4a8ca6])&&(_0x28bf77=_0x46c10e(_0x28bf77)||_0x28bf77);return _0x28bf77;},h=(_0x206e1e,_0x4cdce6)=>(_0x282157,_0x28abac)=>_0x4cdce6(_0x282157,_0x28abac,_0x206e1e);let I=class extends _0x1db88e{constructor(_0x33090a,_0x332284,_0x546644,_0x392950,_0x19dd34,_0x3db343,_0x2bf924,_0x311d9f,_0x4c9460,_0x121bf9,_0x2a5037){const _0x505ad0=_0x4f0284;super(),v(this,_0x505ad0(0x175),null),(this[_0x505ad0(0x19c)]=_0x33090a,this['_menuManagerService']=_0x332284,this[_0x505ad0(0x163)]=_0x546644,this['_historyManagerService']=_0x392950,this['_localeService']=_0x19dd34,this[_0x505ad0(0x1a6)]=_0x3db343,this[_0x505ad0(0x134)]=_0x2bf924,this[_0x505ad0(0x18b)]=_0x311d9f,this[_0x505ad0(0x168)]=_0x4c9460,this['_univerInstanceService']=_0x121bf9,this[_0x505ad0(0x1b6)]=_0x2a5037,this[_0x505ad0(0x199)]());}[_0x4f0284(0x199)](){const _0x3db2a6=_0x4f0284;[H,ie][_0x3db2a6(0x1c1)](_0x135c4f=>this['disposeWithMe'](_0x3c8c0f(this[_0x3db2a6(0x19c)][_0x3db2a6(0x129)](_0x135c4f)))),this[_0x3db2a6(0x147)](this[_0x3db2a6(0x163)][_0x3db2a6(0x159)]('HistoryIcon',ee)),this[_0x3db2a6(0x1b3)]['mergeMenu']($t),this[_0x3db2a6(0x147)](this[_0x3db2a6(0x19c)][_0x3db2a6(0x19b)](async(_0x2f4ad8,_0x49945e)=>{const _0x45f1cb=_0x3db2a6;if(_0x2f4ad8['id']===_0xe3ec52['id']){const {unitId:_0xc9a05d}=_0x2f4ad8[_0x45f1cb(0x12b)];this[_0x45f1cb(0x1a6)][_0x45f1cb(0x178)]({'content':this[_0x45f1cb(0x191)]['t'](_0x45f1cb(0x18e)),'type':_0x3450ca[_0x45f1cb(0x136)],'duration':0x1388});const _0x134cfb=this[_0x45f1cb(0x134)][_0x45f1cb(0x1bb)](_0xc9a05d);(_0x49945e==null?void 0x0:_0x49945e['fromCollab'])?this[_0x45f1cb(0x132)](_0x134cfb,async()=>(setTimeout(()=>window[_0x45f1cb(0x12a)]['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x134cfb,async()=>{const _0x2a205d=_0x45f1cb,_0x355de7=this['_univerInstanceService']['getCurrentUnitOfType'](b['UNIVER_SHEET']),_0x14a258=_0x355de7==null?void 0x0:_0x355de7[_0x2a205d(0x182)]();if(!_0x14a258)return!0x1;this[_0x2a205d(0x192)][_0x2a205d(0x142)](_0xc9a05d);const _0x190521=await this[_0x2a205d(0x168)][_0x2a205d(0x103)](_0xc9a05d,b[_0x2a205d(0x12e)]);return _0x190521&&_0x190521 instanceof _0x51eadd?(await this[_0x2a205d(0x117)](_0x190521,_0x14a258['getSheetId']()),!0x0):!0x1;});}}));}[_0x4f0284(0x132)](_0x4af004,_0x2c960b,_0xa0c37e=!0x1){const _0x340397=_0x4f0284,_0x478257=_0x5bbc1f([_0x4af004['session']['event$'],_0x4af004[_0x340397(0x14e)]])[_0x340397(0x176)](async([_0x3b876c,_0x32e989])=>{const _0x113688=_0x340397;var _0x5d8011;_0x3b876c[_0x113688(0x193)]===_0x4e66db[_0x113688(0x120)]&&(_0x32e989==null?void 0x0:_0x32e989[_0x113688(0x148)])===_0x36c762['SYNCED']&&_0x3b876c['data']['mutations'][_0x113688(0x1ad)](_0x51ccae=>_0x51ccae['id']===_0xe3ec52['id'])&&await _0x2c960b()&&(this[_0x113688(0x1b1)][_0x113688(0x17b)](),_0x478257['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x113688(0x175)]),await((_0x5d8011=this['_localCacheService'])==null?void 0x0:_0x5d8011[_0x113688(0x1bf)]()));});_0xa0c37e&&(this[_0x340397(0x175)]=setTimeout(()=>{const _0x108e34=_0x340397;_0x478257[_0x108e34(0x14f)](),this[_0x108e34(0x1a6)][_0x108e34(0x178)]({'content':this[_0x108e34(0x191)]['t'](_0x108e34(0x19a)),'type':_0x3450ca[_0x108e34(0x17e)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x3f747b,_0x1282b0){const _0x2243d3=_0x4f0284;await this[_0x2243d3(0x140)](_0x3f747b,_0x1282b0),_0x3f747b[_0x2243d3(0x13b)][_0x2243d3(0x13e)](_0x4d1886(this[_0x2243d3(0x185)]))['subscribe'](_0x462669=>{const _0x4d0561=_0x2243d3;_0x462669&&this[_0x4d0561(0x146)](_0x462669);}),this['_urlService']['urlChange$']['pipe'](_0x4d1886(this[_0x2243d3(0x185)]))['subscribe'](()=>this[_0x2243d3(0x140)](_0x3f747b,_0x1282b0));}['_updateURLWithCurrentState'](_0x24d154,_0x13fce3=!0x1){const _0x318c6a=_0x4f0284,_0x4417c4=this[_0x318c6a(0x1b6)][_0x318c6a(0x165)](_0x318c6a(0x11b));_0x24d154[_0x318c6a(0x10e)]()!==_0x4417c4&&this[_0x318c6a(0x1b6)][_0x318c6a(0x181)](_0x318c6a(0x11b),_0x24d154['getSheetId'](),_0x13fce3);}async[_0x4f0284(0x140)](_0x41586b,_0x239c3e){const _0x5f0079=_0x4f0284;var _0x2638dd;if(!_0x239c3e||!_0x41586b[_0x5f0079(0x194)](_0x239c3e)){const _0x545320=_0x41586b[_0x5f0079(0x17d)]()[0x0],_0x5f1c1d=_0x41586b[_0x5f0079(0x194)](_0x545320);if(!_0x5f1c1d)return;this[_0x5f0079(0x146)](_0x5f1c1d,!0x0),await this['_commandService'][_0x5f0079(0x196)](_0x25e165['id'],{'unitId':_0x41586b[_0x5f0079(0x112)](),'subUnitId':_0x545320});return;}((_0x2638dd=_0x41586b[_0x5f0079(0x182)]())==null?void 0x0:_0x2638dd[_0x5f0079(0x10e)]())!==_0x239c3e&&await this[_0x5f0079(0x19c)]['executeCommand'](_0x25e165['id'],{'unitId':_0x41586b[_0x5f0079(0x112)](),'subUnitId':_0x239c3e});}};I=xt([h(0x0,_0x1cc320),h(0x1,_0x1dcef5),h(0x2,_0x1e0725(_0x1b6d11)),h(0x3,_0x1e0725(S)),h(0x4,_0x1e0725(_0x1fee5e)),h(0x5,_0x567c56),h(0x6,_0x1e0725(_0x139566)),h(0x7,_0x578178),h(0x8,_0x1e0725(_0x368be7)),h(0x9,_0x25eb66),h(0xa,_0x5cace3)],I);var Vt=Object['defineProperty'],Ft=Object[_0x4f0284(0x135)],kt=(_0x11768a,_0x38ff8a,_0x4189bb)=>_0x38ff8a in _0x11768a?Vt(_0x11768a,_0x38ff8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4189bb}):_0x11768a[_0x38ff8a]=_0x4189bb,Wt=(_0x5e9de9,_0x42d046,_0x5ce715,_0x325ae9)=>{const _0x4f53b1=_0x4f0284;for(var _0x17231e=_0x325ae9>0x1?void 0x0:_0x325ae9?Ft(_0x42d046,_0x5ce715):_0x42d046,_0x198256=_0x5e9de9[_0x4f53b1(0x1b0)]-0x1,_0x2ed9f1;_0x198256>=0x0;_0x198256--)(_0x2ed9f1=_0x5e9de9[_0x198256])&&(_0x17231e=_0x2ed9f1(_0x17231e)||_0x17231e);return _0x17231e;},j=(_0x35c7d6,_0x112c5b)=>(_0x365255,_0x5d8ec9)=>_0x112c5b(_0x365255,_0x5d8ec9,_0x35c7d6),re=(_0x49afdf,_0x11753c,_0x254b82)=>kt(_0x49afdf,typeof _0x11753c!=_0x4f0284(0x162)?_0x11753c+'':_0x11753c,_0x254b82);const jt='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';let y=class extends _0x1ba6f1{constructor(_0x438f47=W,_0x1d3236,_0xd6bd6){const _0x480e4d=_0x4f0284;super(),this[_0x480e4d(0x187)]=_0x438f47,this[_0x480e4d(0x1b8)]=_0x1d3236,this[_0x480e4d(0x1b7)]=_0xd6bd6;const {menu:_0x5728cb,..._0x3ebe82}=_0x58a321({},W,this['_config']);_0x5728cb&&this[_0x480e4d(0x1b7)][_0x480e4d(0x114)]('menu',_0x5728cb,{'merge':!0x0}),this['_configService'][_0x480e4d(0x114)](f,_0x3ebe82),this[_0x480e4d(0x187)]['univerContainerId']&&this[_0x480e4d(0x1b7)][_0x480e4d(0x114)](te,this['_config']['univerContainerId']);}['onStarting'](){[[S],[I]]['forEach'](_0x5cf1f7=>this['_injector']['add'](_0x5cf1f7));}[_0x4f0284(0x122)](){const _0x30c94f=_0x4f0284;this[_0x30c94f(0x1b8)][_0x30c94f(0x170)](I);}};re(y,_0x4f0284(0x15c),_0x35b0f6[_0x4f0284(0x1ac)]),re(y,_0x4f0284(0x173),jt),y=Wt([_0xbb9171(_0x5f5003),j(0x1,_0x1e0725(_0x53466a)),j(0x2,_0x27d8c3)],y);export{S as HistoryLoaderService,te as UNIVER_CONTAINER_ID_KEY,_ as UNIVER_HISTORY_CONTAINER_ID,y as UniverEditHistoryLoaderPlugin};
|
|
@@ -10,5 +10,7 @@ export interface IUniverEditHistoryLoaderConfig {
|
|
|
10
10
|
*/
|
|
11
11
|
historyListServerUrl?: string;
|
|
12
12
|
historyPanelComponentKey?: string;
|
|
13
|
+
historyPanelHidden?: boolean;
|
|
14
|
+
historyAIassistantEnabled?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CollaborationController, ILocalCacheService } from '@univerjs-pro/collaboration-client';
|
|
2
|
-
import {
|
|
1
|
+
import { CollaborationController, DataLoaderService, ILocalCacheService } from '@univerjs-pro/collaboration-client';
|
|
2
|
+
import { IURLService } from '@univerjs-pro/collaboration-client-ui';
|
|
3
|
+
import { ICommandService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
3
4
|
import { ComponentManager, IMenuManagerService, IMessageService } from '@univerjs/ui';
|
|
4
5
|
import { HistoryLoaderService } from '../services/history-loader.service';
|
|
5
6
|
export declare class HistoryLoaderController extends RxDisposable {
|
|
@@ -11,7 +12,14 @@ export declare class HistoryLoaderController extends RxDisposable {
|
|
|
11
12
|
private readonly _messageService;
|
|
12
13
|
private readonly _collaborationController;
|
|
13
14
|
private readonly _localCacheService;
|
|
15
|
+
private readonly _dataLoaderService;
|
|
16
|
+
private readonly _univerInstanceService;
|
|
17
|
+
private readonly _urlService;
|
|
14
18
|
private _revertErrorTimer;
|
|
15
|
-
constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService, _componentManager: ComponentManager, _historyManagerService: HistoryLoaderService, _localeService: LocaleService, _messageService: IMessageService, _collaborationController: CollaborationController, _localCacheService: ILocalCacheService);
|
|
19
|
+
constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService, _componentManager: ComponentManager, _historyManagerService: HistoryLoaderService, _localeService: LocaleService, _messageService: IMessageService, _collaborationController: CollaborationController, _localCacheService: ILocalCacheService, _dataLoaderService: DataLoaderService, _univerInstanceService: IUniverInstanceService, _urlService: IURLService);
|
|
16
20
|
private _init;
|
|
21
|
+
private _handleRevertAcknowledgement;
|
|
22
|
+
private _setupSubUnitSync;
|
|
23
|
+
private _updateURLWithCurrentState;
|
|
24
|
+
private _updateSubUnitFromURLParams;
|
|
17
25
|
}
|
|
@@ -27,7 +27,7 @@ export declare class HistoryLoaderService extends Disposable {
|
|
|
27
27
|
dispose(): void;
|
|
28
28
|
registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
|
|
29
29
|
getAllPlugins(): [ctor: PluginCtor, config: object | undefined][];
|
|
30
|
-
mountHistoryContent(unitId: string): void;
|
|
30
|
+
mountHistoryContent(unitId: string, param?: unknown): void;
|
|
31
31
|
unMountHistoryContent(): void;
|
|
32
32
|
private _initUniver;
|
|
33
33
|
private _initListener;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5072(_0xaff03e,_0x5fb0e5){_0xaff03e=_0xaff03e-0x118;const _0x11571e=_0x1157();let _0x507297=_0x11571e[_0xaff03e];return _0x507297;}function _0x1157(){const _0x718f90=['@univerjs/sheets-numfmt','UniverCollaborationPlugin','next','add','UniverSheetSparklineUIPlugin','UniverSheetsFormulaUi','UniverSheetsHyperLink','_univerInstanceService','assign','useRef','permissionId','_historyUniver$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','attrs','toStringTag','RevertRevisionMutation','symbol','display','@univerjs-pro/sheets-pivot','_disposableCollection','triggerLoadVersions','UniverProEditHistoryLoader','UniverSheetsNumfmt','UniverSheets','UniverProSheetsSparkline','UniverUi','OTHERS','historyUniver$','amd','UniverSheetsFilterUi','CHANGESET_ACK','UniverDesign','white','CollaborationStatus','length','defIds','string','params','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','UniverSheetsConditionalFormattingUi','@univerjs-pro/license','UniverEngineRender','xlink:href','block','UniverProLicense','univerjs-icon\x20univerjs-icon-','Disposable','reload','UniverSheetsFilterUIPlugin','LS_CONFIG_KEY','composePermission','_commandService','_checkCanRevert','Injector','Loading','defineProperty','asObservable','getConfig','UniverSheetsPivotTablePlugin','displayName','_injector','WorkbookViewHistoryPermission','UniverProEditHistoryViewer','CommandType','UNIVER_UNKNOWN','@univerjs/ui','colorChannel1','HistoryLoaderService','idSuffix','_initListener','rxjs','url(#$1','ISidebarService','Entered','mutations','_initContainer','location','zIndex','UniverIcon','tag','UniverSheetsDataValidationUi','UniverEditHistoryLoaderPlugin','UNIVER_CONTAINER_ID_KEY','BehaviorSubject','forwardRef','use','none','UniverSheetsDataValidationUIPlugin','UNIVER_HISTORY_CONTAINER_ID','darkMode$','./worker.js','OPERATION','70289rVmRbD','UniverSheetsHyperLinkUi','_collaborationController','merge','onCommandExecuted','UniverSheetsShapeUIPlugin','CollaborationController','value','ILocalCacheService','UniverSheetsHyperLinkUIPlugin','_permissionService','dispose','object','1em','div','onStarting','Error','svg','exports','UniverCore','dataset','forEach','IConfigService','event$','@univerjs/drawing-ui','UniverSheetsNumfmtPlugin','@univerjs/sheets','UniverEngineFormula','UniverEditHistoryViewerPlugin','@univerjs/sheets-conditional-formatting','history-icon_clip0_907_281','state$','UniverProSheetsChartUi','@univerjs-pro/sheets-chart','substring','IMenuManagerService','@univerjs/core','getSheetCommandTarget','every','23484290MPOADc','top','pluginName','getUnit','UniverSheetsChartPlugin','invoke','@univerjs/design','DisposableCollection','@univerjs-pro/collaboration','style','UniverSheetsHyperLinkPlugin','UniverLicensePlugin','combineLatest','editHistory.panel.revertFailed','335111goTzuG','historyUniver','UniverSheetsDrawingUIPlugin','menu','getSubunitRuleList','map','currentColor','close','height','24UiVUQJ','1448ADPpSZ','getElementById','UniverUIPlugin','UniverSheetsDrawingPlugin','status$','_init','_config','getOwnPropertyDescriptor','IDialogService','function','@univerjs/sheets-ui','UniverProSheetsShapeUi','@univerjs-pro/sheets-sparkline-ui','UniverSheetsConditionalFormatting','getMenuHiddenObservable','RxDisposable','univer-container','LocaleService','has','history-icon','width','WorkbookEditablePermission','@univerjs/sheets-formula-ui','registerCommand','@univerjs/sheets-data-validation-ui','getCurrentLocale','some','UniverSheetsDataValidation','Univer','_componentManager','editHistory.panel.title','ThemeService','replace','includes','51228ozbbNO','Exited','@univerjs/sheets-drawing-ui','_sidebarService','mountHistoryContent','UniverSheetsShapePlugin','HistoryIcon','@univerjs/engine-formula','AuthzIoHttpService','_localeService','UniverInstanceType','3222190fwRwBl','IPermissionService','M0\x200H16V16H0z','100%','HistoryModeStatus','Module','IImageIoService','UniverDrawingPlugin','MessageType','@univerjs/sheets-filter','currentTheme$','UniverProCollaborationClient','IUniverInstanceService','342RMpxqy','MenuItemType','UniverDrawingUi','from','HistoryManagerService','UniverDataValidationPlugin','UniverProSheetsPivot','22424nJBxAl','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','eventID','uComp','@univerjs/engine-render','UniverSheetsConditionalFormattingPlugin','WorksheetEditPermission','@univerjs/rpc','@univerjs/docs','entries','@univerjs/docs-ui','unMountHistoryContent','toString','UniverRpc','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','left','workerURL','react','setDarkMode','UniverDocs','revertRevision$','register','ComponentManager','\x20has\x20been\x20registered.','UniverSheetsPlugin','setConfig','Plugin','clipPath','UniverNetwork','UniverDataValidation','CollaborationEvent','[HistoryLoaderService]:\x20Plugin\x20','UniverRPCMainThreadPlugin','mergeMenu','UniverProSheetsChart','mask','@univerjs/data-validation','UNIVER_CONTAINER_ID','WorkbookRecoverHistoryPermission','children','UniverNetworkPlugin','registerPlugin','path','values','_localCacheService','univerContainerId','history-container','appendChild','@univerjs-pro/edit-history-viewer','IMessageService','_configService','@univerjs/sheets-hyper-link-ui','IAuthzIoService','_initPlugins','data','createElement','edit-history-loader.config','UniverSheetsDataValidationPlugin','@univerjs/sheets-drawing','_themeService','@univerjs/sheets-conditional-formatting-ui','_pluginMap','UniverDrawing','UniverProSheetsShape','_historyManagerService','UniverSheetsChartUIPlugin','@univerjs-pro/sheets-shape','get','1957980uiHrBX','0\x200\x2016\x2016','_menuManagerService','_revertErrorTimer','_messageService','@univerjs/network','UNIVER_SHEET','position','PLUGIN_CONFIG_KEY_MAIN_THREAD','@univerjs-pro/sheets-chart-ui','UniverSheetsDrawingUi','fill','_selectionProtectionRuleModel','subscribe','unsubscribe','UniverSheetsFilterPlugin','ICommandService','defs','absolute','executeCommand','disposeWithMe','show','_initUniver','Inject','onSteady','editHistory.panel.listFetchError'];_0x1157=function(){return _0x718f90;};return _0x1157();}(function(_0x5647ba,_0xfb5c72){const _0x28e4bc=_0x5072,_0xfec5c7=_0x5647ba();while(!![]){try{const _0x20f17b=parseInt(_0x28e4bc(0x179))/0x1+-parseInt(_0x28e4bc(0x23d))/0x2+parseInt(_0x28e4bc(0x1f2))/0x3*(parseInt(_0x28e4bc(0x1f9))/0x4)+-parseInt(_0x28e4bc(0x1e5))/0x5+-parseInt(_0x28e4bc(0x1b7))/0x6*(-parseInt(_0x28e4bc(0x1ae))/0x7)+-parseInt(_0x28e4bc(0x1b8))/0x8*(parseInt(_0x28e4bc(0x1da))/0x9)+parseInt(_0x28e4bc(0x1a0))/0xa;if(_0x20f17b===_0xfb5c72)break;else _0xfec5c7['push'](_0xfec5c7['shift']());}catch(_0x5720a9){_0xfec5c7['push'](_0xfec5c7['shift']());}}}(_0x1157,0x9169e),function(_0x496905,_0x12070c){const _0x46cc4b=_0x5072;typeof exports==_0x46cc4b(0x185)&&typeof module<'u'?_0x12070c(exports,require('@univerjs-pro/license'),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/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-shape'),require('@univerjs-pro/sheets-shape-ui'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/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==_0x46cc4b(0x1c1)&&define[_0x46cc4b(0x139)]?define([_0x46cc4b(0x18b),_0x46cc4b(0x145),_0x46cc4b(0x19d),_0x46cc4b(0x1a8),'@univerjs-pro/collaboration-client',_0x46cc4b(0x1a6),_0x46cc4b(0x20a),_0x46cc4b(0x15e),'rxjs',_0x46cc4b(0x193),_0x46cc4b(0x229),_0x46cc4b(0x19a),_0x46cc4b(0x246),_0x46cc4b(0x12f),_0x46cc4b(0x23b),'@univerjs-pro/sheets-shape-ui','@univerjs-pro/sheets-sparkline',_0x46cc4b(0x1c4),_0x46cc4b(0x21d),_0x46cc4b(0x201),_0x46cc4b(0x203),'@univerjs/drawing',_0x46cc4b(0x191),_0x46cc4b(0x1e1),_0x46cc4b(0x1fd),_0x46cc4b(0x242),_0x46cc4b(0x200),_0x46cc4b(0x196),_0x46cc4b(0x235),'@univerjs/sheets-data-validation',_0x46cc4b(0x1d0),_0x46cc4b(0x233),_0x46cc4b(0x1dc),_0x46cc4b(0x1ee),'@univerjs/sheets-filter-ui','@univerjs/sheets-formula',_0x46cc4b(0x1ce),'@univerjs/sheets-hyper-link',_0x46cc4b(0x22c),_0x46cc4b(0x11d),_0x46cc4b(0x1c2)],_0x12070c):(_0x496905=typeof globalThis<'u'?globalThis:_0x496905||self,_0x12070c(_0x496905[_0x46cc4b(0x132)]={},_0x496905[_0x46cc4b(0x149)],_0x496905[_0x46cc4b(0x18c)],_0x496905['UniverProCollaboration'],_0x496905[_0x46cc4b(0x1f0)],_0x496905[_0x46cc4b(0x13c)],_0x496905['React'],_0x496905[_0x46cc4b(0x136)],_0x496905[_0x46cc4b(0x163)],_0x496905[_0x46cc4b(0x134)],_0x496905[_0x46cc4b(0x15b)],_0x496905[_0x46cc4b(0x21b)],_0x496905[_0x46cc4b(0x199)],_0x496905[_0x46cc4b(0x1f8)],_0x496905[_0x46cc4b(0x238)],_0x496905[_0x46cc4b(0x1c3)],_0x496905[_0x46cc4b(0x135)],_0x496905['UniverProSheetsSparklineUi'],_0x496905[_0x46cc4b(0x216)],_0x496905[_0x46cc4b(0x20c)],_0x496905['UniverDocsUi'],_0x496905[_0x46cc4b(0x237)],_0x496905[_0x46cc4b(0x1f4)],_0x496905[_0x46cc4b(0x194)],_0x496905[_0x46cc4b(0x146)],_0x496905[_0x46cc4b(0x215)],_0x496905[_0x46cc4b(0x206)],_0x496905[_0x46cc4b(0x1c5)],_0x496905[_0x46cc4b(0x144)],_0x496905[_0x46cc4b(0x1d3)],_0x496905[_0x46cc4b(0x16d)],_0x496905['UniverSheetsDrawing'],_0x496905[_0x46cc4b(0x247)],_0x496905['UniverSheetsFilter'],_0x496905[_0x46cc4b(0x13a)],_0x496905['UniverSheetsFormula'],_0x496905[_0x46cc4b(0x122)],_0x496905[_0x46cc4b(0x123)],_0x496905[_0x46cc4b(0x17a)],_0x496905[_0x46cc4b(0x133)],_0x496905['UniverSheetsUi']));}(this,function(_0x5d03b3,_0x519c60,_0x45d6ef,_0x3c64c6,_0x5d7416,_0x88af1f,_0x23b9b4,_0x48a906,_0x53b914,_0x28d423,_0x44e527,_0x3ffaca,_0xe286b9,_0x182426,_0x15102e,_0x4b52ac,_0x3d5912,_0x3294b5,_0x5d3e98,_0x5a1508,_0x40e18a,_0x32689a,_0x295055,_0x1449b4,_0x5ad416,_0x12d259,_0x3f6c0d,_0x2e11b1,_0x2b48da,_0x2de240,_0xed2afa,_0x1a6600,_0x3242bf,_0x26369c,_0x1d8788,_0x32ba66,_0x18fc32,_0x1af154,_0x387991,_0x9f72d7,_0x33f709){'use strict';const _0x308006=_0x5072;var _0x3cfeed=Object[_0x308006(0x154)],_0x11a93c=(_0x44359d,_0x6d7d1f,_0x38803a)=>_0x6d7d1f in _0x44359d?_0x3cfeed(_0x44359d,_0x6d7d1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38803a}):_0x44359d[_0x6d7d1f]=_0x38803a,_0x22f21a=(_0x1d69ce,_0xeb5b83,_0x477093)=>_0x11a93c(_0x1d69ce,typeof _0xeb5b83!='symbol'?_0xeb5b83+'':_0xeb5b83,_0x477093);const _0xd2327e=_0x308006(0x231),_0x391280={};function _0x46e13c({ref:_0x255af7,..._0x413a47}){const _0x27135f=_0x308006,{icon:_0x331d2d,id:_0x3e73a2,className:_0xdb8b69,extend:_0x4b8a8f,..._0x185f71}=_0x413a47,_0x3eacc5=(_0x27135f(0x14a)+_0x3e73a2+'\x20'+(_0xdb8b69||''))['trim'](),_0x168bed=_0x23b9b4[_0x27135f(0x126)]('_'+_0x5bc093());return _0xa20a86(_0x331d2d,''+_0x3e73a2,{'defIds':_0x331d2d[_0x27135f(0x140)],'idSuffix':_0x168bed['current']},{'ref':_0x255af7,'className':_0x3eacc5,..._0x185f71},_0x4b8a8f);}function _0xa20a86(_0x5c6051,_0x4afc94,_0x40d24b,_0xca4689,_0x1917d3){const _0x576f92=_0x308006;return _0x23b9b4[_0x576f92(0x230)](_0x5c6051[_0x576f92(0x16c)],{'key':_0x4afc94,..._0x20966d(_0x5c6051,_0x40d24b,_0x1917d3),..._0xca4689},(_0x587174(_0x5c6051,_0x40d24b)[_0x576f92(0x220)]||[])[_0x576f92(0x1b3)]((_0x41aedd,_0x59914d)=>_0xa20a86(_0x41aedd,_0x4afc94+'-'+_0x5c6051[_0x576f92(0x16c)]+'-'+_0x59914d,_0x40d24b,void 0x0,_0x1917d3)));}function _0x20966d(_0x463780,_0x11ee49,_0x563201){const _0x5df281=_0x308006,_0x2dbe7e={..._0x463780[_0x5df281(0x12a)]};_0x563201!=null&&_0x563201[_0x5df281(0x15f)]&&_0x2dbe7e[_0x5df281(0x248)]===_0x5df281(0x15f)&&(_0x2dbe7e['fill']=_0x563201[_0x5df281(0x15f)]),_0x463780[_0x5df281(0x16c)]==='mask'&&_0x2dbe7e['id']&&(_0x2dbe7e['id']=_0x2dbe7e['id']+_0x11ee49[_0x5df281(0x161)]),Object[_0x5df281(0x202)](_0x2dbe7e)[_0x5df281(0x18e)](([_0x170c07,_0xfed074])=>{const _0x544495=_0x5df281;_0x170c07===_0x544495(0x21c)&&typeof _0xfed074==_0x544495(0x141)&&(_0x2dbe7e[_0x170c07]=_0xfed074[_0x544495(0x1d8)](/url\(#(.*)\)/,_0x544495(0x164)+_0x11ee49[_0x544495(0x161)]+')'));});const {defIds:_0x118870}=_0x11ee49;return!_0x118870||_0x118870['length']===0x0||(_0x463780['tag']===_0x5df281(0x172)&&_0x2dbe7e[_0x5df281(0x147)]&&(_0x2dbe7e['xlink:href']=_0x2dbe7e[_0x5df281(0x147)]+_0x11ee49[_0x5df281(0x161)]),Object['entries'](_0x2dbe7e)[_0x5df281(0x18e)](([_0xf253e6,_0x2061d2])=>{const _0x5dfa00=_0x5df281;typeof _0x2061d2==_0x5dfa00(0x141)&&(_0x2dbe7e[_0xf253e6]=_0x2061d2['replace'](/url\(#(.*)\)/,_0x5dfa00(0x164)+_0x11ee49[_0x5dfa00(0x161)]+')'));})),_0x2dbe7e;}function _0x587174(_0x5921dd,_0x5ed22e){const _0x2d28c7=_0x308006;var _0x247d48;const {defIds:_0x5aea26}=_0x5ed22e;return!_0x5aea26||_0x5aea26[_0x2d28c7(0x13f)]===0x0?_0x5921dd:_0x5921dd[_0x2d28c7(0x16c)]==='defs'&&((_0x247d48=_0x5921dd[_0x2d28c7(0x220)])!=null&&_0x247d48['length'])?{..._0x5921dd,'children':_0x5921dd[_0x2d28c7(0x220)][_0x2d28c7(0x1b3)](_0x211414=>typeof _0x211414['attrs']['id']==_0x2d28c7(0x141)&&_0x5aea26&&_0x5aea26[_0x2d28c7(0x1d9)](_0x211414[_0x2d28c7(0x12a)]['id'])?{..._0x211414,'attrs':{..._0x211414[_0x2d28c7(0x12a)],'id':_0x211414['attrs']['id']+_0x5ed22e[_0x2d28c7(0x161)]}}:_0x211414)}:_0x5921dd;}function _0x5bc093(){const _0x25fa74=_0x308006;return Math['random']()[_0x25fa74(0x205)](0x24)[_0x25fa74(0x19b)](0x2,0x8);}_0x46e13c[_0x308006(0x158)]=_0x308006(0x16b);const _0x134885={'tag':_0x308006(0x18a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x308006(0x173),'viewBox':_0x308006(0x23e),'width':'1em','height':_0x308006(0x186)},'children':[{'tag':'g','attrs':{'fill':_0x308006(0x1b4),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x308006(0x223),'attrs':{'d':_0x308006(0x1fa)}},{'tag':_0x308006(0x223),'attrs':{'d':_0x308006(0x143)}}]},{'tag':_0x308006(0x24e),'attrs':{},'children':[{'tag':_0x308006(0x214),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x308006(0x223),'attrs':{'fill':_0x308006(0x13d),'d':_0x308006(0x1e7)}}]}]}],'defIds':[_0x308006(0x197)]},_0x2dee8b=_0x23b9b4[_0x308006(0x171)](function(_0x134888,_0x4504aa){const _0x3dcbdf=_0x308006;return _0x23b9b4['createElement'](_0x46e13c,Object[_0x3dcbdf(0x125)]({},_0x134888,{'id':_0x3dcbdf(0x1cb),'ref':_0x4504aa,'icon':_0x134885}));});_0x2dee8b['displayName']=_0x308006(0x1e0);var _0x3b2c1e=Object[_0x308006(0x1bf)],_0x429229=(_0x5f1320,_0x28b801,_0x19e170,_0xe76676)=>{const _0x53bfc7=_0x308006;for(var _0x22b261=_0xe76676>0x1?void 0x0:_0xe76676?_0x3b2c1e(_0x28b801,_0x19e170):_0x28b801,_0x53b332=_0x5f1320[_0x53bfc7(0x13f)]-0x1,_0x1a587b;_0x53b332>=0x0;_0x53b332--)(_0x1a587b=_0x5f1320[_0x53b332])&&(_0x22b261=_0x1a587b(_0x22b261)||_0x22b261);return _0x22b261;},_0x28e3d6=(_0x788503,_0x481eee)=>(_0x4864d3,_0x1f12b5)=>_0x481eee(_0x4864d3,_0x1f12b5,_0x788503);const _0x3f072d=_0x308006(0x1c8),_0x4b08ac=_0x308006(0x21e),_0x35e4e2='univer-history-container';_0x5d03b3[_0x308006(0x160)]=class extends _0x45d6ef[_0x308006(0x14b)]{constructor(_0x5ac6b7,_0x20a780,_0x221947,_0x9d3bab,_0xea400b,_0x583e32,_0x25dfa5,_0x5dc3ff,_0x15eb9b,_0x3bec43){const _0x3a4c5f=_0x308006;super(),_0x22f21a(this,_0x3a4c5f(0x128),new _0x53b914[(_0x3a4c5f(0x170))](null)),_0x22f21a(this,_0x3a4c5f(0x138),this[_0x3a4c5f(0x128)][_0x3a4c5f(0x155)]()),_0x22f21a(this,_0x3a4c5f(0x130),new _0x45d6ef[(_0x3a4c5f(0x1a7))]()),_0x22f21a(this,'_pluginMap',new Map()),(this[_0x3a4c5f(0x1e3)]=_0x5ac6b7,this[_0x3a4c5f(0x124)]=_0x20a780,this[_0x3a4c5f(0x22b)]=_0x221947,this['_commandService']=_0x9d3bab,this[_0x3a4c5f(0x241)]=_0xea400b,this[_0x3a4c5f(0x183)]=_0x583e32,this[_0x3a4c5f(0x249)]=_0x25dfa5,this['_dialogService']=_0x5dc3ff,this[_0x3a4c5f(0x1dd)]=_0x15eb9b,this['_themeService']=_0x3bec43,this['_init']());}get['historyUniver'](){return this['_historyUniver$']['value'];}[_0x308006(0x1bd)](){const _0x2f8a62=_0x308006;this[_0x2f8a62(0x168)](),this[_0x2f8a62(0x22e)]();}[_0x308006(0x168)](){const _0x1966ea=_0x308006;var _0x1bb581;const _0x52e735=(_0x1bb581=this['_configService'][_0x1966ea(0x156)](_0x4b08ac))!=null?_0x1bb581:_0x3f072d,_0x5ccc29=document['getElementById'](_0x52e735);if(!_0x5ccc29)return;const _0x1dfd68=document[_0x1966ea(0x230)](_0x1966ea(0x187));_0x1dfd68['id']=_0x35e4e2,_0x1dfd68[_0x1966ea(0x18d)][_0x1966ea(0x1fc)]=_0x1966ea(0x227),_0x1dfd68['style'][_0x1966ea(0x244)]=_0x1966ea(0x24f),_0x1dfd68['style'][_0x1966ea(0x1a1)]='0',_0x1dfd68[_0x1966ea(0x1a9)][_0x1966ea(0x208)]='0',_0x1dfd68['style'][_0x1966ea(0x1cc)]=_0x1966ea(0x1e8),_0x1dfd68['style'][_0x1966ea(0x1b6)]=_0x1966ea(0x1e8),_0x1dfd68[_0x1966ea(0x1a9)][_0x1966ea(0x16a)]='1000',_0x1dfd68[_0x1966ea(0x1a9)][_0x1966ea(0x12e)]=_0x1966ea(0x173),_0x5ccc29[_0x1966ea(0x228)](_0x1dfd68);}[_0x308006(0x22e)](){const _0x10af33=_0x308006;var _0x54622e,_0x341a80,_0x339a5e,_0x5ed463;[[_0x5ad416['UniverRenderEnginePlugin']],[_0x48a906[_0x10af33(0x1ba)],{'container':_0x35e4e2,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x48a906[_0x10af33(0x1c0)],null]]}],[_0x12d259[_0x10af33(0x221)]],[_0x32689a[_0x10af33(0x1ec)],{'override':[[_0x32689a[_0x10af33(0x1eb)],null]]}],[_0x5a1508['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x40e18a['UniverDocsUIPlugin']],[_0x9f72d7[_0x10af33(0x192)]],[_0x28d423[_0x10af33(0x211)],{'notExecuteFormula':!0x0}],[_0x33f709['UniverSheetsUIPlugin']],[_0x32ba66['UniverSheetsFormulaPlugin']],[_0x18fc32['UniverSheetsFormulaUIPlugin']],[_0x3c64c6[_0x10af33(0x11e)]],[_0x26369c[_0x10af33(0x24c)]],[_0x1d8788[_0x10af33(0x14d)]],[_0x2e11b1[_0x10af33(0x1fe)]],[_0x2b48da['UniverSheetsConditionalFormattingUIPlugin']],[_0x1af154[_0x10af33(0x1aa)]],[_0x387991[_0x10af33(0x182)]],[_0x5d3e98[_0x10af33(0x1f7)]],[_0x2de240[_0x10af33(0x232)]],[_0xed2afa[_0x10af33(0x174)]],[_0x1449b4['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x3f6c0d[_0x10af33(0x219)],{'workerURL':(_0x341a80=(_0x54622e=this[_0x10af33(0x22b)][_0x10af33(0x156)](_0x3f6c0d[_0x10af33(0x245)]))==null?void 0x0:_0x54622e[_0x10af33(0x209)])!=null?_0x341a80:_0x10af33(0x177)}],[_0x295055['UniverDrawingUIPlugin']],[_0x1a6600[_0x10af33(0x1bb)]],[_0x3242bf[_0x10af33(0x1b0)]],[_0x3d5912['UniverSheetSparklinePlugin']],[_0x3294b5[_0x10af33(0x121)]],[_0x3ffaca[_0x10af33(0x1a4)]],[_0xe286b9[_0x10af33(0x23a)]],[_0x15102e[_0x10af33(0x1df)]],[_0x4b52ac[_0x10af33(0x17e)]],[_0x182426[_0x10af33(0x157)],{'notExecuteFormula':!0x0}],[_0x44e527[_0x10af33(0x195)],{'historyListServerUrl':(_0x339a5e=this[_0x10af33(0x22b)]['getConfig'](_0xd2327e))==null?void 0x0:_0x339a5e['historyListServerUrl'],'historyPanelComponentKey':(_0x5ed463=this['_configService']['getConfig'](_0xd2327e))==null?void 0x0:_0x5ed463['historyPanelComponentKey']}]][_0x10af33(0x18e)](([_0x50b41e,_0x3df020])=>this[_0x10af33(0x222)](_0x50b41e,_0x3df020));}[_0x308006(0x184)](){const _0x23fb36=_0x308006;super[_0x23fb36(0x184)](),this[_0x23fb36(0x204)](),this['_pluginMap']['clear']();}['registerPlugin'](_0x1d33da,_0x45b443,_0x8d7396){const _0xa4e4e9=_0x308006;if(this[_0xa4e4e9(0x236)][_0xa4e4e9(0x1ca)](_0x1d33da[_0xa4e4e9(0x1a2)])&&!_0x8d7396)throw new Error(_0xa4e4e9(0x218)+_0x1d33da[_0xa4e4e9(0x1a2)]+_0xa4e4e9(0x210));this[_0xa4e4e9(0x236)]['set'](_0x1d33da[_0xa4e4e9(0x1a2)],[_0x1d33da,_0x45b443]);}['getAllPlugins'](){const _0x4889ce=_0x308006;return Array[_0x4889ce(0x1f5)](this[_0x4889ce(0x236)][_0x4889ce(0x224)]());}[_0x308006(0x1de)](_0x322a19){const _0x458ab7=_0x308006,_0x40b6e9=document[_0x458ab7(0x1b9)](_0x35e4e2);_0x40b6e9&&(_0x40b6e9[_0x458ab7(0x1a9)][_0x458ab7(0x12e)]=_0x458ab7(0x148),this[_0x458ab7(0x119)](_0x322a19,_0x35e4e2));}[_0x308006(0x204)](){const _0x4c0a0e=_0x308006;var _0x539dba;this[_0x4c0a0e(0x130)][_0x4c0a0e(0x184)](),(_0x539dba=this[_0x4c0a0e(0x1af)])==null||_0x539dba[_0x4c0a0e(0x184)](),this['_historyUniver$']['next'](null);const _0x4b394b=document[_0x4c0a0e(0x1b9)](_0x35e4e2);_0x4b394b&&(_0x4b394b[_0x4c0a0e(0x1a9)][_0x4c0a0e(0x12e)]='none');}[_0x308006(0x119)](_0x2a312f,_0xd93cf5){const _0x5f0ab8=_0x308006;if(this[_0x5f0ab8(0x1af)])return;const _0x26cd13=new _0x45d6ef[(_0x5f0ab8(0x1d4))]({'locales':{[this[_0x5f0ab8(0x1e3)][_0x5f0ab8(0x1d1)]()]:this[_0x5f0ab8(0x1e3)]['getLocales']()},'override':[[_0x45d6ef[_0x5f0ab8(0x22d)],{'useClass':_0x5d7416[_0x5f0ab8(0x1e2)]}]]}),_0x2e7b8f=_0x26cd13['__getInjector']();this['disposeWithMe'](this[_0x5f0ab8(0x234)][_0x5f0ab8(0x176)][_0x5f0ab8(0x24a)](_0x3d5956=>{const _0x47423e=_0x5f0ab8;_0x2e7b8f[_0x47423e(0x23c)](_0x45d6ef[_0x47423e(0x1d7)])[_0x47423e(0x20b)](_0x3d5956);})),this[_0x5f0ab8(0x251)](this[_0x5f0ab8(0x234)][_0x5f0ab8(0x1ef)][_0x5f0ab8(0x24a)](_0x53d407=>{const _0x1a89c0=_0x5f0ab8;_0x2e7b8f[_0x1a89c0(0x23c)](_0x45d6ef[_0x1a89c0(0x1d7)])['setTheme'](_0x53d407);})),_0x2e7b8f[_0x5f0ab8(0x23c)](_0x45d6ef[_0x5f0ab8(0x1c9)])['setLocale'](this[_0x5f0ab8(0x1e3)]['getCurrentLocale']()),_0x2e7b8f[_0x5f0ab8(0x23c)](_0x45d6ef['IConfigService'])[_0x5f0ab8(0x212)](_0x5d7416[_0x5f0ab8(0x129)],this['_configService']['getConfig'](_0x5d7416[_0x5f0ab8(0x129)]));const _0x4b0fed=this[_0x5f0ab8(0x22b)][_0x5f0ab8(0x156)](_0x519c60[_0x5f0ab8(0x14e)]);_0x4b0fed&&_0x26cd13[_0x5f0ab8(0x222)](_0x519c60['UniverLicensePlugin'],{'license':_0x4b0fed['ls']}),this[_0x5f0ab8(0x236)]['forEach'](([_0x36ffa6,_0x30ff04])=>{const _0x4a73b8=_0x5f0ab8;_0x26cd13[_0x4a73b8(0x222)](_0x36ffa6,_0x30ff04);}),_0x2e7b8f[_0x5f0ab8(0x1a5)](_0x1f1eba=>{const _0x38049b=_0x5f0ab8;this[_0x38049b(0x162)](_0x1f1eba,_0x2a312f);}),this['_historyUniver$'][_0x5f0ab8(0x11f)](_0x26cd13);const _0x591048=_0x2e7b8f[_0x5f0ab8(0x23c)](_0x44e527[_0x5f0ab8(0x1f6)]),_0x4fa606=this[_0x5f0ab8(0x151)](_0x2a312f);_0x591048[_0x5f0ab8(0x131)](_0x2a312f,_0xd93cf5,_0x4fa606);}[_0x308006(0x162)](_0x54b9b9,_0x4e721a){const _0x12a5b4=_0x308006,_0x29154a=_0x54b9b9[_0x12a5b4(0x23c)](_0x44e527[_0x12a5b4(0x1f6)]);this[_0x12a5b4(0x130)][_0x12a5b4(0x120)](_0x29154a[_0x12a5b4(0x1bc)][_0x12a5b4(0x24a)](_0x450637=>{const _0x3c368c=_0x12a5b4;switch(_0x450637){case _0x44e527[_0x3c368c(0x1e9)][_0x3c368c(0x166)]:this['_dialogService']['closeAll'](),this[_0x3c368c(0x1dd)][_0x3c368c(0x1b5)]();break;case _0x44e527['HistoryModeStatus'][_0x3c368c(0x1db)]:this[_0x3c368c(0x150)][_0x3c368c(0x250)](_0xe00213['id']),this[_0x3c368c(0x204)]();break;case _0x44e527[_0x3c368c(0x1e9)]['Error']:this['unMountHistoryContent'](),this[_0x3c368c(0x241)]['show']({'content':this[_0x3c368c(0x1e3)]['t'](_0x3c368c(0x11c)),'type':_0x88af1f[_0x3c368c(0x1ed)][_0x3c368c(0x189)],'duration':0xbb8});break;}})),this[_0x12a5b4(0x130)][_0x12a5b4(0x120)](_0x29154a[_0x12a5b4(0x20d)][_0x12a5b4(0x24a)](async _0x25109f=>{const _0x34e8d9=_0x12a5b4;_0x25109f&&this[_0x34e8d9(0x150)][_0x34e8d9(0x250)](_0x3c64c6[_0x34e8d9(0x12c)]['id'],{'unitId':_0x4e721a,'revision':_0x25109f});}));}[_0x308006(0x151)](_0xd20679){const _0x2a9a92=_0x308006,_0x495d7b=this[_0x2a9a92(0x124)][_0x2a9a92(0x1a3)](_0xd20679)['getSheets']()[_0x2a9a92(0x1b3)](_0x5d01e7=>_0x5d01e7['getSheetId']()),_0x5870c0=new _0x28d423['WorkbookEditablePermission'](_0xd20679)['id'],_0x1dc493=_0x495d7b[_0x2a9a92(0x1b3)](_0x4c27ff=>new _0x28d423[(_0x2a9a92(0x1ff))](_0xd20679,_0x4c27ff)['id']),_0x4a9395=_0x495d7b[_0x2a9a92(0x1b3)](_0x17585c=>this[_0x2a9a92(0x249)][_0x2a9a92(0x1b2)](_0xd20679,_0x17585c)[_0x2a9a92(0x1b3)](_0x3143e0=>new _0x28d423['RangeProtectionPermissionEditPoint'](_0xd20679,_0x17585c,_0x3143e0[_0x2a9a92(0x127)])['id']))['flat'](),_0x5803b8=new _0x28d423[(_0x2a9a92(0x21f))](_0xd20679)['id'];return this['_permissionService'][_0x2a9a92(0x14f)]([_0x5870c0,..._0x1dc493,..._0x4a9395,_0x5803b8])[_0x2a9a92(0x19f)](_0x4452bb=>!!_0x4452bb[_0x2a9a92(0x180)]);}},_0x5d03b3['HistoryLoaderService']=_0x429229([_0x28e3d6(0x0,_0x45d6ef['Inject'](_0x45d6ef[_0x308006(0x1c9)])),_0x28e3d6(0x1,_0x45d6ef[_0x308006(0x1f1)]),_0x28e3d6(0x2,_0x45d6ef[_0x308006(0x18f)]),_0x28e3d6(0x3,_0x45d6ef[_0x308006(0x24d)]),_0x28e3d6(0x4,_0x48a906[_0x308006(0x22a)]),_0x28e3d6(0x5,_0x45d6ef[_0x308006(0x1e6)]),_0x28e3d6(0x6,_0x45d6ef[_0x308006(0x11a)](_0x28d423['RangeProtectionRuleModel'])),_0x28e3d6(0x7,_0x45d6ef[_0x308006(0x11a)](_0x48a906[_0x308006(0x1c0)])),_0x28e3d6(0x8,_0x45d6ef[_0x308006(0x11a)](_0x48a906[_0x308006(0x165)])),_0x28e3d6(0x9,_0x45d6ef['Inject'](_0x45d6ef[_0x308006(0x1d7)]))],_0x5d03b3['HistoryLoaderService']);const _0x504b46={'id':'univer.operation.toggle-edit-history','type':_0x45d6ef['CommandType'][_0x308006(0x178)],'handler':_0x1b9530=>{const _0x16702c=_0x308006,_0x2379c9=_0x1b9530['get'](_0x5d03b3[_0x16702c(0x160)]),_0xe7e8e7=_0x1b9530[_0x16702c(0x23c)](_0x45d6ef[_0x16702c(0x1f1)]),{unitId:_0x3c48b5}=_0x28d423[_0x16702c(0x19e)](_0xe7e8e7)||{};return _0x3c48b5?(_0x2379c9['mountHistoryContent'](_0x3c48b5),!0x0):!0x1;}},_0xe00213={'id':'univer.operation.exit-edit-history','type':_0x45d6ef[_0x308006(0x15c)][_0x308006(0x178)],'handler':()=>!0x0};function _0x144e08(_0x5cc949){const _0x8b2806=_0x308006;return{'id':_0x504b46['id'],'type':_0x48a906[_0x8b2806(0x1f3)]['BUTTON'],'icon':'HistoryIcon','tooltip':_0x8b2806(0x1d6),'hidden$':_0x48a906[_0x8b2806(0x1c6)](_0x5cc949,_0x45d6ef[_0x8b2806(0x1e4)][_0x8b2806(0x243)]),'disabled$':_0x33f709['getCurrentRangeDisable$'](_0x5cc949,{'workbookTypes':[_0x28d423[_0x8b2806(0x1cd)],_0x28d423[_0x8b2806(0x15a)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x4df78e={[_0x48a906['RibbonStartGroup'][_0x308006(0x137)]]:{[_0x504b46['id']]:{'order':0.2,'menuItemFactory':_0x144e08}}};var _0x511ab4=Object['getOwnPropertyDescriptor'],_0x91eac3=(_0x21ae74,_0x23e60c,_0x445cc5,_0x2900b5)=>{const _0xe125cb=_0x308006;for(var _0x58de5a=_0x2900b5>0x1?void 0x0:_0x2900b5?_0x511ab4(_0x23e60c,_0x445cc5):_0x23e60c,_0x386bc3=_0x21ae74[_0xe125cb(0x13f)]-0x1,_0x25cda0;_0x386bc3>=0x0;_0x386bc3--)(_0x25cda0=_0x21ae74[_0x386bc3])&&(_0x58de5a=_0x25cda0(_0x58de5a)||_0x58de5a);return _0x58de5a;},_0x510e8a=(_0x29b332,_0x6ff669)=>(_0x41fa98,_0x3f78de)=>_0x6ff669(_0x41fa98,_0x3f78de,_0x29b332);let _0x26ce28=class extends _0x45d6ef[_0x308006(0x1c7)]{constructor(_0x54bf48,_0x528be0,_0xa601d6,_0x5d12ea,_0x3d4dcd,_0x9b9127,_0x2b12c2,_0x4ecda7){const _0x4d90f5=_0x308006;super(),_0x22f21a(this,_0x4d90f5(0x240),null),(this[_0x4d90f5(0x150)]=_0x54bf48,this[_0x4d90f5(0x23f)]=_0x528be0,this[_0x4d90f5(0x1d5)]=_0xa601d6,this[_0x4d90f5(0x239)]=_0x5d12ea,this[_0x4d90f5(0x1e3)]=_0x3d4dcd,this[_0x4d90f5(0x241)]=_0x9b9127,this[_0x4d90f5(0x17b)]=_0x2b12c2,this['_localCacheService']=_0x4ecda7,this[_0x4d90f5(0x1bd)]());}[_0x308006(0x1bd)](){const _0x5e1167=_0x308006;[_0x504b46,_0xe00213][_0x5e1167(0x18e)](_0x5bcafc=>this['disposeWithMe'](_0x45d6ef['toDisposable'](this['_commandService'][_0x5e1167(0x1cf)](_0x5bcafc)))),this[_0x5e1167(0x251)](this[_0x5e1167(0x1d5)][_0x5e1167(0x20e)](_0x5e1167(0x1e0),_0x2dee8b)),this[_0x5e1167(0x23f)][_0x5e1167(0x21a)](_0x4df78e),this[_0x5e1167(0x251)](this[_0x5e1167(0x150)][_0x5e1167(0x17d)](_0x36b77a=>{const _0x527fbe=_0x5e1167;if(_0x36b77a['id']===_0x3c64c6[_0x527fbe(0x12c)]['id']){this[_0x527fbe(0x241)][_0x527fbe(0x118)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x88af1f[_0x527fbe(0x1ed)][_0x527fbe(0x153)],'duration':0x1388});const {unitId:_0x38b75a}=_0x36b77a[_0x527fbe(0x142)],_0x22c0e1=this[_0x527fbe(0x17b)]['getCollabEntity'](_0x38b75a),_0x46afa7=_0x53b914[_0x527fbe(0x1ac)]([_0x22c0e1['session'][_0x527fbe(0x190)],_0x22c0e1[_0x527fbe(0x198)]])['subscribe'](async([_0x3d4e78,_0x294061])=>{const _0x46f3d6=_0x527fbe;var _0x448137;_0x3d4e78[_0x46f3d6(0x1fb)]===_0x3c64c6[_0x46f3d6(0x217)][_0x46f3d6(0x13b)]&&(_0x294061==null?void 0x0:_0x294061['status'])===_0x5d7416[_0x46f3d6(0x13e)]['SYNCED']&&_0x3d4e78[_0x46f3d6(0x22f)][_0x46f3d6(0x167)][_0x46f3d6(0x1d2)](_0x3968f3=>_0x3968f3['id']===_0x3c64c6[_0x46f3d6(0x12c)]['id'])&&(this[_0x46f3d6(0x239)][_0x46f3d6(0x204)](),_0x46afa7[_0x46f3d6(0x24b)](),this[_0x46f3d6(0x240)]&&clearTimeout(this['_revertErrorTimer']),await((_0x448137=this[_0x46f3d6(0x225)])==null?void 0x0:_0x448137['exhaustSavingTask']()),setTimeout(()=>window[_0x46f3d6(0x169)][_0x46f3d6(0x14c)]()));});this[_0x527fbe(0x240)]=setTimeout(()=>{const _0x5cd77e=_0x527fbe;_0x46afa7[_0x5cd77e(0x24b)](),this[_0x5cd77e(0x241)]['show']({'content':this[_0x5cd77e(0x1e3)]['t'](_0x5cd77e(0x1ad)),'type':_0x88af1f[_0x5cd77e(0x1ed)][_0x5cd77e(0x189)],'duration':0xbb8});},0x1388);}}));}};_0x26ce28=_0x91eac3([_0x510e8a(0x0,_0x45d6ef['ICommandService']),_0x510e8a(0x1,_0x48a906[_0x308006(0x19c)]),_0x510e8a(0x2,_0x45d6ef[_0x308006(0x11a)](_0x48a906[_0x308006(0x20f)])),_0x510e8a(0x3,_0x45d6ef['Inject'](_0x5d03b3[_0x308006(0x160)])),_0x510e8a(0x4,_0x45d6ef[_0x308006(0x11a)](_0x45d6ef[_0x308006(0x1c9)])),_0x510e8a(0x5,_0x48a906['IMessageService']),_0x510e8a(0x6,_0x45d6ef[_0x308006(0x11a)](_0x5d7416[_0x308006(0x17f)])),_0x510e8a(0x7,_0x5d7416[_0x308006(0x181)])],_0x26ce28);var _0x367ad2=Object[_0x308006(0x154)],_0x3e94d2=Object['getOwnPropertyDescriptor'],_0x2d1985=(_0x2a2e4a,_0x21e2c5,_0x19d543)=>_0x21e2c5 in _0x2a2e4a?_0x367ad2(_0x2a2e4a,_0x21e2c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19d543}):_0x2a2e4a[_0x21e2c5]=_0x19d543,_0x18addd=(_0x907d32,_0x1ef3f7,_0x11da69,_0x42ec24)=>{const _0xef8e8f=_0x308006;for(var _0x33287=_0x42ec24>0x1?void 0x0:_0x42ec24?_0x3e94d2(_0x1ef3f7,_0x11da69):_0x1ef3f7,_0x41aa57=_0x907d32[_0xef8e8f(0x13f)]-0x1,_0x1c2ede;_0x41aa57>=0x0;_0x41aa57--)(_0x1c2ede=_0x907d32[_0x41aa57])&&(_0x33287=_0x1c2ede(_0x33287)||_0x33287);return _0x33287;},_0x2eba76=(_0xa05fa8,_0x384e10)=>(_0x3fa43f,_0x4f2214)=>_0x384e10(_0x3fa43f,_0x4f2214,_0xa05fa8),_0x594dc6=(_0x42e431,_0x4df789,_0x2d1de5)=>_0x2d1985(_0x42e431,typeof _0x4df789!=_0x308006(0x12d)?_0x4df789+'':_0x4df789,_0x2d1de5);const _0x5a7701=_0x308006(0x207);_0x5d03b3[_0x308006(0x16e)]=class extends _0x45d6ef[_0x308006(0x213)]{constructor(_0x4c3293=_0x391280,_0xeec023,_0x546d44){const _0x3ff482=_0x308006;super(),this[_0x3ff482(0x1be)]=_0x4c3293,this[_0x3ff482(0x159)]=_0xeec023,this['_configService']=_0x546d44;const {menu:_0x149f69,..._0x12f2d1}=_0x45d6ef[_0x3ff482(0x17c)]({},_0x391280,this[_0x3ff482(0x1be)]);_0x149f69&&this[_0x3ff482(0x22b)]['setConfig'](_0x3ff482(0x1b1),_0x149f69,{'merge':!0x0}),this[_0x3ff482(0x22b)]['setConfig'](_0xd2327e,_0x12f2d1),this[_0x3ff482(0x1be)][_0x3ff482(0x226)]&&this['_configService'][_0x3ff482(0x212)](_0x4b08ac,this[_0x3ff482(0x1be)][_0x3ff482(0x226)]);}[_0x308006(0x188)](){const _0x1abfbe=_0x308006;[[_0x5d03b3['HistoryLoaderService']],[_0x26ce28]][_0x1abfbe(0x18e)](_0xafaac6=>this[_0x1abfbe(0x159)][_0x1abfbe(0x120)](_0xafaac6));}[_0x308006(0x11b)](){const _0x2f4a32=_0x308006;this[_0x2f4a32(0x159)][_0x2f4a32(0x23c)](_0x26ce28);}},_0x594dc6(_0x5d03b3[_0x308006(0x16e)],'type',_0x45d6ef[_0x308006(0x1e4)][_0x308006(0x15d)]),_0x594dc6(_0x5d03b3[_0x308006(0x16e)],_0x308006(0x1a2),_0x5a7701),_0x5d03b3[_0x308006(0x16e)]=_0x18addd([_0x45d6ef['DependentOn'](_0x519c60[_0x308006(0x1ab)]),_0x2eba76(0x1,_0x45d6ef[_0x308006(0x11a)](_0x45d6ef[_0x308006(0x152)])),_0x2eba76(0x2,_0x45d6ef[_0x308006(0x18f)])],_0x5d03b3[_0x308006(0x16e)]),_0x5d03b3[_0x308006(0x16f)]=_0x4b08ac,_0x5d03b3[_0x308006(0x175)]=_0x35e4e2,Object[_0x308006(0x154)](_0x5d03b3,Symbol[_0x308006(0x12b)],{'value':_0x308006(0x1ea)});}));
|
|
1
|
+
function _0x4fe6(_0x56bd04,_0x295bd6){_0x56bd04=_0x56bd04-0x173;const _0x202d4f=_0x202d();let _0x4fe63e=_0x202d4f[_0x56bd04];return _0x4fe63e;}(function(_0x46da0d,_0x5e7b32){const _0x5af84d=_0x4fe6,_0x172207=_0x46da0d();while(!![]){try{const _0xd528f8=-parseInt(_0x5af84d(0x250))/0x1+-parseInt(_0x5af84d(0x26b))/0x2*(parseInt(_0x5af84d(0x23b))/0x3)+parseInt(_0x5af84d(0x2b0))/0x4*(-parseInt(_0x5af84d(0x1cb))/0x5)+-parseInt(_0x5af84d(0x2c0))/0x6*(parseInt(_0x5af84d(0x1c2))/0x7)+parseInt(_0x5af84d(0x222))/0x8*(-parseInt(_0x5af84d(0x18f))/0x9)+parseInt(_0x5af84d(0x239))/0xa*(-parseInt(_0x5af84d(0x221))/0xb)+parseInt(_0x5af84d(0x185))/0xc*(parseInt(_0x5af84d(0x19c))/0xd);if(_0xd528f8===_0x5e7b32)break;else _0x172207['push'](_0x172207['shift']());}catch(_0x46867d){_0x172207['push'](_0x172207['shift']());}}}(_0x202d,0x63a0f),function(_0x4b6c7b,_0x159b8b){const _0x381ffd=_0x4fe6;typeof exports==_0x381ffd(0x2a6)&&typeof module<'u'?_0x159b8b(exports,require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/design'),require('react'),require('@univerjs/sheets'),require('@univerjs/ui'),require('rxjs'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-shape'),require('@univerjs-pro/sheets-shape-ui'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-table'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x381ffd(0x208)]?define([_0x381ffd(0x272),_0x381ffd(0x1e0),_0x381ffd(0x1de),_0x381ffd(0x2bc),_0x381ffd(0x277),_0x381ffd(0x17d),_0x381ffd(0x235),_0x381ffd(0x238),_0x381ffd(0x1d3),_0x381ffd(0x1da),_0x381ffd(0x273),'@univerjs-pro/edit-history-viewer',_0x381ffd(0x2ae),'@univerjs-pro/sheets-chart-ui','@univerjs-pro/sheets-pivot',_0x381ffd(0x254),_0x381ffd(0x2c3),_0x381ffd(0x2b6),_0x381ffd(0x1ec),_0x381ffd(0x29b),_0x381ffd(0x286),_0x381ffd(0x26c),_0x381ffd(0x21e),'@univerjs/drawing-ui',_0x381ffd(0x1f8),_0x381ffd(0x25e),_0x381ffd(0x1fa),_0x381ffd(0x18c),'@univerjs/sheets-conditional-formatting',_0x381ffd(0x29a),_0x381ffd(0x18b),_0x381ffd(0x293),_0x381ffd(0x270),'@univerjs/sheets-drawing-ui',_0x381ffd(0x21c),'@univerjs/sheets-filter-ui',_0x381ffd(0x195),'@univerjs/sheets-formula-ui','@univerjs/sheets-hyper-link',_0x381ffd(0x187),_0x381ffd(0x27c),'@univerjs/sheets-table',_0x381ffd(0x262)],_0x159b8b):(_0x4b6c7b=typeof globalThis<'u'?globalThis:_0x4b6c7b||self,_0x159b8b(_0x4b6c7b[_0x381ffd(0x182)]={},_0x4b6c7b[_0x381ffd(0x178)],_0x4b6c7b[_0x381ffd(0x194)],_0x4b6c7b[_0x381ffd(0x2bb)],_0x4b6c7b[_0x381ffd(0x1fd)],_0x4b6c7b[_0x381ffd(0x1ad)],_0x4b6c7b[_0x381ffd(0x269)],_0x4b6c7b[_0x381ffd(0x241)],_0x4b6c7b[_0x381ffd(0x1cf)],_0x4b6c7b[_0x381ffd(0x230)],_0x4b6c7b[_0x381ffd(0x273)],_0x4b6c7b[_0x381ffd(0x2bd)],_0x4b6c7b[_0x381ffd(0x26f)],_0x4b6c7b[_0x381ffd(0x1f5)],_0x4b6c7b[_0x381ffd(0x289)],_0x4b6c7b[_0x381ffd(0x179)],_0x4b6c7b[_0x381ffd(0x257)],_0x4b6c7b[_0x381ffd(0x1e7)],_0x4b6c7b['UniverProSheetsSparklineUi'],_0x4b6c7b['UniverDataValidation'],_0x4b6c7b['UniverDocs'],_0x4b6c7b[_0x381ffd(0x1c4)],_0x4b6c7b[_0x381ffd(0x243)],_0x4b6c7b[_0x381ffd(0x1bb)],_0x4b6c7b[_0x381ffd(0x1a6)],_0x4b6c7b['UniverEngineRender'],_0x4b6c7b[_0x381ffd(0x1d7)],_0x4b6c7b[_0x381ffd(0x19d)],_0x4b6c7b[_0x381ffd(0x199)],_0x4b6c7b[_0x381ffd(0x2a0)],_0x4b6c7b[_0x381ffd(0x24e)],_0x4b6c7b[_0x381ffd(0x22e)],_0x4b6c7b[_0x381ffd(0x21a)],_0x4b6c7b[_0x381ffd(0x282)],_0x4b6c7b[_0x381ffd(0x1c3)],_0x4b6c7b['UniverSheetsFilterUi'],_0x4b6c7b[_0x381ffd(0x264)],_0x4b6c7b[_0x381ffd(0x2ab)],_0x4b6c7b['UniverSheetsHyperLink'],_0x4b6c7b['UniverSheetsHyperLinkUi'],_0x4b6c7b['UniverSheetsNumfmt'],_0x4b6c7b[_0x381ffd(0x267)],_0x4b6c7b[_0x381ffd(0x256)]));}(this,function(_0x2e17ee,_0x41d17d,_0x53add8,_0x1f3eec,_0x197719,_0x17ca41,_0x1479b7,_0x380783,_0xd0ad31,_0x43bb6b,_0x3c80bc,_0x83ddb8,_0x121225,_0x52ba46,_0x5adeb8,_0x30c0c6,_0x3891c7,_0x20847d,_0x4e030c,_0x4977ec,_0x5ad8c3,_0x1ac4c8,_0x5ba065,_0x518c54,_0x1a638,_0x3a18cc,_0x2547df,_0x51f409,_0x58f996,_0x2c705f,_0x395527,_0x253ac2,_0x284fe5,_0x59a914,_0x568991,_0x2598c8,_0x3c2092,_0x4c1b2c,_0x2a064f,_0x785e0f,_0x455b74,_0x34df0c,_0x1c8a46){'use strict';const _0xafbba3=_0x4fe6;var _0x2eb549=Object[_0xafbba3(0x1cd)],_0x581211=(_0x461186,_0x2e88b7,_0xe09ab5)=>_0x2e88b7 in _0x461186?_0x2eb549(_0x461186,_0x2e88b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe09ab5}):_0x461186[_0x2e88b7]=_0xe09ab5,_0x321450=(_0x171ce0,_0xb3d01b,_0x47c458)=>_0x581211(_0x171ce0,typeof _0xb3d01b!=_0xafbba3(0x20b)?_0xb3d01b+'':_0xb3d01b,_0x47c458);const _0x42ce26=_0xafbba3(0x23e),_0x4aa4ab={};function _0x715395({ref:_0x53147f,..._0xdbb2da}){const _0x4a766f=_0xafbba3,{icon:_0x44ade0,id:_0x6503a,className:_0x1345af,extend:_0x501016,..._0x10129b}=_0xdbb2da,_0x32226e=(_0x4a766f(0x2c4)+_0x6503a+'\x20'+(_0x1345af||''))['trim'](),_0x1b31fa=_0x380783['useRef']('_'+_0x3aff7d());return _0x141bdf(_0x44ade0,''+_0x6503a,{'defIds':_0x44ade0[_0x4a766f(0x177)],'idSuffix':_0x1b31fa[_0x4a766f(0x21d)]},{'ref':_0x53147f,'className':_0x32226e,..._0x10129b},_0x501016);}function _0x141bdf(_0x565a01,_0x1ef714,_0x4b35cd,_0x420b3f,_0x13276a){const _0x404d4d=_0xafbba3;return _0x380783[_0x404d4d(0x22c)](_0x565a01[_0x404d4d(0x212)],{'key':_0x1ef714,..._0x2d9274(_0x565a01,_0x4b35cd,_0x13276a),..._0x420b3f},(_0x42b9bb(_0x565a01,_0x4b35cd)[_0x404d4d(0x1b0)]||[])[_0x404d4d(0x236)]((_0x6ffe9b,_0x2a8396)=>_0x141bdf(_0x6ffe9b,_0x1ef714+'-'+_0x565a01[_0x404d4d(0x212)]+'-'+_0x2a8396,_0x4b35cd,void 0x0,_0x13276a)));}function _0x2d9274(_0x3ad675,_0x119aac,_0x42ef3f){const _0x43dbbc=_0xafbba3,_0x4954a5={..._0x3ad675['attrs']};_0x42ef3f!=null&&_0x42ef3f['colorChannel1']&&_0x4954a5[_0x43dbbc(0x2be)]===_0x43dbbc(0x291)&&(_0x4954a5[_0x43dbbc(0x2be)]=_0x42ef3f[_0x43dbbc(0x291)]),_0x3ad675['tag']===_0x43dbbc(0x210)&&_0x4954a5['id']&&(_0x4954a5['id']=_0x4954a5['id']+_0x119aac['idSuffix']),Object[_0x43dbbc(0x285)](_0x4954a5)[_0x43dbbc(0x237)](([_0x520dec,_0x1e777d])=>{const _0x389bc0=_0x43dbbc;_0x520dec===_0x389bc0(0x210)&&typeof _0x1e777d==_0x389bc0(0x1e4)&&(_0x4954a5[_0x520dec]=_0x1e777d['replace'](/url\(#(.*)\)/,_0x389bc0(0x1d6)+_0x119aac[_0x389bc0(0x24f)]+')'));});const {defIds:_0x2da159}=_0x119aac;return!_0x2da159||_0x2da159['length']===0x0||(_0x3ad675['tag']===_0x43dbbc(0x271)&&_0x4954a5[_0x43dbbc(0x173)]&&(_0x4954a5[_0x43dbbc(0x173)]=_0x4954a5[_0x43dbbc(0x173)]+_0x119aac['idSuffix']),Object[_0x43dbbc(0x285)](_0x4954a5)[_0x43dbbc(0x237)](([_0xfeae3d,_0x35fc9e])=>{const _0xb02b02=_0x43dbbc;typeof _0x35fc9e==_0xb02b02(0x1e4)&&(_0x4954a5[_0xfeae3d]=_0x35fc9e['replace'](/url\(#(.*)\)/,'url(#$1'+_0x119aac[_0xb02b02(0x24f)]+')'));})),_0x4954a5;}function _0x42b9bb(_0x26cca7,_0x5386ff){const _0x1142a0=_0xafbba3;var _0x2d195f;const {defIds:_0x33e6db}=_0x5386ff;return!_0x33e6db||_0x33e6db[_0x1142a0(0x1a0)]===0x0?_0x26cca7:_0x26cca7[_0x1142a0(0x212)]===_0x1142a0(0x1c7)&&((_0x2d195f=_0x26cca7[_0x1142a0(0x1b0)])!=null&&_0x2d195f[_0x1142a0(0x1a0)])?{..._0x26cca7,'children':_0x26cca7[_0x1142a0(0x1b0)][_0x1142a0(0x236)](_0x52fb05=>typeof _0x52fb05[_0x1142a0(0x299)]['id']==_0x1142a0(0x1e4)&&_0x33e6db&&_0x33e6db[_0x1142a0(0x29f)](_0x52fb05[_0x1142a0(0x299)]['id'])?{..._0x52fb05,'attrs':{..._0x52fb05[_0x1142a0(0x299)],'id':_0x52fb05[_0x1142a0(0x299)]['id']+_0x5386ff[_0x1142a0(0x24f)]}}:_0x52fb05)}:_0x26cca7;}function _0x3aff7d(){const _0x26994e=_0xafbba3;return Math[_0x26994e(0x21f)]()[_0x26994e(0x290)](0x24)[_0x26994e(0x1a3)](0x2,0x8);}_0x715395[_0xafbba3(0x17e)]=_0xafbba3(0x22b);const _0x27e5ac={'tag':_0xafbba3(0x25b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xafbba3(0x207),'viewBox':'0\x200\x2016\x2016','width':_0xafbba3(0x175),'height':_0xafbba3(0x175)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0xafbba3(0x1df)},'children':[{'tag':_0xafbba3(0x1eb),'attrs':{'d':_0xafbba3(0x26d)}},{'tag':_0xafbba3(0x1eb),'attrs':{'d':_0xafbba3(0x198)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xafbba3(0x190),'attrs':{'id':_0xafbba3(0x1bf)},'children':[{'tag':_0xafbba3(0x1eb),'attrs':{'fill':_0xafbba3(0x27d),'d':_0xafbba3(0x17c)}}]}]}],'defIds':[_0xafbba3(0x1bf)]},_0x43a3b4=_0x380783['forwardRef'](function(_0x2d3237,_0x452c67){const _0x1fb9a9=_0xafbba3;return _0x380783[_0x1fb9a9(0x22c)](_0x715395,Object[_0x1fb9a9(0x228)]({},_0x2d3237,{'id':_0x1fb9a9(0x1af),'ref':_0x452c67,'icon':_0x27e5ac}));});_0x43a3b4[_0xafbba3(0x17e)]=_0xafbba3(0x275);var _0x4f73f6=(_0x348c9a=>(_0x348c9a[_0x348c9a['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x348c9a[_0x348c9a[_0xafbba3(0x1f6)]=0x1]=_0xafbba3(0x1f6),_0x348c9a[_0x348c9a[_0xafbba3(0x1b5)]=0x2]=_0xafbba3(0x1b5),_0x348c9a[_0x348c9a[_0xafbba3(0x18e)]=0x3]='UNIVER_SLIDE',_0x348c9a[_0x348c9a[_0xafbba3(0x297)]=0x4]='UNIVER_PROJECT',_0x348c9a[_0x348c9a[_0xafbba3(0x27a)]=-0x1]='UNRECOGNIZED',_0x348c9a))(_0x4f73f6||{}),_0x420e75=Object[_0xafbba3(0x188)],_0x5bfc62=(_0x12b3b7,_0x177a57,_0x309bac,_0x5cf611)=>{for(var _0x175995=_0x5cf611>0x1?void 0x0:_0x5cf611?_0x420e75(_0x177a57,_0x309bac):_0x177a57,_0x53c236=_0x12b3b7['length']-0x1,_0x1dbcf9;_0x53c236>=0x0;_0x53c236--)(_0x1dbcf9=_0x12b3b7[_0x53c236])&&(_0x175995=_0x1dbcf9(_0x175995)||_0x175995);return _0x175995;},_0x265fab=(_0x253d21,_0x10f46e)=>(_0x4e7b90,_0x2cdee0)=>_0x10f46e(_0x4e7b90,_0x2cdee0,_0x253d21);const _0x288d99='univer-container',_0xe75f50='UNIVER_CONTAINER_ID',_0xfa2843=_0xafbba3(0x261);_0x2e17ee[_0xafbba3(0x294)]=class extends _0x53add8['Disposable']{constructor(_0x16145c,_0x57395a,_0x1f3411,_0x3e2d09,_0x2c5d51,_0x3e0c11,_0x1543e0,_0x39fbbc,_0x376dc4,_0x5dcad3){const _0x5d0763=_0xafbba3;super(),_0x321450(this,_0x5d0763(0x28f),new _0x3c80bc['BehaviorSubject'](null)),_0x321450(this,_0x5d0763(0x192),this[_0x5d0763(0x28f)][_0x5d0763(0x25d)]()),_0x321450(this,_0x5d0763(0x1ed),new _0x53add8[(_0x5d0763(0x1c5))]()),_0x321450(this,'_pluginMap',new Map()),(this[_0x5d0763(0x1bc)]=_0x16145c,this[_0x5d0763(0x205)]=_0x57395a,this[_0x5d0763(0x174)]=_0x1f3411,this[_0x5d0763(0x204)]=_0x3e2d09,this[_0x5d0763(0x223)]=_0x2c5d51,this['_permissionService']=_0x3e0c11,this[_0x5d0763(0x1e8)]=_0x1543e0,this[_0x5d0763(0x20e)]=_0x39fbbc,this[_0x5d0763(0x265)]=_0x376dc4,this[_0x5d0763(0x17a)]=_0x5dcad3,this[_0x5d0763(0x1b3)]());}get[_0xafbba3(0x1fc)](){const _0x543b51=_0xafbba3;return this['_historyUniver$'][_0x543b51(0x2a3)];}['_init'](){const _0x2f36cb=_0xafbba3;this['_initContainer'](),this[_0x2f36cb(0x29e)]();}[_0xafbba3(0x298)](){const _0x53f1ed=_0xafbba3;var _0x465d25;const _0x54bf9d=(_0x465d25=this[_0x53f1ed(0x174)][_0x53f1ed(0x1a7)](_0xe75f50))!=null?_0x465d25:_0x288d99,_0x251610=document['getElementById'](_0x54bf9d);if(!_0x251610)return;const _0x4cc605=document[_0x53f1ed(0x22c)](_0x53f1ed(0x2a1));_0x4cc605['id']=_0xfa2843,_0x4cc605['dataset']['uComp']=_0x53f1ed(0x1b8),_0x4cc605[_0x53f1ed(0x29c)][_0x53f1ed(0x1ca)]='absolute',_0x4cc605[_0x53f1ed(0x29c)][_0x53f1ed(0x1f7)]='0',_0x4cc605[_0x53f1ed(0x29c)][_0x53f1ed(0x1b6)]='0',_0x4cc605[_0x53f1ed(0x29c)][_0x53f1ed(0x1a4)]=_0x53f1ed(0x2b1),_0x4cc605[_0x53f1ed(0x29c)][_0x53f1ed(0x244)]=_0x53f1ed(0x2b1),_0x4cc605[_0x53f1ed(0x29c)][_0x53f1ed(0x280)]='49',_0x4cc605[_0x53f1ed(0x29c)]['display']=_0x53f1ed(0x207),_0x251610[_0x53f1ed(0x1c6)](_0x4cc605);}[_0xafbba3(0x29e)](){const _0x5cfee8=_0xafbba3;[[_0x3a18cc[_0x5cfee8(0x1d8)]],[_0x43bb6b[_0x5cfee8(0x29d)],{'container':_0xfa2843,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x43bb6b['IDialogService'],null]]}],[_0x2547df[_0x5cfee8(0x1aa)]],[_0x5ba065[_0x5cfee8(0x247)],{'override':[[_0x5ba065[_0x5cfee8(0x28e)],null]]}],[_0x5ad8c3[_0x5cfee8(0x28b)],{'hasScroll':!0x1}],[_0x1ac4c8['UniverDocsUIPlugin']],[_0x455b74['UniverSheetsNumfmtPlugin']],[_0xd0ad31['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x1c8a46[_0x5cfee8(0x2ad)]],[_0x3c2092[_0x5cfee8(0x1f9)]],[_0x4c1b2c[_0x5cfee8(0x196)]],[_0x1f3eec[_0x5cfee8(0x218)]],[_0x568991[_0x5cfee8(0x28a)]],[_0x2598c8[_0x5cfee8(0x22f)]],[_0x58f996[_0x5cfee8(0x1e5)]],[_0x2c705f[_0x5cfee8(0x213)]],[_0x2a064f[_0x5cfee8(0x288)]],[_0x785e0f[_0x5cfee8(0x2b8)]],[_0x4977ec[_0x5cfee8(0x1d4)]],[_0x395527[_0x5cfee8(0x1be)]],[_0x253ac2[_0x5cfee8(0x19f)]],[_0x1a638['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x518c54[_0x5cfee8(0x22a)]],[_0x284fe5[_0x5cfee8(0x176)]],[_0x59a914['UniverSheetsDrawingUIPlugin']],[_0x20847d['UniverSheetSparklinePlugin']],[_0x4e030c[_0x5cfee8(0x274)]],[_0x121225[_0x5cfee8(0x25f)]],[_0x52ba46[_0x5cfee8(0x295)]],[_0x30c0c6[_0x5cfee8(0x1ef)]],[_0x3891c7['UniverSheetsShapeUIPlugin']],[_0x5adeb8['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x34df0c['UniverSheetsTablePlugin']]]['forEach'](([_0x5d8a10,_0x208241])=>this[_0x5cfee8(0x216)](_0x5d8a10,_0x208241));}[_0xafbba3(0x1b4)](){const _0x31b10c=_0xafbba3;super['dispose'](),this[_0x31b10c(0x18d)](),this[_0x31b10c(0x258)][_0x31b10c(0x17f)]();}[_0xafbba3(0x216)](_0x1032ad,_0x3251a0,_0x36c8f9){const _0x30290b=_0xafbba3;if(this[_0x30290b(0x258)]['has'](_0x1032ad[_0x30290b(0x240)])&&!_0x36c8f9)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1032ad[_0x30290b(0x240)]+'\x20has\x20been\x20registered.');this[_0x30290b(0x258)][_0x30290b(0x20d)](_0x1032ad[_0x30290b(0x240)],[_0x1032ad,_0x3251a0]);}[_0xafbba3(0x1a8)](){const _0x5e4760=_0xafbba3;return Array[_0x5e4760(0x251)](this[_0x5e4760(0x258)][_0x5e4760(0x26e)]());}['mountHistoryContent'](_0x3aec68,_0x576e2d){const _0xdb7d2a=_0xafbba3,_0x3109d7=document[_0xdb7d2a(0x220)](_0xfa2843);_0x3109d7&&(_0x3109d7['style'][_0xdb7d2a(0x2a9)]=_0xdb7d2a(0x189),this[_0xdb7d2a(0x19b)](_0x3aec68,_0xfa2843,_0x576e2d));}[_0xafbba3(0x18d)](){const _0x52e14f=_0xafbba3;var _0x27fa36;this[_0x52e14f(0x1ed)][_0x52e14f(0x1b4)](),(_0x27fa36=this['historyUniver'])==null||_0x27fa36[_0x52e14f(0x1b4)](),this['_historyUniver$'][_0x52e14f(0x1a5)](null);const _0x1cc88b=document['getElementById'](_0xfa2843);_0x1cc88b&&(_0x1cc88b['style'][_0x52e14f(0x2a9)]=_0x52e14f(0x207));}['_initUniver'](_0x577477,_0x473ade,_0x3f7c2d){const _0x2df2f4=_0xafbba3;var _0x24d516,_0x2b0380,_0x17562d,_0x2c7125,_0x55ce5d,_0xf7eab2;if(this[_0x2df2f4(0x1fc)])return;const _0x10abf0=new _0x53add8[(_0x2df2f4(0x225))]({'locales':{[this[_0x2df2f4(0x1bc)]['getCurrentLocale']()]:this[_0x2df2f4(0x1bc)][_0x2df2f4(0x24c)]()},'override':[[_0x53add8['IAuthzIoService'],{'useClass':_0x197719[_0x2df2f4(0x1e3)]}]]}),_0x318769=_0x10abf0[_0x2df2f4(0x1f3)]();this[_0x2df2f4(0x279)](this[_0x2df2f4(0x17a)][_0x2df2f4(0x296)]['subscribe'](_0x45163a=>{const _0x15caef=_0x2df2f4;_0x318769[_0x15caef(0x1b9)](_0x53add8[_0x15caef(0x1dc)])[_0x15caef(0x2a8)](_0x45163a);})),this['disposeWithMe'](this[_0x2df2f4(0x17a)][_0x2df2f4(0x1c0)][_0x2df2f4(0x1ea)](_0x5b0dcf=>{const _0x5a1f96=_0x2df2f4;_0x318769[_0x5a1f96(0x1b9)](_0x53add8['ThemeService'])['setTheme'](_0x5b0dcf);})),_0x318769[_0x2df2f4(0x1b9)](_0x53add8['LocaleService'])[_0x2df2f4(0x214)](this[_0x2df2f4(0x1bc)]['getCurrentLocale']()),_0x318769[_0x2df2f4(0x1b9)](_0x53add8[_0x2df2f4(0x245)])[_0x2df2f4(0x1dd)](_0x197719[_0x2df2f4(0x183)],this[_0x2df2f4(0x174)][_0x2df2f4(0x1a7)](_0x197719['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x270aa8=this[_0x2df2f4(0x174)][_0x2df2f4(0x1a7)](_0x41d17d[_0x2df2f4(0x211)]);_0x270aa8&&_0x10abf0['registerPlugin'](_0x41d17d[_0x2df2f4(0x20c)],{'license':_0x270aa8['ls']}),_0x10abf0['registerPlugin'](_0x51f409[_0x2df2f4(0x1c8)],{'workerURL':(_0x2b0380=(_0x24d516=this[_0x2df2f4(0x174)][_0x2df2f4(0x1a7)](_0x51f409['PLUGIN_CONFIG_KEY_MAIN_THREAD']))==null?void 0x0:_0x24d516['workerURL'])!=null?_0x2b0380:'./worker.js'}),this[_0x2df2f4(0x258)][_0x2df2f4(0x237)](([_0x4f9e8c,_0x567a95])=>{_0x10abf0['registerPlugin'](_0x4f9e8c,_0x567a95);}),_0x10abf0[_0x2df2f4(0x216)](_0x83ddb8[_0x2df2f4(0x19e)],{'historyListServerUrl':(_0x17562d=this[_0x2df2f4(0x174)][_0x2df2f4(0x1a7)](_0x42ce26))==null?void 0x0:_0x17562d[_0x2df2f4(0x217)],'historyPanelComponentKey':(_0x2c7125=this[_0x2df2f4(0x174)]['getConfig'](_0x42ce26))==null?void 0x0:_0x2c7125[_0x2df2f4(0x1e9)],'historyPanelHidden':(_0x55ce5d=this[_0x2df2f4(0x174)][_0x2df2f4(0x1a7)](_0x42ce26))==null?void 0x0:_0x55ce5d['historyPanelHidden'],'historyAIassistantEnabled':(_0xf7eab2=this[_0x2df2f4(0x174)]['getConfig'](_0x42ce26))==null?void 0x0:_0xf7eab2[_0x2df2f4(0x2b3)]}),_0x318769[_0x2df2f4(0x253)](_0x8e9f3=>{const _0x2de4fa=_0x2df2f4;this[_0x2de4fa(0x2a4)](_0x8e9f3,_0x577477);}),this['_historyUniver$'][_0x2df2f4(0x1a5)](_0x10abf0);const _0x4801ab=_0x318769[_0x2df2f4(0x1b9)](_0x83ddb8['HistoryManagerService']),_0x4351db=this[_0x2df2f4(0x22d)](_0x577477),_0x36f4c1=()=>{const _0x1a5bc2=_0x2df2f4;_0x3f7c2d?_0x4801ab[_0x1a5bc2(0x234)](_0x577477,_0x473ade,_0x4351db,_0x3f7c2d):_0x4801ab[_0x1a5bc2(0x2c2)](_0x577477,_0x473ade,_0x4351db);},_0x2b1fde=this['_messageService'][_0x2df2f4(0x2ba)]({'content':this[_0x2df2f4(0x1bc)]['t']('editHistory.info.initializing'),'type':_0x1479b7[_0x2df2f4(0x25c)]['Loading']});try{_0x318769['get'](_0x51f409[_0x2df2f4(0x249)])[_0x2df2f4(0x2b7)]()[_0x2df2f4(0x1ac)](()=>{const _0x6ba1f4=_0x2df2f4;_0x2b1fde[_0x6ba1f4(0x1b4)](),_0x36f4c1();});}catch{_0x2b1fde[_0x2df2f4(0x1b4)](),_0x36f4c1();}}[_0xafbba3(0x2a4)](_0x5e3715,_0x4fbcff){const _0x5a3dd3=_0xafbba3,_0x4cfce9=_0x5e3715[_0x5a3dd3(0x1b9)](_0x83ddb8[_0x5a3dd3(0x2a2)]);this[_0x5a3dd3(0x1ed)][_0x5a3dd3(0x1d1)](_0x4cfce9[_0x5a3dd3(0x1d5)][_0x5a3dd3(0x1ea)](_0x3b2cff=>{const _0x1cf7f8=_0x5a3dd3;switch(_0x3b2cff){case _0x83ddb8[_0x1cf7f8(0x18a)][_0x1cf7f8(0x1c1)]:this[_0x1cf7f8(0x20e)][_0x1cf7f8(0x2b9)](),this[_0x1cf7f8(0x265)]['close']();break;case _0x83ddb8[_0x1cf7f8(0x18a)][_0x1cf7f8(0x28d)]:this['_commandService'][_0x1cf7f8(0x1e1)](_0x529fa2['id']),this['unMountHistoryContent']();break;case _0x83ddb8[_0x1cf7f8(0x18a)][_0x1cf7f8(0x263)]:this[_0x1cf7f8(0x18d)](),this[_0x1cf7f8(0x223)]['show']({'content':this[_0x1cf7f8(0x1bc)]['t'](_0x1cf7f8(0x287)),'type':_0x1479b7[_0x1cf7f8(0x25c)][_0x1cf7f8(0x263)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x5a3dd3(0x1d1)](_0x4cfce9[_0x5a3dd3(0x23a)][_0x5a3dd3(0x1ea)](async _0x4c80b4=>{const _0xb88479=_0x5a3dd3;_0x4c80b4&&this[_0xb88479(0x204)][_0xb88479(0x1e1)](_0x1f3eec['RevertRevisionMutation']['id'],{'unitId':_0x4fbcff,'revision':_0x4c80b4});}));}['_checkCanRevert'](_0x195c00){const _0x20a837=_0xafbba3,_0xd20ea9=this[_0x20a837(0x205)][_0x20a837(0x184)](_0x195c00)[_0x20a837(0x2b4)]()[_0x20a837(0x236)](_0x4be338=>_0x4be338[_0x20a837(0x1bd)]()),_0x250dfa=new _0xd0ad31[(_0x20a837(0x21b))](_0x195c00)['id'],_0x381234=_0xd20ea9[_0x20a837(0x236)](_0x159cd2=>new _0xd0ad31[(_0x20a837(0x1ae))](_0x195c00,_0x159cd2)['id']),_0x22dda8=_0xd20ea9[_0x20a837(0x236)](_0x56216e=>this[_0x20a837(0x1e8)]['getSubunitRuleList'](_0x195c00,_0x56216e)['map'](_0x163f62=>new _0xd0ad31['RangeProtectionPermissionEditPoint'](_0x195c00,_0x56216e,_0x163f62[_0x20a837(0x25a)])['id']))[_0x20a837(0x24b)](),_0xdd7364=new _0xd0ad31['WorkbookRecoverHistoryPermission'](_0x195c00)['id'];return this[_0x20a837(0x283)][_0x20a837(0x1cc)]([_0x250dfa,..._0x381234,..._0x22dda8,_0xdd7364])['every'](_0x572b3c=>!!_0x572b3c[_0x20a837(0x2a3)]);}},_0x2e17ee[_0xafbba3(0x294)]=_0x5bfc62([_0x265fab(0x0,_0x53add8[_0xafbba3(0x281)](_0x53add8['LocaleService'])),_0x265fab(0x1,_0x53add8[_0xafbba3(0x206)]),_0x265fab(0x2,_0x53add8[_0xafbba3(0x245)]),_0x265fab(0x3,_0x53add8[_0xafbba3(0x1ba)]),_0x265fab(0x4,_0x43bb6b['IMessageService']),_0x265fab(0x5,_0x53add8['IPermissionService']),_0x265fab(0x6,_0x53add8[_0xafbba3(0x281)](_0xd0ad31[_0xafbba3(0x2aa)])),_0x265fab(0x7,_0x53add8[_0xafbba3(0x281)](_0x43bb6b[_0xafbba3(0x259)])),_0x265fab(0x8,_0x53add8['Inject'](_0x43bb6b[_0xafbba3(0x20a)])),_0x265fab(0x9,_0x53add8[_0xafbba3(0x281)](_0x53add8['ThemeService']))],_0x2e17ee[_0xafbba3(0x294)]);const _0x57a88b={'id':_0xafbba3(0x26a),'type':_0x53add8['CommandType'][_0xafbba3(0x284)],'handler':_0xf80724=>{const _0xfd2231=_0xafbba3,_0x1298b5=_0xf80724[_0xfd2231(0x1b9)](_0x2e17ee[_0xfd2231(0x294)]),_0x3709d2=_0xf80724[_0xfd2231(0x1b9)](_0x53add8[_0xfd2231(0x206)]),{unitId:_0x16a55a}=_0xd0ad31[_0xfd2231(0x20f)](_0x3709d2)||{};return _0x16a55a?(_0x1298b5[_0xfd2231(0x248)](_0x16a55a),!0x0):!0x1;}},_0x529fa2={'id':'univer.operation.exit-edit-history','type':_0x53add8[_0xafbba3(0x2b5)][_0xafbba3(0x284)],'handler':()=>!0x0};function _0x26c5bb(_0x3b0d71){const _0x276669=_0xafbba3;return{'id':_0x57a88b['id'],'type':_0x43bb6b[_0x276669(0x276)][_0x276669(0x201)],'icon':_0x276669(0x275),'tooltip':_0x276669(0x2a7),'hidden$':_0x43bb6b[_0x276669(0x1f1)](_0x3b0d71,_0x53add8[_0x276669(0x224)]['UNIVER_SHEET']),'disabled$':_0x1c8a46[_0x276669(0x23d)](_0x3b0d71,{'workbookTypes':[_0xd0ad31['WorkbookEditablePermission'],_0xd0ad31['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x1f75c0={[_0x43bb6b[_0xafbba3(0x232)]['OTHERS']]:{[_0x57a88b['id']]:{'order':0.2,'menuItemFactory':_0x26c5bb}}};var _0x2b731c=Object[_0xafbba3(0x188)],_0x47c8e3=(_0x3d1f09,_0x4ad276,_0x5b96ad,_0x104091)=>{for(var _0x419524=_0x104091>0x1?void 0x0:_0x104091?_0x2b731c(_0x4ad276,_0x5b96ad):_0x4ad276,_0x3ea1b4=_0x3d1f09['length']-0x1,_0x1fe478;_0x3ea1b4>=0x0;_0x3ea1b4--)(_0x1fe478=_0x3d1f09[_0x3ea1b4])&&(_0x419524=_0x1fe478(_0x419524)||_0x419524);return _0x419524;},_0x631f1f=(_0x15575a,_0x5b541c)=>(_0x54c817,_0x4b4a88)=>_0x5b541c(_0x54c817,_0x4b4a88,_0x15575a);let _0x5e3ae6=class extends _0x53add8[_0xafbba3(0x191)]{constructor(_0x37d351,_0x176bdd,_0x53ec17,_0x4fbdd4,_0x3fd08c,_0x582be1,_0x3b7132,_0x332193,_0x58b4f5,_0x3c018b,_0x44f641){const _0x1ce5fd=_0xafbba3;super(),_0x321450(this,_0x1ce5fd(0x24a),null),(this[_0x1ce5fd(0x204)]=_0x37d351,this[_0x1ce5fd(0x246)]=_0x176bdd,this[_0x1ce5fd(0x27e)]=_0x53ec17,this['_historyManagerService']=_0x4fbdd4,this[_0x1ce5fd(0x1bc)]=_0x3fd08c,this['_messageService']=_0x582be1,this['_collaborationController']=_0x3b7132,this[_0x1ce5fd(0x231)]=_0x332193,this[_0x1ce5fd(0x202)]=_0x58b4f5,this[_0x1ce5fd(0x205)]=_0x3c018b,this[_0x1ce5fd(0x1b1)]=_0x44f641,this[_0x1ce5fd(0x1b3)]());}[_0xafbba3(0x1b3)](){const _0x51b45f=_0xafbba3;[_0x57a88b,_0x529fa2][_0x51b45f(0x237)](_0x391ccc=>this['disposeWithMe'](_0x53add8[_0x51b45f(0x203)](this[_0x51b45f(0x204)][_0x51b45f(0x1f0)](_0x391ccc)))),this[_0x51b45f(0x279)](this[_0x51b45f(0x27e)][_0x51b45f(0x1a2)](_0x51b45f(0x275),_0x43a3b4)),this['_menuManagerService'][_0x51b45f(0x1c9)](_0x1f75c0),this['disposeWithMe'](this['_commandService'][_0x51b45f(0x1d9)](async(_0x33f5d1,_0x756248)=>{const _0xa2fc74=_0x51b45f;if(_0x33f5d1['id']===_0x1f3eec['RevertRevisionMutation']['id']){const {unitId:_0x40254e}=_0x33f5d1[_0xa2fc74(0x252)];this[_0xa2fc74(0x223)][_0xa2fc74(0x2ba)]({'content':this[_0xa2fc74(0x1bc)]['t'](_0xa2fc74(0x1e2)),'type':_0x1479b7[_0xa2fc74(0x25c)][_0xa2fc74(0x2ac)],'duration':0x1388});const _0x623301=this['_collaborationController'][_0xa2fc74(0x1db)](_0x40254e);(_0x756248==null?void 0x0:_0x756248[_0xa2fc74(0x193)])?this['_handleRevertAcknowledgement'](_0x623301,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this[_0xa2fc74(0x260)](_0x623301,async()=>{const _0x1a9859=_0xa2fc74,_0x711855=this['_univerInstanceService'][_0x1a9859(0x27f)](_0x4f73f6['UNIVER_SHEET']),_0xd1b64f=_0x711855==null?void 0x0:_0x711855['getActiveSheet']();if(!_0xd1b64f)return!0x1;this[_0x1a9859(0x205)][_0x1a9859(0x2af)](_0x40254e);const _0x4ff2b1=await this[_0x1a9859(0x202)][_0x1a9859(0x2c1)](_0x40254e,_0x4f73f6[_0x1a9859(0x1b5)]);return _0x4ff2b1&&_0x4ff2b1 instanceof _0x53add8[_0x1a9859(0x200)]?(await this[_0x1a9859(0x1f2)](_0x4ff2b1,_0xd1b64f[_0x1a9859(0x1bd)]()),!0x0):!0x1;});}}));}[_0xafbba3(0x260)](_0x331351,_0x318118,_0x338dcf=!0x1){const _0x497338=_0xafbba3,_0x2b98ea=_0x3c80bc['combineLatest']([_0x331351[_0x497338(0x1e6)][_0x497338(0x1fe)],_0x331351[_0x497338(0x23c)]])['subscribe'](async([_0x421cdb,_0x14e5b9])=>{const _0x567aff=_0x497338;var _0x5a5517;_0x421cdb['eventID']===_0x1f3eec['CollaborationEvent'][_0x567aff(0x1d0)]&&(_0x14e5b9==null?void 0x0:_0x14e5b9['status'])===_0x197719[_0x567aff(0x1d2)][_0x567aff(0x1ce)]&&_0x421cdb[_0x567aff(0x1a1)]['mutations']['some'](_0x506d01=>_0x506d01['id']===_0x1f3eec['RevertRevisionMutation']['id'])&&await _0x318118()&&(this[_0x567aff(0x1ee)][_0x567aff(0x18d)](),_0x2b98ea[_0x567aff(0x268)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x5a5517=this[_0x567aff(0x231)])==null?void 0x0:_0x5a5517[_0x567aff(0x1f4)]()));});_0x338dcf&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x2ba491=_0x497338;_0x2b98ea['unsubscribe'](),this['_messageService'][_0x2ba491(0x2ba)]({'content':this[_0x2ba491(0x1bc)]['t']('editHistory.panel.revertFailed'),'type':_0x1479b7['MessageType']['Error'],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x29a2ef,_0x5c847d){const _0xe302ee=_0xafbba3;await this[_0xe302ee(0x186)](_0x29a2ef,_0x5c847d),_0x29a2ef['activeSheet$'][_0xe302ee(0x229)](_0x3c80bc['takeUntil'](this[_0xe302ee(0x2b2)]))[_0xe302ee(0x1ea)](_0xd84638=>{_0xd84638&&this['_updateURLWithCurrentState'](_0xd84638);}),this['_urlService']['urlChange$'][_0xe302ee(0x229)](_0x3c80bc[_0xe302ee(0x197)](this[_0xe302ee(0x2b2)]))[_0xe302ee(0x1ea)](()=>this[_0xe302ee(0x186)](_0x29a2ef,_0x5c847d));}['_updateURLWithCurrentState'](_0x291fc6,_0x165b25=!0x1){const _0xdf3df5=_0xafbba3,_0x4c8361=this[_0xdf3df5(0x1b1)][_0xdf3df5(0x292)]('subunit');_0x291fc6[_0xdf3df5(0x1bd)]()!==_0x4c8361&&this[_0xdf3df5(0x1b1)][_0xdf3df5(0x255)](_0xdf3df5(0x2bf),_0x291fc6[_0xdf3df5(0x1bd)](),_0x165b25);}async[_0xafbba3(0x186)](_0x2b939d,_0x2aeb4a){const _0x38d6cf=_0xafbba3;var _0x540492;if(!_0x2aeb4a||!_0x2b939d['getSheetBySheetId'](_0x2aeb4a)){const _0x321dce=_0x2b939d[_0x38d6cf(0x215)]()[0x0],_0xa532c=_0x2b939d[_0x38d6cf(0x19a)](_0x321dce);if(!_0xa532c)return;this['_updateURLWithCurrentState'](_0xa532c,!0x0),await this[_0x38d6cf(0x204)]['executeCommand'](_0xd0ad31[_0x38d6cf(0x226)]['id'],{'unitId':_0x2b939d['getUnitId'](),'subUnitId':_0x321dce});return;}((_0x540492=_0x2b939d[_0x38d6cf(0x227)]())==null?void 0x0:_0x540492[_0x38d6cf(0x1bd)]())!==_0x2aeb4a&&await this[_0x38d6cf(0x204)][_0x38d6cf(0x1e1)](_0xd0ad31[_0x38d6cf(0x226)]['id'],{'unitId':_0x2b939d['getUnitId'](),'subUnitId':_0x2aeb4a});}};_0x5e3ae6=_0x47c8e3([_0x631f1f(0x0,_0x53add8[_0xafbba3(0x1ba)]),_0x631f1f(0x1,_0x43bb6b['IMenuManagerService']),_0x631f1f(0x2,_0x53add8[_0xafbba3(0x281)](_0x43bb6b[_0xafbba3(0x1ab)])),_0x631f1f(0x3,_0x53add8[_0xafbba3(0x281)](_0x2e17ee[_0xafbba3(0x294)])),_0x631f1f(0x4,_0x53add8[_0xafbba3(0x281)](_0x53add8[_0xafbba3(0x266)])),_0x631f1f(0x5,_0x43bb6b['IMessageService']),_0x631f1f(0x6,_0x53add8[_0xafbba3(0x281)](_0x197719[_0xafbba3(0x219)])),_0x631f1f(0x7,_0x197719[_0xafbba3(0x181)]),_0x631f1f(0x8,_0x53add8[_0xafbba3(0x281)](_0x197719[_0xafbba3(0x278)])),_0x631f1f(0x9,_0x53add8['IUniverInstanceService']),_0x631f1f(0xa,_0x17ca41[_0xafbba3(0x233)])],_0x5e3ae6);var _0x592533=Object[_0xafbba3(0x1cd)],_0x305e2d=Object[_0xafbba3(0x188)],_0x552117=(_0x51ed88,_0x187a89,_0xd605a7)=>_0x187a89 in _0x51ed88?_0x592533(_0x51ed88,_0x187a89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd605a7}):_0x51ed88[_0x187a89]=_0xd605a7,_0x920cf2=(_0x2e7d8c,_0x6deeea,_0x37cfbf,_0x2ddc42)=>{const _0x2303d3=_0xafbba3;for(var _0x2f3f12=_0x2ddc42>0x1?void 0x0:_0x2ddc42?_0x305e2d(_0x6deeea,_0x37cfbf):_0x6deeea,_0x1ea350=_0x2e7d8c[_0x2303d3(0x1a0)]-0x1,_0x19f154;_0x1ea350>=0x0;_0x1ea350--)(_0x19f154=_0x2e7d8c[_0x1ea350])&&(_0x2f3f12=_0x19f154(_0x2f3f12)||_0x2f3f12);return _0x2f3f12;},_0x5bf548=(_0x19d6c7,_0x5a4754)=>(_0x564167,_0x2923ea)=>_0x5a4754(_0x564167,_0x2923ea,_0x19d6c7),_0x214434=(_0x93d1da,_0x38233a,_0x4ea933)=>_0x552117(_0x93d1da,typeof _0x38233a!='symbol'?_0x38233a+'':_0x38233a,_0x4ea933);const _0x4a9fc5='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';_0x2e17ee[_0xafbba3(0x242)]=class extends _0x53add8['Plugin']{constructor(_0x43a5bc=_0x4aa4ab,_0x3f4d9a,_0x3a8a0f){const _0x4a3775=_0xafbba3;super(),this[_0x4a3775(0x1fb)]=_0x43a5bc,this[_0x4a3775(0x1b7)]=_0x3f4d9a,this[_0x4a3775(0x174)]=_0x3a8a0f;const {menu:_0x5e7d92,..._0x36d39e}=_0x53add8['merge']({},_0x4aa4ab,this[_0x4a3775(0x1fb)]);_0x5e7d92&&this[_0x4a3775(0x174)][_0x4a3775(0x1dd)](_0x4a3775(0x1b2),_0x5e7d92,{'merge':!0x0}),this['_configService']['setConfig'](_0x42ce26,_0x36d39e),this[_0x4a3775(0x1fb)][_0x4a3775(0x209)]&&this['_configService'][_0x4a3775(0x1dd)](_0xe75f50,this[_0x4a3775(0x1fb)]['univerContainerId']);}[_0xafbba3(0x23f)](){const _0x540e8f=_0xafbba3;[[_0x2e17ee['HistoryLoaderService']],[_0x5e3ae6]]['forEach'](_0xfb8da8=>this[_0x540e8f(0x1b7)][_0x540e8f(0x1d1)](_0xfb8da8));}[_0xafbba3(0x28c)](){const _0x4e52a7=_0xafbba3;this['_injector'][_0x4e52a7(0x1b9)](_0x5e3ae6);}},_0x214434(_0x2e17ee[_0xafbba3(0x242)],_0xafbba3(0x2a5),_0x53add8[_0xafbba3(0x224)]['UNIVER_UNKNOWN']),_0x214434(_0x2e17ee[_0xafbba3(0x242)],_0xafbba3(0x240),_0x4a9fc5),_0x2e17ee[_0xafbba3(0x242)]=_0x920cf2([_0x53add8[_0xafbba3(0x1a9)](_0x41d17d[_0xafbba3(0x20c)]),_0x5bf548(0x1,_0x53add8[_0xafbba3(0x281)](_0x53add8[_0xafbba3(0x180)])),_0x5bf548(0x2,_0x53add8['IConfigService'])],_0x2e17ee[_0xafbba3(0x242)]),_0x2e17ee[_0xafbba3(0x17b)]=_0xe75f50,_0x2e17ee[_0xafbba3(0x27b)]=_0xfa2843,Object[_0xafbba3(0x1cd)](_0x2e17ee,Symbol[_0xafbba3(0x1ff)],{'value':_0xafbba3(0x24d)});}));function _0x202d(){const _0x1b77ee=['UniverCore','@univerjs/sheets-formula','UniverSheetsFormulaUIPlugin','takeUntil','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','UniverSheetsConditionalFormatting','getSheetBySheetId','_initUniver','655421ujSvsY','UniverRpc','UniverEditHistoryViewerPlugin','UniverSheetsDataValidationUIPlugin','length','data','register','substring','width','next','UniverEngineFormula','getConfig','getAllPlugins','DependentOn','UniverNetworkPlugin','ComponentManager','then','UniverProCollaborationClientUi','WorksheetEditPermission','history-icon','children','_urlService','menu','_init','dispose','UNIVER_SHEET','left','_injector','history-container','get','ICommandService','UniverDrawingUi','_localeService','getSheetId','UniverSheetsDataValidationPlugin','history-icon_clip0_907_281','currentTheme$','Entered','441IjSsMk','UniverSheetsFilter','UniverDocsUi','DisposableCollection','appendChild','defs','UniverRPCMainThreadPlugin','mergeMenu','position','1013275ONEHNc','composePermission','defineProperty','SYNCED','UniverSheets','CHANGESET_ACK','add','CollaborationStatus','@univerjs/sheets','UniverDataValidationPlugin','status$','url(#$1','UniverNetwork','UniverRenderEnginePlugin','onCommandExecuted','@univerjs/ui','getCollabEntity','ThemeService','setConfig','@univerjs/core','url(#history-icon_clip0_907_281)','@univerjs-pro/license','executeCommand','editHistory.panel.reverting','AuthzIoHttpService','string','UniverSheetsConditionalFormattingPlugin','session','UniverProSheetsSparkline','_selectionProtectionRuleModel','historyPanelComponentKey','subscribe','path','@univerjs-pro/sheets-sparkline-ui','_disposableCollection','_historyManagerService','UniverSheetsShapePlugin','registerCommand','getMenuHiddenObservable','_setupSubUnitSync','__getInjector','exhaustSavingTask','UniverProSheetsChartUi','UNIVER_DOC','top','@univerjs/engine-formula','UniverSheetsFormulaPlugin','@univerjs/network','_config','historyUniver','UniverProCollaborationClient','event$','toStringTag','Workbook','BUTTON','_dataLoaderService','toDisposable','_commandService','_univerInstanceService','IUniverInstanceService','none','amd','univerContainerId','ISidebarService','symbol','UniverLicensePlugin','set','_dialogService','getSheetCommandTarget','mask','LS_CONFIG_KEY','tag','UniverSheetsConditionalFormattingUIPlugin','setLocale','getUnhiddenWorksheets','registerPlugin','historyListServerUrl','UniverCollaborationPlugin','CollaborationController','UniverSheetsDrawing','WorkbookEditablePermission','@univerjs/sheets-filter','current','@univerjs/drawing','random','getElementById','275HANOIm','134328sIsaJt','_messageService','UniverInstanceType','Univer','SetWorksheetActivateCommand','getActiveSheet','assign','pipe','UniverDrawingUIPlugin','UniverIcon','createElement','_checkCanRevert','UniverSheetsDataValidationUi','UniverSheetsFilterUIPlugin','UniverUi','_localCacheService','RibbonStartGroup','IURLService','triggerCustomVersions','@univerjs/design','map','forEach','react','148440hHZTkw','revertRevision$','88083FDnbkC','state$','getCurrentRangeDisable$','edit-history-loader.config','onStarting','pluginName','React','UniverEditHistoryLoaderPlugin','UniverDrawing','height','IConfigService','_menuManagerService','UniverDrawingPlugin','mountHistoryContent','IRemoteInstanceService','_revertErrorTimer','flat','getLocales','Module','UniverSheetsDataValidation','idSuffix','772102fdfrIT','from','params','invoke','@univerjs-pro/sheets-shape','setParam','UniverSheetsUi','UniverProSheetsShapeUi','_pluginMap','IDialogService','permissionId','svg','MessageType','asObservable','@univerjs/engine-render','UniverSheetsChartPlugin','_handleRevertAcknowledgement','univer-history-container','@univerjs/sheets-ui','Error','UniverSheetsFormula','_sidebarService','LocaleService','UniverSheetsTable','unsubscribe','UniverDesign','univer.operation.toggle-edit-history','12wQvMXy','@univerjs/docs-ui','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','values','UniverProSheetsChart','@univerjs/sheets-drawing','use','exports','rxjs','UniverSheetSparklineUIPlugin','HistoryIcon','MenuItemType','@univerjs-pro/collaboration-client','DataLoaderService','disposeWithMe','UNRECOGNIZED','UNIVER_HISTORY_CONTAINER_ID','@univerjs/sheets-numfmt','white','_componentManager','getCurrentUnitOfType','zIndex','Inject','UniverSheetsDrawingUi','_permissionService','OPERATION','entries','@univerjs/docs','editHistory.panel.listFetchError','UniverSheetsHyperLinkPlugin','UniverProSheetsPivot','UniverSheetsFilterPlugin','UniverDocsPlugin','onSteady','Exited','IImageIoService','_historyUniver$','toString','colorChannel1','getParam','@univerjs/sheets-data-validation-ui','HistoryLoaderService','UniverSheetsChartUIPlugin','darkMode$','UNIVER_PROJECT','_initContainer','attrs','@univerjs/sheets-conditional-formatting-ui','@univerjs/data-validation','style','UniverUIPlugin','_initPlugins','includes','UniverSheetsConditionalFormattingUi','div','HistoryManagerService','value','_initListener','type','object','editHistory.panel.title','setDarkMode','display','RangeProtectionRuleModel','UniverSheetsFormulaUi','Loading','UniverSheetsUIPlugin','@univerjs-pro/sheets-chart','disposeUnit','4RmrrOU','100%','dispose$','historyAIassistantEnabled','getSheets','CommandType','@univerjs-pro/sheets-sparkline','whenReady','UniverSheetsHyperLinkUIPlugin','closeAll','show','UniverProCollaboration','@univerjs-pro/collaboration','UniverProEditHistoryViewer','fill','subunit','67506gZtMKv','loadUnit','triggerLoadVersions','@univerjs-pro/sheets-shape-ui','univerjs-icon\x20univerjs-icon-','xlink:href','_configService','1em','UniverSheetsDrawingPlugin','defIds','UniverProLicense','UniverProSheetsShape','_themeService','UNIVER_CONTAINER_ID_KEY','M0\x200H16V16H0z','@univerjs-pro/collaboration-client-ui','displayName','clear','Injector','ILocalCacheService','UniverProEditHistoryLoader','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getUnit','744IXUmOZ','_updateSubUnitFromURLParams','@univerjs/sheets-hyper-link-ui','getOwnPropertyDescriptor','block','HistoryModeStatus','@univerjs/sheets-data-validation','@univerjs/rpc','unMountHistoryContent','UNIVER_SLIDE','261gKknKu','clipPath','RxDisposable','historyUniver$','fromCollab'];_0x202d=function(){return _0x1b77ee;};return _0x202d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,44 +47,47 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^1.1.1",
|
|
50
|
-
"@univerjs-pro/collaboration-client": "0.
|
|
51
|
-
"@univerjs-pro/collaboration": "0.
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs-pro/
|
|
55
|
-
"@univerjs-pro/sheets-chart
|
|
56
|
-
"@univerjs-pro/sheets-
|
|
57
|
-
"@univerjs-pro/sheets-
|
|
58
|
-
"@univerjs-pro/sheets-shape
|
|
59
|
-
"@univerjs-pro/sheets-
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs-pro/sheets-sparkline-ui": "0.
|
|
62
|
-
"@univerjs/core": "0.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/docs": "0.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/engine-render": "0.
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/
|
|
74
|
-
"@univerjs/
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-drawing
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-filter": "0.
|
|
82
|
-
"@univerjs/sheets-formula
|
|
83
|
-
"@univerjs/sheets-
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/sheets-ui": "0.
|
|
86
|
-
"@univerjs/sheets-
|
|
87
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.16.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client-ui": "0.16.0",
|
|
52
|
+
"@univerjs-pro/collaboration": "0.16.0",
|
|
53
|
+
"@univerjs-pro/edit-history-viewer": "0.16.0",
|
|
54
|
+
"@univerjs-pro/license": "0.16.0",
|
|
55
|
+
"@univerjs-pro/sheets-chart": "0.16.0",
|
|
56
|
+
"@univerjs-pro/sheets-pivot": "0.16.0",
|
|
57
|
+
"@univerjs-pro/sheets-chart-ui": "0.16.0",
|
|
58
|
+
"@univerjs-pro/sheets-shape": "0.16.0",
|
|
59
|
+
"@univerjs-pro/sheets-shape-ui": "0.16.0",
|
|
60
|
+
"@univerjs-pro/sheets-sparkline": "0.16.0",
|
|
61
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.16.0",
|
|
62
|
+
"@univerjs/core": "0.16.0",
|
|
63
|
+
"@univerjs/data-validation": "0.16.0",
|
|
64
|
+
"@univerjs/docs-ui": "0.16.0",
|
|
65
|
+
"@univerjs/design": "0.16.0",
|
|
66
|
+
"@univerjs/engine-formula": "0.16.0",
|
|
67
|
+
"@univerjs/docs": "0.16.0",
|
|
68
|
+
"@univerjs/drawing": "0.16.0",
|
|
69
|
+
"@univerjs/engine-render": "0.16.0",
|
|
70
|
+
"@univerjs/network": "0.16.0",
|
|
71
|
+
"@univerjs/drawing-ui": "0.16.0",
|
|
72
|
+
"@univerjs/protocol": "0.1.48",
|
|
73
|
+
"@univerjs/rpc": "0.16.0",
|
|
74
|
+
"@univerjs/sheets": "0.16.0",
|
|
75
|
+
"@univerjs/sheets-data-validation": "0.16.0",
|
|
76
|
+
"@univerjs/sheets-conditional-formatting": "0.16.0",
|
|
77
|
+
"@univerjs/sheets-data-validation-ui": "0.16.0",
|
|
78
|
+
"@univerjs/sheets-drawing": "0.16.0",
|
|
79
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.16.0",
|
|
80
|
+
"@univerjs/sheets-drawing-ui": "0.16.0",
|
|
81
|
+
"@univerjs/sheets-filter-ui": "0.16.0",
|
|
82
|
+
"@univerjs/sheets-formula": "0.16.0",
|
|
83
|
+
"@univerjs/sheets-filter": "0.16.0",
|
|
84
|
+
"@univerjs/sheets-formula-ui": "0.16.0",
|
|
85
|
+
"@univerjs/sheets-hyper-link-ui": "0.16.0",
|
|
86
|
+
"@univerjs/sheets-numfmt": "0.16.0",
|
|
87
|
+
"@univerjs/sheets-table": "0.16.0",
|
|
88
|
+
"@univerjs/ui": "0.16.0",
|
|
89
|
+
"@univerjs/sheets-ui": "0.16.0",
|
|
90
|
+
"@univerjs/sheets-hyper-link": "0.16.0"
|
|
88
91
|
},
|
|
89
92
|
"devDependencies": {
|
|
90
93
|
"react": "18.3.1",
|
|
@@ -92,7 +95,7 @@
|
|
|
92
95
|
"typescript": "^5.9.3",
|
|
93
96
|
"vite": "^7.3.1",
|
|
94
97
|
"vitest": "^4.0.18",
|
|
95
|
-
"@univerjs-infra/shared": "0.
|
|
98
|
+
"@univerjs-infra/shared": "0.16.0"
|
|
96
99
|
},
|
|
97
100
|
"scripts": {
|
|
98
101
|
"test": "vitest run",
|