@univerjs-pro/edit-history-loader 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _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;
|
|
1
|
+
'use strict';const _0xb3d05a=_0x12b9;(function(_0x2fd85f,_0x287391){const _0x489e16=_0x12b9,_0x141ca0=_0x2fd85f();while(!![]){try{const _0x5e2ccc=parseInt(_0x489e16(0x17b))/0x1*(parseInt(_0x489e16(0x18a))/0x2)+parseInt(_0x489e16(0x1bd))/0x3*(-parseInt(_0x489e16(0x1bf))/0x4)+-parseInt(_0x489e16(0x1d0))/0x5+parseInt(_0x489e16(0x1ed))/0x6*(parseInt(_0x489e16(0x19d))/0x7)+parseInt(_0x489e16(0x183))/0x8+parseInt(_0x489e16(0x131))/0x9*(parseInt(_0x489e16(0x1ae))/0xa)+-parseInt(_0x489e16(0x1e7))/0xb;if(_0x5e2ccc===_0x287391)break;else _0x141ca0['push'](_0x141ca0['shift']());}catch(_0x426c91){_0x141ca0['push'](_0x141ca0['shift']());}}}(_0x22a9,0xc2a2e));var J=Object[_0xb3d05a(0x1eb)],Q=(_0xdb7fcd,_0x308970,_0x3671ae)=>_0x308970 in _0xdb7fcd?J(_0xdb7fcd,_0x308970,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3671ae}):_0xdb7fcd[_0x308970]=_0x3671ae,m=(_0xb97e5a,_0x31f7b1,_0x3b7e16)=>Q(_0xb97e5a,typeof _0x31f7b1!='symbol'?_0x31f7b1+'':_0x31f7b1,_0x3b7e16);function _0x22a9(){const _0x76877=['_setupSubUnitSync','5620220mlFulZ','location','setTheme','univer-container','LocaleService','UniverDocsUIPlugin','_initPlugins','revertRevision$','AuthzIoHttpService','uComp','UniverDrawingUIPlugin','urlChange$','registerPlugin','univerContainerId','path','IMenuManagerService','currentColor','block','UniverSheetsConditionalFormattingPlugin','UNIVER_SHEET','UniverEditHistoryViewerPlugin','activeSheet$','url(#history-icon_clip0_907_281)','30249153fvyhkL','none','white','ComponentManager','defineProperty','BehaviorSubject','864sWbLEt','getSheetId','Inject','mountHistoryContent','UniverSheetsChartPlugin','CollaborationEvent','disposeWithMe','HistoryModeStatus','HistoryLoaderService','UniverDataValidationPlugin','UNIVER_PROJECT','displayName','CHANGESET_ACK','clear','dispose','some','getOwnPropertyDescriptor','UniverSheetSparklinePlugin','UniverSheetsConditionalFormattingUIPlugin','flat','_selectionProtectionRuleModel','edit-history-loader.config','fill','map','UniverSheetsFilterPlugin','editHistory.panel.revertFailed','values','WorksheetEditPermission','_messageService','CommandType','_handleRevertAcknowledgement','invoke','session','onCommandExecuted','currentTheme$','univerjs-icon\x20univerjs-icon-','from','RangeProtectionRuleModel','exhaustSavingTask','SYNCED','dispose$','terminate','Loading','UniverSheetsTablePlugin','UniverSheetsHyperLinkUIPlugin','getLocales','getCollabEntity','whenReady','IConfigService','editHistory.info.initializing','UniverSheetsHyperLinkPlugin','subunit','getMenuHiddenObservable','getUnitId','IImageIoService','Module','colorChannel1','UniverUIPlugin','setConfig','UNIVER_HISTORY_CONTAINER_ID','_urlService','_updateURLWithCurrentState','then','_componentManager','_init','assign','_themeService','UniverIcon','UNIVER_CONTAINER_ID','idSuffix','params','100%','pipe','getConfig','UniverSheetsDrawingUIPlugin','getParam','every','_revertErrorTimer','_historyManagerService','UniverSheetsShapePlugin','ToggleEditHistoryOperation','asObservable','HistoryIcon','_configService','onSteady','6238233fXdSqM','workerURL','ThemeService','UniverLicensePlugin','UniverSheetsDataValidationPlugin','top','0\x200\x2016\x2016','defIds','merge','use','unsubscribe','RibbonStartGroup','takeUntil','trim','_updateSubUnitFromURLParams','random','url(#$1','_historyUniver$','RangeProtectionPermissionEditPoint','mask','editHistory.panel.reverting','eventID','getSubunitRuleList','getActiveSheet','_checkCanRevert','UniverSheetsShapeUIPlugin','closeAll','UniverSheetsFormulaPlugin','getAllPlugins','height','IURLService','_initUniver','DisposableCollection','getSheets','Injector','Univer','xlink:href','getCurrentUnitOfType','historyUniver','Disposable','history-icon_clip0_907_281','next','MessageType','pluginName','length','historyPanelComponentKey','_pluginMap','ICommandService','forEach','[HistoryLoaderService]:\x20Plugin\x20','UniverEditHistoryLoaderPlugin','getSheetBySheetId','UniverSheetsDrawingPlugin','UniverDrawingPlugin','div','UNIVER_UNKNOWN','fromCollab','children','UniverSheetsPlugin','_permissionService','Error','_internalWebWorker','composePermission','get','show','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverSheetsUIPlugin','Exited','_disposableCollection','UniverSheetsNumfmtPlugin','toString','BUTTON','UniverRPCMainThreadPlugin','history-container','4uqqsqf','UniverSheetsFilterUIPlugin','MenuItemType','state$','editHistory.panel.listFetchError','_localeService','\x20has\x20been\x20registered.','_localCacheService','4962856mguCXP','UniverNetworkPlugin','left','RevertRevisionMutation','tag','M0\x200H16V16H0z','getElementById','664498iQcnvj','_menuManagerService','getCurrentRangeDisable$','IMessageService','http://www.w3.org/2000/svg','1em','_commandService','WorkbookViewHistoryPermission','OTHERS','IAuthzIoService','current','UniverSheetSparklineUIPlugin','setParam','historyAIassistantEnabled','status','getSheetCommandTarget','disposeUnit','zIndex','register','69783QnBznQ','onStarting','UniverCollaborationPlugin','style','DataLoaderService','IUniverInstanceService','width','add','defs','entries','set','editHistory.panel.title','_config','unMountHistoryContent','type','subscribe','_initContainer','20EWtAeb','_initListener','UNIVER_DOC','univer-history-container','createElement','symbol','string','SetWorksheetActivateCommand','menu','permissionId','getUnit','UniverSheetsPivotTablePlugin','setLocale','Workbook','_injector','18DMwPua','UNRECOGNIZED','66644AnPqtg','useRef','WorkbookEditablePermission','includes','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','UNIVER_SLIDE','attrs','_dialogService','executeCommand','WorkbookRecoverHistoryPermission','_univerInstanceService','value','getCurrentLocale','OPERATION','registerCommand','mutations'];_0x22a9=function(){return _0x76877;};return _0x22a9();}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xb3d05a(0x113)});const o=require('@univerjs/core'),g=require('@univerjs/sheets'),U=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),p=require('@univerjs-pro/edit-history-viewer'),H=require('@univerjs-pro/license'),X=require('@univerjs-pro/sheets-chart'),ee=require('@univerjs-pro/sheets-chart-ui'),ie=require('@univerjs-pro/sheets-pivot'),te=require('@univerjs-pro/sheets-shape'),re=require('@univerjs-pro/sheets-shape-ui'),ne=require('@univerjs-pro/sheets-sparkline'),se=require('@univerjs-pro/sheets-sparkline-ui'),oe=require('@univerjs/data-validation'),P=require('@univerjs/design'),ae=require('@univerjs/docs'),ce=require('@univerjs/docs-ui'),V=require('@univerjs/drawing'),le=require('@univerjs/drawing-ui'),ue=require('@univerjs/engine-formula'),he=require('@univerjs/engine-render'),ge=require('@univerjs/network'),F=require('@univerjs/rpc'),de=require('@univerjs/sheets-conditional-formatting'),ve=require('@univerjs/sheets-conditional-formatting-ui'),_e=require('@univerjs/sheets-data-validation'),Se=require('@univerjs/sheets-data-validation-ui'),me=require('@univerjs/sheets-drawing'),Ie=require('@univerjs/sheets-drawing-ui'),fe=require('@univerjs/sheets-filter'),Ce=require('@univerjs/sheets-filter-ui'),pe=require('@univerjs/sheets-formula'),ye=require('@univerjs/sheets-formula-ui'),Ue=require('@univerjs/sheets-hyper-link'),Ee=require('@univerjs/sheets-hyper-link-ui'),Pe=require('@univerjs/sheets-numfmt'),be=require('@univerjs/sheets-table'),j=require('@univerjs/sheets-ui'),d=require('@univerjs/ui'),E=require('rxjs'),Re=require('@univerjs-pro/collaboration-client-ui'),b=require('react'),I=_0xb3d05a(0x202),W={};var Ne=Object[_0xb3d05a(0x1fd)],Le=(_0x31e4e8,_0x1b5fc4,_0x4c2347,_0x32da49)=>{for(var _0x5b78bd=_0x32da49>0x1?void 0x0:_0x32da49?Ne(_0x1b5fc4,_0x4c2347):_0x1b5fc4,_0x1c5ca4=_0x31e4e8['length']-0x1,_0x2a9e48;_0x1c5ca4>=0x0;_0x1c5ca4--)(_0x2a9e48=_0x31e4e8[_0x1c5ca4])&&(_0x5b78bd=_0x2a9e48(_0x5b78bd)||_0x5b78bd);return _0x5b78bd;},_=(_0x1b1b4d,_0x35bbdd)=>(_0x363501,_0x194221)=>_0x35bbdd(_0x363501,_0x194221,_0x1b1b4d);const He=_0xb3d05a(0x1d3),M=_0xb3d05a(0x120),y=_0xb3d05a(0x1b1);exports[_0xb3d05a(0x1f5)]=class extends o[_0xb3d05a(0x158)]{constructor(_0x5750ed,_0x2e45b3,_0x1fd39b,_0x1a6a7f,_0x4c1ffb,_0x42ee5b,_0x1e1ad6,_0x1e6211,_0x5df8d7,_0x50143c){const _0xe3e453=_0xb3d05a;super(),m(this,_0xe3e453(0x142),new E[(_0xe3e453(0x1ec))](null)),m(this,'historyUniver$',this[_0xe3e453(0x142)][_0xe3e453(0x12d)]()),m(this,_0xe3e453(0x175),new o[(_0xe3e453(0x151))]()),m(this,_0xe3e453(0x15f),new Map()),m(this,_0xe3e453(0x16e),null),(this[_0xe3e453(0x180)]=_0x5750ed,this['_univerInstanceService']=_0x2e45b3,this[_0xe3e453(0x12f)]=_0x1fd39b,this[_0xe3e453(0x190)]=_0x1a6a7f,this['_messageService']=_0x4c1ffb,this[_0xe3e453(0x16c)]=_0x42ee5b,this[_0xe3e453(0x201)]=_0x1e1ad6,this[_0xe3e453(0x1c6)]=_0x1e6211,this['_sidebarService']=_0x5df8d7,this[_0xe3e453(0x11e)]=_0x50143c,this['_init']());}get[_0xb3d05a(0x157)](){const _0x426dd2=_0xb3d05a;return this[_0x426dd2(0x142)]['value'];}[_0xb3d05a(0x11c)](){const _0x4ac504=_0xb3d05a;this[_0x4ac504(0x1ad)](),this[_0x4ac504(0x1d6)]();}[_0xb3d05a(0x1ad)](){const _0x2f229a=_0xb3d05a;var _0x38f38f;const _0x59502b=(_0x38f38f=this['_configService'][_0x2f229a(0x125)](M))!=null?_0x38f38f:He,_0x1f2267=document[_0x2f229a(0x189)](_0x59502b);if(!_0x1f2267)return;const _0x1ef5bd=document[_0x2f229a(0x1b2)](_0x2f229a(0x167));_0x1ef5bd['id']=y,_0x1ef5bd['dataset'][_0x2f229a(0x1d9)]=_0x2f229a(0x17a),_0x1ef5bd[_0x2f229a(0x1a0)]['position']='absolute',_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x136)]='0',_0x1ef5bd['style'][_0x2f229a(0x185)]='0',_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x1a3)]=_0x2f229a(0x123),_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x14e)]=_0x2f229a(0x123),_0x1ef5bd[_0x2f229a(0x1a0)][_0x2f229a(0x19b)]='49',_0x1ef5bd[_0x2f229a(0x1a0)]['display']='none',_0x1f2267['appendChild'](_0x1ef5bd);}[_0xb3d05a(0x1d6)](){const _0x4132ef=_0xb3d05a;[[he['UniverRenderEnginePlugin']],[d[_0x4132ef(0x115)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[d['IDialogService'],null]]}],[ge[_0x4132ef(0x184)]],[V[_0x4132ef(0x166)],{'override':[[V[_0x4132ef(0x112)],null]]}],[ae['UniverDocsPlugin'],{'hasScroll':!0x1}],[ce[_0x4132ef(0x1d5)]],[Pe[_0x4132ef(0x176)]],[g[_0x4132ef(0x16b)],{'notExecuteFormula':!0x0}],[j[_0x4132ef(0x173)]],[pe[_0x4132ef(0x14c)]],[ye['UniverSheetsFormulaUIPlugin']],[U[_0x4132ef(0x19f)]],[fe[_0x4132ef(0x205)]],[Ce[_0x4132ef(0x17c)]],[de[_0x4132ef(0x1e2)]],[ve[_0x4132ef(0x1ff)]],[Ue[_0x4132ef(0x10e)]],[Ee[_0x4132ef(0x219)]],[oe[_0x4132ef(0x1f6)]],[_e[_0x4132ef(0x135)]],[Se['UniverSheetsDataValidationUIPlugin']],[ue['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[le[_0x4132ef(0x1da)]],[me[_0x4132ef(0x165)]],[Ie[_0x4132ef(0x126)]],[ne[_0x4132ef(0x1fe)]],[se[_0x4132ef(0x195)]],[X[_0x4132ef(0x1f1)]],[ee['UniverSheetsChartUIPlugin']],[te[_0x4132ef(0x12b)]],[re[_0x4132ef(0x14a)]],[ie[_0x4132ef(0x1b9)],{'notExecuteFormula':!0x0}],[be[_0x4132ef(0x218)]]][_0x4132ef(0x161)](([_0x5cf53e,_0x562d1e])=>this[_0x4132ef(0x1dc)](_0x5cf53e,_0x562d1e));}['dispose'](){const _0x322906=_0xb3d05a;super[_0x322906(0x1fb)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x322906(0x1fa)]();}[_0xb3d05a(0x1dc)](_0x5206c9,_0x23d6da,_0x1ca8b8){const _0xfd37eb=_0xb3d05a;if(this[_0xfd37eb(0x15f)]['has'](_0x5206c9[_0xfd37eb(0x15c)])&&!_0x1ca8b8)throw new Error(_0xfd37eb(0x162)+_0x5206c9[_0xfd37eb(0x15c)]+_0xfd37eb(0x181));this[_0xfd37eb(0x15f)][_0xfd37eb(0x1a7)](_0x5206c9['pluginName'],[_0x5206c9,_0x23d6da]);}[_0xb3d05a(0x14d)](){const _0x1d8dbc=_0xb3d05a;return Array[_0x1d8dbc(0x211)](this[_0x1d8dbc(0x15f)][_0x1d8dbc(0x207)]());}[_0xb3d05a(0x1f0)](_0x208387,_0x562464){const _0x206856=_0xb3d05a,_0x435d42=document[_0x206856(0x189)](y);_0x435d42&&(_0x435d42['style']['display']=_0x206856(0x1e1),this[_0x206856(0x150)](_0x208387,y,_0x562464));}[_0xb3d05a(0x1aa)](){const _0x3c3a97=_0xb3d05a;var _0x2c3c43;this['_disposableCollection'][_0x3c3a97(0x1fb)](),(_0x2c3c43=this[_0x3c3a97(0x157)])==null||_0x2c3c43[_0x3c3a97(0x1fb)](),this[_0x3c3a97(0x142)][_0x3c3a97(0x15a)](null);const _0x15f4d8=document['getElementById'](y);_0x15f4d8&&(_0x15f4d8[_0x3c3a97(0x1a0)]['display']=_0x3c3a97(0x1e8),this[_0x3c3a97(0x16e)]&&(this['_internalWebWorker'][_0x3c3a97(0x216)](),this[_0x3c3a97(0x16e)]=null));}[_0xb3d05a(0x150)](_0x4cfed2,_0xfa4eea,_0x3d74a0){const _0xc18594=_0xb3d05a;var _0x346915,_0xad063b,_0x14e0b1,_0x40b11b,_0x27aa5b;if(this[_0xc18594(0x157)])return;const _0x1e4a11=new o[(_0xc18594(0x154))]({'locales':{[this[_0xc18594(0x180)][_0xc18594(0x1cb)]()]:this[_0xc18594(0x180)][_0xc18594(0x21a)]()},'override':[[o[_0xc18594(0x193)],{'useClass':f[_0xc18594(0x1d8)]}]]}),_0x4c9391=_0x1e4a11['__getInjector']();this['disposeWithMe'](this['_themeService']['darkMode$'][_0xc18594(0x1ac)](_0x26e8b2=>{const _0x306091=_0xc18594;_0x4c9391[_0x306091(0x170)](o[_0x306091(0x133)])['setDarkMode'](_0x26e8b2);})),this[_0xc18594(0x1f3)](this[_0xc18594(0x11e)][_0xc18594(0x20f)][_0xc18594(0x1ac)](_0x2cc3a1=>{const _0x5f06f1=_0xc18594;_0x4c9391[_0x5f06f1(0x170)](o['ThemeService'])[_0x5f06f1(0x1d2)](_0x2cc3a1);})),_0x4c9391[_0xc18594(0x170)](o[_0xc18594(0x1d4)])[_0xc18594(0x1ba)](this['_localeService'][_0xc18594(0x1cb)]()),_0x4c9391['get'](o['IConfigService'])[_0xc18594(0x116)](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0xc18594(0x12f)]['getConfig'](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x1e3cbd=this[_0xc18594(0x12f)][_0xc18594(0x125)](H['LS_CONFIG_KEY']);_0x1e3cbd&&_0x1e4a11[_0xc18594(0x1dc)](H[_0xc18594(0x134)],{'license':_0x1e3cbd['ls']});const _0x1a3d95=(_0x346915=this['_configService'][_0xc18594(0x125)](I))==null?void 0x0:_0x346915[_0xc18594(0x132)],_0x1958ee=!!_0x1a3d95;_0x1958ee&&(this[_0xc18594(0x16e)]=_0x1a3d95 instanceof Worker?_0x1a3d95:null,_0x1e4a11[_0xc18594(0x1dc)](F[_0xc18594(0x179)],{'workerURL':_0x1a3d95})),this[_0xc18594(0x15f)][_0xc18594(0x161)](([_0x1e7d17,_0x8d9668])=>{_0x1e4a11['registerPlugin'](_0x1e7d17,_0x8d9668);}),_0x1e4a11[_0xc18594(0x1dc)](p[_0xc18594(0x1e4)],{'historyListServerUrl':(_0xad063b=this[_0xc18594(0x12f)]['getConfig'](I))==null?void 0x0:_0xad063b['historyListServerUrl'],'historyPanelComponentKey':(_0x14e0b1=this[_0xc18594(0x12f)][_0xc18594(0x125)](I))==null?void 0x0:_0x14e0b1[_0xc18594(0x15e)],'historyPanelHidden':(_0x40b11b=this[_0xc18594(0x12f)][_0xc18594(0x125)](I))==null?void 0x0:_0x40b11b['historyPanelHidden'],'historyAIassistantEnabled':(_0x27aa5b=this['_configService'][_0xc18594(0x125)](I))==null?void 0x0:_0x27aa5b[_0xc18594(0x197)]}),_0x4c9391[_0xc18594(0x20c)](_0x5acff1=>{const _0x54d386=_0xc18594;this[_0x54d386(0x1af)](_0x5acff1,_0x4cfed2);}),this[_0xc18594(0x142)][_0xc18594(0x15a)](_0x1e4a11);const _0x35a195=_0x4c9391['get'](p['HistoryManagerService']),_0x40d977=this['_checkCanRevert'](_0x4cfed2),_0x561566=()=>{_0x3d74a0?_0x35a195['triggerCustomVersions'](_0x4cfed2,_0xfa4eea,_0x40d977,_0x3d74a0):_0x35a195['triggerLoadVersions'](_0x4cfed2,_0xfa4eea,_0x40d977);};if(this[_0xc18594(0x209)][_0xc18594(0x171)]({'content':this[_0xc18594(0x180)]['t'](_0xc18594(0x21e)),'type':P['MessageType'][_0xc18594(0x217)]}),_0x1958ee)try{_0x4c9391[_0xc18594(0x170)](F['IRemoteInstanceService'])[_0xc18594(0x21c)]()[_0xc18594(0x11a)](()=>{_0x561566();});}catch{_0x561566();}else _0x561566();}['_initListener'](_0x5dfdff,_0x3bace9){const _0x2f4d1c=_0xb3d05a,_0x13b0a2=_0x5dfdff[_0x2f4d1c(0x170)](p['HistoryManagerService']);this['_disposableCollection']['add'](_0x13b0a2['status$'][_0x2f4d1c(0x1ac)](_0x54d5df=>{const _0x1320a5=_0x2f4d1c;switch(_0x54d5df){case p['HistoryModeStatus']['Entered']:this[_0x1320a5(0x1c6)][_0x1320a5(0x14b)](),this['_sidebarService']['close']();break;case p[_0x1320a5(0x1f4)][_0x1320a5(0x174)]:this[_0x1320a5(0x190)][_0x1320a5(0x1c7)](G['id']),this['unMountHistoryContent']();break;case p['HistoryModeStatus'][_0x1320a5(0x16d)]:this[_0x1320a5(0x1aa)](),this[_0x1320a5(0x209)][_0x1320a5(0x171)]({'content':this['_localeService']['t'](_0x1320a5(0x17f)),'type':P[_0x1320a5(0x15b)][_0x1320a5(0x16d)],'duration':0xbb8});break;}})),this[_0x2f4d1c(0x175)]['add'](_0x13b0a2[_0x2f4d1c(0x1d7)][_0x2f4d1c(0x1ac)](async _0x431fe1=>{const _0x34ec52=_0x2f4d1c;_0x431fe1&&this[_0x34ec52(0x190)][_0x34ec52(0x1c7)](U['RevertRevisionMutation']['id'],{'unitId':_0x3bace9,'revision':_0x431fe1});}));}[_0xb3d05a(0x149)](_0x2f4a8b){const _0x5ba3bc=_0xb3d05a,_0x1f49b4=this[_0x5ba3bc(0x1c9)][_0x5ba3bc(0x1b8)](_0x2f4a8b)[_0x5ba3bc(0x152)]()[_0x5ba3bc(0x204)](_0x38ba26=>_0x38ba26[_0x5ba3bc(0x1ee)]()),_0x52c427=new g[(_0x5ba3bc(0x1c1))](_0x2f4a8b)['id'],_0x3b4fc2=_0x1f49b4[_0x5ba3bc(0x204)](_0x1cdff4=>new g[(_0x5ba3bc(0x208))](_0x2f4a8b,_0x1cdff4)['id']),_0x21910d=_0x1f49b4[_0x5ba3bc(0x204)](_0x3d37cb=>this[_0x5ba3bc(0x201)][_0x5ba3bc(0x147)](_0x2f4a8b,_0x3d37cb)[_0x5ba3bc(0x204)](_0x44e8f5=>new g[(_0x5ba3bc(0x143))](_0x2f4a8b,_0x3d37cb,_0x44e8f5[_0x5ba3bc(0x1b7)])['id']))[_0x5ba3bc(0x200)](),_0x23febd=new g[(_0x5ba3bc(0x1c8))](_0x2f4a8b)['id'];return this['_permissionService'][_0x5ba3bc(0x16f)]([_0x52c427,..._0x3b4fc2,..._0x21910d,_0x23febd])[_0x5ba3bc(0x128)](_0x540182=>!!_0x540182[_0x5ba3bc(0x1ca)]);}},exports[_0xb3d05a(0x1f5)]=Le([_(0x0,o[_0xb3d05a(0x1ef)](o['LocaleService'])),_(0x1,o[_0xb3d05a(0x1a2)]),_(0x2,o[_0xb3d05a(0x21d)]),_(0x3,o[_0xb3d05a(0x160)]),_(0x4,d['IMessageService']),_(0x5,o['IPermissionService']),_(0x6,o[_0xb3d05a(0x1ef)](g[_0xb3d05a(0x212)])),_(0x7,o['Inject'](d['IDialogService'])),_(0x8,o['Inject'](d['ISidebarService'])),_(0x9,o[_0xb3d05a(0x1ef)](o[_0xb3d05a(0x133)]))],exports['HistoryLoaderService']);const N={'id':'univer.operation.toggle-edit-history','type':o[_0xb3d05a(0x20a)][_0xb3d05a(0x1cc)],'handler':_0x2a592d=>{const _0x28b3ca=_0xb3d05a,_0x3560fc=_0x2a592d['get'](exports[_0x28b3ca(0x1f5)]),_0x185a43=_0x2a592d[_0x28b3ca(0x170)](o[_0x28b3ca(0x1a2)]),{unitId:_0x4f2832}=g[_0x28b3ca(0x199)](_0x185a43)||{};return _0x4f2832?(_0x3560fc['mountHistoryContent'](_0x4f2832),!0x0):!0x1;}},G={'id':'univer.operation.exit-edit-history','type':o['CommandType'][_0xb3d05a(0x1cc)],'handler':()=>!0x0};function K({ref:_0x455076,..._0x2ce7a7}){const _0xefed9b=_0xb3d05a,{icon:_0x3e9cc8,id:_0x5bb8b6,className:_0x248fe7,extend:_0x59209f,..._0x4ce7cc}=_0x2ce7a7,_0x43b8a0=(_0xefed9b(0x210)+_0x5bb8b6+'\x20'+(_0x248fe7||''))[_0xefed9b(0x13e)](),_0x23a341=b[_0xefed9b(0x1c0)]('_'+Te());return Y(_0x3e9cc8,''+_0x5bb8b6,{'defIds':_0x3e9cc8[_0xefed9b(0x138)],'idSuffix':_0x23a341[_0xefed9b(0x194)]},{'ref':_0x455076,'className':_0x43b8a0,..._0x4ce7cc},_0x59209f);}function Y(_0x29dd3e,_0x177839,_0x169b11,_0x12f43c,_0xfb6fd){const _0x529709=_0xb3d05a;return b[_0x529709(0x1b2)](_0x29dd3e[_0x529709(0x187)],{'key':_0x177839,...Oe(_0x29dd3e,_0x169b11,_0xfb6fd),..._0x12f43c},(Me(_0x29dd3e,_0x169b11)[_0x529709(0x16a)]||[])[_0x529709(0x204)]((_0x5bca07,_0x224eb2)=>Y(_0x5bca07,_0x177839+'-'+_0x29dd3e[_0x529709(0x187)]+'-'+_0x224eb2,_0x169b11,void 0x0,_0xfb6fd)));}function Oe(_0xa325d1,_0x2731df,_0xeb9350){const _0x3baacf=_0xb3d05a,_0x58cddc={..._0xa325d1[_0x3baacf(0x1c5)]};_0xeb9350!=null&&_0xeb9350['colorChannel1']&&_0x58cddc['fill']===_0x3baacf(0x114)&&(_0x58cddc[_0x3baacf(0x203)]=_0xeb9350[_0x3baacf(0x114)]),_0xa325d1['tag']===_0x3baacf(0x144)&&_0x58cddc['id']&&(_0x58cddc['id']=_0x58cddc['id']+_0x2731df['idSuffix']),Object[_0x3baacf(0x1a6)](_0x58cddc)[_0x3baacf(0x161)](([_0x1ea660,_0x2ec591])=>{const _0xd48fab=_0x3baacf;_0x1ea660===_0xd48fab(0x144)&&typeof _0x2ec591=='string'&&(_0x58cddc[_0x1ea660]=_0x2ec591['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2731df[_0xd48fab(0x121)]+')'));});const {defIds:_0x193c11}=_0x2731df;return!_0x193c11||_0x193c11[_0x3baacf(0x15d)]===0x0||(_0xa325d1[_0x3baacf(0x187)]===_0x3baacf(0x13a)&&_0x58cddc['xlink:href']&&(_0x58cddc[_0x3baacf(0x155)]=_0x58cddc[_0x3baacf(0x155)]+_0x2731df[_0x3baacf(0x121)]),Object[_0x3baacf(0x1a6)](_0x58cddc)['forEach'](([_0x736c90,_0x5d01c3])=>{const _0x4a8af4=_0x3baacf;typeof _0x5d01c3==_0x4a8af4(0x1b4)&&(_0x58cddc[_0x736c90]=_0x5d01c3['replace'](/url\(#(.*)\)/,_0x4a8af4(0x141)+_0x2731df[_0x4a8af4(0x121)]+')'));})),_0x58cddc;}function Me(_0x483c93,_0x42d8be){const _0xe22428=_0xb3d05a;var _0x305f2b;const {defIds:_0x36302e}=_0x42d8be;return!_0x36302e||_0x36302e['length']===0x0?_0x483c93:_0x483c93[_0xe22428(0x187)]===_0xe22428(0x1a5)&&((_0x305f2b=_0x483c93['children'])!=null&&_0x305f2b[_0xe22428(0x15d)])?{..._0x483c93,'children':_0x483c93['children'][_0xe22428(0x204)](_0x5973ad=>typeof _0x5973ad[_0xe22428(0x1c5)]['id']==_0xe22428(0x1b4)&&_0x36302e&&_0x36302e[_0xe22428(0x1c2)](_0x5973ad[_0xe22428(0x1c5)]['id'])?{..._0x5973ad,'attrs':{..._0x5973ad['attrs'],'id':_0x5973ad[_0xe22428(0x1c5)]['id']+_0x42d8be['idSuffix']}}:_0x5973ad)}:_0x483c93;}function Te(){const _0x8dea52=_0xb3d05a;return Math[_0x8dea52(0x140)]()[_0x8dea52(0x177)](0x24)['substring'](0x2,0x8);}K[_0xb3d05a(0x1f8)]=_0xb3d05a(0x11f);const we={'tag':'svg','attrs':{'xmlns':_0xb3d05a(0x18e),'fill':_0xb3d05a(0x1e8),'viewBox':_0xb3d05a(0x137),'width':_0xb3d05a(0x18f),'height':_0xb3d05a(0x18f)},'children':[{'tag':'g','attrs':{'fill':_0xb3d05a(0x1e0),'clipPath':_0xb3d05a(0x1e6)},'children':[{'tag':_0xb3d05a(0x1de),'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':_0xb3d05a(0x1de),'attrs':{'d':_0xb3d05a(0x1c3)}}]},{'tag':_0xb3d05a(0x1a5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb3d05a(0x159)},'children':[{'tag':'path','attrs':{'fill':_0xb3d05a(0x1e9),'d':_0xb3d05a(0x188)}}]}]}],'defIds':[_0xb3d05a(0x159)]},B=b['forwardRef'](function(_0x34e002,_0x41ef6e){const _0x3536ec=_0xb3d05a;return b[_0x3536ec(0x1b2)](K,Object[_0x3536ec(0x11d)]({},_0x34e002,{'id':'history-icon','ref':_0x41ef6e,'icon':we}));});B[_0xb3d05a(0x1f8)]=_0xb3d05a(0x12e);var O=(_0x1e8d82=>(_0x1e8d82[_0x1e8d82[_0xb3d05a(0x168)]=0x0]='UNIVER_UNKNOWN',_0x1e8d82[_0x1e8d82['UNIVER_DOC']=0x1]=_0xb3d05a(0x1b0),_0x1e8d82[_0x1e8d82[_0xb3d05a(0x1e3)]=0x2]=_0xb3d05a(0x1e3),_0x1e8d82[_0x1e8d82[_0xb3d05a(0x1c4)]=0x3]=_0xb3d05a(0x1c4),_0x1e8d82[_0x1e8d82['UNIVER_PROJECT']=0x4]=_0xb3d05a(0x1f7),_0x1e8d82[_0x1e8d82[_0xb3d05a(0x1be)]=-0x1]='UNRECOGNIZED',_0x1e8d82))(O||{});function De(_0x3915d4){const _0x23662e=_0xb3d05a;return{'id':N['id'],'type':d[_0x23662e(0x17d)][_0x23662e(0x178)],'icon':'HistoryIcon','tooltip':_0x23662e(0x1a8),'hidden$':d[_0x23662e(0x110)](_0x3915d4,o['UniverInstanceType']['UNIVER_SHEET']),'disabled$':j[_0x23662e(0x18c)](_0x3915d4,{'workbookTypes':[g[_0x23662e(0x1c1)],g[_0x23662e(0x191)]],'worksheetTypes':[],'rangeTypes':[]})};}const qe={[d[_0xb3d05a(0x13c)][_0xb3d05a(0x192)]]:{[N['id']]:{'order':0.2,'menuItemFactory':De}}};var $e=Object[_0xb3d05a(0x1fd)],ke=(_0x3124bc,_0x1e58c5,_0x39fe36,_0x246190)=>{const _0x1d7618=_0xb3d05a;for(var _0x44274b=_0x246190>0x1?void 0x0:_0x246190?$e(_0x1e58c5,_0x39fe36):_0x1e58c5,_0x30719e=_0x3124bc[_0x1d7618(0x15d)]-0x1,_0x4be2a5;_0x30719e>=0x0;_0x30719e--)(_0x4be2a5=_0x3124bc[_0x30719e])&&(_0x44274b=_0x4be2a5(_0x44274b)||_0x44274b);return _0x44274b;},h=(_0x575b93,_0xfb6512)=>(_0x3f7cd4,_0x2409a6)=>_0xfb6512(_0x3f7cd4,_0x2409a6,_0x575b93);let R=class extends o['RxDisposable']{constructor(_0x1139dc,_0x285844,_0xbc6570,_0x453f43,_0x2c4212,_0x5a6564,_0x3ec257,_0x58d9e9,_0xee4c9c,_0x3a4a03,_0xa9291f){const _0x5c7799=_0xb3d05a;super(),m(this,_0x5c7799(0x129),null),(this['_commandService']=_0x1139dc,this['_menuManagerService']=_0x285844,this[_0x5c7799(0x11b)]=_0xbc6570,this[_0x5c7799(0x12a)]=_0x453f43,this[_0x5c7799(0x180)]=_0x2c4212,this[_0x5c7799(0x209)]=_0x5a6564,this['_collaborationController']=_0x3ec257,this['_localCacheService']=_0x58d9e9,this['_dataLoaderService']=_0xee4c9c,this[_0x5c7799(0x1c9)]=_0x3a4a03,this[_0x5c7799(0x118)]=_0xa9291f,this[_0x5c7799(0x11c)]());}[_0xb3d05a(0x11c)](){const _0x5eca71=_0xb3d05a;[N,G][_0x5eca71(0x161)](_0x37eb6a=>this[_0x5eca71(0x1f3)](o['toDisposable'](this['_commandService'][_0x5eca71(0x1cd)](_0x37eb6a)))),this[_0x5eca71(0x1f3)](this[_0x5eca71(0x11b)][_0x5eca71(0x19c)](_0x5eca71(0x12e),B)),this[_0x5eca71(0x18b)]['mergeMenu'](qe),this[_0x5eca71(0x1f3)](this['_commandService'][_0x5eca71(0x20e)](async(_0x47d0be,_0x483ce5)=>{const _0x32aab3=_0x5eca71;if(_0x47d0be['id']===U[_0x32aab3(0x186)]['id']){const {unitId:_0x3c6722}=_0x47d0be[_0x32aab3(0x122)];this['_messageService'][_0x32aab3(0x171)]({'content':this[_0x32aab3(0x180)]['t'](_0x32aab3(0x145)),'type':P[_0x32aab3(0x15b)][_0x32aab3(0x217)],'duration':0x1388});const _0x1622f6=this['_collaborationController'][_0x32aab3(0x21b)](_0x3c6722);(_0x483ce5==null?void 0x0:_0x483ce5[_0x32aab3(0x169)])?this[_0x32aab3(0x20b)](_0x1622f6,async()=>(setTimeout(()=>window[_0x32aab3(0x1d1)]['reload']()),!0x0),!0x0):this[_0x32aab3(0x20b)](_0x1622f6,async()=>{const _0x206dd7=_0x32aab3,_0x50b40a=this[_0x206dd7(0x1c9)][_0x206dd7(0x156)](O[_0x206dd7(0x1e3)]),_0x4d12c7=_0x50b40a==null?void 0x0:_0x50b40a['getActiveSheet']();if(!_0x4d12c7)return!0x1;this['_univerInstanceService'][_0x206dd7(0x19a)](_0x3c6722);const _0xabcd=await this['_dataLoaderService']['loadUnit'](_0x3c6722,O[_0x206dd7(0x1e3)]);return _0xabcd&&_0xabcd instanceof o[_0x206dd7(0x1bb)]?(await this[_0x206dd7(0x1cf)](_0xabcd,_0x4d12c7[_0x206dd7(0x1ee)]()),!0x0):!0x1;});}}));}[_0xb3d05a(0x20b)](_0x3d4a86,_0x435b71,_0x3cbd3f=!0x1){const _0x34fa04=_0xb3d05a,_0x2c9ac3=E['combineLatest']([_0x3d4a86[_0x34fa04(0x20d)]['event$'],_0x3d4a86[_0x34fa04(0x17e)]])['subscribe'](async([_0x140665,_0xc1e655])=>{const _0x2e02ca=_0x34fa04;var _0x5000f2;_0x140665[_0x2e02ca(0x146)]===U[_0x2e02ca(0x1f2)][_0x2e02ca(0x1f9)]&&(_0xc1e655==null?void 0x0:_0xc1e655[_0x2e02ca(0x198)])===f['CollaborationStatus'][_0x2e02ca(0x214)]&&_0x140665['data'][_0x2e02ca(0x1ce)][_0x2e02ca(0x1fc)](_0x36eff3=>_0x36eff3['id']===U['RevertRevisionMutation']['id'])&&await _0x435b71()&&(this[_0x2e02ca(0x12a)][_0x2e02ca(0x1aa)](),_0x2c9ac3[_0x2e02ca(0x13b)](),this[_0x2e02ca(0x129)]&&clearTimeout(this[_0x2e02ca(0x129)]),await((_0x5000f2=this[_0x2e02ca(0x182)])==null?void 0x0:_0x5000f2[_0x2e02ca(0x213)]()));});_0x3cbd3f&&(this[_0x34fa04(0x129)]=setTimeout(()=>{const _0x1ac244=_0x34fa04;_0x2c9ac3['unsubscribe'](),this['_messageService'][_0x1ac244(0x171)]({'content':this[_0x1ac244(0x180)]['t'](_0x1ac244(0x206)),'type':P[_0x1ac244(0x15b)][_0x1ac244(0x16d)],'duration':0xbb8});},0x1388));}async[_0xb3d05a(0x1cf)](_0x5b11ca,_0x6f7fe0){const _0x4c5c9c=_0xb3d05a;await this[_0x4c5c9c(0x13f)](_0x5b11ca,_0x6f7fe0),_0x5b11ca[_0x4c5c9c(0x1e5)]['pipe'](E['takeUntil'](this[_0x4c5c9c(0x215)]))['subscribe'](_0x3c2262=>{const _0x4fe035=_0x4c5c9c;_0x3c2262&&this[_0x4fe035(0x119)](_0x3c2262);}),this['_urlService'][_0x4c5c9c(0x1db)][_0x4c5c9c(0x124)](E[_0x4c5c9c(0x13d)](this['dispose$']))['subscribe'](()=>this[_0x4c5c9c(0x13f)](_0x5b11ca,_0x6f7fe0));}[_0xb3d05a(0x119)](_0x163943,_0x204845=!0x1){const _0x1f0635=_0xb3d05a,_0x20e6fc=this[_0x1f0635(0x118)][_0x1f0635(0x127)](_0x1f0635(0x10f));_0x163943[_0x1f0635(0x1ee)]()!==_0x20e6fc&&this[_0x1f0635(0x118)][_0x1f0635(0x196)](_0x1f0635(0x10f),_0x163943[_0x1f0635(0x1ee)](),_0x204845);}async[_0xb3d05a(0x13f)](_0x53cf84,_0x5d3afe){const _0x5cf02a=_0xb3d05a;var _0x33cc45;if(!_0x5d3afe||!_0x53cf84['getSheetBySheetId'](_0x5d3afe)){const _0x175289=_0x53cf84['getUnhiddenWorksheets']()[0x0],_0x1f31b7=_0x53cf84[_0x5cf02a(0x164)](_0x175289);if(!_0x1f31b7)return;this['_updateURLWithCurrentState'](_0x1f31b7,!0x0),await this['_commandService'][_0x5cf02a(0x1c7)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x53cf84[_0x5cf02a(0x111)](),'subUnitId':_0x175289});return;}((_0x33cc45=_0x53cf84[_0x5cf02a(0x148)]())==null?void 0x0:_0x33cc45[_0x5cf02a(0x1ee)]())!==_0x5d3afe&&await this[_0x5cf02a(0x190)][_0x5cf02a(0x1c7)](g[_0x5cf02a(0x1b5)]['id'],{'unitId':_0x53cf84[_0x5cf02a(0x111)](),'subUnitId':_0x5d3afe});}};R=ke([h(0x0,o[_0xb3d05a(0x160)]),h(0x1,d[_0xb3d05a(0x1df)]),h(0x2,o[_0xb3d05a(0x1ef)](d[_0xb3d05a(0x1ea)])),h(0x3,o[_0xb3d05a(0x1ef)](exports[_0xb3d05a(0x1f5)])),h(0x4,o[_0xb3d05a(0x1ef)](o[_0xb3d05a(0x1d4)])),h(0x5,d[_0xb3d05a(0x18d)]),h(0x6,o['Inject'](f['CollaborationController'])),h(0x7,f['ILocalCacheService']),h(0x8,o['Inject'](f[_0xb3d05a(0x1a1)])),h(0x9,o[_0xb3d05a(0x1a2)]),h(0xa,Re[_0xb3d05a(0x14f)])],R);var Ae=Object[_0xb3d05a(0x1eb)],Ve=Object[_0xb3d05a(0x1fd)],Fe=(_0x5c3fee,_0x316eab,_0x43b81b)=>_0x316eab in _0x5c3fee?Ae(_0x5c3fee,_0x316eab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43b81b}):_0x5c3fee[_0x316eab]=_0x43b81b,We=(_0x2a6c06,_0x5b879d,_0xdafd0,_0x341207)=>{for(var _0x525bfc=_0x341207>0x1?void 0x0:_0x341207?Ve(_0x5b879d,_0xdafd0):_0x5b879d,_0x38e126=_0x2a6c06['length']-0x1,_0x489311;_0x38e126>=0x0;_0x38e126--)(_0x489311=_0x2a6c06[_0x38e126])&&(_0x525bfc=_0x489311(_0x525bfc)||_0x525bfc);return _0x525bfc;},x=(_0x12933b,_0x47ad7d)=>(_0xda0a09,_0xe6bdd8)=>_0x47ad7d(_0xda0a09,_0xe6bdd8,_0x12933b),z=(_0x4c2f4c,_0x1351ac,_0x1a1510)=>Fe(_0x4c2f4c,typeof _0x1351ac!=_0xb3d05a(0x1b3)?_0x1351ac+'':_0x1351ac,_0x1a1510);const xe=_0xb3d05a(0x172);function _0x12b9(_0xc931e9,_0x3e3858){_0xc931e9=_0xc931e9-0x10e;const _0x22a9c5=_0x22a9();let _0x12b983=_0x22a9c5[_0xc931e9];return _0x12b983;}exports['UniverEditHistoryLoaderPlugin']=class extends o['Plugin']{constructor(_0x1f5d97=W,_0x64dc81,_0x327b0e){const _0xe5f2a0=_0xb3d05a;super(),this[_0xe5f2a0(0x1a9)]=_0x1f5d97,this['_injector']=_0x64dc81,this[_0xe5f2a0(0x12f)]=_0x327b0e;const {menu:_0x387c80,..._0x4dc201}=o[_0xe5f2a0(0x139)]({},W,this[_0xe5f2a0(0x1a9)]);_0x387c80&&this[_0xe5f2a0(0x12f)][_0xe5f2a0(0x116)](_0xe5f2a0(0x1b6),_0x387c80,{'merge':!0x0}),this['_configService'][_0xe5f2a0(0x116)](I,_0x4dc201),this['_config'][_0xe5f2a0(0x1dd)]&&this[_0xe5f2a0(0x12f)][_0xe5f2a0(0x116)](M,this[_0xe5f2a0(0x1a9)]['univerContainerId']);}[_0xb3d05a(0x19e)](){const _0x54830e=_0xb3d05a;[[exports[_0x54830e(0x1f5)]],[R]][_0x54830e(0x161)](_0x3de7b3=>this[_0x54830e(0x1bc)][_0x54830e(0x1a4)](_0x3de7b3));}[_0xb3d05a(0x130)](){const _0x576a55=_0xb3d05a;this[_0x576a55(0x1bc)]['get'](R);}},z(exports[_0xb3d05a(0x163)],_0xb3d05a(0x1ab),o['UniverInstanceType'][_0xb3d05a(0x168)]),z(exports[_0xb3d05a(0x163)],'pluginName',xe),exports[_0xb3d05a(0x163)]=We([o['DependentOn'](H['UniverLicensePlugin']),x(0x1,o[_0xb3d05a(0x1ef)](o[_0xb3d05a(0x153)])),x(0x2,o[_0xb3d05a(0x21d)])],exports[_0xb3d05a(0x163)]),exports['EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY']=I,exports[_0xb3d05a(0x12c)]=N,exports['UNIVER_CONTAINER_ID_KEY']=M,exports[_0xb3d05a(0x117)]=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x3ffd73=_0x1b09;(function(_0x114db0,_0x1a11c5){const _0x124d95=_0x1b09,_0x7a875c=_0x114db0();while(!![]){try{const _0xc5290d=-parseInt(_0x124d95(0x185))/0x1+parseInt(_0x124d95(0x1bc))/0x2+-parseInt(_0x124d95(0x10e))/0x3+-parseInt(_0x124d95(0x152))/0x4+parseInt(_0x124d95(0x142))/0x5+parseInt(_0x124d95(0x1aa))/0x6*(-parseInt(_0x124d95(0x190))/0x7)+parseInt(_0x124d95(0x17f))/0x8;if(_0xc5290d===_0x1a11c5)break;else _0x7a875c['push'](_0x7a875c['shift']());}catch(_0x29c114){_0x7a875c['push'](_0x7a875c['shift']());}}}(_0x5273,0x786e8));var oe=Object[_0x3ffd73(0x122)],se=(_0x3734ad,_0x54b2fe,_0x14c0d4)=>_0x54b2fe in _0x3734ad?oe(_0x3734ad,_0x54b2fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c0d4}):_0x3734ad[_0x54b2fe]=_0x14c0d4,d=(_0x2a94a2,_0x1cf0fc,_0x15ae39)=>se(_0x2a94a2,typeof _0x1cf0fc!=_0x3ffd73(0x1bb)?_0x1cf0fc+'':_0x1cf0fc,_0x15ae39);import{Inject as _0x58b648,LocaleService as _0x337530,ThemeService as _0x3459b4,Disposable as _0x2a676b,DisposableCollection as _0x3f32d9,Univer as _0x2edaf9,IAuthzIoService as _0x2302a9,IConfigService as _0x531b81,IUniverInstanceService as _0x4dd905,ICommandService as _0x48a5ee,IPermissionService as _0x15db4a,CommandType as _0x27e5a6,UniverInstanceType as _0x825b22,RxDisposable as _0x1f9c27,toDisposable as _0x2da9e6,Workbook as _0x16a53b,DependentOn as _0x25541b,Injector as _0x405c21,Plugin as _0x5531b9,merge as _0x1d80b8}from'@univerjs/core';import{RangeProtectionRuleModel as _0x3f08bf,UniverSheetsPlugin as _0x4b8015,WorkbookEditablePermission as _0x19decb,WorksheetEditPermission as _0x4d3673,RangeProtectionPermissionEditPoint as _0x5dd0af,WorkbookRecoverHistoryPermission as _0x182873,getSheetCommandTarget as _0x39536d,WorkbookViewHistoryPermission as _0x57174b,SetWorksheetActivateCommand as _0x355c1a}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x33f982,RevertRevisionMutation as _0x30981a,CollaborationEvent as _0x22a7eb}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x58b5f6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58adfa,CollaborationController as _0x2d54a4,DataLoaderService as _0x42cdd9,CollaborationStatus as _0x1cbf13,ILocalCacheService as _0x35c5c9}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x1cdf6b,HistoryManagerService as _0x5a6d93,HistoryModeStatus as _0x5d23c8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x55f8fe,UniverLicensePlugin as _0x452992}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x19a819}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x3aa768}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x3cbbc1}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xe004b8}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x2421d7}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x195129}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x2ffc73}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x51aa5d}from'@univerjs/data-validation';import{MessageType as _0x203d72}from'@univerjs/design';import{UniverDocsPlugin as _0xa6e5ec}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1c30bd}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x490f18,IImageIoService as _0x14b75a}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x21d42d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3caa5a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3e5bfc}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x4462c0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x3646c5,IRemoteInstanceService as _0x4888cf}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x4024b8}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x423edb}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x21ae77}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x374137}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x115085}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x526d0d}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x53da34}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x46a503}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x48c259}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2fe19}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x25c6e3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x1b4438}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x2c266d}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x466435}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x1c45a3,getCurrentRangeDisable$ as _0x18a775}from'@univerjs/sheets-ui';import{IDialogService as _0xd23fe6,ISidebarService as _0x5eabfc,UniverUIPlugin as _0x505c73,IMessageService as _0x58c51e,MenuItemType as _0x3cf949,getMenuHiddenObservable as _0x459696,RibbonStartGroup as _0x26f57a,ComponentManager as _0x412f6e,IMenuManagerService as _0x3c4660}from'@univerjs/ui';import{BehaviorSubject as _0x1e71e4,combineLatest as _0x506c72,takeUntil as _0x2a74f7}from'rxjs';import{IURLService as _0x556266}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x640c4,createElement as _0x1fb0e1,forwardRef as _0x437a7a}from'react';const _=_0x3ffd73(0x15e),F={};var Rt=Object[_0x3ffd73(0x17d)],Nt=(_0x1c9f36,_0x2682f7,_0x218551,_0x291f55)=>{const _0x4658de=_0x3ffd73;for(var _0x499caa=_0x291f55>0x1?void 0x0:_0x291f55?Rt(_0x2682f7,_0x218551):_0x2682f7,_0x517941=_0x1c9f36[_0x4658de(0x11a)]-0x1,_0x32f83c;_0x517941>=0x0;_0x517941--)(_0x32f83c=_0x1c9f36[_0x517941])&&(_0x499caa=_0x32f83c(_0x499caa)||_0x499caa);return _0x499caa;},g=(_0x527a9d,_0x43ca67)=>(_0x569b1f,_0x2885b3)=>_0x43ca67(_0x569b1f,_0x2885b3,_0x527a9d);const Lt=_0x3ffd73(0x167),Q='UNIVER_CONTAINER_ID',f='univer-history-container';let S=class extends _0x2a676b{constructor(_0x56dd44,_0x1454ad,_0x1dc9b4,_0x2c4fb4,_0x247a0,_0x28a8b1,_0x7262dc,_0x150581,_0x505d17,_0x46f922){const _0x21fd3c=_0x3ffd73;super(),d(this,'_historyUniver$',new _0x1e71e4(null)),d(this,_0x21fd3c(0x19f),this[_0x21fd3c(0x15c)][_0x21fd3c(0x179)]()),d(this,_0x21fd3c(0x15a),new _0x3f32d9()),d(this,'_pluginMap',new Map()),d(this,'_internalWebWorker',null),(this[_0x21fd3c(0x12a)]=_0x56dd44,this[_0x21fd3c(0x11b)]=_0x1454ad,this[_0x21fd3c(0x162)]=_0x1dc9b4,this[_0x21fd3c(0x168)]=_0x2c4fb4,this['_messageService']=_0x247a0,this[_0x21fd3c(0x157)]=_0x28a8b1,this['_selectionProtectionRuleModel']=_0x7262dc,this[_0x21fd3c(0x19e)]=_0x150581,this[_0x21fd3c(0x16d)]=_0x505d17,this[_0x21fd3c(0x11f)]=_0x46f922,this['_init']());}get[_0x3ffd73(0x1b6)](){const _0x1b0026=_0x3ffd73;return this[_0x1b0026(0x15c)][_0x1b0026(0x13c)];}[_0x3ffd73(0x183)](){const _0x5cbc29=_0x3ffd73;this[_0x5cbc29(0x174)](),this['_initPlugins']();}[_0x3ffd73(0x174)](){const _0x11b105=_0x3ffd73;var _0x231818;const _0x14b1cc=(_0x231818=this['_configService']['getConfig'](Q))!=null?_0x231818:Lt,_0x5774d4=document['getElementById'](_0x14b1cc);if(!_0x5774d4)return;const _0x44aa9d=document[_0x11b105(0x146)]('div');_0x44aa9d['id']=f,_0x44aa9d[_0x11b105(0x17e)]['uComp']='history-container',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x18d)]=_0x11b105(0x18f),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x181)]='0',_0x44aa9d['style'][_0x11b105(0x170)]='0',_0x44aa9d[_0x11b105(0x128)]['width']=_0x11b105(0x1b7),_0x44aa9d['style'][_0x11b105(0x19d)]=_0x11b105(0x1b7),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x139)]='49',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x193)]='none',_0x5774d4['appendChild'](_0x44aa9d);}[_0x3ffd73(0x191)](){const _0x42bd3e=_0x3ffd73;[[_0x3e5bfc],[_0x505c73,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xd23fe6,null]]}],[_0x4462c0],[_0x490f18,{'override':[[_0x14b75a,null]]}],[_0xa6e5ec,{'hasScroll':!0x1}],[_0x1c30bd],[_0x2c266d],[_0x4b8015,{'notExecuteFormula':!0x0}],[_0x1c45a3],[_0x48c259],[_0x2fe19],[_0x33f982],[_0x53da34],[_0x46a503],[_0x4024b8],[_0x423edb],[_0x25c6e3],[_0x1b4438],[_0x51aa5d],[_0x21ae77],[_0x374137],[_0x3caa5a,{'notExecuteFormula':!0x0}],[_0x21d42d],[_0x115085],[_0x526d0d],[_0x195129],[_0x2ffc73],[_0x19a819],[_0x3aa768],[_0xe004b8],[_0x2421d7],[_0x3cbbc1,{'notExecuteFormula':!0x0}],[_0x466435]][_0x42bd3e(0x17a)](([_0xfe44a,_0x26076a])=>this[_0x42bd3e(0x19c)](_0xfe44a,_0x26076a));}[_0x3ffd73(0x10c)](){const _0x394771=_0x3ffd73;super[_0x394771(0x10c)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x394771(0x164)]();}[_0x3ffd73(0x19c)](_0x1643b9,_0x5df214,_0x1b17ec){const _0x432004=_0x3ffd73;if(this[_0x432004(0x180)][_0x432004(0x1a7)](_0x1643b9[_0x432004(0x175)])&&!_0x1b17ec)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1643b9['pluginName']+'\x20has\x20been\x20registered.');this[_0x432004(0x180)][_0x432004(0x12f)](_0x1643b9['pluginName'],[_0x1643b9,_0x5df214]);}[_0x3ffd73(0x121)](){const _0x28fe04=_0x3ffd73;return Array['from'](this['_pluginMap'][_0x28fe04(0x16b)]());}[_0x3ffd73(0x153)](_0x17cb95,_0xdba2d){const _0x653d5e=_0x3ffd73,_0x373336=document[_0x653d5e(0x177)](f);_0x373336&&(_0x373336[_0x653d5e(0x128)][_0x653d5e(0x193)]='block',this[_0x653d5e(0x144)](_0x17cb95,f,_0xdba2d));}[_0x3ffd73(0x111)](){const _0x846f28=_0x3ffd73;var _0x2eeaa3;this[_0x846f28(0x15a)]['dispose'](),(_0x2eeaa3=this[_0x846f28(0x1b6)])==null||_0x2eeaa3[_0x846f28(0x10c)](),this['_historyUniver$'][_0x846f28(0x1ad)](null);const _0x2df74d=document[_0x846f28(0x177)](f);_0x2df74d&&(_0x2df74d[_0x846f28(0x128)][_0x846f28(0x193)]=_0x846f28(0x1ba),this[_0x846f28(0x10d)]&&(this['_internalWebWorker'][_0x846f28(0x197)](),this[_0x846f28(0x10d)]=null));}['_initUniver'](_0xa29aaa,_0x45bbbe,_0x5cd983){const _0x1a290b=_0x3ffd73;var _0x16b879,_0x521d70,_0x3aef12,_0x145124,_0x35ede7;if(this[_0x1a290b(0x1b6)])return;const _0x18a37f=new _0x2edaf9({'locales':{[this['_localeService'][_0x1a290b(0x137)]()]:this[_0x1a290b(0x12a)][_0x1a290b(0x1b8)]()},'override':[[_0x2302a9,{'useClass':_0x58b5f6}]]}),_0x1a97dc=_0x18a37f[_0x1a290b(0x192)]();this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)][_0x1a290b(0x1a6)][_0x1a290b(0x19b)](_0x3e9188=>{const _0x382af3=_0x1a290b;_0x1a97dc[_0x382af3(0x184)](_0x3459b4)[_0x382af3(0x112)](_0x3e9188);})),this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)]['currentTheme$'][_0x1a290b(0x19b)](_0x26f613=>{const _0x5a8822=_0x1a290b;_0x1a97dc[_0x5a8822(0x184)](_0x3459b4)[_0x5a8822(0x151)](_0x26f613);})),_0x1a97dc[_0x1a290b(0x184)](_0x337530)['setLocale'](this[_0x1a290b(0x12a)][_0x1a290b(0x137)]()),_0x1a97dc[_0x1a290b(0x184)](_0x531b81)[_0x1a290b(0x195)](_0x58adfa,this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x58adfa));const _0x2eab37=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x55f8fe);_0x2eab37&&_0x18a37f[_0x1a290b(0x19c)](_0x452992,{'license':_0x2eab37['ls']});const _0x1fa9f9=(_0x16b879=this['_configService']['getConfig'](_))==null?void 0x0:_0x16b879[_0x1a290b(0x1a4)],_0x43f2a4=!!_0x1fa9f9;_0x43f2a4&&(this[_0x1a290b(0x10d)]=_0x1fa9f9 instanceof Worker?_0x1fa9f9:null,_0x18a37f['registerPlugin'](_0x3646c5,{'workerURL':_0x1fa9f9})),this[_0x1a290b(0x180)][_0x1a290b(0x17a)](([_0x3ccafb,_0x49d705])=>{const _0x33b15c=_0x1a290b;_0x18a37f[_0x33b15c(0x19c)](_0x3ccafb,_0x49d705);}),_0x18a37f[_0x1a290b(0x19c)](_0x1cdf6b,{'historyListServerUrl':(_0x521d70=this['_configService']['getConfig'](_))==null?void 0x0:_0x521d70['historyListServerUrl'],'historyPanelComponentKey':(_0x3aef12=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x3aef12[_0x1a290b(0x16f)],'historyPanelHidden':(_0x145124=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x145124[_0x1a290b(0x155)],'historyAIassistantEnabled':(_0x35ede7=this[_0x1a290b(0x162)]['getConfig'](_))==null?void 0x0:_0x35ede7[_0x1a290b(0x1a2)]}),_0x1a97dc[_0x1a290b(0x12d)](_0xf8559f=>{this['_initListener'](_0xf8559f,_0xa29aaa);}),this[_0x1a290b(0x15c)][_0x1a290b(0x1ad)](_0x18a37f);const _0x3938df=_0x1a97dc['get'](_0x5a6d93),_0x23796e=this[_0x1a290b(0x15b)](_0xa29aaa),_0x4fd47b=()=>{const _0x429125=_0x1a290b;_0x5cd983?_0x3938df[_0x429125(0x11d)](_0xa29aaa,_0x45bbbe,_0x23796e,_0x5cd983):_0x3938df[_0x429125(0x110)](_0xa29aaa,_0x45bbbe,_0x23796e);};if(this[_0x1a290b(0x1b1)]['show']({'content':this[_0x1a290b(0x12a)]['t'](_0x1a290b(0x150)),'type':_0x203d72['Loading']}),_0x43f2a4)try{_0x1a97dc[_0x1a290b(0x184)](_0x4888cf)[_0x1a290b(0x172)]()[_0x1a290b(0x173)](()=>{_0x4fd47b();});}catch{_0x4fd47b();}else _0x4fd47b();}[_0x3ffd73(0x1af)](_0x377e44,_0x456428){const _0x3a5895=_0x3ffd73,_0x5e862d=_0x377e44[_0x3a5895(0x184)](_0x5a6d93);this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x134)]['subscribe'](_0x307a1b=>{const _0x1fcaf3=_0x3a5895;switch(_0x307a1b){case _0x5d23c8[_0x1fcaf3(0x129)]:this['_dialogService']['closeAll'](),this[_0x1fcaf3(0x16d)][_0x1fcaf3(0x12e)]();break;case _0x5d23c8['Exited']:this[_0x1fcaf3(0x168)]['executeCommand'](X['id']),this[_0x1fcaf3(0x111)]();break;case _0x5d23c8['Error']:this[_0x1fcaf3(0x111)](),this['_messageService'][_0x1fcaf3(0x131)]({'content':this['_localeService']['t'](_0x1fcaf3(0x143)),'type':_0x203d72[_0x1fcaf3(0x13e)],'duration':0xbb8});break;}})),this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x140)][_0x3a5895(0x19b)](async _0x5b3383=>{const _0x201ffe=_0x3a5895;_0x5b3383&&this[_0x201ffe(0x168)][_0x201ffe(0x1bd)](_0x30981a['id'],{'unitId':_0x456428,'revision':_0x5b3383});}));}['_checkCanRevert'](_0x501551){const _0x377c8b=_0x3ffd73,_0x5539e4=this[_0x377c8b(0x11b)][_0x377c8b(0x18b)](_0x501551)['getSheets']()[_0x377c8b(0x16c)](_0x1e4928=>_0x1e4928[_0x377c8b(0x1ae)]()),_0x45bdd5=new _0x19decb(_0x501551)['id'],_0x2c4940=_0x5539e4[_0x377c8b(0x16c)](_0x32f871=>new _0x4d3673(_0x501551,_0x32f871)['id']),_0x30b076=_0x5539e4[_0x377c8b(0x16c)](_0x4e3440=>this[_0x377c8b(0x15d)][_0x377c8b(0x126)](_0x501551,_0x4e3440)[_0x377c8b(0x16c)](_0x4727ce=>new _0x5dd0af(_0x501551,_0x4e3440,_0x4727ce[_0x377c8b(0x115)])['id']))['flat'](),_0x3acf18=new _0x182873(_0x501551)['id'];return this['_permissionService']['composePermission']([_0x45bdd5,..._0x2c4940,..._0x30b076,_0x3acf18])['every'](_0x21bd3a=>!!_0x21bd3a[_0x377c8b(0x13c)]);}};S=Nt([g(0x0,_0x58b648(_0x337530)),g(0x1,_0x4dd905),g(0x2,_0x531b81),g(0x3,_0x48a5ee),g(0x4,_0x58c51e),g(0x5,_0x15db4a),g(0x6,_0x58b648(_0x3f08bf)),g(0x7,_0x58b648(_0xd23fe6)),g(0x8,_0x58b648(_0x5eabfc)),g(0x9,_0x58b648(_0x3459b4))],S);const M={'id':'univer.operation.toggle-edit-history','type':_0x27e5a6['OPERATION'],'handler':_0x2bfa51=>{const _0xb2f853=_0x3ffd73,_0x13892a=_0x2bfa51[_0xb2f853(0x184)](S),_0x1b56ff=_0x2bfa51[_0xb2f853(0x184)](_0x4dd905),{unitId:_0x243c66}=_0x39536d(_0x1b56ff)||{};return _0x243c66?(_0x13892a[_0xb2f853(0x153)](_0x243c66),!0x0):!0x1;}},X={'id':'univer.operation.exit-edit-history','type':_0x27e5a6[_0x3ffd73(0x1a5)],'handler':()=>!0x0};function ee({ref:_0x5714e6,..._0x1c42cd}){const _0x3f1bdc=_0x3ffd73,{icon:_0x4dce6d,id:_0xc6104d,className:_0x207e7f,extend:_0x2689ec,..._0x3bcb44}=_0x1c42cd,_0x3eb634=(_0x3f1bdc(0x14c)+_0xc6104d+'\x20'+(_0x207e7f||''))[_0x3f1bdc(0x14e)](),_0x82befd=_0x640c4('_'+Ot());return te(_0x4dce6d,''+_0xc6104d,{'defIds':_0x4dce6d['defIds'],'idSuffix':_0x82befd[_0x3f1bdc(0x138)]},{'ref':_0x5714e6,'className':_0x3eb634,..._0x3bcb44},_0x2689ec);}function te(_0x658026,_0x1a8b9d,_0x451310,_0x29df4d,_0x57146a){const _0x18d850=_0x3ffd73;return _0x1fb0e1(_0x658026[_0x18d850(0x194)],{'key':_0x1a8b9d,...Ht(_0x658026,_0x451310,_0x57146a),..._0x29df4d},(Mt(_0x658026,_0x451310)[_0x18d850(0x1a0)]||[])[_0x18d850(0x16c)]((_0x15420d,_0x59cbbd)=>te(_0x15420d,_0x1a8b9d+'-'+_0x658026[_0x18d850(0x194)]+'-'+_0x59cbbd,_0x451310,void 0x0,_0x57146a)));}function Ht(_0x4a3f25,_0x2d7499,_0x235e93){const _0x359261=_0x3ffd73,_0x36cad7={..._0x4a3f25['attrs']};_0x235e93!=null&&_0x235e93[_0x359261(0x18e)]&&_0x36cad7[_0x359261(0x14d)]==='colorChannel1'&&(_0x36cad7[_0x359261(0x14d)]=_0x235e93[_0x359261(0x18e)]),_0x4a3f25['tag']===_0x359261(0x18a)&&_0x36cad7['id']&&(_0x36cad7['id']=_0x36cad7['id']+_0x2d7499[_0x359261(0x156)]),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0xf40158,_0x31b74f])=>{const _0x55bc64=_0x359261;_0xf40158===_0x55bc64(0x18a)&&typeof _0x31b74f==_0x55bc64(0x17c)&&(_0x36cad7[_0xf40158]=_0x31b74f[_0x55bc64(0x169)](/url\(#(.*)\)/,_0x55bc64(0x141)+_0x2d7499[_0x55bc64(0x156)]+')'));});const {defIds:_0xf9493b}=_0x2d7499;return!_0xf9493b||_0xf9493b[_0x359261(0x11a)]===0x0||(_0x4a3f25[_0x359261(0x194)]===_0x359261(0x145)&&_0x36cad7['xlink:href']&&(_0x36cad7['xlink:href']=_0x36cad7['xlink:href']+_0x2d7499['idSuffix']),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0x28e805,_0x27f5f9])=>{const _0x35c0b1=_0x359261;typeof _0x27f5f9==_0x35c0b1(0x17c)&&(_0x36cad7[_0x28e805]=_0x27f5f9[_0x35c0b1(0x169)](/url\(#(.*)\)/,_0x35c0b1(0x141)+_0x2d7499['idSuffix']+')'));})),_0x36cad7;}function Mt(_0x5f26e3,_0x564cb8){const _0x5e09bd=_0x3ffd73;var _0x169ada;const {defIds:_0x124785}=_0x564cb8;return!_0x124785||_0x124785['length']===0x0?_0x5f26e3:_0x5f26e3[_0x5e09bd(0x194)]===_0x5e09bd(0x15f)&&((_0x169ada=_0x5f26e3[_0x5e09bd(0x1a0)])!=null&&_0x169ada[_0x5e09bd(0x11a)])?{..._0x5f26e3,'children':_0x5f26e3[_0x5e09bd(0x1a0)]['map'](_0x14abfc=>typeof _0x14abfc[_0x5e09bd(0x158)]['id']==_0x5e09bd(0x17c)&&_0x124785&&_0x124785[_0x5e09bd(0x135)](_0x14abfc[_0x5e09bd(0x158)]['id'])?{..._0x14abfc,'attrs':{..._0x14abfc[_0x5e09bd(0x158)],'id':_0x14abfc['attrs']['id']+_0x564cb8['idSuffix']}}:_0x14abfc)}:_0x5f26e3;}function _0x5273(){const _0x4d660e=['historyUniver$','children','history-icon_clip0_907_281','historyAIassistantEnabled','_collaborationController','workerURL','OPERATION','darkMode$','has','editHistory.panel.reverting','editHistory.panel.revertFailed','200940ZMMfkg','mutations','getUnitId','next','getSheetId','_initListener','_urlService','_messageService','_updateSubUnitFromURLParams','onSteady','onStarting','UNIVER_PROJECT','historyUniver','100%','getLocales','state$','none','symbol','1400378xbfkky','executeCommand','dispose','_internalWebWorker','2129529SQyzwy','getSheetBySheetId','triggerLoadVersions','unMountHistoryContent','setDarkMode','event$','HistoryIcon','permissionId','disposeUnit','_localCacheService','getActiveSheet','_handleRevertAcknowledgement','length','_univerInstanceService','type','triggerCustomVersions','url(#history-icon_clip0_907_281)','_themeService','activeSheet$','getAllPlugins','defineProperty','session','UNIVER_UNKNOWN','M0\x200H16V16H0z','getSubunitRuleList','_setupSubUnitSync','style','Entered','_localeService','_injector','path','invoke','close','set','substring','show','disposeWithMe','1em','status$','includes','_revertErrorTimer','getCurrentLocale','current','zIndex','_historyManagerService','pipe','value','UNIVER_SHEET','Error','register','revertRevision$','url(#$1','2820315SwbxbC','editHistory.panel.listFetchError','_initUniver','use','createElement','history-icon','_componentManager','eventID','_dataLoaderService','registerCommand','univerjs-icon\x20univerjs-icon-','fill','trim','getConfig','editHistory.info.initializing','setTheme','1116816LFcuHE','mountHistoryContent','loadUnit','historyPanelHidden','idSuffix','_permissionService','attrs','getParam','_disposableCollection','_checkCanRevert','_historyUniver$','_selectionProtectionRuleModel','edit-history-loader.config','defs','some','svg','_configService','menu','clear','onCommandExecuted','OTHERS','univer-container','_commandService','replace','dispose$','values','map','_sidebarService','white','historyPanelComponentKey','left','random','whenReady','then','_initContainer','pluginName','UNIVER_SLIDE','getElementById','_updateURLWithCurrentState','asObservable','forEach','reload','string','getOwnPropertyDescriptor','dataset','9482664DgwzPA','_pluginMap','top','toString','_init','get','364430exgWtY','location','setParam','subunit','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mask','getUnit','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','position','colorChannel1','absolute','126bBMFZv','_initPlugins','__getInjector','display','tag','setConfig','BUTTON','terminate','UNRECOGNIZED','data','_config','subscribe','registerPlugin','height','_dialogService'];_0x5273=function(){return _0x4d660e;};return _0x5273();}function Ot(){const _0x19e1a3=_0x3ffd73;return Math[_0x19e1a3(0x171)]()[_0x19e1a3(0x182)](0x24)[_0x19e1a3(0x130)](0x2,0x8);}ee['displayName']='UniverIcon';const wt={'tag':_0x3ffd73(0x161),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ffd73(0x1ba),'viewBox':'0\x200\x2016\x2016','width':_0x3ffd73(0x133),'height':_0x3ffd73(0x133)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x3ffd73(0x11e)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'d':_0x3ffd73(0x18c)}},{'tag':_0x3ffd73(0x12c),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3ffd73(0x1a1)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'fill':_0x3ffd73(0x16e),'d':_0x3ffd73(0x125)}}]}]}],'defIds':[_0x3ffd73(0x1a1)]},ie=_0x437a7a(function(_0x2f8f3b,_0x9a2bc2){const _0x307558=_0x3ffd73;return _0x1fb0e1(ee,Object['assign']({},_0x2f8f3b,{'id':_0x307558(0x147),'ref':_0x9a2bc2,'icon':wt}));});ie['displayName']=_0x3ffd73(0x114);var R=(_0x19771a=>(_0x19771a[_0x19771a['UNIVER_UNKNOWN']=0x0]=_0x3ffd73(0x124),_0x19771a[_0x19771a['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x19771a[_0x19771a['UNIVER_SHEET']=0x2]=_0x3ffd73(0x13d),_0x19771a[_0x19771a[_0x3ffd73(0x176)]=0x3]=_0x3ffd73(0x176),_0x19771a[_0x19771a[_0x3ffd73(0x1b5)]=0x4]='UNIVER_PROJECT',_0x19771a[_0x19771a['UNRECOGNIZED']=-0x1]=_0x3ffd73(0x198),_0x19771a))(R||{});function Dt(_0xa7e79d){const _0x57f6cf=_0x3ffd73;return{'id':M['id'],'type':_0x3cf949[_0x57f6cf(0x196)],'icon':_0x57f6cf(0x114),'tooltip':'editHistory.panel.title','hidden$':_0x459696(_0xa7e79d,_0x825b22[_0x57f6cf(0x13d)]),'disabled$':_0x18a775(_0xa7e79d,{'workbookTypes':[_0x19decb,_0x57174b],'worksheetTypes':[],'rangeTypes':[]})};}const Tt={[_0x26f57a[_0x3ffd73(0x166)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Dt}}};var $t=Object[_0x3ffd73(0x17d)],xt=(_0x3f4154,_0xb9b7e,_0x3b51ae,_0x30cd30)=>{const _0x3715d4=_0x3ffd73;for(var _0x5eeec4=_0x30cd30>0x1?void 0x0:_0x30cd30?$t(_0xb9b7e,_0x3b51ae):_0xb9b7e,_0x736143=_0x3f4154[_0x3715d4(0x11a)]-0x1,_0x391de3;_0x736143>=0x0;_0x736143--)(_0x391de3=_0x3f4154[_0x736143])&&(_0x5eeec4=_0x391de3(_0x5eeec4)||_0x5eeec4);return _0x5eeec4;},h=(_0x501a6a,_0x5ab9da)=>(_0x3d767a,_0x38aacf)=>_0x5ab9da(_0x3d767a,_0x38aacf,_0x501a6a);let I=class extends _0x1f9c27{constructor(_0x23556c,_0x12a6d8,_0x1b196a,_0x3237b8,_0x3493c9,_0x56aed4,_0x493bfb,_0x439752,_0x4befeb,_0x578bf4,_0x4f3af8){const _0x1fa09d=_0x3ffd73;super(),d(this,'_revertErrorTimer',null),(this['_commandService']=_0x23556c,this['_menuManagerService']=_0x12a6d8,this['_componentManager']=_0x1b196a,this[_0x1fa09d(0x13a)]=_0x3237b8,this[_0x1fa09d(0x12a)]=_0x3493c9,this['_messageService']=_0x56aed4,this['_collaborationController']=_0x493bfb,this[_0x1fa09d(0x117)]=_0x439752,this[_0x1fa09d(0x14a)]=_0x4befeb,this[_0x1fa09d(0x11b)]=_0x578bf4,this[_0x1fa09d(0x1b0)]=_0x4f3af8,this[_0x1fa09d(0x183)]());}[_0x3ffd73(0x183)](){const _0x2602ee=_0x3ffd73;[M,X][_0x2602ee(0x17a)](_0x1b9147=>this[_0x2602ee(0x132)](_0x2da9e6(this[_0x2602ee(0x168)][_0x2602ee(0x14b)](_0x1b9147)))),this[_0x2602ee(0x132)](this[_0x2602ee(0x148)][_0x2602ee(0x13f)](_0x2602ee(0x114),ie)),this['_menuManagerService']['mergeMenu'](Tt),this[_0x2602ee(0x132)](this[_0x2602ee(0x168)][_0x2602ee(0x165)](async(_0x3a0062,_0x2d179e)=>{const _0x4b928d=_0x2602ee;if(_0x3a0062['id']===_0x30981a['id']){const {unitId:_0x22f5d3}=_0x3a0062['params'];this[_0x4b928d(0x1b1)][_0x4b928d(0x131)]({'content':this['_localeService']['t'](_0x4b928d(0x1a8)),'type':_0x203d72['Loading'],'duration':0x1388});const _0x5f580e=this[_0x4b928d(0x1a3)]['getCollabEntity'](_0x22f5d3);(_0x2d179e==null?void 0x0:_0x2d179e['fromCollab'])?this['_handleRevertAcknowledgement'](_0x5f580e,async()=>(setTimeout(()=>window[_0x4b928d(0x186)][_0x4b928d(0x17b)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5f580e,async()=>{const _0xd65268=_0x4b928d,_0x17365=this[_0xd65268(0x11b)]['getCurrentUnitOfType'](R['UNIVER_SHEET']),_0x28114c=_0x17365==null?void 0x0:_0x17365['getActiveSheet']();if(!_0x28114c)return!0x1;this[_0xd65268(0x11b)][_0xd65268(0x116)](_0x22f5d3);const _0x21bded=await this[_0xd65268(0x14a)][_0xd65268(0x154)](_0x22f5d3,R[_0xd65268(0x13d)]);return _0x21bded&&_0x21bded instanceof _0x16a53b?(await this[_0xd65268(0x127)](_0x21bded,_0x28114c['getSheetId']()),!0x0):!0x1;});}}));}[_0x3ffd73(0x119)](_0x4d5ebd,_0x562575,_0x4b9973=!0x1){const _0x29c8b4=_0x3ffd73,_0x5d0e99=_0x506c72([_0x4d5ebd[_0x29c8b4(0x123)][_0x29c8b4(0x113)],_0x4d5ebd[_0x29c8b4(0x1b9)]])[_0x29c8b4(0x19b)](async([_0x4ea7d1,_0x1fe945])=>{const _0x2fba02=_0x29c8b4;var _0x1d57e3;_0x4ea7d1[_0x2fba02(0x149)]===_0x22a7eb['CHANGESET_ACK']&&(_0x1fe945==null?void 0x0:_0x1fe945['status'])===_0x1cbf13['SYNCED']&&_0x4ea7d1[_0x2fba02(0x199)][_0x2fba02(0x1ab)][_0x2fba02(0x160)](_0x438b8f=>_0x438b8f['id']===_0x30981a['id'])&&await _0x562575()&&(this['_historyManagerService']['unMountHistoryContent'](),_0x5d0e99['unsubscribe'](),this[_0x2fba02(0x136)]&&clearTimeout(this[_0x2fba02(0x136)]),await((_0x1d57e3=this[_0x2fba02(0x117)])==null?void 0x0:_0x1d57e3['exhaustSavingTask']()));});_0x4b9973&&(this[_0x29c8b4(0x136)]=setTimeout(()=>{const _0x2497a9=_0x29c8b4;_0x5d0e99['unsubscribe'](),this[_0x2497a9(0x1b1)]['show']({'content':this[_0x2497a9(0x12a)]['t'](_0x2497a9(0x1a9)),'type':_0x203d72[_0x2497a9(0x13e)],'duration':0xbb8});},0x1388));}async[_0x3ffd73(0x127)](_0x5534ab,_0x2771f3){const _0x5de54e=_0x3ffd73;await this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3),_0x5534ab[_0x5de54e(0x120)][_0x5de54e(0x13b)](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](_0x187525=>{const _0x5c8b14=_0x5de54e;_0x187525&&this[_0x5c8b14(0x178)](_0x187525);}),this[_0x5de54e(0x1b0)]['urlChange$']['pipe'](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](()=>this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3));}[_0x3ffd73(0x178)](_0x529d25,_0x530bf6=!0x1){const _0x3d0c68=_0x3ffd73,_0x431a15=this[_0x3d0c68(0x1b0)][_0x3d0c68(0x159)](_0x3d0c68(0x188));_0x529d25[_0x3d0c68(0x1ae)]()!==_0x431a15&&this[_0x3d0c68(0x1b0)][_0x3d0c68(0x187)](_0x3d0c68(0x188),_0x529d25[_0x3d0c68(0x1ae)](),_0x530bf6);}async[_0x3ffd73(0x1b2)](_0x379d08,_0x4a61d9){const _0x136b9b=_0x3ffd73;var _0x47efdc;if(!_0x4a61d9||!_0x379d08[_0x136b9b(0x10f)](_0x4a61d9)){const _0x29e1d4=_0x379d08['getUnhiddenWorksheets']()[0x0],_0x341a06=_0x379d08[_0x136b9b(0x10f)](_0x29e1d4);if(!_0x341a06)return;this['_updateURLWithCurrentState'](_0x341a06,!0x0),await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x29e1d4});return;}((_0x47efdc=_0x379d08[_0x136b9b(0x118)]())==null?void 0x0:_0x47efdc['getSheetId']())!==_0x4a61d9&&await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x4a61d9});}};I=xt([h(0x0,_0x48a5ee),h(0x1,_0x3c4660),h(0x2,_0x58b648(_0x412f6e)),h(0x3,_0x58b648(S)),h(0x4,_0x58b648(_0x337530)),h(0x5,_0x58c51e),h(0x6,_0x58b648(_0x2d54a4)),h(0x7,_0x35c5c9),h(0x8,_0x58b648(_0x42cdd9)),h(0x9,_0x4dd905),h(0xa,_0x556266)],I);var At=Object[_0x3ffd73(0x122)],Vt=Object[_0x3ffd73(0x17d)],Wt=(_0x1a45cf,_0x43dd77,_0x456ec3)=>_0x43dd77 in _0x1a45cf?At(_0x1a45cf,_0x43dd77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456ec3}):_0x1a45cf[_0x43dd77]=_0x456ec3,kt=(_0x4fc994,_0x46664d,_0xde63cf,_0xfad37f)=>{const _0x5d8fee=_0x3ffd73;for(var _0xbfec4c=_0xfad37f>0x1?void 0x0:_0xfad37f?Vt(_0x46664d,_0xde63cf):_0x46664d,_0x12f217=_0x4fc994[_0x5d8fee(0x11a)]-0x1,_0x32411a;_0x12f217>=0x0;_0x12f217--)(_0x32411a=_0x4fc994[_0x12f217])&&(_0xbfec4c=_0x32411a(_0xbfec4c)||_0xbfec4c);return _0xbfec4c;},j=(_0x51e09e,_0x42196b)=>(_0x4dcd19,_0x20cc96)=>_0x42196b(_0x4dcd19,_0x20cc96,_0x51e09e),re=(_0x35bd77,_0x40f876,_0x1e0fe0)=>Wt(_0x35bd77,typeof _0x40f876!=_0x3ffd73(0x1bb)?_0x40f876+'':_0x40f876,_0x1e0fe0);const Ft=_0x3ffd73(0x189);let y=class extends _0x5531b9{constructor(_0x3f8626=F,_0x1447d1,_0x2a892d){const _0x515133=_0x3ffd73;super(),this[_0x515133(0x19a)]=_0x3f8626,this[_0x515133(0x12b)]=_0x1447d1,this[_0x515133(0x162)]=_0x2a892d;const {menu:_0x375a79,..._0x3d3d22}=_0x1d80b8({},F,this['_config']);_0x375a79&&this[_0x515133(0x162)]['setConfig'](_0x515133(0x163),_0x375a79,{'merge':!0x0}),this[_0x515133(0x162)]['setConfig'](_,_0x3d3d22),this[_0x515133(0x19a)]['univerContainerId']&&this[_0x515133(0x162)]['setConfig'](Q,this[_0x515133(0x19a)]['univerContainerId']);}[_0x3ffd73(0x1b4)](){const _0x386519=_0x3ffd73;[[S],[I]][_0x386519(0x17a)](_0x472c54=>this[_0x386519(0x12b)]['add'](_0x472c54));}[_0x3ffd73(0x1b3)](){const _0x169f5e=_0x3ffd73;this[_0x169f5e(0x12b)]['get'](I);}};re(y,_0x3ffd73(0x11c),_0x825b22[_0x3ffd73(0x124)]),re(y,_0x3ffd73(0x175),Ft),y=kt([_0x25541b(_0x452992),j(0x1,_0x58b648(_0x405c21)),j(0x2,_0x531b81)],y);function _0x1b09(_0x2e5a59,_0x51f6e5){_0x2e5a59=_0x2e5a59-0x10c;const _0x52735f=_0x5273();let _0x1b0956=_0x52735f[_0x2e5a59];return _0x1b0956;}export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,S as HistoryLoaderService,M as ToggleEditHistoryOperation,Q as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,y as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x3ffd73=_0x1b09;(function(_0x114db0,_0x1a11c5){const _0x124d95=_0x1b09,_0x7a875c=_0x114db0();while(!![]){try{const _0xc5290d=-parseInt(_0x124d95(0x185))/0x1+parseInt(_0x124d95(0x1bc))/0x2+-parseInt(_0x124d95(0x10e))/0x3+-parseInt(_0x124d95(0x152))/0x4+parseInt(_0x124d95(0x142))/0x5+parseInt(_0x124d95(0x1aa))/0x6*(-parseInt(_0x124d95(0x190))/0x7)+parseInt(_0x124d95(0x17f))/0x8;if(_0xc5290d===_0x1a11c5)break;else _0x7a875c['push'](_0x7a875c['shift']());}catch(_0x29c114){_0x7a875c['push'](_0x7a875c['shift']());}}}(_0x5273,0x786e8));var oe=Object[_0x3ffd73(0x122)],se=(_0x3734ad,_0x54b2fe,_0x14c0d4)=>_0x54b2fe in _0x3734ad?oe(_0x3734ad,_0x54b2fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c0d4}):_0x3734ad[_0x54b2fe]=_0x14c0d4,d=(_0x2a94a2,_0x1cf0fc,_0x15ae39)=>se(_0x2a94a2,typeof _0x1cf0fc!=_0x3ffd73(0x1bb)?_0x1cf0fc+'':_0x1cf0fc,_0x15ae39);import{Inject as _0x58b648,LocaleService as _0x337530,ThemeService as _0x3459b4,Disposable as _0x2a676b,DisposableCollection as _0x3f32d9,Univer as _0x2edaf9,IAuthzIoService as _0x2302a9,IConfigService as _0x531b81,IUniverInstanceService as _0x4dd905,ICommandService as _0x48a5ee,IPermissionService as _0x15db4a,CommandType as _0x27e5a6,UniverInstanceType as _0x825b22,RxDisposable as _0x1f9c27,toDisposable as _0x2da9e6,Workbook as _0x16a53b,DependentOn as _0x25541b,Injector as _0x405c21,Plugin as _0x5531b9,merge as _0x1d80b8}from'@univerjs/core';import{RangeProtectionRuleModel as _0x3f08bf,UniverSheetsPlugin as _0x4b8015,WorkbookEditablePermission as _0x19decb,WorksheetEditPermission as _0x4d3673,RangeProtectionPermissionEditPoint as _0x5dd0af,WorkbookRecoverHistoryPermission as _0x182873,getSheetCommandTarget as _0x39536d,WorkbookViewHistoryPermission as _0x57174b,SetWorksheetActivateCommand as _0x355c1a}from'@univerjs/sheets';import{UniverCollaborationPlugin as _0x33f982,RevertRevisionMutation as _0x30981a,CollaborationEvent as _0x22a7eb}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x58b5f6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58adfa,CollaborationController as _0x2d54a4,DataLoaderService as _0x42cdd9,CollaborationStatus as _0x1cbf13,ILocalCacheService as _0x35c5c9}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x1cdf6b,HistoryManagerService as _0x5a6d93,HistoryModeStatus as _0x5d23c8}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x55f8fe,UniverLicensePlugin as _0x452992}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x19a819}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x3aa768}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x3cbbc1}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0xe004b8}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x2421d7}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x195129}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x2ffc73}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x51aa5d}from'@univerjs/data-validation';import{MessageType as _0x203d72}from'@univerjs/design';import{UniverDocsPlugin as _0xa6e5ec}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1c30bd}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x490f18,IImageIoService as _0x14b75a}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x21d42d}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3caa5a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3e5bfc}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x4462c0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x3646c5,IRemoteInstanceService as _0x4888cf}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x4024b8}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x423edb}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x21ae77}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x374137}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x115085}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x526d0d}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x53da34}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x46a503}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x48c259}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2fe19}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x25c6e3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x1b4438}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x2c266d}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x466435}from'@univerjs/sheets-table';import{UniverSheetsUIPlugin as _0x1c45a3,getCurrentRangeDisable$ as _0x18a775}from'@univerjs/sheets-ui';import{IDialogService as _0xd23fe6,ISidebarService as _0x5eabfc,UniverUIPlugin as _0x505c73,IMessageService as _0x58c51e,MenuItemType as _0x3cf949,getMenuHiddenObservable as _0x459696,RibbonStartGroup as _0x26f57a,ComponentManager as _0x412f6e,IMenuManagerService as _0x3c4660}from'@univerjs/ui';import{BehaviorSubject as _0x1e71e4,combineLatest as _0x506c72,takeUntil as _0x2a74f7}from'rxjs';import{IURLService as _0x556266}from'@univerjs-pro/collaboration-client-ui';import{useRef as _0x640c4,createElement as _0x1fb0e1,forwardRef as _0x437a7a}from'react';const _=_0x3ffd73(0x15e),F={};var Rt=Object[_0x3ffd73(0x17d)],Nt=(_0x1c9f36,_0x2682f7,_0x218551,_0x291f55)=>{const _0x4658de=_0x3ffd73;for(var _0x499caa=_0x291f55>0x1?void 0x0:_0x291f55?Rt(_0x2682f7,_0x218551):_0x2682f7,_0x517941=_0x1c9f36[_0x4658de(0x11a)]-0x1,_0x32f83c;_0x517941>=0x0;_0x517941--)(_0x32f83c=_0x1c9f36[_0x517941])&&(_0x499caa=_0x32f83c(_0x499caa)||_0x499caa);return _0x499caa;},g=(_0x527a9d,_0x43ca67)=>(_0x569b1f,_0x2885b3)=>_0x43ca67(_0x569b1f,_0x2885b3,_0x527a9d);const Lt=_0x3ffd73(0x167),Q='UNIVER_CONTAINER_ID',f='univer-history-container';let S=class extends _0x2a676b{constructor(_0x56dd44,_0x1454ad,_0x1dc9b4,_0x2c4fb4,_0x247a0,_0x28a8b1,_0x7262dc,_0x150581,_0x505d17,_0x46f922){const _0x21fd3c=_0x3ffd73;super(),d(this,'_historyUniver$',new _0x1e71e4(null)),d(this,_0x21fd3c(0x19f),this[_0x21fd3c(0x15c)][_0x21fd3c(0x179)]()),d(this,_0x21fd3c(0x15a),new _0x3f32d9()),d(this,'_pluginMap',new Map()),d(this,'_internalWebWorker',null),(this[_0x21fd3c(0x12a)]=_0x56dd44,this[_0x21fd3c(0x11b)]=_0x1454ad,this[_0x21fd3c(0x162)]=_0x1dc9b4,this[_0x21fd3c(0x168)]=_0x2c4fb4,this['_messageService']=_0x247a0,this[_0x21fd3c(0x157)]=_0x28a8b1,this['_selectionProtectionRuleModel']=_0x7262dc,this[_0x21fd3c(0x19e)]=_0x150581,this[_0x21fd3c(0x16d)]=_0x505d17,this[_0x21fd3c(0x11f)]=_0x46f922,this['_init']());}get[_0x3ffd73(0x1b6)](){const _0x1b0026=_0x3ffd73;return this[_0x1b0026(0x15c)][_0x1b0026(0x13c)];}[_0x3ffd73(0x183)](){const _0x5cbc29=_0x3ffd73;this[_0x5cbc29(0x174)](),this['_initPlugins']();}[_0x3ffd73(0x174)](){const _0x11b105=_0x3ffd73;var _0x231818;const _0x14b1cc=(_0x231818=this['_configService']['getConfig'](Q))!=null?_0x231818:Lt,_0x5774d4=document['getElementById'](_0x14b1cc);if(!_0x5774d4)return;const _0x44aa9d=document[_0x11b105(0x146)]('div');_0x44aa9d['id']=f,_0x44aa9d[_0x11b105(0x17e)]['uComp']='history-container',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x18d)]=_0x11b105(0x18f),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x181)]='0',_0x44aa9d['style'][_0x11b105(0x170)]='0',_0x44aa9d[_0x11b105(0x128)]['width']=_0x11b105(0x1b7),_0x44aa9d['style'][_0x11b105(0x19d)]=_0x11b105(0x1b7),_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x139)]='49',_0x44aa9d[_0x11b105(0x128)][_0x11b105(0x193)]='none',_0x5774d4['appendChild'](_0x44aa9d);}[_0x3ffd73(0x191)](){const _0x42bd3e=_0x3ffd73;[[_0x3e5bfc],[_0x505c73,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xd23fe6,null]]}],[_0x4462c0],[_0x490f18,{'override':[[_0x14b75a,null]]}],[_0xa6e5ec,{'hasScroll':!0x1}],[_0x1c30bd],[_0x2c266d],[_0x4b8015,{'notExecuteFormula':!0x0}],[_0x1c45a3],[_0x48c259],[_0x2fe19],[_0x33f982],[_0x53da34],[_0x46a503],[_0x4024b8],[_0x423edb],[_0x25c6e3],[_0x1b4438],[_0x51aa5d],[_0x21ae77],[_0x374137],[_0x3caa5a,{'notExecuteFormula':!0x0}],[_0x21d42d],[_0x115085],[_0x526d0d],[_0x195129],[_0x2ffc73],[_0x19a819],[_0x3aa768],[_0xe004b8],[_0x2421d7],[_0x3cbbc1,{'notExecuteFormula':!0x0}],[_0x466435]][_0x42bd3e(0x17a)](([_0xfe44a,_0x26076a])=>this[_0x42bd3e(0x19c)](_0xfe44a,_0x26076a));}[_0x3ffd73(0x10c)](){const _0x394771=_0x3ffd73;super[_0x394771(0x10c)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x394771(0x164)]();}[_0x3ffd73(0x19c)](_0x1643b9,_0x5df214,_0x1b17ec){const _0x432004=_0x3ffd73;if(this[_0x432004(0x180)][_0x432004(0x1a7)](_0x1643b9[_0x432004(0x175)])&&!_0x1b17ec)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1643b9['pluginName']+'\x20has\x20been\x20registered.');this[_0x432004(0x180)][_0x432004(0x12f)](_0x1643b9['pluginName'],[_0x1643b9,_0x5df214]);}[_0x3ffd73(0x121)](){const _0x28fe04=_0x3ffd73;return Array['from'](this['_pluginMap'][_0x28fe04(0x16b)]());}[_0x3ffd73(0x153)](_0x17cb95,_0xdba2d){const _0x653d5e=_0x3ffd73,_0x373336=document[_0x653d5e(0x177)](f);_0x373336&&(_0x373336[_0x653d5e(0x128)][_0x653d5e(0x193)]='block',this[_0x653d5e(0x144)](_0x17cb95,f,_0xdba2d));}[_0x3ffd73(0x111)](){const _0x846f28=_0x3ffd73;var _0x2eeaa3;this[_0x846f28(0x15a)]['dispose'](),(_0x2eeaa3=this[_0x846f28(0x1b6)])==null||_0x2eeaa3[_0x846f28(0x10c)](),this['_historyUniver$'][_0x846f28(0x1ad)](null);const _0x2df74d=document[_0x846f28(0x177)](f);_0x2df74d&&(_0x2df74d[_0x846f28(0x128)][_0x846f28(0x193)]=_0x846f28(0x1ba),this[_0x846f28(0x10d)]&&(this['_internalWebWorker'][_0x846f28(0x197)](),this[_0x846f28(0x10d)]=null));}['_initUniver'](_0xa29aaa,_0x45bbbe,_0x5cd983){const _0x1a290b=_0x3ffd73;var _0x16b879,_0x521d70,_0x3aef12,_0x145124,_0x35ede7;if(this[_0x1a290b(0x1b6)])return;const _0x18a37f=new _0x2edaf9({'locales':{[this['_localeService'][_0x1a290b(0x137)]()]:this[_0x1a290b(0x12a)][_0x1a290b(0x1b8)]()},'override':[[_0x2302a9,{'useClass':_0x58b5f6}]]}),_0x1a97dc=_0x18a37f[_0x1a290b(0x192)]();this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)][_0x1a290b(0x1a6)][_0x1a290b(0x19b)](_0x3e9188=>{const _0x382af3=_0x1a290b;_0x1a97dc[_0x382af3(0x184)](_0x3459b4)[_0x382af3(0x112)](_0x3e9188);})),this[_0x1a290b(0x132)](this[_0x1a290b(0x11f)]['currentTheme$'][_0x1a290b(0x19b)](_0x26f613=>{const _0x5a8822=_0x1a290b;_0x1a97dc[_0x5a8822(0x184)](_0x3459b4)[_0x5a8822(0x151)](_0x26f613);})),_0x1a97dc[_0x1a290b(0x184)](_0x337530)['setLocale'](this[_0x1a290b(0x12a)][_0x1a290b(0x137)]()),_0x1a97dc[_0x1a290b(0x184)](_0x531b81)[_0x1a290b(0x195)](_0x58adfa,this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x58adfa));const _0x2eab37=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_0x55f8fe);_0x2eab37&&_0x18a37f[_0x1a290b(0x19c)](_0x452992,{'license':_0x2eab37['ls']});const _0x1fa9f9=(_0x16b879=this['_configService']['getConfig'](_))==null?void 0x0:_0x16b879[_0x1a290b(0x1a4)],_0x43f2a4=!!_0x1fa9f9;_0x43f2a4&&(this[_0x1a290b(0x10d)]=_0x1fa9f9 instanceof Worker?_0x1fa9f9:null,_0x18a37f['registerPlugin'](_0x3646c5,{'workerURL':_0x1fa9f9})),this[_0x1a290b(0x180)][_0x1a290b(0x17a)](([_0x3ccafb,_0x49d705])=>{const _0x33b15c=_0x1a290b;_0x18a37f[_0x33b15c(0x19c)](_0x3ccafb,_0x49d705);}),_0x18a37f[_0x1a290b(0x19c)](_0x1cdf6b,{'historyListServerUrl':(_0x521d70=this['_configService']['getConfig'](_))==null?void 0x0:_0x521d70['historyListServerUrl'],'historyPanelComponentKey':(_0x3aef12=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x3aef12[_0x1a290b(0x16f)],'historyPanelHidden':(_0x145124=this[_0x1a290b(0x162)][_0x1a290b(0x14f)](_))==null?void 0x0:_0x145124[_0x1a290b(0x155)],'historyAIassistantEnabled':(_0x35ede7=this[_0x1a290b(0x162)]['getConfig'](_))==null?void 0x0:_0x35ede7[_0x1a290b(0x1a2)]}),_0x1a97dc[_0x1a290b(0x12d)](_0xf8559f=>{this['_initListener'](_0xf8559f,_0xa29aaa);}),this[_0x1a290b(0x15c)][_0x1a290b(0x1ad)](_0x18a37f);const _0x3938df=_0x1a97dc['get'](_0x5a6d93),_0x23796e=this[_0x1a290b(0x15b)](_0xa29aaa),_0x4fd47b=()=>{const _0x429125=_0x1a290b;_0x5cd983?_0x3938df[_0x429125(0x11d)](_0xa29aaa,_0x45bbbe,_0x23796e,_0x5cd983):_0x3938df[_0x429125(0x110)](_0xa29aaa,_0x45bbbe,_0x23796e);};if(this[_0x1a290b(0x1b1)]['show']({'content':this[_0x1a290b(0x12a)]['t'](_0x1a290b(0x150)),'type':_0x203d72['Loading']}),_0x43f2a4)try{_0x1a97dc[_0x1a290b(0x184)](_0x4888cf)[_0x1a290b(0x172)]()[_0x1a290b(0x173)](()=>{_0x4fd47b();});}catch{_0x4fd47b();}else _0x4fd47b();}[_0x3ffd73(0x1af)](_0x377e44,_0x456428){const _0x3a5895=_0x3ffd73,_0x5e862d=_0x377e44[_0x3a5895(0x184)](_0x5a6d93);this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x134)]['subscribe'](_0x307a1b=>{const _0x1fcaf3=_0x3a5895;switch(_0x307a1b){case _0x5d23c8[_0x1fcaf3(0x129)]:this['_dialogService']['closeAll'](),this[_0x1fcaf3(0x16d)][_0x1fcaf3(0x12e)]();break;case _0x5d23c8['Exited']:this[_0x1fcaf3(0x168)]['executeCommand'](X['id']),this[_0x1fcaf3(0x111)]();break;case _0x5d23c8['Error']:this[_0x1fcaf3(0x111)](),this['_messageService'][_0x1fcaf3(0x131)]({'content':this['_localeService']['t'](_0x1fcaf3(0x143)),'type':_0x203d72[_0x1fcaf3(0x13e)],'duration':0xbb8});break;}})),this[_0x3a5895(0x15a)]['add'](_0x5e862d[_0x3a5895(0x140)][_0x3a5895(0x19b)](async _0x5b3383=>{const _0x201ffe=_0x3a5895;_0x5b3383&&this[_0x201ffe(0x168)][_0x201ffe(0x1bd)](_0x30981a['id'],{'unitId':_0x456428,'revision':_0x5b3383});}));}['_checkCanRevert'](_0x501551){const _0x377c8b=_0x3ffd73,_0x5539e4=this[_0x377c8b(0x11b)][_0x377c8b(0x18b)](_0x501551)['getSheets']()[_0x377c8b(0x16c)](_0x1e4928=>_0x1e4928[_0x377c8b(0x1ae)]()),_0x45bdd5=new _0x19decb(_0x501551)['id'],_0x2c4940=_0x5539e4[_0x377c8b(0x16c)](_0x32f871=>new _0x4d3673(_0x501551,_0x32f871)['id']),_0x30b076=_0x5539e4[_0x377c8b(0x16c)](_0x4e3440=>this[_0x377c8b(0x15d)][_0x377c8b(0x126)](_0x501551,_0x4e3440)[_0x377c8b(0x16c)](_0x4727ce=>new _0x5dd0af(_0x501551,_0x4e3440,_0x4727ce[_0x377c8b(0x115)])['id']))['flat'](),_0x3acf18=new _0x182873(_0x501551)['id'];return this['_permissionService']['composePermission']([_0x45bdd5,..._0x2c4940,..._0x30b076,_0x3acf18])['every'](_0x21bd3a=>!!_0x21bd3a[_0x377c8b(0x13c)]);}};S=Nt([g(0x0,_0x58b648(_0x337530)),g(0x1,_0x4dd905),g(0x2,_0x531b81),g(0x3,_0x48a5ee),g(0x4,_0x58c51e),g(0x5,_0x15db4a),g(0x6,_0x58b648(_0x3f08bf)),g(0x7,_0x58b648(_0xd23fe6)),g(0x8,_0x58b648(_0x5eabfc)),g(0x9,_0x58b648(_0x3459b4))],S);const M={'id':'univer.operation.toggle-edit-history','type':_0x27e5a6['OPERATION'],'handler':_0x2bfa51=>{const _0xb2f853=_0x3ffd73,_0x13892a=_0x2bfa51[_0xb2f853(0x184)](S),_0x1b56ff=_0x2bfa51[_0xb2f853(0x184)](_0x4dd905),{unitId:_0x243c66}=_0x39536d(_0x1b56ff)||{};return _0x243c66?(_0x13892a[_0xb2f853(0x153)](_0x243c66),!0x0):!0x1;}},X={'id':'univer.operation.exit-edit-history','type':_0x27e5a6[_0x3ffd73(0x1a5)],'handler':()=>!0x0};function ee({ref:_0x5714e6,..._0x1c42cd}){const _0x3f1bdc=_0x3ffd73,{icon:_0x4dce6d,id:_0xc6104d,className:_0x207e7f,extend:_0x2689ec,..._0x3bcb44}=_0x1c42cd,_0x3eb634=(_0x3f1bdc(0x14c)+_0xc6104d+'\x20'+(_0x207e7f||''))[_0x3f1bdc(0x14e)](),_0x82befd=_0x640c4('_'+Ot());return te(_0x4dce6d,''+_0xc6104d,{'defIds':_0x4dce6d['defIds'],'idSuffix':_0x82befd[_0x3f1bdc(0x138)]},{'ref':_0x5714e6,'className':_0x3eb634,..._0x3bcb44},_0x2689ec);}function te(_0x658026,_0x1a8b9d,_0x451310,_0x29df4d,_0x57146a){const _0x18d850=_0x3ffd73;return _0x1fb0e1(_0x658026[_0x18d850(0x194)],{'key':_0x1a8b9d,...Ht(_0x658026,_0x451310,_0x57146a),..._0x29df4d},(Mt(_0x658026,_0x451310)[_0x18d850(0x1a0)]||[])[_0x18d850(0x16c)]((_0x15420d,_0x59cbbd)=>te(_0x15420d,_0x1a8b9d+'-'+_0x658026[_0x18d850(0x194)]+'-'+_0x59cbbd,_0x451310,void 0x0,_0x57146a)));}function Ht(_0x4a3f25,_0x2d7499,_0x235e93){const _0x359261=_0x3ffd73,_0x36cad7={..._0x4a3f25['attrs']};_0x235e93!=null&&_0x235e93[_0x359261(0x18e)]&&_0x36cad7[_0x359261(0x14d)]==='colorChannel1'&&(_0x36cad7[_0x359261(0x14d)]=_0x235e93[_0x359261(0x18e)]),_0x4a3f25['tag']===_0x359261(0x18a)&&_0x36cad7['id']&&(_0x36cad7['id']=_0x36cad7['id']+_0x2d7499[_0x359261(0x156)]),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0xf40158,_0x31b74f])=>{const _0x55bc64=_0x359261;_0xf40158===_0x55bc64(0x18a)&&typeof _0x31b74f==_0x55bc64(0x17c)&&(_0x36cad7[_0xf40158]=_0x31b74f[_0x55bc64(0x169)](/url\(#(.*)\)/,_0x55bc64(0x141)+_0x2d7499[_0x55bc64(0x156)]+')'));});const {defIds:_0xf9493b}=_0x2d7499;return!_0xf9493b||_0xf9493b[_0x359261(0x11a)]===0x0||(_0x4a3f25[_0x359261(0x194)]===_0x359261(0x145)&&_0x36cad7['xlink:href']&&(_0x36cad7['xlink:href']=_0x36cad7['xlink:href']+_0x2d7499['idSuffix']),Object['entries'](_0x36cad7)[_0x359261(0x17a)](([_0x28e805,_0x27f5f9])=>{const _0x35c0b1=_0x359261;typeof _0x27f5f9==_0x35c0b1(0x17c)&&(_0x36cad7[_0x28e805]=_0x27f5f9[_0x35c0b1(0x169)](/url\(#(.*)\)/,_0x35c0b1(0x141)+_0x2d7499['idSuffix']+')'));})),_0x36cad7;}function Mt(_0x5f26e3,_0x564cb8){const _0x5e09bd=_0x3ffd73;var _0x169ada;const {defIds:_0x124785}=_0x564cb8;return!_0x124785||_0x124785['length']===0x0?_0x5f26e3:_0x5f26e3[_0x5e09bd(0x194)]===_0x5e09bd(0x15f)&&((_0x169ada=_0x5f26e3[_0x5e09bd(0x1a0)])!=null&&_0x169ada[_0x5e09bd(0x11a)])?{..._0x5f26e3,'children':_0x5f26e3[_0x5e09bd(0x1a0)]['map'](_0x14abfc=>typeof _0x14abfc[_0x5e09bd(0x158)]['id']==_0x5e09bd(0x17c)&&_0x124785&&_0x124785[_0x5e09bd(0x135)](_0x14abfc[_0x5e09bd(0x158)]['id'])?{..._0x14abfc,'attrs':{..._0x14abfc[_0x5e09bd(0x158)],'id':_0x14abfc['attrs']['id']+_0x564cb8['idSuffix']}}:_0x14abfc)}:_0x5f26e3;}function _0x5273(){const _0x4d660e=['historyUniver$','children','history-icon_clip0_907_281','historyAIassistantEnabled','_collaborationController','workerURL','OPERATION','darkMode$','has','editHistory.panel.reverting','editHistory.panel.revertFailed','200940ZMMfkg','mutations','getUnitId','next','getSheetId','_initListener','_urlService','_messageService','_updateSubUnitFromURLParams','onSteady','onStarting','UNIVER_PROJECT','historyUniver','100%','getLocales','state$','none','symbol','1400378xbfkky','executeCommand','dispose','_internalWebWorker','2129529SQyzwy','getSheetBySheetId','triggerLoadVersions','unMountHistoryContent','setDarkMode','event$','HistoryIcon','permissionId','disposeUnit','_localCacheService','getActiveSheet','_handleRevertAcknowledgement','length','_univerInstanceService','type','triggerCustomVersions','url(#history-icon_clip0_907_281)','_themeService','activeSheet$','getAllPlugins','defineProperty','session','UNIVER_UNKNOWN','M0\x200H16V16H0z','getSubunitRuleList','_setupSubUnitSync','style','Entered','_localeService','_injector','path','invoke','close','set','substring','show','disposeWithMe','1em','status$','includes','_revertErrorTimer','getCurrentLocale','current','zIndex','_historyManagerService','pipe','value','UNIVER_SHEET','Error','register','revertRevision$','url(#$1','2820315SwbxbC','editHistory.panel.listFetchError','_initUniver','use','createElement','history-icon','_componentManager','eventID','_dataLoaderService','registerCommand','univerjs-icon\x20univerjs-icon-','fill','trim','getConfig','editHistory.info.initializing','setTheme','1116816LFcuHE','mountHistoryContent','loadUnit','historyPanelHidden','idSuffix','_permissionService','attrs','getParam','_disposableCollection','_checkCanRevert','_historyUniver$','_selectionProtectionRuleModel','edit-history-loader.config','defs','some','svg','_configService','menu','clear','onCommandExecuted','OTHERS','univer-container','_commandService','replace','dispose$','values','map','_sidebarService','white','historyPanelComponentKey','left','random','whenReady','then','_initContainer','pluginName','UNIVER_SLIDE','getElementById','_updateURLWithCurrentState','asObservable','forEach','reload','string','getOwnPropertyDescriptor','dataset','9482664DgwzPA','_pluginMap','top','toString','_init','get','364430exgWtY','location','setParam','subunit','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mask','getUnit','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','position','colorChannel1','absolute','126bBMFZv','_initPlugins','__getInjector','display','tag','setConfig','BUTTON','terminate','UNRECOGNIZED','data','_config','subscribe','registerPlugin','height','_dialogService'];_0x5273=function(){return _0x4d660e;};return _0x5273();}function Ot(){const _0x19e1a3=_0x3ffd73;return Math[_0x19e1a3(0x171)]()[_0x19e1a3(0x182)](0x24)[_0x19e1a3(0x130)](0x2,0x8);}ee['displayName']='UniverIcon';const wt={'tag':_0x3ffd73(0x161),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ffd73(0x1ba),'viewBox':'0\x200\x2016\x2016','width':_0x3ffd73(0x133),'height':_0x3ffd73(0x133)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x3ffd73(0x11e)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'d':_0x3ffd73(0x18c)}},{'tag':_0x3ffd73(0x12c),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3ffd73(0x1a1)},'children':[{'tag':_0x3ffd73(0x12c),'attrs':{'fill':_0x3ffd73(0x16e),'d':_0x3ffd73(0x125)}}]}]}],'defIds':[_0x3ffd73(0x1a1)]},ie=_0x437a7a(function(_0x2f8f3b,_0x9a2bc2){const _0x307558=_0x3ffd73;return _0x1fb0e1(ee,Object['assign']({},_0x2f8f3b,{'id':_0x307558(0x147),'ref':_0x9a2bc2,'icon':wt}));});ie['displayName']=_0x3ffd73(0x114);var R=(_0x19771a=>(_0x19771a[_0x19771a['UNIVER_UNKNOWN']=0x0]=_0x3ffd73(0x124),_0x19771a[_0x19771a['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x19771a[_0x19771a['UNIVER_SHEET']=0x2]=_0x3ffd73(0x13d),_0x19771a[_0x19771a[_0x3ffd73(0x176)]=0x3]=_0x3ffd73(0x176),_0x19771a[_0x19771a[_0x3ffd73(0x1b5)]=0x4]='UNIVER_PROJECT',_0x19771a[_0x19771a['UNRECOGNIZED']=-0x1]=_0x3ffd73(0x198),_0x19771a))(R||{});function Dt(_0xa7e79d){const _0x57f6cf=_0x3ffd73;return{'id':M['id'],'type':_0x3cf949[_0x57f6cf(0x196)],'icon':_0x57f6cf(0x114),'tooltip':'editHistory.panel.title','hidden$':_0x459696(_0xa7e79d,_0x825b22[_0x57f6cf(0x13d)]),'disabled$':_0x18a775(_0xa7e79d,{'workbookTypes':[_0x19decb,_0x57174b],'worksheetTypes':[],'rangeTypes':[]})};}const Tt={[_0x26f57a[_0x3ffd73(0x166)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Dt}}};var $t=Object[_0x3ffd73(0x17d)],xt=(_0x3f4154,_0xb9b7e,_0x3b51ae,_0x30cd30)=>{const _0x3715d4=_0x3ffd73;for(var _0x5eeec4=_0x30cd30>0x1?void 0x0:_0x30cd30?$t(_0xb9b7e,_0x3b51ae):_0xb9b7e,_0x736143=_0x3f4154[_0x3715d4(0x11a)]-0x1,_0x391de3;_0x736143>=0x0;_0x736143--)(_0x391de3=_0x3f4154[_0x736143])&&(_0x5eeec4=_0x391de3(_0x5eeec4)||_0x5eeec4);return _0x5eeec4;},h=(_0x501a6a,_0x5ab9da)=>(_0x3d767a,_0x38aacf)=>_0x5ab9da(_0x3d767a,_0x38aacf,_0x501a6a);let I=class extends _0x1f9c27{constructor(_0x23556c,_0x12a6d8,_0x1b196a,_0x3237b8,_0x3493c9,_0x56aed4,_0x493bfb,_0x439752,_0x4befeb,_0x578bf4,_0x4f3af8){const _0x1fa09d=_0x3ffd73;super(),d(this,'_revertErrorTimer',null),(this['_commandService']=_0x23556c,this['_menuManagerService']=_0x12a6d8,this['_componentManager']=_0x1b196a,this[_0x1fa09d(0x13a)]=_0x3237b8,this[_0x1fa09d(0x12a)]=_0x3493c9,this['_messageService']=_0x56aed4,this['_collaborationController']=_0x493bfb,this[_0x1fa09d(0x117)]=_0x439752,this[_0x1fa09d(0x14a)]=_0x4befeb,this[_0x1fa09d(0x11b)]=_0x578bf4,this[_0x1fa09d(0x1b0)]=_0x4f3af8,this[_0x1fa09d(0x183)]());}[_0x3ffd73(0x183)](){const _0x2602ee=_0x3ffd73;[M,X][_0x2602ee(0x17a)](_0x1b9147=>this[_0x2602ee(0x132)](_0x2da9e6(this[_0x2602ee(0x168)][_0x2602ee(0x14b)](_0x1b9147)))),this[_0x2602ee(0x132)](this[_0x2602ee(0x148)][_0x2602ee(0x13f)](_0x2602ee(0x114),ie)),this['_menuManagerService']['mergeMenu'](Tt),this[_0x2602ee(0x132)](this[_0x2602ee(0x168)][_0x2602ee(0x165)](async(_0x3a0062,_0x2d179e)=>{const _0x4b928d=_0x2602ee;if(_0x3a0062['id']===_0x30981a['id']){const {unitId:_0x22f5d3}=_0x3a0062['params'];this[_0x4b928d(0x1b1)][_0x4b928d(0x131)]({'content':this['_localeService']['t'](_0x4b928d(0x1a8)),'type':_0x203d72['Loading'],'duration':0x1388});const _0x5f580e=this[_0x4b928d(0x1a3)]['getCollabEntity'](_0x22f5d3);(_0x2d179e==null?void 0x0:_0x2d179e['fromCollab'])?this['_handleRevertAcknowledgement'](_0x5f580e,async()=>(setTimeout(()=>window[_0x4b928d(0x186)][_0x4b928d(0x17b)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x5f580e,async()=>{const _0xd65268=_0x4b928d,_0x17365=this[_0xd65268(0x11b)]['getCurrentUnitOfType'](R['UNIVER_SHEET']),_0x28114c=_0x17365==null?void 0x0:_0x17365['getActiveSheet']();if(!_0x28114c)return!0x1;this[_0xd65268(0x11b)][_0xd65268(0x116)](_0x22f5d3);const _0x21bded=await this[_0xd65268(0x14a)][_0xd65268(0x154)](_0x22f5d3,R[_0xd65268(0x13d)]);return _0x21bded&&_0x21bded instanceof _0x16a53b?(await this[_0xd65268(0x127)](_0x21bded,_0x28114c['getSheetId']()),!0x0):!0x1;});}}));}[_0x3ffd73(0x119)](_0x4d5ebd,_0x562575,_0x4b9973=!0x1){const _0x29c8b4=_0x3ffd73,_0x5d0e99=_0x506c72([_0x4d5ebd[_0x29c8b4(0x123)][_0x29c8b4(0x113)],_0x4d5ebd[_0x29c8b4(0x1b9)]])[_0x29c8b4(0x19b)](async([_0x4ea7d1,_0x1fe945])=>{const _0x2fba02=_0x29c8b4;var _0x1d57e3;_0x4ea7d1[_0x2fba02(0x149)]===_0x22a7eb['CHANGESET_ACK']&&(_0x1fe945==null?void 0x0:_0x1fe945['status'])===_0x1cbf13['SYNCED']&&_0x4ea7d1[_0x2fba02(0x199)][_0x2fba02(0x1ab)][_0x2fba02(0x160)](_0x438b8f=>_0x438b8f['id']===_0x30981a['id'])&&await _0x562575()&&(this['_historyManagerService']['unMountHistoryContent'](),_0x5d0e99['unsubscribe'](),this[_0x2fba02(0x136)]&&clearTimeout(this[_0x2fba02(0x136)]),await((_0x1d57e3=this[_0x2fba02(0x117)])==null?void 0x0:_0x1d57e3['exhaustSavingTask']()));});_0x4b9973&&(this[_0x29c8b4(0x136)]=setTimeout(()=>{const _0x2497a9=_0x29c8b4;_0x5d0e99['unsubscribe'](),this[_0x2497a9(0x1b1)]['show']({'content':this[_0x2497a9(0x12a)]['t'](_0x2497a9(0x1a9)),'type':_0x203d72[_0x2497a9(0x13e)],'duration':0xbb8});},0x1388));}async[_0x3ffd73(0x127)](_0x5534ab,_0x2771f3){const _0x5de54e=_0x3ffd73;await this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3),_0x5534ab[_0x5de54e(0x120)][_0x5de54e(0x13b)](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](_0x187525=>{const _0x5c8b14=_0x5de54e;_0x187525&&this[_0x5c8b14(0x178)](_0x187525);}),this[_0x5de54e(0x1b0)]['urlChange$']['pipe'](_0x2a74f7(this[_0x5de54e(0x16a)]))[_0x5de54e(0x19b)](()=>this[_0x5de54e(0x1b2)](_0x5534ab,_0x2771f3));}[_0x3ffd73(0x178)](_0x529d25,_0x530bf6=!0x1){const _0x3d0c68=_0x3ffd73,_0x431a15=this[_0x3d0c68(0x1b0)][_0x3d0c68(0x159)](_0x3d0c68(0x188));_0x529d25[_0x3d0c68(0x1ae)]()!==_0x431a15&&this[_0x3d0c68(0x1b0)][_0x3d0c68(0x187)](_0x3d0c68(0x188),_0x529d25[_0x3d0c68(0x1ae)](),_0x530bf6);}async[_0x3ffd73(0x1b2)](_0x379d08,_0x4a61d9){const _0x136b9b=_0x3ffd73;var _0x47efdc;if(!_0x4a61d9||!_0x379d08[_0x136b9b(0x10f)](_0x4a61d9)){const _0x29e1d4=_0x379d08['getUnhiddenWorksheets']()[0x0],_0x341a06=_0x379d08[_0x136b9b(0x10f)](_0x29e1d4);if(!_0x341a06)return;this['_updateURLWithCurrentState'](_0x341a06,!0x0),await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x29e1d4});return;}((_0x47efdc=_0x379d08[_0x136b9b(0x118)]())==null?void 0x0:_0x47efdc['getSheetId']())!==_0x4a61d9&&await this[_0x136b9b(0x168)][_0x136b9b(0x1bd)](_0x355c1a['id'],{'unitId':_0x379d08[_0x136b9b(0x1ac)](),'subUnitId':_0x4a61d9});}};I=xt([h(0x0,_0x48a5ee),h(0x1,_0x3c4660),h(0x2,_0x58b648(_0x412f6e)),h(0x3,_0x58b648(S)),h(0x4,_0x58b648(_0x337530)),h(0x5,_0x58c51e),h(0x6,_0x58b648(_0x2d54a4)),h(0x7,_0x35c5c9),h(0x8,_0x58b648(_0x42cdd9)),h(0x9,_0x4dd905),h(0xa,_0x556266)],I);var At=Object[_0x3ffd73(0x122)],Vt=Object[_0x3ffd73(0x17d)],Wt=(_0x1a45cf,_0x43dd77,_0x456ec3)=>_0x43dd77 in _0x1a45cf?At(_0x1a45cf,_0x43dd77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456ec3}):_0x1a45cf[_0x43dd77]=_0x456ec3,kt=(_0x4fc994,_0x46664d,_0xde63cf,_0xfad37f)=>{const _0x5d8fee=_0x3ffd73;for(var _0xbfec4c=_0xfad37f>0x1?void 0x0:_0xfad37f?Vt(_0x46664d,_0xde63cf):_0x46664d,_0x12f217=_0x4fc994[_0x5d8fee(0x11a)]-0x1,_0x32411a;_0x12f217>=0x0;_0x12f217--)(_0x32411a=_0x4fc994[_0x12f217])&&(_0xbfec4c=_0x32411a(_0xbfec4c)||_0xbfec4c);return _0xbfec4c;},j=(_0x51e09e,_0x42196b)=>(_0x4dcd19,_0x20cc96)=>_0x42196b(_0x4dcd19,_0x20cc96,_0x51e09e),re=(_0x35bd77,_0x40f876,_0x1e0fe0)=>Wt(_0x35bd77,typeof _0x40f876!=_0x3ffd73(0x1bb)?_0x40f876+'':_0x40f876,_0x1e0fe0);const Ft=_0x3ffd73(0x189);let y=class extends _0x5531b9{constructor(_0x3f8626=F,_0x1447d1,_0x2a892d){const _0x515133=_0x3ffd73;super(),this[_0x515133(0x19a)]=_0x3f8626,this[_0x515133(0x12b)]=_0x1447d1,this[_0x515133(0x162)]=_0x2a892d;const {menu:_0x375a79,..._0x3d3d22}=_0x1d80b8({},F,this['_config']);_0x375a79&&this[_0x515133(0x162)]['setConfig'](_0x515133(0x163),_0x375a79,{'merge':!0x0}),this[_0x515133(0x162)]['setConfig'](_,_0x3d3d22),this[_0x515133(0x19a)]['univerContainerId']&&this[_0x515133(0x162)]['setConfig'](Q,this[_0x515133(0x19a)]['univerContainerId']);}[_0x3ffd73(0x1b4)](){const _0x386519=_0x3ffd73;[[S],[I]][_0x386519(0x17a)](_0x472c54=>this[_0x386519(0x12b)]['add'](_0x472c54));}[_0x3ffd73(0x1b3)](){const _0x169f5e=_0x3ffd73;this[_0x169f5e(0x12b)]['get'](I);}};re(y,_0x3ffd73(0x11c),_0x825b22[_0x3ffd73(0x124)]),re(y,_0x3ffd73(0x175),Ft),y=kt([_0x25541b(_0x452992),j(0x1,_0x58b648(_0x405c21)),j(0x2,_0x531b81)],y);function _0x1b09(_0x2e5a59,_0x51f6e5){_0x2e5a59=_0x2e5a59-0x10c;const _0x52735f=_0x5273();let _0x1b0956=_0x52735f[_0x2e5a59];return _0x1b0956;}export{_ as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,S as HistoryLoaderService,M as ToggleEditHistoryOperation,Q as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,y as UniverEditHistoryLoaderPlugin};
|
|
@@ -12,5 +12,26 @@ export interface IUniverEditHistoryLoaderConfig {
|
|
|
12
12
|
historyPanelComponentKey?: string;
|
|
13
13
|
historyPanelHidden?: boolean;
|
|
14
14
|
historyAIassistantEnabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The Web Worker used in edit history.
|
|
17
|
+
* If the workerURL is provided and workerURL is a Worker instance, it will be destroyed when history is closed.
|
|
18
|
+
* So a new Worker instance need to be created when history is opened again. For example:
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY, ToggleEditHistoryOperation } from '@univerjs-pro/edit-history-loader';
|
|
21
|
+
*
|
|
22
|
+
* univerAPI.addEvent(univerAPI.Event.BeforeCommandExecute, (event) => {
|
|
23
|
+
* if (event.id === ToggleEditHistoryOperation.id) {
|
|
24
|
+
* const workerURL = new Worker(new URL('./worker.ts', import.meta.url));
|
|
25
|
+
* const configService = univer.__getInjector().get(IConfigService);
|
|
26
|
+
* configService.setConfig(EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY, {
|
|
27
|
+
* workerURL,
|
|
28
|
+
* });
|
|
29
|
+
* }
|
|
30
|
+
* });
|
|
31
|
+
*
|
|
32
|
+
* If the workerURL is a string or URL, no additional processing is required.
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
workerURL?: string | URL | Worker;
|
|
15
36
|
}
|
|
16
37
|
export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { ToggleEditHistoryOperation } from './command/history.operate';
|
|
1
2
|
export type { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
3
|
+
export { EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
|
2
4
|
export { UniverEditHistoryLoaderPlugin } from './plugin';
|
|
3
5
|
export { HistoryLoaderService } from './services/history-loader.service';
|
|
4
6
|
export { UNIVER_CONTAINER_ID_KEY, UNIVER_HISTORY_CONTAINER_ID } from './services/history-loader.service';
|
|
@@ -19,6 +19,7 @@ export declare class HistoryLoaderService extends Disposable {
|
|
|
19
19
|
readonly historyUniver$: import('rxjs').Observable<Univer | null>;
|
|
20
20
|
private _disposableCollection;
|
|
21
21
|
private _pluginMap;
|
|
22
|
+
private _internalWebWorker;
|
|
22
23
|
constructor(_localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService, _themeService: ThemeService);
|
|
23
24
|
get historyUniver(): Univer | null;
|
|
24
25
|
private _init;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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();}
|
|
1
|
+
(function(_0x521a29,_0x212ab7){const _0x5a8a1a=_0x210c,_0xe5d8a6=_0x521a29();while(!![]){try{const _0x434e5f=-parseInt(_0x5a8a1a(0x1da))/0x1+parseInt(_0x5a8a1a(0x26e))/0x2+-parseInt(_0x5a8a1a(0x215))/0x3+-parseInt(_0x5a8a1a(0x297))/0x4*(-parseInt(_0x5a8a1a(0x213))/0x5)+-parseInt(_0x5a8a1a(0x256))/0x6+parseInt(_0x5a8a1a(0x2fc))/0x7*(-parseInt(_0x5a8a1a(0x2a6))/0x8)+-parseInt(_0x5a8a1a(0x21f))/0x9*(-parseInt(_0x5a8a1a(0x1eb))/0xa);if(_0x434e5f===_0x212ab7)break;else _0xe5d8a6['push'](_0xe5d8a6['shift']());}catch(_0x5631a1){_0xe5d8a6['push'](_0xe5d8a6['shift']());}}}(_0x446c,0xa39d9),function(_0x54b2ab,_0x441af0){const _0x45c28b=_0x210c;typeof exports==_0x45c28b(0x269)&&typeof module<'u'?_0x441af0(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-shape'),require('@univerjs-pro/sheets-shape-ui'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/design'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-table'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('rxjs'),require('@univerjs-pro/collaboration-client-ui'),require('react')):typeof define==_0x45c28b(0x2d8)&&define['amd']?define([_0x45c28b(0x249),_0x45c28b(0x1b9),_0x45c28b(0x2c7),_0x45c28b(0x2a0),_0x45c28b(0x206),_0x45c28b(0x207),'@univerjs-pro/license',_0x45c28b(0x27a),_0x45c28b(0x205),_0x45c28b(0x24c),_0x45c28b(0x2f3),_0x45c28b(0x281),_0x45c28b(0x23f),_0x45c28b(0x210),_0x45c28b(0x2b7),_0x45c28b(0x1b3),_0x45c28b(0x1f4),_0x45c28b(0x1d6),_0x45c28b(0x250),_0x45c28b(0x25a),_0x45c28b(0x27b),_0x45c28b(0x2ae),'@univerjs/network',_0x45c28b(0x2b6),_0x45c28b(0x26a),'@univerjs/sheets-conditional-formatting-ui',_0x45c28b(0x1cc),'@univerjs/sheets-data-validation-ui',_0x45c28b(0x1b4),'@univerjs/sheets-drawing-ui',_0x45c28b(0x2c9),_0x45c28b(0x2e8),_0x45c28b(0x2a9),_0x45c28b(0x1c7),_0x45c28b(0x23a),'@univerjs/sheets-hyper-link-ui',_0x45c28b(0x1c1),_0x45c28b(0x241),'@univerjs/sheets-ui',_0x45c28b(0x21a),_0x45c28b(0x1f9),_0x45c28b(0x299),_0x45c28b(0x223)],_0x441af0):(_0x54b2ab=typeof globalThis<'u'?globalThis:_0x54b2ab||self,_0x441af0(_0x54b2ab[_0x45c28b(0x1fb)]={},_0x54b2ab[_0x45c28b(0x295)],_0x54b2ab['UniverSheets'],_0x54b2ab[_0x45c28b(0x29a)],_0x54b2ab['UniverProCollaborationClient'],_0x54b2ab[_0x45c28b(0x1e6)],_0x54b2ab[_0x45c28b(0x2fa)],_0x54b2ab['UniverProSheetsChart'],_0x54b2ab[_0x45c28b(0x1f5)],_0x54b2ab[_0x45c28b(0x2b2)],_0x54b2ab[_0x45c28b(0x286)],_0x54b2ab[_0x45c28b(0x298)],_0x54b2ab[_0x45c28b(0x233)],_0x54b2ab['UniverProSheetsSparklineUi'],_0x54b2ab[_0x45c28b(0x22b)],_0x54b2ab[_0x45c28b(0x1d5)],_0x54b2ab[_0x45c28b(0x244)],_0x54b2ab[_0x45c28b(0x2e9)],_0x54b2ab[_0x45c28b(0x1df)],_0x54b2ab[_0x45c28b(0x1e3)],_0x54b2ab[_0x45c28b(0x2af)],_0x54b2ab[_0x45c28b(0x2bd)],_0x54b2ab[_0x45c28b(0x1e4)],_0x54b2ab['UniverRpc'],_0x54b2ab[_0x45c28b(0x21e)],_0x54b2ab[_0x45c28b(0x292)],_0x54b2ab['UniverSheetsDataValidation'],_0x54b2ab[_0x45c28b(0x2ed)],_0x54b2ab[_0x45c28b(0x20f)],_0x54b2ab['UniverSheetsDrawingUi'],_0x54b2ab[_0x45c28b(0x1bb)],_0x54b2ab[_0x45c28b(0x1bc)],_0x54b2ab[_0x45c28b(0x2c6)],_0x54b2ab[_0x45c28b(0x1d0)],_0x54b2ab[_0x45c28b(0x27c)],_0x54b2ab['UniverSheetsHyperLinkUi'],_0x54b2ab[_0x45c28b(0x259)],_0x54b2ab[_0x45c28b(0x1e9)],_0x54b2ab[_0x45c28b(0x2c0)],_0x54b2ab[_0x45c28b(0x262)],_0x54b2ab[_0x45c28b(0x1f9)],_0x54b2ab[_0x45c28b(0x290)],_0x54b2ab['React']));}(this,function(_0x56f7a6,_0x4c3f3f,_0x175618,_0x3f6b06,_0x3934c2,_0x175e35,_0xc1e4c3,_0x4e2aa0,_0x5d9300,_0x4bc006,_0x22d553,_0x2b81a8,_0x40b35f,_0xe3f61f,_0x4c7dc3,_0x33f435,_0x303967,_0x360e17,_0x7eac73,_0x4db4d6,_0x18c79c,_0x4affef,_0x33ba42,_0x2bf563,_0x370bec,_0x16915b,_0x5d2548,_0x56defc,_0xf68b5a,_0x503533,_0xb8ebc7,_0x4916ce,_0x2c11d8,_0x49b0c3,_0x195416,_0x2b13a7,_0x21add9,_0x558c62,_0x47d3a5,_0xce0520,_0x35922f,_0x4db9cb,_0x4f7dcf){'use strict';const _0x223a81=_0x210c;var _0x2daefb=Object[_0x223a81(0x226)],_0x14be7b=(_0x41e157,_0x500eb1,_0x3d0b79)=>_0x500eb1 in _0x41e157?_0x2daefb(_0x41e157,_0x500eb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d0b79}):_0x41e157[_0x500eb1]=_0x3d0b79,_0x624104=(_0xe809a5,_0x52c074,_0x55da6b)=>_0x14be7b(_0xe809a5,typeof _0x52c074!=_0x223a81(0x25f)?_0x52c074+'':_0x52c074,_0x55da6b);const _0x556b86=_0x223a81(0x2ca),_0x3c92e0={};var _0x315faa=Object[_0x223a81(0x1fe)],_0x1283b5=(_0xbaf27,_0x3b4d37,_0x3acae0,_0x302de6)=>{const _0x84844e=_0x223a81;for(var _0x304b7e=_0x302de6>0x1?void 0x0:_0x302de6?_0x315faa(_0x3b4d37,_0x3acae0):_0x3b4d37,_0x480fac=_0xbaf27[_0x84844e(0x24f)]-0x1,_0x3e4c0c;_0x480fac>=0x0;_0x480fac--)(_0x3e4c0c=_0xbaf27[_0x480fac])&&(_0x304b7e=_0x3e4c0c(_0x304b7e)||_0x304b7e);return _0x304b7e;},_0x1d5826=(_0x2950c7,_0x12d1fc)=>(_0xeaaa73,_0x22a5ee)=>_0x12d1fc(_0xeaaa73,_0x22a5ee,_0x2950c7);const _0x1e71f3='univer-container',_0x433081='UNIVER_CONTAINER_ID',_0x32d320='univer-history-container';_0x56f7a6[_0x223a81(0x1dd)]=class extends _0x4c3f3f[_0x223a81(0x1cb)]{constructor(_0x53514f,_0x57c446,_0x171f24,_0x30449e,_0x492d26,_0x1ded54,_0x284d5,_0xee3e6,_0xbeaa1e,_0x4a90e8){const _0x5594cb=_0x223a81;super(),_0x624104(this,'_historyUniver$',new _0x35922f[(_0x5594cb(0x2d9))](null)),_0x624104(this,'historyUniver$',this['_historyUniver$'][_0x5594cb(0x1d7)]()),_0x624104(this,'_disposableCollection',new _0x4c3f3f[(_0x5594cb(0x1e0))]()),_0x624104(this,_0x5594cb(0x21b),new Map()),_0x624104(this,_0x5594cb(0x2a4),null),(this['_localeService']=_0x53514f,this['_univerInstanceService']=_0x57c446,this[_0x5594cb(0x1d2)]=_0x171f24,this[_0x5594cb(0x2f7)]=_0x30449e,this[_0x5594cb(0x1fa)]=_0x492d26,this['_permissionService']=_0x1ded54,this['_selectionProtectionRuleModel']=_0x284d5,this['_dialogService']=_0xee3e6,this['_sidebarService']=_0xbeaa1e,this['_themeService']=_0x4a90e8,this[_0x5594cb(0x2f2)]());}get[_0x223a81(0x2ba)](){const _0x3af989=_0x223a81;return this[_0x3af989(0x220)][_0x3af989(0x274)];}[_0x223a81(0x2f2)](){const _0x2a40cf=_0x223a81;this[_0x2a40cf(0x1d4)](),this[_0x2a40cf(0x282)]();}[_0x223a81(0x1d4)](){const _0x2414c6=_0x223a81;var _0x4c1a6c;const _0x2aa363=(_0x4c1a6c=this[_0x2414c6(0x1d2)][_0x2414c6(0x2b3)](_0x433081))!=null?_0x4c1a6c:_0x1e71f3,_0x4232fc=document[_0x2414c6(0x255)](_0x2aa363);if(!_0x4232fc)return;const _0xa44dc2=document[_0x2414c6(0x219)](_0x2414c6(0x20b));_0xa44dc2['id']=_0x32d320,_0xa44dc2[_0x2414c6(0x24e)][_0x2414c6(0x2c3)]=_0x2414c6(0x2c5),_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x1f6)]=_0x2414c6(0x25d),_0xa44dc2[_0x2414c6(0x2ac)]['top']='0',_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x2bf)]='0',_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x2a8)]=_0x2414c6(0x1fc),_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x2c2)]=_0x2414c6(0x1fc),_0xa44dc2[_0x2414c6(0x2ac)]['zIndex']='49',_0xa44dc2[_0x2414c6(0x2ac)][_0x2414c6(0x247)]=_0x2414c6(0x291),_0x4232fc['appendChild'](_0xa44dc2);}[_0x223a81(0x282)](){const _0x5570df=_0x223a81;[[_0x4affef[_0x5570df(0x301)]],[_0xce0520[_0x5570df(0x26b)],{'container':_0x32d320,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xce0520[_0x5570df(0x2d1)],null]]}],[_0x33ba42[_0x5570df(0x260)]],[_0x7eac73[_0x5570df(0x1f1)],{'override':[[_0x7eac73[_0x5570df(0x2e7)],null]]}],[_0x303967[_0x5570df(0x1b5)],{'hasScroll':!0x1}],[_0x360e17['UniverDocsUIPlugin']],[_0x21add9['UniverSheetsNumfmtPlugin']],[_0x175618[_0x5570df(0x1bd)],{'notExecuteFormula':!0x0}],[_0x47d3a5[_0x5570df(0x2fb)]],[_0x2c11d8[_0x5570df(0x28d)]],[_0x49b0c3['UniverSheetsFormulaUIPlugin']],[_0x3f6b06[_0x5570df(0x209)]],[_0xb8ebc7['UniverSheetsFilterPlugin']],[_0x4916ce['UniverSheetsFilterUIPlugin']],[_0x370bec[_0x5570df(0x1d3)]],[_0x16915b[_0x5570df(0x2c8)]],[_0x195416['UniverSheetsHyperLinkPlugin']],[_0x2b13a7['UniverSheetsHyperLinkUIPlugin']],[_0x4c7dc3[_0x5570df(0x251)]],[_0x5d2548[_0x5570df(0x2bb)]],[_0x56defc[_0x5570df(0x1bf)]],[_0x18c79c[_0x5570df(0x2b5)],{'notExecuteFormula':!0x0}],[_0x4db4d6[_0x5570df(0x267)]],[_0xf68b5a[_0x5570df(0x237)]],[_0x503533['UniverSheetsDrawingUIPlugin']],[_0x40b35f[_0x5570df(0x1de)]],[_0xe3f61f[_0x5570df(0x2e6)]],[_0x4e2aa0['UniverSheetsChartPlugin']],[_0x5d9300['UniverSheetsChartUIPlugin']],[_0x22d553['UniverSheetsShapePlugin']],[_0x2b81a8[_0x5570df(0x200)]],[_0x4bc006[_0x5570df(0x2df)],{'notExecuteFormula':!0x0}],[_0x558c62['UniverSheetsTablePlugin']]][_0x5570df(0x284)](([_0x359189,_0x3a3146])=>this[_0x5570df(0x2fd)](_0x359189,_0x3a3146));}[_0x223a81(0x1be)](){const _0x5d72bd=_0x223a81;super['dispose'](),this[_0x5d72bd(0x2ad)](),this[_0x5d72bd(0x21b)]['clear']();}[_0x223a81(0x2fd)](_0x32ae0f,_0x500aab,_0xe98d5e){const _0x41569a=_0x223a81;if(this[_0x41569a(0x21b)][_0x41569a(0x1c3)](_0x32ae0f[_0x41569a(0x20e)])&&!_0xe98d5e)throw new Error(_0x41569a(0x235)+_0x32ae0f['pluginName']+_0x41569a(0x204));this[_0x41569a(0x21b)]['set'](_0x32ae0f[_0x41569a(0x20e)],[_0x32ae0f,_0x500aab]);}[_0x223a81(0x1e7)](){const _0x12ac7c=_0x223a81;return Array[_0x12ac7c(0x300)](this[_0x12ac7c(0x21b)][_0x12ac7c(0x225)]());}['mountHistoryContent'](_0x43b96c,_0x10773a){const _0x44b77c=_0x223a81,_0xfac3ec=document[_0x44b77c(0x255)](_0x32d320);_0xfac3ec&&(_0xfac3ec[_0x44b77c(0x2ac)]['display']=_0x44b77c(0x24d),this['_initUniver'](_0x43b96c,_0x32d320,_0x10773a));}['unMountHistoryContent'](){const _0x2a1ff0=_0x223a81;var _0x5e9c54;this[_0x2a1ff0(0x23e)][_0x2a1ff0(0x1be)](),(_0x5e9c54=this[_0x2a1ff0(0x2ba)])==null||_0x5e9c54[_0x2a1ff0(0x1be)](),this[_0x2a1ff0(0x220)]['next'](null);const _0x2f6a5d=document[_0x2a1ff0(0x255)](_0x32d320);_0x2f6a5d&&(_0x2f6a5d[_0x2a1ff0(0x2ac)]['display']=_0x2a1ff0(0x291),this[_0x2a1ff0(0x2a4)]&&(this[_0x2a1ff0(0x2a4)]['terminate'](),this[_0x2a1ff0(0x2a4)]=null));}[_0x223a81(0x2de)](_0x1e9b0a,_0x2ac9c2,_0x30f3e8){const _0x4831e2=_0x223a81;var _0x4e07b5,_0x504f58,_0x236885,_0x1662cf,_0x55c648;if(this[_0x4831e2(0x2ba)])return;const _0x464ed5=new _0x4c3f3f[(_0x4831e2(0x2a2))]({'locales':{[this[_0x4831e2(0x2cf)]['getCurrentLocale']()]:this[_0x4831e2(0x2cf)][_0x4831e2(0x2cc)]()},'override':[[_0x4c3f3f[_0x4831e2(0x2be)],{'useClass':_0x3934c2[_0x4831e2(0x242)]}]]}),_0x3b51bd=_0x464ed5[_0x4831e2(0x26d)]();this[_0x4831e2(0x265)](this[_0x4831e2(0x264)]['darkMode$'][_0x4831e2(0x1fd)](_0x439d06=>{const _0x3e9753=_0x4831e2;_0x3b51bd[_0x3e9753(0x271)](_0x4c3f3f['ThemeService'])['setDarkMode'](_0x439d06);})),this[_0x4831e2(0x265)](this['_themeService'][_0x4831e2(0x2d7)][_0x4831e2(0x1fd)](_0x57b4c3=>{const _0x42287f=_0x4831e2;_0x3b51bd[_0x42287f(0x271)](_0x4c3f3f[_0x42287f(0x2da)])['setTheme'](_0x57b4c3);})),_0x3b51bd[_0x4831e2(0x271)](_0x4c3f3f[_0x4831e2(0x2db)])['setLocale'](this[_0x4831e2(0x2cf)]['getCurrentLocale']()),_0x3b51bd[_0x4831e2(0x271)](_0x4c3f3f[_0x4831e2(0x27d)])[_0x4831e2(0x253)](_0x3934c2[_0x4831e2(0x283)],this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x3934c2[_0x4831e2(0x283)]));const _0x5e20ba=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0xc1e4c3[_0x4831e2(0x211)]);_0x5e20ba&&_0x464ed5[_0x4831e2(0x2fd)](_0xc1e4c3[_0x4831e2(0x288)],{'license':_0x5e20ba['ls']});const _0x41c996=(_0x4e07b5=this['_configService'][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x4e07b5[_0x4831e2(0x202)],_0x399f72=!!_0x41c996;_0x399f72&&(this[_0x4831e2(0x2a4)]=_0x41c996 instanceof Worker?_0x41c996:null,_0x464ed5['registerPlugin'](_0x2bf563[_0x4831e2(0x252)],{'workerURL':_0x41c996})),this[_0x4831e2(0x21b)][_0x4831e2(0x284)](([_0x530d12,_0x5f2c26])=>{_0x464ed5['registerPlugin'](_0x530d12,_0x5f2c26);}),_0x464ed5[_0x4831e2(0x2fd)](_0x175e35[_0x4831e2(0x1e2)],{'historyListServerUrl':(_0x504f58=this['_configService']['getConfig'](_0x556b86))==null?void 0x0:_0x504f58['historyListServerUrl'],'historyPanelComponentKey':(_0x236885=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x236885['historyPanelComponentKey'],'historyPanelHidden':(_0x1662cf=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x1662cf[_0x4831e2(0x2fe)],'historyAIassistantEnabled':(_0x55c648=this[_0x4831e2(0x1d2)][_0x4831e2(0x2b3)](_0x556b86))==null?void 0x0:_0x55c648['historyAIassistantEnabled']}),_0x3b51bd[_0x4831e2(0x2eb)](_0x29f654=>{this['_initListener'](_0x29f654,_0x1e9b0a);}),this[_0x4831e2(0x220)][_0x4831e2(0x2f0)](_0x464ed5);const _0x103fef=_0x3b51bd[_0x4831e2(0x271)](_0x175e35[_0x4831e2(0x221)]),_0x495a7b=this[_0x4831e2(0x203)](_0x1e9b0a),_0xd7b750=()=>{const _0x321360=_0x4831e2;_0x30f3e8?_0x103fef[_0x321360(0x287)](_0x1e9b0a,_0x2ac9c2,_0x495a7b,_0x30f3e8):_0x103fef[_0x321360(0x231)](_0x1e9b0a,_0x2ac9c2,_0x495a7b);};if(this['_messageService']['show']({'content':this[_0x4831e2(0x2cf)]['t'](_0x4831e2(0x28b)),'type':_0x33f435['MessageType'][_0x4831e2(0x261)]}),_0x399f72)try{_0x3b51bd['get'](_0x2bf563[_0x4831e2(0x1c8)])[_0x4831e2(0x254)]()[_0x4831e2(0x2ff)](()=>{_0xd7b750();});}catch{_0xd7b750();}else _0xd7b750();}[_0x223a81(0x22e)](_0x18384b,_0x3f07d9){const _0x4c3500=_0x223a81,_0x2c7cd6=_0x18384b['get'](_0x175e35[_0x4c3500(0x221)]);this[_0x4c3500(0x23e)][_0x4c3500(0x279)](_0x2c7cd6[_0x4c3500(0x29b)][_0x4c3500(0x1fd)](_0x2fb9b0=>{const _0x408465=_0x4c3500;switch(_0x2fb9b0){case _0x175e35['HistoryModeStatus'][_0x408465(0x25b)]:this['_dialogService']['closeAll'](),this[_0x408465(0x1ca)][_0x408465(0x222)]();break;case _0x175e35['HistoryModeStatus'][_0x408465(0x1ef)]:this[_0x408465(0x2f7)][_0x408465(0x2dc)](_0x2f4670['id']),this[_0x408465(0x2ad)]();break;case _0x175e35[_0x408465(0x1ec)][_0x408465(0x1ba)]:this['unMountHistoryContent'](),this[_0x408465(0x1fa)][_0x408465(0x2bc)]({'content':this[_0x408465(0x2cf)]['t'](_0x408465(0x218)),'type':_0x33f435[_0x408465(0x229)][_0x408465(0x1ba)],'duration':0xbb8});break;}})),this[_0x4c3500(0x23e)][_0x4c3500(0x279)](_0x2c7cd6[_0x4c3500(0x1cf)]['subscribe'](async _0x1373fe=>{const _0x319f2d=_0x4c3500;_0x1373fe&&this[_0x319f2d(0x2f7)][_0x319f2d(0x2dc)](_0x3f6b06[_0x319f2d(0x2d3)]['id'],{'unitId':_0x3f07d9,'revision':_0x1373fe});}));}[_0x223a81(0x203)](_0x5b26d4){const _0x43f572=_0x223a81,_0x5d9686=this[_0x43f572(0x26c)]['getUnit'](_0x5b26d4)[_0x43f572(0x23d)]()[_0x43f572(0x2c4)](_0x3fe328=>_0x3fe328['getSheetId']()),_0x35f5e6=new _0x175618[(_0x43f572(0x1cd))](_0x5b26d4)['id'],_0x25a0b6=_0x5d9686['map'](_0x30dd22=>new _0x175618[(_0x43f572(0x1f2))](_0x5b26d4,_0x30dd22)['id']),_0x453145=_0x5d9686[_0x43f572(0x2c4)](_0x183bfe=>this[_0x43f572(0x272)][_0x43f572(0x1ce)](_0x5b26d4,_0x183bfe)['map'](_0x5064d6=>new _0x175618['RangeProtectionPermissionEditPoint'](_0x5b26d4,_0x183bfe,_0x5064d6[_0x43f572(0x2e4)])['id']))['flat'](),_0x1ba5ba=new _0x175618[(_0x43f572(0x28a))](_0x5b26d4)['id'];return this[_0x43f572(0x270)][_0x43f572(0x275)]([_0x35f5e6,..._0x25a0b6,..._0x453145,_0x1ba5ba])['every'](_0xa51b82=>!!_0xa51b82[_0x43f572(0x274)]);}},_0x56f7a6[_0x223a81(0x1dd)]=_0x1283b5([_0x1d5826(0x0,_0x4c3f3f[_0x223a81(0x228)](_0x4c3f3f[_0x223a81(0x2db)])),_0x1d5826(0x1,_0x4c3f3f[_0x223a81(0x2e2)]),_0x1d5826(0x2,_0x4c3f3f[_0x223a81(0x27d)]),_0x1d5826(0x3,_0x4c3f3f['ICommandService']),_0x1d5826(0x4,_0xce0520['IMessageService']),_0x1d5826(0x5,_0x4c3f3f['IPermissionService']),_0x1d5826(0x6,_0x4c3f3f[_0x223a81(0x228)](_0x175618[_0x223a81(0x1d8)])),_0x1d5826(0x7,_0x4c3f3f[_0x223a81(0x228)](_0xce0520[_0x223a81(0x2d1)])),_0x1d5826(0x8,_0x4c3f3f[_0x223a81(0x228)](_0xce0520[_0x223a81(0x20d)])),_0x1d5826(0x9,_0x4c3f3f[_0x223a81(0x228)](_0x4c3f3f['ThemeService']))],_0x56f7a6['HistoryLoaderService']);const _0xefc74d={'id':'univer.operation.toggle-edit-history','type':_0x4c3f3f[_0x223a81(0x1c0)][_0x223a81(0x22f)],'handler':_0x4132dd=>{const _0x29b7b1=_0x223a81,_0xdb320e=_0x4132dd['get'](_0x56f7a6['HistoryLoaderService']),_0x38c8bb=_0x4132dd[_0x29b7b1(0x271)](_0x4c3f3f[_0x29b7b1(0x2e2)]),{unitId:_0x549b3f}=_0x175618['getSheetCommandTarget'](_0x38c8bb)||{};return _0x549b3f?(_0xdb320e['mountHistoryContent'](_0x549b3f),!0x0):!0x1;}},_0x2f4670={'id':_0x223a81(0x1dc),'type':_0x4c3f3f[_0x223a81(0x1c0)]['OPERATION'],'handler':()=>!0x0};function _0x363ccb({ref:_0x2b6460,..._0x432b26}){const _0xb3875f=_0x223a81,{icon:_0xfd7b8,id:_0x419e6c,className:_0x235f66,extend:_0x5a0428,..._0x435a34}=_0x432b26,_0x9b04ff=('univerjs-icon\x20univerjs-icon-'+_0x419e6c+'\x20'+(_0x235f66||''))['trim'](),_0x45b039=_0x4f7dcf[_0xb3875f(0x2d2)]('_'+_0x328a14());return _0x418e49(_0xfd7b8,''+_0x419e6c,{'defIds':_0xfd7b8[_0xb3875f(0x28e)],'idSuffix':_0x45b039['current']},{'ref':_0x2b6460,'className':_0x9b04ff,..._0x435a34},_0x5a0428);}function _0x418e49(_0x41366e,_0x1f2c38,_0x449722,_0x6e348d,_0x1ff21a){const _0x582f13=_0x223a81;return _0x4f7dcf['createElement'](_0x41366e[_0x582f13(0x273)],{'key':_0x1f2c38,..._0x568964(_0x41366e,_0x449722,_0x1ff21a),..._0x6e348d},(_0x11658d(_0x41366e,_0x449722)[_0x582f13(0x2f5)]||[])[_0x582f13(0x2c4)]((_0x3befeb,_0xf62c45)=>_0x418e49(_0x3befeb,_0x1f2c38+'-'+_0x41366e[_0x582f13(0x273)]+'-'+_0xf62c45,_0x449722,void 0x0,_0x1ff21a)));}function _0x568964(_0x23d3c9,_0x561995,_0x2125d8){const _0x552abb=_0x223a81,_0x9cb4b0={..._0x23d3c9[_0x552abb(0x27e)]};_0x2125d8!=null&&_0x2125d8[_0x552abb(0x2f8)]&&_0x9cb4b0[_0x552abb(0x1e1)]==='colorChannel1'&&(_0x9cb4b0[_0x552abb(0x1e1)]=_0x2125d8['colorChannel1']),_0x23d3c9[_0x552abb(0x273)]===_0x552abb(0x293)&&_0x9cb4b0['id']&&(_0x9cb4b0['id']=_0x9cb4b0['id']+_0x561995['idSuffix']),Object[_0x552abb(0x1f7)](_0x9cb4b0)['forEach'](([_0x5cc90e,_0x566dc1])=>{const _0x37d815=_0x552abb;_0x5cc90e==='mask'&&typeof _0x566dc1==_0x37d815(0x240)&&(_0x9cb4b0[_0x5cc90e]=_0x566dc1[_0x37d815(0x2f4)](/url\(#(.*)\)/,_0x37d815(0x1ed)+_0x561995[_0x37d815(0x239)]+')'));});const {defIds:_0x414d20}=_0x561995;return!_0x414d20||_0x414d20[_0x552abb(0x24f)]===0x0||(_0x23d3c9[_0x552abb(0x273)]==='use'&&_0x9cb4b0[_0x552abb(0x2a3)]&&(_0x9cb4b0[_0x552abb(0x2a3)]=_0x9cb4b0['xlink:href']+_0x561995['idSuffix']),Object[_0x552abb(0x1f7)](_0x9cb4b0)[_0x552abb(0x284)](([_0x1f3ef2,_0x233113])=>{const _0xffe2cb=_0x552abb;typeof _0x233113==_0xffe2cb(0x240)&&(_0x9cb4b0[_0x1f3ef2]=_0x233113['replace'](/url\(#(.*)\)/,_0xffe2cb(0x1ed)+_0x561995[_0xffe2cb(0x239)]+')'));})),_0x9cb4b0;}function _0x11658d(_0x4b9a77,_0x191bdb){const _0x4c792e=_0x223a81;var _0x45248d;const {defIds:_0x1f6a0b}=_0x191bdb;return!_0x1f6a0b||_0x1f6a0b[_0x4c792e(0x24f)]===0x0?_0x4b9a77:_0x4b9a77[_0x4c792e(0x273)]==='defs'&&((_0x45248d=_0x4b9a77[_0x4c792e(0x2f5)])!=null&&_0x45248d[_0x4c792e(0x24f)])?{..._0x4b9a77,'children':_0x4b9a77[_0x4c792e(0x2f5)]['map'](_0x325536=>typeof _0x325536['attrs']['id']=='string'&&_0x1f6a0b&&_0x1f6a0b[_0x4c792e(0x2ab)](_0x325536['attrs']['id'])?{..._0x325536,'attrs':{..._0x325536[_0x4c792e(0x27e)],'id':_0x325536[_0x4c792e(0x27e)]['id']+_0x191bdb[_0x4c792e(0x239)]}}:_0x325536)}:_0x4b9a77;}function _0x328a14(){const _0x5e98dd=_0x223a81;return Math[_0x5e98dd(0x2f6)]()[_0x5e98dd(0x2cb)](0x24)['substring'](0x2,0x8);}_0x363ccb[_0x223a81(0x29f)]=_0x223a81(0x2f1);const _0x57c6a2={'tag':_0x223a81(0x217),'attrs':{'xmlns':_0x223a81(0x22d),'fill':'none','viewBox':_0x223a81(0x23b),'width':'1em','height':_0x223a81(0x276)},'children':[{'tag':'g','attrs':{'fill':_0x223a81(0x236),'clipPath':_0x223a81(0x230)},'children':[{'tag':_0x223a81(0x2ef),'attrs':{'d':_0x223a81(0x201)}},{'tag':_0x223a81(0x2ef),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':_0x223a81(0x257),'attrs':{},'children':[{'tag':_0x223a81(0x20c),'attrs':{'id':_0x223a81(0x22a)},'children':[{'tag':_0x223a81(0x2ef),'attrs':{'fill':_0x223a81(0x2a5),'d':_0x223a81(0x2a1)}}]}]}],'defIds':[_0x223a81(0x22a)]},_0x4d0d58=_0x4f7dcf[_0x223a81(0x258)](function(_0x5247ba,_0x4747bb){const _0x58ef80=_0x223a81;return _0x4f7dcf[_0x58ef80(0x219)](_0x363ccb,Object[_0x58ef80(0x208)]({},_0x5247ba,{'id':_0x58ef80(0x246),'ref':_0x4747bb,'icon':_0x57c6a2}));});_0x4d0d58[_0x223a81(0x29f)]=_0x223a81(0x280);var _0x4e73f2=(_0x1d1ada=>(_0x1d1ada[_0x1d1ada[_0x223a81(0x2ea)]=0x0]=_0x223a81(0x2ea),_0x1d1ada[_0x1d1ada[_0x223a81(0x2e5)]=0x1]=_0x223a81(0x2e5),_0x1d1ada[_0x1d1ada[_0x223a81(0x2d6)]=0x2]='UNIVER_SHEET',_0x1d1ada[_0x1d1ada[_0x223a81(0x24b)]=0x3]=_0x223a81(0x24b),_0x1d1ada[_0x1d1ada['UNIVER_PROJECT']=0x4]=_0x223a81(0x2d0),_0x1d1ada[_0x1d1ada[_0x223a81(0x29e)]=-0x1]=_0x223a81(0x29e),_0x1d1ada))(_0x4e73f2||{});function _0x28b5e4(_0x5f2fba){const _0x46cb68=_0x223a81;return{'id':_0xefc74d['id'],'type':_0xce0520[_0x46cb68(0x23c)][_0x46cb68(0x248)],'icon':_0x46cb68(0x280),'tooltip':_0x46cb68(0x1f0),'hidden$':_0xce0520['getMenuHiddenObservable'](_0x5f2fba,_0x4c3f3f['UniverInstanceType'][_0x46cb68(0x2d6)]),'disabled$':_0x47d3a5[_0x46cb68(0x232)](_0x5f2fba,{'workbookTypes':[_0x175618[_0x46cb68(0x1cd)],_0x175618[_0x46cb68(0x25c)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x24ce10={[_0xce0520[_0x223a81(0x1d1)][_0x223a81(0x28c)]]:{[_0xefc74d['id']]:{'order':0.2,'menuItemFactory':_0x28b5e4}}};var _0x590b51=Object[_0x223a81(0x1fe)],_0x36b58f=(_0x5d231f,_0x4e7833,_0x2e4a90,_0x41d790)=>{const _0xf11920=_0x223a81;for(var _0xc8176c=_0x41d790>0x1?void 0x0:_0x41d790?_0x590b51(_0x4e7833,_0x2e4a90):_0x4e7833,_0x2e9053=_0x5d231f[_0xf11920(0x24f)]-0x1,_0x5f5364;_0x2e9053>=0x0;_0x2e9053--)(_0x5f5364=_0x5d231f[_0x2e9053])&&(_0xc8176c=_0x5f5364(_0xc8176c)||_0xc8176c);return _0xc8176c;},_0x192a89=(_0x489efd,_0x27d62c)=>(_0x225f5a,_0x39ab1c)=>_0x27d62c(_0x225f5a,_0x39ab1c,_0x489efd);let _0x4c4452=class extends _0x4c3f3f[_0x223a81(0x20a)]{constructor(_0x198790,_0x230387,_0xcb4208,_0xfa363a,_0x461066,_0x21ee5f,_0x392d09,_0x437be2,_0x3a9d18,_0x51e03b,_0x39fd77){const _0x573752=_0x223a81;super(),_0x624104(this,_0x573752(0x2e3),null),(this[_0x573752(0x2f7)]=_0x198790,this[_0x573752(0x2b0)]=_0x230387,this[_0x573752(0x2b8)]=_0xcb4208,this[_0x573752(0x22c)]=_0xfa363a,this[_0x573752(0x2cf)]=_0x461066,this[_0x573752(0x1fa)]=_0x21ee5f,this[_0x573752(0x1d9)]=_0x392d09,this[_0x573752(0x1c4)]=_0x437be2,this[_0x573752(0x2a7)]=_0x3a9d18,this[_0x573752(0x26c)]=_0x51e03b,this[_0x573752(0x2e1)]=_0x39fd77,this[_0x573752(0x2f2)]());}['_init'](){const _0x95c715=_0x223a81;[_0xefc74d,_0x2f4670][_0x95c715(0x284)](_0x43ff2b=>this[_0x95c715(0x265)](_0x4c3f3f[_0x95c715(0x2d5)](this['_commandService'][_0x95c715(0x266)](_0x43ff2b)))),this[_0x95c715(0x265)](this[_0x95c715(0x2b8)][_0x95c715(0x2cd)]('HistoryIcon',_0x4d0d58)),this[_0x95c715(0x2b0)][_0x95c715(0x227)](_0x24ce10),this['disposeWithMe'](this[_0x95c715(0x2f7)][_0x95c715(0x1b6)](async(_0x26c06f,_0x17b2d3)=>{const _0x4b0e35=_0x95c715;if(_0x26c06f['id']===_0x3f6b06[_0x4b0e35(0x2d3)]['id']){const {unitId:_0x5324c5}=_0x26c06f[_0x4b0e35(0x296)];this['_messageService']['show']({'content':this[_0x4b0e35(0x2cf)]['t'](_0x4b0e35(0x243)),'type':_0x33f435[_0x4b0e35(0x229)][_0x4b0e35(0x261)],'duration':0x1388});const _0x22b4d2=this[_0x4b0e35(0x1d9)][_0x4b0e35(0x289)](_0x5324c5);(_0x17b2d3==null?void 0x0:_0x17b2d3[_0x4b0e35(0x29d)])?this[_0x4b0e35(0x1b7)](_0x22b4d2,async()=>(setTimeout(()=>window['location'][_0x4b0e35(0x2c1)]()),!0x0),!0x0):this[_0x4b0e35(0x1b7)](_0x22b4d2,async()=>{const _0x1ac0ef=_0x4b0e35,_0x11f7d8=this[_0x1ac0ef(0x26c)][_0x1ac0ef(0x1ea)](_0x4e73f2['UNIVER_SHEET']),_0x1df2b3=_0x11f7d8==null?void 0x0:_0x11f7d8[_0x1ac0ef(0x224)]();if(!_0x1df2b3)return!0x1;this['_univerInstanceService']['disposeUnit'](_0x5324c5);const _0x56318b=await this[_0x1ac0ef(0x2a7)]['loadUnit'](_0x5324c5,_0x4e73f2['UNIVER_SHEET']);return _0x56318b&&_0x56318b instanceof _0x4c3f3f[_0x1ac0ef(0x1c5)]?(await this[_0x1ac0ef(0x234)](_0x56318b,_0x1df2b3[_0x1ac0ef(0x2d4)]()),!0x0):!0x1;});}}));}[_0x223a81(0x1b7)](_0x49e84f,_0x59587b,_0xafeaeb=!0x1){const _0x2d6457=_0x223a81,_0x46e19c=_0x35922f[_0x2d6457(0x245)]([_0x49e84f[_0x2d6457(0x25e)]['event$'],_0x49e84f[_0x2d6457(0x1ff)]])[_0x2d6457(0x1fd)](async([_0x225ae5,_0x55c7bf])=>{const _0x50585d=_0x2d6457;var _0x37c6af;_0x225ae5['eventID']===_0x3f6b06[_0x50585d(0x285)][_0x50585d(0x294)]&&(_0x55c7bf==null?void 0x0:_0x55c7bf[_0x50585d(0x1ee)])===_0x3934c2[_0x50585d(0x2b1)]['SYNCED']&&_0x225ae5['data'][_0x50585d(0x1e5)]['some'](_0x50a894=>_0x50a894['id']===_0x3f6b06[_0x50585d(0x2d3)]['id'])&&await _0x59587b()&&(this[_0x50585d(0x22c)][_0x50585d(0x2ad)](),_0x46e19c[_0x50585d(0x2dd)](),this['_revertErrorTimer']&&clearTimeout(this[_0x50585d(0x2e3)]),await((_0x37c6af=this['_localCacheService'])==null?void 0x0:_0x37c6af[_0x50585d(0x28f)]()));});_0xafeaeb&&(this[_0x2d6457(0x2e3)]=setTimeout(()=>{const _0x4c51fd=_0x2d6457;_0x46e19c[_0x4c51fd(0x2dd)](),this['_messageService']['show']({'content':this['_localeService']['t'](_0x4c51fd(0x24a)),'type':_0x33f435[_0x4c51fd(0x229)]['Error'],'duration':0xbb8});},0x1388));}async[_0x223a81(0x234)](_0x145595,_0x50a202){const _0x1f9ccc=_0x223a81;await this['_updateSubUnitFromURLParams'](_0x145595,_0x50a202),_0x145595['activeSheet$'][_0x1f9ccc(0x214)](_0x35922f[_0x1f9ccc(0x26f)](this['dispose$']))[_0x1f9ccc(0x1fd)](_0x3d3b2d=>{_0x3d3b2d&&this['_updateURLWithCurrentState'](_0x3d3b2d);}),this[_0x1f9ccc(0x2e1)]['urlChange$']['pipe'](_0x35922f['takeUntil'](this['dispose$']))[_0x1f9ccc(0x1fd)](()=>this[_0x1f9ccc(0x238)](_0x145595,_0x50a202));}[_0x223a81(0x1c2)](_0x14210d,_0x4a47ca=!0x1){const _0x36c733=_0x223a81,_0x436626=this[_0x36c733(0x2e1)][_0x36c733(0x277)]('subunit');_0x14210d['getSheetId']()!==_0x436626&&this[_0x36c733(0x2e1)]['setParam'](_0x36c733(0x1c9),_0x14210d[_0x36c733(0x2d4)](),_0x4a47ca);}async[_0x223a81(0x238)](_0x6a0653,_0x30bf63){const _0x24b41d=_0x223a81;var _0x549d93;if(!_0x30bf63||!_0x6a0653[_0x24b41d(0x212)](_0x30bf63)){const _0x27262d=_0x6a0653[_0x24b41d(0x21d)]()[0x0],_0x1df9d5=_0x6a0653[_0x24b41d(0x212)](_0x27262d);if(!_0x1df9d5)return;this['_updateURLWithCurrentState'](_0x1df9d5,!0x0),await this[_0x24b41d(0x2f7)]['executeCommand'](_0x175618[_0x24b41d(0x1f8)]['id'],{'unitId':_0x6a0653[_0x24b41d(0x2ee)](),'subUnitId':_0x27262d});return;}((_0x549d93=_0x6a0653['getActiveSheet']())==null?void 0x0:_0x549d93[_0x24b41d(0x2d4)]())!==_0x30bf63&&await this[_0x24b41d(0x2f7)][_0x24b41d(0x2dc)](_0x175618[_0x24b41d(0x1f8)]['id'],{'unitId':_0x6a0653['getUnitId'](),'subUnitId':_0x30bf63});}};_0x4c4452=_0x36b58f([_0x192a89(0x0,_0x4c3f3f[_0x223a81(0x2ce)]),_0x192a89(0x1,_0xce0520[_0x223a81(0x27f)]),_0x192a89(0x2,_0x4c3f3f[_0x223a81(0x228)](_0xce0520['ComponentManager'])),_0x192a89(0x3,_0x4c3f3f[_0x223a81(0x228)](_0x56f7a6[_0x223a81(0x1dd)])),_0x192a89(0x4,_0x4c3f3f[_0x223a81(0x228)](_0x4c3f3f[_0x223a81(0x2db)])),_0x192a89(0x5,_0xce0520[_0x223a81(0x216)]),_0x192a89(0x6,_0x4c3f3f[_0x223a81(0x228)](_0x3934c2[_0x223a81(0x2aa)])),_0x192a89(0x7,_0x3934c2['ILocalCacheService']),_0x192a89(0x8,_0x4c3f3f['Inject'](_0x3934c2[_0x223a81(0x1c6)])),_0x192a89(0x9,_0x4c3f3f[_0x223a81(0x2e2)]),_0x192a89(0xa,_0x4db9cb['IURLService'])],_0x4c4452);var _0x4bc494=Object[_0x223a81(0x226)],_0x118bce=Object[_0x223a81(0x1fe)],_0x4fdde5=(_0x4e6ef5,_0x200613,_0xd02f99)=>_0x200613 in _0x4e6ef5?_0x4bc494(_0x4e6ef5,_0x200613,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd02f99}):_0x4e6ef5[_0x200613]=_0xd02f99,_0xcb4f38=(_0x3e54c7,_0x1c43c2,_0x1b2d7a,_0x56314a)=>{const _0x5b29c0=_0x223a81;for(var _0x1c2945=_0x56314a>0x1?void 0x0:_0x56314a?_0x118bce(_0x1c43c2,_0x1b2d7a):_0x1c43c2,_0x3a82cd=_0x3e54c7[_0x5b29c0(0x24f)]-0x1,_0x5de7e7;_0x3a82cd>=0x0;_0x3a82cd--)(_0x5de7e7=_0x3e54c7[_0x3a82cd])&&(_0x1c2945=_0x5de7e7(_0x1c2945)||_0x1c2945);return _0x1c2945;},_0x411529=(_0x4b8a88,_0xf3586d)=>(_0x5a5b05,_0x39fd66)=>_0xf3586d(_0x5a5b05,_0x39fd66,_0x4b8a88),_0x34d458=(_0x543dc2,_0x3eec98,_0x2b721c)=>_0x4fdde5(_0x543dc2,typeof _0x3eec98!=_0x223a81(0x25f)?_0x3eec98+'':_0x3eec98,_0x2b721c);const _0x33c632=_0x223a81(0x1f3);_0x56f7a6['UniverEditHistoryLoaderPlugin']=class extends _0x4c3f3f['Plugin']{constructor(_0x1ce455=_0x3c92e0,_0x50b5d2,_0x187d40){const _0x2afd6f=_0x223a81;super(),this[_0x2afd6f(0x2f9)]=_0x1ce455,this[_0x2afd6f(0x2e0)]=_0x50b5d2,this[_0x2afd6f(0x1d2)]=_0x187d40;const {menu:_0x84241f,..._0x568b93}=_0x4c3f3f[_0x2afd6f(0x29c)]({},_0x3c92e0,this[_0x2afd6f(0x2f9)]);_0x84241f&&this[_0x2afd6f(0x1d2)][_0x2afd6f(0x253)]('menu',_0x84241f,{'merge':!0x0}),this[_0x2afd6f(0x1d2)][_0x2afd6f(0x253)](_0x556b86,_0x568b93),this[_0x2afd6f(0x2f9)][_0x2afd6f(0x2b9)]&&this[_0x2afd6f(0x1d2)]['setConfig'](_0x433081,this[_0x2afd6f(0x2f9)][_0x2afd6f(0x2b9)]);}[_0x223a81(0x1b8)](){const _0x593b37=_0x223a81;[[_0x56f7a6[_0x593b37(0x1dd)]],[_0x4c4452]][_0x593b37(0x284)](_0x31c4cd=>this[_0x593b37(0x2e0)][_0x593b37(0x279)](_0x31c4cd));}[_0x223a81(0x278)](){const _0x1bcf98=_0x223a81;this[_0x1bcf98(0x2e0)][_0x1bcf98(0x271)](_0x4c4452);}},_0x34d458(_0x56f7a6[_0x223a81(0x2ec)],'type',_0x4c3f3f[_0x223a81(0x1e8)][_0x223a81(0x2ea)]),_0x34d458(_0x56f7a6[_0x223a81(0x2ec)],_0x223a81(0x20e),_0x33c632),_0x56f7a6[_0x223a81(0x2ec)]=_0xcb4f38([_0x4c3f3f['DependentOn'](_0xc1e4c3['UniverLicensePlugin']),_0x411529(0x1,_0x4c3f3f['Inject'](_0x4c3f3f[_0x223a81(0x263)])),_0x411529(0x2,_0x4c3f3f[_0x223a81(0x27d)])],_0x56f7a6[_0x223a81(0x2ec)]),_0x56f7a6[_0x223a81(0x2b4)]=_0x556b86,_0x56f7a6[_0x223a81(0x268)]=_0xefc74d,_0x56f7a6['UNIVER_CONTAINER_ID_KEY']=_0x433081,_0x56f7a6[_0x223a81(0x21c)]=_0x32d320,Object['defineProperty'](_0x56f7a6,Symbol[_0x223a81(0x1db)],{'value':'Module'});}));function _0x210c(_0x8bd28,_0x108071){_0x8bd28=_0x8bd28-0x1b3;const _0x446c74=_0x446c();let _0x210c3f=_0x446c74[_0x8bd28];return _0x210c3f;}function _0x446c(){const _0x37dfd8=['BUTTON','exports','editHistory.panel.revertFailed','UNIVER_SLIDE','@univerjs-pro/sheets-pivot','block','dataset','length','@univerjs/drawing','UniverDataValidationPlugin','UniverRPCMainThreadPlugin','setConfig','whenReady','getElementById','7957104SYALHw','defs','forwardRef','UniverSheetsNumfmt','@univerjs/drawing-ui','Entered','WorkbookViewHistoryPermission','absolute','session','symbol','UniverNetworkPlugin','Loading','UniverUi','Injector','_themeService','disposeWithMe','registerCommand','UniverDrawingUIPlugin','ToggleEditHistoryOperation','object','@univerjs/sheets-conditional-formatting','UniverUIPlugin','_univerInstanceService','__getInjector','2545254pkydpn','takeUntil','_permissionService','get','_selectionProtectionRuleModel','tag','value','composePermission','1em','getParam','onSteady','add','@univerjs-pro/sheets-chart','@univerjs/engine-formula','UniverSheetsHyperLink','IConfigService','attrs','IMenuManagerService','HistoryIcon','@univerjs-pro/sheets-shape-ui','_initPlugins','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','forEach','CollaborationEvent','UniverProSheetsShape','triggerCustomVersions','UniverLicensePlugin','getCollabEntity','WorkbookRecoverHistoryPermission','editHistory.info.initializing','OTHERS','UniverSheetsFormulaPlugin','defIds','exhaustSavingTask','UniverProCollaborationClientUi','none','UniverSheetsConditionalFormattingUi','mask','CHANGESET_ACK','UniverCore','params','1124fCbpcG','UniverProSheetsShapeUi','@univerjs-pro/collaboration-client-ui','UniverProCollaboration','status$','merge','fromCollab','UNRECOGNIZED','displayName','@univerjs-pro/collaboration','M0\x200H16V16H0z','Univer','xlink:href','_internalWebWorker','white','3219248gQEYxq','_dataLoaderService','width','@univerjs/sheets-formula','CollaborationController','includes','style','unMountHistoryContent','@univerjs/engine-render','UniverEngineFormula','_menuManagerService','CollaborationStatus','UniverProSheetsPivot','getConfig','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverFormulaEnginePlugin','@univerjs/rpc','@univerjs/data-validation','_componentManager','univerContainerId','historyUniver','UniverSheetsDataValidationPlugin','show','UniverEngineRender','IAuthzIoService','left','UniverSheetsUi','reload','height','uComp','map','history-container','UniverSheetsFormula','@univerjs/sheets','UniverSheetsConditionalFormattingUIPlugin','@univerjs/sheets-filter','edit-history-loader.config','toString','getLocales','register','ICommandService','_localeService','UNIVER_PROJECT','IDialogService','useRef','RevertRevisionMutation','getSheetId','toDisposable','UNIVER_SHEET','currentTheme$','function','BehaviorSubject','ThemeService','LocaleService','executeCommand','unsubscribe','_initUniver','UniverSheetsPivotTablePlugin','_injector','_urlService','IUniverInstanceService','_revertErrorTimer','permissionId','UNIVER_DOC','UniverSheetSparklineUIPlugin','IImageIoService','@univerjs/sheets-filter-ui','UniverDocsUi','UNIVER_UNKNOWN','invoke','UniverEditHistoryLoaderPlugin','UniverSheetsDataValidationUi','getUnitId','path','next','UniverIcon','_init','@univerjs-pro/sheets-shape','replace','children','random','_commandService','colorChannel1','_config','UniverProLicense','UniverSheetsUIPlugin','21ICUuUD','registerPlugin','historyPanelHidden','then','from','UniverRenderEnginePlugin','@univerjs/design','@univerjs/sheets-drawing','UniverDocsPlugin','onCommandExecuted','_handleRevertAcknowledgement','onStarting','@univerjs/core','Error','UniverSheetsFilter','UniverSheetsFilterUi','UniverSheetsPlugin','dispose','UniverSheetsDataValidationUIPlugin','CommandType','@univerjs/sheets-numfmt','_updateURLWithCurrentState','has','_localCacheService','Workbook','DataLoaderService','@univerjs/sheets-formula-ui','IRemoteInstanceService','subunit','_sidebarService','Disposable','@univerjs/sheets-data-validation','WorkbookEditablePermission','getSubunitRuleList','revertRevision$','UniverSheetsFormulaUi','RibbonStartGroup','_configService','UniverSheetsConditionalFormattingPlugin','_initContainer','UniverDesign','@univerjs/docs-ui','asObservable','RangeProtectionRuleModel','_collaborationController','629414NOZHoM','toStringTag','univer.operation.exit-edit-history','HistoryLoaderService','UniverSheetSparklinePlugin','UniverDrawing','DisposableCollection','fill','UniverEditHistoryViewerPlugin','UniverDrawingUi','UniverNetwork','mutations','UniverProEditHistoryViewer','getAllPlugins','UniverInstanceType','UniverSheetsTable','getCurrentUnitOfType','10STZQau','HistoryModeStatus','url(#$1','status','Exited','editHistory.panel.title','UniverDrawingPlugin','WorksheetEditPermission','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','@univerjs/docs','UniverProSheetsChartUi','position','entries','SetWorksheetActivateCommand','rxjs','_messageService','UniverProEditHistoryLoader','100%','subscribe','getOwnPropertyDescriptor','state$','UniverSheetsShapeUIPlugin','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','workerURL','_checkCanRevert','\x20has\x20been\x20registered.','@univerjs-pro/sheets-chart-ui','@univerjs-pro/collaboration-client','@univerjs-pro/edit-history-viewer','assign','UniverCollaborationPlugin','RxDisposable','div','clipPath','ISidebarService','pluginName','UniverSheetsDrawing','@univerjs-pro/sheets-sparkline-ui','LS_CONFIG_KEY','getSheetBySheetId','1845PAtZXk','pipe','1409364kTQvPl','IMessageService','svg','editHistory.panel.listFetchError','createElement','@univerjs/ui','_pluginMap','UNIVER_HISTORY_CONTAINER_ID','getUnhiddenWorksheets','UniverSheetsConditionalFormatting','26338113yZNiYY','_historyUniver$','HistoryManagerService','close','react','getActiveSheet','values','defineProperty','mergeMenu','Inject','MessageType','history-icon_clip0_907_281','UniverDataValidation','_historyManagerService','http://www.w3.org/2000/svg','_initListener','OPERATION','url(#history-icon_clip0_907_281)','triggerLoadVersions','getCurrentRangeDisable$','UniverProSheetsSparkline','_setupSubUnitSync','[HistoryLoaderService]:\x20Plugin\x20','currentColor','UniverSheetsDrawingPlugin','_updateSubUnitFromURLParams','idSuffix','@univerjs/sheets-hyper-link','0\x200\x2016\x2016','MenuItemType','getSheets','_disposableCollection','@univerjs-pro/sheets-sparkline','string','@univerjs/sheets-table','AuthzIoHttpService','editHistory.panel.reverting','UniverDocs','combineLatest','history-icon','display'];_0x446c=function(){return _0x37dfd8;};return _0x446c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,47 +47,47 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^1.1.1",
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs-pro/collaboration-client
|
|
52
|
-
"@univerjs-pro/collaboration": "0.16.
|
|
53
|
-
"@univerjs-pro/edit-history-viewer": "0.16.
|
|
54
|
-
"@univerjs-pro/
|
|
55
|
-
"@univerjs-pro/sheets-chart": "0.16.
|
|
56
|
-
"@univerjs-pro/
|
|
57
|
-
"@univerjs-pro/sheets-
|
|
58
|
-
"@univerjs-pro/sheets-shape": "0.16.
|
|
59
|
-
"@univerjs-pro/sheets-
|
|
60
|
-
"@univerjs
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/docs
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/drawing": "0.16.
|
|
69
|
-
"@univerjs/engine-
|
|
70
|
-
"@univerjs/network": "0.16.
|
|
71
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.16.1",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.16.1",
|
|
52
|
+
"@univerjs-pro/collaboration-client-ui": "0.16.1",
|
|
53
|
+
"@univerjs-pro/edit-history-viewer": "0.16.1",
|
|
54
|
+
"@univerjs-pro/sheets-chart": "0.16.1",
|
|
55
|
+
"@univerjs-pro/sheets-chart-ui": "0.16.1",
|
|
56
|
+
"@univerjs-pro/license": "0.16.1",
|
|
57
|
+
"@univerjs-pro/sheets-sparkline": "0.16.1",
|
|
58
|
+
"@univerjs-pro/sheets-shape": "0.16.1",
|
|
59
|
+
"@univerjs-pro/sheets-pivot": "0.16.1",
|
|
60
|
+
"@univerjs/core": "0.16.1",
|
|
61
|
+
"@univerjs/design": "0.16.1",
|
|
62
|
+
"@univerjs-pro/sheets-shape-ui": "0.16.1",
|
|
63
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.16.1",
|
|
64
|
+
"@univerjs/docs": "0.16.1",
|
|
65
|
+
"@univerjs/data-validation": "0.16.1",
|
|
66
|
+
"@univerjs/docs-ui": "0.16.1",
|
|
67
|
+
"@univerjs/drawing-ui": "0.16.1",
|
|
68
|
+
"@univerjs/drawing": "0.16.1",
|
|
69
|
+
"@univerjs/engine-formula": "0.16.1",
|
|
70
|
+
"@univerjs/network": "0.16.1",
|
|
71
|
+
"@univerjs/engine-render": "0.16.1",
|
|
72
|
+
"@univerjs/rpc": "0.16.1",
|
|
73
|
+
"@univerjs/sheets-conditional-formatting": "0.16.1",
|
|
74
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.16.1",
|
|
75
|
+
"@univerjs/sheets-data-validation-ui": "0.16.1",
|
|
72
76
|
"@univerjs/protocol": "0.1.48",
|
|
73
|
-
"@univerjs/
|
|
74
|
-
"@univerjs/sheets": "0.16.
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/
|
|
86
|
-
"@univerjs/sheets-
|
|
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"
|
|
77
|
+
"@univerjs/sheets-data-validation": "0.16.1",
|
|
78
|
+
"@univerjs/sheets": "0.16.1",
|
|
79
|
+
"@univerjs/sheets-drawing": "0.16.1",
|
|
80
|
+
"@univerjs/sheets-filter": "0.16.1",
|
|
81
|
+
"@univerjs/sheets-drawing-ui": "0.16.1",
|
|
82
|
+
"@univerjs/sheets-filter-ui": "0.16.1",
|
|
83
|
+
"@univerjs/sheets-formula": "0.16.1",
|
|
84
|
+
"@univerjs/sheets-hyper-link": "0.16.1",
|
|
85
|
+
"@univerjs/sheets-hyper-link-ui": "0.16.1",
|
|
86
|
+
"@univerjs/sheets-numfmt": "0.16.1",
|
|
87
|
+
"@univerjs/sheets-table": "0.16.1",
|
|
88
|
+
"@univerjs/sheets-ui": "0.16.1",
|
|
89
|
+
"@univerjs/ui": "0.16.1",
|
|
90
|
+
"@univerjs/sheets-formula-ui": "0.16.1"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"react": "18.3.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"typescript": "^5.9.3",
|
|
96
96
|
"vite": "^7.3.1",
|
|
97
97
|
"vitest": "^4.0.18",
|
|
98
|
-
"@univerjs-infra/shared": "0.16.
|
|
98
|
+
"@univerjs-infra/shared": "0.16.1"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"test": "vitest run",
|